{
  "metadata": {
    "generatedAt": "2026-11-20T08:50:18.465Z",
    "sourceCommit": "f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8",
    "apiBase": "https://api.enjdigital.com",
    "endpointCount": 420,
    "groupCount": 38,
    "scope": "Explicit Fastify route declarations in the Management API source. Framework-generated HEAD/OPTIONS routes are not separate catalogue entries.",
    "limitations": [
      "Source-derived request validation is partial, not a complete SDK contract.",
      "Business rules, field mappings, additional scope checks and provider permissions still apply.",
      "Source references point to a private repository; repository access is separate.",
      "No runtime mutation tests were performed for this documentation."
    ],
    "unresolvedRouteDeclarations": [],
    "credentialsIncluded": false
  },
  "endpoints": [
    {
      "id": "post-api-acquisition-funnel-events",
      "method": "POST",
      "path": "/api/acquisition-funnel/events",
      "group": "acquisition-funnel",
      "auth": {
        "boundary": "Visitor/bridge controls; not a general agent API",
        "roles": [],
        "handler": "authorize",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-acquisition-funnel-readiness",
      "method": "GET",
      "path": "/api/acquisition-funnel/readiness",
      "group": "acquisition-funnel",
      "auth": {
        "boundary": "Visitor/bridge controls; not a general agent API",
        "roles": [],
        "handler": "authorize",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-acquisition-funnel-submit",
      "method": "POST",
      "path": "/api/acquisition-funnel/submit",
      "group": "acquisition-funnel",
      "auth": {
        "boundary": "Visitor/bridge controls; not a general agent API",
        "roles": [],
        "handler": "authorize",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-ads-manager-adsets-adSetId-setup",
      "method": "GET",
      "path": "/api/ads-manager/adsets/:adSetId/setup",
      "group": "ads-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner"
        ],
        "handler": "requireAdsManager",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "unresolved": true
        },
        "params": {
          "type": "object",
          "properties": {
            "adSetId": {
              "type": "string",
              "optional": false
            }
          }
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-ads-manager-clients-clientId-details",
      "method": "GET",
      "path": "/api/ads-manager/clients/:clientId/details",
      "group": "ads-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner"
        ],
        "handler": "requireAdsManager",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "query": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-ads-manager-clients-clientId-journal",
      "method": "POST",
      "path": "/api/ads-manager/clients/:clientId/journal",
      "group": "ads-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer"
        ],
        "handler": "requireAdsManagerWrite",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "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"
                ],
                "optional": false
              },
              "optional": false,
              "min": 1
            },
            "details": {
              "type": "string",
              "optional": true,
              "max": 10000
            },
            "context": {
              "type": "object",
              "properties": {
                "campaignId": {
                  "type": "string",
                  "optional": true,
                  "max": 500,
                  "nullable": true
                },
                "campaignName": {
                  "type": "string",
                  "optional": true,
                  "max": 500,
                  "nullable": true
                },
                "adSetId": {
                  "type": "string",
                  "optional": true,
                  "max": 500,
                  "nullable": true
                },
                "adSetName": {
                  "type": "string",
                  "optional": true,
                  "max": 500,
                  "nullable": true
                },
                "adId": {
                  "type": "string",
                  "optional": true,
                  "max": 500,
                  "nullable": true
                },
                "adName": {
                  "type": "string",
                  "optional": true,
                  "max": 500,
                  "nullable": true
                }
              },
              "optional": true,
              "unresolved": false,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-ads-manager-creatives",
      "method": "GET",
      "path": "/api/ads-manager/creatives",
      "group": "ads-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner"
        ],
        "handler": "requireAdsManager",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-ads-manager-creatives-id-image",
      "method": "GET",
      "path": "/api/ads-manager/creatives/:id/image",
      "group": "ads-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner"
        ],
        "handler": "requireAdsManager",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false
            }
          }
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-ads-manager-journal",
      "method": "GET",
      "path": "/api/ads-manager/journal",
      "group": "ads-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer"
        ],
        "handler": "requireAdsManagerWrite",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": true
            },
            "statuses": {
              "type": "string",
              "optional": true
            },
            "category": {
              "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"
              ],
              "optional": true
            },
            "authorEmail": {
              "type": "string",
              "optional": true
            },
            "q": {
              "type": "string",
              "optional": true
            },
            "cursor": {
              "type": "string",
              "optional": true
            },
            "limit": {
              "type": "integer",
              "optional": true,
              "min": 1,
              "max": 100
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-ads-manager-journal-entryId",
      "method": "DELETE",
      "path": "/api/ads-manager/journal/:entryId",
      "group": "ads-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "entryId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-ads-manager-journal-entryId",
      "method": "PATCH",
      "path": "/api/ads-manager/journal/:entryId",
      "group": "ads-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer"
        ],
        "handler": "requireAdsManagerWrite",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "entryId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "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"
                ],
                "optional": false
              },
              "optional": false,
              "min": 1
            },
            "details": {
              "type": "string",
              "optional": true,
              "max": 10000
            },
            "context": {
              "type": "object",
              "properties": {
                "campaignId": {
                  "type": "string",
                  "optional": true,
                  "max": 500,
                  "nullable": true
                },
                "campaignName": {
                  "type": "string",
                  "optional": true,
                  "max": 500,
                  "nullable": true
                },
                "adSetId": {
                  "type": "string",
                  "optional": true,
                  "max": 500,
                  "nullable": true
                },
                "adSetName": {
                  "type": "string",
                  "optional": true,
                  "max": 500,
                  "nullable": true
                },
                "adId": {
                  "type": "string",
                  "optional": true,
                  "max": 500,
                  "nullable": true
                },
                "adName": {
                  "type": "string",
                  "optional": true,
                  "max": 500,
                  "nullable": true
                }
              },
              "optional": true,
              "unresolved": false,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-ads-manager-overview",
      "method": "GET",
      "path": "/api/ads-manager/overview",
      "group": "ads-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner"
        ],
        "handler": "requireAdsManager",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-ads-manager-refresh",
      "method": "POST",
      "path": "/api/ads-manager/refresh",
      "group": "ads-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer"
        ],
        "handler": "requireAdsManagerWrite",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-agencies",
      "method": "GET",
      "path": "/api/agencies",
      "group": "agencies",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-agencies",
      "method": "POST",
      "path": "/api/agencies",
      "group": "agencies",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "agencyName": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 120
            },
            "slug": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 80
            },
            "logoUrl": {
              "type": "string",
              "optional": true,
              "max": 2048
            },
            "faviconUrl": {
              "type": "string",
              "optional": true,
              "max": 2048
            },
            "themeColor": {
              "type": "string",
              "optional": true
            },
            "accentColor": {
              "type": "string",
              "optional": true
            },
            "websiteUrl": {
              "type": "string",
              "optional": true,
              "max": 2048
            },
            "supportName": {
              "type": "string",
              "optional": true,
              "max": 120
            },
            "supportEmail": {
              "type": "string",
              "optional": true,
              "format": "email"
            },
            "communicationTemplates": {
              "type": "object",
              "properties": {
                "newClientWelcome": {
                  "type": "string",
                  "optional": true,
                  "max": 10000
                },
                "appointmentNotification": {
                  "type": "string",
                  "optional": true,
                  "max": 5000
                },
                "metaAccessLost": {
                  "type": "string",
                  "optional": true,
                  "max": 5000
                },
                "metaPaymentIssue": {
                  "type": "string",
                  "optional": true,
                  "max": 5000
                }
              },
              "optional": true,
              "unresolved": false
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-agencies-id",
      "method": "GET",
      "path": "/api/agencies/:id",
      "group": "agencies",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-agencies-id",
      "method": "PATCH",
      "path": "/api/agencies/:id",
      "group": "agencies",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "agencyName": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 120
            },
            "slug": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 80
            },
            "logoUrl": {
              "type": "string",
              "optional": true,
              "max": 2048
            },
            "faviconUrl": {
              "type": "string",
              "optional": true,
              "max": 2048
            },
            "themeColor": {
              "type": "string",
              "optional": true
            },
            "accentColor": {
              "type": "string",
              "optional": true
            },
            "websiteUrl": {
              "type": "string",
              "optional": true,
              "max": 2048
            },
            "supportName": {
              "type": "string",
              "optional": true,
              "max": 120
            },
            "supportEmail": {
              "type": "string",
              "optional": true,
              "format": "email"
            },
            "communicationTemplates": {
              "type": "object",
              "properties": {
                "newClientWelcome": {
                  "type": "string",
                  "optional": true,
                  "max": 10000
                },
                "appointmentNotification": {
                  "type": "string",
                  "optional": true,
                  "max": 5000
                },
                "metaAccessLost": {
                  "type": "string",
                  "optional": true,
                  "max": 5000
                },
                "metaPaymentIssue": {
                  "type": "string",
                  "optional": true,
                  "max": 5000
                }
              },
              "optional": true,
              "unresolved": false
            },
            "status": {
              "type": "string",
              "enum": [
                "active",
                "inactive"
              ],
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-agencies-id-clients",
      "method": "POST",
      "path": "/api/agencies/:id/clients",
      "group": "agencies",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-agencies-id-integrations",
      "method": "GET",
      "path": "/api/agencies/:id/integrations",
      "group": "agencies",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-agencies-id-integrations-key",
      "method": "DELETE",
      "path": "/api/agencies/:id/integrations/:key",
      "group": "agencies",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "key": {
              "type": "string",
              "enum": [
                "slack",
                "meta",
                "stripe",
                "ghl"
              ],
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "put-api-agencies-id-integrations-key",
      "method": "PUT",
      "path": "/api/agencies/:id/integrations/:key",
      "group": "agencies",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "key": {
              "type": "string",
              "enum": [
                "slack",
                "meta",
                "stripe",
                "ghl"
              ],
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "token": {
              "type": "string",
              "optional": true,
              "min": 10,
              "max": 2000,
              "sensitive": true
            },
            "secretKey": {
              "type": "string",
              "optional": true,
              "max": 500,
              "sensitive": true
            },
            "webhookSecret": {
              "type": "string",
              "optional": true,
              "max": 500,
              "sensitive": true
            },
            "privateKey": {
              "type": "string",
              "optional": true,
              "max": 2000
            },
            "locationId": {
              "type": "string",
              "optional": true,
              "max": 200
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-agencies-id-integrations-fathom-recheck",
      "method": "POST",
      "path": "/api/agencies/:id/integrations/fathom/recheck",
      "group": "agencies",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-agencies-id-logo",
      "method": "POST",
      "path": "/api/agencies/:id/logo",
      "group": "agencies",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "fileName": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 180
            },
            "dataUrl": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "useAsFavicon": {
              "type": "boolean",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-agencies-id-members",
      "method": "POST",
      "path": "/api/agencies/:id/members",
      "group": "agencies",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "optional": true,
              "max": 120
            },
            "email": {
              "type": "string",
              "optional": false,
              "format": "email"
            },
            "role": {
              "type": "string",
              "enum": [
                "collaborator",
                "viewer"
              ],
              "optional": true
            },
            "permissions": {
              "type": "object",
              "properties": {
                "pages": {
                  "type": "object",
                  "properties": {},
                  "unresolved": true,
                  "strict": true,
                  "optional": true
                },
                "canSubmitAppointmentOutcomes": {
                  "type": "boolean",
                  "optional": true
                },
                "canCreateTickets": {
                  "type": "boolean",
                  "optional": true
                },
                "canCommentOnTickets": {
                  "type": "boolean",
                  "optional": true
                }
              },
              "optional": true,
              "unresolved": false,
              "strict": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-agencies-id-members-memberId",
      "method": "DELETE",
      "path": "/api/agencies/:id/members/:memberId",
      "group": "agencies",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "memberId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-agencies-id-members-memberId",
      "method": "PATCH",
      "path": "/api/agencies/:id/members/:memberId",
      "group": "agencies",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "memberId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "role": {
              "type": "string",
              "enum": [
                "collaborator",
                "viewer"
              ],
              "optional": true
            },
            "permissions": {
              "type": "object",
              "properties": {
                "pages": {
                  "type": "object",
                  "properties": {},
                  "unresolved": true,
                  "strict": true,
                  "optional": true
                },
                "canSubmitAppointmentOutcomes": {
                  "type": "boolean",
                  "optional": true
                },
                "canCreateTickets": {
                  "type": "boolean",
                  "optional": true
                },
                "canCommentOnTickets": {
                  "type": "boolean",
                  "optional": true
                }
              },
              "optional": true,
              "unresolved": false,
              "strict": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-agencies-id-portal-domain",
      "method": "DELETE",
      "path": "/api/agencies/:id/portal-domain",
      "group": "agencies",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-agencies-id-portal-domain",
      "method": "POST",
      "path": "/api/agencies/:id/portal-domain",
      "group": "agencies",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "hostname": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 253
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-agencies-id-portal-domain-recheck",
      "method": "POST",
      "path": "/api/agencies/:id/portal-domain/recheck",
      "group": "agencies",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-agencies-navigation",
      "method": "GET",
      "path": "/api/agencies/navigation",
      "group": "agencies",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireUser",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-ai-agent-admin-config",
      "method": "GET",
      "path": "/api/ai-agent/admin-config",
      "group": "ai-agent",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-ai-agent-admin-config",
      "method": "PATCH",
      "path": "/api/ai-agent/admin-config",
      "group": "ai-agent",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "optional": true
            },
            "name": {
              "type": "string",
              "optional": true,
              "max": 60
            },
            "iconUrl": {
              "type": "string",
              "optional": true,
              "max": 500
            },
            "greeting": {
              "type": "string",
              "optional": true,
              "max": 700
            },
            "basePrompt": {
              "type": "string",
              "optional": true,
              "max": 5000
            },
            "model": {
              "type": "string",
              "optional": true,
              "max": 80
            },
            "responseStyle": {
              "type": "string",
              "enum": [
                "concise",
                "balanced",
                "detailed"
              ],
              "optional": true
            },
            "connectedSources": {
              "type": "object",
              "additionalProperties": {
                "type": "boolean",
                "optional": false
              },
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-ai-agent-chat",
      "method": "POST",
      "path": "/api/ai-agent/chat",
      "group": "ai-agent",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireUser",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "message": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 2000
            },
            "threadId": {
              "type": "string",
              "optional": true,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-ai-agent-chat-stream",
      "method": "POST",
      "path": "/api/ai-agent/chat/stream",
      "group": "ai-agent",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireUser",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "message": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 2000
            },
            "threadId": {
              "type": "string",
              "optional": true,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-ai-agent-config",
      "method": "GET",
      "path": "/api/ai-agent/config",
      "group": "ai-agent",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireUser",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-ai-agent-icon",
      "method": "POST",
      "path": "/api/ai-agent/icon",
      "group": "ai-agent",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "fileName": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 180
            },
            "dataUrl": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-auth-2fa-setup-verify",
      "method": "POST",
      "path": "/api/auth/2fa/setup/verify",
      "group": "auth",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "challengeId": {
              "type": "string",
              "optional": false,
              "min": 16
            },
            "code": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 20
            },
            "trustBrowser": {
              "type": "boolean",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-auth-2fa-verify",
      "method": "POST",
      "path": "/api/auth/2fa/verify",
      "group": "auth",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "challengeId": {
              "type": "string",
              "optional": false,
              "min": 16
            },
            "code": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 20
            },
            "trustBrowser": {
              "type": "boolean",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-auth-forgot-password",
      "method": "POST",
      "path": "/api/auth/forgot-password",
      "group": "auth",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "email": {
              "type": "string",
              "optional": false,
              "format": "email"
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-auth-login",
      "method": "POST",
      "path": "/api/auth/login",
      "group": "auth",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "email": {
              "type": "string",
              "optional": false,
              "format": "email"
            },
            "password": {
              "type": "string",
              "optional": false,
              "min": 1,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-auth-logout",
      "method": "POST",
      "path": "/api/auth/logout",
      "group": "auth",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-auth-me",
      "method": "GET",
      "path": "/api/auth/me",
      "group": "auth",
      "auth": {
        "boundary": "Authenticated Management identity",
        "roles": [],
        "handler": null,
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-auth-password-setup-complete",
      "method": "POST",
      "path": "/api/auth/password-setup/complete",
      "group": "auth",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "challengeId": {
              "type": "string",
              "optional": false,
              "min": 16
            },
            "password": {
              "type": "string",
              "optional": false,
              "min": 1,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-auth-portal-brand",
      "method": "GET",
      "path": "/api/auth/portal-brand",
      "group": "auth",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "host": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 253
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-auth-reset-password-complete",
      "method": "POST",
      "path": "/api/auth/reset-password/complete",
      "group": "auth",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "token": {
              "type": "string",
              "optional": false,
              "min": 16,
              "sensitive": true
            },
            "password": {
              "type": "string",
              "optional": false,
              "min": 1,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-auth-reset-password-validate",
      "method": "POST",
      "path": "/api/auth/reset-password/validate",
      "group": "auth",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "token": {
              "type": "string",
              "optional": false,
              "min": 16,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-authentication-accounts",
      "method": "GET",
      "path": "/api/authentication/accounts",
      "group": "authentication",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireAuthentication",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-authentication-accounts",
      "method": "POST",
      "path": "/api/authentication/accounts",
      "group": "authentication",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "label": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 120
            },
            "secret": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 240,
              "sensitive": true
            },
            "issuer": {
              "type": "string",
              "optional": true,
              "max": 120,
              "nullable": true
            },
            "icon": {
              "type": "string",
              "enum": [
                "key",
                "google",
                "facebook",
                "instagram",
                "microsoft",
                "apple",
                "x",
                "linkedin",
                "slack",
                "github"
              ],
              "optional": true
            },
            "visibleToRoles": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "admin",
                  "sales",
                  "mediabuyer",
                  "csm",
                  "staff",
                  "setter"
                ],
                "optional": false
              },
              "optional": true,
              "nullable": true
            },
            "period": {
              "type": "integer",
              "optional": true
            },
            "digits": {
              "type": "integer",
              "optional": true
            },
            "algorithm": {
              "type": "string",
              "enum": [
                "SHA1",
                "SHA256",
                "SHA512"
              ],
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-authentication-accounts-id",
      "method": "DELETE",
      "path": "/api/authentication/accounts/:id",
      "group": "authentication",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-authentication-accounts-id",
      "method": "PATCH",
      "path": "/api/authentication/accounts/:id",
      "group": "authentication",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "label": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 120
            },
            "secret": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 240,
              "sensitive": true
            },
            "issuer": {
              "type": "string",
              "optional": true,
              "max": 120,
              "nullable": true
            },
            "icon": {
              "type": "string",
              "enum": [
                "key",
                "google",
                "facebook",
                "instagram",
                "microsoft",
                "apple",
                "x",
                "linkedin",
                "slack",
                "github"
              ],
              "optional": true
            },
            "visibleToRoles": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "admin",
                  "sales",
                  "mediabuyer",
                  "csm",
                  "staff",
                  "setter"
                ],
                "optional": false
              },
              "optional": true,
              "nullable": true
            },
            "period": {
              "type": "integer",
              "optional": true
            },
            "digits": {
              "type": "integer",
              "optional": true
            },
            "algorithm": {
              "type": "string",
              "enum": [
                "SHA1",
                "SHA256",
                "SHA512"
              ],
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-automations",
      "method": "GET",
      "path": "/api/automations",
      "group": "automations",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner"
        ],
        "handler": "requireSignedIn",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-automations-id",
      "method": "PATCH",
      "path": "/api/automations/:id",
      "group": "automations",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner"
        ],
        "handler": "requireSignedIn",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 80
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "optional": true
            },
            "values": {
              "type": "object",
              "additionalProperties": {
                "oneOf": [
                  {
                    "type": "boolean",
                    "optional": false
                  },
                  {
                    "type": "number",
                    "optional": false
                  },
                  {
                    "type": "string",
                    "optional": false,
                    "max": 20
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "admin",
                        "csm",
                        "mediabuyer",
                        "staff",
                        "sales",
                        "setter"
                      ],
                      "optional": false
                    },
                    "optional": false
                  }
                ],
                "unresolved": false,
                "optional": false
              },
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-automations-id-activity",
      "method": "GET",
      "path": "/api/automations/:id/activity",
      "group": "automations",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner"
        ],
        "handler": "requireSignedIn",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 80
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-automations-activity",
      "method": "GET",
      "path": "/api/automations/activity",
      "group": "automations",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner"
        ],
        "handler": "requireSignedIn",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-automations-custom",
      "method": "POST",
      "path": "/api/automations/custom",
      "group": "automations",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner"
        ],
        "handler": "requireSignedIn",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-automations-custom-id",
      "method": "DELETE",
      "path": "/api/automations/custom/:id",
      "group": "automations",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner"
        ],
        "handler": "requireSignedIn",
        "additionalScope": false
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 80
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-automations-custom-id",
      "method": "GET",
      "path": "/api/automations/custom/:id",
      "group": "automations",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner"
        ],
        "handler": "requireSignedIn",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 80
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-automations-custom-id",
      "method": "PATCH",
      "path": "/api/automations/custom/:id",
      "group": "automations",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner"
        ],
        "handler": "requireSignedIn",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 80
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-automations-custom-id-discard",
      "method": "POST",
      "path": "/api/automations/custom/:id/discard",
      "group": "automations",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner"
        ],
        "handler": "requireSignedIn",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 80
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "put-api-automations-custom-id-draft",
      "method": "PUT",
      "path": "/api/automations/custom/:id/draft",
      "group": "automations",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner"
        ],
        "handler": "requireSignedIn",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 80
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "optional": true,
              "max": 80
            },
            "draft": {
              "type": "unknown",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-automations-custom-id-matches",
      "method": "GET",
      "path": "/api/automations/custom/:id/matches",
      "group": "automations",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner"
        ],
        "handler": "requireSignedIn",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 80
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-automations-custom-id-publish",
      "method": "POST",
      "path": "/api/automations/custom/:id/publish",
      "group": "automations",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner"
        ],
        "handler": "requireSignedIn",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 80
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-automations-custom-id-test",
      "method": "POST",
      "path": "/api/automations/custom/:id/test",
      "group": "automations",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner"
        ],
        "handler": "requireSignedIn",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 80
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "put-api-automations-layout",
      "method": "PUT",
      "path": "/api/automations/layout",
      "group": "automations",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner"
        ],
        "handler": "requireSignedIn",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "folders": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "optional": false,
                    "min": 1,
                    "max": 60
                  },
                  "name": {
                    "type": "string",
                    "optional": false,
                    "min": 1,
                    "max": 60
                  },
                  "automationIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "optional": false,
                      "max": 80
                    },
                    "optional": false,
                    "max": 200
                  },
                  "icon": {
                    "type": "string",
                    "enum": [
                      "folder",
                      "users",
                      "megaphone",
                      "message",
                      "zap",
                      "rocket",
                      "briefcase",
                      "shield",
                      "star",
                      "chart",
                      "calendar",
                      "dollar",
                      "bell",
                      "wrench",
                      "heart",
                      "globe",
                      "target",
                      "mail"
                    ],
                    "optional": true
                  },
                  "color": {
                    "type": "string",
                    "enum": [
                      "slate",
                      "blue",
                      "teal",
                      "green",
                      "amber",
                      "orange",
                      "red",
                      "pink",
                      "violet"
                    ],
                    "optional": true
                  },
                  "parentId": {
                    "type": "string",
                    "optional": true,
                    "min": 1,
                    "max": 60,
                    "nullable": true
                  }
                },
                "optional": false,
                "unresolved": false,
                "strict": true
              },
              "optional": false,
              "max": 80
            },
            "sections": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "optional": false,
                    "min": 1,
                    "max": 60
                  },
                  "name": {
                    "type": "string",
                    "optional": false,
                    "min": 1,
                    "max": 60
                  },
                  "color": {
                    "type": "string",
                    "optional": true,
                    "max": 20
                  },
                  "icon": {
                    "type": "string",
                    "optional": true,
                    "max": 20
                  },
                  "folderIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "optional": false,
                      "max": 60
                    },
                    "optional": true,
                    "max": 80
                  }
                },
                "optional": false,
                "unresolved": false
              },
              "optional": true,
              "max": 30
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-billing-clients-clientId-appointments",
      "method": "GET",
      "path": "/api/billing/clients/:clientId/appointments",
      "group": "billing",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter"
        ],
        "handler": "requireBilling",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "query": {
          "type": "object",
          "properties": {
            "range": {
              "type": "string",
              "optional": true
            },
            "start": {
              "type": "string",
              "optional": true
            },
            "end": {
              "type": "string",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-billing-clients-clientId-appointments-appointmentId-report",
      "method": "POST",
      "path": "/api/billing/clients/:clientId/appointments/:appointmentId/report",
      "group": "billing",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter"
        ],
        "handler": "requireBilling",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "appointmentId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "no_show",
                "unqualified"
              ],
              "optional": false
            },
            "recordingUrl": {
              "type": "string",
              "optional": true,
              "max": 2000
            },
            "details": {
              "type": "string",
              "optional": true,
              "max": 2000
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-billing-clients-clientId-journal",
      "method": "POST",
      "path": "/api/billing/clients/:clientId/journal",
      "group": "billing",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "sales",
          "setter"
        ],
        "handler": "requireJournalWriter",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "categories": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "poor_pickup_rate",
                  "not_qualified",
                  "other"
                ],
                "optional": false
              },
              "optional": false,
              "min": 1
            },
            "details": {
              "type": "string",
              "optional": true,
              "max": 10000
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-billing-clients-clientId-leads",
      "method": "GET",
      "path": "/api/billing/clients/:clientId/leads",
      "group": "billing",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter"
        ],
        "handler": "requireBilling",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "query": {
          "type": "object",
          "properties": {
            "range": {
              "type": "string",
              "optional": true
            },
            "start": {
              "type": "string",
              "optional": true
            },
            "end": {
              "type": "string",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-billing-journal",
      "method": "GET",
      "path": "/api/billing/journal",
      "group": "billing",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter"
        ],
        "handler": "requireBillingWrite",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": true
            },
            "statuses": {
              "type": "string",
              "optional": true
            },
            "category": {
              "type": "string",
              "enum": [
                "poor_pickup_rate",
                "not_qualified",
                "other"
              ],
              "optional": true
            },
            "q": {
              "type": "string",
              "optional": true
            },
            "cursor": {
              "type": "string",
              "optional": true
            },
            "limit": {
              "type": "integer",
              "optional": true,
              "min": 1,
              "max": 100
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-billing-journal-entryId",
      "method": "DELETE",
      "path": "/api/billing/journal/:entryId",
      "group": "billing",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "entryId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-billing-journal-entryId",
      "method": "PATCH",
      "path": "/api/billing/journal/:entryId",
      "group": "billing",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter"
        ],
        "handler": "requireBillingWrite",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "entryId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "categories": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "poor_pickup_rate",
                  "not_qualified",
                  "other"
                ],
                "optional": false
              },
              "optional": false,
              "min": 1
            },
            "details": {
              "type": "string",
              "optional": true,
              "max": 10000
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-billing-overview",
      "method": "GET",
      "path": "/api/billing/overview",
      "group": "billing",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter"
        ],
        "handler": "requireBilling",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "range": {
              "type": "string",
              "optional": true
            },
            "start": {
              "type": "string",
              "optional": true
            },
            "end": {
              "type": "string",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-billing-refresh",
      "method": "POST",
      "path": "/api/billing/refresh",
      "group": "billing",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter"
        ],
        "handler": "requireBillingWrite",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-client-context-calls",
      "method": "GET",
      "path": "/api/client-context/calls",
      "group": "client-context",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireClientCalls",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "q": {
              "type": "string",
              "optional": true,
              "max": 500
            },
            "offset": {
              "type": "integer",
              "optional": true,
              "min": 0
            },
            "limit": {
              "type": "integer",
              "optional": true,
              "min": 1,
              "max": 250
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-client-context-calls-recordingId",
      "method": "GET",
      "path": "/api/client-context/calls/:recordingId",
      "group": "client-context",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireClientCalls",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "offset": {
              "type": "integer",
              "optional": true,
              "min": 0
            },
            "limit": {
              "type": "integer",
              "optional": true,
              "min": 1,
              "max": 200
            }
          },
          "optional": false,
          "unresolved": false
        },
        "params": {
          "type": "object",
          "properties": {
            "recordingId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 500
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-client-delivery-clients",
      "method": "GET",
      "path": "/api/client-delivery/clients",
      "group": "client-delivery",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireClientDelivery",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-client-delivery-clients-id",
      "method": "PATCH",
      "path": "/api/client-delivery/clients/:id",
      "group": "client-delivery",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireClientDeliveryWrite",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "clientName": {
              "type": "string",
              "optional": true,
              "min": 1
            },
            "primaryContactName": {
              "type": "string",
              "optional": true
            },
            "status": {
              "type": "string",
              "optional": true
            },
            "churnReason": {
              "type": "string",
              "optional": true,
              "max": 1000
            },
            "reviewCallDate": {
              "type": "string",
              "optional": true
            },
            "kickoffCallDate": {
              "type": "string",
              "optional": true
            },
            "onboardingCallDate": {
              "type": "string",
              "optional": true
            },
            "newClientMessage": {
              "type": "string",
              "optional": true
            },
            "googleDrive": {
              "type": "string",
              "optional": true
            },
            "offerBuildout": {
              "type": "string",
              "optional": true
            },
            "a2pStatus": {
              "type": "string",
              "optional": true
            },
            "staticAds": {
              "type": "string",
              "optional": true
            },
            "buildGhl": {
              "type": "string",
              "optional": true
            },
            "setupPixel": {
              "type": "string",
              "optional": true
            },
            "updateClientPortal": {
              "type": "string",
              "optional": true
            },
            "landingPage": {
              "type": "string",
              "optional": true
            },
            "landingPageUrls": {
              "type": "array",
              "items": {
                "type": "string",
                "optional": false,
                "max": 2048
              },
              "optional": true,
              "max": 20
            },
            "landingPageUrl": {
              "type": "string",
              "optional": true
            },
            "ghlLocationId": {
              "type": "string",
              "optional": true
            },
            "ghlPrivateKey": {
              "type": "string",
              "optional": true
            },
            "ghlAccount": {
              "type": "string",
              "optional": true
            },
            "metaAccountName": {
              "type": "string",
              "optional": true
            },
            "adAccountLink": {
              "type": "string",
              "optional": true
            },
            "metaPixelCode": {
              "type": "string",
              "optional": true
            },
            "pixelScript": {
              "type": "string",
              "optional": true
            },
            "clientWebsite": {
              "type": "string",
              "optional": true
            },
            "servicesOffered": {
              "type": "string",
              "optional": true
            },
            "targetNiche": {
              "type": "string",
              "optional": true
            },
            "targetAudience": {
              "type": "string",
              "optional": true
            },
            "callTakers": {
              "type": "string",
              "optional": true
            },
            "startEndDate": {
              "type": "string",
              "optional": true
            },
            "monthlyRetainer": {
              "type": "number",
              "optional": true,
              "nullable": true
            },
            "setupFee": {
              "type": "number",
              "optional": true,
              "nullable": true
            },
            "setupFeeCollected": {
              "type": "number",
              "optional": true,
              "nullable": true
            },
            "dailyAdsBudget": {
              "type": "number",
              "optional": true,
              "nullable": true
            },
            "clientDeal": {
              "type": "string",
              "optional": true
            },
            "contractSigned": {
              "type": "boolean",
              "optional": true,
              "nullable": true
            },
            "needsSetter": {
              "type": "string",
              "optional": true
            },
            "setterAdded": {
              "type": "boolean",
              "optional": true
            },
            "assignedSetter": {
              "type": "string",
              "optional": true
            },
            "assignedSetterId": {
              "type": "string",
              "optional": true,
              "nullable": true
            },
            "completedMeeting": {
              "type": "string",
              "optional": true
            },
            "meetingLocation": {
              "type": "string",
              "optional": true
            },
            "notes": {
              "type": "string",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-client-delivery-clients-id-meta-tracking",
      "method": "GET",
      "path": "/api/client-delivery/clients/:id/meta-tracking",
      "group": "client-delivery",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "staff"
        ],
        "handler": "inline role guard",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-client-delivery-clients-id-meta-tracking",
      "method": "PATCH",
      "path": "/api/client-delivery/clients/:id/meta-tracking",
      "group": "client-delivery",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer"
        ],
        "handler": "inline role guard",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "pixelCode": {
              "type": "string",
              "optional": true,
              "max": 20000
            },
            "datasetId": {
              "type": "string",
              "optional": true,
              "extraValidation": true
            },
            "accessToken": {
              "type": "string",
              "optional": true,
              "max": 5000,
              "extraValidation": true,
              "nullable": true,
              "sensitive": true
            },
            "expectedUpdatedAt": {
              "type": "string",
              "optional": false,
              "format": "date-time",
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-client-delivery-import-notion-csv",
      "method": "POST",
      "path": "/api/client-delivery/import/notion-csv",
      "group": "client-delivery",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireAssignmentAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "csvText": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "sourceName": {
              "type": "string",
              "optional": true,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-client-delivery-views-view",
      "method": "GET",
      "path": "/api/client-delivery/views/:view",
      "group": "client-delivery",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireClientDelivery",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "view": {
              "type": "string",
              "enum": [
                "onboarding",
                "strategy",
                "setup-phase",
                "client-board",
                "setters",
                "offer-billing",
                "call-manager",
                "access-control",
                "all-clients"
              ],
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-client-videos-id",
      "method": "DELETE",
      "path": "/api/client-videos/:id",
      "group": "client-videos",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireManager",
        "additionalScope": false
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "confirmation": {
              "type": "string",
              "enum": [
                "DELETE"
              ],
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-client-videos-id",
      "method": "PATCH",
      "path": "/api/client-videos/:id",
      "group": "client-videos",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireManager",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "title": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 200
            },
            "description": {
              "type": "string",
              "optional": true,
              "max": 1000
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-client-videos-id-analysis",
      "method": "GET",
      "path": "/api/client-videos/:id/analysis",
      "group": "client-videos",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireManager",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-client-videos-id-analysis",
      "method": "POST",
      "path": "/api/client-videos/:id/analysis",
      "group": "client-videos",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireManager",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-client-videos-id-download",
      "method": "GET",
      "path": "/api/client-videos/:id/download",
      "group": "client-videos",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireManager",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-client-videos-id-finalize",
      "method": "POST",
      "path": "/api/client-videos/:id/finalize",
      "group": "client-videos",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireManager",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-client-videos-id-media",
      "method": "GET",
      "path": "/api/client-videos/:id/media",
      "group": "client-videos",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireManager",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-client-videos-id-publish",
      "method": "POST",
      "path": "/api/client-videos/:id/publish",
      "group": "client-videos",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireManager",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-client-videos-id-unpublish",
      "method": "POST",
      "path": "/api/client-videos/:id/unpublish",
      "group": "client-videos",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireManager",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-client-videos-id-upload",
      "method": "POST",
      "path": "/api/client-videos/:id/upload",
      "group": "client-videos",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireManager",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "fileName": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 180
            },
            "mimeType": {
              "type": "string",
              "enum": [
                "video/mp4",
                "video/quicktime",
                "video/webm"
              ],
              "optional": false
            },
            "sizeBytes": {
              "type": "integer",
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-clients",
      "method": "GET",
      "path": "/api/clients",
      "group": "clients",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireClients",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "compact": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-clients-clientId-videos",
      "method": "GET",
      "path": "/api/clients/:clientId/videos",
      "group": "client-videos",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireManager",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-clients-clientId-videos",
      "method": "POST",
      "path": "/api/clients/:clientId/videos",
      "group": "client-videos",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireManager",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "title": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 200
            },
            "description": {
              "type": "string",
              "optional": true,
              "max": 1000
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-clients-id",
      "method": "DELETE",
      "path": "/api/clients/:id",
      "group": "clients",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": true
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-clients-id",
      "method": "PATCH",
      "path": "/api/clients/:id",
      "group": "clients",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireClientWrite",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "clientName": {
              "type": "string",
              "optional": true,
              "min": 1
            },
            "primaryContactName": {
              "type": "string",
              "optional": true
            },
            "status": {
              "type": "string",
              "optional": true
            },
            "churnReason": {
              "type": "string",
              "optional": true,
              "max": 1000
            },
            "reviewCallDate": {
              "type": "string",
              "optional": true
            },
            "kickoffCallDate": {
              "type": "string",
              "optional": true
            },
            "onboardingCallDate": {
              "type": "string",
              "optional": true
            },
            "newClientMessage": {
              "type": "string",
              "optional": true
            },
            "googleDrive": {
              "type": "string",
              "optional": true
            },
            "offerBuildout": {
              "type": "string",
              "optional": true
            },
            "a2pStatus": {
              "type": "string",
              "optional": true
            },
            "staticAds": {
              "type": "string",
              "optional": true
            },
            "buildGhl": {
              "type": "string",
              "optional": true
            },
            "setupPixel": {
              "type": "string",
              "optional": true
            },
            "updateClientPortal": {
              "type": "string",
              "optional": true
            },
            "landingPage": {
              "type": "string",
              "optional": true
            },
            "landingPageUrls": {
              "type": "array",
              "items": {
                "type": "string",
                "optional": false,
                "max": 2048
              },
              "optional": true,
              "max": 20
            },
            "landingPageUrl": {
              "type": "string",
              "optional": true
            },
            "ghlLocationId": {
              "type": "string",
              "optional": true
            },
            "ghlPrivateKey": {
              "type": "string",
              "optional": true
            },
            "ghlAccount": {
              "type": "string",
              "optional": true
            },
            "metaAccountName": {
              "type": "string",
              "optional": true
            },
            "adAccountLink": {
              "type": "string",
              "optional": true
            },
            "metaPixelCode": {
              "type": "string",
              "optional": true
            },
            "pixelScript": {
              "type": "string",
              "optional": true
            },
            "clientWebsite": {
              "type": "string",
              "optional": true
            },
            "servicesOffered": {
              "type": "string",
              "optional": true
            },
            "targetNiche": {
              "type": "string",
              "optional": true
            },
            "targetAudience": {
              "type": "string",
              "optional": true
            },
            "callTakers": {
              "type": "string",
              "optional": true
            },
            "startEndDate": {
              "type": "string",
              "optional": true
            },
            "monthlyRetainer": {
              "type": "number",
              "optional": true,
              "nullable": true
            },
            "setupFee": {
              "type": "number",
              "optional": true,
              "nullable": true
            },
            "setupFeeCollected": {
              "type": "number",
              "optional": true,
              "nullable": true
            },
            "dailyAdsBudget": {
              "type": "number",
              "optional": true,
              "nullable": true
            },
            "clientDeal": {
              "type": "string",
              "optional": true
            },
            "contractSigned": {
              "type": "boolean",
              "optional": true,
              "nullable": true
            },
            "needsSetter": {
              "type": "string",
              "optional": true
            },
            "setterAdded": {
              "type": "boolean",
              "optional": true
            },
            "assignedSetter": {
              "type": "string",
              "optional": true
            },
            "assignedSetterId": {
              "type": "string",
              "optional": true,
              "nullable": true
            },
            "completedMeeting": {
              "type": "string",
              "optional": true
            },
            "meetingLocation": {
              "type": "string",
              "optional": true
            },
            "notes": {
              "type": "string",
              "optional": true
            },
            "slackChannelUrl": {
              "type": "string",
              "optional": true,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-clients-id-brand-dna",
      "method": "GET",
      "path": "/api/clients/:id/brand-dna",
      "group": "clients",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireClients",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-clients-id-brand-dna",
      "method": "PATCH",
      "path": "/api/clients/:id/brand-dna",
      "group": "clients",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireBrandWrite",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-clients-id-brand-dna-assets-assetId",
      "method": "GET",
      "path": "/api/clients/:id/brand-dna/assets/:assetId",
      "group": "clients",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireClients",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "assetId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 120
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-clients-id-brand-dna-generate",
      "method": "POST",
      "path": "/api/clients/:id/brand-dna/generate",
      "group": "clients",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireBrandWrite",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-clients-id-campaigns",
      "method": "POST",
      "path": "/api/clients/:id/campaigns",
      "group": "clients",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireClientWrite",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 80
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-clients-id-campaigns-campaignId",
      "method": "DELETE",
      "path": "/api/clients/:id/campaigns/:campaignId",
      "group": "clients",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": true
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "campaignId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "confirmation": {
              "type": "string",
              "enum": [
                "DELETE"
              ],
              "optional": false
            },
            "reason": {
              "type": "string",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-clients-id-campaigns-campaignId",
      "method": "PATCH",
      "path": "/api/clients/:id/campaigns/:campaignId",
      "group": "clients",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireClientWrite",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "campaignId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "optional": true,
              "max": 80
            },
            "status": {
              "type": "string",
              "optional": true,
              "max": 60
            },
            "churnReason": {
              "type": "string",
              "optional": true,
              "max": 1000
            },
            "reviewCallDate": {
              "type": "string",
              "optional": true
            },
            "angle": {
              "type": "string",
              "optional": true
            },
            "offerBuildout": {
              "type": "string",
              "optional": true
            },
            "buildGhl": {
              "type": "string",
              "optional": true
            },
            "staticAds": {
              "type": "string",
              "optional": true
            },
            "landingPage": {
              "type": "string",
              "optional": true
            },
            "landingPageUrls": {
              "type": "array",
              "items": {
                "type": "string",
                "optional": false,
                "max": 2048
              },
              "optional": true,
              "max": 20
            },
            "landingPageUrl": {
              "type": "string",
              "optional": true
            },
            "targetNiche": {
              "type": "string",
              "optional": true
            },
            "targetAudience": {
              "type": "string",
              "optional": true
            },
            "metaCampaignId": {
              "type": "string",
              "optional": true,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-clients-id-campaigns-approve-strategy",
      "method": "POST",
      "path": "/api/clients/:id/campaigns/approve-strategy",
      "group": "clients",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireClientWrite",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-clients-id-happiness",
      "method": "PATCH",
      "path": "/api/clients/:id/happiness",
      "group": "clients",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "score": {
              "type": "integer",
              "optional": false,
              "min": 0,
              "max": 100,
              "nullable": true
            },
            "reason": {
              "type": "string",
              "optional": true,
              "max": 500
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-clients-id-happiness-resolve-trigger",
      "method": "POST",
      "path": "/api/clients/:id/happiness/resolve-trigger",
      "group": "clients",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "triggerClass": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-clients-id-presence",
      "method": "POST",
      "path": "/api/clients/:id/presence",
      "group": "clients",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireClientWrite",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "field": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "label": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "state": {
              "type": "string",
              "enum": [
                "editing",
                "idle"
              ],
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-clients-id-slack-channel-test",
      "method": "POST",
      "path": "/api/clients/:id/slack-channel/test",
      "group": "clients",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireClientWrite",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "channel": {
              "type": "string",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-clients-slack-channels-refresh",
      "method": "POST",
      "path": "/api/clients/slack-channels/refresh",
      "group": "clients",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-creative-generator-assets",
      "method": "GET",
      "path": "/api/creative-generator/assets",
      "group": "creative-generator",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-creative-generator-assets-id",
      "method": "DELETE",
      "path": "/api/creative-generator/assets/:id",
      "group": "creative-generator",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": true
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-creative-generator-assets-id",
      "method": "PATCH",
      "path": "/api/creative-generator/assets/:id",
      "group": "creative-generator",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "candidate",
                "kept",
                "discarded"
              ],
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-creative-generator-assets-id-image",
      "method": "GET",
      "path": "/api/creative-generator/assets/:id/image",
      "group": "creative-generator",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-creative-generator-config",
      "method": "GET",
      "path": "/api/creative-generator/config",
      "group": "creative-generator",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-generate",
      "method": "POST",
      "path": "/api/creative-generator/generate",
      "group": "creative-generator",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "prompt": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 5000
            },
            "presetId": {
              "type": "string",
              "optional": true,
              "nullable": true
            },
            "model": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 80
            },
            "count": {
              "type": "integer",
              "optional": true,
              "min": 1,
              "max": 10
            },
            "size": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 40
            },
            "quality": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 40
            },
            "referenceAssetId": {
              "type": "string",
              "optional": true,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-creative-generator-motion-ads-assets",
      "method": "GET",
      "path": "/api/creative-generator/motion-ads/assets",
      "group": "motion-ads",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-motion-ads-assets",
      "method": "POST",
      "path": "/api/creative-generator/motion-ads/assets",
      "group": "motion-ads",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "nullable": true
            },
            "fileName": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 180
            },
            "dataUrl": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-creative-generator-motion-ads-assets-id",
      "method": "DELETE",
      "path": "/api/creative-generator/motion-ads/assets/:id",
      "group": "motion-ads",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-creative-generator-motion-ads-config",
      "method": "GET",
      "path": "/api/creative-generator/motion-ads/config",
      "group": "motion-ads",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-creative-generator-motion-ads-files",
      "method": "GET",
      "path": "/api/creative-generator/motion-ads/files",
      "group": "motion-ads",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 500
            },
            "download": {
              "type": "string",
              "optional": true,
              "max": 200
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-creative-generator-motion-ads-projects",
      "method": "GET",
      "path": "/api/creative-generator/motion-ads/projects",
      "group": "motion-ads",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-motion-ads-projects",
      "method": "POST",
      "path": "/api/creative-generator/motion-ads/projects",
      "group": "motion-ads",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "nullable": true
            },
            "brief": {
              "type": "string",
              "optional": false,
              "min": 10
            },
            "style": {
              "type": "string",
              "enum": [
                "product",
                "kinetic",
                "editorial",
                "glass",
                "warm"
              ],
              "optional": false
            },
            "voiceId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 80
            },
            "voiceName": {
              "type": "string",
              "optional": false,
              "max": 120
            },
            "assetIds": {
              "type": "array",
              "items": {
                "type": "string",
                "optional": false
              },
              "optional": false,
              "max": 8
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-creative-generator-motion-ads-projects-id",
      "method": "GET",
      "path": "/api/creative-generator/motion-ads/projects/:id",
      "group": "motion-ads",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-motion-ads-projects-id-changes",
      "method": "POST",
      "path": "/api/creative-generator/motion-ads/projects/:id/changes",
      "group": "motion-ads",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "request": {
              "type": "string",
              "optional": false,
              "min": 2
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-motion-ads-projects-id-retry",
      "method": "POST",
      "path": "/api/creative-generator/motion-ads/projects/:id/retry",
      "group": "motion-ads",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-creative-generator-motion-ads-projects-id-storyboard",
      "method": "PATCH",
      "path": "/api/creative-generator/motion-ads/projects/:id/storyboard",
      "group": "motion-ads",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "beats": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "optional": false,
                    "min": 1,
                    "max": 80
                  },
                  "vo": {
                    "type": "string",
                    "optional": false,
                    "min": 1,
                    "max": 400
                  },
                  "say": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "optional": false,
                      "max": 120
                    },
                    "optional": false,
                    "max": 2
                  }
                },
                "optional": false,
                "unresolved": false,
                "strict": true
              },
              "optional": false,
              "max": 30
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-motion-ads-projects-id-versions",
      "method": "POST",
      "path": "/api/creative-generator/motion-ads/projects/:id/versions",
      "group": "motion-ads",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-creative-generator-motion-ads-voices",
      "method": "GET",
      "path": "/api/creative-generator/motion-ads/voices",
      "group": "motion-ads",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-presets",
      "method": "POST",
      "path": "/api/creative-generator/presets",
      "group": "creative-generator",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 90
            },
            "prompt": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 5000
            },
            "referenceAssetId": {
              "type": "string",
              "optional": true,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-creative-generator-presets-id",
      "method": "DELETE",
      "path": "/api/creative-generator/presets/:id",
      "group": "creative-generator",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-creative-generator-presets-id",
      "method": "PATCH",
      "path": "/api/creative-generator/presets/:id",
      "group": "creative-generator",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 90
            },
            "prompt": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 5000
            },
            "referenceAssetId": {
              "type": "string",
              "optional": true,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-reference-image",
      "method": "POST",
      "path": "/api/creative-generator/reference-image",
      "group": "creative-generator",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "fileName": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 180
            },
            "dataUrl": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-creative-generator-runs",
      "method": "GET",
      "path": "/api/creative-generator/runs",
      "group": "creative-generator",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-creative-generator-video-editor-config",
      "method": "GET",
      "path": "/api/creative-generator/video-editor/config",
      "group": "video-editor",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-creative-generator-video-editor-projects",
      "method": "GET",
      "path": "/api/creative-generator/video-editor/projects",
      "group": "video-editor",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "compact": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-video-editor-projects",
      "method": "POST",
      "path": "/api/creative-generator/video-editor/projects",
      "group": "video-editor",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "fileName": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 180
            },
            "mimeType": {
              "type": "string",
              "enum": [
                "video/mp4",
                "video/quicktime",
                "video/webm"
              ],
              "optional": false
            },
            "sizeBytes": {
              "type": "integer",
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-creative-generator-video-editor-projects-id",
      "method": "DELETE",
      "path": "/api/creative-generator/video-editor/projects/:id",
      "group": "video-editor",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-creative-generator-video-editor-projects-id",
      "method": "GET",
      "path": "/api/creative-generator/video-editor/projects/:id",
      "group": "video-editor",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-creative-generator-video-editor-projects-id",
      "method": "PATCH",
      "path": "/api/creative-generator/video-editor/projects/:id",
      "group": "video-editor",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "words": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "optional": false,
                    "min": 1,
                    "max": 80
                  },
                  "text": {
                    "type": "string",
                    "optional": false,
                    "max": 300
                  },
                  "sourceText": {
                    "type": "string",
                    "optional": false,
                    "max": 300
                  },
                  "startMs": {
                    "type": "integer",
                    "optional": false,
                    "min": 0
                  },
                  "endMs": {
                    "type": "integer",
                    "optional": false,
                    "min": 0
                  },
                  "confidence": {
                    "type": "number",
                    "optional": false,
                    "min": 0,
                    "max": 1
                  }
                },
                "optional": false,
                "unresolved": false,
                "strict": true,
                "extraValidation": true
              },
              "optional": true,
              "max": 30000
            },
            "captionGroups": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "optional": false,
                    "min": 1,
                    "max": 80
                  },
                  "wordIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "optional": false,
                      "min": 1,
                      "max": 80
                    },
                    "optional": false,
                    "min": 1,
                    "max": 20
                  },
                  "startMs": {
                    "type": "integer",
                    "optional": false,
                    "min": 0
                  },
                  "endMs": {
                    "type": "integer",
                    "optional": false,
                    "min": 0
                  }
                },
                "optional": false,
                "unresolved": false,
                "strict": true,
                "extraValidation": true
              },
              "optional": true,
              "max": 15000
            },
            "suggestions": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "optional": false,
                    "min": 1,
                    "max": 80
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "filler",
                      "mistake",
                      "dead_space"
                    ],
                    "optional": false
                  },
                  "startMs": {
                    "type": "integer",
                    "optional": false,
                    "min": 0
                  },
                  "endMs": {
                    "type": "integer",
                    "optional": false,
                    "min": 0
                  },
                  "text": {
                    "type": "string",
                    "optional": false,
                    "max": 1000
                  },
                  "reason": {
                    "type": "string",
                    "optional": false,
                    "max": 1000
                  },
                  "confidence": {
                    "type": "number",
                    "optional": false,
                    "min": 0,
                    "max": 1
                  },
                  "selected": {
                    "type": "boolean",
                    "optional": false
                  }
                },
                "optional": false,
                "unresolved": false,
                "strict": true,
                "extraValidation": true
              },
              "optional": true,
              "max": 15000
            },
            "removeFillers": {
              "type": "boolean",
              "optional": true
            },
            "removeMistakes": {
              "type": "boolean",
              "optional": true
            },
            "removeDeadSpace": {
              "type": "boolean",
              "optional": true
            },
            "audioEnhancement": {
              "type": "string",
              "enum": [
                "off",
                "clean",
                "studio"
              ],
              "optional": true
            },
            "backgroundEnabled": {
              "type": "boolean",
              "optional": true
            },
            "backgroundPosition": {
              "type": "object",
              "properties": {
                "x": {
                  "type": "number",
                  "optional": false,
                  "min": 0,
                  "max": 100
                },
                "y": {
                  "type": "number",
                  "optional": false,
                  "min": 0,
                  "max": 100
                }
              },
              "optional": true,
              "unresolved": false,
              "strict": true
            },
            "backgroundMatchLighting": {
              "type": "boolean",
              "optional": true
            },
            "captionStyle": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean",
                  "optional": true
                },
                "preset": {
                  "type": "string",
                  "enum": [
                    "clean",
                    "focus",
                    "bold",
                    "minimal"
                  ],
                  "optional": false
                },
                "fontFamily": {
                  "type": "string",
                  "enum": [
                    "noto_sans",
                    "anton",
                    "montserrat",
                    "barlow_condensed"
                  ],
                  "optional": true
                },
                "baseColor": {
                  "type": "string",
                  "optional": false,
                  "extraValidation": true
                },
                "highlightColor": {
                  "type": "string",
                  "optional": false,
                  "extraValidation": true
                },
                "highlightMode": {
                  "type": "string",
                  "enum": [
                    "off",
                    "text",
                    "block"
                  ],
                  "optional": true
                },
                "highlightSpokenWord": {
                  "type": "boolean",
                  "optional": true
                },
                "outline": {
                  "type": "string",
                  "enum": [
                    "off",
                    "thin",
                    "thick"
                  ],
                  "optional": true
                },
                "outlineColor": {
                  "type": "string",
                  "optional": true,
                  "extraValidation": true
                },
                "position": {
                  "type": "string",
                  "enum": [
                    "top",
                    "center",
                    "bottom"
                  ],
                  "optional": false
                },
                "animation": {
                  "type": "string",
                  "enum": [
                    "none",
                    "fade",
                    "pop",
                    "rise"
                  ],
                  "optional": false
                }
              },
              "optional": true,
              "unresolved": false,
              "strict": true
            },
            "crop": {
              "type": "object",
              "properties": {
                "aspectRatio": {
                  "type": "string",
                  "enum": [
                    "source",
                    "9:16",
                    "1:1",
                    "16:9"
                  ],
                  "optional": false
                },
                "x": {
                  "type": "number",
                  "optional": false,
                  "min": 0,
                  "max": 100
                },
                "y": {
                  "type": "number",
                  "optional": false,
                  "min": 0,
                  "max": 100
                }
              },
              "optional": true,
              "unresolved": false,
              "strict": true
            },
            "brollEnabled": {
              "type": "boolean",
              "optional": true
            },
            "brollPlacements": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "optional": false,
                    "min": 1,
                    "max": 80
                  },
                  "startMs": {
                    "type": "integer",
                    "optional": false,
                    "min": 0
                  },
                  "endMs": {
                    "type": "integer",
                    "optional": false,
                    "min": 0
                  },
                  "query": {
                    "type": "string",
                    "optional": false,
                    "max": 200
                  },
                  "transition": {
                    "type": "string",
                    "enum": [
                      "cut",
                      "fade",
                      "slide",
                      "punch"
                    ],
                    "optional": false
                  },
                  "candidates": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "unresolved": true,
                          "min": 1,
                          "max": 120
                        },
                        "pexelsVideoId": {
                          "unresolved": true,
                          "type": "integer"
                        },
                        "query": {
                          "type": "string",
                          "optional": false,
                          "max": 200
                        },
                        "creatorName": {
                          "type": "string",
                          "optional": false,
                          "max": 200
                        },
                        "sourceUrl": {
                          "type": "string",
                          "optional": false,
                          "format": "url"
                        },
                        "previewUrl": {
                          "type": "string",
                          "optional": false
                        },
                        "downloadUrl": {
                          "type": "string",
                          "optional": false,
                          "format": "url"
                        },
                        "width": {
                          "unresolved": true,
                          "type": "integer"
                        },
                        "height": {
                          "unresolved": true,
                          "type": "integer"
                        },
                        "durationSeconds": {
                          "type": "number",
                          "optional": false
                        }
                      },
                      "optional": false,
                      "unresolved": false,
                      "strict": true
                    },
                    "optional": false,
                    "max": 5
                  },
                  "selectedCandidateId": {
                    "type": "string",
                    "optional": false,
                    "max": 120,
                    "nullable": true
                  }
                },
                "optional": false,
                "unresolved": false,
                "strict": true
              },
              "optional": true,
              "max": 30
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-creative-generator-video-editor-projects-id-asset-url",
      "method": "GET",
      "path": "/api/creative-generator/video-editor/projects/:id/asset-url",
      "group": "video-editor",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "query": {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "source",
                "output",
                "background"
              ],
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-creative-generator-video-editor-projects-id-background",
      "method": "DELETE",
      "path": "/api/creative-generator/video-editor/projects/:id/background",
      "group": "video-editor",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-video-editor-projects-id-background-upload-complete",
      "method": "POST",
      "path": "/api/creative-generator/video-editor/projects/:id/background/upload-complete",
      "group": "video-editor",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "width": {
              "type": "integer",
              "optional": false,
              "max": 16384
            },
            "height": {
              "type": "integer",
              "optional": false,
              "max": 16384
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-video-editor-projects-id-background-upload-session",
      "method": "POST",
      "path": "/api/creative-generator/video-editor/projects/:id/background/upload-session",
      "group": "video-editor",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "fileName": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 180
            },
            "mimeType": {
              "type": "string",
              "enum": [
                "image/jpeg",
                "image/png",
                "image/webp"
              ],
              "optional": false
            },
            "sizeBytes": {
              "type": "integer",
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-video-editor-projects-id-broll",
      "method": "POST",
      "path": "/api/creative-generator/video-editor/projects/:id/broll",
      "group": "video-editor",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-video-editor-projects-id-prepare",
      "method": "POST",
      "path": "/api/creative-generator/video-editor/projects/:id/prepare",
      "group": "video-editor",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-creative-generator-video-editor-projects-id-renders",
      "method": "GET",
      "path": "/api/creative-generator/video-editor/projects/:id/renders",
      "group": "video-editor",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-video-editor-projects-id-renders",
      "method": "POST",
      "path": "/api/creative-generator/video-editor/projects/:id/renders",
      "group": "video-editor",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-video-editor-projects-id-renders-cancel",
      "method": "POST",
      "path": "/api/creative-generator/video-editor/projects/:id/renders/cancel",
      "group": "video-editor",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-video-editor-projects-id-transcribe",
      "method": "POST",
      "path": "/api/creative-generator/video-editor/projects/:id/transcribe",
      "group": "video-editor",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-video-editor-projects-id-upload-complete",
      "method": "POST",
      "path": "/api/creative-generator/video-editor/projects/:id/upload-complete",
      "group": "video-editor",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "durationMs": {
              "type": "integer",
              "optional": false
            },
            "width": {
              "type": "integer",
              "optional": false,
              "max": 16384
            },
            "height": {
              "type": "integer",
              "optional": false,
              "max": 16384
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-video-editor-projects-id-upload-session",
      "method": "POST",
      "path": "/api/creative-generator/video-editor/projects/:id/upload-session",
      "group": "video-editor",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-creative-generator-videos-config",
      "method": "GET",
      "path": "/api/creative-generator/videos/config",
      "group": "creative-generator",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-creative-generator-videos-estimate",
      "method": "GET",
      "path": "/api/creative-generator/videos/estimate",
      "group": "creative-generator",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "renderMode": {
              "type": "string",
              "enum": [
                "ugc_talking_head",
                "cinematic_spokesperson",
                "cinematic_brand_film"
              ],
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-creative-generator-videos-projects",
      "method": "GET",
      "path": "/api/creative-generator/videos/projects",
      "group": "creative-generator",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-videos-projects",
      "method": "POST",
      "path": "/api/creative-generator/videos/projects",
      "group": "creative-generator",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "renderMode": {
              "type": "string",
              "enum": [
                "ugc_talking_head",
                "cinematic_spokesperson",
                "cinematic_brand_film"
              ],
              "optional": false
            },
            "brollPolicy": {
              "type": "string",
              "enum": [
                "automatic",
                "client_media_only",
                "ai_only",
                "hybrid"
              ],
              "optional": false
            },
            "instructions": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 12000
            },
            "finishedScript": {
              "type": "string",
              "optional": true,
              "max": 12000
            },
            "reviewBeforeRendering": {
              "type": "boolean",
              "optional": false
            },
            "maxAuthorizedCostCents": {
              "type": "integer",
              "optional": false,
              "min": 1000,
              "max": 10000
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-creative-generator-videos-projects-id",
      "method": "PATCH",
      "path": "/api/creative-generator/videos/projects/:id",
      "group": "creative-generator",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "renderMode": {
              "type": "string",
              "enum": [
                "ugc_talking_head",
                "cinematic_spokesperson",
                "cinematic_brand_film"
              ],
              "optional": true
            },
            "brollPolicy": {
              "type": "string",
              "enum": [
                "automatic",
                "client_media_only",
                "ai_only",
                "hybrid"
              ],
              "optional": true
            },
            "instructions": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 12000
            },
            "finishedScript": {
              "type": "string",
              "optional": true,
              "max": 12000
            },
            "reviewBeforeRendering": {
              "type": "boolean",
              "optional": true
            },
            "maxAuthorizedCostCents": {
              "type": "integer",
              "optional": true,
              "min": 1000,
              "max": 10000
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-creative-generator-videos-providers-providerId",
      "method": "PATCH",
      "path": "/api/creative-generator/videos/providers/:providerId",
      "group": "creative-generator",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "providerId": {
              "type": "string",
              "enum": [
                "runway",
                "elevenlabs",
                "heygen",
                "luma",
                "pexels"
              ],
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "apiKey": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 5000,
              "sensitive": true
            },
            "clearApiKey": {
              "type": "boolean",
              "optional": true,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-creative-generator-videos-providers-providerId-test",
      "method": "POST",
      "path": "/api/creative-generator/videos/providers/:providerId/test",
      "group": "creative-generator",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "providerId": {
              "type": "string",
              "enum": [
                "runway",
                "elevenlabs",
                "heygen",
                "luma",
                "pexels"
              ],
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-creative-generator-videos-runs",
      "method": "GET",
      "path": "/api/creative-generator/videos/runs",
      "group": "creative-generator",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireGenerator",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-dashboard",
      "method": "GET",
      "path": "/api/dashboard",
      "group": "dashboard",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": "requireDashboard",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "viewRole": {
              "type": "string",
              "enum": null,
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-dashboard-automation-tasks-id-done",
      "method": "POST",
      "path": "/api/dashboard/automation-tasks/:id/done",
      "group": "dashboard",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": "requireDashboard",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-dashboard-client-updates-acknowledge",
      "method": "POST",
      "path": "/api/dashboard/client-updates/acknowledge",
      "group": "dashboard",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": "requireClientUpdate",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "taskKey": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 320
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-dashboard-todos",
      "method": "POST",
      "path": "/api/dashboard/todos",
      "group": "dashboard",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireDashboardWrite",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "text": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 240
            },
            "priority": {
              "type": "string",
              "enum": [
                "Low",
                "Normal",
                "High",
                "Urgent"
              ],
              "optional": true
            },
            "dueDate": {
              "type": "string",
              "optional": true,
              "extraValidation": true,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-dashboard-todos-id",
      "method": "DELETE",
      "path": "/api/dashboard/todos/:id",
      "group": "dashboard",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireDashboardWrite",
        "additionalScope": false
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-dashboard-todos-id",
      "method": "PATCH",
      "path": "/api/dashboard/todos/:id",
      "group": "dashboard",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireDashboardWrite",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "text": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 240
            },
            "completed": {
              "type": "boolean",
              "optional": true
            },
            "priority": {
              "type": "string",
              "enum": [
                "Low",
                "Normal",
                "High",
                "Urgent"
              ],
              "optional": true
            },
            "dueDate": {
              "type": "string",
              "optional": true,
              "extraValidation": true,
              "nullable": true
            },
            "sortOrder": {
              "type": "number",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-dashboard-work-queue-complete",
      "method": "POST",
      "path": "/api/dashboard/work-queue/complete",
      "group": "dashboard",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireWorkQueue",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "taskType": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-events",
      "method": "GET",
      "path": "/api/events",
      "group": "events",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "inline role guard",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-landers",
      "method": "GET",
      "path": "/api/landers",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-landers",
      "method": "POST",
      "path": "/api/landers",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "campaignId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "nullable": true
            },
            "name": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 120
            },
            "slug": {
              "type": "string",
              "optional": true,
              "max": 60
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-landers-landerId",
      "method": "GET",
      "path": "/api/landers/:landerId",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-landers-landerId",
      "method": "PATCH",
      "path": "/api/landers/:landerId",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 120
            },
            "slug": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 60
            },
            "status": {
              "type": "string",
              "enum": [
                "live",
                "paused",
                "archived"
              ],
              "optional": true
            },
            "delivery": {
              "type": "object",
              "properties": {
                "workflowId": {
                  "unresolved": true,
                  "optional": true
                },
                "workflowName": {
                  "unresolved": true,
                  "optional": true
                },
                "calendarId": {
                  "unresolved": true,
                  "optional": true
                },
                "calendarName": {
                  "unresolved": true,
                  "optional": true
                },
                "calendarUrl": {
                  "type": "string",
                  "optional": true,
                  "max": 500,
                  "extraValidation": true,
                  "nullable": true
                },
                "tags": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "optional": false,
                    "min": 1,
                    "max": 60
                  },
                  "optional": true,
                  "max": 10
                }
              },
              "optional": true,
              "unresolved": false,
              "strict": true
            },
            "tracking": {
              "type": "object",
              "properties": {
                "metaPixelId": {
                  "type": "string",
                  "optional": false,
                  "max": 40,
                  "nullable": true
                }
              },
              "optional": true,
              "unresolved": false,
              "strict": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-landers-landerId-analytics",
      "method": "GET",
      "path": "/api/landers/:landerId/analytics",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            }
          },
          "optional": false,
          "unresolved": false
        },
        "query": {
          "type": "object",
          "properties": {
            "from": {
              "type": "string",
              "optional": true,
              "format": "date-time"
            },
            "to": {
              "type": "string",
              "optional": true,
              "format": "date-time"
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-landers-landerId-assets",
      "method": "GET",
      "path": "/api/landers/:landerId/assets",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-landers-landerId-assets",
      "method": "POST",
      "path": "/api/landers/:landerId/assets",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "fileName": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 200
            },
            "dataUrl": {
              "type": "string",
              "optional": false,
              "min": 20
            },
            "role": {
              "type": "string",
              "enum": [
                "logo",
                "favicon",
                "avatar",
                "poster",
                "image",
                "upload"
              ],
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-landers-landerId-chat",
      "method": "POST",
      "path": "/api/landers/:landerId/chat",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "variantId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 60
            },
            "text": {
              "type": "string",
              "optional": true,
              "max": 20000
            },
            "attachmentAssetIds": {
              "type": "array",
              "items": {
                "type": "string",
                "optional": false,
                "extraValidation": true
              },
              "optional": true,
              "max": 8
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-landers-landerId-delivery",
      "method": "GET",
      "path": "/api/landers/:landerId/delivery",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            }
          },
          "optional": false,
          "unresolved": false
        },
        "query": {
          "type": "object",
          "properties": {
            "variantId": {
              "type": "string",
              "optional": true,
              "max": 60
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-landers-landerId-domain-setup",
      "method": "GET",
      "path": "/api/landers/:landerId/domain-setup",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            },
            "campaignId": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            },
            "roots": {
              "type": "string",
              "optional": true,
              "max": 1300
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        },
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false
            }
          }
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-landers-landerId-domain-setup",
      "method": "POST",
      "path": "/api/landers/:landerId/domain-setup",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            },
            "campaignId": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            },
            "landerId": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            },
            "action": {
              "type": "string",
              "enum": [
                "register",
                "attach",
                "verify"
              ],
              "optional": false
            },
            "root": {
              "type": "string",
              "optional": false,
              "max": 128,
              "extraValidation": true
            },
            "hostname": {
              "type": "string",
              "optional": false,
              "max": 253
            },
            "quoteId": {
              "type": "string",
              "optional": true,
              "max": 150
            },
            "years": {
              "type": "number",
              "enum": [
                1
              ],
              "optional": true
            },
            "autoRenew": {
              "type": "boolean",
              "enum": [
                false
              ],
              "optional": true
            },
            "maxChargeCents": {
              "type": "number",
              "enum": [
                300
              ],
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        },
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false
            }
          }
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-landers-landerId-messages",
      "method": "GET",
      "path": "/api/landers/:landerId/messages",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            }
          },
          "optional": false,
          "unresolved": false
        },
        "query": {
          "type": "object",
          "properties": {
            "after": {
              "type": "string",
              "optional": true,
              "extraValidation": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-landers-landerId-research",
      "method": "GET",
      "path": "/api/landers/:landerId/research",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-landers-landerId-research",
      "method": "POST",
      "path": "/api/landers/:landerId/research",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-landers-landerId-runs",
      "method": "GET",
      "path": "/api/landers/:landerId/runs",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-landers-landerId-runs-runId-cancel",
      "method": "POST",
      "path": "/api/landers/:landerId/runs/:runId/cancel",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            },
            "runId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-landers-landerId-submissions",
      "method": "GET",
      "path": "/api/landers/:landerId/submissions",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-landers-landerId-variants",
      "method": "POST",
      "path": "/api/landers/:landerId/variants",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "fromVariantId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 60
            },
            "name": {
              "type": "string",
              "optional": true,
              "max": 80
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-landers-landerId-variants-variantId",
      "method": "DELETE",
      "path": "/api/landers/:landerId/variants/:variantId",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            },
            "variantId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 60
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-landers-landerId-variants-variantId",
      "method": "PATCH",
      "path": "/api/landers/:landerId/variants/:variantId",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            },
            "variantId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 60
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 80
            },
            "weight": {
              "type": "number",
              "optional": true,
              "min": 0,
              "max": 100
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-landers-landerId-variants-variantId-preview",
      "method": "POST",
      "path": "/api/landers/:landerId/variants/:variantId/preview",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            },
            "variantId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 60
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-landers-landerId-variants-variantId-publish",
      "method": "POST",
      "path": "/api/landers/:landerId/variants/:variantId/publish",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            },
            "variantId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 60
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-landers-landerId-variants-variantId-rollback",
      "method": "POST",
      "path": "/api/landers/:landerId/variants/:variantId/rollback",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            },
            "variantId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 60
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "versionId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-landers-landerId-variants-variantId-versions",
      "method": "POST",
      "path": "/api/landers/:landerId/variants/:variantId/versions",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            },
            "variantId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 60
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "content": {
              "type": "unknown",
              "optional": false
            },
            "note": {
              "type": "string",
              "optional": true,
              "max": 500
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-landers-landerId-versions-versionId",
      "method": "GET",
      "path": "/api/landers/:landerId/versions/:versionId",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "landerId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            },
            "versionId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 40
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-landers-assets-file",
      "method": "GET",
      "path": "/api/landers/assets/:file",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireLanders",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "file": {
              "type": "string",
              "optional": false,
              "max": 200
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-lead-screening-status",
      "method": "POST",
      "path": "/api/lead-screening/status",
      "group": "lead-screening",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-onboarding-clients",
      "method": "GET",
      "path": "/api/onboarding/clients",
      "group": "onboarding",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "partner",
          "staff"
        ],
        "handler": "requireOnboarding",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-onboarding-clients-id",
      "method": "PATCH",
      "path": "/api/onboarding/clients/:id",
      "group": "onboarding",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "partner",
          "staff"
        ],
        "handler": "requireOnboarding",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "contractSigned": {
              "type": "boolean",
              "optional": true,
              "nullable": true
            },
            "reviewCallDate": {
              "type": "string",
              "optional": true
            },
            "kickoffCallDate": {
              "type": "string",
              "optional": true
            },
            "onboardingCallDate": {
              "type": "string",
              "optional": true
            },
            "needsSetter": {
              "type": "string",
              "optional": true
            },
            "ghlAccount": {
              "type": "string",
              "optional": true
            },
            "a2pStatus": {
              "type": "string",
              "optional": true
            },
            "metaAccountName": {
              "type": "string",
              "optional": true
            },
            "adAccountLink": {
              "type": "string",
              "optional": true
            },
            "clientWebsite": {
              "type": "string",
              "optional": true
            },
            "meetingLocation": {
              "type": "string",
              "optional": true
            },
            "targetNiche": {
              "type": "string",
              "optional": true
            },
            "targetAudience": {
              "type": "string",
              "optional": true
            },
            "callTakers": {
              "type": "string",
              "optional": true
            },
            "dailyAdsBudget": {
              "type": "number",
              "optional": true,
              "nullable": true
            },
            "servicesOffered": {
              "type": "string",
              "optional": true
            },
            "completedMeeting": {
              "type": "string",
              "optional": true
            },
            "slackChannelUrl": {
              "type": "string",
              "optional": true,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-onboarding-clients-id-deal-close",
      "method": "GET",
      "path": "/api/onboarding/clients/:id/deal-close",
      "group": "onboarding",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "partner",
          "staff"
        ],
        "handler": "requireOnboarding",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-onboarding-payment-links",
      "method": "GET",
      "path": "/api/onboarding/payment-links",
      "group": "onboarding",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "partner",
          "staff"
        ],
        "handler": "requireOnboarding",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-onboarding-submissions",
      "method": "GET",
      "path": "/api/onboarding/submissions",
      "group": "onboarding",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "partner",
          "staff"
        ],
        "handler": "requireOnboarding",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-payroll-ledger",
      "method": "GET",
      "path": "/api/payroll/ledger",
      "group": "wise",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-public-appointment-reports-token",
      "method": "GET",
      "path": "/api/public/appointment-reports/:token",
      "group": "appointment-reports",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "token": {
              "type": "string",
              "optional": false,
              "min": 20,
              "max": 120,
              "extraValidation": true,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-public-appointment-reports-token",
      "method": "POST",
      "path": "/api/public/appointment-reports/:token",
      "group": "appointment-reports",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "token": {
              "type": "string",
              "optional": false,
              "min": 20,
              "max": 120,
              "extraValidation": true,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "appointmentId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            },
            "status": {
              "type": "string",
              "enum": [
                "no_show",
                "unqualified"
              ],
              "optional": false
            },
            "recordingUrl": {
              "type": "string",
              "optional": true,
              "max": 2000
            },
            "details": {
              "type": "string",
              "optional": true,
              "max": 2000
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-public-client-videos-token",
      "method": "GET",
      "path": "/api/public/client-videos/:token",
      "group": "client-videos",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "token": {
              "type": "string",
              "optional": false,
              "min": 20,
              "max": 120,
              "extraValidation": true,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-public-client-videos-token-analysis",
      "method": "GET",
      "path": "/api/public/client-videos/:token/analysis",
      "group": "client-videos",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "token": {
              "type": "string",
              "optional": false,
              "min": 20,
              "max": 120,
              "extraValidation": true,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-public-client-videos-token-media",
      "method": "GET",
      "path": "/api/public/client-videos/:token/media",
      "group": "client-videos",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "token": {
              "type": "string",
              "optional": false,
              "min": 20,
              "max": 120,
              "extraValidation": true,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-public-client-videos-token-reaction",
      "method": "POST",
      "path": "/api/public/client-videos/:token/reaction",
      "group": "client-videos",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "token": {
              "type": "string",
              "optional": false,
              "min": 20,
              "max": 120,
              "extraValidation": true,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "reaction": {
              "type": "string",
              "enum": [
                "heart",
                "like",
                "fire",
                "clap",
                "celebrate",
                "eyes"
              ],
              "optional": false,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-public-landers-assets-file",
      "method": "GET",
      "path": "/api/public/landers/assets/:file",
      "group": "landers",
      "auth": {
        "boundary": "Server bridge secret; not an agent bearer token",
        "roles": [],
        "handler": "authorize",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "file": {
              "type": "string",
              "optional": false,
              "max": 200
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-public-landers-events",
      "method": "POST",
      "path": "/api/public/landers/events",
      "group": "landers",
      "auth": {
        "boundary": "Server bridge secret; not an agent bearer token",
        "roles": [],
        "handler": "authorize",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-public-landers-resolve",
      "method": "GET",
      "path": "/api/public/landers/resolve",
      "group": "landers",
      "auth": {
        "boundary": "Server bridge secret; not an agent bearer token",
        "roles": [],
        "handler": "authorize",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "site": {
              "type": "string",
              "optional": false,
              "min": 3,
              "max": 260
            },
            "preview": {
              "type": "string",
              "optional": true,
              "max": 2000
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-public-landers-submit",
      "method": "POST",
      "path": "/api/public/landers/submit",
      "group": "landers",
      "auth": {
        "boundary": "Server bridge secret; not an agent bearer token",
        "roles": [],
        "handler": "authorize",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-public-sales-payments-token-checkout",
      "method": "POST",
      "path": "/api/public/sales-payments/:token/checkout",
      "group": "sales",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "token": {
              "type": "string",
              "optional": false,
              "min": 20,
              "max": 200,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-public-sops-token",
      "method": "GET",
      "path": "/api/public/sops/:token",
      "group": "sops",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "token": {
              "type": "string",
              "optional": false,
              "min": 20,
              "max": 120,
              "extraValidation": true,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-public-sops-token-media-mediaId",
      "method": "GET",
      "path": "/api/public/sops/:token/media/:mediaId",
      "group": "sops",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "token": {
              "type": "string",
              "optional": false,
              "min": 20,
              "max": 120,
              "extraValidation": true,
              "sensitive": true
            },
            "mediaId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-public-sops-token-media-mediaId-analysis",
      "method": "GET",
      "path": "/api/public/sops/:token/media/:mediaId/analysis",
      "group": "sops",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "token": {
              "type": "string",
              "optional": false,
              "min": 20,
              "max": 120,
              "extraValidation": true,
              "sensitive": true
            },
            "mediaId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-public-sops-token-reaction",
      "method": "POST",
      "path": "/api/public/sops/:token/reaction",
      "group": "sops",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "token": {
              "type": "string",
              "optional": false,
              "min": 20,
              "max": 120,
              "extraValidation": true,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "reaction": {
              "type": "string",
              "enum": [
                "heart",
                "like",
                "fire",
                "clap",
                "celebrate",
                "eyes"
              ],
              "optional": false,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-recorder-sessions",
      "method": "POST",
      "path": "/api/recorder/sessions",
      "group": "recorder",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireStaff",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "sop"
                  ],
                  "optional": false
                },
                "documentId": {
                  "type": "string",
                  "optional": false,
                  "min": 1,
                  "max": 64
                },
                "insertionPosition": {
                  "type": "integer",
                  "optional": true,
                  "min": 0,
                  "nullable": true
                }
              },
              "optional": false,
              "unresolved": false,
              "strict": true
            },
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "client_video"
                  ],
                  "optional": false
                },
                "clientId": {
                  "type": "string",
                  "optional": false,
                  "min": 1,
                  "max": 64
                },
                "videoId": {
                  "type": "string",
                  "optional": false,
                  "min": 1,
                  "max": 64
                }
              },
              "optional": false,
              "unresolved": false,
              "strict": true
            }
          ],
          "unresolved": false,
          "optional": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-recorder-sessions-id-cancel",
      "method": "POST",
      "path": "/api/recorder/sessions/:id/cancel",
      "group": "recorder",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireStaff",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-recorder-sessions-id-consume",
      "method": "POST",
      "path": "/api/recorder/sessions/:id/consume",
      "group": "recorder",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireStaff",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-recorder-sessions-id-extension",
      "method": "GET",
      "path": "/api/recorder/sessions/:id/extension",
      "group": "recorder",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-recorder-sessions-id-extension-cancel",
      "method": "POST",
      "path": "/api/recorder/sessions/:id/extension-cancel",
      "group": "recorder",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-recorder-sessions-id-finalize",
      "method": "POST",
      "path": "/api/recorder/sessions/:id/finalize",
      "group": "recorder",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-recorder-sessions-id-upload",
      "method": "POST",
      "path": "/api/recorder/sessions/:id/upload",
      "group": "recorder",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "fileName": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 180
            },
            "mimeType": {
              "type": "string",
              "enum": [
                "video/mp4",
                "video/quicktime",
                "video/webm"
              ],
              "optional": false
            },
            "sizeBytes": {
              "type": "integer",
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-recorder-sessions-pending",
      "method": "GET",
      "path": "/api/recorder/sessions/pending",
      "group": "recorder",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireStaff",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "sop"
                  ],
                  "optional": false
                },
                "documentId": {
                  "type": "string",
                  "optional": false,
                  "min": 1,
                  "max": 64
                },
                "insertionPosition": {
                  "type": "integer",
                  "optional": true,
                  "min": 0,
                  "nullable": true
                }
              },
              "optional": false,
              "unresolved": false,
              "strict": true
            },
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "client_video"
                  ],
                  "optional": false
                },
                "clientId": {
                  "type": "string",
                  "optional": false,
                  "min": 1,
                  "max": 64
                },
                "videoId": {
                  "type": "string",
                  "optional": false,
                  "min": 1,
                  "max": 64
                }
              },
              "optional": false,
              "unresolved": false,
              "strict": true
            }
          ],
          "unresolved": false,
          "optional": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sales-library-coverage",
      "method": "GET",
      "path": "/api/sales-library/coverage",
      "group": "sales-library",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "cursor": {
              "type": "string",
              "optional": true,
              "max": 4000
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-sales-library-exceptions",
      "method": "PATCH",
      "path": "/api/sales-library/exceptions",
      "group": "sales-library",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "exceptions": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "accountId": {
                    "type": "string",
                    "optional": false,
                    "extraValidation": true
                  },
                  "campaignId": {
                    "type": "string",
                    "optional": false,
                    "extraValidation": true
                  },
                  "evidence": {
                    "type": "string",
                    "optional": false,
                    "min": 12,
                    "max": 3000
                  }
                },
                "optional": false,
                "unresolved": false
              },
              "optional": false,
              "max": 500
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-sales-library-items-id",
      "method": "PATCH",
      "path": "/api/sales-library/items/:id",
      "group": "sales-library",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 200
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "hidden": {
              "type": "boolean",
              "optional": true
            },
            "reason": {
              "type": "string",
              "optional": false,
              "min": 3,
              "max": 2000
            },
            "allowOutlier": {
              "type": "boolean",
              "optional": true
            },
            "trackingIssue": {
              "type": "string",
              "optional": true,
              "max": 2000,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sales-library-items-id-capture",
      "method": "POST",
      "path": "/api/sales-library/items/:id/capture",
      "group": "sales-library",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 200
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "image": {
              "type": "string",
              "optional": false,
              "max": 22000000
            },
            "sourceUrl": {
              "type": "string",
              "optional": false,
              "format": "url",
              "max": 4000
            },
            "observed": {
              "type": "object",
              "properties": {
                "spend": {
                  "type": "number",
                  "optional": false
                },
                "leads": {
                  "type": "number",
                  "optional": false
                },
                "cpl": {
                  "type": "number",
                  "optional": false
                },
                "since": {
                  "type": "string",
                  "optional": false,
                  "extraValidation": true
                },
                "until": {
                  "type": "string",
                  "optional": false,
                  "extraValidation": true
                },
                "campaignName": {
                  "type": "string",
                  "optional": false,
                  "min": 1,
                  "max": 1000
                },
                "leadType": {
                  "type": "string",
                  "optional": false,
                  "min": 1,
                  "max": 100
                }
              },
              "optional": false,
              "unresolved": false
            },
            "crop": {
              "type": "object",
              "properties": {
                "left": {
                  "type": "integer",
                  "optional": false
                },
                "top": {
                  "type": "integer",
                  "optional": false
                },
                "width": {
                  "type": "integer",
                  "optional": false
                },
                "height": {
                  "type": "integer",
                  "optional": false
                }
              },
              "optional": true,
              "unresolved": false
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sales-library-items-id-media",
      "method": "GET",
      "path": "/api/sales-library/items/:id/media",
      "group": "sales-library",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 200
            }
          },
          "optional": false,
          "unresolved": false
        },
        "query": {
          "type": "object",
          "properties": {
            "thumbnail": {
              "type": "string",
              "optional": true
            },
            "original": {
              "type": "string",
              "optional": true
            },
            "download": {
              "type": "string",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sales-library-refresh",
      "method": "POST",
      "path": "/api/sales-library/refresh",
      "group": "sales-library",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sales-library-search",
      "method": "GET",
      "path": "/api/sales-library/search",
      "group": "sales-library",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "q": {
              "type": "string",
              "optional": true,
              "max": 4000
            },
            "kind": {
              "type": "string",
              "enum": [
                "all",
                "proof",
                "creative",
                "landing_page"
              ],
              "optional": true
            },
            "clientId": {
              "type": "string",
              "optional": true,
              "max": 200
            },
            "niche": {
              "type": "string",
              "optional": true,
              "max": 200
            },
            "period": {
              "type": "string",
              "enum": [
                "maximum",
                "best_30d"
              ],
              "optional": true
            },
            "cursor": {
              "type": "string",
              "optional": true,
              "max": 200
            },
            "limit": {
              "type": "integer",
              "optional": true,
              "min": 1,
              "max": 60
            },
            "includeHidden": {
              "type": "string",
              "enum": [
                "1",
                "0"
              ],
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sales-library-status",
      "method": "GET",
      "path": "/api/sales-library/status",
      "group": "sales-library",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sales-calls",
      "method": "GET",
      "path": "/api/sales/calls",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner",
          "sales"
        ],
        "handler": "requireSalesFloor",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "refresh": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "optional": true,
              "extraValidation": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sales-calls-callId",
      "method": "GET",
      "path": "/api/sales/calls/:callId",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner",
          "sales"
        ],
        "handler": "requireSalesFloor",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "callId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-sales-calls-callId",
      "method": "PATCH",
      "path": "/api/sales/calls/:callId",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner",
          "sales"
        ],
        "handler": "requireSalesFloor",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "callId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "note": {
              "type": "string",
              "optional": true,
              "max": 10000
            },
            "pifAmount": {
              "type": "number",
              "optional": true,
              "min": 0,
              "max": 10000000,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sales-calls-callId-review",
      "method": "POST",
      "path": "/api/sales/calls/:callId/review",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner",
          "sales"
        ],
        "handler": "requireSalesFloor",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "callId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sales-deal-close",
      "method": "POST",
      "path": "/api/sales/deal-close",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner",
          "sales"
        ],
        "handler": "requireSalesFloor",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "clientName": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "ghlContactEmails": {
              "type": "array",
              "items": {
                "type": "string",
                "optional": false,
                "format": "email"
              },
              "optional": true,
              "max": 20
            },
            "businessType": {
              "type": "string",
              "optional": true
            },
            "businessDescription": {
              "type": "string",
              "optional": true
            },
            "mainOffer": {
              "type": "string",
              "optional": true
            },
            "needsSetter": {
              "type": "string",
              "optional": true
            },
            "hasGhl": {
              "type": "string",
              "optional": true
            },
            "soldOffer": {
              "type": "string",
              "optional": true
            },
            "promisedResults": {
              "type": "string",
              "optional": true
            },
            "specialNotes": {
              "type": "string",
              "optional": true
            },
            "contractSigned": {
              "type": "boolean",
              "optional": true,
              "nullable": true
            },
            "setupFee": {
              "type": "number",
              "optional": true,
              "nullable": true
            },
            "setupFeeCollected": {
              "type": "number",
              "optional": true,
              "nullable": true
            },
            "monthlyRetainer": {
              "type": "number",
              "optional": true,
              "nullable": true
            },
            "onboardingCallDate": {
              "type": "string",
              "optional": true
            },
            "paymentPlanId": {
              "type": "string",
              "optional": true,
              "min": 1,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sales-deal-close-prefill",
      "method": "POST",
      "path": "/api/sales/deal-close/prefill",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner",
          "sales"
        ],
        "handler": "requireSalesFloor",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "emails": {
              "type": "array",
              "items": {
                "type": "string",
                "optional": false
              },
              "optional": false,
              "min": 1,
              "max": 10
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sales-deal-close-recent",
      "method": "GET",
      "path": "/api/sales/deal-close/recent",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner",
          "sales"
        ],
        "handler": "requireSalesFloor",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sales-payments",
      "method": "GET",
      "path": "/api/sales/payments",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner",
          "sales"
        ],
        "handler": "requireSales",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "filter": {
              "type": "string",
              "enum": [
                "outstanding",
                "paid",
                "overdue",
                "voided",
                "refunded",
                "all"
              ],
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sales-payments-candidates",
      "method": "GET",
      "path": "/api/sales/payments/candidates",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner",
          "sales"
        ],
        "handler": "requireSales",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sales-payments-candidates-dealCloseId-payer-email",
      "method": "GET",
      "path": "/api/sales/payments/candidates/:dealCloseId/payer-email",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner",
          "sales"
        ],
        "handler": "requireSales",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "dealCloseId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sales-payments-map-stripe",
      "method": "POST",
      "path": "/api/sales/payments/map-stripe",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "dealCloseId": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "stripeChargeId": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            },
            "reassign": {
              "type": "boolean",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sales-payments-plans",
      "method": "POST",
      "path": "/api/sales/payments/plans",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner",
          "sales"
        ],
        "handler": "requireSales",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "dealCloseId": {
              "type": "string",
              "optional": true,
              "min": 1,
              "nullable": true
            },
            "clientName": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 200
            },
            "setupFeeCents": {
              "type": "integer",
              "optional": true,
              "min": 50
            },
            "payerEmail": {
              "type": "string",
              "optional": false,
              "format": "email"
            },
            "mode": {
              "type": "string",
              "enum": [
                "deposit",
                "balance",
                "split"
              ],
              "optional": false
            },
            "payments": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "amountCents": {
                    "type": "integer",
                    "optional": false,
                    "min": 50
                  },
                  "dueDate": {
                    "type": "string",
                    "optional": true,
                    "nullable": true
                  }
                },
                "optional": false,
                "unresolved": false,
                "strict": true
              },
              "optional": false,
              "min": 1,
              "max": 12
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sales-payments-plans-planId-requests",
      "method": "POST",
      "path": "/api/sales/payments/plans/:planId/requests",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner",
          "sales"
        ],
        "handler": "requireSales",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "planId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "balance",
                "installment"
              ],
              "optional": false
            },
            "amountCents": {
              "type": "integer",
              "optional": false,
              "min": 50
            },
            "dueDate": {
              "type": "string",
              "optional": true,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sales-payments-reconcile",
      "method": "POST",
      "path": "/api/sales/payments/reconcile",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sales-payments-requests-requestId-replace",
      "method": "POST",
      "path": "/api/sales/payments/requests/:requestId/replace",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner",
          "sales"
        ],
        "handler": "requireSales",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "amountCents": {
              "type": "integer",
              "optional": false,
              "min": 50
            },
            "dueDate": {
              "type": "string",
              "optional": true,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        },
        "params": {
          "type": "object",
          "properties": {
            "requestId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sales-payments-requests-requestId-retry-notification",
      "method": "POST",
      "path": "/api/sales/payments/requests/:requestId/retry-notification",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "requestId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sales-payments-requests-requestId-void",
      "method": "POST",
      "path": "/api/sales/payments/requests/:requestId/void",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner",
          "sales"
        ],
        "handler": "requireSales",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "requestId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sales-scorecard",
      "method": "GET",
      "path": "/api/sales/scorecard",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner",
          "sales"
        ],
        "handler": "requireScorecard",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "from": {
              "type": "string",
              "optional": true
            },
            "to": {
              "type": "string",
              "optional": true
            },
            "closerId": {
              "type": "string",
              "optional": true
            },
            "calendar": {
              "oneOf": [
                {
                  "type": "string",
                  "optional": false
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "optional": false
                  },
                  "optional": false
                }
              ],
              "unresolved": false,
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-sales-scorecard-calls-callId",
      "method": "PATCH",
      "path": "/api/sales/scorecard/calls/:callId",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner",
          "sales"
        ],
        "handler": "requireScorecard",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "callId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "outcome": {
              "type": "string",
              "enum": [
                "showed",
                "no_show",
                "rescheduled",
                "cancelled",
                "unknown"
              ],
              "optional": true
            },
            "qualified": {
              "type": "boolean",
              "optional": true,
              "nullable": true
            },
            "offerMade": {
              "type": "boolean",
              "optional": true
            },
            "closed": {
              "type": "boolean",
              "optional": true
            },
            "cashCollected": {
              "type": "number",
              "optional": true,
              "min": 0,
              "max": 10000000,
              "nullable": true
            },
            "revenue": {
              "type": "number",
              "optional": true,
              "min": 0,
              "max": 10000000,
              "nullable": true
            },
            "closerTeamMemberId": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 64,
              "nullable": true
            },
            "recordingUrl": {
              "type": "string",
              "optional": true,
              "format": "url",
              "max": 500,
              "extraValidation": true,
              "nullable": true
            },
            "notes": {
              "type": "string",
              "optional": true,
              "max": 2000,
              "nullable": true
            },
            "reset": {
              "type": "boolean",
              "enum": [
                true
              ],
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sales-scorecard-export-csv",
      "method": "GET",
      "path": "/api/sales/scorecard/export.csv",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner",
          "sales"
        ],
        "handler": "requireScorecard",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "from": {
              "type": "string",
              "optional": true
            },
            "to": {
              "type": "string",
              "optional": true
            },
            "closerId": {
              "type": "string",
              "optional": true
            },
            "calendar": {
              "oneOf": [
                {
                  "type": "string",
                  "optional": false
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "optional": false
                  },
                  "optional": false
                }
              ],
              "unresolved": false,
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sales-scorecard-refresh",
      "method": "POST",
      "path": "/api/sales/scorecard/refresh",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "inline role guard",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sales-scorecard-view",
      "method": "GET",
      "path": "/api/sales/scorecard/view",
      "group": "sales",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "partner",
          "sales"
        ],
        "handler": "requireScorecard",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "year": {
              "type": "integer",
              "optional": false,
              "min": 2020,
              "max": 2100
            },
            "month": {
              "type": "integer",
              "optional": true,
              "min": 1,
              "max": 12
            },
            "day": {
              "type": "string",
              "optional": true,
              "extraValidation": true
            },
            "closerId": {
              "type": "string",
              "optional": true,
              "max": 64
            },
            "calendar": {
              "oneOf": [
                {
                  "type": "string",
                  "optional": false
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "optional": false
                  },
                  "optional": false
                }
              ],
              "unresolved": false,
              "optional": true
            },
            "calendars": {
              "type": "string",
              "enum": [
                "all"
              ],
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-setter-scripts",
      "method": "GET",
      "path": "/api/setter-scripts",
      "group": "setter-scripts",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "sales",
          "setter"
        ],
        "handler": "read",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "format": {
              "type": "string",
              "enum": [
                "index"
              ],
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-setter-scripts-clientId",
      "method": "GET",
      "path": "/api/setter-scripts/:clientId",
      "group": "setter-scripts",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "sales",
          "setter"
        ],
        "handler": "read",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-setter-scripts-clientId",
      "method": "PATCH",
      "path": "/api/setter-scripts/:clientId",
      "group": "setter-scripts",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": "write",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "revision": {
              "type": "integer",
              "optional": false
            },
            "offers": {
              "type": "array",
              "items": {
                "unresolved": true
              },
              "optional": true,
              "max": 30
            },
            "aliases": {
              "type": "array",
              "items": {
                "type": "string",
                "optional": false,
                "min": 1,
                "max": 150
              },
              "optional": true,
              "max": 15
            },
            "callingHold": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean",
                  "optional": false
                },
                "reason": {
                  "type": "string",
                  "optional": false,
                  "max": 600
                }
              },
              "optional": true,
              "unresolved": false,
              "strict": true,
              "extraValidation": true
            },
            "mappings": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "campaignId": {
                    "type": "string",
                    "optional": false,
                    "max": 100
                  },
                  "metaCampaignIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "optional": false,
                      "extraValidation": true
                    },
                    "optional": false,
                    "max": 30
                  },
                  "driveDocumentIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "optional": false,
                      "extraValidation": true
                    },
                    "optional": false,
                    "max": 10
                  }
                },
                "optional": false,
                "unresolved": false,
                "strict": true
              },
              "optional": true,
              "max": 30
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        },
        "params": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false
            }
          }
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-setter-scripts-clientId-creatives",
      "method": "GET",
      "path": "/api/setter-scripts/:clientId/creatives",
      "group": "setter-scripts",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "sales",
          "setter"
        ],
        "handler": "read",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-setter-scripts-clientId-history",
      "method": "GET",
      "path": "/api/setter-scripts/:clientId/history",
      "group": "setter-scripts",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": "write",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false
            }
          }
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-setter-scripts-clientId-refresh",
      "method": "POST",
      "path": "/api/setter-scripts/:clientId/refresh",
      "group": "setter-scripts",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": "write",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false
            }
          }
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-setter-scripts-clientId-restore",
      "method": "POST",
      "path": "/api/setter-scripts/:clientId/restore",
      "group": "setter-scripts",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": "write",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "revision": {
              "type": "integer",
              "optional": false
            },
            "revisionId": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        },
        "params": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false
            }
          }
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-setter-scripts-clientId-review",
      "method": "POST",
      "path": "/api/setter-scripts/:clientId/review",
      "group": "setter-scripts",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": "write",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "revision": {
              "type": "integer",
              "optional": false
            },
            "action": {
              "type": "string",
              "enum": [
                "approve",
                "reject",
                "resume_auto"
              ],
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        },
        "params": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false
            }
          }
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-setter-scripts-config",
      "method": "GET",
      "path": "/api/setter-scripts/config",
      "group": "setter-scripts",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "sales",
          "setter"
        ],
        "handler": "read",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-setters-alerts-retry",
      "method": "POST",
      "path": "/api/setters/alerts/retry",
      "group": "setters",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-setters-alerts-status",
      "method": "GET",
      "path": "/api/setters/alerts/status",
      "group": "setters",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-setters-board",
      "method": "GET",
      "path": "/api/setters/board",
      "group": "setters",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "sales",
          "setter"
        ],
        "handler": "requireBoard",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-setters-refresh",
      "method": "POST",
      "path": "/api/setters/refresh",
      "group": "setters",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-settings-agency",
      "method": "GET",
      "path": "/api/settings/agency",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireUser",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-settings-agency",
      "method": "PATCH",
      "path": "/api/settings/agency",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "agencyName": {
              "type": "string",
              "optional": true
            },
            "logoUrl": {
              "type": "string",
              "optional": true
            },
            "themeColor": {
              "type": "string",
              "optional": true,
              "extraValidation": true
            },
            "timezone": {
              "type": "string",
              "optional": true
            },
            "reportTimezone": {
              "type": "string",
              "optional": true
            },
            "debugModeEnabled": {
              "type": "boolean",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-settings-agency-logo",
      "method": "POST",
      "path": "/api/settings/agency/logo",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "fileName": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 180
            },
            "dataUrl": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-settings-audit-log",
      "method": "GET",
      "path": "/api/settings/audit-log",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": true
            },
            "source": {
              "type": "string",
              "enum": [
                "manual",
                "webhook",
                "import",
                "stripe"
              ],
              "optional": true
            },
            "actorEmail": {
              "type": "string",
              "optional": true
            },
            "field": {
              "type": "string",
              "optional": true
            },
            "cursor": {
              "type": "string",
              "optional": true
            },
            "limit": {
              "type": "integer",
              "optional": true,
              "max": 100
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-settings-integrations",
      "method": "GET",
      "path": "/api/settings/integrations",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-settings-integrations-anthropic",
      "method": "GET",
      "path": "/api/settings/integrations/anthropic",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requirePlatformAdmin",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-settings-integrations-anthropic",
      "method": "PATCH",
      "path": "/api/settings/integrations/anthropic",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requirePlatformAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "apiKey": {
              "type": "string",
              "optional": true,
              "min": 20,
              "max": 400,
              "sensitive": true
            },
            "clearApiKey": {
              "type": "boolean",
              "optional": true,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-settings-integrations-anthropic-recheck",
      "method": "POST",
      "path": "/api/settings/integrations/anthropic/recheck",
      "group": "landers",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requirePlatformAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-settings-integrations-assemblyai",
      "method": "PATCH",
      "path": "/api/settings/integrations/assemblyai",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "apiKey": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 5000,
              "sensitive": true
            },
            "clearApiKey": {
              "type": "boolean",
              "optional": true,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-settings-integrations-assemblyai-recheck",
      "method": "POST",
      "path": "/api/settings/integrations/assemblyai/recheck",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-settings-integrations-auphonic",
      "method": "PATCH",
      "path": "/api/settings/integrations/auphonic",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "apiKey": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 5000,
              "sensitive": true
            },
            "clearApiKey": {
              "type": "boolean",
              "optional": true,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-settings-integrations-auphonic-recheck",
      "method": "POST",
      "path": "/api/settings/integrations/auphonic/recheck",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-settings-integrations-discord",
      "method": "PATCH",
      "path": "/api/settings/integrations/discord",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "notificationsEnabled": {
              "type": "boolean",
              "optional": true
            },
            "callAlertsEnabled": {
              "type": "boolean",
              "optional": true
            },
            "taskAlertsEnabled": {
              "type": "boolean",
              "optional": true
            },
            "ticketAlertsEnabled": {
              "type": "boolean",
              "optional": true
            },
            "leadDeliveryAlertsEnabled": {
              "type": "boolean",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-settings-integrations-discord-provision",
      "method": "POST",
      "path": "/api/settings/integrations/discord/provision",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-settings-integrations-discord-reconcile",
      "method": "POST",
      "path": "/api/settings/integrations/discord/reconcile",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-settings-integrations-fathom-refresh",
      "method": "POST",
      "path": "/api/settings/integrations/fathom/refresh",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-settings-integrations-ghl",
      "method": "PATCH",
      "path": "/api/settings/integrations/ghl",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "locationId": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 100
            },
            "privateKey": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 5000
            },
            "clearStoredCredentials": {
              "type": "boolean",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-settings-integrations-ghl-sync",
      "method": "POST",
      "path": "/api/settings/integrations/ghl/sync",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-settings-integrations-google-drive",
      "method": "DELETE",
      "path": "/api/settings/integrations/google-drive",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Destructive mutation",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-settings-integrations-google-drive",
      "method": "PATCH",
      "path": "/api/settings/integrations/google-drive",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "activeParentFolderId": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 200
            },
            "churnedParentFolderId": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 200
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-settings-integrations-google-drive-callback",
      "method": "GET",
      "path": "/api/settings/integrations/google-drive/callback",
      "group": "settings",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string",
              "optional": true,
              "min": 1
            },
            "state": {
              "type": "string",
              "optional": true,
              "min": 1
            },
            "error": {
              "type": "string",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-settings-integrations-google-drive-connect",
      "method": "POST",
      "path": "/api/settings/integrations/google-drive/connect",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-settings-integrations-google-drive-reconcile-churned",
      "method": "POST",
      "path": "/api/settings/integrations/google-drive/reconcile-churned",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-settings-integrations-google-drive-refresh",
      "method": "POST",
      "path": "/api/settings/integrations/google-drive/refresh",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-settings-integrations-google-places",
      "method": "GET",
      "path": "/api/settings/integrations/google-places",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requirePlatformAdmin",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-settings-integrations-google-places",
      "method": "PATCH",
      "path": "/api/settings/integrations/google-places",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requirePlatformAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "apiKey": {
              "type": "string",
              "optional": true,
              "min": 10,
              "max": 5000,
              "sensitive": true
            },
            "clearApiKey": {
              "type": "boolean",
              "optional": true,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-settings-integrations-google-places-recheck",
      "method": "POST",
      "path": "/api/settings/integrations/google-places/recheck",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requirePlatformAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-settings-integrations-health",
      "method": "GET",
      "path": "/api/settings/integrations/health",
      "group": "integration-health",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requirePlatformAdmin",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-settings-integrations-health-check",
      "method": "POST",
      "path": "/api/settings/integrations/health/check",
      "group": "integration-health",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requirePlatformAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-settings-integrations-meta",
      "method": "PATCH",
      "path": "/api/settings/integrations/meta",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "userAccessToken": {
              "type": "string",
              "optional": true,
              "sensitive": true
            },
            "clearToken": {
              "type": "boolean",
              "optional": true,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-settings-integrations-meta-status",
      "method": "GET",
      "path": "/api/settings/integrations/meta-status",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer"
        ],
        "handler": "requireMetaStatus",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-settings-integrations-meta-rotate",
      "method": "POST",
      "path": "/api/settings/integrations/meta/rotate",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-settings-integrations-namecheap",
      "method": "PATCH",
      "path": "/api/settings/integrations/namecheap",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "username": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 120
            },
            "apiKey": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 5000,
              "sensitive": true
            },
            "environment": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ],
              "optional": true
            },
            "clearStoredCredentials": {
              "type": "boolean",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-settings-integrations-openai",
      "method": "PATCH",
      "path": "/api/settings/integrations/openai",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "apiKey": {
              "type": "string",
              "optional": true,
              "sensitive": true
            },
            "clearApiKey": {
              "type": "boolean",
              "optional": true,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-settings-integrations-slack",
      "method": "PATCH",
      "path": "/api/settings/integrations/slack",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "optional": true
            },
            "botToken": {
              "type": "string",
              "optional": true,
              "sensitive": true
            },
            "clearBotToken": {
              "type": "boolean",
              "optional": true,
              "sensitive": true
            },
            "messageTemplates": {
              "type": "object",
              "properties": {
                "newClientWelcome": {
                  "type": "string",
                  "optional": true,
                  "min": 1,
                  "max": 10000
                },
                "metaAccessLost": {
                  "type": "string",
                  "optional": true,
                  "min": 1,
                  "max": 5000
                },
                "metaPaymentIssue": {
                  "type": "string",
                  "optional": true,
                  "min": 1,
                  "max": 5000
                }
              },
              "optional": true,
              "unresolved": false
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-settings-integrations-slack-test-channel",
      "method": "POST",
      "path": "/api/settings/integrations/slack/test-channel",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": true
            },
            "channel": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-settings-integrations-sosfinder",
      "method": "GET",
      "path": "/api/settings/integrations/sosfinder",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requirePlatformAdmin",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-settings-integrations-sosfinder",
      "method": "PATCH",
      "path": "/api/settings/integrations/sosfinder",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requirePlatformAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "apiKey": {
              "type": "string",
              "optional": true,
              "min": 10,
              "max": 5000,
              "sensitive": true
            },
            "clearApiKey": {
              "type": "boolean",
              "optional": true,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-settings-integrations-sosfinder-recheck",
      "method": "POST",
      "path": "/api/settings/integrations/sosfinder/recheck",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requirePlatformAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-settings-integrations-stripe",
      "method": "PATCH",
      "path": "/api/settings/integrations/stripe",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "secretKey": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 5000,
              "sensitive": true
            },
            "webhookSecret": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 5000,
              "sensitive": true
            },
            "clearStoredCredentials": {
              "type": "boolean",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-settings-integrations-stripe-recheck",
      "method": "POST",
      "path": "/api/settings/integrations/stripe/recheck",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-settings-integrations-vercel",
      "method": "PATCH",
      "path": "/api/settings/integrations/vercel",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "token": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 5000,
              "sensitive": true
            },
            "teamSlug": {
              "type": "string",
              "optional": true,
              "max": 120
            },
            "clearStoredCredentials": {
              "type": "boolean",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-settings-integrations-wise",
      "method": "PATCH",
      "path": "/api/settings/integrations/wise",
      "group": "settings",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "apiToken": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 5000,
              "sensitive": true
            },
            "profileId": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 100
            },
            "clearStoredCredentials": {
              "type": "boolean",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sops",
      "method": "GET",
      "path": "/api/sops",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireReader",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sops",
      "method": "POST",
      "path": "/api/sops",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireEditor",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "categoryId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            },
            "title": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 200
            },
            "summary": {
              "type": "string",
              "optional": true,
              "max": 500
            },
            "body": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "doc"
                  ],
                  "optional": false
                },
                "content": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "unknown",
                      "optional": false
                    },
                    "optional": false
                  },
                  "optional": true
                }
              },
              "optional": true,
              "unresolved": false
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-sops-id",
      "method": "DELETE",
      "path": "/api/sops/:id",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireEditor",
        "additionalScope": false
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-sops-id",
      "method": "PATCH",
      "path": "/api/sops/:id",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireEditor",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "categoryId": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 64
            },
            "title": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 200
            },
            "summary": {
              "type": "string",
              "optional": true,
              "max": 500
            },
            "body": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "doc"
                  ],
                  "optional": false
                },
                "content": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "unknown",
                      "optional": false
                    },
                    "optional": false
                  },
                  "optional": true
                }
              },
              "optional": true,
              "unresolved": false
            },
            "ownerTeamMemberId": {
              "type": "string",
              "optional": true,
              "max": 64,
              "nullable": true
            },
            "reviewIntervalDays": {
              "type": "integer",
              "optional": true,
              "min": 7,
              "max": 1095
            },
            "sortOrder": {
              "type": "integer",
              "optional": true,
              "min": 0,
              "max": 10000
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sops-id-media-embeds",
      "method": "POST",
      "path": "/api/sops/:id/media/embeds",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireEditor",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 2000
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sops-id-media-images",
      "method": "POST",
      "path": "/api/sops/:id/media/images",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireEditor",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "fileName": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 180
            },
            "dataUrl": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        },
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sops-id-media-videos",
      "method": "POST",
      "path": "/api/sops/:id/media/videos",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireEditor",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "fileName": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 180
            },
            "mimeType": {
              "type": "string",
              "enum": null,
              "optional": false
            },
            "sizeBytes": {
              "type": "integer",
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        },
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sops-id-reviewed",
      "method": "POST",
      "path": "/api/sops/:id/reviewed",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireEditor",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sops-id-revisions",
      "method": "GET",
      "path": "/api/sops/:id/revisions",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireReader",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sops-id-revisions-version",
      "method": "GET",
      "path": "/api/sops/:id/revisions/:version",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireReader",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            },
            "version": {
              "type": "integer",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sops-id-revisions-version-restore",
      "method": "POST",
      "path": "/api/sops/:id/revisions/:version/restore",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireEditor",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            },
            "version": {
              "type": "integer",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sops-id-share",
      "method": "POST",
      "path": "/api/sops/:id/share",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireEditor",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sops-id-status",
      "method": "POST",
      "path": "/api/sops/:id/status",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireEditor",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "draft",
                "published"
              ],
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sops-slug",
      "method": "GET",
      "path": "/api/sops/:slug",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireReader",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "slug": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 120,
              "extraValidation": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sops-categories",
      "method": "GET",
      "path": "/api/sops/categories",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireReader",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sops-categories",
      "method": "POST",
      "path": "/api/sops/categories",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireEditor",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "title": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 120
            },
            "description": {
              "type": "string",
              "optional": true,
              "max": 400
            },
            "icon": {
              "type": "string",
              "enum": [
                "book",
                "rocket",
                "handshake",
                "clipboard",
                "target",
                "megaphone",
                "trending-up",
                "phone",
                "heart",
                "image",
                "globe",
                "wallet",
                "users",
                "settings",
                "shield",
                "sparkles"
              ],
              "optional": true
            },
            "color": {
              "type": "string",
              "enum": [
                "blue",
                "purple",
                "green",
                "orange",
                "yellow",
                "red",
                "tan",
                "brown",
                "mauve",
                "gray"
              ],
              "optional": true
            },
            "audience": {
              "type": "string",
              "enum": [
                "internal",
                "external"
              ],
              "optional": true
            },
            "sortOrder": {
              "type": "integer",
              "optional": true,
              "min": 0,
              "max": 10000
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-sops-categories-id",
      "method": "DELETE",
      "path": "/api/sops/categories/:id",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireEditor",
        "additionalScope": false
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-sops-categories-id",
      "method": "PATCH",
      "path": "/api/sops/categories/:id",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireEditor",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "title": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 120
            },
            "description": {
              "type": "string",
              "optional": true,
              "max": 400
            },
            "icon": {
              "type": "string",
              "enum": [
                "book",
                "rocket",
                "handshake",
                "clipboard",
                "target",
                "megaphone",
                "trending-up",
                "phone",
                "heart",
                "image",
                "globe",
                "wallet",
                "users",
                "settings",
                "shield",
                "sparkles"
              ],
              "optional": true
            },
            "color": {
              "type": "string",
              "enum": [
                "blue",
                "purple",
                "green",
                "orange",
                "yellow",
                "red",
                "tan",
                "brown",
                "mauve",
                "gray"
              ],
              "optional": true
            },
            "audience": {
              "type": "string",
              "enum": [
                "internal",
                "external"
              ],
              "optional": true
            },
            "sortOrder": {
              "type": "integer",
              "optional": true,
              "min": 0,
              "max": 10000
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sops-media-mediaId",
      "method": "GET",
      "path": "/api/sops/media/:mediaId",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireReader",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "mediaId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sops-media-mediaId-analysis",
      "method": "GET",
      "path": "/api/sops/media/:mediaId/analysis",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireReader",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "mediaId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sops-media-mediaId-analysis",
      "method": "POST",
      "path": "/api/sops/media/:mediaId/analysis",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireEditor",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "mediaId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sops-media-mediaId-finalize",
      "method": "POST",
      "path": "/api/sops/media/:mediaId/finalize",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireEditor",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "mediaId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 64
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-sops-reorder",
      "method": "POST",
      "path": "/api/sops/reorder",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireEditor",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "categories"
                  ],
                  "optional": false
                },
                "audience": {
                  "type": "string",
                  "enum": [
                    "internal",
                    "external"
                  ],
                  "optional": false
                },
                "orderedIds": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "optional": false,
                    "min": 1,
                    "max": 64
                  },
                  "optional": false,
                  "max": 1000
                }
              },
              "optional": false,
              "unresolved": false,
              "strict": true
            },
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "documents"
                  ],
                  "optional": false
                },
                "categoryId": {
                  "type": "string",
                  "optional": false,
                  "min": 1,
                  "max": 64
                },
                "orderedIds": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "optional": false,
                    "min": 1,
                    "max": 64
                  },
                  "optional": false,
                  "max": 1000
                }
              },
              "optional": false,
              "unresolved": false,
              "strict": true
            }
          ],
          "unresolved": false,
          "optional": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-sops-search",
      "method": "GET",
      "path": "/api/sops/search",
      "group": "sops",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireReader",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "q": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 200
            },
            "audience": {
              "type": "string",
              "enum": [
                "internal",
                "external"
              ],
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-strategy",
      "method": "GET",
      "path": "/api/strategy",
      "group": "strategy",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner"
        ],
        "handler": "requireStrategy",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "pending",
                "in_review",
                "approved"
              ],
              "optional": true
            },
            "clientId": {
              "type": "string",
              "optional": true
            },
            "niche": {
              "type": "string",
              "enum": null,
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-strategy-campaignId",
      "method": "GET",
      "path": "/api/strategy/:campaignId",
      "group": "strategy",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner"
        ],
        "handler": "requireStrategy",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "campaignId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-strategy-campaignId",
      "method": "PATCH",
      "path": "/api/strategy/:campaignId",
      "group": "strategy",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer"
        ],
        "handler": "requireStrategyWrite",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "campaignId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "note": {
              "type": "string",
              "optional": true,
              "max": 200000
            },
            "icp": {
              "type": "string",
              "optional": true,
              "max": 20000
            },
            "geo": {
              "type": "string",
              "optional": true,
              "max": 500
            },
            "services": {
              "type": "string",
              "optional": true,
              "max": 20000
            },
            "landingPageNotes": {
              "type": "string",
              "optional": true,
              "max": 200000
            },
            "targetNiche": {
              "type": "string",
              "optional": true,
              "max": 500
            },
            "startingDailyAdSpendUsd": {
              "type": "number",
              "optional": true,
              "min": 0,
              "max": 1000000,
              "nullable": true
            },
            "sourceDocUrl": {
              "type": "string",
              "optional": true,
              "max": 2000,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-strategy-campaignId-angles",
      "method": "POST",
      "path": "/api/strategy/:campaignId/angles",
      "group": "strategy",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer"
        ],
        "handler": "requireStrategyWrite",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "campaignId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-strategy-campaignId-angles-angleId",
      "method": "DELETE",
      "path": "/api/strategy/:campaignId/angles/:angleId",
      "group": "strategy",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer"
        ],
        "handler": "requireStrategyWrite",
        "additionalScope": true
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "campaignId": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "angleId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-strategy-campaignId-angles-angleId",
      "method": "PATCH",
      "path": "/api/strategy/:campaignId/angles/:angleId",
      "group": "strategy",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer"
        ],
        "handler": "requireStrategyWrite",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "campaignId": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "angleId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "nicheFamily": {
              "type": "string",
              "enum": null,
              "optional": true
            },
            "nicheDetail": {
              "type": "string",
              "optional": true,
              "max": 500
            },
            "family": {
              "type": "string",
              "enum": null,
              "optional": true
            },
            "headline": {
              "type": "array",
              "items": {
                "type": "string",
                "optional": false,
                "max": 300
              },
              "optional": true
            },
            "rationale": {
              "type": "string",
              "optional": true,
              "max": 20000
            },
            "claimStatus": {
              "type": "string",
              "enum": [
                "verified",
                "calculated",
                "provisional",
                "placeholder"
              ],
              "optional": true
            },
            "status": {
              "type": "string",
              "enum": [
                "proposed",
                "approved"
              ],
              "optional": true
            },
            "creativeRecordIds": {
              "type": "array",
              "items": {
                "type": "string",
                "optional": false,
                "min": 1
              },
              "optional": true,
              "max": 12
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-strategy-campaignId-angles-angleId-creatives",
      "method": "GET",
      "path": "/api/strategy/:campaignId/angles/:angleId/creatives",
      "group": "strategy",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner"
        ],
        "handler": "requireStrategy",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "campaignId": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "angleId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-strategy-campaignId-approve",
      "method": "POST",
      "path": "/api/strategy/:campaignId/approve",
      "group": "strategy",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer"
        ],
        "handler": "requireStrategyWrite",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "campaignId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-strategy-campaignId-stage",
      "method": "POST",
      "path": "/api/strategy/:campaignId/stage",
      "group": "strategy",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer"
        ],
        "handler": "requireStrategyWrite",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "campaignId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "stage": {
              "type": "string",
              "enum": [
                "Not started",
                "In progress",
                "Awaiting approval",
                "Approved"
              ],
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-strategy-campaignId-submit",
      "method": "POST",
      "path": "/api/strategy/:campaignId/submit",
      "group": "strategy",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer"
        ],
        "handler": "requireStrategyWrite",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "campaignId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-team-members",
      "method": "GET",
      "path": "/api/team-members",
      "group": "team",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireTeam",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "agencyId": {
              "type": "string",
              "optional": true,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-team-members",
      "method": "POST",
      "path": "/api/team-members",
      "group": "team",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireTeam",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "memberType": {
              "type": "string",
              "enum": [
                "human",
                "ai"
              ],
              "optional": true
            },
            "agencyId": {
              "type": "string",
              "optional": true,
              "min": 1,
              "nullable": true
            },
            "permissions": {
              "type": "object",
              "properties": {
                "pages": {
                  "type": "object",
                  "properties": {},
                  "unresolved": true,
                  "strict": true,
                  "optional": true
                },
                "canSubmitAppointmentOutcomes": {
                  "type": "boolean",
                  "optional": true
                },
                "canCreateTickets": {
                  "type": "boolean",
                  "optional": true
                },
                "canCommentOnTickets": {
                  "type": "boolean",
                  "optional": true
                }
              },
              "optional": true,
              "unresolved": false,
              "strict": true
            },
            "workspaceAdmin": {
              "type": "boolean",
              "optional": true
            },
            "name": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "email": {
              "type": "string",
              "optional": true,
              "format": "email"
            },
            "role": {
              "type": "string",
              "enum": [
                "admin",
                "sales",
                "mediabuyer",
                "csm",
                "staff",
                "setter",
                "partner"
              ],
              "optional": false
            },
            "status": {
              "type": "string",
              "enum": [
                "active",
                "offboarded"
              ],
              "optional": true
            },
            "title": {
              "type": "string",
              "optional": true,
              "nullable": true
            },
            "description": {
              "type": "string",
              "optional": true,
              "nullable": true
            },
            "avatarUrl": {
              "type": "string",
              "optional": true,
              "nullable": true
            },
            "slackProfileUrl": {
              "type": "string",
              "optional": true,
              "nullable": true
            },
            "slackMemberId": {
              "type": "string",
              "optional": true,
              "extraValidation": true,
              "nullable": true
            },
            "discordUserId": {
              "type": "string",
              "optional": true,
              "extraValidation": true,
              "nullable": true
            },
            "fathomApiKey": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 1000,
              "sensitive": true
            },
            "fathomWebhookSecret": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 1000,
              "sensitive": true
            },
            "monthlySalaryUsd": {
              "type": "number",
              "optional": true,
              "nullable": true
            },
            "payrollStartDate": {
              "type": "string",
              "optional": true,
              "nullable": true
            },
            "payrollFrequency": {
              "type": "string",
              "enum": [
                "weekly",
                "biweekly",
                "monthly"
              ],
              "optional": true,
              "nullable": true
            },
            "agentPlatform": {
              "type": "string",
              "enum": [
                "openclaw",
                "codex",
                "claude",
                "custom"
              ],
              "optional": true,
              "nullable": true
            },
            "agentIcon": {
              "type": "string",
              "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"
              ],
              "optional": true,
              "nullable": true
            },
            "agentIconColor": {
              "type": "string",
              "enum": [
                "brand",
                "blue",
                "teal",
                "green",
                "amber",
                "orange",
                "red",
                "pink",
                "violet",
                "slate"
              ],
              "optional": true,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-team-members-id",
      "method": "DELETE",
      "path": "/api/team-members/:id",
      "group": "team",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireTeam",
        "additionalScope": false
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "confirmation": {
              "type": "string",
              "enum": [
                "DELETE"
              ],
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-team-members-id",
      "method": "PATCH",
      "path": "/api/team-members/:id",
      "group": "team",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireTeam",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "optional": true,
              "min": 1
            },
            "email": {
              "type": "string",
              "optional": true,
              "format": "email"
            },
            "role": {
              "type": "string",
              "enum": [
                "admin",
                "sales",
                "mediabuyer",
                "csm",
                "staff",
                "setter",
                "partner"
              ],
              "optional": true
            },
            "status": {
              "type": "string",
              "enum": [
                "active",
                "offboarded"
              ],
              "optional": true
            },
            "title": {
              "type": "string",
              "optional": true,
              "nullable": true
            },
            "description": {
              "type": "string",
              "optional": true,
              "nullable": true
            },
            "avatarUrl": {
              "type": "string",
              "optional": true,
              "nullable": true
            },
            "slackProfileUrl": {
              "type": "string",
              "optional": true,
              "nullable": true
            },
            "slackMemberId": {
              "type": "string",
              "optional": true,
              "extraValidation": true,
              "nullable": true
            },
            "discordUserId": {
              "type": "string",
              "optional": true,
              "extraValidation": true,
              "nullable": true
            },
            "fathomApiKey": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 1000,
              "sensitive": true
            },
            "fathomWebhookSecret": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 1000,
              "sensitive": true
            },
            "clearFathomApiKey": {
              "type": "boolean",
              "optional": true,
              "sensitive": true
            },
            "clearFathomWebhookSecret": {
              "type": "boolean",
              "optional": true,
              "sensitive": true
            },
            "monthlySalaryUsd": {
              "type": "number",
              "optional": true,
              "nullable": true
            },
            "payrollStartDate": {
              "type": "string",
              "optional": true,
              "nullable": true
            },
            "payrollFrequency": {
              "type": "string",
              "enum": [
                "weekly",
                "biweekly",
                "monthly"
              ],
              "optional": true,
              "nullable": true
            },
            "agentPlatform": {
              "type": "string",
              "enum": [
                "openclaw",
                "codex",
                "claude",
                "custom"
              ],
              "optional": true,
              "nullable": true
            },
            "agentIcon": {
              "type": "string",
              "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"
              ],
              "optional": true,
              "nullable": true
            },
            "agentIconColor": {
              "type": "string",
              "enum": [
                "brand",
                "blue",
                "teal",
                "green",
                "amber",
                "orange",
                "red",
                "pink",
                "violet",
                "slate"
              ],
              "optional": true,
              "nullable": true
            },
            "permissions": {
              "type": "object",
              "properties": {
                "pages": {
                  "type": "object",
                  "properties": {},
                  "unresolved": true,
                  "strict": true,
                  "optional": true
                },
                "canSubmitAppointmentOutcomes": {
                  "type": "boolean",
                  "optional": true
                },
                "canCreateTickets": {
                  "type": "boolean",
                  "optional": true
                },
                "canCommentOnTickets": {
                  "type": "boolean",
                  "optional": true
                }
              },
              "optional": true,
              "unresolved": false,
              "strict": true
            },
            "workspaceAdmin": {
              "type": "boolean",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-team-members-id-agent-credentials",
      "method": "DELETE",
      "path": "/api/team-members/:id/agent-credentials",
      "group": "team",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-team-members-id-agent-credentials-rotate",
      "method": "POST",
      "path": "/api/team-members/:id/agent-credentials/rotate",
      "group": "team",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-team-members-id-avatar",
      "method": "POST",
      "path": "/api/team-members/:id/avatar",
      "group": "team",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireTeam",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "fileName": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 180
            },
            "dataUrl": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-team-members-id-payments-mark-paid",
      "method": "POST",
      "path": "/api/team-members/:id/payments/mark-paid",
      "group": "team",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "dueDate": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-team-members-id-send-invite",
      "method": "POST",
      "path": "/api/team-members/:id/send-invite",
      "group": "team",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireTeam",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-team-members-id-send-password-reset",
      "method": "POST",
      "path": "/api/team-members/:id/send-password-reset",
      "group": "team",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireTeam",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-team-members-payments-paymentId",
      "method": "PATCH",
      "path": "/api/team-members/payments/:paymentId",
      "group": "team",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "paymentId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "paid",
                "skipped",
                "unpaid"
              ],
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-team-members-payroll-upcoming",
      "method": "GET",
      "path": "/api/team-members/payroll/upcoming",
      "group": "team",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-tickets",
      "method": "GET",
      "path": "/api/tickets",
      "group": "tickets",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireTickets",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "view": {
              "type": "string",
              "optional": true
            },
            "q": {
              "type": "string",
              "optional": true
            },
            "status": {
              "type": "string",
              "optional": true
            },
            "assigneeId": {
              "type": "string",
              "optional": true
            },
            "clientId": {
              "type": "string",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-tickets",
      "method": "POST",
      "path": "/api/tickets",
      "group": "tickets",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireTickets",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "title": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "status": {
              "type": "string",
              "enum": [
                "Backlog",
                "In Progress",
                "Waiting On Client",
                "Awaiting Approval",
                "Completed"
              ],
              "optional": true
            },
            "priority": {
              "type": "string",
              "enum": [
                "Low",
                "Normal",
                "High",
                "Urgent"
              ],
              "optional": true
            },
            "description": {
              "type": "string",
              "optional": true
            },
            "bodyDoc": {
              "type": "object",
              "additionalProperties": {
                "type": "unknown",
                "optional": false
              },
              "optional": true,
              "nullable": true
            },
            "bodyText": {
              "type": "string",
              "optional": true
            },
            "clientScope": {
              "type": "string",
              "enum": [
                "none",
                "all",
                "clients"
              ],
              "optional": true
            },
            "clientIds": {
              "type": "array",
              "items": {
                "type": "string",
                "optional": false
              },
              "optional": true
            },
            "campaignIds": {
              "type": "object",
              "additionalProperties": {
                "type": "string",
                "optional": false
              },
              "optional": true
            },
            "assigneeIds": {
              "type": "array",
              "items": {
                "type": "string",
                "optional": false
              },
              "optional": true
            },
            "dueDate": {
              "type": "string",
              "optional": true,
              "nullable": true
            },
            "visibility": {
              "type": "string",
              "enum": [
                "internal",
                "partner"
              ],
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-tickets-id",
      "method": "DELETE",
      "path": "/api/tickets/:id",
      "group": "tickets",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm"
        ],
        "handler": "requireTicketArchive",
        "additionalScope": true
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-tickets-id",
      "method": "GET",
      "path": "/api/tickets/:id",
      "group": "tickets",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireTickets",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false
            }
          }
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-tickets-id",
      "method": "PATCH",
      "path": "/api/tickets/:id",
      "group": "tickets",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireTicketWrite",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "expectedRevision": {
              "type": "integer",
              "optional": true
            },
            "title": {
              "type": "string",
              "optional": true,
              "min": 1
            },
            "status": {
              "type": "string",
              "enum": [
                "Backlog",
                "In Progress",
                "Waiting On Client",
                "Awaiting Approval",
                "Completed"
              ],
              "optional": true
            },
            "priority": {
              "type": "string",
              "enum": [
                "Low",
                "Normal",
                "High",
                "Urgent"
              ],
              "optional": true
            },
            "description": {
              "type": "string",
              "optional": true
            },
            "bodyDoc": {
              "type": "object",
              "additionalProperties": {
                "type": "unknown",
                "optional": false
              },
              "optional": true,
              "nullable": true
            },
            "bodyText": {
              "type": "string",
              "optional": true
            },
            "clientScope": {
              "type": "string",
              "enum": [
                "none",
                "all",
                "clients"
              ],
              "optional": true
            },
            "clientIds": {
              "type": "array",
              "items": {
                "type": "string",
                "optional": false
              },
              "optional": true
            },
            "campaignIds": {
              "type": "object",
              "additionalProperties": {
                "type": "string",
                "optional": false
              },
              "optional": true
            },
            "assigneeIds": {
              "type": "array",
              "items": {
                "type": "string",
                "optional": false
              },
              "optional": true
            },
            "dueDate": {
              "type": "string",
              "optional": true,
              "nullable": true
            },
            "visibility": {
              "type": "string",
              "enum": [
                "internal",
                "partner"
              ],
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-tickets-id-attachments",
      "method": "POST",
      "path": "/api/tickets/:id/attachments",
      "group": "tickets",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireTicketWrite",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "fileName": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "dataUrl": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-tickets-id-comments",
      "method": "POST",
      "path": "/api/tickets/:id/comments",
      "group": "tickets",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireTickets",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "body": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "visibility": {
              "type": "string",
              "enum": [
                "internal",
                "partner"
              ],
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-tickets-id-read",
      "method": "POST",
      "path": "/api/tickets/:id/read",
      "group": "tickets",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireTickets",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-tickets-attachments-id-image",
      "method": "GET",
      "path": "/api/tickets/attachments/:id/image",
      "group": "tickets",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireTickets",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-tickets-board",
      "method": "GET",
      "path": "/api/tickets/board",
      "group": "tickets",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireTickets",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "view": {
              "type": "string",
              "optional": true
            },
            "q": {
              "type": "string",
              "optional": true
            },
            "status": {
              "type": "string",
              "enum": [
                "Backlog",
                "In Progress",
                "Waiting On Client",
                "Awaiting Approval",
                "Completed"
              ],
              "optional": true
            },
            "assigneeId": {
              "type": "string",
              "optional": true
            },
            "clientId": {
              "type": "string",
              "optional": true
            },
            "cursor": {
              "type": "string",
              "optional": true,
              "max": 300
            },
            "limit": {
              "type": "integer",
              "optional": true,
              "min": 1,
              "max": 200
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-tickets-options",
      "method": "GET",
      "path": "/api/tickets/options",
      "group": "tickets",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "csm",
          "mediabuyer",
          "partner",
          "sales",
          "setter",
          "staff"
        ],
        "handler": "requireTickets",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-tools-business-lookup-config",
      "method": "GET",
      "path": "/api/tools/business-lookup/config",
      "group": "business-lookup",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "staff"
        ],
        "handler": "requireLookup",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-tools-business-lookup-search",
      "method": "POST",
      "path": "/api/tools/business-lookup/search",
      "group": "business-lookup",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "staff"
        ],
        "handler": "requireLookup",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-voice-setter-calls",
      "method": "GET",
      "path": "/api/voice-setter/calls",
      "group": "voice-setter",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": true,
      "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"
      }
    },
    {
      "id": "post-api-voice-setter-calls",
      "method": "POST",
      "path": "/api/voice-setter/calls",
      "group": "voice-setter",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        }
      },
      "restricted": true,
      "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"
      }
    },
    {
      "id": "get-api-voice-setter-calls-id-artifacts-name",
      "method": "GET",
      "path": "/api/voice-setter/calls/:id/artifacts/:name",
      "group": "voice-setter",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            },
            "name": {
              "type": "string",
              "enum": [
                "audio.mp3",
                "raw.json",
                "transcript.txt"
              ],
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": true,
      "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"
      }
    },
    {
      "id": "post-api-voice-setter-calls-id-reconcile",
      "method": "POST",
      "path": "/api/voice-setter/calls/:id/reconcile",
      "group": "voice-setter",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "unresolved": true
        }
      },
      "restricted": true,
      "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"
      }
    },
    {
      "id": "post-api-voice-setter-calls-id-reconcile-booking",
      "method": "POST",
      "path": "/api/voice-setter/calls/:id/reconcile-booking",
      "group": "voice-setter",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "appointmentId": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": true,
      "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"
      }
    },
    {
      "id": "post-api-voice-setter-calls-id-sync",
      "method": "POST",
      "path": "/api/voice-setter/calls/:id/sync",
      "group": "voice-setter",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "conversationId": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": true,
      "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"
      }
    },
    {
      "id": "put-api-voice-setter-config",
      "method": "PUT",
      "path": "/api/voice-setter/config",
      "group": "voice-setter",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "contactId": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            },
            "calendarId": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            },
            "ingressNumber": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 500
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": true,
      "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"
      }
    },
    {
      "id": "post-api-voice-setter-disable",
      "method": "POST",
      "path": "/api/voice-setter/disable",
      "group": "voice-setter",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": true,
      "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"
      }
    },
    {
      "id": "post-api-voice-setter-enable",
      "method": "POST",
      "path": "/api/voice-setter/enable",
      "group": "voice-setter",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": true,
      "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"
      }
    },
    {
      "id": "post-api-voice-setter-provision",
      "method": "POST",
      "path": "/api/voice-setter/provision",
      "group": "voice-setter",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": true,
      "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"
      }
    },
    {
      "id": "post-api-voice-setter-reset-suppression",
      "method": "POST",
      "path": "/api/voice-setter/reset-suppression",
      "group": "voice-setter",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "confirmPersonalTestOnly": {
              "type": "boolean",
              "enum": [
                true
              ],
              "optional": false
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": true,
      "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"
      }
    },
    {
      "id": "get-api-voice-setter-status",
      "method": "GET",
      "path": "/api/voice-setter/status",
      "group": "voice-setter",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": true,
      "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"
      }
    },
    {
      "id": "post-api-voice-setter-twilio",
      "method": "POST",
      "path": "/api/voice-setter/twilio",
      "group": "voice-setter",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "accountSid": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            },
            "authToken": {
              "type": "string",
              "optional": false,
              "min": 20,
              "max": 256,
              "sensitive": true
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": true,
      "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"
      }
    },
    {
      "id": "post-api-voice-setter-verify",
      "method": "POST",
      "path": "/api/voice-setter/verify",
      "group": "voice-setter",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": true,
      "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"
      }
    },
    {
      "id": "post-api-voice-setter-workflow-review",
      "method": "POST",
      "path": "/api/voice-setter/workflow-review",
      "group": "voice-setter",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "evidence": {
              "type": "string",
              "optional": false,
              "min": 40,
              "max": 8000
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": true,
      "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"
      }
    },
    {
      "id": "post-api-webhooks-assemblyai-client-videos",
      "method": "POST",
      "path": "/api/webhooks/assemblyai/client-videos",
      "group": "client-videos",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "transcript_id": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "status": {
              "type": "string",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-webhooks-assemblyai-sops",
      "method": "POST",
      "path": "/api/webhooks/assemblyai/sops",
      "group": "sops",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "transcript_id": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "status": {
              "type": "string",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-webhooks-assemblyai-video-editor",
      "method": "POST",
      "path": "/api/webhooks/assemblyai/video-editor",
      "group": "video-editor",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "transcript_id": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "status": {
              "type": "string",
              "optional": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-webhooks-stripe",
      "method": "POST",
      "path": "/api/webhooks/stripe",
      "group": "sales",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-webhooks-stripe-agency-agencyId",
      "method": "POST",
      "path": "/api/webhooks/stripe/agency/:agencyId",
      "group": "sales",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "agencyId": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-website-manager",
      "method": "GET",
      "path": "/api/website-manager",
      "group": "website-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireWebsiteManager",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-website-manager-builds-buildId",
      "method": "GET",
      "path": "/api/website-manager/builds/:buildId",
      "group": "website-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireWebsiteManager",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "buildId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-website-manager-builds-buildId-republish",
      "method": "POST",
      "path": "/api/website-manager/builds/:buildId/republish",
      "group": "website-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireWebsiteManager",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "buildId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-website-manager-builds-buildId-retry",
      "method": "POST",
      "path": "/api/website-manager/builds/:buildId/retry",
      "group": "website-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireWebsiteManager",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "buildId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-website-manager-builds-buildId-screenshots-index",
      "method": "GET",
      "path": "/api/website-manager/builds/:buildId/screenshots/:index",
      "group": "website-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireWebsiteManager",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "buildId": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "index": {
              "type": "integer",
              "optional": false,
              "min": 0,
              "max": 100
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-website-manager-context",
      "method": "GET",
      "path": "/api/website-manager/context",
      "group": "website-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireWebsiteManager",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "campaignId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-website-manager-drive-sources",
      "method": "GET",
      "path": "/api/website-manager/drive-sources",
      "group": "website-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireWebsiteManager",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "campaignId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-website-manager-drive-sources-fileId",
      "method": "GET",
      "path": "/api/website-manager/drive-sources/:fileId",
      "group": "website-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireWebsiteManager",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "query": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "campaignId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "params": {
          "type": "object",
          "properties": {
            "fileId": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-website-manager-sites",
      "method": "POST",
      "path": "/api/website-manager/sites",
      "group": "website-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireWebsiteManager",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "clientId": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "campaignId": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "name": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 120
            },
            "selectedStrategyAngleIds": {
              "type": "array",
              "items": {
                "type": "string",
                "optional": false,
                "min": 1
              },
              "optional": true,
              "max": 250
            },
            "selectedDriveAssetIds": {
              "type": "array",
              "items": {
                "type": "string",
                "optional": false,
                "min": 1
              },
              "optional": true,
              "max": 250
            },
            "clientWebsite": {
              "type": "string",
              "optional": true,
              "max": 2000
            },
            "comparisonWebsiteUrl": {
              "type": "string",
              "optional": true,
              "max": 2000
            },
            "ghlSurveyId": {
              "type": "string",
              "optional": true,
              "max": 2000,
              "nullable": true
            },
            "ghlSurveyName": {
              "type": "string",
              "optional": true,
              "max": 2000,
              "nullable": true
            },
            "ghlSurveyUrl": {
              "type": "string",
              "optional": true,
              "max": 2000
            },
            "ghlCalendarId": {
              "type": "string",
              "optional": true,
              "max": 2000,
              "nullable": true
            },
            "ghlCalendarName": {
              "type": "string",
              "optional": true,
              "max": 2000,
              "nullable": true
            },
            "ghlCalendarUrl": {
              "type": "string",
              "optional": true,
              "max": 2000
            },
            "metaPixelId": {
              "type": "string",
              "optional": true,
              "max": 30
            },
            "supplementalInstructions": {
              "type": "string",
              "optional": true,
              "max": 40000
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "delete-api-website-manager-sites-siteId",
      "method": "DELETE",
      "path": "/api/website-manager/sites/:siteId",
      "group": "website-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireWebsiteManager",
        "additionalScope": true
      },
      "effect": "Destructive mutation",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "siteId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "patch-api-website-manager-sites-siteId",
      "method": "PATCH",
      "path": "/api/website-manager/sites/:siteId",
      "group": "website-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireWebsiteManager",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "siteId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "optional": true,
              "min": 1,
              "max": 120
            },
            "selectedStrategyAngleIds": {
              "type": "array",
              "items": {
                "type": "string",
                "optional": false,
                "min": 1
              },
              "optional": true,
              "max": 250
            },
            "selectedDriveAssetIds": {
              "type": "array",
              "items": {
                "type": "string",
                "optional": false,
                "min": 1
              },
              "optional": true,
              "max": 250
            },
            "clientWebsite": {
              "type": "string",
              "optional": true,
              "max": 2000
            },
            "comparisonWebsiteUrl": {
              "type": "string",
              "optional": true,
              "max": 2000
            },
            "ghlSurveyId": {
              "type": "string",
              "optional": true,
              "max": 2000,
              "nullable": true
            },
            "ghlSurveyName": {
              "type": "string",
              "optional": true,
              "max": 2000,
              "nullable": true
            },
            "ghlSurveyUrl": {
              "type": "string",
              "optional": true,
              "max": 2000
            },
            "ghlCalendarId": {
              "type": "string",
              "optional": true,
              "max": 2000,
              "nullable": true
            },
            "ghlCalendarName": {
              "type": "string",
              "optional": true,
              "max": 2000,
              "nullable": true
            },
            "ghlCalendarUrl": {
              "type": "string",
              "optional": true,
              "max": 2000
            },
            "metaPixelId": {
              "type": "string",
              "optional": true,
              "max": 30
            },
            "supplementalInstructions": {
              "type": "string",
              "optional": true,
              "max": 40000
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true,
          "extraValidation": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-website-manager-sites-siteId-builds",
      "method": "GET",
      "path": "/api/website-manager/sites/:siteId/builds",
      "group": "website-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireWebsiteManager",
        "additionalScope": true
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "siteId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-website-manager-sites-siteId-builds",
      "method": "POST",
      "path": "/api/website-manager/sites/:siteId/builds",
      "group": "website-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin",
          "mediabuyer",
          "staff"
        ],
        "handler": "requireWebsiteManager",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "siteId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-website-manager-sites-siteId-domain",
      "method": "POST",
      "path": "/api/website-manager/sites/:siteId/domain",
      "group": "website-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "siteId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "type": "object",
          "properties": {
            "hostname": {
              "type": "string",
              "optional": false,
              "min": 1,
              "max": 253
            }
          },
          "optional": false,
          "unresolved": false,
          "strict": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-website-manager-sites-siteId-domain-refresh",
      "method": "POST",
      "path": "/api/website-manager/sites/:siteId/domain/refresh",
      "group": "website-manager",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": true
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "siteId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-api-wise-payments",
      "method": "GET",
      "path": "/api/wise/payments",
      "group": "wise",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-wise-recipients-assign",
      "method": "POST",
      "path": "/api/wise/recipients/assign",
      "group": "wise",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "type": "object",
          "properties": {
            "targetAccount": {
              "type": "string",
              "optional": false,
              "min": 1
            },
            "teamMemberId": {
              "type": "string",
              "optional": false,
              "min": 1,
              "nullable": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-api-wise-sync",
      "method": "POST",
      "path": "/api/wise/sync",
      "group": "wise",
      "auth": {
        "boundary": "Role guard plus route-specific scope",
        "roles": [
          "admin"
        ],
        "handler": "requireAdmin",
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-health",
      "method": "GET",
      "path": "/health",
      "group": "health",
      "auth": {
        "boundary": "Public health check",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {},
      "restricted": false,
      "source": {
        "file": "apps/api/src/health.ts",
        "line": 72,
        "url": "https://github.com/Enj-Digital/agencyManagement/blob/f0eee8a3239ff2e2736ec18b4017f5ee5cd062d8/apps/api/src/health.ts#L72"
      }
    },
    {
      "id": "get-uploads-agency-logos-file",
      "method": "GET",
      "path": "/uploads/agency-logos/:file",
      "group": "settings",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "file": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-uploads-ai-agent-icons-file",
      "method": "GET",
      "path": "/uploads/ai-agent-icons/:file",
      "group": "ai-agent",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "file": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "get-uploads-team-avatars-file",
      "method": "GET",
      "path": "/uploads/team-avatars/:file",
      "group": "team",
      "auth": {
        "boundary": "Route-specific checks; no role list extracted",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Read method; may have cache or collection side effects",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "file": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-webhooks-fathom-teamMemberId",
      "method": "POST",
      "path": "/webhooks/fathom/:teamMemberId",
      "group": "fathom",
      "auth": {
        "boundary": "Provider webhook; not an agent command",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "teamMemberId": {
              "type": "string",
              "optional": false,
              "min": 1
            }
          },
          "optional": false,
          "unresolved": false
        },
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-webhooks-ghl-lead-screening",
      "method": "POST",
      "path": "/webhooks/ghl/lead-screening",
      "group": "lead-screening",
      "auth": {
        "boundary": "Provider webhook; not an agent command",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-webhooks-ghl-notion-deal-close",
      "method": "POST",
      "path": "/webhooks/ghl/notion-deal-close",
      "group": "client-delivery",
      "auth": {
        "boundary": "Provider webhook; not an agent command",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-webhooks-ghl-notion-onboarding",
      "method": "POST",
      "path": "/webhooks/ghl/notion-onboarding",
      "group": "client-delivery",
      "auth": {
        "boundary": "Provider webhook; not an agent command",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        }
      },
      "restricted": false,
      "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"
      }
    },
    {
      "id": "post-webhooks-voice-setter-elevenlabs",
      "method": "POST",
      "path": "/webhooks/voice-setter/elevenlabs",
      "group": "voice-setter",
      "auth": {
        "boundary": "Provider webhook; not an agent command",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        }
      },
      "restricted": true,
      "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"
      }
    },
    {
      "id": "post-webhooks-voice-setter-tools-name",
      "method": "POST",
      "path": "/webhooks/voice-setter/tools/:name",
      "group": "voice-setter",
      "auth": {
        "boundary": "Provider webhook; not an agent command",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "body": {
          "unresolved": true
        },
        "params": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "optional": false
            }
          }
        }
      },
      "restricted": true,
      "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"
      }
    },
    {
      "id": "post-webhooks-voice-setter-twilio-connect-id",
      "method": "POST",
      "path": "/webhooks/voice-setter/twilio/connect/:id",
      "group": "voice-setter",
      "auth": {
        "boundary": "Provider webhook; not an agent command",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": true,
      "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"
      }
    },
    {
      "id": "post-webhooks-voice-setter-twilio-inbound",
      "method": "POST",
      "path": "/webhooks/voice-setter/twilio/inbound",
      "group": "voice-setter",
      "auth": {
        "boundary": "Provider webhook; not an agent command",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": true,
      "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"
      }
    },
    {
      "id": "post-webhooks-voice-setter-twilio-status",
      "method": "POST",
      "path": "/webhooks/voice-setter/twilio/status",
      "group": "voice-setter",
      "auth": {
        "boundary": "Provider webhook; not an agent command",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {},
      "restricted": true,
      "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"
      }
    },
    {
      "id": "post-webhooks-voice-setter-twilio-status-id",
      "method": "POST",
      "path": "/webhooks/voice-setter/twilio/status/:id",
      "group": "voice-setter",
      "auth": {
        "boundary": "Provider webhook; not an agent command",
        "roles": [],
        "handler": null,
        "additionalScope": false
      },
      "effect": "Mutation or action; explicit authority required",
      "request": {
        "params": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "optional": false,
              "extraValidation": true
            }
          },
          "optional": false,
          "unresolved": false
        }
      },
      "restricted": true,
      "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"
      }
    }
  ]
}