{
  "openapi": "3.1.0",
  "info": {
    "title": "ENJ Management API — source-derived route reference",
    "version": "f0eee8a",
    "description": "Partial request schemas extracted from source, not a complete execution contract. Role lists are lower bounds: additional client, agency, actor and provider restrictions apply. All mutating operations require task-specific authority. Provider callbacks and internal bridges are not agent commands. Compare /health commit with x-enj-source-commit before use."
  },
  "servers": [
    {
      "url": "https://api.enjdigital.com"
    }
  ],
  "x-enj-source-commit": "f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8",
  "x-enj-generated-at": "2026-11-20T08:50:18.465Z",
  "components": {
    "securitySchemes": {
      "ManagementAgent": {
        "type": "http",
        "scheme": "bearer",
        "description": "Existing Management AI agent token. Do not use a provider API key. Some operations use a different authentication boundary; see x-enj-auth."
      }
    }
  },
  "paths": {
    "/api/acquisition-funnel/events": {
      "post": {
        "operationId": "post-api-acquisition-funnel-events",
        "tags": [
          "acquisition-funnel"
        ],
        "summary": "POST /api/acquisition-funnel/events",
        "description": "Mutation or action; explicit authority required. Visitor/bridge controls; not a general agent API. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Visitor/bridge controls; not a general agent API",
          "roles": [],
          "handler": "authorize",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/acquisition-funnel/routes.ts",
          "line": 36,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/acquisition-funnel/routes.ts#L36"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/acquisition-funnel/readiness": {
      "get": {
        "operationId": "get-api-acquisition-funnel-readiness",
        "tags": [
          "acquisition-funnel"
        ],
        "summary": "GET /api/acquisition-funnel/readiness",
        "description": "Read method; may have cache or collection side effects. Visitor/bridge controls; not a general agent API. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Visitor/bridge controls; not a general agent API",
          "roles": [],
          "handler": "authorize",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/acquisition-funnel/routes.ts",
          "line": 20,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/acquisition-funnel/routes.ts#L20"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/acquisition-funnel/submit": {
      "post": {
        "operationId": "post-api-acquisition-funnel-submit",
        "tags": [
          "acquisition-funnel"
        ],
        "summary": "POST /api/acquisition-funnel/submit",
        "description": "Mutation or action; explicit authority required. Visitor/bridge controls; not a general agent API. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Visitor/bridge controls; not a general agent API",
          "roles": [],
          "handler": "authorize",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/acquisition-funnel/routes.ts",
          "line": 46,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/acquisition-funnel/routes.ts#L46"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/ads-manager/adsets/{adSetId}/setup": {
      "get": {
        "operationId": "get-api-ads-manager-adsets-adSetId-setup",
        "tags": [
          "ads-manager"
        ],
        "summary": "GET /api/ads-manager/adsets/:adSetId/setup",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "adSetId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner"
          ],
          "handler": "requireAdsManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/ads-manager/routes.ts",
          "line": 152,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/ads-manager/routes.ts#L152"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/ads-manager/clients/{clientId}/details": {
      "get": {
        "operationId": "get-api-ads-manager-clients-clientId-details",
        "tags": [
          "ads-manager"
        ],
        "summary": "GET /api/ads-manager/clients/:clientId/details",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner"
          ],
          "handler": "requireAdsManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/ads-manager/routes.ts",
          "line": 129,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/ads-manager/routes.ts#L129"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/ads-manager/clients/{clientId}/journal": {
      "post": {
        "operationId": "post-api-ads-manager-clients-clientId-journal",
        "tags": [
          "ads-manager"
        ],
        "summary": "POST /api/ads-manager/clients/:clientId/journal",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer"
          ],
          "handler": "requireAdsManagerWrite",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/ads-manager/routes.ts",
          "line": 191,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/ads-manager/routes.ts#L191"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "new_ads_launched",
                        "creative_or_copy_updated",
                        "targeting_updated",
                        "budget_updated",
                        "campaign_or_adset_updated",
                        "ads_paused_or_restarted",
                        "optimization_made",
                        "other"
                      ]
                    },
                    "minItems": 1
                  },
                  "details": {
                    "type": "string",
                    "maxLength": 10000
                  },
                  "context": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "campaignId": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 500
                      },
                      "campaignName": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 500
                      },
                      "adSetId": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 500
                      },
                      "adSetName": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 500
                      },
                      "adId": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 500
                      },
                      "adName": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 500
                      }
                    }
                  }
                },
                "required": [
                  "categories"
                ]
              }
            }
          }
        }
      }
    },
    "/api/ads-manager/creatives": {
      "get": {
        "operationId": "get-api-ads-manager-creatives",
        "tags": [
          "ads-manager"
        ],
        "summary": "GET /api/ads-manager/creatives",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner"
          ],
          "handler": "requireAdsManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/ads-manager/routes.ts",
          "line": 75,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/ads-manager/routes.ts#L75"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/ads-manager/creatives/{id}/image": {
      "get": {
        "operationId": "get-api-ads-manager-creatives-id-image",
        "tags": [
          "ads-manager"
        ],
        "summary": "GET /api/ads-manager/creatives/:id/image",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner"
          ],
          "handler": "requireAdsManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/ads-manager/routes.ts",
          "line": 94,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/ads-manager/routes.ts#L94"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/ads-manager/journal": {
      "get": {
        "operationId": "get-api-ads-manager-journal",
        "tags": [
          "ads-manager"
        ],
        "summary": "GET /api/ads-manager/journal",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "statuses",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "new_ads_launched",
                "creative_or_copy_updated",
                "targeting_updated",
                "budget_updated",
                "campaign_or_adset_updated",
                "ads_paused_or_restarted",
                "optimization_made",
                "other"
              ]
            }
          },
          {
            "name": "authorEmail",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer"
          ],
          "handler": "requireAdsManagerWrite",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/ads-manager/routes.ts",
          "line": 174,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/ads-manager/routes.ts#L174"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/ads-manager/journal/{entryId}": {
      "delete": {
        "operationId": "delete-api-ads-manager-journal-entryId",
        "tags": [
          "ads-manager"
        ],
        "summary": "DELETE /api/ads-manager/journal/:entryId",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "entryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/ads-manager/routes.ts",
          "line": 226,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/ads-manager/routes.ts#L226"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-ads-manager-journal-entryId",
        "tags": [
          "ads-manager"
        ],
        "summary": "PATCH /api/ads-manager/journal/:entryId",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "entryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer"
          ],
          "handler": "requireAdsManagerWrite",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/ads-manager/routes.ts",
          "line": 209,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/ads-manager/routes.ts#L209"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "new_ads_launched",
                        "creative_or_copy_updated",
                        "targeting_updated",
                        "budget_updated",
                        "campaign_or_adset_updated",
                        "ads_paused_or_restarted",
                        "optimization_made",
                        "other"
                      ]
                    },
                    "minItems": 1
                  },
                  "details": {
                    "type": "string",
                    "maxLength": 10000
                  },
                  "context": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "campaignId": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 500
                      },
                      "campaignName": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 500
                      },
                      "adSetId": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 500
                      },
                      "adSetName": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 500
                      },
                      "adId": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 500
                      },
                      "adName": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 500
                      }
                    }
                  }
                },
                "required": [
                  "categories"
                ]
              }
            }
          }
        }
      }
    },
    "/api/ads-manager/overview": {
      "get": {
        "operationId": "get-api-ads-manager-overview",
        "tags": [
          "ads-manager"
        ],
        "summary": "GET /api/ads-manager/overview",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner"
          ],
          "handler": "requireAdsManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/ads-manager/routes.ts",
          "line": 57,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/ads-manager/routes.ts#L57"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/ads-manager/refresh": {
      "post": {
        "operationId": "post-api-ads-manager-refresh",
        "tags": [
          "ads-manager"
        ],
        "summary": "POST /api/ads-manager/refresh",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer"
          ],
          "handler": "requireAdsManagerWrite",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/ads-manager/routes.ts",
          "line": 112,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/ads-manager/routes.ts#L112"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/agencies": {
      "get": {
        "operationId": "get-api-agencies",
        "tags": [
          "agencies"
        ],
        "summary": "GET /api/agencies",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/agencies/routes.ts",
          "line": 101,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/agencies/routes.ts#L101"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-agencies",
        "tags": [
          "agencies"
        ],
        "summary": "POST /api/agencies",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/agencies/routes.ts",
          "line": 109,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/agencies/routes.ts#L109"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "agencyName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "slug": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "logoUrl": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "faviconUrl": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "themeColor": {
                    "type": "string"
                  },
                  "accentColor": {
                    "type": "string"
                  },
                  "websiteUrl": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "supportName": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "supportEmail": {
                    "type": "string",
                    "format": "email"
                  },
                  "communicationTemplates": {
                    "type": "object",
                    "properties": {
                      "newClientWelcome": {
                        "type": "string",
                        "maxLength": 10000
                      },
                      "appointmentNotification": {
                        "type": "string",
                        "maxLength": 5000
                      },
                      "metaAccessLost": {
                        "type": "string",
                        "maxLength": 5000
                      },
                      "metaPaymentIssue": {
                        "type": "string",
                        "maxLength": 5000
                      }
                    }
                  }
                },
                "required": [
                  "agencyName",
                  "slug"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/agencies/{id}": {
      "get": {
        "operationId": "get-api-agencies-id",
        "tags": [
          "agencies"
        ],
        "summary": "GET /api/agencies/:id",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/agencies/routes.ts",
          "line": 113,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/agencies/routes.ts#L113"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-agencies-id",
        "tags": [
          "agencies"
        ],
        "summary": "PATCH /api/agencies/:id",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/agencies/routes.ts",
          "line": 118,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/agencies/routes.ts#L118"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "agencyName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "slug": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "logoUrl": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "faviconUrl": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "themeColor": {
                    "type": "string"
                  },
                  "accentColor": {
                    "type": "string"
                  },
                  "websiteUrl": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "supportName": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "supportEmail": {
                    "type": "string",
                    "format": "email"
                  },
                  "communicationTemplates": {
                    "type": "object",
                    "properties": {
                      "newClientWelcome": {
                        "type": "string",
                        "maxLength": 10000
                      },
                      "appointmentNotification": {
                        "type": "string",
                        "maxLength": 5000
                      },
                      "metaAccessLost": {
                        "type": "string",
                        "maxLength": 5000
                      },
                      "metaPaymentIssue": {
                        "type": "string",
                        "maxLength": 5000
                      }
                    }
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/agencies/{id}/clients": {
      "post": {
        "operationId": "post-api-agencies-id-clients",
        "tags": [
          "agencies"
        ],
        "summary": "POST /api/agencies/:id/clients",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/agencies/routes.ts",
          "line": 163,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/agencies/routes.ts#L163"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientId": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "clientId"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/agencies/{id}/integrations": {
      "get": {
        "operationId": "get-api-agencies-id-integrations",
        "tags": [
          "agencies"
        ],
        "summary": "GET /api/agencies/:id/integrations",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/agencies/routes.ts",
          "line": 263,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/agencies/routes.ts#L263"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/agencies/{id}/integrations/{key}": {
      "delete": {
        "operationId": "delete-api-agencies-id-integrations-key",
        "tags": [
          "agencies"
        ],
        "summary": "DELETE /api/agencies/:id/integrations/:key",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "slack",
                "meta",
                "stripe",
                "ghl"
              ]
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/agencies/routes.ts",
          "line": 288,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/agencies/routes.ts#L288"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "put": {
        "operationId": "put-api-agencies-id-integrations-key",
        "tags": [
          "agencies"
        ],
        "summary": "PUT /api/agencies/:id/integrations/:key",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "slack",
                "meta",
                "stripe",
                "ghl"
              ]
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/agencies/routes.ts",
          "line": 268,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/agencies/routes.ts#L268"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 2000,
                    "writeOnly": true
                  },
                  "secretKey": {
                    "type": "string",
                    "maxLength": 500,
                    "writeOnly": true
                  },
                  "webhookSecret": {
                    "type": "string",
                    "maxLength": 500,
                    "writeOnly": true
                  },
                  "privateKey": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "locationId": {
                    "type": "string",
                    "maxLength": 200
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/agencies/{id}/integrations/fathom/recheck": {
      "post": {
        "operationId": "post-api-agencies-id-integrations-fathom-recheck",
        "tags": [
          "agencies"
        ],
        "summary": "POST /api/agencies/:id/integrations/fathom/recheck",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/agencies/routes.ts",
          "line": 294,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/agencies/routes.ts#L294"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/agencies/{id}/logo": {
      "post": {
        "operationId": "post-api-agencies-id-logo",
        "tags": [
          "agencies"
        ],
        "summary": "POST /api/agencies/:id/logo",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/agencies/routes.ts",
          "line": 142,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/agencies/routes.ts#L142"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 180
                  },
                  "dataUrl": {
                    "type": "string",
                    "minLength": 1
                  },
                  "useAsFavicon": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "fileName",
                  "dataUrl"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/agencies/{id}/members": {
      "post": {
        "operationId": "post-api-agencies-id-members",
        "tags": [
          "agencies"
        ],
        "summary": "POST /api/agencies/:id/members",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/agencies/routes.ts",
          "line": 170,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/agencies/routes.ts#L170"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "collaborator",
                      "viewer"
                    ]
                  },
                  "permissions": {
                    "type": "object",
                    "properties": {
                      "pages": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": false,
                        "x-enj-additional-validation": true
                      },
                      "canSubmitAppointmentOutcomes": {
                        "type": "boolean"
                      },
                      "canCreateTickets": {
                        "type": "boolean"
                      },
                      "canCommentOnTickets": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "required": [
                  "email"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/agencies/{id}/members/{memberId}": {
      "delete": {
        "operationId": "delete-api-agencies-id-members-memberId",
        "tags": [
          "agencies"
        ],
        "summary": "DELETE /api/agencies/:id/members/:memberId",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "memberId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/agencies/routes.ts",
          "line": 221,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/agencies/routes.ts#L221"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-agencies-id-members-memberId",
        "tags": [
          "agencies"
        ],
        "summary": "PATCH /api/agencies/:id/members/:memberId",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "memberId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/agencies/routes.ts",
          "line": 232,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/agencies/routes.ts#L232"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "role": {
                    "type": "string",
                    "enum": [
                      "collaborator",
                      "viewer"
                    ]
                  },
                  "permissions": {
                    "type": "object",
                    "properties": {
                      "pages": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": false,
                        "x-enj-additional-validation": true
                      },
                      "canSubmitAppointmentOutcomes": {
                        "type": "boolean"
                      },
                      "canCreateTickets": {
                        "type": "boolean"
                      },
                      "canCommentOnTickets": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/agencies/{id}/portal-domain": {
      "delete": {
        "operationId": "delete-api-agencies-id-portal-domain",
        "tags": [
          "agencies"
        ],
        "summary": "DELETE /api/agencies/:id/portal-domain",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/agencies/routes.ts",
          "line": 136,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/agencies/routes.ts#L136"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-agencies-id-portal-domain",
        "tags": [
          "agencies"
        ],
        "summary": "POST /api/agencies/:id/portal-domain",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/agencies/routes.ts",
          "line": 123,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/agencies/routes.ts#L123"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "hostname": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 253
                  }
                },
                "required": [
                  "hostname"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/agencies/{id}/portal-domain/recheck": {
      "post": {
        "operationId": "post-api-agencies-id-portal-domain-recheck",
        "tags": [
          "agencies"
        ],
        "summary": "POST /api/agencies/:id/portal-domain/recheck",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/agencies/routes.ts",
          "line": 130,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/agencies/routes.ts#L130"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/agencies/navigation": {
      "get": {
        "operationId": "get-api-agencies-navigation",
        "tags": [
          "agencies"
        ],
        "summary": "GET /api/agencies/navigation",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireUser",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/agencies/routes.ts",
          "line": 86,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/agencies/routes.ts#L86"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/ai-agent/admin-config": {
      "get": {
        "operationId": "get-api-ai-agent-admin-config",
        "tags": [
          "ai-agent"
        ],
        "summary": "GET /api/ai-agent/admin-config",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/ai-agent/routes.ts",
          "line": 51,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/ai-agent/routes.ts#L51"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-ai-agent-admin-config",
        "tags": [
          "ai-agent"
        ],
        "summary": "PATCH /api/ai-agent/admin-config",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/ai-agent/routes.ts",
          "line": 55,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/ai-agent/routes.ts#L55"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 60
                  },
                  "iconUrl": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "greeting": {
                    "type": "string",
                    "maxLength": 700
                  },
                  "basePrompt": {
                    "type": "string",
                    "maxLength": 5000
                  },
                  "model": {
                    "type": "string",
                    "maxLength": 80
                  },
                  "responseStyle": {
                    "type": "string",
                    "enum": [
                      "concise",
                      "balanced",
                      "detailed"
                    ]
                  },
                  "connectedSources": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/ai-agent/chat": {
      "post": {
        "operationId": "post-api-ai-agent-chat",
        "tags": [
          "ai-agent"
        ],
        "summary": "POST /api/ai-agent/chat",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireUser",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/ai-agent/routes.ts",
          "line": 60,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/ai-agent/routes.ts#L60"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  },
                  "threadId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "message"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/ai-agent/chat/stream": {
      "post": {
        "operationId": "post-api-ai-agent-chat-stream",
        "tags": [
          "ai-agent"
        ],
        "summary": "POST /api/ai-agent/chat/stream",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireUser",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/ai-agent/routes.ts",
          "line": 70,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/ai-agent/routes.ts#L70"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  },
                  "threadId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "message"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/ai-agent/config": {
      "get": {
        "operationId": "get-api-ai-agent-config",
        "tags": [
          "ai-agent"
        ],
        "summary": "GET /api/ai-agent/config",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireUser",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/ai-agent/routes.ts",
          "line": 47,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/ai-agent/routes.ts#L47"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/ai-agent/icon": {
      "post": {
        "operationId": "post-api-ai-agent-icon",
        "tags": [
          "ai-agent"
        ],
        "summary": "POST /api/ai-agent/icon",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/ai-agent/routes.ts",
          "line": 99,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/ai-agent/routes.ts#L99"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 180
                  },
                  "dataUrl": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "fileName",
                  "dataUrl"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/auth/2fa/setup/verify": {
      "post": {
        "operationId": "post-api-auth-2fa-setup-verify",
        "tags": [
          "auth"
        ],
        "summary": "POST /api/auth/2fa/setup/verify",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/auth/routes.ts",
          "line": 131,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/auth/routes.ts#L131"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "challengeId": {
                    "type": "string",
                    "minLength": 16
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20
                  },
                  "trustBrowser": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "challengeId",
                  "code"
                ]
              }
            }
          }
        }
      }
    },
    "/api/auth/2fa/verify": {
      "post": {
        "operationId": "post-api-auth-2fa-verify",
        "tags": [
          "auth"
        ],
        "summary": "POST /api/auth/2fa/verify",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/auth/routes.ts",
          "line": 144,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/auth/routes.ts#L144"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "challengeId": {
                    "type": "string",
                    "minLength": 16
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20
                  },
                  "trustBrowser": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "challengeId",
                  "code"
                ]
              }
            }
          }
        }
      }
    },
    "/api/auth/forgot-password": {
      "post": {
        "operationId": "post-api-auth-forgot-password",
        "tags": [
          "auth"
        ],
        "summary": "POST /api/auth/forgot-password",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/auth/routes.ts",
          "line": 157,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/auth/routes.ts#L157"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  }
                },
                "required": [
                  "email"
                ]
              }
            }
          }
        }
      }
    },
    "/api/auth/login": {
      "post": {
        "operationId": "post-api-auth-login",
        "tags": [
          "auth"
        ],
        "summary": "POST /api/auth/login",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/auth/routes.ts",
          "line": 92,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/auth/routes.ts#L92"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "password": {
                    "type": "string",
                    "minLength": 1,
                    "writeOnly": true
                  }
                },
                "required": [
                  "email",
                  "password"
                ]
              }
            }
          }
        }
      }
    },
    "/api/auth/logout": {
      "post": {
        "operationId": "post-api-auth-logout",
        "tags": [
          "auth"
        ],
        "summary": "POST /api/auth/logout",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/auth/routes.ts",
          "line": 197,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/auth/routes.ts#L197"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/auth/me": {
      "get": {
        "operationId": "get-api-auth-me",
        "tags": [
          "auth"
        ],
        "summary": "GET /api/auth/me",
        "description": "Read method; may have cache or collection side effects. Authenticated Management identity. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Authenticated Management identity",
          "roles": [],
          "handler": null,
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/auth/routes.ts",
          "line": 202,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/auth/routes.ts#L202"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/auth/password-setup/complete": {
      "post": {
        "operationId": "post-api-auth-password-setup-complete",
        "tags": [
          "auth"
        ],
        "summary": "POST /api/auth/password-setup/complete",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/auth/routes.ts",
          "line": 126,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/auth/routes.ts#L126"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "challengeId": {
                    "type": "string",
                    "minLength": 16
                  },
                  "password": {
                    "type": "string",
                    "minLength": 1,
                    "writeOnly": true
                  }
                },
                "required": [
                  "challengeId",
                  "password"
                ]
              }
            }
          }
        }
      }
    },
    "/api/auth/portal-brand": {
      "get": {
        "operationId": "get-api-auth-portal-brand",
        "tags": [
          "auth"
        ],
        "summary": "GET /api/auth/portal-brand",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "host",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 253
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/auth/routes.ts",
          "line": 86,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/auth/routes.ts#L86"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/auth/reset-password/complete": {
      "post": {
        "operationId": "post-api-auth-reset-password-complete",
        "tags": [
          "auth"
        ],
        "summary": "POST /api/auth/reset-password/complete",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/auth/routes.ts",
          "line": 192,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/auth/routes.ts#L192"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "minLength": 16,
                    "writeOnly": true
                  },
                  "password": {
                    "type": "string",
                    "minLength": 1,
                    "writeOnly": true
                  }
                },
                "required": [
                  "token",
                  "password"
                ]
              }
            }
          }
        }
      }
    },
    "/api/auth/reset-password/validate": {
      "post": {
        "operationId": "post-api-auth-reset-password-validate",
        "tags": [
          "auth"
        ],
        "summary": "POST /api/auth/reset-password/validate",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/auth/routes.ts",
          "line": 174,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/auth/routes.ts#L174"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "minLength": 16,
                    "writeOnly": true
                  }
                },
                "required": [
                  "token"
                ]
              }
            }
          }
        }
      }
    },
    "/api/authentication/accounts": {
      "get": {
        "operationId": "get-api-authentication-accounts",
        "tags": [
          "authentication"
        ],
        "summary": "GET /api/authentication/accounts",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireAuthentication",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/authentication/routes.ts",
          "line": 46,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/authentication/routes.ts#L46"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-authentication-accounts",
        "tags": [
          "authentication"
        ],
        "summary": "POST /api/authentication/accounts",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/authentication/routes.ts",
          "line": 50,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/authentication/routes.ts#L50"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "secret": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 240,
                    "writeOnly": true
                  },
                  "issuer": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 120
                  },
                  "icon": {
                    "type": "string",
                    "enum": [
                      "key",
                      "google",
                      "facebook",
                      "instagram",
                      "microsoft",
                      "apple",
                      "x",
                      "linkedin",
                      "slack",
                      "github"
                    ]
                  },
                  "visibleToRoles": {
                    "type": [
                      "array",
                      "null"
                    ],
                    "items": {
                      "type": "string",
                      "enum": [
                        "admin",
                        "sales",
                        "mediabuyer",
                        "csm",
                        "staff",
                        "setter"
                      ]
                    }
                  },
                  "period": {
                    "type": "integer"
                  },
                  "digits": {
                    "type": "integer"
                  },
                  "algorithm": {
                    "type": "string",
                    "enum": [
                      "SHA1",
                      "SHA256",
                      "SHA512"
                    ]
                  }
                },
                "required": [
                  "label",
                  "secret"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/authentication/accounts/{id}": {
      "delete": {
        "operationId": "delete-api-authentication-accounts-id",
        "tags": [
          "authentication"
        ],
        "summary": "DELETE /api/authentication/accounts/:id",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/authentication/routes.ts",
          "line": 68,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/authentication/routes.ts#L68"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-authentication-accounts-id",
        "tags": [
          "authentication"
        ],
        "summary": "PATCH /api/authentication/accounts/:id",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/authentication/routes.ts",
          "line": 58,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/authentication/routes.ts#L58"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "secret": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 240,
                    "writeOnly": true
                  },
                  "issuer": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 120
                  },
                  "icon": {
                    "type": "string",
                    "enum": [
                      "key",
                      "google",
                      "facebook",
                      "instagram",
                      "microsoft",
                      "apple",
                      "x",
                      "linkedin",
                      "slack",
                      "github"
                    ]
                  },
                  "visibleToRoles": {
                    "type": [
                      "array",
                      "null"
                    ],
                    "items": {
                      "type": "string",
                      "enum": [
                        "admin",
                        "sales",
                        "mediabuyer",
                        "csm",
                        "staff",
                        "setter"
                      ]
                    }
                  },
                  "period": {
                    "type": "integer"
                  },
                  "digits": {
                    "type": "integer"
                  },
                  "algorithm": {
                    "type": "string",
                    "enum": [
                      "SHA1",
                      "SHA256",
                      "SHA512"
                    ]
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/automations": {
      "get": {
        "operationId": "get-api-automations",
        "tags": [
          "automations"
        ],
        "summary": "GET /api/automations",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner"
          ],
          "handler": "requireSignedIn",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/automations/routes.ts",
          "line": 93,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/automations/routes.ts#L93"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/automations/{id}": {
      "patch": {
        "operationId": "patch-api-automations-id",
        "tags": [
          "automations"
        ],
        "summary": "PATCH /api/automations/:id",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner"
          ],
          "handler": "requireSignedIn",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/automations/routes.ts",
          "line": 97,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/automations/routes.ts#L97"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "values": {
                    "type": "object",
                    "additionalProperties": {
                      "oneOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "string",
                          "maxLength": 20
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "admin",
                              "csm",
                              "mediabuyer",
                              "staff",
                              "sales",
                              "setter"
                            ]
                          }
                        }
                      ]
                    }
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/automations/{id}/activity": {
      "get": {
        "operationId": "get-api-automations-id-activity",
        "tags": [
          "automations"
        ],
        "summary": "GET /api/automations/:id/activity",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner"
          ],
          "handler": "requireSignedIn",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/automations/routes.ts",
          "line": 171,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/automations/routes.ts#L171"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/automations/activity": {
      "get": {
        "operationId": "get-api-automations-activity",
        "tags": [
          "automations"
        ],
        "summary": "GET /api/automations/activity",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner"
          ],
          "handler": "requireSignedIn",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/automations/routes.ts",
          "line": 111,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/automations/routes.ts#L111"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/automations/custom": {
      "post": {
        "operationId": "post-api-automations-custom",
        "tags": [
          "automations"
        ],
        "summary": "POST /api/automations/custom",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner"
          ],
          "handler": "requireSignedIn",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/automations/routes.ts",
          "line": 117,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/automations/routes.ts#L117"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/automations/custom/{id}": {
      "delete": {
        "operationId": "delete-api-automations-custom-id",
        "tags": [
          "automations"
        ],
        "summary": "DELETE /api/automations/custom/:id",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner"
          ],
          "handler": "requireSignedIn",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/automations/routes.ts",
          "line": 158,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/automations/routes.ts#L158"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "get": {
        "operationId": "get-api-automations-custom-id",
        "tags": [
          "automations"
        ],
        "summary": "GET /api/automations/custom/:id",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner"
          ],
          "handler": "requireSignedIn",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/automations/routes.ts",
          "line": 123,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/automations/routes.ts#L123"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-automations-custom-id",
        "tags": [
          "automations"
        ],
        "summary": "PATCH /api/automations/custom/:id",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner"
          ],
          "handler": "requireSignedIn",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/automations/routes.ts",
          "line": 152,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/automations/routes.ts#L152"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "enabled"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/automations/custom/{id}/discard": {
      "post": {
        "operationId": "post-api-automations-custom-id-discard",
        "tags": [
          "automations"
        ],
        "summary": "POST /api/automations/custom/:id/discard",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner"
          ],
          "handler": "requireSignedIn",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/automations/routes.ts",
          "line": 147,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/automations/routes.ts#L147"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/automations/custom/{id}/draft": {
      "put": {
        "operationId": "put-api-automations-custom-id-draft",
        "tags": [
          "automations"
        ],
        "summary": "PUT /api/automations/custom/:id/draft",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner"
          ],
          "handler": "requireSignedIn",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/automations/routes.ts",
          "line": 128,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/automations/routes.ts#L128"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 80
                  },
                  "draft": {}
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/automations/custom/{id}/matches": {
      "get": {
        "operationId": "get-api-automations-custom-id-matches",
        "tags": [
          "automations"
        ],
        "summary": "GET /api/automations/custom/:id/matches",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner"
          ],
          "handler": "requireSignedIn",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/automations/routes.ts",
          "line": 135,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/automations/routes.ts#L135"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/automations/custom/{id}/publish": {
      "post": {
        "operationId": "post-api-automations-custom-id-publish",
        "tags": [
          "automations"
        ],
        "summary": "POST /api/automations/custom/:id/publish",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner"
          ],
          "handler": "requireSignedIn",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/automations/routes.ts",
          "line": 140,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/automations/routes.ts#L140"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/automations/custom/{id}/test": {
      "post": {
        "operationId": "post-api-automations-custom-id-test",
        "tags": [
          "automations"
        ],
        "summary": "POST /api/automations/custom/:id/test",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner"
          ],
          "handler": "requireSignedIn",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/automations/routes.ts",
          "line": 163,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/automations/routes.ts#L163"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40
                  }
                },
                "required": [
                  "clientId"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/automations/layout": {
      "put": {
        "operationId": "put-api-automations-layout",
        "tags": [
          "automations"
        ],
        "summary": "PUT /api/automations/layout",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner"
          ],
          "handler": "requireSignedIn",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/automations/routes.ts",
          "line": 105,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/automations/routes.ts#L105"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "folders": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 60
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 60
                        },
                        "automationIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 80
                          },
                          "maxItems": 200
                        },
                        "icon": {
                          "type": "string",
                          "enum": [
                            "folder",
                            "users",
                            "megaphone",
                            "message",
                            "zap",
                            "rocket",
                            "briefcase",
                            "shield",
                            "star",
                            "chart",
                            "calendar",
                            "dollar",
                            "bell",
                            "wrench",
                            "heart",
                            "globe",
                            "target",
                            "mail"
                          ]
                        },
                        "color": {
                          "type": "string",
                          "enum": [
                            "slate",
                            "blue",
                            "teal",
                            "green",
                            "amber",
                            "orange",
                            "red",
                            "pink",
                            "violet"
                          ]
                        },
                        "parentId": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "minLength": 1,
                          "maxLength": 60
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "automationIds"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 80
                  },
                  "sections": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 60
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 60
                        },
                        "color": {
                          "type": "string",
                          "maxLength": 20
                        },
                        "icon": {
                          "type": "string",
                          "maxLength": 20
                        },
                        "folderIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 60
                          },
                          "maxItems": 80
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ]
                    },
                    "maxItems": 30
                  }
                },
                "required": [
                  "folders"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/billing/clients/{clientId}/appointments": {
      "get": {
        "operationId": "get-api-billing-clients-clientId-appointments",
        "tags": [
          "billing"
        ],
        "summary": "GET /api/billing/clients/:clientId/appointments",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter"
          ],
          "handler": "requireBilling",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/billing/routes.ts",
          "line": 144,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/billing/routes.ts#L144"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/billing/clients/{clientId}/appointments/{appointmentId}/report": {
      "post": {
        "operationId": "post-api-billing-clients-clientId-appointments-appointmentId-report",
        "tags": [
          "billing"
        ],
        "summary": "POST /api/billing/clients/:clientId/appointments/:appointmentId/report",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "appointmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter"
          ],
          "handler": "requireBilling",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/billing/routes.ts",
          "line": 178,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/billing/routes.ts#L178"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "no_show",
                      "unqualified"
                    ]
                  },
                  "recordingUrl": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "details": {
                    "type": "string",
                    "maxLength": 2000
                  }
                },
                "required": [
                  "status"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/billing/clients/{clientId}/journal": {
      "post": {
        "operationId": "post-api-billing-clients-clientId-journal",
        "tags": [
          "billing"
        ],
        "summary": "POST /api/billing/clients/:clientId/journal",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "sales",
            "setter"
          ],
          "handler": "requireJournalWriter",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/billing/routes.ts",
          "line": 222,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/billing/routes.ts#L222"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "poor_pickup_rate",
                        "not_qualified",
                        "other"
                      ]
                    },
                    "minItems": 1
                  },
                  "details": {
                    "type": "string",
                    "maxLength": 10000
                  }
                },
                "required": [
                  "categories"
                ]
              }
            }
          }
        }
      }
    },
    "/api/billing/clients/{clientId}/leads": {
      "get": {
        "operationId": "get-api-billing-clients-clientId-leads",
        "tags": [
          "billing"
        ],
        "summary": "GET /api/billing/clients/:clientId/leads",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter"
          ],
          "handler": "requireBilling",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/billing/routes.ts",
          "line": 161,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/billing/routes.ts#L161"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/billing/journal": {
      "get": {
        "operationId": "get-api-billing-journal",
        "tags": [
          "billing"
        ],
        "summary": "GET /api/billing/journal",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "statuses",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "poor_pickup_rate",
                "not_qualified",
                "other"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter"
          ],
          "handler": "requireBillingWrite",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/billing/routes.ts",
          "line": 204,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/billing/routes.ts#L204"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/billing/journal/{entryId}": {
      "delete": {
        "operationId": "delete-api-billing-journal-entryId",
        "tags": [
          "billing"
        ],
        "summary": "DELETE /api/billing/journal/:entryId",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "entryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/billing/routes.ts",
          "line": 251,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/billing/routes.ts#L251"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-billing-journal-entryId",
        "tags": [
          "billing"
        ],
        "summary": "PATCH /api/billing/journal/:entryId",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "entryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter"
          ],
          "handler": "requireBillingWrite",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/billing/routes.ts",
          "line": 236,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/billing/routes.ts#L236"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "poor_pickup_rate",
                        "not_qualified",
                        "other"
                      ]
                    },
                    "minItems": 1
                  },
                  "details": {
                    "type": "string",
                    "maxLength": 10000
                  }
                },
                "required": [
                  "categories"
                ]
              }
            }
          }
        }
      }
    },
    "/api/billing/overview": {
      "get": {
        "operationId": "get-api-billing-overview",
        "tags": [
          "billing"
        ],
        "summary": "GET /api/billing/overview",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "range",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter"
          ],
          "handler": "requireBilling",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/billing/routes.ts",
          "line": 89,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/billing/routes.ts#L89"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/billing/refresh": {
      "post": {
        "operationId": "post-api-billing-refresh",
        "tags": [
          "billing"
        ],
        "summary": "POST /api/billing/refresh",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter"
          ],
          "handler": "requireBillingWrite",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/billing/routes.ts",
          "line": 116,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/billing/routes.ts#L116"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/client-context/calls": {
      "get": {
        "operationId": "get-api-client-context-calls",
        "tags": [
          "client-context"
        ],
        "summary": "GET /api/client-context/calls",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 500
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 250
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireClientCalls",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/client-context/routes.ts",
          "line": 29,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-context/routes.ts#L29"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/client-context/calls/{recordingId}": {
      "get": {
        "operationId": "get-api-client-context-calls-recordingId",
        "tags": [
          "client-context"
        ],
        "summary": "GET /api/client-context/calls/:recordingId",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "recordingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            }
          },
          {
            "name": "clientId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireClientCalls",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/client-context/routes.ts",
          "line": 42,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-context/routes.ts#L42"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/client-delivery/clients": {
      "get": {
        "operationId": "get-api-client-delivery-clients",
        "tags": [
          "client-delivery"
        ],
        "summary": "GET /api/client-delivery/clients",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireClientDelivery",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/client-delivery/routes.ts",
          "line": 94,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-delivery/routes.ts#L94"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/client-delivery/clients/{id}": {
      "patch": {
        "operationId": "patch-api-client-delivery-clients-id",
        "tags": [
          "client-delivery"
        ],
        "summary": "PATCH /api/client-delivery/clients/:id",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireClientDeliveryWrite",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/client-delivery/routes.ts",
          "line": 121,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-delivery/routes.ts#L121"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientName": {
                    "type": "string",
                    "minLength": 1
                  },
                  "primaryContactName": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "churnReason": {
                    "type": "string",
                    "maxLength": 1000
                  },
                  "reviewCallDate": {
                    "type": "string"
                  },
                  "kickoffCallDate": {
                    "type": "string"
                  },
                  "onboardingCallDate": {
                    "type": "string"
                  },
                  "newClientMessage": {
                    "type": "string"
                  },
                  "googleDrive": {
                    "type": "string"
                  },
                  "offerBuildout": {
                    "type": "string"
                  },
                  "a2pStatus": {
                    "type": "string"
                  },
                  "staticAds": {
                    "type": "string"
                  },
                  "buildGhl": {
                    "type": "string"
                  },
                  "setupPixel": {
                    "type": "string"
                  },
                  "updateClientPortal": {
                    "type": "string"
                  },
                  "landingPage": {
                    "type": "string"
                  },
                  "landingPageUrls": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 2048
                    },
                    "maxItems": 20
                  },
                  "landingPageUrl": {
                    "type": "string"
                  },
                  "ghlLocationId": {
                    "type": "string"
                  },
                  "ghlPrivateKey": {
                    "type": "string"
                  },
                  "ghlAccount": {
                    "type": "string"
                  },
                  "metaAccountName": {
                    "type": "string"
                  },
                  "adAccountLink": {
                    "type": "string"
                  },
                  "metaPixelCode": {
                    "type": "string"
                  },
                  "pixelScript": {
                    "type": "string"
                  },
                  "clientWebsite": {
                    "type": "string"
                  },
                  "servicesOffered": {
                    "type": "string"
                  },
                  "targetNiche": {
                    "type": "string"
                  },
                  "targetAudience": {
                    "type": "string"
                  },
                  "callTakers": {
                    "type": "string"
                  },
                  "startEndDate": {
                    "type": "string"
                  },
                  "monthlyRetainer": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "setupFee": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "setupFeeCollected": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "dailyAdsBudget": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "clientDeal": {
                    "type": "string"
                  },
                  "contractSigned": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "needsSetter": {
                    "type": "string"
                  },
                  "setterAdded": {
                    "type": "boolean"
                  },
                  "assignedSetter": {
                    "type": "string"
                  },
                  "assignedSetterId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "completedMeeting": {
                    "type": "string"
                  },
                  "meetingLocation": {
                    "type": "string"
                  },
                  "notes": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/client-delivery/clients/{id}/meta-tracking": {
      "get": {
        "operationId": "get-api-client-delivery-clients-id-meta-tracking",
        "tags": [
          "client-delivery"
        ],
        "summary": "GET /api/client-delivery/clients/:id/meta-tracking",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "staff"
          ],
          "handler": "inline role guard",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/client-delivery/metaTrackingRoutes.ts",
          "line": 19,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-delivery/metaTrackingRoutes.ts#L19"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-client-delivery-clients-id-meta-tracking",
        "tags": [
          "client-delivery"
        ],
        "summary": "PATCH /api/client-delivery/clients/:id/meta-tracking",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer"
          ],
          "handler": "inline role guard",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/client-delivery/metaTrackingRoutes.ts",
          "line": 25,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-delivery/metaTrackingRoutes.ts#L25"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "pixelCode": {
                    "type": "string",
                    "maxLength": 20000
                  },
                  "datasetId": {
                    "type": "string",
                    "x-enj-additional-validation": true
                  },
                  "accessToken": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 5000,
                    "x-enj-additional-validation": true,
                    "writeOnly": true
                  },
                  "expectedUpdatedAt": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time"
                  }
                },
                "required": [
                  "expectedUpdatedAt"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/client-delivery/import/notion-csv": {
      "post": {
        "operationId": "post-api-client-delivery-import-notion-csv",
        "tags": [
          "client-delivery"
        ],
        "summary": "POST /api/client-delivery/import/notion-csv",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireAssignmentAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/client-delivery/routes.ts",
          "line": 140,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-delivery/routes.ts#L140"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "csvText": {
                    "type": "string",
                    "minLength": 1
                  },
                  "sourceName": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "csvText"
                ]
              }
            }
          }
        }
      }
    },
    "/api/client-delivery/views/{view}": {
      "get": {
        "operationId": "get-api-client-delivery-views-view",
        "tags": [
          "client-delivery"
        ],
        "summary": "GET /api/client-delivery/views/:view",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "view",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "onboarding",
                "strategy",
                "setup-phase",
                "client-board",
                "setters",
                "offer-billing",
                "call-manager",
                "access-control",
                "all-clients"
              ]
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireClientDelivery",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/client-delivery/routes.ts",
          "line": 111,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-delivery/routes.ts#L111"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/client-videos/{id}": {
      "delete": {
        "operationId": "delete-api-client-videos-id",
        "tags": [
          "client-videos"
        ],
        "summary": "DELETE /api/client-videos/:id",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireManager",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/client-videos/routes.ts",
          "line": 215,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-videos/routes.ts#L215"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirmation": {
                    "type": "string",
                    "enum": [
                      "DELETE"
                    ]
                  }
                },
                "required": [
                  "confirmation"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "patch-api-client-videos-id",
        "tags": [
          "client-videos"
        ],
        "summary": "PATCH /api/client-videos/:id",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireManager",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/client-videos/routes.ts",
          "line": 116,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-videos/routes.ts#L116"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 1000
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/client-videos/{id}/analysis": {
      "get": {
        "operationId": "get-api-client-videos-id-analysis",
        "tags": [
          "client-videos"
        ],
        "summary": "GET /api/client-videos/:id/analysis",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireManager",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/client-videos/routes.ts",
          "line": 179,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-videos/routes.ts#L179"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-client-videos-id-analysis",
        "tags": [
          "client-videos"
        ],
        "summary": "POST /api/client-videos/:id/analysis",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireManager",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/client-videos/routes.ts",
          "line": 185,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-videos/routes.ts#L185"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/client-videos/{id}/download": {
      "get": {
        "operationId": "get-api-client-videos-id-download",
        "tags": [
          "client-videos"
        ],
        "summary": "GET /api/client-videos/:id/download",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireManager",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/client-videos/routes.ts",
          "line": 167,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-videos/routes.ts#L167"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/client-videos/{id}/finalize": {
      "post": {
        "operationId": "post-api-client-videos-id-finalize",
        "tags": [
          "client-videos"
        ],
        "summary": "POST /api/client-videos/:id/finalize",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireManager",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/client-videos/routes.ts",
          "line": 144,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-videos/routes.ts#L144"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/client-videos/{id}/media": {
      "get": {
        "operationId": "get-api-client-videos-id-media",
        "tags": [
          "client-videos"
        ],
        "summary": "GET /api/client-videos/:id/media",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireManager",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/client-videos/routes.ts",
          "line": 156,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-videos/routes.ts#L156"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/client-videos/{id}/publish": {
      "post": {
        "operationId": "post-api-client-videos-id-publish",
        "tags": [
          "client-videos"
        ],
        "summary": "POST /api/client-videos/:id/publish",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireManager",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/client-videos/routes.ts",
          "line": 191,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-videos/routes.ts#L191"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/client-videos/{id}/unpublish": {
      "post": {
        "operationId": "post-api-client-videos-id-unpublish",
        "tags": [
          "client-videos"
        ],
        "summary": "POST /api/client-videos/:id/unpublish",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireManager",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/client-videos/routes.ts",
          "line": 203,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-videos/routes.ts#L203"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/client-videos/{id}/upload": {
      "post": {
        "operationId": "post-api-client-videos-id-upload",
        "tags": [
          "client-videos"
        ],
        "summary": "POST /api/client-videos/:id/upload",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireManager",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/client-videos/routes.ts",
          "line": 129,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-videos/routes.ts#L129"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 180
                  },
                  "mimeType": {
                    "type": "string",
                    "enum": [
                      "video/mp4",
                      "video/quicktime",
                      "video/webm"
                    ]
                  },
                  "sizeBytes": {
                    "type": "integer"
                  }
                },
                "required": [
                  "fileName",
                  "mimeType",
                  "sizeBytes"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/clients": {
      "get": {
        "operationId": "get-api-clients",
        "tags": [
          "clients"
        ],
        "summary": "GET /api/clients",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "compact",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireClients",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/clients/routes.ts",
          "line": 120,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/clients/routes.ts#L120"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/clients/{clientId}/videos": {
      "get": {
        "operationId": "get-api-clients-clientId-videos",
        "tags": [
          "client-videos"
        ],
        "summary": "GET /api/clients/:clientId/videos",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/client-videos/routes.ts",
          "line": 93,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-videos/routes.ts#L93"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-clients-clientId-videos",
        "tags": [
          "client-videos"
        ],
        "summary": "POST /api/clients/:clientId/videos",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/client-videos/routes.ts",
          "line": 102,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-videos/routes.ts#L102"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 1000
                  }
                },
                "required": [
                  "title"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/clients/{id}": {
      "delete": {
        "operationId": "delete-api-clients-id",
        "tags": [
          "clients"
        ],
        "summary": "DELETE /api/clients/:id",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/clients/routes.ts",
          "line": 450,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/clients/routes.ts#L450"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "patch-api-clients-id",
        "tags": [
          "clients"
        ],
        "summary": "PATCH /api/clients/:id",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireClientWrite",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/clients/routes.ts",
          "line": 154,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/clients/routes.ts#L154"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientName": {
                    "type": "string",
                    "minLength": 1
                  },
                  "primaryContactName": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "churnReason": {
                    "type": "string",
                    "maxLength": 1000
                  },
                  "reviewCallDate": {
                    "type": "string"
                  },
                  "kickoffCallDate": {
                    "type": "string"
                  },
                  "onboardingCallDate": {
                    "type": "string"
                  },
                  "newClientMessage": {
                    "type": "string"
                  },
                  "googleDrive": {
                    "type": "string"
                  },
                  "offerBuildout": {
                    "type": "string"
                  },
                  "a2pStatus": {
                    "type": "string"
                  },
                  "staticAds": {
                    "type": "string"
                  },
                  "buildGhl": {
                    "type": "string"
                  },
                  "setupPixel": {
                    "type": "string"
                  },
                  "updateClientPortal": {
                    "type": "string"
                  },
                  "landingPage": {
                    "type": "string"
                  },
                  "landingPageUrls": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 2048
                    },
                    "maxItems": 20
                  },
                  "landingPageUrl": {
                    "type": "string"
                  },
                  "ghlLocationId": {
                    "type": "string"
                  },
                  "ghlPrivateKey": {
                    "type": "string"
                  },
                  "ghlAccount": {
                    "type": "string"
                  },
                  "metaAccountName": {
                    "type": "string"
                  },
                  "adAccountLink": {
                    "type": "string"
                  },
                  "metaPixelCode": {
                    "type": "string"
                  },
                  "pixelScript": {
                    "type": "string"
                  },
                  "clientWebsite": {
                    "type": "string"
                  },
                  "servicesOffered": {
                    "type": "string"
                  },
                  "targetNiche": {
                    "type": "string"
                  },
                  "targetAudience": {
                    "type": "string"
                  },
                  "callTakers": {
                    "type": "string"
                  },
                  "startEndDate": {
                    "type": "string"
                  },
                  "monthlyRetainer": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "setupFee": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "setupFeeCollected": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "dailyAdsBudget": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "clientDeal": {
                    "type": "string"
                  },
                  "contractSigned": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "needsSetter": {
                    "type": "string"
                  },
                  "setterAdded": {
                    "type": "boolean"
                  },
                  "assignedSetter": {
                    "type": "string"
                  },
                  "assignedSetterId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "completedMeeting": {
                    "type": "string"
                  },
                  "meetingLocation": {
                    "type": "string"
                  },
                  "notes": {
                    "type": "string"
                  },
                  "slackChannelUrl": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/clients/{id}/brand-dna": {
      "get": {
        "operationId": "get-api-clients-id-brand-dna",
        "tags": [
          "clients"
        ],
        "summary": "GET /api/clients/:id/brand-dna",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireClients",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/clients/routes.ts",
          "line": 131,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/clients/routes.ts#L131"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-clients-id-brand-dna",
        "tags": [
          "clients"
        ],
        "summary": "PATCH /api/clients/:id/brand-dna",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireBrandWrite",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/clients/routes.ts",
          "line": 179,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/clients/routes.ts#L179"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/clients/{id}/brand-dna/assets/{assetId}": {
      "get": {
        "operationId": "get-api-clients-id-brand-dna-assets-assetId",
        "tags": [
          "clients"
        ],
        "summary": "GET /api/clients/:id/brand-dna/assets/:assetId",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "assetId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireClients",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/clients/routes.ts",
          "line": 207,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/clients/routes.ts#L207"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/clients/{id}/brand-dna/generate": {
      "post": {
        "operationId": "post-api-clients-id-brand-dna-generate",
        "tags": [
          "clients"
        ],
        "summary": "POST /api/clients/:id/brand-dna/generate",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireBrandWrite",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/clients/routes.ts",
          "line": 193,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/clients/routes.ts#L193"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/clients/{id}/campaigns": {
      "post": {
        "operationId": "post-api-clients-id-campaigns",
        "tags": [
          "clients"
        ],
        "summary": "POST /api/clients/:id/campaigns",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireClientWrite",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/clients/routes.ts",
          "line": 230,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/clients/routes.ts#L230"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/clients/{id}/campaigns/{campaignId}": {
      "delete": {
        "operationId": "delete-api-clients-id-campaigns-campaignId",
        "tags": [
          "clients"
        ],
        "summary": "DELETE /api/clients/:id/campaigns/:campaignId",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/clients/routes.ts",
          "line": 344,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/clients/routes.ts#L344"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirmation": {
                    "type": "string",
                    "enum": [
                      "DELETE"
                    ]
                  },
                  "reason": {
                    "type": "string"
                  }
                },
                "required": [
                  "confirmation"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "patch-api-clients-id-campaigns-campaignId",
        "tags": [
          "clients"
        ],
        "summary": "PATCH /api/clients/:id/campaigns/:campaignId",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireClientWrite",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/clients/routes.ts",
          "line": 244,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/clients/routes.ts#L244"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 80
                  },
                  "status": {
                    "type": "string",
                    "maxLength": 60
                  },
                  "churnReason": {
                    "type": "string",
                    "maxLength": 1000
                  },
                  "reviewCallDate": {
                    "type": "string"
                  },
                  "angle": {
                    "type": "string"
                  },
                  "offerBuildout": {
                    "type": "string"
                  },
                  "buildGhl": {
                    "type": "string"
                  },
                  "staticAds": {
                    "type": "string"
                  },
                  "landingPage": {
                    "type": "string"
                  },
                  "landingPageUrls": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 2048
                    },
                    "maxItems": 20
                  },
                  "landingPageUrl": {
                    "type": "string"
                  },
                  "targetNiche": {
                    "type": "string"
                  },
                  "targetAudience": {
                    "type": "string"
                  },
                  "metaCampaignId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/clients/{id}/campaigns/approve-strategy": {
      "post": {
        "operationId": "post-api-clients-id-campaigns-approve-strategy",
        "tags": [
          "clients"
        ],
        "summary": "POST /api/clients/:id/campaigns/approve-strategy",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireClientWrite",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/clients/routes.ts",
          "line": 311,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/clients/routes.ts#L311"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/clients/{id}/happiness": {
      "patch": {
        "operationId": "patch-api-clients-id-happiness",
        "tags": [
          "clients"
        ],
        "summary": "PATCH /api/clients/:id/happiness",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/clients/routes.ts",
          "line": 383,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/clients/routes.ts#L383"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "score": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 100
                  },
                  "reason": {
                    "type": "string",
                    "maxLength": 500
                  }
                },
                "required": [
                  "score"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/clients/{id}/happiness/resolve-trigger": {
      "post": {
        "operationId": "post-api-clients-id-happiness-resolve-trigger",
        "tags": [
          "clients"
        ],
        "summary": "POST /api/clients/:id/happiness/resolve-trigger",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/clients/routes.ts",
          "line": 436,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/clients/routes.ts#L436"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "triggerClass": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "triggerClass"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/clients/{id}/presence": {
      "post": {
        "operationId": "post-api-clients-id-presence",
        "tags": [
          "clients"
        ],
        "summary": "POST /api/clients/:id/presence",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireClientWrite",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/clients/routes.ts",
          "line": 463,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/clients/routes.ts#L463"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "field": {
                    "type": "string",
                    "minLength": 1
                  },
                  "label": {
                    "type": "string",
                    "minLength": 1
                  },
                  "state": {
                    "type": "string",
                    "enum": [
                      "editing",
                      "idle"
                    ]
                  }
                },
                "required": [
                  "field",
                  "label",
                  "state"
                ]
              }
            }
          }
        }
      }
    },
    "/api/clients/{id}/slack-channel/test": {
      "post": {
        "operationId": "post-api-clients-id-slack-channel-test",
        "tags": [
          "clients"
        ],
        "summary": "POST /api/clients/:id/slack-channel/test",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireClientWrite",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/clients/routes.ts",
          "line": 478,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/clients/routes.ts#L478"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "channel": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/clients/slack-channels/refresh": {
      "post": {
        "operationId": "post-api-clients-slack-channels-refresh",
        "tags": [
          "clients"
        ],
        "summary": "POST /api/clients/slack-channels/refresh",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/clients/routes.ts",
          "line": 143,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/clients/routes.ts#L143"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/creative-generator/assets": {
      "get": {
        "operationId": "get-api-creative-generator-assets",
        "tags": [
          "creative-generator"
        ],
        "summary": "GET /api/creative-generator/assets",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/creative-generator/routes.ts",
          "line": 72,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/creative-generator/routes.ts#L72"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/assets/{id}": {
      "delete": {
        "operationId": "delete-api-creative-generator-assets-id",
        "tags": [
          "creative-generator"
        ],
        "summary": "DELETE /api/creative-generator/assets/:id",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/creative-generator/routes.ts",
          "line": 128,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/creative-generator/routes.ts#L128"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-creative-generator-assets-id",
        "tags": [
          "creative-generator"
        ],
        "summary": "PATCH /api/creative-generator/assets/:id",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/creative-generator/routes.ts",
          "line": 120,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/creative-generator/routes.ts#L120"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "candidate",
                      "kept",
                      "discarded"
                    ]
                  }
                },
                "required": [
                  "status"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/creative-generator/assets/{id}/image": {
      "get": {
        "operationId": "get-api-creative-generator-assets-id-image",
        "tags": [
          "creative-generator"
        ],
        "summary": "GET /api/creative-generator/assets/:id/image",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/creative-generator/routes.ts",
          "line": 134,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/creative-generator/routes.ts#L134"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/config": {
      "get": {
        "operationId": "get-api-creative-generator-config",
        "tags": [
          "creative-generator"
        ],
        "summary": "GET /api/creative-generator/config",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/creative-generator/routes.ts",
          "line": 68,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/creative-generator/routes.ts#L68"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/generate": {
      "post": {
        "operationId": "post-api-creative-generator-generate",
        "tags": [
          "creative-generator"
        ],
        "summary": "POST /api/creative-generator/generate",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/creative-generator/routes.ts",
          "line": 94,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/creative-generator/routes.ts#L94"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 5000
                  },
                  "presetId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "model": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10
                  },
                  "size": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40
                  },
                  "quality": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40
                  },
                  "referenceAssetId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "clientId",
                  "prompt"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/creative-generator/motion-ads/assets": {
      "get": {
        "operationId": "get-api-creative-generator-motion-ads-assets",
        "tags": [
          "motion-ads"
        ],
        "summary": "GET /api/creative-generator/motion-ads/assets",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/motion-ads/routes.ts",
          "line": 111,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/motion-ads/routes.ts#L111"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-creative-generator-motion-ads-assets",
        "tags": [
          "motion-ads"
        ],
        "summary": "POST /api/creative-generator/motion-ads/assets",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/motion-ads/routes.ts",
          "line": 116,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/motion-ads/routes.ts#L116"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientId": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "minLength": 1
                  },
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 180
                  },
                  "dataUrl": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "clientId",
                  "fileName",
                  "dataUrl"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/creative-generator/motion-ads/assets/{id}": {
      "delete": {
        "operationId": "delete-api-creative-generator-motion-ads-assets-id",
        "tags": [
          "motion-ads"
        ],
        "summary": "DELETE /api/creative-generator/motion-ads/assets/:id",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/motion-ads/routes.ts",
          "line": 140,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/motion-ads/routes.ts#L140"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/motion-ads/config": {
      "get": {
        "operationId": "get-api-creative-generator-motion-ads-config",
        "tags": [
          "motion-ads"
        ],
        "summary": "GET /api/creative-generator/motion-ads/config",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/motion-ads/routes.ts",
          "line": 66,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/motion-ads/routes.ts#L66"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/motion-ads/files": {
      "get": {
        "operationId": "get-api-creative-generator-motion-ads-files",
        "tags": [
          "motion-ads"
        ],
        "summary": "GET /api/creative-generator/motion-ads/files",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "key",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            }
          },
          {
            "name": "download",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/motion-ads/routes.ts",
          "line": 123,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/motion-ads/routes.ts#L123"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/motion-ads/projects": {
      "get": {
        "operationId": "get-api-creative-generator-motion-ads-projects",
        "tags": [
          "motion-ads"
        ],
        "summary": "GET /api/creative-generator/motion-ads/projects",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/motion-ads/routes.ts",
          "line": 70,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/motion-ads/routes.ts#L70"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-creative-generator-motion-ads-projects",
        "tags": [
          "motion-ads"
        ],
        "summary": "POST /api/creative-generator/motion-ads/projects",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/motion-ads/routes.ts",
          "line": 75,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/motion-ads/routes.ts#L75"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientId": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "minLength": 1
                  },
                  "brief": {
                    "type": "string",
                    "minLength": 10
                  },
                  "style": {
                    "type": "string",
                    "enum": [
                      "product",
                      "kinetic",
                      "editorial",
                      "glass",
                      "warm"
                    ]
                  },
                  "voiceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "voiceName": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "assetIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 8
                  }
                },
                "required": [
                  "clientId",
                  "brief",
                  "style",
                  "voiceId",
                  "voiceName",
                  "assetIds"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/creative-generator/motion-ads/projects/{id}": {
      "get": {
        "operationId": "get-api-creative-generator-motion-ads-projects-id",
        "tags": [
          "motion-ads"
        ],
        "summary": "GET /api/creative-generator/motion-ads/projects/:id",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/motion-ads/routes.ts",
          "line": 81,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/motion-ads/routes.ts#L81"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/motion-ads/projects/{id}/changes": {
      "post": {
        "operationId": "post-api-creative-generator-motion-ads-projects-id-changes",
        "tags": [
          "motion-ads"
        ],
        "summary": "POST /api/creative-generator/motion-ads/projects/:id/changes",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/motion-ads/routes.ts",
          "line": 93,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/motion-ads/routes.ts#L93"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request": {
                    "type": "string",
                    "minLength": 2
                  }
                },
                "required": [
                  "request"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/creative-generator/motion-ads/projects/{id}/retry": {
      "post": {
        "operationId": "post-api-creative-generator-motion-ads-projects-id-retry",
        "tags": [
          "motion-ads"
        ],
        "summary": "POST /api/creative-generator/motion-ads/projects/:id/retry",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/motion-ads/routes.ts",
          "line": 99,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/motion-ads/routes.ts#L99"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/motion-ads/projects/{id}/storyboard": {
      "patch": {
        "operationId": "patch-api-creative-generator-motion-ads-projects-id-storyboard",
        "tags": [
          "motion-ads"
        ],
        "summary": "PATCH /api/creative-generator/motion-ads/projects/:id/storyboard",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/motion-ads/routes.ts",
          "line": 87,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/motion-ads/routes.ts#L87"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "beats": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "vo": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 400
                        },
                        "say": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 120
                          },
                          "maxItems": 2
                        }
                      },
                      "required": [
                        "id",
                        "vo",
                        "say"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 30
                  }
                },
                "required": [
                  "beats"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/creative-generator/motion-ads/projects/{id}/versions": {
      "post": {
        "operationId": "post-api-creative-generator-motion-ads-projects-id-versions",
        "tags": [
          "motion-ads"
        ],
        "summary": "POST /api/creative-generator/motion-ads/projects/:id/versions",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/motion-ads/routes.ts",
          "line": 105,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/motion-ads/routes.ts#L105"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/motion-ads/voices": {
      "get": {
        "operationId": "get-api-creative-generator-motion-ads-voices",
        "tags": [
          "motion-ads"
        ],
        "summary": "GET /api/creative-generator/motion-ads/voices",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/motion-ads/routes.ts",
          "line": 68,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/motion-ads/routes.ts#L68"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/presets": {
      "post": {
        "operationId": "post-api-creative-generator-presets",
        "tags": [
          "creative-generator"
        ],
        "summary": "POST /api/creative-generator/presets",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/creative-generator/routes.ts",
          "line": 104,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/creative-generator/routes.ts#L104"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 90
                  },
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 5000
                  },
                  "referenceAssetId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "name",
                  "prompt"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/creative-generator/presets/{id}": {
      "delete": {
        "operationId": "delete-api-creative-generator-presets-id",
        "tags": [
          "creative-generator"
        ],
        "summary": "DELETE /api/creative-generator/presets/:id",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/creative-generator/routes.ts",
          "line": 115,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/creative-generator/routes.ts#L115"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-creative-generator-presets-id",
        "tags": [
          "creative-generator"
        ],
        "summary": "PATCH /api/creative-generator/presets/:id",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/creative-generator/routes.ts",
          "line": 109,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/creative-generator/routes.ts#L109"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 90
                  },
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 5000
                  },
                  "referenceAssetId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/creative-generator/reference-image": {
      "post": {
        "operationId": "post-api-creative-generator-reference-image",
        "tags": [
          "creative-generator"
        ],
        "summary": "POST /api/creative-generator/reference-image",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/creative-generator/routes.ts",
          "line": 84,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/creative-generator/routes.ts#L84"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 180
                  },
                  "dataUrl": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "clientId",
                  "fileName",
                  "dataUrl"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/creative-generator/runs": {
      "get": {
        "operationId": "get-api-creative-generator-runs",
        "tags": [
          "creative-generator"
        ],
        "summary": "GET /api/creative-generator/runs",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/creative-generator/routes.ts",
          "line": 78,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/creative-generator/routes.ts#L78"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/video-editor/config": {
      "get": {
        "operationId": "get-api-creative-generator-video-editor-config",
        "tags": [
          "video-editor"
        ],
        "summary": "GET /api/creative-generator/video-editor/config",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/video-editor/routes.ts",
          "line": 151,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/video-editor/routes.ts#L151"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/video-editor/projects": {
      "get": {
        "operationId": "get-api-creative-generator-video-editor-projects",
        "tags": [
          "video-editor"
        ],
        "summary": "GET /api/creative-generator/video-editor/projects",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "compact",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/video-editor/routes.ts",
          "line": 153,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/video-editor/routes.ts#L153"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-creative-generator-video-editor-projects",
        "tags": [
          "video-editor"
        ],
        "summary": "POST /api/creative-generator/video-editor/projects",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/video-editor/routes.ts",
          "line": 158,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/video-editor/routes.ts#L158"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 180
                  },
                  "mimeType": {
                    "type": "string",
                    "enum": [
                      "video/mp4",
                      "video/quicktime",
                      "video/webm"
                    ]
                  },
                  "sizeBytes": {
                    "type": "integer"
                  }
                },
                "required": [
                  "fileName",
                  "mimeType",
                  "sizeBytes"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/creative-generator/video-editor/projects/{id}": {
      "delete": {
        "operationId": "delete-api-creative-generator-video-editor-projects-id",
        "tags": [
          "video-editor"
        ],
        "summary": "DELETE /api/creative-generator/video-editor/projects/:id",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/video-editor/routes.ts",
          "line": 238,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/video-editor/routes.ts#L238"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "get": {
        "operationId": "get-api-creative-generator-video-editor-projects-id",
        "tags": [
          "video-editor"
        ],
        "summary": "GET /api/creative-generator/video-editor/projects/:id",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/video-editor/routes.ts",
          "line": 163,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/video-editor/routes.ts#L163"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-creative-generator-video-editor-projects-id",
        "tags": [
          "video-editor"
        ],
        "summary": "PATCH /api/creative-generator/video-editor/projects/:id",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/video-editor/routes.ts",
          "line": 168,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/video-editor/routes.ts#L168"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "words": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "text": {
                          "type": "string",
                          "maxLength": 300
                        },
                        "sourceText": {
                          "type": "string",
                          "maxLength": 300
                        },
                        "startMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "endMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "confidence": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        }
                      },
                      "required": [
                        "id",
                        "text",
                        "sourceText",
                        "startMs",
                        "endMs",
                        "confidence"
                      ],
                      "additionalProperties": false,
                      "x-enj-additional-validation": true
                    },
                    "maxItems": 30000
                  },
                  "captionGroups": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "wordIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          },
                          "minItems": 1,
                          "maxItems": 20
                        },
                        "startMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "endMs": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "id",
                        "wordIds",
                        "startMs",
                        "endMs"
                      ],
                      "additionalProperties": false,
                      "x-enj-additional-validation": true
                    },
                    "maxItems": 15000
                  },
                  "suggestions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "filler",
                            "mistake",
                            "dead_space"
                          ]
                        },
                        "startMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "endMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "text": {
                          "type": "string",
                          "maxLength": 1000
                        },
                        "reason": {
                          "type": "string",
                          "maxLength": 1000
                        },
                        "confidence": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "selected": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "startMs",
                        "endMs",
                        "text",
                        "reason",
                        "confidence",
                        "selected"
                      ],
                      "additionalProperties": false,
                      "x-enj-additional-validation": true
                    },
                    "maxItems": 15000
                  },
                  "removeFillers": {
                    "type": "boolean"
                  },
                  "removeMistakes": {
                    "type": "boolean"
                  },
                  "removeDeadSpace": {
                    "type": "boolean"
                  },
                  "audioEnhancement": {
                    "type": "string",
                    "enum": [
                      "off",
                      "clean",
                      "studio"
                    ]
                  },
                  "backgroundEnabled": {
                    "type": "boolean"
                  },
                  "backgroundPosition": {
                    "type": "object",
                    "properties": {
                      "x": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "y": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      }
                    },
                    "required": [
                      "x",
                      "y"
                    ],
                    "additionalProperties": false
                  },
                  "backgroundMatchLighting": {
                    "type": "boolean"
                  },
                  "captionStyle": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "preset": {
                        "type": "string",
                        "enum": [
                          "clean",
                          "focus",
                          "bold",
                          "minimal"
                        ]
                      },
                      "fontFamily": {
                        "type": "string",
                        "enum": [
                          "noto_sans",
                          "anton",
                          "montserrat",
                          "barlow_condensed"
                        ]
                      },
                      "baseColor": {
                        "type": "string",
                        "x-enj-additional-validation": true
                      },
                      "highlightColor": {
                        "type": "string",
                        "x-enj-additional-validation": true
                      },
                      "highlightMode": {
                        "type": "string",
                        "enum": [
                          "off",
                          "text",
                          "block"
                        ]
                      },
                      "highlightSpokenWord": {
                        "type": "boolean"
                      },
                      "outline": {
                        "type": "string",
                        "enum": [
                          "off",
                          "thin",
                          "thick"
                        ]
                      },
                      "outlineColor": {
                        "type": "string",
                        "x-enj-additional-validation": true
                      },
                      "position": {
                        "type": "string",
                        "enum": [
                          "top",
                          "center",
                          "bottom"
                        ]
                      },
                      "animation": {
                        "type": "string",
                        "enum": [
                          "none",
                          "fade",
                          "pop",
                          "rise"
                        ]
                      }
                    },
                    "required": [
                      "preset",
                      "baseColor",
                      "highlightColor",
                      "position",
                      "animation"
                    ],
                    "additionalProperties": false
                  },
                  "crop": {
                    "type": "object",
                    "properties": {
                      "aspectRatio": {
                        "type": "string",
                        "enum": [
                          "source",
                          "9:16",
                          "1:1",
                          "16:9"
                        ]
                      },
                      "x": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "y": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      }
                    },
                    "required": [
                      "aspectRatio",
                      "x",
                      "y"
                    ],
                    "additionalProperties": false
                  },
                  "brollEnabled": {
                    "type": "boolean"
                  },
                  "brollPlacements": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "startMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "endMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "query": {
                          "type": "string",
                          "maxLength": 200
                        },
                        "transition": {
                          "type": "string",
                          "enum": [
                            "cut",
                            "fade",
                            "slide",
                            "punch"
                          ]
                        },
                        "candidates": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                                "x-enj-unresolved": true
                              },
                              "pexelsVideoId": {
                                "type": "integer",
                                "x-enj-additional-validation": true
                              },
                              "query": {
                                "type": "string",
                                "maxLength": 200
                              },
                              "creatorName": {
                                "type": "string",
                                "maxLength": 200
                              },
                              "sourceUrl": {
                                "type": "string",
                                "format": "uri"
                              },
                              "previewUrl": {
                                "type": "string"
                              },
                              "downloadUrl": {
                                "type": "string",
                                "format": "uri"
                              },
                              "width": {
                                "type": "integer",
                                "x-enj-additional-validation": true
                              },
                              "height": {
                                "type": "integer",
                                "x-enj-additional-validation": true
                              },
                              "durationSeconds": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "id",
                              "pexelsVideoId",
                              "query",
                              "creatorName",
                              "sourceUrl",
                              "previewUrl",
                              "downloadUrl",
                              "width",
                              "height",
                              "durationSeconds"
                            ],
                            "additionalProperties": false
                          },
                          "maxItems": 5
                        },
                        "selectedCandidateId": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "maxLength": 120
                        }
                      },
                      "required": [
                        "id",
                        "startMs",
                        "endMs",
                        "query",
                        "transition",
                        "candidates",
                        "selectedCandidateId"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 30
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/creative-generator/video-editor/projects/{id}/asset-url": {
      "get": {
        "operationId": "get-api-creative-generator-video-editor-projects-id-asset-url",
        "tags": [
          "video-editor"
        ],
        "summary": "GET /api/creative-generator/video-editor/projects/:id/asset-url",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "source",
                "output",
                "background"
              ]
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/video-editor/routes.ts",
          "line": 232,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/video-editor/routes.ts#L232"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/video-editor/projects/{id}/background": {
      "delete": {
        "operationId": "delete-api-creative-generator-video-editor-projects-id-background",
        "tags": [
          "video-editor"
        ],
        "summary": "DELETE /api/creative-generator/video-editor/projects/:id/background",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/video-editor/routes.ts",
          "line": 197,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/video-editor/routes.ts#L197"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/video-editor/projects/{id}/background/upload-complete": {
      "post": {
        "operationId": "post-api-creative-generator-video-editor-projects-id-background-upload-complete",
        "tags": [
          "video-editor"
        ],
        "summary": "POST /api/creative-generator/video-editor/projects/:id/background/upload-complete",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/video-editor/routes.ts",
          "line": 191,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/video-editor/routes.ts#L191"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "width": {
                    "type": "integer",
                    "maximum": 16384
                  },
                  "height": {
                    "type": "integer",
                    "maximum": 16384
                  }
                },
                "required": [
                  "width",
                  "height"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/creative-generator/video-editor/projects/{id}/background/upload-session": {
      "post": {
        "operationId": "post-api-creative-generator-video-editor-projects-id-background-upload-session",
        "tags": [
          "video-editor"
        ],
        "summary": "POST /api/creative-generator/video-editor/projects/:id/background/upload-session",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/video-editor/routes.ts",
          "line": 185,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/video-editor/routes.ts#L185"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 180
                  },
                  "mimeType": {
                    "type": "string",
                    "enum": [
                      "image/jpeg",
                      "image/png",
                      "image/webp"
                    ]
                  },
                  "sizeBytes": {
                    "type": "integer"
                  }
                },
                "required": [
                  "fileName",
                  "mimeType",
                  "sizeBytes"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/creative-generator/video-editor/projects/{id}/broll": {
      "post": {
        "operationId": "post-api-creative-generator-video-editor-projects-id-broll",
        "tags": [
          "video-editor"
        ],
        "summary": "POST /api/creative-generator/video-editor/projects/:id/broll",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/video-editor/routes.ts",
          "line": 212,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/video-editor/routes.ts#L212"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/video-editor/projects/{id}/prepare": {
      "post": {
        "operationId": "post-api-creative-generator-video-editor-projects-id-prepare",
        "tags": [
          "video-editor"
        ],
        "summary": "POST /api/creative-generator/video-editor/projects/:id/prepare",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/video-editor/routes.ts",
          "line": 207,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/video-editor/routes.ts#L207"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/video-editor/projects/{id}/renders": {
      "get": {
        "operationId": "get-api-creative-generator-video-editor-projects-id-renders",
        "tags": [
          "video-editor"
        ],
        "summary": "GET /api/creative-generator/video-editor/projects/:id/renders",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/video-editor/routes.ts",
          "line": 222,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/video-editor/routes.ts#L222"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-creative-generator-video-editor-projects-id-renders",
        "tags": [
          "video-editor"
        ],
        "summary": "POST /api/creative-generator/video-editor/projects/:id/renders",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/video-editor/routes.ts",
          "line": 217,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/video-editor/routes.ts#L217"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/video-editor/projects/{id}/renders/cancel": {
      "post": {
        "operationId": "post-api-creative-generator-video-editor-projects-id-renders-cancel",
        "tags": [
          "video-editor"
        ],
        "summary": "POST /api/creative-generator/video-editor/projects/:id/renders/cancel",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/video-editor/routes.ts",
          "line": 227,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/video-editor/routes.ts#L227"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/video-editor/projects/{id}/transcribe": {
      "post": {
        "operationId": "post-api-creative-generator-video-editor-projects-id-transcribe",
        "tags": [
          "video-editor"
        ],
        "summary": "POST /api/creative-generator/video-editor/projects/:id/transcribe",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/video-editor/routes.ts",
          "line": 202,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/video-editor/routes.ts#L202"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/video-editor/projects/{id}/upload-complete": {
      "post": {
        "operationId": "post-api-creative-generator-video-editor-projects-id-upload-complete",
        "tags": [
          "video-editor"
        ],
        "summary": "POST /api/creative-generator/video-editor/projects/:id/upload-complete",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/video-editor/routes.ts",
          "line": 179,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/video-editor/routes.ts#L179"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "durationMs": {
                    "type": "integer"
                  },
                  "width": {
                    "type": "integer",
                    "maximum": 16384
                  },
                  "height": {
                    "type": "integer",
                    "maximum": 16384
                  }
                },
                "required": [
                  "durationMs",
                  "width",
                  "height"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/creative-generator/video-editor/projects/{id}/upload-session": {
      "post": {
        "operationId": "post-api-creative-generator-video-editor-projects-id-upload-session",
        "tags": [
          "video-editor"
        ],
        "summary": "POST /api/creative-generator/video-editor/projects/:id/upload-session",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/video-editor/routes.ts",
          "line": 174,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/video-editor/routes.ts#L174"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/videos/config": {
      "get": {
        "operationId": "get-api-creative-generator-videos-config",
        "tags": [
          "creative-generator"
        ],
        "summary": "GET /api/creative-generator/videos/config",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/creative-generator/videoRoutes.ts",
          "line": 54,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/creative-generator/videoRoutes.ts#L54"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/videos/estimate": {
      "get": {
        "operationId": "get-api-creative-generator-videos-estimate",
        "tags": [
          "creative-generator"
        ],
        "summary": "GET /api/creative-generator/videos/estimate",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "renderMode",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "ugc_talking_head",
                "cinematic_spokesperson",
                "cinematic_brand_film"
              ]
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/creative-generator/videoRoutes.ts",
          "line": 58,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/creative-generator/videoRoutes.ts#L58"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/videos/projects": {
      "get": {
        "operationId": "get-api-creative-generator-videos-projects",
        "tags": [
          "creative-generator"
        ],
        "summary": "GET /api/creative-generator/videos/projects",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/creative-generator/videoRoutes.ts",
          "line": 63,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/creative-generator/videoRoutes.ts#L63"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-creative-generator-videos-projects",
        "tags": [
          "creative-generator"
        ],
        "summary": "POST /api/creative-generator/videos/projects",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/creative-generator/videoRoutes.ts",
          "line": 69,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/creative-generator/videoRoutes.ts#L69"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "renderMode": {
                    "type": "string",
                    "enum": [
                      "ugc_talking_head",
                      "cinematic_spokesperson",
                      "cinematic_brand_film"
                    ]
                  },
                  "brollPolicy": {
                    "type": "string",
                    "enum": [
                      "automatic",
                      "client_media_only",
                      "ai_only",
                      "hybrid"
                    ]
                  },
                  "instructions": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 12000
                  },
                  "finishedScript": {
                    "type": "string",
                    "maxLength": 12000
                  },
                  "reviewBeforeRendering": {
                    "type": "boolean"
                  },
                  "maxAuthorizedCostCents": {
                    "type": "integer",
                    "minimum": 1000,
                    "maximum": 10000
                  }
                },
                "required": [
                  "clientId",
                  "renderMode",
                  "brollPolicy",
                  "instructions",
                  "reviewBeforeRendering",
                  "maxAuthorizedCostCents"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/creative-generator/videos/projects/{id}": {
      "patch": {
        "operationId": "patch-api-creative-generator-videos-projects-id",
        "tags": [
          "creative-generator"
        ],
        "summary": "PATCH /api/creative-generator/videos/projects/:id",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/creative-generator/videoRoutes.ts",
          "line": 75,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/creative-generator/videoRoutes.ts#L75"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "renderMode": {
                    "type": "string",
                    "enum": [
                      "ugc_talking_head",
                      "cinematic_spokesperson",
                      "cinematic_brand_film"
                    ]
                  },
                  "brollPolicy": {
                    "type": "string",
                    "enum": [
                      "automatic",
                      "client_media_only",
                      "ai_only",
                      "hybrid"
                    ]
                  },
                  "instructions": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 12000
                  },
                  "finishedScript": {
                    "type": "string",
                    "maxLength": 12000
                  },
                  "reviewBeforeRendering": {
                    "type": "boolean"
                  },
                  "maxAuthorizedCostCents": {
                    "type": "integer",
                    "minimum": 1000,
                    "maximum": 10000
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/creative-generator/videos/providers/{providerId}": {
      "patch": {
        "operationId": "patch-api-creative-generator-videos-providers-providerId",
        "tags": [
          "creative-generator"
        ],
        "summary": "PATCH /api/creative-generator/videos/providers/:providerId",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "providerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "runway",
                "elevenlabs",
                "heygen",
                "luma",
                "pexels"
              ]
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/creative-generator/videoRoutes.ts",
          "line": 88,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/creative-generator/videoRoutes.ts#L88"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "apiKey": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 5000,
                    "writeOnly": true
                  },
                  "clearApiKey": {
                    "type": "boolean",
                    "writeOnly": true
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/creative-generator/videos/providers/{providerId}/test": {
      "post": {
        "operationId": "post-api-creative-generator-videos-providers-providerId-test",
        "tags": [
          "creative-generator"
        ],
        "summary": "POST /api/creative-generator/videos/providers/:providerId/test",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "providerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "runway",
                "elevenlabs",
                "heygen",
                "luma",
                "pexels"
              ]
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/creative-generator/videoRoutes.ts",
          "line": 100,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/creative-generator/videoRoutes.ts#L100"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/creative-generator/videos/runs": {
      "get": {
        "operationId": "get-api-creative-generator-videos-runs",
        "tags": [
          "creative-generator"
        ],
        "summary": "GET /api/creative-generator/videos/runs",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireGenerator",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/creative-generator/videoRoutes.ts",
          "line": 82,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/creative-generator/videoRoutes.ts#L82"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/dashboard": {
      "get": {
        "operationId": "get-api-dashboard",
        "tags": [
          "dashboard"
        ],
        "summary": "GET /api/dashboard",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "viewRole",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": "requireDashboard",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/dashboard/routes.ts",
          "line": 46,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/dashboard/routes.ts#L46"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/dashboard/automation-tasks/{id}/done": {
      "post": {
        "operationId": "post-api-dashboard-automation-tasks-id-done",
        "tags": [
          "dashboard"
        ],
        "summary": "POST /api/dashboard/automation-tasks/:id/done",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": "requireDashboard",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/dashboard/routes.ts",
          "line": 89,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/dashboard/routes.ts#L89"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/dashboard/client-updates/acknowledge": {
      "post": {
        "operationId": "post-api-dashboard-client-updates-acknowledge",
        "tags": [
          "dashboard"
        ],
        "summary": "POST /api/dashboard/client-updates/acknowledge",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": "requireClientUpdate",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/dashboard/routes.ts",
          "line": 80,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/dashboard/routes.ts#L80"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "taskKey": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 320
                  }
                },
                "required": [
                  "taskKey"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/dashboard/todos": {
      "post": {
        "operationId": "post-api-dashboard-todos",
        "tags": [
          "dashboard"
        ],
        "summary": "POST /api/dashboard/todos",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireDashboardWrite",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/dashboard/routes.ts",
          "line": 51,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/dashboard/routes.ts#L51"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 240
                  },
                  "priority": {
                    "type": "string",
                    "enum": [
                      "Low",
                      "Normal",
                      "High",
                      "Urgent"
                    ]
                  },
                  "dueDate": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "x-enj-additional-validation": true
                  }
                },
                "required": [
                  "text"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/dashboard/todos/{id}": {
      "delete": {
        "operationId": "delete-api-dashboard-todos-id",
        "tags": [
          "dashboard"
        ],
        "summary": "DELETE /api/dashboard/todos/:id",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireDashboardWrite",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/dashboard/routes.ts",
          "line": 71,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/dashboard/routes.ts#L71"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-dashboard-todos-id",
        "tags": [
          "dashboard"
        ],
        "summary": "PATCH /api/dashboard/todos/:id",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireDashboardWrite",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/dashboard/routes.ts",
          "line": 60,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/dashboard/routes.ts#L60"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 240
                  },
                  "completed": {
                    "type": "boolean"
                  },
                  "priority": {
                    "type": "string",
                    "enum": [
                      "Low",
                      "Normal",
                      "High",
                      "Urgent"
                    ]
                  },
                  "dueDate": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "x-enj-additional-validation": true
                  },
                  "sortOrder": {
                    "type": "number"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/dashboard/work-queue/complete": {
      "post": {
        "operationId": "post-api-dashboard-work-queue-complete",
        "tags": [
          "dashboard"
        ],
        "summary": "POST /api/dashboard/work-queue/complete",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireWorkQueue",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/dashboard/routes.ts",
          "line": 100,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/dashboard/routes.ts#L100"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "taskType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "clientId",
                  "taskType"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/events": {
      "get": {
        "operationId": "get-api-events",
        "tags": [
          "events"
        ],
        "summary": "GET /api/events",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "inline role guard",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/events/routes.ts",
          "line": 21,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/events/routes.ts#L21"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/landers": {
      "get": {
        "operationId": "get-api-landers",
        "tags": [
          "landers"
        ],
        "summary": "GET /api/landers",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 147,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L147"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-landers",
        "tags": [
          "landers"
        ],
        "summary": "POST /api/landers",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 153,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L153"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "campaignId": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "minLength": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "slug": {
                    "type": "string",
                    "maxLength": 60
                  }
                },
                "required": [
                  "clientId",
                  "campaignId",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/landers/{landerId}": {
      "get": {
        "operationId": "get-api-landers-landerId",
        "tags": [
          "landers"
        ],
        "summary": "GET /api/landers/:landerId",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 159,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L159"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-landers-landerId",
        "tags": [
          "landers"
        ],
        "summary": "PATCH /api/landers/:landerId",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 165,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L165"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "slug": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "live",
                      "paused",
                      "archived"
                    ]
                  },
                  "delivery": {
                    "type": "object",
                    "properties": {
                      "workflowId": {
                        "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                        "x-enj-unresolved": true
                      },
                      "workflowName": {
                        "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                        "x-enj-unresolved": true
                      },
                      "calendarId": {
                        "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                        "x-enj-unresolved": true
                      },
                      "calendarName": {
                        "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                        "x-enj-unresolved": true
                      },
                      "calendarUrl": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 500,
                        "x-enj-additional-validation": true
                      },
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 60
                        },
                        "maxItems": 10
                      }
                    },
                    "additionalProperties": false
                  },
                  "tracking": {
                    "type": "object",
                    "properties": {
                      "metaPixelId": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 40
                      }
                    },
                    "required": [
                      "metaPixelId"
                    ],
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/landers/{landerId}/analytics": {
      "get": {
        "operationId": "get-api-landers-landerId-analytics",
        "tags": [
          "landers"
        ],
        "summary": "GET /api/landers/:landerId/analytics",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 296,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L296"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/landers/{landerId}/assets": {
      "get": {
        "operationId": "get-api-landers-landerId-assets",
        "tags": [
          "landers"
        ],
        "summary": "GET /api/landers/:landerId/assets",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 356,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L356"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-landers-landerId-assets",
        "tags": [
          "landers"
        ],
        "summary": "POST /api/landers/:landerId/assets",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 332,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L332"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "dataUrl": {
                    "type": "string",
                    "minLength": 20
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "logo",
                      "favicon",
                      "avatar",
                      "poster",
                      "image",
                      "upload"
                    ]
                  }
                },
                "required": [
                  "fileName",
                  "dataUrl"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/landers/{landerId}/chat": {
      "post": {
        "operationId": "post-api-landers-landerId-chat",
        "tags": [
          "landers"
        ],
        "summary": "POST /api/landers/:landerId/chat",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 251,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L251"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "variantId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60
                  },
                  "text": {
                    "type": "string",
                    "maxLength": 20000
                  },
                  "attachmentAssetIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "x-enj-additional-validation": true
                    },
                    "maxItems": 8
                  }
                },
                "required": [
                  "variantId"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/landers/{landerId}/delivery": {
      "get": {
        "operationId": "get-api-landers-landerId-delivery",
        "tags": [
          "landers"
        ],
        "summary": "GET /api/landers/:landerId/delivery",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          {
            "name": "variantId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 60
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 223,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L223"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/landers/{landerId}/domain-setup": {
      "get": {
        "operationId": "get-api-landers-landerId-domain-setup",
        "tags": [
          "landers"
        ],
        "summary": "GET /api/landers/:landerId/domain-setup",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "clientId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "x-enj-additional-validation": true
            }
          },
          {
            "name": "campaignId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "x-enj-additional-validation": true
            }
          },
          {
            "name": "roots",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 1300
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 127,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L127"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-landers-landerId-domain-setup",
        "tags": [
          "landers"
        ],
        "summary": "POST /api/landers/:landerId/domain-setup",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 134,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L134"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientId": {
                    "type": "string",
                    "x-enj-additional-validation": true
                  },
                  "campaignId": {
                    "type": "string",
                    "x-enj-additional-validation": true
                  },
                  "landerId": {
                    "type": "string",
                    "x-enj-additional-validation": true
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "register",
                      "attach",
                      "verify"
                    ]
                  },
                  "root": {
                    "type": "string",
                    "maxLength": 128,
                    "x-enj-additional-validation": true
                  },
                  "hostname": {
                    "type": "string",
                    "maxLength": 253
                  },
                  "quoteId": {
                    "type": "string",
                    "maxLength": 150
                  },
                  "years": {
                    "type": "number",
                    "enum": [
                      1
                    ]
                  },
                  "autoRenew": {
                    "type": "boolean",
                    "enum": [
                      false
                    ]
                  },
                  "maxChargeCents": {
                    "type": "number",
                    "enum": [
                      300
                    ]
                  }
                },
                "required": [
                  "clientId",
                  "campaignId",
                  "landerId",
                  "action",
                  "root",
                  "hostname"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/landers/{landerId}/messages": {
      "get": {
        "operationId": "get-api-landers-landerId-messages",
        "tags": [
          "landers"
        ],
        "summary": "GET /api/landers/:landerId/messages",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 258,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L258"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/landers/{landerId}/research": {
      "get": {
        "operationId": "get-api-landers-landerId-research",
        "tags": [
          "landers"
        ],
        "summary": "GET /api/landers/:landerId/research",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 233,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L233"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-landers-landerId-research",
        "tags": [
          "landers"
        ],
        "summary": "POST /api/landers/:landerId/research",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 240,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L240"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/landers/{landerId}/runs": {
      "get": {
        "operationId": "get-api-landers-landerId-runs",
        "tags": [
          "landers"
        ],
        "summary": "GET /api/landers/:landerId/runs",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 272,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L272"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/landers/{landerId}/runs/{runId}/cancel": {
      "post": {
        "operationId": "post-api-landers-landerId-runs-runId-cancel",
        "tags": [
          "landers"
        ],
        "summary": "POST /api/landers/:landerId/runs/:runId/cancel",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 279,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L279"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/landers/{landerId}/submissions": {
      "get": {
        "operationId": "get-api-landers-landerId-submissions",
        "tags": [
          "landers"
        ],
        "summary": "GET /api/landers/:landerId/submissions",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 306,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L306"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/landers/{landerId}/variants": {
      "post": {
        "operationId": "post-api-landers-landerId-variants",
        "tags": [
          "landers"
        ],
        "summary": "POST /api/landers/:landerId/variants",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 197,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L197"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromVariantId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 80
                  }
                },
                "required": [
                  "fromVariantId"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/landers/{landerId}/variants/{variantId}": {
      "delete": {
        "operationId": "delete-api-landers-landerId-variants-variantId",
        "tags": [
          "landers"
        ],
        "summary": "DELETE /api/landers/:landerId/variants/:variantId",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          {
            "name": "variantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 211,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L211"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-landers-landerId-variants-variantId",
        "tags": [
          "landers"
        ],
        "summary": "PATCH /api/landers/:landerId/variants/:variantId",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          {
            "name": "variantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 204,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L204"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "weight": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/landers/{landerId}/variants/{variantId}/preview": {
      "post": {
        "operationId": "post-api-landers-landerId-variants-variantId-preview",
        "tags": [
          "landers"
        ],
        "summary": "POST /api/landers/:landerId/variants/:variantId/preview",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          {
            "name": "variantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 217,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L217"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/landers/{landerId}/variants/{variantId}/publish": {
      "post": {
        "operationId": "post-api-landers-landerId-variants-variantId-publish",
        "tags": [
          "landers"
        ],
        "summary": "POST /api/landers/:landerId/variants/:variantId/publish",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          {
            "name": "variantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 184,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L184"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/landers/{landerId}/variants/{variantId}/rollback": {
      "post": {
        "operationId": "post-api-landers-landerId-variants-variantId-rollback",
        "tags": [
          "landers"
        ],
        "summary": "POST /api/landers/:landerId/variants/:variantId/rollback",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          {
            "name": "variantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 190,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L190"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "versionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40
                  }
                },
                "required": [
                  "versionId"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/landers/{landerId}/variants/{variantId}/versions": {
      "post": {
        "operationId": "post-api-landers-landerId-variants-variantId-versions",
        "tags": [
          "landers"
        ],
        "summary": "POST /api/landers/:landerId/variants/:variantId/versions",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          {
            "name": "variantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 177,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L177"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "content": {},
                  "note": {
                    "type": "string",
                    "maxLength": 500
                  }
                },
                "required": [
                  "content"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/landers/{landerId}/versions/{versionId}": {
      "get": {
        "operationId": "get-api-landers-landerId-versions-versionId",
        "tags": [
          "landers"
        ],
        "summary": "GET /api/landers/:landerId/versions/:versionId",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "landerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          {
            "name": "versionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 171,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L171"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/landers/assets/{file}": {
      "get": {
        "operationId": "get-api-landers-assets-file",
        "tags": [
          "landers"
        ],
        "summary": "GET /api/landers/assets/:file",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "file",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireLanders",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 344,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L344"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/lead-screening/status": {
      "post": {
        "operationId": "post-api-lead-screening-status",
        "tags": [
          "lead-screening"
        ],
        "summary": "POST /api/lead-screening/status",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/lead-screening/routes.ts",
          "line": 60,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/lead-screening/routes.ts#L60"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/onboarding/clients": {
      "get": {
        "operationId": "get-api-onboarding-clients",
        "tags": [
          "onboarding"
        ],
        "summary": "GET /api/onboarding/clients",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "partner",
            "staff"
          ],
          "handler": "requireOnboarding",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/onboarding/routes.ts",
          "line": 47,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/onboarding/routes.ts#L47"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/onboarding/clients/{id}": {
      "patch": {
        "operationId": "patch-api-onboarding-clients-id",
        "tags": [
          "onboarding"
        ],
        "summary": "PATCH /api/onboarding/clients/:id",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "partner",
            "staff"
          ],
          "handler": "requireOnboarding",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/onboarding/routes.ts",
          "line": 76,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/onboarding/routes.ts#L76"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "contractSigned": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "reviewCallDate": {
                    "type": "string"
                  },
                  "kickoffCallDate": {
                    "type": "string"
                  },
                  "onboardingCallDate": {
                    "type": "string"
                  },
                  "needsSetter": {
                    "type": "string"
                  },
                  "ghlAccount": {
                    "type": "string"
                  },
                  "a2pStatus": {
                    "type": "string"
                  },
                  "metaAccountName": {
                    "type": "string"
                  },
                  "adAccountLink": {
                    "type": "string"
                  },
                  "clientWebsite": {
                    "type": "string"
                  },
                  "meetingLocation": {
                    "type": "string"
                  },
                  "targetNiche": {
                    "type": "string"
                  },
                  "targetAudience": {
                    "type": "string"
                  },
                  "callTakers": {
                    "type": "string"
                  },
                  "dailyAdsBudget": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "servicesOffered": {
                    "type": "string"
                  },
                  "completedMeeting": {
                    "type": "string"
                  },
                  "slackChannelUrl": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/onboarding/clients/{id}/deal-close": {
      "get": {
        "operationId": "get-api-onboarding-clients-id-deal-close",
        "tags": [
          "onboarding"
        ],
        "summary": "GET /api/onboarding/clients/:id/deal-close",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "partner",
            "staff"
          ],
          "handler": "requireOnboarding",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/onboarding/routes.ts",
          "line": 70,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/onboarding/routes.ts#L70"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/onboarding/payment-links": {
      "get": {
        "operationId": "get-api-onboarding-payment-links",
        "tags": [
          "onboarding"
        ],
        "summary": "GET /api/onboarding/payment-links",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "partner",
            "staff"
          ],
          "handler": "requireOnboarding",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/onboarding/routes.ts",
          "line": 56,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/onboarding/routes.ts#L56"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/onboarding/submissions": {
      "get": {
        "operationId": "get-api-onboarding-submissions",
        "tags": [
          "onboarding"
        ],
        "summary": "GET /api/onboarding/submissions",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "partner",
            "staff"
          ],
          "handler": "requireOnboarding",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/onboarding/routes.ts",
          "line": 66,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/onboarding/routes.ts#L66"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/payroll/ledger": {
      "get": {
        "operationId": "get-api-payroll-ledger",
        "tags": [
          "wise"
        ],
        "summary": "GET /api/payroll/ledger",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/wise/routes.ts",
          "line": 26,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/wise/routes.ts#L26"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/public/appointment-reports/{token}": {
      "get": {
        "operationId": "get-api-public-appointment-reports-token",
        "tags": [
          "appointment-reports"
        ],
        "summary": "GET /api/public/appointment-reports/:token",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 20,
              "maxLength": 120,
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/appointment-reports/routes.ts",
          "line": 40,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/appointment-reports/routes.ts#L40"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      },
      "post": {
        "operationId": "post-api-public-appointment-reports-token",
        "tags": [
          "appointment-reports"
        ],
        "summary": "POST /api/public/appointment-reports/:token",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 20,
              "maxLength": 120,
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/appointment-reports/routes.ts",
          "line": 58,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/appointment-reports/routes.ts#L58"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "appointmentId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "no_show",
                      "unqualified"
                    ]
                  },
                  "recordingUrl": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "details": {
                    "type": "string",
                    "maxLength": 2000
                  }
                },
                "required": [
                  "appointmentId",
                  "status"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/public/client-videos/{token}": {
      "get": {
        "operationId": "get-api-public-client-videos-token",
        "tags": [
          "client-videos"
        ],
        "summary": "GET /api/public/client-videos/:token",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 20,
              "maxLength": 120,
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/client-videos/routes.ts",
          "line": 235,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-videos/routes.ts#L235"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/public/client-videos/{token}/analysis": {
      "get": {
        "operationId": "get-api-public-client-videos-token-analysis",
        "tags": [
          "client-videos"
        ],
        "summary": "GET /api/public/client-videos/:token/analysis",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 20,
              "maxLength": 120,
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/client-videos/routes.ts",
          "line": 262,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-videos/routes.ts#L262"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/public/client-videos/{token}/media": {
      "get": {
        "operationId": "get-api-public-client-videos-token-media",
        "tags": [
          "client-videos"
        ],
        "summary": "GET /api/public/client-videos/:token/media",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 20,
              "maxLength": 120,
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/client-videos/routes.ts",
          "line": 251,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-videos/routes.ts#L251"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/public/client-videos/{token}/reaction": {
      "post": {
        "operationId": "post-api-public-client-videos-token-reaction",
        "tags": [
          "client-videos"
        ],
        "summary": "POST /api/public/client-videos/:token/reaction",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 20,
              "maxLength": 120,
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/client-videos/routes.ts",
          "line": 273,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-videos/routes.ts#L273"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reaction": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "heart",
                      "like",
                      "fire",
                      "clap",
                      "celebrate",
                      "eyes"
                    ]
                  }
                },
                "required": [
                  "reaction"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/public/landers/assets/{file}": {
      "get": {
        "operationId": "get-api-public-landers-assets-file",
        "tags": [
          "landers"
        ],
        "summary": "GET /api/public/landers/assets/:file",
        "description": "Read method; may have cache or collection side effects. Server bridge secret; not an agent bearer token. Additional business rules apply.",
        "parameters": [
          {
            "name": "file",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Server bridge secret; not an agent bearer token",
          "roles": [],
          "handler": "authorize",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/publicRoutes.ts",
          "line": 44,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/publicRoutes.ts#L44"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/public/landers/events": {
      "post": {
        "operationId": "post-api-public-landers-events",
        "tags": [
          "landers"
        ],
        "summary": "POST /api/public/landers/events",
        "description": "Mutation or action; explicit authority required. Server bridge secret; not an agent bearer token. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Server bridge secret; not an agent bearer token",
          "roles": [],
          "handler": "authorize",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/publicRoutes.ts",
          "line": 38,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/publicRoutes.ts#L38"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/public/landers/resolve": {
      "get": {
        "operationId": "get-api-public-landers-resolve",
        "tags": [
          "landers"
        ],
        "summary": "GET /api/public/landers/resolve",
        "description": "Read method; may have cache or collection side effects. Server bridge secret; not an agent bearer token. Additional business rules apply.",
        "parameters": [
          {
            "name": "site",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 260
            }
          },
          {
            "name": "preview",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 2000
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Server bridge secret; not an agent bearer token",
          "roles": [],
          "handler": "authorize",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/publicRoutes.ts",
          "line": 23,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/publicRoutes.ts#L23"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/public/landers/submit": {
      "post": {
        "operationId": "post-api-public-landers-submit",
        "tags": [
          "landers"
        ],
        "summary": "POST /api/public/landers/submit",
        "description": "Mutation or action; explicit authority required. Server bridge secret; not an agent bearer token. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Server bridge secret; not an agent bearer token",
          "roles": [],
          "handler": "authorize",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/publicRoutes.ts",
          "line": 31,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/publicRoutes.ts#L31"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/public/sales-payments/{token}/checkout": {
      "post": {
        "operationId": "post-api-public-sales-payments-token-checkout",
        "tags": [
          "sales"
        ],
        "summary": "POST /api/public/sales-payments/:token/checkout",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 20,
              "maxLength": 200
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/paymentRoutes.ts",
          "line": 203,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/paymentRoutes.ts#L203"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/public/sops/{token}": {
      "get": {
        "operationId": "get-api-public-sops-token",
        "tags": [
          "sops"
        ],
        "summary": "GET /api/public/sops/:token",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 20,
              "maxLength": 120,
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 385,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L385"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/public/sops/{token}/media/{mediaId}": {
      "get": {
        "operationId": "get-api-public-sops-token-media-mediaId",
        "tags": [
          "sops"
        ],
        "summary": "GET /api/public/sops/:token/media/:mediaId",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 20,
              "maxLength": 120,
              "x-enj-additional-validation": true
            }
          },
          {
            "name": "mediaId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 429,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L429"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/public/sops/{token}/media/{mediaId}/analysis": {
      "get": {
        "operationId": "get-api-public-sops-token-media-mediaId-analysis",
        "tags": [
          "sops"
        ],
        "summary": "GET /api/public/sops/:token/media/:mediaId/analysis",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 20,
              "maxLength": 120,
              "x-enj-additional-validation": true
            }
          },
          {
            "name": "mediaId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 458,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L458"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/public/sops/{token}/reaction": {
      "post": {
        "operationId": "post-api-public-sops-token-reaction",
        "tags": [
          "sops"
        ],
        "summary": "POST /api/public/sops/:token/reaction",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 20,
              "maxLength": 120,
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 404,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L404"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reaction": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "heart",
                      "like",
                      "fire",
                      "clap",
                      "celebrate",
                      "eyes"
                    ]
                  }
                },
                "required": [
                  "reaction"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/recorder/sessions": {
      "post": {
        "operationId": "post-api-recorder-sessions",
        "tags": [
          "recorder"
        ],
        "summary": "POST /api/recorder/sessions",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireStaff",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/recorder/routes.ts",
          "line": 84,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/recorder/routes.ts#L84"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "sop"
                        ]
                      },
                      "documentId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      "insertionPosition": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "minimum": 0
                      }
                    },
                    "required": [
                      "type",
                      "documentId"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "client_video"
                        ]
                      },
                      "clientId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      "videoId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      }
                    },
                    "required": [
                      "type",
                      "clientId",
                      "videoId"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/api/recorder/sessions/{id}/cancel": {
      "post": {
        "operationId": "post-api-recorder-sessions-id-cancel",
        "tags": [
          "recorder"
        ],
        "summary": "POST /api/recorder/sessions/:id/cancel",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireStaff",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/recorder/routes.ts",
          "line": 106,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/recorder/routes.ts#L106"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/recorder/sessions/{id}/consume": {
      "post": {
        "operationId": "post-api-recorder-sessions-id-consume",
        "tags": [
          "recorder"
        ],
        "summary": "POST /api/recorder/sessions/:id/consume",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireStaff",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/recorder/routes.ts",
          "line": 100,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/recorder/routes.ts#L100"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/recorder/sessions/{id}/extension": {
      "get": {
        "operationId": "get-api-recorder-sessions-id-extension",
        "tags": [
          "recorder"
        ],
        "summary": "GET /api/recorder/sessions/:id/extension",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/recorder/routes.ts",
          "line": 112,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/recorder/routes.ts#L112"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/recorder/sessions/{id}/extension-cancel": {
      "post": {
        "operationId": "post-api-recorder-sessions-id-extension-cancel",
        "tags": [
          "recorder"
        ],
        "summary": "POST /api/recorder/sessions/:id/extension-cancel",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/recorder/routes.ts",
          "line": 135,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/recorder/routes.ts#L135"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/recorder/sessions/{id}/finalize": {
      "post": {
        "operationId": "post-api-recorder-sessions-id-finalize",
        "tags": [
          "recorder"
        ],
        "summary": "POST /api/recorder/sessions/:id/finalize",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/recorder/routes.ts",
          "line": 129,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/recorder/routes.ts#L129"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/recorder/sessions/{id}/upload": {
      "post": {
        "operationId": "post-api-recorder-sessions-id-upload",
        "tags": [
          "recorder"
        ],
        "summary": "POST /api/recorder/sessions/:id/upload",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/recorder/routes.ts",
          "line": 118,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/recorder/routes.ts#L118"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 180
                  },
                  "mimeType": {
                    "type": "string",
                    "enum": [
                      "video/mp4",
                      "video/quicktime",
                      "video/webm"
                    ]
                  },
                  "sizeBytes": {
                    "type": "integer"
                  }
                },
                "required": [
                  "fileName",
                  "mimeType",
                  "sizeBytes"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/recorder/sessions/pending": {
      "get": {
        "operationId": "get-api-recorder-sessions-pending",
        "tags": [
          "recorder"
        ],
        "summary": "GET /api/recorder/sessions/pending",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireStaff",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/recorder/routes.ts",
          "line": 94,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/recorder/routes.ts#L94"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/sales-library/coverage": {
      "get": {
        "operationId": "get-api-sales-library-coverage",
        "tags": [
          "sales-library"
        ],
        "summary": "GET /api/sales-library/coverage",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4000
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales-library/routes.ts",
          "line": 64,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales-library/routes.ts#L64"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/sales-library/exceptions": {
      "patch": {
        "operationId": "patch-api-sales-library-exceptions",
        "tags": [
          "sales-library"
        ],
        "summary": "PATCH /api/sales-library/exceptions",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales-library/routes.ts",
          "line": 225,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales-library/routes.ts#L225"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "exceptions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "accountId": {
                          "type": "string",
                          "x-enj-additional-validation": true
                        },
                        "campaignId": {
                          "type": "string",
                          "x-enj-additional-validation": true
                        },
                        "evidence": {
                          "type": "string",
                          "minLength": 12,
                          "maxLength": 3000
                        }
                      },
                      "required": [
                        "accountId",
                        "campaignId",
                        "evidence"
                      ]
                    },
                    "maxItems": 500
                  }
                },
                "required": [
                  "exceptions"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/sales-library/items/{id}": {
      "patch": {
        "operationId": "patch-api-sales-library-items-id",
        "tags": [
          "sales-library"
        ],
        "summary": "PATCH /api/sales-library/items/:id",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales-library/routes.ts",
          "line": 206,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales-library/routes.ts#L206"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "hidden": {
                    "type": "boolean"
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 2000
                  },
                  "allowOutlier": {
                    "type": "boolean"
                  },
                  "trackingIssue": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 2000
                  }
                },
                "required": [
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/sales-library/items/{id}/capture": {
      "post": {
        "operationId": "post-api-sales-library-items-id-capture",
        "tags": [
          "sales-library"
        ],
        "summary": "POST /api/sales-library/items/:id/capture",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales-library/routes.ts",
          "line": 175,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales-library/routes.ts#L175"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "image": {
                    "type": "string",
                    "maxLength": 22000000
                  },
                  "sourceUrl": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 4000
                  },
                  "observed": {
                    "type": "object",
                    "properties": {
                      "spend": {
                        "type": "number"
                      },
                      "leads": {
                        "type": "number"
                      },
                      "cpl": {
                        "type": "number"
                      },
                      "since": {
                        "type": "string",
                        "x-enj-additional-validation": true
                      },
                      "until": {
                        "type": "string",
                        "x-enj-additional-validation": true
                      },
                      "campaignName": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1000
                      },
                      "leadType": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      }
                    },
                    "required": [
                      "spend",
                      "leads",
                      "cpl",
                      "since",
                      "until",
                      "campaignName",
                      "leadType"
                    ]
                  },
                  "crop": {
                    "type": "object",
                    "properties": {
                      "left": {
                        "type": "integer"
                      },
                      "top": {
                        "type": "integer"
                      },
                      "width": {
                        "type": "integer"
                      },
                      "height": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "left",
                      "top",
                      "width",
                      "height"
                    ]
                  }
                },
                "required": [
                  "image",
                  "sourceUrl",
                  "observed"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/sales-library/items/{id}/media": {
      "get": {
        "operationId": "get-api-sales-library-items-id-media",
        "tags": [
          "sales-library"
        ],
        "summary": "GET /api/sales-library/items/:id/media",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          {
            "name": "thumbnail",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "original",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "download",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales-library/routes.ts",
          "line": 78,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales-library/routes.ts#L78"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/sales-library/refresh": {
      "post": {
        "operationId": "post-api-sales-library-refresh",
        "tags": [
          "sales-library"
        ],
        "summary": "POST /api/sales-library/refresh",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales-library/routes.ts",
          "line": 71,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales-library/routes.ts#L71"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/sales-library/search": {
      "get": {
        "operationId": "get-api-sales-library-search",
        "tags": [
          "sales-library"
        ],
        "summary": "GET /api/sales-library/search",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4000
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "proof",
                "creative",
                "landing_page"
              ]
            }
          },
          {
            "name": "clientId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "niche",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "maximum",
                "best_30d"
              ]
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 60
            }
          },
          {
            "name": "includeHidden",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1",
                "0"
              ]
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales-library/routes.ts",
          "line": 40,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales-library/routes.ts#L40"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/sales-library/status": {
      "get": {
        "operationId": "get-api-sales-library-status",
        "tags": [
          "sales-library"
        ],
        "summary": "GET /api/sales-library/status",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales-library/routes.ts",
          "line": 60,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales-library/routes.ts#L60"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/sales/calls": {
      "get": {
        "operationId": "get-api-sales-calls",
        "tags": [
          "sales"
        ],
        "summary": "GET /api/sales/calls",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "refresh",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner",
            "sales"
          ],
          "handler": "requireSalesFloor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/routes.ts",
          "line": 141,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/routes.ts#L141"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/sales/calls/{callId}": {
      "get": {
        "operationId": "get-api-sales-calls-callId",
        "tags": [
          "sales"
        ],
        "summary": "GET /api/sales/calls/:callId",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "callId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner",
            "sales"
          ],
          "handler": "requireSalesFloor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/routes.ts",
          "line": 154,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/routes.ts#L154"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-sales-calls-callId",
        "tags": [
          "sales"
        ],
        "summary": "PATCH /api/sales/calls/:callId",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "callId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner",
            "sales"
          ],
          "handler": "requireSalesFloor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/routes.ts",
          "line": 176,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/routes.ts#L176"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "note": {
                    "type": "string",
                    "maxLength": 10000
                  },
                  "pifAmount": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 10000000
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/sales/calls/{callId}/review": {
      "post": {
        "operationId": "post-api-sales-calls-callId-review",
        "tags": [
          "sales"
        ],
        "summary": "POST /api/sales/calls/:callId/review",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "callId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner",
            "sales"
          ],
          "handler": "requireSalesFloor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/routes.ts",
          "line": 165,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/routes.ts#L165"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/sales/deal-close": {
      "post": {
        "operationId": "post-api-sales-deal-close",
        "tags": [
          "sales"
        ],
        "summary": "POST /api/sales/deal-close",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner",
            "sales"
          ],
          "handler": "requireSalesFloor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/routes.ts",
          "line": 187,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/routes.ts#L187"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientName": {
                    "type": "string",
                    "minLength": 1
                  },
                  "ghlContactEmails": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "email"
                    },
                    "maxItems": 20
                  },
                  "businessType": {
                    "type": "string"
                  },
                  "businessDescription": {
                    "type": "string"
                  },
                  "mainOffer": {
                    "type": "string"
                  },
                  "needsSetter": {
                    "type": "string"
                  },
                  "hasGhl": {
                    "type": "string"
                  },
                  "soldOffer": {
                    "type": "string"
                  },
                  "promisedResults": {
                    "type": "string"
                  },
                  "specialNotes": {
                    "type": "string"
                  },
                  "contractSigned": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "setupFee": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "setupFeeCollected": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "monthlyRetainer": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "onboardingCallDate": {
                    "type": "string"
                  },
                  "paymentPlanId": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "minLength": 1
                  }
                },
                "required": [
                  "clientName"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/sales/deal-close/prefill": {
      "post": {
        "operationId": "post-api-sales-deal-close-prefill",
        "tags": [
          "sales"
        ],
        "summary": "POST /api/sales/deal-close/prefill",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner",
            "sales"
          ],
          "handler": "requireSalesFloor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/routes.ts",
          "line": 129,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/routes.ts#L129"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "emails": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "minItems": 1,
                    "maxItems": 10
                  }
                },
                "required": [
                  "emails"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/sales/deal-close/recent": {
      "get": {
        "operationId": "get-api-sales-deal-close-recent",
        "tags": [
          "sales"
        ],
        "summary": "GET /api/sales/deal-close/recent",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner",
            "sales"
          ],
          "handler": "requireSalesFloor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/routes.ts",
          "line": 118,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/routes.ts#L118"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/sales/payments": {
      "get": {
        "operationId": "get-api-sales-payments",
        "tags": [
          "sales"
        ],
        "summary": "GET /api/sales/payments",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "outstanding",
                "paid",
                "overdue",
                "voided",
                "refunded",
                "all"
              ]
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner",
            "sales"
          ],
          "handler": "requireSales",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/paymentRoutes.ts",
          "line": 109,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/paymentRoutes.ts#L109"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/sales/payments/candidates": {
      "get": {
        "operationId": "get-api-sales-payments-candidates",
        "tags": [
          "sales"
        ],
        "summary": "GET /api/sales/payments/candidates",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner",
            "sales"
          ],
          "handler": "requireSales",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/paymentRoutes.ts",
          "line": 89,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/paymentRoutes.ts#L89"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/sales/payments/candidates/{dealCloseId}/payer-email": {
      "get": {
        "operationId": "get-api-sales-payments-candidates-dealCloseId-payer-email",
        "tags": [
          "sales"
        ],
        "summary": "GET /api/sales/payments/candidates/:dealCloseId/payer-email",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "dealCloseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner",
            "sales"
          ],
          "handler": "requireSales",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/paymentRoutes.ts",
          "line": 98,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/paymentRoutes.ts#L98"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/sales/payments/map-stripe": {
      "post": {
        "operationId": "post-api-sales-payments-map-stripe",
        "tags": [
          "sales"
        ],
        "summary": "POST /api/sales/payments/map-stripe",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/paymentRoutes.ts",
          "line": 192,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/paymentRoutes.ts#L192"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "dealCloseId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "stripeChargeId": {
                    "type": "string",
                    "x-enj-additional-validation": true
                  },
                  "reassign": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "dealCloseId",
                  "stripeChargeId"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/sales/payments/plans": {
      "post": {
        "operationId": "post-api-sales-payments-plans",
        "tags": [
          "sales"
        ],
        "summary": "POST /api/sales/payments/plans",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner",
            "sales"
          ],
          "handler": "requireSales",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/paymentRoutes.ts",
          "line": 120,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/paymentRoutes.ts#L120"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "dealCloseId": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "minLength": 1
                  },
                  "clientName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "setupFeeCents": {
                    "type": "integer",
                    "minimum": 50
                  },
                  "payerEmail": {
                    "type": "string",
                    "format": "email"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "deposit",
                      "balance",
                      "split"
                    ]
                  },
                  "payments": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "amountCents": {
                          "type": "integer",
                          "minimum": 50
                        },
                        "dueDate": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "amountCents"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 1,
                    "maxItems": 12
                  }
                },
                "required": [
                  "payerEmail",
                  "mode",
                  "payments"
                ],
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/sales/payments/plans/{planId}/requests": {
      "post": {
        "operationId": "post-api-sales-payments-plans-planId-requests",
        "tags": [
          "sales"
        ],
        "summary": "POST /api/sales/payments/plans/:planId/requests",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "planId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner",
            "sales"
          ],
          "handler": "requireSales",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/paymentRoutes.ts",
          "line": 133,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/paymentRoutes.ts#L133"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "balance",
                      "installment"
                    ]
                  },
                  "amountCents": {
                    "type": "integer",
                    "minimum": 50
                  },
                  "dueDate": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "kind",
                  "amountCents"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/sales/payments/reconcile": {
      "post": {
        "operationId": "post-api-sales-payments-reconcile",
        "tags": [
          "sales"
        ],
        "summary": "POST /api/sales/payments/reconcile",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/paymentRoutes.ts",
          "line": 182,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/paymentRoutes.ts#L182"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/sales/payments/requests/{requestId}/replace": {
      "post": {
        "operationId": "post-api-sales-payments-requests-requestId-replace",
        "tags": [
          "sales"
        ],
        "summary": "POST /api/sales/payments/requests/:requestId/replace",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner",
            "sales"
          ],
          "handler": "requireSales",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/paymentRoutes.ts",
          "line": 158,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/paymentRoutes.ts#L158"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amountCents": {
                    "type": "integer",
                    "minimum": 50
                  },
                  "dueDate": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "amountCents"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/sales/payments/requests/{requestId}/retry-notification": {
      "post": {
        "operationId": "post-api-sales-payments-requests-requestId-retry-notification",
        "tags": [
          "sales"
        ],
        "summary": "POST /api/sales/payments/requests/:requestId/retry-notification",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/paymentRoutes.ts",
          "line": 173,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/paymentRoutes.ts#L173"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/sales/payments/requests/{requestId}/void": {
      "post": {
        "operationId": "post-api-sales-payments-requests-requestId-void",
        "tags": [
          "sales"
        ],
        "summary": "POST /api/sales/payments/requests/:requestId/void",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner",
            "sales"
          ],
          "handler": "requireSales",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/paymentRoutes.ts",
          "line": 146,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/paymentRoutes.ts#L146"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/sales/scorecard": {
      "get": {
        "operationId": "get-api-sales-scorecard",
        "tags": [
          "sales"
        ],
        "summary": "GET /api/sales/scorecard",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "closerId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "calendar",
            "in": "query",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner",
            "sales"
          ],
          "handler": "requireScorecard",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/routes.ts",
          "line": 207,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/routes.ts#L207"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/sales/scorecard/calls/{callId}": {
      "patch": {
        "operationId": "patch-api-sales-scorecard-calls-callId",
        "tags": [
          "sales"
        ],
        "summary": "PATCH /api/sales/scorecard/calls/:callId",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "callId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner",
            "sales"
          ],
          "handler": "requireScorecard",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/routes.ts",
          "line": 256,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/routes.ts#L256"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "outcome": {
                    "type": "string",
                    "enum": [
                      "showed",
                      "no_show",
                      "rescheduled",
                      "cancelled",
                      "unknown"
                    ]
                  },
                  "qualified": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "offerMade": {
                    "type": "boolean"
                  },
                  "closed": {
                    "type": "boolean"
                  },
                  "cashCollected": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 10000000
                  },
                  "revenue": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 10000000
                  },
                  "closerTeamMemberId": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "recordingUrl": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "uri",
                    "maxLength": 500,
                    "x-enj-additional-validation": true
                  },
                  "notes": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 2000
                  },
                  "reset": {
                    "type": "boolean",
                    "enum": [
                      true
                    ]
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/sales/scorecard/export.csv": {
      "get": {
        "operationId": "get-api-sales-scorecard-export-csv",
        "tags": [
          "sales"
        ],
        "summary": "GET /api/sales/scorecard/export.csv",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "closerId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "calendar",
            "in": "query",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner",
            "sales"
          ],
          "handler": "requireScorecard",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/routes.ts",
          "line": 237,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/routes.ts#L237"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/sales/scorecard/refresh": {
      "post": {
        "operationId": "post-api-sales-scorecard-refresh",
        "tags": [
          "sales"
        ],
        "summary": "POST /api/sales/scorecard/refresh",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "inline role guard",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/routes.ts",
          "line": 271,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/routes.ts#L271"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/sales/scorecard/view": {
      "get": {
        "operationId": "get-api-sales-scorecard-view",
        "tags": [
          "sales"
        ],
        "summary": "GET /api/sales/scorecard/view",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 2020,
              "maximum": 2100
            }
          },
          {
            "name": "month",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 12
            }
          },
          {
            "name": "day",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "x-enj-additional-validation": true
            }
          },
          {
            "name": "closerId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "calendar",
            "in": "query",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "calendars",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "all"
              ]
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "partner",
            "sales"
          ],
          "handler": "requireScorecard",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/routes.ts",
          "line": 222,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/routes.ts#L222"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/setter-scripts": {
      "get": {
        "operationId": "get-api-setter-scripts",
        "tags": [
          "setter-scripts"
        ],
        "summary": "GET /api/setter-scripts",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "index"
              ]
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "sales",
            "setter"
          ],
          "handler": "read",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/setter-scripts/routes.ts",
          "line": 76,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/setter-scripts/routes.ts#L76"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/setter-scripts/{clientId}": {
      "get": {
        "operationId": "get-api-setter-scripts-clientId",
        "tags": [
          "setter-scripts"
        ],
        "summary": "GET /api/setter-scripts/:clientId",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "sales",
            "setter"
          ],
          "handler": "read",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/setter-scripts/routes.ts",
          "line": 111,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/setter-scripts/routes.ts#L111"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-setter-scripts-clientId",
        "tags": [
          "setter-scripts"
        ],
        "summary": "PATCH /api/setter-scripts/:clientId",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": "write",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/setter-scripts/routes.ts",
          "line": 141,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/setter-scripts/routes.ts#L141"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "revision": {
                    "type": "integer"
                  },
                  "offers": {
                    "type": "array",
                    "items": {
                      "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                      "x-enj-unresolved": true
                    },
                    "maxItems": 30
                  },
                  "aliases": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 150
                    },
                    "maxItems": 15
                  },
                  "callingHold": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "reason": {
                        "type": "string",
                        "maxLength": 600
                      }
                    },
                    "required": [
                      "enabled",
                      "reason"
                    ],
                    "additionalProperties": false,
                    "x-enj-additional-validation": true
                  },
                  "mappings": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "campaignId": {
                          "type": "string",
                          "maxLength": 100
                        },
                        "metaCampaignIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "x-enj-additional-validation": true
                          },
                          "maxItems": 30
                        },
                        "driveDocumentIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "x-enj-additional-validation": true
                          },
                          "maxItems": 10
                        }
                      },
                      "required": [
                        "campaignId",
                        "metaCampaignIds",
                        "driveDocumentIds"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 30
                  }
                },
                "required": [
                  "revision"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/setter-scripts/{clientId}/creatives": {
      "get": {
        "operationId": "get-api-setter-scripts-clientId-creatives",
        "tags": [
          "setter-scripts"
        ],
        "summary": "GET /api/setter-scripts/:clientId/creatives",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "sales",
            "setter"
          ],
          "handler": "read",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/setter-scripts/routes.ts",
          "line": 127,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/setter-scripts/routes.ts#L127"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/setter-scripts/{clientId}/history": {
      "get": {
        "operationId": "get-api-setter-scripts-clientId-history",
        "tags": [
          "setter-scripts"
        ],
        "summary": "GET /api/setter-scripts/:clientId/history",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": "write",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/setter-scripts/routes.ts",
          "line": 312,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/setter-scripts/routes.ts#L312"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/setter-scripts/{clientId}/refresh": {
      "post": {
        "operationId": "post-api-setter-scripts-clientId-refresh",
        "tags": [
          "setter-scripts"
        ],
        "summary": "POST /api/setter-scripts/:clientId/refresh",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": "write",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/setter-scripts/routes.ts",
          "line": 257,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/setter-scripts/routes.ts#L257"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/setter-scripts/{clientId}/restore": {
      "post": {
        "operationId": "post-api-setter-scripts-clientId-restore",
        "tags": [
          "setter-scripts"
        ],
        "summary": "POST /api/setter-scripts/:clientId/restore",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": "write",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/setter-scripts/routes.ts",
          "line": 336,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/setter-scripts/routes.ts#L336"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "revision": {
                    "type": "integer"
                  },
                  "revisionId": {
                    "type": "string",
                    "x-enj-additional-validation": true
                  }
                },
                "required": [
                  "revision",
                  "revisionId"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/setter-scripts/{clientId}/review": {
      "post": {
        "operationId": "post-api-setter-scripts-clientId-review",
        "tags": [
          "setter-scripts"
        ],
        "summary": "POST /api/setter-scripts/:clientId/review",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": "write",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/setter-scripts/routes.ts",
          "line": 270,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/setter-scripts/routes.ts#L270"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "revision": {
                    "type": "integer"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "approve",
                      "reject",
                      "resume_auto"
                    ]
                  }
                },
                "required": [
                  "revision",
                  "action"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/setter-scripts/config": {
      "get": {
        "operationId": "get-api-setter-scripts-config",
        "tags": [
          "setter-scripts"
        ],
        "summary": "GET /api/setter-scripts/config",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "sales",
            "setter"
          ],
          "handler": "read",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/setter-scripts/routes.ts",
          "line": 62,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/setter-scripts/routes.ts#L62"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/setters/alerts/retry": {
      "post": {
        "operationId": "post-api-setters-alerts-retry",
        "tags": [
          "setters"
        ],
        "summary": "POST /api/setters/alerts/retry",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/setters/routes.ts",
          "line": 59,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/setters/routes.ts#L59"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/setters/alerts/status": {
      "get": {
        "operationId": "get-api-setters-alerts-status",
        "tags": [
          "setters"
        ],
        "summary": "GET /api/setters/alerts/status",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/setters/routes.ts",
          "line": 43,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/setters/routes.ts#L43"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/setters/board": {
      "get": {
        "operationId": "get-api-setters-board",
        "tags": [
          "setters"
        ],
        "summary": "GET /api/setters/board",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "sales",
            "setter"
          ],
          "handler": "requireBoard",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/setters/routes.ts",
          "line": 16,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/setters/routes.ts#L16"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/setters/refresh": {
      "post": {
        "operationId": "post-api-setters-refresh",
        "tags": [
          "setters"
        ],
        "summary": "POST /api/setters/refresh",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/setters/routes.ts",
          "line": 33,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/setters/routes.ts#L33"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/settings/agency": {
      "get": {
        "operationId": "get-api-settings-agency",
        "tags": [
          "settings"
        ],
        "summary": "GET /api/settings/agency",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireUser",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 168,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L168"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-settings-agency",
        "tags": [
          "settings"
        ],
        "summary": "PATCH /api/settings/agency",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 172,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L172"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "agencyName": {
                    "type": "string"
                  },
                  "logoUrl": {
                    "type": "string"
                  },
                  "themeColor": {
                    "type": "string",
                    "x-enj-additional-validation": true
                  },
                  "timezone": {
                    "type": "string"
                  },
                  "reportTimezone": {
                    "type": "string"
                  },
                  "debugModeEnabled": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/settings/agency/logo": {
      "post": {
        "operationId": "post-api-settings-agency-logo",
        "tags": [
          "settings"
        ],
        "summary": "POST /api/settings/agency/logo",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 177,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L177"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 180
                  },
                  "dataUrl": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "fileName",
                  "dataUrl"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/settings/audit-log": {
      "get": {
        "operationId": "get-api-settings-audit-log",
        "tags": [
          "settings"
        ],
        "summary": "GET /api/settings/audit-log",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "source",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "manual",
                "webhook",
                "import",
                "stripe"
              ]
            }
          },
          {
            "name": "actorEmail",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 226,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L226"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/settings/integrations": {
      "get": {
        "operationId": "get-api-settings-integrations",
        "tags": [
          "settings"
        ],
        "summary": "GET /api/settings/integrations",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 196,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L196"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/settings/integrations/anthropic": {
      "get": {
        "operationId": "get-api-settings-integrations-anthropic",
        "tags": [
          "landers"
        ],
        "summary": "GET /api/settings/integrations/anthropic",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requirePlatformAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 286,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L286"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-settings-integrations-anthropic",
        "tags": [
          "landers"
        ],
        "summary": "PATCH /api/settings/integrations/anthropic",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requirePlatformAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 288,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L288"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "apiKey": {
                    "type": "string",
                    "minLength": 20,
                    "maxLength": 400,
                    "writeOnly": true
                  },
                  "clearApiKey": {
                    "type": "boolean",
                    "writeOnly": true
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/settings/integrations/anthropic/recheck": {
      "post": {
        "operationId": "post-api-settings-integrations-anthropic-recheck",
        "tags": [
          "landers"
        ],
        "summary": "POST /api/settings/integrations/anthropic/recheck",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requirePlatformAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/landers/routes.ts",
          "line": 294,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/landers/routes.ts#L294"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/settings/integrations/assemblyai": {
      "patch": {
        "operationId": "patch-api-settings-integrations-assemblyai",
        "tags": [
          "settings"
        ],
        "summary": "PATCH /api/settings/integrations/assemblyai",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 408,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L408"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "apiKey": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 5000,
                    "writeOnly": true
                  },
                  "clearApiKey": {
                    "type": "boolean",
                    "writeOnly": true
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/settings/integrations/assemblyai/recheck": {
      "post": {
        "operationId": "post-api-settings-integrations-assemblyai-recheck",
        "tags": [
          "settings"
        ],
        "summary": "POST /api/settings/integrations/assemblyai/recheck",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 415,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L415"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/settings/integrations/auphonic": {
      "patch": {
        "operationId": "patch-api-settings-integrations-auphonic",
        "tags": [
          "settings"
        ],
        "summary": "PATCH /api/settings/integrations/auphonic",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 421,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L421"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "apiKey": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 5000,
                    "writeOnly": true
                  },
                  "clearApiKey": {
                    "type": "boolean",
                    "writeOnly": true
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/settings/integrations/auphonic/recheck": {
      "post": {
        "operationId": "post-api-settings-integrations-auphonic-recheck",
        "tags": [
          "settings"
        ],
        "summary": "POST /api/settings/integrations/auphonic/recheck",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 428,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L428"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/settings/integrations/discord": {
      "patch": {
        "operationId": "patch-api-settings-integrations-discord",
        "tags": [
          "settings"
        ],
        "summary": "PATCH /api/settings/integrations/discord",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 249,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L249"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "notificationsEnabled": {
                    "type": "boolean"
                  },
                  "callAlertsEnabled": {
                    "type": "boolean"
                  },
                  "taskAlertsEnabled": {
                    "type": "boolean"
                  },
                  "ticketAlertsEnabled": {
                    "type": "boolean"
                  },
                  "leadDeliveryAlertsEnabled": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/settings/integrations/discord/provision": {
      "post": {
        "operationId": "post-api-settings-integrations-discord-provision",
        "tags": [
          "settings"
        ],
        "summary": "POST /api/settings/integrations/discord/provision",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 256,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L256"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/settings/integrations/discord/reconcile": {
      "post": {
        "operationId": "post-api-settings-integrations-discord-reconcile",
        "tags": [
          "settings"
        ],
        "summary": "POST /api/settings/integrations/discord/reconcile",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 261,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L261"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/settings/integrations/fathom/refresh": {
      "post": {
        "operationId": "post-api-settings-integrations-fathom-refresh",
        "tags": [
          "settings"
        ],
        "summary": "POST /api/settings/integrations/fathom/refresh",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 286,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L286"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/settings/integrations/ghl": {
      "patch": {
        "operationId": "patch-api-settings-integrations-ghl",
        "tags": [
          "settings"
        ],
        "summary": "PATCH /api/settings/integrations/ghl",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 305,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L305"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "locationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "privateKey": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 5000
                  },
                  "clearStoredCredentials": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/settings/integrations/ghl/sync": {
      "post": {
        "operationId": "post-api-settings-integrations-ghl-sync",
        "tags": [
          "settings"
        ],
        "summary": "POST /api/settings/integrations/ghl/sync",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 319,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L319"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/settings/integrations/google-drive": {
      "delete": {
        "operationId": "delete-api-settings-integrations-google-drive",
        "tags": [
          "settings"
        ],
        "summary": "DELETE /api/settings/integrations/google-drive",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 376,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L376"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-settings-integrations-google-drive",
        "tags": [
          "settings"
        ],
        "summary": "PATCH /api/settings/integrations/google-drive",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 359,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L359"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "activeParentFolderId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "churnedParentFolderId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/settings/integrations/google-drive/callback": {
      "get": {
        "operationId": "get-api-settings-integrations-google-drive-callback",
        "tags": [
          "settings"
        ],
        "summary": "GET /api/settings/integrations/google-drive/callback",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "error",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 331,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L331"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/settings/integrations/google-drive/connect": {
      "post": {
        "operationId": "post-api-settings-integrations-google-drive-connect",
        "tags": [
          "settings"
        ],
        "summary": "POST /api/settings/integrations/google-drive/connect",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 325,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L325"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/settings/integrations/google-drive/reconcile-churned": {
      "post": {
        "operationId": "post-api-settings-integrations-google-drive-reconcile-churned",
        "tags": [
          "settings"
        ],
        "summary": "POST /api/settings/integrations/google-drive/reconcile-churned",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 372,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L372"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/settings/integrations/google-drive/refresh": {
      "post": {
        "operationId": "post-api-settings-integrations-google-drive-refresh",
        "tags": [
          "settings"
        ],
        "summary": "POST /api/settings/integrations/google-drive/refresh",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 366,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L366"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/settings/integrations/google-places": {
      "get": {
        "operationId": "get-api-settings-integrations-google-places",
        "tags": [
          "settings"
        ],
        "summary": "GET /api/settings/integrations/google-places",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requirePlatformAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 200,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L200"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-settings-integrations-google-places",
        "tags": [
          "settings"
        ],
        "summary": "PATCH /api/settings/integrations/google-places",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requirePlatformAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 204,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L204"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "apiKey": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 5000,
                    "writeOnly": true
                  },
                  "clearApiKey": {
                    "type": "boolean",
                    "writeOnly": true
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/settings/integrations/google-places/recheck": {
      "post": {
        "operationId": "post-api-settings-integrations-google-places-recheck",
        "tags": [
          "settings"
        ],
        "summary": "POST /api/settings/integrations/google-places/recheck",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requirePlatformAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 209,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L209"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/settings/integrations/health": {
      "get": {
        "operationId": "get-api-settings-integrations-health",
        "tags": [
          "integration-health"
        ],
        "summary": "GET /api/settings/integrations/health",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requirePlatformAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/integration-health/routes.ts",
          "line": 24,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/integration-health/routes.ts#L24"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/settings/integrations/health/check": {
      "post": {
        "operationId": "post-api-settings-integrations-health-check",
        "tags": [
          "integration-health"
        ],
        "summary": "POST /api/settings/integrations/health/check",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requirePlatformAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/integration-health/routes.ts",
          "line": 26,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/integration-health/routes.ts#L26"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/settings/integrations/meta": {
      "patch": {
        "operationId": "patch-api-settings-integrations-meta",
        "tags": [
          "settings"
        ],
        "summary": "PATCH /api/settings/integrations/meta",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 265,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L265"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "userAccessToken": {
                    "type": "string",
                    "writeOnly": true
                  },
                  "clearToken": {
                    "type": "boolean",
                    "writeOnly": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/settings/integrations/meta-status": {
      "get": {
        "operationId": "get-api-settings-integrations-meta-status",
        "tags": [
          "settings"
        ],
        "summary": "GET /api/settings/integrations/meta-status",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer"
          ],
          "handler": "requireMetaStatus",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 231,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L231"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/settings/integrations/meta/rotate": {
      "post": {
        "operationId": "post-api-settings-integrations-meta-rotate",
        "tags": [
          "settings"
        ],
        "summary": "POST /api/settings/integrations/meta/rotate",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 277,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L277"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/settings/integrations/namecheap": {
      "patch": {
        "operationId": "patch-api-settings-integrations-namecheap",
        "tags": [
          "settings"
        ],
        "summary": "PATCH /api/settings/integrations/namecheap",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 389,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L389"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "username": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "apiKey": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 5000,
                    "writeOnly": true
                  },
                  "environment": {
                    "type": "string",
                    "enum": [
                      "sandbox",
                      "production"
                    ]
                  },
                  "clearStoredCredentials": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/settings/integrations/openai": {
      "patch": {
        "operationId": "patch-api-settings-integrations-openai",
        "tags": [
          "settings"
        ],
        "summary": "PATCH /api/settings/integrations/openai",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 396,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L396"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "apiKey": {
                    "type": "string",
                    "writeOnly": true
                  },
                  "clearApiKey": {
                    "type": "boolean",
                    "writeOnly": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/settings/integrations/slack": {
      "patch": {
        "operationId": "patch-api-settings-integrations-slack",
        "tags": [
          "settings"
        ],
        "summary": "PATCH /api/settings/integrations/slack",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 235,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L235"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "botToken": {
                    "type": "string",
                    "writeOnly": true
                  },
                  "clearBotToken": {
                    "type": "boolean",
                    "writeOnly": true
                  },
                  "messageTemplates": {
                    "type": "object",
                    "properties": {
                      "newClientWelcome": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 10000
                      },
                      "metaAccessLost": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 5000
                      },
                      "metaPaymentIssue": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 5000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/settings/integrations/slack/test-channel": {
      "post": {
        "operationId": "post-api-settings-integrations-slack-test-channel",
        "tags": [
          "settings"
        ],
        "summary": "POST /api/settings/integrations/slack/test-channel",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 447,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L447"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientId": {
                    "type": "string"
                  },
                  "channel": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "channel"
                ]
              }
            }
          }
        }
      }
    },
    "/api/settings/integrations/sosfinder": {
      "get": {
        "operationId": "get-api-settings-integrations-sosfinder",
        "tags": [
          "settings"
        ],
        "summary": "GET /api/settings/integrations/sosfinder",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requirePlatformAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 213,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L213"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-settings-integrations-sosfinder",
        "tags": [
          "settings"
        ],
        "summary": "PATCH /api/settings/integrations/sosfinder",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requirePlatformAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 217,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L217"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "apiKey": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 5000,
                    "writeOnly": true
                  },
                  "clearApiKey": {
                    "type": "boolean",
                    "writeOnly": true
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/settings/integrations/sosfinder/recheck": {
      "post": {
        "operationId": "post-api-settings-integrations-sosfinder-recheck",
        "tags": [
          "settings"
        ],
        "summary": "POST /api/settings/integrations/sosfinder/recheck",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requirePlatformAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 222,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L222"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/settings/integrations/stripe": {
      "patch": {
        "operationId": "patch-api-settings-integrations-stripe",
        "tags": [
          "settings"
        ],
        "summary": "PATCH /api/settings/integrations/stripe",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 434,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L434"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "secretKey": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 5000,
                    "writeOnly": true
                  },
                  "webhookSecret": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 5000,
                    "writeOnly": true
                  },
                  "clearStoredCredentials": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/settings/integrations/stripe/recheck": {
      "post": {
        "operationId": "post-api-settings-integrations-stripe-recheck",
        "tags": [
          "settings"
        ],
        "summary": "POST /api/settings/integrations/stripe/recheck",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 441,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L441"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/settings/integrations/vercel": {
      "patch": {
        "operationId": "patch-api-settings-integrations-vercel",
        "tags": [
          "settings"
        ],
        "summary": "PATCH /api/settings/integrations/vercel",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 382,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L382"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 5000,
                    "writeOnly": true
                  },
                  "teamSlug": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "clearStoredCredentials": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/settings/integrations/wise": {
      "patch": {
        "operationId": "patch-api-settings-integrations-wise",
        "tags": [
          "settings"
        ],
        "summary": "PATCH /api/settings/integrations/wise",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 292,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L292"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "apiToken": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 5000,
                    "writeOnly": true
                  },
                  "profileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "clearStoredCredentials": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/sops": {
      "get": {
        "operationId": "get-api-sops",
        "tags": [
          "sops"
        ],
        "summary": "GET /api/sops",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireReader",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 176,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L176"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-sops",
        "tags": [
          "sops"
        ],
        "summary": "POST /api/sops",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireEditor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 240,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L240"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "categoryId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "summary": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "body": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "doc"
                        ]
                      },
                      "content": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      }
                    },
                    "required": [
                      "type"
                    ]
                  }
                },
                "required": [
                  "categoryId",
                  "title"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/sops/{id}": {
      "delete": {
        "operationId": "delete-api-sops-id",
        "tags": [
          "sops"
        ],
        "summary": "DELETE /api/sops/:id",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireEditor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 257,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L257"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-sops-id",
        "tags": [
          "sops"
        ],
        "summary": "PATCH /api/sops/:id",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireEditor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 248,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L248"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "categoryId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "summary": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "body": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "doc"
                        ]
                      },
                      "content": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      }
                    },
                    "required": [
                      "type"
                    ]
                  },
                  "ownerTeamMemberId": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 64
                  },
                  "reviewIntervalDays": {
                    "type": "integer",
                    "minimum": 7,
                    "maximum": 1095
                  },
                  "sortOrder": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/sops/{id}/media/embeds": {
      "post": {
        "operationId": "post-api-sops-id-media-embeds",
        "tags": [
          "sops"
        ],
        "summary": "POST /api/sops/:id/media/embeds",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireEditor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 335,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L335"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  }
                },
                "required": [
                  "url"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/sops/{id}/media/images": {
      "post": {
        "operationId": "post-api-sops-id-media-images",
        "tags": [
          "sops"
        ],
        "summary": "POST /api/sops/:id/media/images",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireEditor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 309,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L309"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 180
                  },
                  "dataUrl": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "fileName",
                  "dataUrl"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/sops/{id}/media/videos": {
      "post": {
        "operationId": "post-api-sops-id-media-videos",
        "tags": [
          "sops"
        ],
        "summary": "POST /api/sops/:id/media/videos",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireEditor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 321,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L321"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 180
                  },
                  "mimeType": {
                    "type": "string"
                  },
                  "sizeBytes": {
                    "type": "integer"
                  }
                },
                "required": [
                  "fileName",
                  "mimeType",
                  "sizeBytes"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/sops/{id}/reviewed": {
      "post": {
        "operationId": "post-api-sops-id-reviewed",
        "tags": [
          "sops"
        ],
        "summary": "POST /api/sops/:id/reviewed",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireEditor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 274,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L274"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/sops/{id}/revisions": {
      "get": {
        "operationId": "get-api-sops-id-revisions",
        "tags": [
          "sops"
        ],
        "summary": "GET /api/sops/:id/revisions",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireReader",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 290,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L290"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/sops/{id}/revisions/{version}": {
      "get": {
        "operationId": "get-api-sops-id-revisions-version",
        "tags": [
          "sops"
        ],
        "summary": "GET /api/sops/:id/revisions/:version",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireReader",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 294,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L294"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/sops/{id}/revisions/{version}/restore": {
      "post": {
        "operationId": "post-api-sops-id-revisions-version-restore",
        "tags": [
          "sops"
        ],
        "summary": "POST /api/sops/:id/revisions/:version/restore",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireEditor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 299,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L299"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/sops/{id}/share": {
      "post": {
        "operationId": "post-api-sops-id-share",
        "tags": [
          "sops"
        ],
        "summary": "POST /api/sops/:id/share",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireEditor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 282,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L282"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "enabled"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/sops/{id}/status": {
      "post": {
        "operationId": "post-api-sops-id-status",
        "tags": [
          "sops"
        ],
        "summary": "POST /api/sops/:id/status",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireEditor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 265,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L265"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "draft",
                      "published"
                    ]
                  }
                },
                "required": [
                  "status"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/sops/{slug}": {
      "get": {
        "operationId": "get-api-sops-slug",
        "tags": [
          "sops"
        ],
        "summary": "GET /api/sops/:slug",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireReader",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 371,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L371"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/sops/categories": {
      "get": {
        "operationId": "get-api-sops-categories",
        "tags": [
          "sops"
        ],
        "summary": "GET /api/sops/categories",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireReader",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 194,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L194"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-sops-categories",
        "tags": [
          "sops"
        ],
        "summary": "POST /api/sops/categories",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireEditor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 198,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L198"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 400
                  },
                  "icon": {
                    "type": "string",
                    "enum": [
                      "book",
                      "rocket",
                      "handshake",
                      "clipboard",
                      "target",
                      "megaphone",
                      "trending-up",
                      "phone",
                      "heart",
                      "image",
                      "globe",
                      "wallet",
                      "users",
                      "settings",
                      "shield",
                      "sparkles"
                    ]
                  },
                  "color": {
                    "type": "string",
                    "enum": [
                      "blue",
                      "purple",
                      "green",
                      "orange",
                      "yellow",
                      "red",
                      "tan",
                      "brown",
                      "mauve",
                      "gray"
                    ]
                  },
                  "audience": {
                    "type": "string",
                    "enum": [
                      "internal",
                      "external"
                    ]
                  },
                  "sortOrder": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  }
                },
                "required": [
                  "title"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/sops/categories/{id}": {
      "delete": {
        "operationId": "delete-api-sops-categories-id",
        "tags": [
          "sops"
        ],
        "summary": "DELETE /api/sops/categories/:id",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireEditor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 210,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L210"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-sops-categories-id",
        "tags": [
          "sops"
        ],
        "summary": "PATCH /api/sops/categories/:id",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireEditor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 202,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L202"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 400
                  },
                  "icon": {
                    "type": "string",
                    "enum": [
                      "book",
                      "rocket",
                      "handshake",
                      "clipboard",
                      "target",
                      "megaphone",
                      "trending-up",
                      "phone",
                      "heart",
                      "image",
                      "globe",
                      "wallet",
                      "users",
                      "settings",
                      "shield",
                      "sparkles"
                    ]
                  },
                  "color": {
                    "type": "string",
                    "enum": [
                      "blue",
                      "purple",
                      "green",
                      "orange",
                      "yellow",
                      "red",
                      "tan",
                      "brown",
                      "mauve",
                      "gray"
                    ]
                  },
                  "audience": {
                    "type": "string",
                    "enum": [
                      "internal",
                      "external"
                    ]
                  },
                  "sortOrder": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/sops/media/{mediaId}": {
      "get": {
        "operationId": "get-api-sops-media-mediaId",
        "tags": [
          "sops"
        ],
        "summary": "GET /api/sops/media/:mediaId",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "mediaId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireReader",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 214,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L214"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/sops/media/{mediaId}/analysis": {
      "get": {
        "operationId": "get-api-sops-media-mediaId-analysis",
        "tags": [
          "sops"
        ],
        "summary": "GET /api/sops/media/:mediaId/analysis",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "mediaId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireReader",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 224,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L224"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-sops-media-mediaId-analysis",
        "tags": [
          "sops"
        ],
        "summary": "POST /api/sops/media/:mediaId/analysis",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "mediaId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireEditor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 232,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L232"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/sops/media/{mediaId}/finalize": {
      "post": {
        "operationId": "post-api-sops-media-mediaId-finalize",
        "tags": [
          "sops"
        ],
        "summary": "POST /api/sops/media/:mediaId/finalize",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "mediaId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireEditor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 344,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L344"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/sops/reorder": {
      "post": {
        "operationId": "post-api-sops-reorder",
        "tags": [
          "sops"
        ],
        "summary": "POST /api/sops/reorder",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireEditor",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 180,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L180"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "categories"
                        ]
                      },
                      "audience": {
                        "type": "string",
                        "enum": [
                          "internal",
                          "external"
                        ]
                      },
                      "orderedIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "maxItems": 1000
                      }
                    },
                    "required": [
                      "type",
                      "audience",
                      "orderedIds"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "documents"
                        ]
                      },
                      "categoryId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      "orderedIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "maxItems": 1000
                      }
                    },
                    "required": [
                      "type",
                      "categoryId",
                      "orderedIds"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/api/sops/search": {
      "get": {
        "operationId": "get-api-sops-search",
        "tags": [
          "sops"
        ],
        "summary": "GET /api/sops/search",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          {
            "name": "audience",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "internal",
                "external"
              ]
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireReader",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 184,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L184"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/strategy": {
      "get": {
        "operationId": "get-api-strategy",
        "tags": [
          "strategy"
        ],
        "summary": "GET /api/strategy",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "pending",
                "in_review",
                "approved"
              ]
            }
          },
          {
            "name": "clientId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "niche",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner"
          ],
          "handler": "requireStrategy",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/strategy/routes.ts",
          "line": 82,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/strategy/routes.ts#L82"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/strategy/{campaignId}": {
      "get": {
        "operationId": "get-api-strategy-campaignId",
        "tags": [
          "strategy"
        ],
        "summary": "GET /api/strategy/:campaignId",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner"
          ],
          "handler": "requireStrategy",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/strategy/routes.ts",
          "line": 95,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/strategy/routes.ts#L95"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-strategy-campaignId",
        "tags": [
          "strategy"
        ],
        "summary": "PATCH /api/strategy/:campaignId",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer"
          ],
          "handler": "requireStrategyWrite",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/strategy/routes.ts",
          "line": 102,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/strategy/routes.ts#L102"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "note": {
                    "type": "string",
                    "maxLength": 200000
                  },
                  "icp": {
                    "type": "string",
                    "maxLength": 20000
                  },
                  "geo": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "services": {
                    "type": "string",
                    "maxLength": 20000
                  },
                  "landingPageNotes": {
                    "type": "string",
                    "maxLength": 200000
                  },
                  "targetNiche": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "startingDailyAdSpendUsd": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "sourceDocUrl": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 2000
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/strategy/{campaignId}/angles": {
      "post": {
        "operationId": "post-api-strategy-campaignId-angles",
        "tags": [
          "strategy"
        ],
        "summary": "POST /api/strategy/:campaignId/angles",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer"
          ],
          "handler": "requireStrategyWrite",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/strategy/routes.ts",
          "line": 116,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/strategy/routes.ts#L116"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/strategy/{campaignId}/angles/{angleId}": {
      "delete": {
        "operationId": "delete-api-strategy-campaignId-angles-angleId",
        "tags": [
          "strategy"
        ],
        "summary": "DELETE /api/strategy/:campaignId/angles/:angleId",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "angleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer"
          ],
          "handler": "requireStrategyWrite",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/strategy/routes.ts",
          "line": 136,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/strategy/routes.ts#L136"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-strategy-campaignId-angles-angleId",
        "tags": [
          "strategy"
        ],
        "summary": "PATCH /api/strategy/:campaignId/angles/:angleId",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "angleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer"
          ],
          "handler": "requireStrategyWrite",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/strategy/routes.ts",
          "line": 123,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/strategy/routes.ts#L123"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "nicheFamily": {
                    "type": "string"
                  },
                  "nicheDetail": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "family": {
                    "type": "string"
                  },
                  "headline": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 300
                    }
                  },
                  "rationale": {
                    "type": "string",
                    "maxLength": 20000
                  },
                  "claimStatus": {
                    "type": "string",
                    "enum": [
                      "verified",
                      "calculated",
                      "provisional",
                      "placeholder"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "proposed",
                      "approved"
                    ]
                  },
                  "creativeRecordIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "maxItems": 12
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/strategy/{campaignId}/angles/{angleId}/creatives": {
      "get": {
        "operationId": "get-api-strategy-campaignId-angles-angleId-creatives",
        "tags": [
          "strategy"
        ],
        "summary": "GET /api/strategy/:campaignId/angles/:angleId/creatives",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "angleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner"
          ],
          "handler": "requireStrategy",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/strategy/routes.ts",
          "line": 147,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/strategy/routes.ts#L147"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/strategy/{campaignId}/approve": {
      "post": {
        "operationId": "post-api-strategy-campaignId-approve",
        "tags": [
          "strategy"
        ],
        "summary": "POST /api/strategy/:campaignId/approve",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer"
          ],
          "handler": "requireStrategyWrite",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/strategy/routes.ts",
          "line": 168,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/strategy/routes.ts#L168"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/strategy/{campaignId}/stage": {
      "post": {
        "operationId": "post-api-strategy-campaignId-stage",
        "tags": [
          "strategy"
        ],
        "summary": "POST /api/strategy/:campaignId/stage",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer"
          ],
          "handler": "requireStrategyWrite",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/strategy/routes.ts",
          "line": 180,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/strategy/routes.ts#L180"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "stage": {
                    "type": "string",
                    "enum": [
                      "Not started",
                      "In progress",
                      "Awaiting approval",
                      "Approved"
                    ]
                  }
                },
                "required": [
                  "stage"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/strategy/{campaignId}/submit": {
      "post": {
        "operationId": "post-api-strategy-campaignId-submit",
        "tags": [
          "strategy"
        ],
        "summary": "POST /api/strategy/:campaignId/submit",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer"
          ],
          "handler": "requireStrategyWrite",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/strategy/routes.ts",
          "line": 158,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/strategy/routes.ts#L158"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/team-members": {
      "get": {
        "operationId": "get-api-team-members",
        "tags": [
          "team"
        ],
        "summary": "GET /api/team-members",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "agencyId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireTeam",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/team/routes.ts",
          "line": 142,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/team/routes.ts#L142"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-team-members",
        "tags": [
          "team"
        ],
        "summary": "POST /api/team-members",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireTeam",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/team/routes.ts",
          "line": 147,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/team/routes.ts#L147"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "memberType": {
                    "type": "string",
                    "enum": [
                      "human",
                      "ai"
                    ]
                  },
                  "agencyId": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "minLength": 1
                  },
                  "permissions": {
                    "type": "object",
                    "properties": {
                      "pages": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": false,
                        "x-enj-additional-validation": true
                      },
                      "canSubmitAppointmentOutcomes": {
                        "type": "boolean"
                      },
                      "canCreateTickets": {
                        "type": "boolean"
                      },
                      "canCommentOnTickets": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  },
                  "workspaceAdmin": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "admin",
                      "sales",
                      "mediabuyer",
                      "csm",
                      "staff",
                      "setter",
                      "partner"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "active",
                      "offboarded"
                    ]
                  },
                  "title": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "avatarUrl": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "slackProfileUrl": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "slackMemberId": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "x-enj-additional-validation": true
                  },
                  "discordUserId": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "x-enj-additional-validation": true
                  },
                  "fathomApiKey": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000,
                    "writeOnly": true
                  },
                  "fathomWebhookSecret": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000,
                    "writeOnly": true
                  },
                  "monthlySalaryUsd": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "payrollStartDate": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "payrollFrequency": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "weekly",
                      "biweekly",
                      "monthly"
                    ]
                  },
                  "agentPlatform": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "openclaw",
                      "codex",
                      "claude",
                      "custom"
                    ]
                  },
                  "agentIcon": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "bot",
                      "bot-message-square",
                      "cpu",
                      "brain-circuit",
                      "brain",
                      "terminal",
                      "code",
                      "workflow",
                      "globe",
                      "panels-top-left",
                      "layout-template",
                      "shield-check",
                      "file-check-2",
                      "clipboard-list",
                      "search",
                      "database",
                      "message-square",
                      "messages-square",
                      "mail",
                      "phone-call",
                      "headset",
                      "calendar-check",
                      "send",
                      "bell",
                      "megaphone",
                      "target",
                      "chart-line",
                      "trending-up",
                      "handshake",
                      "badge-dollar-sign",
                      "receipt",
                      "piggy-bank",
                      "pen-tool",
                      "palette",
                      "paintbrush",
                      "camera",
                      "video",
                      "clapperboard",
                      "image",
                      "mic",
                      "rocket",
                      "zap",
                      "flame",
                      "star",
                      "crown",
                      "trophy",
                      "gem",
                      "lightbulb",
                      "atom",
                      "orbit",
                      "satellite",
                      "telescope",
                      "compass",
                      "coffee",
                      "puzzle",
                      "gamepad-2",
                      "cat",
                      "dog",
                      "bird",
                      "rabbit",
                      "squirrel",
                      "turtle",
                      "fish",
                      "ghost"
                    ]
                  },
                  "agentIconColor": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "brand",
                      "blue",
                      "teal",
                      "green",
                      "amber",
                      "orange",
                      "red",
                      "pink",
                      "violet",
                      "slate"
                    ]
                  }
                },
                "required": [
                  "name",
                  "role"
                ],
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/team-members/{id}": {
      "delete": {
        "operationId": "delete-api-team-members-id",
        "tags": [
          "team"
        ],
        "summary": "DELETE /api/team-members/:id",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireTeam",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/team/routes.ts",
          "line": 253,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/team/routes.ts#L253"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirmation": {
                    "type": "string",
                    "enum": [
                      "DELETE"
                    ]
                  }
                },
                "required": [
                  "confirmation"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "patch-api-team-members-id",
        "tags": [
          "team"
        ],
        "summary": "PATCH /api/team-members/:id",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireTeam",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/team/routes.ts",
          "line": 212,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/team/routes.ts#L212"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "admin",
                      "sales",
                      "mediabuyer",
                      "csm",
                      "staff",
                      "setter",
                      "partner"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "active",
                      "offboarded"
                    ]
                  },
                  "title": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "avatarUrl": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "slackProfileUrl": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "slackMemberId": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "x-enj-additional-validation": true
                  },
                  "discordUserId": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "x-enj-additional-validation": true
                  },
                  "fathomApiKey": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000,
                    "writeOnly": true
                  },
                  "fathomWebhookSecret": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000,
                    "writeOnly": true
                  },
                  "clearFathomApiKey": {
                    "type": "boolean",
                    "writeOnly": true
                  },
                  "clearFathomWebhookSecret": {
                    "type": "boolean",
                    "writeOnly": true
                  },
                  "monthlySalaryUsd": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "payrollStartDate": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "payrollFrequency": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "weekly",
                      "biweekly",
                      "monthly"
                    ]
                  },
                  "agentPlatform": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "openclaw",
                      "codex",
                      "claude",
                      "custom"
                    ]
                  },
                  "agentIcon": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "bot",
                      "bot-message-square",
                      "cpu",
                      "brain-circuit",
                      "brain",
                      "terminal",
                      "code",
                      "workflow",
                      "globe",
                      "panels-top-left",
                      "layout-template",
                      "shield-check",
                      "file-check-2",
                      "clipboard-list",
                      "search",
                      "database",
                      "message-square",
                      "messages-square",
                      "mail",
                      "phone-call",
                      "headset",
                      "calendar-check",
                      "send",
                      "bell",
                      "megaphone",
                      "target",
                      "chart-line",
                      "trending-up",
                      "handshake",
                      "badge-dollar-sign",
                      "receipt",
                      "piggy-bank",
                      "pen-tool",
                      "palette",
                      "paintbrush",
                      "camera",
                      "video",
                      "clapperboard",
                      "image",
                      "mic",
                      "rocket",
                      "zap",
                      "flame",
                      "star",
                      "crown",
                      "trophy",
                      "gem",
                      "lightbulb",
                      "atom",
                      "orbit",
                      "satellite",
                      "telescope",
                      "compass",
                      "coffee",
                      "puzzle",
                      "gamepad-2",
                      "cat",
                      "dog",
                      "bird",
                      "rabbit",
                      "squirrel",
                      "turtle",
                      "fish",
                      "ghost"
                    ]
                  },
                  "agentIconColor": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "brand",
                      "blue",
                      "teal",
                      "green",
                      "amber",
                      "orange",
                      "red",
                      "pink",
                      "violet",
                      "slate"
                    ]
                  },
                  "permissions": {
                    "type": "object",
                    "properties": {
                      "pages": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": false,
                        "x-enj-additional-validation": true
                      },
                      "canSubmitAppointmentOutcomes": {
                        "type": "boolean"
                      },
                      "canCreateTickets": {
                        "type": "boolean"
                      },
                      "canCommentOnTickets": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  },
                  "workspaceAdmin": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/team-members/{id}/agent-credentials": {
      "delete": {
        "operationId": "delete-api-team-members-id-agent-credentials",
        "tags": [
          "team"
        ],
        "summary": "DELETE /api/team-members/:id/agent-credentials",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/team/routes.ts",
          "line": 192,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/team/routes.ts#L192"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/team-members/{id}/agent-credentials/rotate": {
      "post": {
        "operationId": "post-api-team-members-id-agent-credentials-rotate",
        "tags": [
          "team"
        ],
        "summary": "POST /api/team-members/:id/agent-credentials/rotate",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/team/routes.ts",
          "line": 185,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/team/routes.ts#L185"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/team-members/{id}/avatar": {
      "post": {
        "operationId": "post-api-team-members-id-avatar",
        "tags": [
          "team"
        ],
        "summary": "POST /api/team-members/:id/avatar",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireTeam",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/team/routes.ts",
          "line": 270,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/team/routes.ts#L270"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 180
                  },
                  "dataUrl": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "fileName",
                  "dataUrl"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/team-members/{id}/payments/mark-paid": {
      "post": {
        "operationId": "post-api-team-members-id-payments-mark-paid",
        "tags": [
          "team"
        ],
        "summary": "POST /api/team-members/:id/payments/mark-paid",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/team/routes.ts",
          "line": 296,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/team/routes.ts#L296"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "dueDate": {
                    "type": "string",
                    "x-enj-additional-validation": true
                  }
                },
                "required": [
                  "dueDate"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/team-members/{id}/send-invite": {
      "post": {
        "operationId": "post-api-team-members-id-send-invite",
        "tags": [
          "team"
        ],
        "summary": "POST /api/team-members/:id/send-invite",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireTeam",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/team/routes.ts",
          "line": 172,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/team/routes.ts#L172"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/team-members/{id}/send-password-reset": {
      "post": {
        "operationId": "post-api-team-members-id-send-password-reset",
        "tags": [
          "team"
        ],
        "summary": "POST /api/team-members/:id/send-password-reset",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireTeam",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/team/routes.ts",
          "line": 199,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/team/routes.ts#L199"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/team-members/payments/{paymentId}": {
      "patch": {
        "operationId": "patch-api-team-members-payments-paymentId",
        "tags": [
          "team"
        ],
        "summary": "PATCH /api/team-members/payments/:paymentId",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "paymentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/team/routes.ts",
          "line": 309,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/team/routes.ts#L309"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "paid",
                      "skipped",
                      "unpaid"
                    ]
                  }
                },
                "required": [
                  "status"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/team-members/payroll/upcoming": {
      "get": {
        "operationId": "get-api-team-members-payroll-upcoming",
        "tags": [
          "team"
        ],
        "summary": "GET /api/team-members/payroll/upcoming",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/team/routes.ts",
          "line": 292,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/team/routes.ts#L292"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/tickets": {
      "get": {
        "operationId": "get-api-tickets",
        "tags": [
          "tickets"
        ],
        "summary": "GET /api/tickets",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "view",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "assigneeId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "clientId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireTickets",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/tickets/routes.ts",
          "line": 85,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/tickets/routes.ts#L85"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-tickets",
        "tags": [
          "tickets"
        ],
        "summary": "POST /api/tickets",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireTickets",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/tickets/routes.ts",
          "line": 108,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/tickets/routes.ts#L108"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "Backlog",
                      "In Progress",
                      "Waiting On Client",
                      "Awaiting Approval",
                      "Completed"
                    ]
                  },
                  "priority": {
                    "type": "string",
                    "enum": [
                      "Low",
                      "Normal",
                      "High",
                      "Urgent"
                    ]
                  },
                  "description": {
                    "type": "string"
                  },
                  "bodyDoc": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {}
                  },
                  "bodyText": {
                    "type": "string"
                  },
                  "clientScope": {
                    "type": "string",
                    "enum": [
                      "none",
                      "all",
                      "clients"
                    ]
                  },
                  "clientIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "campaignIds": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "assigneeIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "dueDate": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "visibility": {
                    "type": "string",
                    "enum": [
                      "internal",
                      "partner"
                    ]
                  }
                },
                "required": [
                  "title"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/tickets/{id}": {
      "delete": {
        "operationId": "delete-api-tickets-id",
        "tags": [
          "tickets"
        ],
        "summary": "DELETE /api/tickets/:id",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm"
          ],
          "handler": "requireTicketArchive",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/tickets/routes.ts",
          "line": 182,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/tickets/routes.ts#L182"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "get": {
        "operationId": "get-api-tickets-id",
        "tags": [
          "tickets"
        ],
        "summary": "GET /api/tickets/:id",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireTickets",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/tickets/routes.ts",
          "line": 96,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/tickets/routes.ts#L96"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-tickets-id",
        "tags": [
          "tickets"
        ],
        "summary": "PATCH /api/tickets/:id",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireTicketWrite",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/tickets/routes.ts",
          "line": 121,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/tickets/routes.ts#L121"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "expectedRevision": {
                    "type": "integer"
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "Backlog",
                      "In Progress",
                      "Waiting On Client",
                      "Awaiting Approval",
                      "Completed"
                    ]
                  },
                  "priority": {
                    "type": "string",
                    "enum": [
                      "Low",
                      "Normal",
                      "High",
                      "Urgent"
                    ]
                  },
                  "description": {
                    "type": "string"
                  },
                  "bodyDoc": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {}
                  },
                  "bodyText": {
                    "type": "string"
                  },
                  "clientScope": {
                    "type": "string",
                    "enum": [
                      "none",
                      "all",
                      "clients"
                    ]
                  },
                  "clientIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "campaignIds": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "assigneeIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "dueDate": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "visibility": {
                    "type": "string",
                    "enum": [
                      "internal",
                      "partner"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/tickets/{id}/attachments": {
      "post": {
        "operationId": "post-api-tickets-id-attachments",
        "tags": [
          "tickets"
        ],
        "summary": "POST /api/tickets/:id/attachments",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireTicketWrite",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/tickets/routes.ts",
          "line": 156,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/tickets/routes.ts#L156"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "minLength": 1
                  },
                  "dataUrl": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "fileName",
                  "dataUrl"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/tickets/{id}/comments": {
      "post": {
        "operationId": "post-api-tickets-id-comments",
        "tags": [
          "tickets"
        ],
        "summary": "POST /api/tickets/:id/comments",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireTickets",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/tickets/routes.ts",
          "line": 135,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/tickets/routes.ts#L135"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "body": {
                    "type": "string",
                    "minLength": 1
                  },
                  "visibility": {
                    "type": "string",
                    "enum": [
                      "internal",
                      "partner"
                    ]
                  }
                },
                "required": [
                  "body"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/tickets/{id}/read": {
      "post": {
        "operationId": "post-api-tickets-id-read",
        "tags": [
          "tickets"
        ],
        "summary": "POST /api/tickets/:id/read",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireTickets",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/tickets/routes.ts",
          "line": 150,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/tickets/routes.ts#L150"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/tickets/attachments/{id}/image": {
      "get": {
        "operationId": "get-api-tickets-attachments-id-image",
        "tags": [
          "tickets"
        ],
        "summary": "GET /api/tickets/attachments/:id/image",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireTickets",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/tickets/routes.ts",
          "line": 170,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/tickets/routes.ts#L170"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/tickets/board": {
      "get": {
        "operationId": "get-api-tickets-board",
        "tags": [
          "tickets"
        ],
        "summary": "GET /api/tickets/board",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "view",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "Backlog",
                "In Progress",
                "Waiting On Client",
                "Awaiting Approval",
                "Completed"
              ]
            }
          },
          {
            "name": "assigneeId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "clientId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 300
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireTickets",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/tickets/routes.ts",
          "line": 79,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/tickets/routes.ts#L79"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/tickets/options": {
      "get": {
        "operationId": "get-api-tickets-options",
        "tags": [
          "tickets"
        ],
        "summary": "GET /api/tickets/options",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "csm",
            "mediabuyer",
            "partner",
            "sales",
            "setter",
            "staff"
          ],
          "handler": "requireTickets",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/tickets/routes.ts",
          "line": 83,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/tickets/routes.ts#L83"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/tools/business-lookup/config": {
      "get": {
        "operationId": "get-api-tools-business-lookup-config",
        "tags": [
          "business-lookup"
        ],
        "summary": "GET /api/tools/business-lookup/config",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "staff"
          ],
          "handler": "requireLookup",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/business-lookup/routes.ts",
          "line": 21,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/business-lookup/routes.ts#L21"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/tools/business-lookup/search": {
      "post": {
        "operationId": "post-api-tools-business-lookup-search",
        "tags": [
          "business-lookup"
        ],
        "summary": "POST /api/tools/business-lookup/search",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "staff"
          ],
          "handler": "requireLookup",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/business-lookup/routes.ts",
          "line": 25,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/business-lookup/routes.ts#L25"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/voice-setter/calls": {
      "get": {
        "operationId": "get-api-voice-setter-calls",
        "tags": [
          "voice-setter"
        ],
        "summary": "GET /api/voice-setter/calls",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 28,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L28"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      },
      "post": {
        "operationId": "post-api-voice-setter-calls",
        "tags": [
          "voice-setter"
        ],
        "summary": "POST /api/voice-setter/calls",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 43,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L43"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/voice-setter/calls/{id}/artifacts/{name}": {
      "get": {
        "operationId": "get-api-voice-setter-calls-id-artifacts-name",
        "tags": [
          "voice-setter"
        ],
        "summary": "GET /api/voice-setter/calls/:id/artifacts/:name",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "x-enj-additional-validation": true
            }
          },
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "audio.mp3",
                "raw.json",
                "transcript.txt"
              ]
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 61,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L61"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/voice-setter/calls/{id}/reconcile": {
      "post": {
        "operationId": "post-api-voice-setter-calls-id-reconcile",
        "tags": [
          "voice-setter"
        ],
        "summary": "POST /api/voice-setter/calls/:id/reconcile",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 48,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L48"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/voice-setter/calls/{id}/reconcile-booking": {
      "post": {
        "operationId": "post-api-voice-setter-calls-id-reconcile-booking",
        "tags": [
          "voice-setter"
        ],
        "summary": "POST /api/voice-setter/calls/:id/reconcile-booking",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 57,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L57"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "appointmentId": {
                    "type": "string",
                    "x-enj-additional-validation": true
                  }
                },
                "required": [
                  "appointmentId"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/voice-setter/calls/{id}/sync": {
      "post": {
        "operationId": "post-api-voice-setter-calls-id-sync",
        "tags": [
          "voice-setter"
        ],
        "summary": "POST /api/voice-setter/calls/:id/sync",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 53,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L53"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "conversationId": {
                    "type": "string",
                    "x-enj-additional-validation": true
                  }
                },
                "required": [
                  "conversationId"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/voice-setter/config": {
      "put": {
        "operationId": "put-api-voice-setter-config",
        "tags": [
          "voice-setter"
        ],
        "summary": "PUT /api/voice-setter/config",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 29,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L29"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "contactId": {
                    "type": "string",
                    "x-enj-additional-validation": true
                  },
                  "calendarId": {
                    "type": "string",
                    "x-enj-additional-validation": true
                  },
                  "ingressNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  }
                },
                "required": [
                  "contactId",
                  "calendarId"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/voice-setter/disable": {
      "post": {
        "operationId": "post-api-voice-setter-disable",
        "tags": [
          "voice-setter"
        ],
        "summary": "POST /api/voice-setter/disable",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 39,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L39"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/voice-setter/enable": {
      "post": {
        "operationId": "post-api-voice-setter-enable",
        "tags": [
          "voice-setter"
        ],
        "summary": "POST /api/voice-setter/enable",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 38,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L38"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/voice-setter/provision": {
      "post": {
        "operationId": "post-api-voice-setter-provision",
        "tags": [
          "voice-setter"
        ],
        "summary": "POST /api/voice-setter/provision",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 36,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L36"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/voice-setter/reset-suppression": {
      "post": {
        "operationId": "post-api-voice-setter-reset-suppression",
        "tags": [
          "voice-setter"
        ],
        "summary": "POST /api/voice-setter/reset-suppression",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 40,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L40"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirmPersonalTestOnly": {
                    "type": "boolean",
                    "enum": [
                      true
                    ]
                  }
                },
                "required": [
                  "confirmPersonalTestOnly"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/voice-setter/status": {
      "get": {
        "operationId": "get-api-voice-setter-status",
        "tags": [
          "voice-setter"
        ],
        "summary": "GET /api/voice-setter/status",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 27,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L27"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/voice-setter/twilio": {
      "post": {
        "operationId": "post-api-voice-setter-twilio",
        "tags": [
          "voice-setter"
        ],
        "summary": "POST /api/voice-setter/twilio",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 30,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L30"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "accountSid": {
                    "type": "string",
                    "x-enj-additional-validation": true
                  },
                  "authToken": {
                    "type": "string",
                    "minLength": 20,
                    "maxLength": 256,
                    "writeOnly": true
                  }
                },
                "required": [
                  "accountSid",
                  "authToken"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/voice-setter/verify": {
      "post": {
        "operationId": "post-api-voice-setter-verify",
        "tags": [
          "voice-setter"
        ],
        "summary": "POST /api/voice-setter/verify",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 37,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L37"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/voice-setter/workflow-review": {
      "post": {
        "operationId": "post-api-voice-setter-workflow-review",
        "tags": [
          "voice-setter"
        ],
        "summary": "POST /api/voice-setter/workflow-review",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 35,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L35"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "evidence": {
                    "type": "string",
                    "minLength": 40,
                    "maxLength": 8000
                  }
                },
                "required": [
                  "evidence"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/webhooks/assemblyai/client-videos": {
      "post": {
        "operationId": "post-api-webhooks-assemblyai-client-videos",
        "tags": [
          "client-videos"
        ],
        "summary": "POST /api/webhooks/assemblyai/client-videos",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/client-videos/routes.ts",
          "line": 222,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-videos/routes.ts#L222"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "transcript_id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "status": {
                    "type": "string"
                  }
                },
                "required": [
                  "transcript_id"
                ]
              }
            }
          }
        }
      }
    },
    "/api/webhooks/assemblyai/sops": {
      "post": {
        "operationId": "post-api-webhooks-assemblyai-sops",
        "tags": [
          "sops"
        ],
        "summary": "POST /api/webhooks/assemblyai/sops",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sops/routes.ts",
          "line": 356,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sops/routes.ts#L356"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "transcript_id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "status": {
                    "type": "string"
                  }
                },
                "required": [
                  "transcript_id"
                ]
              }
            }
          }
        }
      }
    },
    "/api/webhooks/assemblyai/video-editor": {
      "post": {
        "operationId": "post-api-webhooks-assemblyai-video-editor",
        "tags": [
          "video-editor"
        ],
        "summary": "POST /api/webhooks/assemblyai/video-editor",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/video-editor/routes.ts",
          "line": 243,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/video-editor/routes.ts#L243"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "transcript_id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "status": {
                    "type": "string"
                  }
                },
                "required": [
                  "transcript_id"
                ]
              }
            }
          }
        }
      }
    },
    "/api/webhooks/stripe": {
      "post": {
        "operationId": "post-api-webhooks-stripe",
        "tags": [
          "sales"
        ],
        "summary": "POST /api/webhooks/stripe",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/paymentRoutes.ts",
          "line": 234,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/paymentRoutes.ts#L234"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/webhooks/stripe/agency/{agencyId}": {
      "post": {
        "operationId": "post-api-webhooks-stripe-agency-agencyId",
        "tags": [
          "sales"
        ],
        "summary": "POST /api/webhooks/stripe/agency/:agencyId",
        "description": "Mutation or action; explicit authority required. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "agencyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/sales/paymentRoutes.ts",
          "line": 213,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/sales/paymentRoutes.ts#L213"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/api/website-manager": {
      "get": {
        "operationId": "get-api-website-manager",
        "tags": [
          "website-manager"
        ],
        "summary": "GET /api/website-manager",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireWebsiteManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/website-manager/routes.ts",
          "line": 56,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/website-manager/routes.ts#L56"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/website-manager/builds/{buildId}": {
      "get": {
        "operationId": "get-api-website-manager-builds-buildId",
        "tags": [
          "website-manager"
        ],
        "summary": "GET /api/website-manager/builds/:buildId",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "buildId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireWebsiteManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/website-manager/routes.ts",
          "line": 117,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/website-manager/routes.ts#L117"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/website-manager/builds/{buildId}/republish": {
      "post": {
        "operationId": "post-api-website-manager-builds-buildId-republish",
        "tags": [
          "website-manager"
        ],
        "summary": "POST /api/website-manager/builds/:buildId/republish",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "buildId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireWebsiteManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/website-manager/routes.ts",
          "line": 123,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/website-manager/routes.ts#L123"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/website-manager/builds/{buildId}/retry": {
      "post": {
        "operationId": "post-api-website-manager-builds-buildId-retry",
        "tags": [
          "website-manager"
        ],
        "summary": "POST /api/website-manager/builds/:buildId/retry",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "buildId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireWebsiteManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/website-manager/routes.ts",
          "line": 138,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/website-manager/routes.ts#L138"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/website-manager/builds/{buildId}/screenshots/{index}": {
      "get": {
        "operationId": "get-api-website-manager-builds-buildId-screenshots-index",
        "tags": [
          "website-manager"
        ],
        "summary": "GET /api/website-manager/builds/:buildId/screenshots/:index",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "buildId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "index",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireWebsiteManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/website-manager/routes.ts",
          "line": 151,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/website-manager/routes.ts#L151"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/website-manager/context": {
      "get": {
        "operationId": "get-api-website-manager-context",
        "tags": [
          "website-manager"
        ],
        "summary": "GET /api/website-manager/context",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "campaignId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireWebsiteManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/website-manager/routes.ts",
          "line": 60,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/website-manager/routes.ts#L60"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/website-manager/drive-sources": {
      "get": {
        "operationId": "get-api-website-manager-drive-sources",
        "tags": [
          "website-manager"
        ],
        "summary": "GET /api/website-manager/drive-sources",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "clientId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "campaignId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireWebsiteManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/website-manager/routes.ts",
          "line": 66,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/website-manager/routes.ts#L66"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/website-manager/drive-sources/{fileId}": {
      "get": {
        "operationId": "get-api-website-manager-drive-sources-fileId",
        "tags": [
          "website-manager"
        ],
        "summary": "GET /api/website-manager/drive-sources/:fileId",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "x-enj-additional-validation": true
            }
          },
          {
            "name": "clientId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "campaignId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireWebsiteManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/website-manager/routes.ts",
          "line": 72,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/website-manager/routes.ts#L72"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/website-manager/sites": {
      "post": {
        "operationId": "post-api-website-manager-sites",
        "tags": [
          "website-manager"
        ],
        "summary": "POST /api/website-manager/sites",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireWebsiteManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/website-manager/routes.ts",
          "line": 79,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/website-manager/routes.ts#L79"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "campaignId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "selectedStrategyAngleIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "maxItems": 250
                  },
                  "selectedDriveAssetIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "maxItems": 250
                  },
                  "clientWebsite": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "comparisonWebsiteUrl": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "ghlSurveyId": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 2000
                  },
                  "ghlSurveyName": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 2000
                  },
                  "ghlSurveyUrl": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "ghlCalendarId": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 2000
                  },
                  "ghlCalendarName": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 2000
                  },
                  "ghlCalendarUrl": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "metaPixelId": {
                    "type": "string",
                    "maxLength": 30
                  },
                  "supplementalInstructions": {
                    "type": "string",
                    "maxLength": 40000
                  }
                },
                "required": [
                  "clientId",
                  "campaignId",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/website-manager/sites/{siteId}": {
      "delete": {
        "operationId": "delete-api-website-manager-sites-siteId",
        "tags": [
          "website-manager"
        ],
        "summary": "DELETE /api/website-manager/sites/:siteId",
        "description": "Destructive mutation. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireWebsiteManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/website-manager/routes.ts",
          "line": 92,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/website-manager/routes.ts#L92"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "patch": {
        "operationId": "patch-api-website-manager-sites-siteId",
        "tags": [
          "website-manager"
        ],
        "summary": "PATCH /api/website-manager/sites/:siteId",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireWebsiteManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/website-manager/routes.ts",
          "line": 85,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/website-manager/routes.ts#L85"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "selectedStrategyAngleIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "maxItems": 250
                  },
                  "selectedDriveAssetIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "maxItems": 250
                  },
                  "clientWebsite": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "comparisonWebsiteUrl": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "ghlSurveyId": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 2000
                  },
                  "ghlSurveyName": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 2000
                  },
                  "ghlSurveyUrl": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "ghlCalendarId": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 2000
                  },
                  "ghlCalendarName": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 2000
                  },
                  "ghlCalendarUrl": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "metaPixelId": {
                    "type": "string",
                    "maxLength": 30
                  },
                  "supplementalInstructions": {
                    "type": "string",
                    "maxLength": 40000
                  }
                },
                "additionalProperties": false,
                "x-enj-additional-validation": true
              }
            }
          }
        }
      }
    },
    "/api/website-manager/sites/{siteId}/builds": {
      "get": {
        "operationId": "get-api-website-manager-sites-siteId-builds",
        "tags": [
          "website-manager"
        ],
        "summary": "GET /api/website-manager/sites/:siteId/builds",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireWebsiteManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/website-manager/routes.ts",
          "line": 111,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/website-manager/routes.ts#L111"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      },
      "post": {
        "operationId": "post-api-website-manager-sites-siteId-builds",
        "tags": [
          "website-manager"
        ],
        "summary": "POST /api/website-manager/sites/:siteId/builds",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin",
            "mediabuyer",
            "staff"
          ],
          "handler": "requireWebsiteManager",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/website-manager/routes.ts",
          "line": 104,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/website-manager/routes.ts#L104"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/api/website-manager/sites/{siteId}/domain": {
      "post": {
        "operationId": "post-api-website-manager-sites-siteId-domain",
        "tags": [
          "website-manager"
        ],
        "summary": "POST /api/website-manager/sites/:siteId/domain",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/website-manager/routes.ts",
          "line": 162,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/website-manager/routes.ts#L162"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "hostname": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 253
                  }
                },
                "required": [
                  "hostname"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/website-manager/sites/{siteId}/domain/refresh": {
      "post": {
        "operationId": "post-api-website-manager-sites-siteId-domain-refresh",
        "tags": [
          "website-manager"
        ],
        "summary": "POST /api/website-manager/sites/:siteId/domain/refresh",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": true
        },
        "x-enj-source": {
          "file": "apps/api/src/website-manager/routes.ts",
          "line": 169,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/website-manager/routes.ts#L169"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/wise/payments": {
      "get": {
        "operationId": "get-api-wise-payments",
        "tags": [
          "wise"
        ],
        "summary": "GET /api/wise/payments",
        "description": "Read method; may have cache or collection side effects. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/wise/routes.ts",
          "line": 34,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/wise/routes.ts#L34"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/api/wise/recipients/assign": {
      "post": {
        "operationId": "post-api-wise-recipients-assign",
        "tags": [
          "wise"
        ],
        "summary": "POST /api/wise/recipients/assign",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/wise/routes.ts",
          "line": 44,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/wise/routes.ts#L44"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "targetAccount": {
                    "type": "string",
                    "minLength": 1
                  },
                  "teamMemberId": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "minLength": 1
                  }
                },
                "required": [
                  "targetAccount",
                  "teamMemberId"
                ]
              }
            }
          }
        }
      }
    },
    "/api/wise/sync": {
      "post": {
        "operationId": "post-api-wise-sync",
        "tags": [
          "wise"
        ],
        "summary": "POST /api/wise/sync",
        "description": "Mutation or action; explicit authority required. Role guard plus route-specific scope. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Role guard plus route-specific scope",
          "roles": [
            "admin"
          ],
          "handler": "requireAdmin",
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/wise/routes.ts",
          "line": 38,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/wise/routes.ts#L38"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": [
          {
            "ManagementAgent": []
          }
        ]
      }
    },
    "/health": {
      "get": {
        "operationId": "get-health",
        "tags": [
          "health"
        ],
        "summary": "GET /health",
        "description": "Read method; may have cache or collection side effects. Public health check. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Public health check",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/health.ts",
          "line": 72,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/health.ts#L72"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "security": []
      }
    },
    "/uploads/agency-logos/{file}": {
      "get": {
        "operationId": "get-uploads-agency-logos-file",
        "tags": [
          "settings"
        ],
        "summary": "GET /uploads/agency-logos/:file",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "file",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/settings/routes.ts",
          "line": 191,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/settings/routes.ts#L191"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/uploads/ai-agent-icons/{file}": {
      "get": {
        "operationId": "get-uploads-ai-agent-icons-file",
        "tags": [
          "ai-agent"
        ],
        "summary": "GET /uploads/ai-agent-icons/:file",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "file",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/ai-agent/routes.ts",
          "line": 113,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/ai-agent/routes.ts#L113"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/uploads/team-avatars/{file}": {
      "get": {
        "operationId": "get-uploads-team-avatars-file",
        "tags": [
          "team"
        ],
        "summary": "GET /uploads/team-avatars/:file",
        "description": "Read method; may have cache or collection side effects. Route-specific checks; no role list extracted. Additional business rules apply.",
        "parameters": [
          {
            "name": "file",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Route-specific checks; no role list extracted",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/team/routes.ts",
          "line": 287,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/team/routes.ts#L287"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/webhooks/fathom/{teamMemberId}": {
      "post": {
        "operationId": "post-webhooks-fathom-teamMemberId",
        "tags": [
          "fathom"
        ],
        "summary": "POST /webhooks/fathom/:teamMemberId",
        "description": "Mutation or action; explicit authority required. Provider webhook; not an agent command. Additional business rules apply.",
        "parameters": [
          {
            "name": "teamMemberId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Provider webhook; not an agent command",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/fathom/routes.ts",
          "line": 22,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/fathom/routes.ts#L22"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/webhooks/ghl/lead-screening": {
      "post": {
        "operationId": "post-webhooks-ghl-lead-screening",
        "tags": [
          "lead-screening"
        ],
        "summary": "POST /webhooks/ghl/lead-screening",
        "description": "Mutation or action; explicit authority required. Provider webhook; not an agent command. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Provider webhook; not an agent command",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/lead-screening/routes.ts",
          "line": 48,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/lead-screening/routes.ts#L48"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/webhooks/ghl/notion-deal-close": {
      "post": {
        "operationId": "post-webhooks-ghl-notion-deal-close",
        "tags": [
          "client-delivery"
        ],
        "summary": "POST /webhooks/ghl/notion-deal-close",
        "description": "Mutation or action; explicit authority required. Provider webhook; not an agent command. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Provider webhook; not an agent command",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/client-delivery/routes.ts",
          "line": 167,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-delivery/routes.ts#L167"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/webhooks/ghl/notion-onboarding": {
      "post": {
        "operationId": "post-webhooks-ghl-notion-onboarding",
        "tags": [
          "client-delivery"
        ],
        "summary": "POST /webhooks/ghl/notion-onboarding",
        "description": "Mutation or action; explicit authority required. Provider webhook; not an agent command. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Provider webhook; not an agent command",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/client-delivery/routes.ts",
          "line": 152,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/client-delivery/routes.ts#L152"
        },
        "x-enj-restricted": false,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/webhooks/voice-setter/elevenlabs": {
      "post": {
        "operationId": "post-webhooks-voice-setter-elevenlabs",
        "tags": [
          "voice-setter"
        ],
        "summary": "POST /webhooks/voice-setter/elevenlabs",
        "description": "Mutation or action; explicit authority required. Provider webhook; not an agent command. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Provider webhook; not an agent command",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 104,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L104"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/webhooks/voice-setter/tools/{name}": {
      "post": {
        "operationId": "post-webhooks-voice-setter-tools-name",
        "tags": [
          "voice-setter"
        ],
        "summary": "POST /webhooks/voice-setter/tools/:name",
        "description": "Mutation or action; explicit authority required. Provider webhook; not an agent command. Additional business rules apply.",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Provider webhook; not an agent command",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 108,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L108"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "description": "Schema not resolved by the source extractor. Consult the current source before sending a body.",
                "x-enj-unresolved": true
              }
            }
          }
        }
      }
    },
    "/webhooks/voice-setter/twilio/connect/{id}": {
      "post": {
        "operationId": "post-webhooks-voice-setter-twilio-connect-id",
        "tags": [
          "voice-setter"
        ],
        "summary": "POST /webhooks/voice-setter/twilio/connect/:id",
        "description": "Mutation or action; explicit authority required. Provider webhook; not an agent command. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Provider webhook; not an agent command",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 87,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L87"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/webhooks/voice-setter/twilio/inbound": {
      "post": {
        "operationId": "post-webhooks-voice-setter-twilio-inbound",
        "tags": [
          "voice-setter"
        ],
        "summary": "POST /webhooks/voice-setter/twilio/inbound",
        "description": "Mutation or action; explicit authority required. Provider webhook; not an agent command. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Provider webhook; not an agent command",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 82,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L82"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/webhooks/voice-setter/twilio/status": {
      "post": {
        "operationId": "post-webhooks-voice-setter-twilio-status",
        "tags": [
          "voice-setter"
        ],
        "summary": "POST /webhooks/voice-setter/twilio/status",
        "description": "Mutation or action; explicit authority required. Provider webhook; not an agent command. Additional business rules apply.",
        "parameters": [],
        "x-enj-auth": {
          "boundary": "Provider webhook; not an agent command",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 96,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L96"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    },
    "/webhooks/voice-setter/twilio/status/{id}": {
      "post": {
        "operationId": "post-webhooks-voice-setter-twilio-status-id",
        "tags": [
          "voice-setter"
        ],
        "summary": "POST /webhooks/voice-setter/twilio/status/:id",
        "description": "Mutation or action; explicit authority required. Provider webhook; not an agent command. Additional business rules apply.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "x-enj-additional-validation": true
            }
          }
        ],
        "x-enj-auth": {
          "boundary": "Provider webhook; not an agent command",
          "roles": [],
          "handler": null,
          "additionalScope": false
        },
        "x-enj-source": {
          "file": "apps/api/src/voice-setter/routes.ts",
          "line": 92,
          "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/voice-setter/routes.ts#L92"
        },
        "x-enj-restricted": true,
        "x-enj-schema-completeness": "partial-source-extraction",
        "responses": {
          "default": {
            "description": "Endpoint-specific response. Response schemas have not been extracted; do not infer a success payload from this reference."
          }
        }
      }
    }
  }
}