{"openapi":"3.1.0","info":{"title":"Api","version":"0.0.1"},"paths":{"/v0/projects":{"get":{"tags":["Projects"],"operationId":"Projects.listProjects","parameters":[{"name":"ownerId","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"projectId","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"slug","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"search","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"limit","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"offset","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"errorTrackingEnabled":{"type":"boolean"},"webVitalsEnabled":{"type":"boolean"},"sessionReplaysEnabled":{"type":"boolean"},"slug":{"type":"string"},"private":{"type":"boolean"},"templateId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"firstEventAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"ownerId":{"type":"string"},"preferredChartColors":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["id","name","errorTrackingEnabled","webVitalsEnabled","sessionReplaysEnabled","slug","private","templateId","createdAt","firstEventAt","ownerId","preferredChartColors"],"additionalProperties":false}},"total":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"limit":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"offset":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"hasMore":{"type":"boolean"}},"required":["items","total","limit","offset","hasMore"],"additionalProperties":false}}}}},"x-auth-required":true}},"/v0/public-projects":{"get":{"tags":["Projects"],"operationId":"Projects.listPublicProjects","parameters":[{"name":"ownerId","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"ownerSlug","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"slug","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"search","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"limit","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"offset","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"sort","in":"query","schema":{"anyOf":[{"type":"string","enum":["createdAt","name","creator","online","total"]},{"type":"null"}]},"required":false},{"name":"direction","in":"query","schema":{"anyOf":[{"type":"string","enum":["asc","desc"]},{"type":"null"}]},"required":false}],"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"createdAt":{"type":"string"},"ownerId":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string","enum":["user","organization"]},"createdAt":{"type":"string"}},"required":["id","name","slug","image","type","createdAt"],"additionalProperties":false},{"type":"null"}]},"templateId":{"anyOf":[{"type":"string"},{"type":"null"}]},"online":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"total":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["id","name","slug","createdAt","ownerId","owner","templateId","online","total"],"additionalProperties":false}},"total":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"limit":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"offset":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"hasMore":{"type":"boolean"}},"required":["items","total","limit","offset","hasMore"],"additionalProperties":false}}}}},"x-auth-required":false}},"/projects/{idOrSlug}/stats":{"get":{"tags":["Projects"],"operationId":"Projects.getPublicProjectStats","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[],"responses":{"200":{"description":"Public project server and player stats.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicProjectStatsRecord"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}},"x-auth-required":false}},"/v0/project/{idOrSlug}":{"get":{"tags":["Projects"],"operationId":"Projects.getProject","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"allowedHostnames":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"errorTrackingEnabled":{"type":"boolean"},"webVitalsEnabled":{"type":"boolean"},"sessionReplaysEnabled":{"type":"boolean"},"cookielessMode":{"type":"boolean"},"searchConsoleSiteUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"token":{"anyOf":[{"type":"string"},{"type":"null"}]},"slug":{"type":"string"},"private":{"type":"boolean"},"templateId":{"anyOf":[{"type":"string"},{"type":"null"}]},"preferredChartColors":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"codeContextConfig":{"anyOf":[{"type":"object","properties":{"enabled":{"type":"boolean"},"codebergApiUrl":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"repository":{"anyOf":[{"type":"string"},{"type":"null"}]},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"mappings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"provider":{"anyOf":[{"type":"string","enum":["github","codeberg"]},{"type":"null"}]},"javaPrefix":{"type":"string"},"repository":{"anyOf":[{"type":"string"},{"type":"null"}]},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"pathPattern":{"type":"string"}},"required":["id","provider","javaPrefix","repository","ref","pathPattern"],"additionalProperties":false}}},"required":["enabled","repository","ref","mappings"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"firstEventAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"ownerId":{"type":"string"},"owner":{"anyOf":[{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string","enum":["user","organization"]},"createdAt":{"type":"string"}},"required":["id","name","slug","image","type","createdAt"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]}},"required":["id","name","allowedHostnames","errorTrackingEnabled","webVitalsEnabled","sessionReplaysEnabled","cookielessMode","searchConsoleSiteUrl","token","slug","private","templateId","preferredChartColors","codeContextConfig","createdAt","firstEventAt","ownerId"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"errorTrackingEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"webVitalsEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sessionReplaysEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"slug":{"type":"string"},"private":{"type":"boolean"},"templateId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"firstEventAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"ownerId":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string","enum":["user","organization"]},"createdAt":{"type":"string"}},"required":["id","name","slug","image","type","createdAt"],"additionalProperties":false},{"type":"null"}]},"preferredChartColors":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["id","name","slug","private","templateId","createdAt","firstEventAt","ownerId","owner","preferredChartColors"],"additionalProperties":false}]}}}},"400":{"description":"ProjectValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"ProjectConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectConflictError"}}}}},"x-auth-required":false}},"/v0/project":{"post":{"tags":["Projects"],"operationId":"Projects.createProject","parameters":[],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"allowedHostnames":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"errorTrackingEnabled":{"type":"boolean"},"webVitalsEnabled":{"type":"boolean"},"sessionReplaysEnabled":{"type":"boolean"},"cookielessMode":{"type":"boolean"},"searchConsoleSiteUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"token":{"anyOf":[{"type":"string"},{"type":"null"}]},"slug":{"type":"string"},"private":{"type":"boolean"},"templateId":{"anyOf":[{"type":"string"},{"type":"null"}]},"preferredChartColors":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"codeContextConfig":{"anyOf":[{"type":"object","properties":{"enabled":{"type":"boolean"},"codebergApiUrl":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"repository":{"anyOf":[{"type":"string"},{"type":"null"}]},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"mappings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"provider":{"anyOf":[{"type":"string","enum":["github","codeberg"]},{"type":"null"}]},"javaPrefix":{"type":"string"},"repository":{"anyOf":[{"type":"string"},{"type":"null"}]},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"pathPattern":{"type":"string"}},"required":["id","provider","javaPrefix","repository","ref","pathPattern"],"additionalProperties":false}}},"required":["enabled","repository","ref","mappings"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"firstEventAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"ownerId":{"type":"string"},"owner":{"anyOf":[{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string","enum":["user","organization"]},"createdAt":{"type":"string"}},"required":["id","name","slug","image","type","createdAt"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]}},"required":["id","name","allowedHostnames","errorTrackingEnabled","webVitalsEnabled","sessionReplaysEnabled","cookielessMode","searchConsoleSiteUrl","token","slug","private","templateId","preferredChartColors","codeContextConfig","createdAt","firstEventAt","ownerId"],"additionalProperties":false}}}},"400":{"description":"ProjectValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"ProjectConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectConflictError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"private":{"type":"boolean"},"templateId":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"allowedHostnames":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},{"type":"null"}]}},"required":["name","private"],"additionalProperties":false}}},"required":true},"x-auth-required":true}},"/v0/project/{id}":{"patch":{"tags":["Projects"],"operationId":"Projects.updateProject","parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"allowedHostnames":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"errorTrackingEnabled":{"type":"boolean"},"webVitalsEnabled":{"type":"boolean"},"sessionReplaysEnabled":{"type":"boolean"},"cookielessMode":{"type":"boolean"},"searchConsoleSiteUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"token":{"anyOf":[{"type":"string"},{"type":"null"}]},"slug":{"type":"string"},"private":{"type":"boolean"},"templateId":{"anyOf":[{"type":"string"},{"type":"null"}]},"preferredChartColors":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"codeContextConfig":{"anyOf":[{"type":"object","properties":{"enabled":{"type":"boolean"},"codebergApiUrl":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"repository":{"anyOf":[{"type":"string"},{"type":"null"}]},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"mappings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"provider":{"anyOf":[{"type":"string","enum":["github","codeberg"]},{"type":"null"}]},"javaPrefix":{"type":"string"},"repository":{"anyOf":[{"type":"string"},{"type":"null"}]},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"pathPattern":{"type":"string"}},"required":["id","provider","javaPrefix","repository","ref","pathPattern"],"additionalProperties":false}}},"required":["enabled","repository","ref","mappings"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"firstEventAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"ownerId":{"type":"string"},"owner":{"anyOf":[{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string","enum":["user","organization"]},"createdAt":{"type":"string"}},"required":["id","name","slug","image","type","createdAt"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]}},"required":["id","name","allowedHostnames","errorTrackingEnabled","webVitalsEnabled","sessionReplaysEnabled","cookielessMode","searchConsoleSiteUrl","token","slug","private","templateId","preferredChartColors","codeContextConfig","createdAt","firstEventAt","ownerId"],"additionalProperties":false}}}},"400":{"description":"ProjectValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"ProjectConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectConflictError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"allowedHostnames":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"errorTrackingEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"webVitalsEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sessionReplaysEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"cookielessMode":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"searchConsoleSiteUrl":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"preferredChartColors":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"codeContextConfig":{"anyOf":[{"anyOf":[{"type":"object","properties":{"enabled":{"type":"boolean"},"codebergApiUrl":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"repository":{"anyOf":[{"type":"string"},{"type":"null"}]},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"mappings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"provider":{"anyOf":[{"type":"string","enum":["github","codeberg"]},{"type":"null"}]},"javaPrefix":{"type":"string"},"repository":{"anyOf":[{"type":"string"},{"type":"null"}]},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"pathPattern":{"type":"string"}},"required":["id","provider","javaPrefix","repository","ref","pathPattern"],"additionalProperties":false}}},"required":["enabled","repository","ref","mappings"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]}},"additionalProperties":false}}},"required":true},"x-auth-required":true},"delete":{"tags":["Projects"],"operationId":"Projects.deleteProject","parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"ProjectValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"ProjectConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectConflictError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string"}},"required":["password"],"additionalProperties":false}}},"required":true},"x-auth-required":true}},"/v0/project-slug":{"get":{"tags":["Projects"],"operationId":"Projects.checkSlugAvailability","parameters":[{"name":"slug","in":"query","schema":{"type":"string"},"required":true},{"name":"excludeProjectId","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false}],"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"available":{"type":"boolean"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["available"],"additionalProperties":false}}}},"400":{"description":"ProjectValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"ProjectConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectConflictError"}}}}},"x-auth-required":false}},"/v0/project/{id}/owner":{"patch":{"tags":["Projects"],"operationId":"Projects.moveProject","parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"ProjectValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"ProjectConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectConflictError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"targetOwnerId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["targetOwnerId"],"additionalProperties":false}}},"required":true},"x-auth-required":true}},"/v0/project/{id}/wipe":{"post":{"tags":["Projects"],"operationId":"Projects.wipeProjectData","parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"ProjectValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"ProjectConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectConflictError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string"}},"required":["password"],"additionalProperties":false}}},"required":true},"x-auth-required":true}},"/v0/project/{id}/error-tracking/reset":{"post":{"tags":["Projects"],"operationId":"Projects.resetProjectErrorTracking","parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"ProjectValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"ProjectConflictError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectConflictError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string"}},"required":["password"],"additionalProperties":false}}},"required":true},"x-auth-required":true}},"/v0/project/{idOrSlug}/dashboards":{"get":{"tags":["Dashboards"],"operationId":"Dashboards.listDashboards","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DashboardRecord"}}}}},"400":{"description":"DashboardValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}},"post":{"tags":["Dashboards"],"operationId":"Dashboards.createDashboard","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"DashboardRecord","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardRecord"}}}},"400":{"description":"DashboardValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"isPublic":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"position":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]}},"required":["name"],"additionalProperties":false}}},"required":true}}},"/v0/project/{idOrSlug}/dashboards/reorder":{"patch":{"tags":["Dashboards"],"operationId":"Dashboards.reorderDashboards","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"DashboardValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"dashboards":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"position":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["id","position"],"additionalProperties":false}}},"required":["dashboards"],"additionalProperties":false}}},"required":true}}},"/v0/project/{idOrSlug}/dashboards/{id}/duplicate":{"post":{"tags":["Dashboards"],"operationId":"Dashboards.duplicateDashboard","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"DashboardRecord","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardRecord"}}}},"400":{"description":"DashboardValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/dashboards/{id}/copy":{"post":{"tags":["Dashboards"],"operationId":"Dashboards.copyDashboard","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"DashboardRecord","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardRecord"}}}},"400":{"description":"DashboardValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"targetProjectId":{"type":"string"}},"required":["targetProjectId"],"additionalProperties":false}}},"required":true}}},"/v0/project/{idOrSlug}/dashboards/{id}":{"patch":{"tags":["Dashboards"],"operationId":"Dashboards.updateDashboard","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"DashboardRecord","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardRecord"}}}},"400":{"description":"DashboardValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"isPublic":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"position":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"chartPositions":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"position":{"type":"object","properties":{"x":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"y":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"w":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"h":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["x","y","w","h"],"additionalProperties":false}},"required":["id","position"],"additionalProperties":false}},{"type":"null"}]}},"additionalProperties":false}}},"required":true}},"delete":{"tags":["Dashboards"],"operationId":"Dashboards.deleteDashboard","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"DashboardValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/charts":{"get":{"tags":["Charts"],"operationId":"Charts.listCharts","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"dashboardId","in":"query","schema":{"anyOf":[{"anyOf":[{"type":"string","enum":["null"]},{"type":"string"}]},{"type":"null"}]},"required":false},{"name":"chartId","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"dashboardId":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"chartType":{"type":"string","enum":["widget","line","area","bar","pie","map","list","heatmap","radar","scatter"]},"queryConfig":{"anyOf":[{"type":"object","properties":{"primaryMetric":{"anyOf":[{"type":"object","properties":{"field":{"type":"string"},"aggregation":{"type":"string","enum":["sum","avg","min","max","count"]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["field","aggregation"],"additionalProperties":false},{"type":"null"}]},"metrics":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"aggregation":{"type":"string","enum":["sum","avg","min","max","count"]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["field","aggregation"],"additionalProperties":false}},{"type":"null"}]},"dimensions":{"anyOf":[{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","enum":["time"]},"field":{"type":"string"},"interval":{"type":"string","enum":["minute","hour","day","week","month"]}},"required":["role","field","interval"],"additionalProperties":false},{"type":"object","properties":{"role":{"type":"string","enum":["group"]},"field":{"type":"string"},"limit":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]}},"required":["role","field"],"additionalProperties":false},{"type":"object","properties":{"role":{"type":"string","enum":["series"]},"field":{"type":"string"}},"required":["role","field"],"additionalProperties":false}]}},{"type":"null"}]},"filters":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","starts_with","not_starts_with","ends_with","not_ends_with","greater_than","less_than"]},"value":{"anyOf":[{"type":"string"},{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},{"type":"null"}]},"timeRange":{"anyOf":[{"type":"object","properties":{"maxAgeMs":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"from":{"anyOf":[{"type":"string"},{"type":"null"}]},"to":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"deduplicateServers":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"mode":{"anyOf":[{"type":"string","enum":["history","distribution"]},{"type":"null"}]},"groupLimit":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"visualOptions":{"anyOf":[{"type":"object","properties":{"colors":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"pie":{"anyOf":[{"type":"object","properties":{"style":{"anyOf":[{"type":"string","enum":["pie","donut"]},{"type":"null"}]},"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"showTotal":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"showLabels":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"totalDisplayMode":{"anyOf":[{"type":"string","enum":["sum","count"]},{"type":"null"}]},"drilldown":{"anyOf":[{"type":"object","properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"splitPattern":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"bar":{"anyOf":[{"type":"object","properties":{"stacked":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"orientation":{"anyOf":[{"type":"string","enum":["vertical","horizontal"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"line":{"anyOf":[{"type":"object","properties":{"lineType":{"anyOf":[{"type":"string","enum":["monotone","linear","step"]},{"type":"null"}]},"showDots":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"widget":{"anyOf":[{"type":"object","properties":{"showTrend":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"displayMode":{"anyOf":[{"type":"string","enum":["default","compact"]},{"type":"null"}]},"valueFormat":{"anyOf":[{"type":"string","enum":["number","percent"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"list":{"anyOf":[{"type":"object","properties":{"selectedTabIndex":{"anyOf":[{"type":"number"},{"type":"null"}]},"splitPattern":{"anyOf":[{"type":"string"},{"type":"null"}]},"multiMetric":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"heatmap":{"anyOf":[{"type":"object","properties":{"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"radar":{"anyOf":[{"type":"object","properties":{"showDots":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"fillOpacity":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"gridType":{"anyOf":[{"type":"string","enum":["polygon","circle"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"scatter":{"anyOf":[{"type":"object","properties":{"pointSize":{"anyOf":[{"type":"string","enum":["small","medium","large"]},{"type":"null"}]},"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"flowNodes":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"data":{"type":"object"},"position":{"type":"object","properties":{"x":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"y":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"additionalProperties":false}},"required":["id"],"additionalProperties":false}},{"type":"null"}]},"flowEdges":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"source":{"type":"string"},"target":{"type":"string"}},"required":["id","source","target"],"additionalProperties":false}},{"type":"null"}]},"position":{"anyOf":[{"type":"object","properties":{"x":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"y":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"w":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"h":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["x","y","w","h"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"string"}]},"updatedAt":{"anyOf":[{"type":"string"},{"type":"string"}]}},"required":["id","projectId","dashboardId","name","description","chartType","queryConfig","flowNodes","flowEdges","position","createdAt","updatedAt"],"additionalProperties":false}}}}},"400":{"description":"ChartValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChartValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}},"post":{"tags":["Charts"],"operationId":"Charts.createChart","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"ChartValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChartValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"dashboardId":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"name":{"type":"string"},"description":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"chartType":{"type":"string","enum":["widget","line","area","bar","pie","map","list","heatmap","radar","scatter"]},"queryConfig":{"anyOf":[{"type":"object","properties":{"primaryMetric":{"anyOf":[{"type":"object","properties":{"field":{"type":"string"},"aggregation":{"type":"string","enum":["sum","avg","min","max","count"]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["field","aggregation"],"additionalProperties":false},{"type":"null"}]},"metrics":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"aggregation":{"type":"string","enum":["sum","avg","min","max","count"]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["field","aggregation"],"additionalProperties":false}},{"type":"null"}]},"dimensions":{"anyOf":[{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","enum":["time"]},"field":{"type":"string"},"interval":{"type":"string","enum":["minute","hour","day","week","month"]}},"required":["role","field","interval"],"additionalProperties":false},{"type":"object","properties":{"role":{"type":"string","enum":["group"]},"field":{"type":"string"},"limit":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]}},"required":["role","field"],"additionalProperties":false},{"type":"object","properties":{"role":{"type":"string","enum":["series"]},"field":{"type":"string"}},"required":["role","field"],"additionalProperties":false}]}},{"type":"null"}]},"filters":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","starts_with","not_starts_with","ends_with","not_ends_with","greater_than","less_than"]},"value":{"anyOf":[{"type":"string"},{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},{"type":"null"}]},"timeRange":{"anyOf":[{"type":"object","properties":{"maxAgeMs":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"from":{"anyOf":[{"type":"string"},{"type":"null"}]},"to":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"deduplicateServers":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"mode":{"anyOf":[{"type":"string","enum":["history","distribution"]},{"type":"null"}]},"groupLimit":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"visualOptions":{"anyOf":[{"type":"object","properties":{"colors":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"pie":{"anyOf":[{"type":"object","properties":{"style":{"anyOf":[{"type":"string","enum":["pie","donut"]},{"type":"null"}]},"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"showTotal":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"showLabels":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"totalDisplayMode":{"anyOf":[{"type":"string","enum":["sum","count"]},{"type":"null"}]},"drilldown":{"anyOf":[{"type":"object","properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"splitPattern":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"bar":{"anyOf":[{"type":"object","properties":{"stacked":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"orientation":{"anyOf":[{"type":"string","enum":["vertical","horizontal"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"line":{"anyOf":[{"type":"object","properties":{"lineType":{"anyOf":[{"type":"string","enum":["monotone","linear","step"]},{"type":"null"}]},"showDots":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"widget":{"anyOf":[{"type":"object","properties":{"showTrend":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"displayMode":{"anyOf":[{"type":"string","enum":["default","compact"]},{"type":"null"}]},"valueFormat":{"anyOf":[{"type":"string","enum":["number","percent"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"list":{"anyOf":[{"type":"object","properties":{"selectedTabIndex":{"anyOf":[{"type":"number"},{"type":"null"}]},"splitPattern":{"anyOf":[{"type":"string"},{"type":"null"}]},"multiMetric":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"heatmap":{"anyOf":[{"type":"object","properties":{"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"radar":{"anyOf":[{"type":"object","properties":{"showDots":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"fillOpacity":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"gridType":{"anyOf":[{"type":"string","enum":["polygon","circle"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"scatter":{"anyOf":[{"type":"object","properties":{"pointSize":{"anyOf":[{"type":"string","enum":["small","medium","large"]},{"type":"null"}]},"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"flowNodes":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"data":{"type":"object"},"position":{"type":"object","properties":{"x":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"y":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"additionalProperties":false}},"required":["id"],"additionalProperties":false}},{"type":"null"}]},"flowEdges":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"source":{"type":"string"},"target":{"type":"string"}},"required":["id","source","target"],"additionalProperties":false}},{"type":"null"}]},"position":{"anyOf":[{"type":"object","properties":{"x":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"y":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"w":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"h":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["x","y","w","h"],"additionalProperties":false},{"type":"null"}]}},"required":["name","chartType"],"additionalProperties":false}}},"required":true}}},"/v0/project/{idOrSlug}/charts/{id}":{"patch":{"tags":["Charts"],"operationId":"Charts.updateChart","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"ChartValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChartValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"dashboardId":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"chartType":{"anyOf":[{"type":"string","enum":["widget","line","area","bar","pie","map","list","heatmap","radar","scatter"]},{"type":"null"}]},"queryConfig":{"anyOf":[{"type":"object","properties":{"primaryMetric":{"anyOf":[{"type":"object","properties":{"field":{"type":"string"},"aggregation":{"type":"string","enum":["sum","avg","min","max","count"]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["field","aggregation"],"additionalProperties":false},{"type":"null"}]},"metrics":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"aggregation":{"type":"string","enum":["sum","avg","min","max","count"]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["field","aggregation"],"additionalProperties":false}},{"type":"null"}]},"dimensions":{"anyOf":[{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","enum":["time"]},"field":{"type":"string"},"interval":{"type":"string","enum":["minute","hour","day","week","month"]}},"required":["role","field","interval"],"additionalProperties":false},{"type":"object","properties":{"role":{"type":"string","enum":["group"]},"field":{"type":"string"},"limit":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]}},"required":["role","field"],"additionalProperties":false},{"type":"object","properties":{"role":{"type":"string","enum":["series"]},"field":{"type":"string"}},"required":["role","field"],"additionalProperties":false}]}},{"type":"null"}]},"filters":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","starts_with","not_starts_with","ends_with","not_ends_with","greater_than","less_than"]},"value":{"anyOf":[{"type":"string"},{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},{"type":"null"}]},"timeRange":{"anyOf":[{"type":"object","properties":{"maxAgeMs":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"from":{"anyOf":[{"type":"string"},{"type":"null"}]},"to":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"deduplicateServers":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"mode":{"anyOf":[{"type":"string","enum":["history","distribution"]},{"type":"null"}]},"groupLimit":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"visualOptions":{"anyOf":[{"type":"object","properties":{"colors":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"pie":{"anyOf":[{"type":"object","properties":{"style":{"anyOf":[{"type":"string","enum":["pie","donut"]},{"type":"null"}]},"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"showTotal":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"showLabels":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"totalDisplayMode":{"anyOf":[{"type":"string","enum":["sum","count"]},{"type":"null"}]},"drilldown":{"anyOf":[{"type":"object","properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"splitPattern":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"bar":{"anyOf":[{"type":"object","properties":{"stacked":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"orientation":{"anyOf":[{"type":"string","enum":["vertical","horizontal"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"line":{"anyOf":[{"type":"object","properties":{"lineType":{"anyOf":[{"type":"string","enum":["monotone","linear","step"]},{"type":"null"}]},"showDots":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"widget":{"anyOf":[{"type":"object","properties":{"showTrend":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"displayMode":{"anyOf":[{"type":"string","enum":["default","compact"]},{"type":"null"}]},"valueFormat":{"anyOf":[{"type":"string","enum":["number","percent"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"list":{"anyOf":[{"type":"object","properties":{"selectedTabIndex":{"anyOf":[{"type":"number"},{"type":"null"}]},"splitPattern":{"anyOf":[{"type":"string"},{"type":"null"}]},"multiMetric":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"heatmap":{"anyOf":[{"type":"object","properties":{"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"radar":{"anyOf":[{"type":"object","properties":{"showDots":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"fillOpacity":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"gridType":{"anyOf":[{"type":"string","enum":["polygon","circle"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"scatter":{"anyOf":[{"type":"object","properties":{"pointSize":{"anyOf":[{"type":"string","enum":["small","medium","large"]},{"type":"null"}]},"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"flowNodes":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"data":{"type":"object"},"position":{"type":"object","properties":{"x":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"y":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"additionalProperties":false}},"required":["id"],"additionalProperties":false}},{"type":"null"}]},"flowEdges":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"source":{"type":"string"},"target":{"type":"string"}},"required":["id","source","target"],"additionalProperties":false}},{"type":"null"}]},"position":{"anyOf":[{"type":"object","properties":{"x":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"y":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"w":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"h":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["x","y","w","h"],"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false}}},"required":true}},"delete":{"tags":["Charts"],"operationId":"Charts.deleteChart","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"ChartValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChartValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/metrics/preview":{"post":{"tags":["Metrics"],"operationId":"Metrics.getPreviewData","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"flowMeta":{"type":"object","properties":{"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"index":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"name":{"type":"string"},"explicitName":{"anyOf":[{"type":"string"},{"type":"null"}]},"iconSetId":{"anyOf":[{"type":"string"},{"type":"null"}]},"splitPattern":{"anyOf":[{"type":"string"},{"type":"null"}]},"splitDataSource":{"anyOf":[{"type":"string"},{"type":"null"}]},"groupField":{"anyOf":[{"type":"string"},{"type":"null"}]},"primaryMetric":{"anyOf":[{"type":"object","properties":{"field":{"type":"string"},"aggregation":{"type":"string"}},"required":["field","aggregation"],"additionalProperties":false},{"type":"null"}]}},"required":["id","index","name","iconSetId"],"additionalProperties":false}},"hasTimeGroup":{"type":"boolean"},"hasBreakdownTimeSeries":{"type":"boolean"},"datasourceFields":{"type":"array","items":{"type":"string"}},"splitLabelSeparator":{"type":"string"},"timeGroupInterval":{"anyOf":[{"type":"string","enum":["minute","hour","day","week","month","auto"]},{"type":"null"}]}},"required":["outputs","hasTimeGroup","hasBreakdownTimeSeries","datasourceFields","splitLabelSeparator"],"additionalProperties":false}},"required":["data","flowMeta"],"additionalProperties":false}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"500":{"description":"InternalServerError | MetricsDecodeError | TinybirdError | EffectDrizzleQueryError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalServerError"},{"$ref":"#/components/schemas/MetricsDecodeError"},{"$ref":"#/components/schemas/TinybirdError"},{"$ref":"#/components/schemas/EffectDrizzleQueryError"}]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"queryConfig":{"type":"object","properties":{"primaryMetric":{"anyOf":[{"type":"object","properties":{"field":{"type":"string"},"aggregation":{"type":"string","enum":["sum","avg","min","max","count"]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["field","aggregation"],"additionalProperties":false},{"type":"null"}]},"metrics":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"aggregation":{"type":"string","enum":["sum","avg","min","max","count"]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["field","aggregation"],"additionalProperties":false}},{"type":"null"}]},"dimensions":{"anyOf":[{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","enum":["time"]},"field":{"type":"string"},"interval":{"type":"string","enum":["minute","hour","day","week","month"]}},"required":["role","field","interval"],"additionalProperties":false},{"type":"object","properties":{"role":{"type":"string","enum":["group"]},"field":{"type":"string"},"limit":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]}},"required":["role","field"],"additionalProperties":false},{"type":"object","properties":{"role":{"type":"string","enum":["series"]},"field":{"type":"string"}},"required":["role","field"],"additionalProperties":false}]}},{"type":"null"}]},"filters":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","starts_with","not_starts_with","ends_with","not_ends_with","greater_than","less_than"]},"value":{"anyOf":[{"type":"string"},{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},{"type":"null"}]},"timeRange":{"anyOf":[{"type":"object","properties":{"maxAgeMs":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"from":{"anyOf":[{"type":"string"},{"type":"null"}]},"to":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"deduplicateServers":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"mode":{"anyOf":[{"type":"string","enum":["history","distribution"]},{"type":"null"}]},"groupLimit":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"visualOptions":{"anyOf":[{"type":"object","properties":{"colors":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"pie":{"anyOf":[{"type":"object","properties":{"style":{"anyOf":[{"type":"string","enum":["pie","donut"]},{"type":"null"}]},"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"showTotal":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"showLabels":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"totalDisplayMode":{"anyOf":[{"type":"string","enum":["sum","count"]},{"type":"null"}]},"drilldown":{"anyOf":[{"type":"object","properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"splitPattern":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"bar":{"anyOf":[{"type":"object","properties":{"stacked":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"orientation":{"anyOf":[{"type":"string","enum":["vertical","horizontal"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"line":{"anyOf":[{"type":"object","properties":{"lineType":{"anyOf":[{"type":"string","enum":["monotone","linear","step"]},{"type":"null"}]},"showDots":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"widget":{"anyOf":[{"type":"object","properties":{"showTrend":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"displayMode":{"anyOf":[{"type":"string","enum":["default","compact"]},{"type":"null"}]},"valueFormat":{"anyOf":[{"type":"string","enum":["number","percent"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"list":{"anyOf":[{"type":"object","properties":{"selectedTabIndex":{"anyOf":[{"type":"number"},{"type":"null"}]},"splitPattern":{"anyOf":[{"type":"string"},{"type":"null"}]},"multiMetric":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"heatmap":{"anyOf":[{"type":"object","properties":{"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"radar":{"anyOf":[{"type":"object","properties":{"showDots":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"fillOpacity":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"gridType":{"anyOf":[{"type":"string","enum":["polygon","circle"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"scatter":{"anyOf":[{"type":"object","properties":{"pointSize":{"anyOf":[{"type":"string","enum":["small","medium","large"]},{"type":"null"}]},"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},"chartType":{"type":"string","enum":["widget","line","area","bar","pie","map","list","heatmap","radar","scatter"]},"flowNodes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"data":{"type":"object"},"position":{"type":"object","properties":{"x":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"y":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"additionalProperties":false}},"required":["id"],"additionalProperties":false}},"flowEdges":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"source":{"type":"string"},"target":{"type":"string"}},"required":["id","source","target"],"additionalProperties":false}}},"required":["queryConfig","chartType","flowNodes","flowEdges"],"additionalProperties":false}}},"required":true}}},"/v0/metrics/dashboard-data":{"post":{"tags":["Metrics"],"operationId":"Metrics.loadDashboardData","parameters":[],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"charts":{"type":"object"},"flowMeta":{"anyOf":[{"type":"object","additionalProperties":{"type":"object","properties":{"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"index":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"name":{"type":"string"},"explicitName":{"anyOf":[{"type":"string"},{"type":"null"}]},"iconSetId":{"anyOf":[{"type":"string"},{"type":"null"}]},"splitPattern":{"anyOf":[{"type":"string"},{"type":"null"}]},"splitDataSource":{"anyOf":[{"type":"string"},{"type":"null"}]},"groupField":{"anyOf":[{"type":"string"},{"type":"null"}]},"primaryMetric":{"anyOf":[{"type":"object","properties":{"field":{"type":"string"},"aggregation":{"type":"string"}},"required":["field","aggregation"],"additionalProperties":false},{"type":"null"}]}},"required":["id","index","name","iconSetId"],"additionalProperties":false}},"hasTimeGroup":{"type":"boolean"},"hasBreakdownTimeSeries":{"type":"boolean"},"datasourceFields":{"type":"array","items":{"type":"string"}},"splitLabelSeparator":{"type":"string"},"timeGroupInterval":{"anyOf":[{"type":"string","enum":["minute","hour","day","week","month","auto"]},{"type":"null"}]}},"required":["outputs","hasTimeGroup","hasBreakdownTimeSeries","datasourceFields","splitLabelSeparator"],"additionalProperties":false}},{"type":"null"}]},"fusionDebug":{"anyOf":[{"type":"object","properties":{"totalCharts":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"totalQueries":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"flowEngineDurationMs":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"executionDurationMs":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"summary":{"type":"object","properties":{"eligibleCharts":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"fusedBatchCount":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"fusedChartCount":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"ineligibleCharts":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"unfusedEligibleCharts":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["eligibleCharts","fusedBatchCount","fusedChartCount","ineligibleCharts","unfusedEligibleCharts"],"additionalProperties":false},"batches":{"type":"array","items":{"type":"object","properties":{"order":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"kind":{"type":"string","enum":["single","fused"]},"durationMs":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"chartIds":{"type":"array","items":{"type":"string"}},"chartNames":{"type":"array","items":{"type":"string"}},"family":{"anyOf":[{"anyOf":[{"type":"string","enum":["time-series-by-output","grouping","widget"]},{"type":"string"}]},{"type":"null"}]},"sql":{"anyOf":[{"type":"string"},{"type":"null"}]},"paramsJson":{"anyOf":[{"type":"string"},{"type":"null"}]},"datasource":{"anyOf":[{"type":"string"},{"type":"null"}]},"explainJson":{"anyOf":[{"type":"string"},{"type":"null"}]},"explainError":{"anyOf":[{"type":"string"},{"type":"null"}]},"explainDurationMs":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]}},"required":["order","kind","durationMs","chartIds","chartNames"],"additionalProperties":false}},"totalDurationMs":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["totalCharts","totalQueries","summary","batches","totalDurationMs"],"additionalProperties":false},{"type":"null"}]}},"required":["charts"],"additionalProperties":false}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"500":{"description":"InternalServerError | MetricsDecodeError | TinybirdError | EffectDrizzleQueryError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalServerError"},{"$ref":"#/components/schemas/MetricsDecodeError"},{"$ref":"#/components/schemas/TinybirdError"},{"$ref":"#/components/schemas/EffectDrizzleQueryError"}]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"anyOf":[{"type":"string"},{"type":"null"}]},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"dashboardId":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"timeRange":{"anyOf":[{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["relative"]},"maxAgeMs":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["type","maxAgeMs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["absolute"]},"fromMs":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"toMs":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["type","fromMs","toMs"],"additionalProperties":false}]},{"type":"null"}]},"dashboardFilters":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["equals","not_equals","greater_equal","less_equal"]},"value":{"type":"string"},"dataType":{"anyOf":[{"type":"string","enum":["string","number","boolean"]},{"type":"null"}]}},"required":["field","operator","value"],"additionalProperties":false}},{"type":"null"}]},"fusionDebug":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false}}},"required":true}}},"/v0/project/{idOrSlug}/metrics/filter-suggestions":{"post":{"tags":["Metrics"],"operationId":"Metrics.getDashboardFilterSuggestions","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","properties":{"values":{"type":"array","items":{"type":"string"}},"numericRange":{"anyOf":[{"type":"object","properties":{"min":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"max":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["min","max"],"additionalProperties":false},{"type":"null"}]}},"required":["values"],"additionalProperties":false}}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"500":{"description":"InternalServerError | MetricsDecodeError | TinybirdError | EffectDrizzleQueryError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalServerError"},{"$ref":"#/components/schemas/MetricsDecodeError"},{"$ref":"#/components/schemas/TinybirdError"},{"$ref":"#/components/schemas/EffectDrizzleQueryError"}]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"dashboardId":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"fields":{"type":"array","items":{"type":"string"}},"numericFields":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"timeRange":{"anyOf":[{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["relative"]},"maxAgeMs":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["type","maxAgeMs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["absolute"]},"fromMs":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"toMs":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["type","fromMs","toMs"],"additionalProperties":false}]},{"type":"null"}]}},"required":["fields"],"additionalProperties":false}}},"required":true}}},"/v0/metrics/projects-dashboard":{"post":{"tags":["Metrics"],"operationId":"Metrics.getProjectsDashboardData","parameters":[],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"stats":{"type":"object","additionalProperties":{"type":"object","properties":{"events":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"eventsPrevious":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"eventsChange":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"users":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"usersPrevious":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"usersChange":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"errors":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"errorsPrevious":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"errorsChange":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"lastActivity":{"type":"string"}},"required":["events","eventsPrevious","eventsChange","users","usersPrevious","usersChange","errors","errorsPrevious","errorsChange","lastActivity"],"additionalProperties":false}}},"required":["stats"],"additionalProperties":false}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"500":{"description":"InternalServerError | MetricsDecodeError | TinybirdError | EffectDrizzleQueryError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalServerError"},{"$ref":"#/components/schemas/MetricsDecodeError"},{"$ref":"#/components/schemas/TinybirdError"},{"$ref":"#/components/schemas/EffectDrizzleQueryError"}]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectIds":{"type":"array","items":{"type":"string"}}},"required":["projectIds"],"additionalProperties":false}}},"required":true}}},"/v0/metrics/embed/{chartId}":{"get":{"tags":["Metrics"],"operationId":"Metrics.getPublicChartData","parameters":[{"name":"chartId","in":"path","schema":{"type":"string"},"required":true}],"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"chart":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"chartType":{"type":"string","enum":["widget","line","area","bar","pie","map","list","heatmap","radar","scatter"]},"queryConfig":{"anyOf":[{"type":"object","properties":{"primaryMetric":{"anyOf":[{"type":"object","properties":{"field":{"type":"string"},"aggregation":{"type":"string","enum":["sum","avg","min","max","count"]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["field","aggregation"],"additionalProperties":false},{"type":"null"}]},"metrics":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"aggregation":{"type":"string","enum":["sum","avg","min","max","count"]},"label":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["field","aggregation"],"additionalProperties":false}},{"type":"null"}]},"dimensions":{"anyOf":[{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","enum":["time"]},"field":{"type":"string"},"interval":{"type":"string","enum":["minute","hour","day","week","month"]}},"required":["role","field","interval"],"additionalProperties":false},{"type":"object","properties":{"role":{"type":"string","enum":["group"]},"field":{"type":"string"},"limit":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]}},"required":["role","field"],"additionalProperties":false},{"type":"object","properties":{"role":{"type":"string","enum":["series"]},"field":{"type":"string"}},"required":["role","field"],"additionalProperties":false}]}},{"type":"null"}]},"filters":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","starts_with","not_starts_with","ends_with","not_ends_with","greater_than","less_than"]},"value":{"anyOf":[{"type":"string"},{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},{"type":"null"}]},"timeRange":{"anyOf":[{"type":"object","properties":{"maxAgeMs":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"from":{"anyOf":[{"type":"string"},{"type":"null"}]},"to":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"deduplicateServers":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"mode":{"anyOf":[{"type":"string","enum":["history","distribution"]},{"type":"null"}]},"groupLimit":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"visualOptions":{"anyOf":[{"type":"object","properties":{"colors":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"pie":{"anyOf":[{"type":"object","properties":{"style":{"anyOf":[{"type":"string","enum":["pie","donut"]},{"type":"null"}]},"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"showTotal":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"showLabels":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"totalDisplayMode":{"anyOf":[{"type":"string","enum":["sum","count"]},{"type":"null"}]},"drilldown":{"anyOf":[{"type":"object","properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"splitPattern":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"bar":{"anyOf":[{"type":"object","properties":{"stacked":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"orientation":{"anyOf":[{"type":"string","enum":["vertical","horizontal"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"line":{"anyOf":[{"type":"object","properties":{"lineType":{"anyOf":[{"type":"string","enum":["monotone","linear","step"]},{"type":"null"}]},"showDots":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"widget":{"anyOf":[{"type":"object","properties":{"showTrend":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"displayMode":{"anyOf":[{"type":"string","enum":["default","compact"]},{"type":"null"}]},"valueFormat":{"anyOf":[{"type":"string","enum":["number","percent"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"list":{"anyOf":[{"type":"object","properties":{"selectedTabIndex":{"anyOf":[{"type":"number"},{"type":"null"}]},"splitPattern":{"anyOf":[{"type":"string"},{"type":"null"}]},"multiMetric":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"heatmap":{"anyOf":[{"type":"object","properties":{"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"radar":{"anyOf":[{"type":"object","properties":{"showDots":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"fillOpacity":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"gridType":{"anyOf":[{"type":"string","enum":["polygon","circle"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"scatter":{"anyOf":[{"type":"object","properties":{"pointSize":{"anyOf":[{"type":"string","enum":["small","medium","large"]},{"type":"null"}]},"showLegend":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"flowNodes":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"data":{"type":"object"},"position":{"type":"object","properties":{"x":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"y":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"additionalProperties":false}},"required":["id"],"additionalProperties":false}},{"type":"null"}]},"flowEdges":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"source":{"type":"string"},"target":{"type":"string"}},"required":["id","source","target"],"additionalProperties":false}},{"type":"null"}]}},"required":["id","name","description","chartType","queryConfig","flowNodes","flowEdges"],"additionalProperties":false},"projectName":{"type":"string"},"projectPreferredChartColors":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"data":{},"flowMeta":{"anyOf":[{"type":"object","properties":{"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"index":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"name":{"type":"string"},"explicitName":{"anyOf":[{"type":"string"},{"type":"null"}]},"iconSetId":{"anyOf":[{"type":"string"},{"type":"null"}]},"splitPattern":{"anyOf":[{"type":"string"},{"type":"null"}]},"splitDataSource":{"anyOf":[{"type":"string"},{"type":"null"}]},"groupField":{"anyOf":[{"type":"string"},{"type":"null"}]},"primaryMetric":{"anyOf":[{"type":"object","properties":{"field":{"type":"string"},"aggregation":{"type":"string"}},"required":["field","aggregation"],"additionalProperties":false},{"type":"null"}]}},"required":["id","index","name","iconSetId"],"additionalProperties":false}},"hasTimeGroup":{"type":"boolean"},"hasBreakdownTimeSeries":{"type":"boolean"},"datasourceFields":{"type":"array","items":{"type":"string"}},"splitLabelSeparator":{"type":"string"},"timeGroupInterval":{"anyOf":[{"type":"string","enum":["minute","hour","day","week","month","auto"]},{"type":"null"}]}},"required":["outputs","hasTimeGroup","hasBreakdownTimeSeries","datasourceFields","splitLabelSeparator"],"additionalProperties":false},{"type":"null"}]}},"required":["chart","projectName","projectPreferredChartColors","data"],"additionalProperties":false}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"500":{"description":"InternalServerError | MetricsDecodeError | TinybirdError | EffectDrizzleQueryError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalServerError"},{"$ref":"#/components/schemas/MetricsDecodeError"},{"$ref":"#/components/schemas/TinybirdError"},{"$ref":"#/components/schemas/EffectDrizzleQueryError"}]}}}}}}},"/v0/project/{idOrSlug}/funnels":{"get":{"tags":["Funnels"],"operationId":"Funnels.listFunnels","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FunnelRecord"}}}}},"400":{"description":"FunnelValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}},"post":{"tags":["Funnels"],"operationId":"Funnels.createFunnel","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"FunnelRecord","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelRecord"}}}},"400":{"description":"FunnelValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"steps":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"anyOf":[{"type":"string","enum":["event"]},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"match":{"type":"string","enum":["all","any"]},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","starts_with","not_starts_with","ends_with","not_ends_with","greater_than","less_than"]},"value":{"anyOf":[{"type":"string"},{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}}},"required":["id","name","match","filters"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["feature_flag"]},"id":{"type":"string"},"name":{"type":"string"},"featureFlagId":{"type":"string"},"flagKey":{"type":"string"},"flagMatch":{"type":"string","enum":["set","unset","value"]},"value":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","id","name","featureFlagId","flagKey","flagMatch"],"additionalProperties":false}]}},"conversionWindowSeconds":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"strictOrder":{"type":"boolean"},"timeRangeSeconds":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["name","steps","conversionWindowSeconds","strictOrder","timeRangeSeconds"],"additionalProperties":false}}},"required":true}}},"/v0/project/{idOrSlug}/funnels/{id}":{"get":{"tags":["Funnels"],"operationId":"Funnels.getFunnel","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"FunnelDetail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelDetail"}}}},"400":{"description":"FunnelValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}},"patch":{"tags":["Funnels"],"operationId":"Funnels.updateFunnel","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"FunnelRecord","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelRecord"}}}},"400":{"description":"FunnelValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"steps":{"anyOf":[{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"anyOf":[{"type":"string","enum":["event"]},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"match":{"type":"string","enum":["all","any"]},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","starts_with","not_starts_with","ends_with","not_ends_with","greater_than","less_than"]},"value":{"anyOf":[{"type":"string"},{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}}},"required":["id","name","match","filters"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["feature_flag"]},"id":{"type":"string"},"name":{"type":"string"},"featureFlagId":{"type":"string"},"flagKey":{"type":"string"},"flagMatch":{"type":"string","enum":["set","unset","value"]},"value":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","id","name","featureFlagId","flagKey","flagMatch"],"additionalProperties":false}]}},{"type":"null"}]},"conversionWindowSeconds":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"strictOrder":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"timeRangeSeconds":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]}},"additionalProperties":false}}},"required":true}},"delete":{"tags":["Funnels"],"operationId":"Funnels.deleteFunnel","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"FunnelValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/funnels/{id}/duplicate":{"post":{"tags":["Funnels"],"operationId":"Funnels.duplicateFunnel","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"FunnelRecord","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelRecord"}}}},"400":{"description":"FunnelValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/data-sources":{"get":{"tags":["DataSources"],"operationId":"DataSources.listDataSources","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DataSourceRecord"}}}}},"400":{"description":"DataSourceValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}},"post":{"tags":["DataSources"],"operationId":"DataSources.createDataSource","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"DataSourceRecord","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceRecord"}}}},"400":{"description":"DataSourceValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"referenceId":{"type":"string","allOf":[{"minLength":1},{"pattern":"^[a-z0-9_]+$"}]},"dataType":{"type":"string","enum":["number","string","boolean"]},"regex":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"allowNegative":{"anyOf":[{"anyOf":[{"type":"boolean"},{"type":"null"}]},{"type":"null"}]},"allowFloat":{"anyOf":[{"anyOf":[{"type":"boolean"},{"type":"null"}]},{"type":"null"}]},"minValue":{"anyOf":[{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},{"type":"null"}]},"maxValue":{"anyOf":[{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},{"type":"null"}]},"isArray":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"metricShape":{"type":"string","enum":["scalar","array","map"]}},"required":["name","referenceId","dataType","metricShape"],"additionalProperties":false}}},"required":true}}},"/v0/project/{idOrSlug}/data-sources/{id}":{"patch":{"tags":["DataSources"],"operationId":"DataSources.updateDataSource","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"DataSourceRecord","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceRecord"}}}},"400":{"description":"DataSourceValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"referenceId":{"anyOf":[{"type":"string","allOf":[{"minLength":1},{"pattern":"^[a-z0-9_]+$"}]},{"type":"null"}]},"dataType":{"anyOf":[{"type":"string","enum":["number","string","boolean"]},{"type":"null"}]},"regex":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"allowNegative":{"anyOf":[{"anyOf":[{"type":"boolean"},{"type":"null"}]},{"type":"null"}]},"allowFloat":{"anyOf":[{"anyOf":[{"type":"boolean"},{"type":"null"}]},{"type":"null"}]},"minValue":{"anyOf":[{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},{"type":"null"}]},"maxValue":{"anyOf":[{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},{"type":"null"}]},"isArray":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"metricShape":{"type":"string","enum":["scalar","array","map"]}},"required":["metricShape"],"additionalProperties":false}}},"required":true}},"delete":{"tags":["DataSources"],"operationId":"DataSources.deleteDataSource","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"DataSourceValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/network-rules":{"get":{"tags":["NetworkRules"],"operationId":"NetworkRules.listNetworkRules","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NetworkRuleRecord"}}}}},"400":{"description":"NetworkRuleValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkRuleValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}},"post":{"tags":["NetworkRules"],"operationId":"NetworkRules.createNetworkRule","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"NetworkRuleRecord","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkRuleRecord"}}}},"400":{"description":"NetworkRuleValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkRuleValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ipAddress":{"type":"string"},"allowed":{"type":"boolean"}},"required":["ipAddress","allowed"],"additionalProperties":false}}},"required":true}}},"/v0/project/{idOrSlug}/network-rules/{id}":{"delete":{"tags":["NetworkRules"],"operationId":"NetworkRules.deleteNetworkRule","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"NetworkRuleValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkRuleValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/downloads":{"get":{"tags":["Downloads"],"operationId":"Downloads.getDownloadAnalytics","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"dateFrom","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"dateTo","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"versionNumber","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"granularity","in":"query","schema":{"anyOf":[{"type":"string","enum":["day","30min"]},{"type":"null"}]},"required":false}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"DownloadAnalyticsResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadAnalyticsResponse"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"500":{"description":"TinybirdError | EffectDrizzleQueryError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TinybirdError"},{"$ref":"#/components/schemas/EffectDrizzleQueryError"}]}}}}}}},"/v0/project/{idOrSlug}/retention":{"get":{"tags":["Retention"],"operationId":"Retention.getRetentionForProject","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"granularity","in":"query","schema":{"anyOf":[{"type":"string","enum":["day","week"]},{"type":"null"}]},"required":false},{"name":"cohortFrom","in":"query","schema":{"type":"string"},"required":true},{"name":"cohortTo","in":"query","schema":{"type":"string"},"required":true},{"name":"periodCount","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"filters","in":"query","schema":{"anyOf":[{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/RetentionFilter"}},{"type":"string"}]},{"type":"null"}]},"required":false},{"name":"filterMatch","in":"query","schema":{"anyOf":[{"type":"string","enum":["all","any"]},{"type":"null"}]},"required":false},{"name":"source","in":"query","schema":{"type":"string","enum":["web","mods"]},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RetentionCohortData"}}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/retention/drivers":{"get":{"tags":["Retention"],"operationId":"Retention.getRetentionDriversForProject","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"granularity","in":"query","schema":{"anyOf":[{"type":"string","enum":["day","week"]},{"type":"null"}]},"required":false},{"name":"cohortFrom","in":"query","schema":{"type":"string"},"required":true},{"name":"cohortTo","in":"query","schema":{"type":"string"},"required":true},{"name":"targetPeriod","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"source","in":"query","schema":{"type":"string","enum":["web","mods"]},"required":true},{"name":"minSegmentUsers","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RetentionDriverData"}}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/events":{"get":{"tags":["EventExplorer"],"operationId":"EventExplorer.getEventExplorerRows","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"templateId","in":"query","schema":{"anyOf":[{"anyOf":[{"type":"string","enum":["null"]},{"type":"string"}]},{"type":"null"}]},"required":false},{"name":"mode","in":"query","schema":{"anyOf":[{"type":"string","enum":["events","errors","vitals","replays","feature-flags"]},{"type":"null"}]},"required":false},{"name":"page","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"pageSize","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"fromTime","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"toTime","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"EventExplorerResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventExplorerResult"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/users":{"get":{"tags":["Users"],"operationId":"Users.getUsersForProject","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"from","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"to","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"limit","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"offset","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"cohort","in":"query","schema":{"anyOf":[{"type":"string","enum":["identified","anonymous"]},{"type":"null"}]},"required":false}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserListItem"}}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/users/active":{"get":{"tags":["Users"],"operationId":"Users.getUsersActiveTimeseries","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"from","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"to","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"limit","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"offset","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"cohort","in":"query","schema":{"anyOf":[{"type":"string","enum":["identified","anonymous"]},{"type":"null"}]},"required":false}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UsersActiveTimeseriesRow"}}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/users/breakdown":{"get":{"tags":["Users"],"operationId":"Users.getUsersBreakdown","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"UsersBreakdown","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersBreakdown"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/users/key/{userKey}":{"get":{"tags":["Users"],"operationId":"Users.getUserByKey","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"userKey","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UserListItem"},{"type":"null"}]}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/users/sessions":{"post":{"tags":["Users"],"operationId":"Users.getUserSessions","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserSessionEvent"}}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"userIds":{"type":"array","items":{"type":"string"}}},"required":["userIds"],"additionalProperties":false}}},"required":true}}},"/v0/project/{idOrSlug}/users/errors":{"post":{"tags":["Users"],"operationId":"Users.getUserErrors","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserErrorOccurrence"}}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"userIds":{"type":"array","items":{"type":"string"}}},"required":["userIds"],"additionalProperties":false}}},"required":true}}},"/v0/project/{idOrSlug}/users/{userId}":{"delete":{"tags":["Users"],"operationId":"Users.deleteUserData","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"userId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"204":{"description":"<No Content>"},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/users/{userId}/identification":{"delete":{"tags":["Users"],"operationId":"Users.removeUserIdentification","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"userId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"204":{"description":"<No Content>"},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/vitals":{"get":{"tags":["WebVitals"],"operationId":"WebVitals.getWebVitalsForProject","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"from","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"to","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebVitalData"}}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/vitals/build-deployments":{"get":{"tags":["WebVitals"],"operationId":"WebVitals.getBuildDeploymentsForProject","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"from","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"to","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BuildDeploymentData"}}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/vitals/trends":{"get":{"tags":["WebVitals"],"operationId":"WebVitals.getWebVitalsTrends","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"from","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"to","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"bucketMs","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"device","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"browser","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"os","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"country","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"route","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebVitalsTrendPoint"}}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/replays":{"get":{"tags":["SessionReplays"],"operationId":"SessionReplays.listReplays","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"from","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"to","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"pageSize","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"cursorStartedAt","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"cursorSessionId","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"cursorWindowId","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"collectionId","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"userIds","in":"query","schema":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"string"}]},{"type":"null"}]},"required":false}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SessionReplayListItem"}}}}},"400":{"description":"SessionReplaysValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplaysValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}},"delete":{"tags":["SessionReplays"],"operationId":"SessionReplays.deleteAllReplays","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"SessionReplaysValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplaysValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/replays/count":{"get":{"tags":["SessionReplays"],"operationId":"SessionReplays.getReplayCount","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"from","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"to","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"collectionId","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"userIds","in":"query","schema":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"string"}]},{"type":"null"}]},"required":false}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}}}},"400":{"description":"SessionReplaysValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplaysValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/replay-collections":{"get":{"tags":["SessionReplays"],"operationId":"SessionReplays.listReplayCollections","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"includeCounts","in":"query","schema":{"anyOf":[{"type":"string","enum":["true","false"]},{"type":"null"}]},"required":false}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReplayCollectionRecord"}}}}},"400":{"description":"SessionReplaysValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplaysValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}},"post":{"tags":["SessionReplays"],"operationId":"SessionReplays.createReplayCollection","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"ReplayCollectionRecord","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayCollectionRecord"}}}},"400":{"description":"SessionReplaysValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplaysValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"mode":{"type":"string","enum":["manual","automatic"]},"filterConfig":{"anyOf":[{"anyOf":[{"type":"object","properties":{"viewed":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"identifiedState":{"anyOf":[{"type":"string","enum":["identified","anonymous"]},{"type":"null"}]},"browserIn":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"osIn":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"countryIn":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"routeVisitedAny":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"minEventCount":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"maxEventCount":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"minDurationMs":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"hasErrors":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"hasPoorVitals":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"poorVitalMetric":{"anyOf":[{"type":"string"},{"type":"null"}]},"playbackStart":{"anyOf":[{"type":"string","enum":["session_start","matched_event"]},{"type":"null"}]},"datasourceFilters":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"referenceId":{"type":"string"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","greater_than","less_than"]},"value":{"type":"string"},"dataType":{"anyOf":[{"type":"string","enum":["string","number","boolean"]},{"type":"null"}]}},"required":["referenceId","operator","value"],"additionalProperties":false}},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]}},"required":["name","mode"],"additionalProperties":false}}},"required":true}}},"/v0/project/{idOrSlug}/replay-collections/{id}":{"patch":{"tags":["SessionReplays"],"operationId":"SessionReplays.updateReplayCollection","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"ReplayCollectionRecord","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayCollectionRecord"}}}},"400":{"description":"SessionReplaysValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplaysValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"anyOf":[{"type":"string","enum":["manual","automatic"]},{"type":"null"}]},"filterConfig":{"anyOf":[{"anyOf":[{"type":"object","properties":{"viewed":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"identifiedState":{"anyOf":[{"type":"string","enum":["identified","anonymous"]},{"type":"null"}]},"browserIn":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"osIn":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"countryIn":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"routeVisitedAny":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"minEventCount":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"maxEventCount":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"minDurationMs":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"hasErrors":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"hasPoorVitals":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"poorVitalMetric":{"anyOf":[{"type":"string"},{"type":"null"}]},"playbackStart":{"anyOf":[{"type":"string","enum":["session_start","matched_event"]},{"type":"null"}]},"datasourceFilters":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"referenceId":{"type":"string"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","greater_than","less_than"]},"value":{"type":"string"},"dataType":{"anyOf":[{"type":"string","enum":["string","number","boolean"]},{"type":"null"}]}},"required":["referenceId","operator","value"],"additionalProperties":false}},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]}},"additionalProperties":false}}},"required":true}},"delete":{"tags":["SessionReplays"],"operationId":"SessionReplays.deleteReplayCollection","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"SessionReplaysValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplaysValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/replays/{sessionId}/{windowId}/collection-assignments":{"get":{"tags":["SessionReplays"],"operationId":"SessionReplays.listReplayCollectionAssignments","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"sessionId","in":"path","schema":{"type":"string"},"required":true},{"name":"windowId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"ReplayCollectionAssignmentsResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayCollectionAssignmentsResponse"}}}},"400":{"description":"SessionReplaysValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplaysValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}},"put":{"tags":["SessionReplays"],"operationId":"SessionReplays.setReplayCollectionAssignments","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"sessionId","in":"path","schema":{"type":"string"},"required":true},{"name":"windowId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"ReplayCollectionAssignmentsResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayCollectionAssignmentsResponse"}}}},"400":{"description":"SessionReplaysValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplaysValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"collectionIds":{"type":"array","items":{"type":"string"}}},"required":["collectionIds"],"additionalProperties":false}}},"required":true}}},"/v0/project/{idOrSlug}/replays/{sessionId}/{windowId}/events":{"get":{"tags":["SessionReplays"],"operationId":"SessionReplays.getReplayEventsPage","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"sessionId","in":"path","schema":{"type":"string"},"required":true},{"name":"windowId","in":"path","schema":{"type":"string"},"required":true},{"name":"cursorId","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"cursorSequence","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"cursorFirstEventTimestampMs","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"cursorCreatedAt","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"limitChunks","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false},{"name":"pageBytes","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"ReplayEventsPageResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayEventsPageResponse"}}}},"400":{"description":"SessionReplaysValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplaysValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/replays/{sessionId}/errors":{"get":{"tags":["SessionReplays"],"operationId":"SessionReplays.getSessionErrors","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"sessionId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SessionError"}}}}},"400":{"description":"SessionReplaysValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplaysValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/replays/{sessionId}/vitals":{"get":{"tags":["SessionReplays"],"operationId":"SessionReplays.getSessionVitals","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"sessionId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SessionVital"}}}}},"400":{"description":"SessionReplaysValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplaysValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/replays/{sessionId}/{windowId}":{"delete":{"tags":["SessionReplays"],"operationId":"SessionReplays.deleteReplay","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"sessionId","in":"path","schema":{"type":"string"},"required":true},{"name":"windowId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"SessionReplaysValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplaysValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}},"/v0/project/{idOrSlug}/replays/{sessionId}/{windowId}/viewed":{"post":{"tags":["SessionReplays"],"operationId":"SessionReplays.markReplayViewed","parameters":[{"name":"idOrSlug","in":"path","schema":{"type":"string"},"required":true},{"name":"sessionId","in":"path","schema":{"type":"string"},"required":true},{"name":"windowId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKeyAuth":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"SessionReplaysValidationError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplaysValidationError"}}}},"401":{"description":"UnauthorizedError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"NotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}}}}},"components":{"schemas":{"PublicProjectStatsRecord":{"type":"object","properties":{"projectId":{"type":"string"},"name":{"type":"string"},"onlineServers":{"type":"number","allOf":[{"minimum":0}]},"totalServers7d":{"type":"number","allOf":[{"minimum":0}]},"onlinePlayers":{"type":"number","allOf":[{"minimum":0}]}},"required":["projectId","name","onlineServers","totalServers7d","onlinePlayers"],"additionalProperties":false,"description":"Public project server and player stats."},"NotFoundError":{"type":"object","properties":{"_tag":{"type":"string","enum":["NotFoundError"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"ProjectValidationError":{"type":"object","properties":{"_tag":{"type":"string","enum":["ProjectValidationError"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"ProjectConflictError":{"type":"object","properties":{"_tag":{"type":"string","enum":["ProjectConflictError"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"UnauthorizedError":{"type":"object","properties":{"_tag":{"type":"string","enum":["UnauthorizedError"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"ForbiddenError":{"type":"object","properties":{"_tag":{"type":"string","enum":["ForbiddenError"]},"message":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["_tag","message"],"additionalProperties":false},"DashboardRecord":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"isPublic":{"type":"boolean"},"isDefault":{"type":"boolean"},"position":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","projectId","name","description","isPublic","isDefault","position","createdAt","updatedAt"],"additionalProperties":false},"DashboardValidationError":{"type":"object","properties":{"_tag":{"type":"string","enum":["DashboardValidationError"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"ChartValidationError":{"type":"object","properties":{"_tag":{"type":"string","enum":["ChartValidationError"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"InternalServerError":{"type":"object","properties":{"_tag":{"type":"string","enum":["InternalServerError"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"MetricsDecodeError":{"type":"object","properties":{"_tag":{"type":"string","enum":["MetricsDecodeError"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"TinybirdError":{"type":"object","properties":{"_tag":{"type":"string","enum":["TinybirdError"]},"message":{"type":"string"},"cause":{"anyOf":[{},{"type":"null"}]}},"required":["_tag","message"],"additionalProperties":false},"EffectDrizzleQueryError":{"type":"object","properties":{"_tag":{"type":"string","enum":["EffectDrizzleQueryError"]},"query":{"type":"string"},"params":{"type":"array"},"cause":{}},"required":["_tag","query","params","cause"],"additionalProperties":false},"FunnelRecord":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"steps":{"anyOf":[{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"anyOf":[{"type":"string","enum":["event"]},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"match":{"type":"string","enum":["all","any"]},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","starts_with","not_starts_with","ends_with","not_ends_with","greater_than","less_than"]},"value":{"anyOf":[{"type":"string"},{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}}},"required":["id","name","match","filters"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["feature_flag"]},"id":{"type":"string"},"name":{"type":"string"},"featureFlagId":{"type":"string"},"flagKey":{"type":"string"},"flagMatch":{"type":"string","enum":["set","unset","value"]},"value":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","id","name","featureFlagId","flagKey","flagMatch"],"additionalProperties":false}]}},{"type":"null"}]},"conversionWindowSeconds":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"strictOrder":{"type":"boolean"},"timeRangeSeconds":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","projectId","name","description","steps","conversionWindowSeconds","strictOrder","timeRangeSeconds","createdAt","updatedAt"],"additionalProperties":false},"FunnelValidationError":{"type":"object","properties":{"_tag":{"type":"string","enum":["FunnelValidationError"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"FunnelStepResult":{"type":"object","properties":{"count":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"conversionRate":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"dropOffRate":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["count","conversionRate","dropOffRate"],"additionalProperties":false},"FunnelDetail":{"type":"object","properties":{"funnel":{"$ref":"#/components/schemas/FunnelRecord"},"baselineCount":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"steps":{"type":"array","items":{"$ref":"#/components/schemas/FunnelStepResult"}}},"required":["funnel","steps"],"additionalProperties":false},"DataSourceRecord":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"name":{"type":"string"},"referenceId":{"type":"string"},"dataType":{"type":"string","enum":["number","string","boolean"]},"regex":{"anyOf":[{"type":"string"},{"type":"null"}]},"allowNegative":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"allowFloat":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"minValue":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"maxValue":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"isArray":{"type":"boolean"},"metricShape":{"type":"string","enum":["scalar","array","map"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","projectId","name","referenceId","dataType","regex","allowNegative","allowFloat","minValue","maxValue","isArray","metricShape","createdAt","updatedAt"],"additionalProperties":false},"DataSourceValidationError":{"type":"object","properties":{"_tag":{"type":"string","enum":["DataSourceValidationError"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"NetworkRuleRecord":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"ipAddress":{"type":"string"},"allowed":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","projectId","ipAddress","allowed","createdAt"],"additionalProperties":false},"NetworkRuleValidationError":{"type":"object","properties":{"_tag":{"type":"string","enum":["NetworkRuleValidationError"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"DownloadAnalyticsOverview":{"type":"object","properties":{"totalDownloads":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"providersTracked":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"projectsTracked":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"latestSnapshotAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["totalDownloads","providersTracked","projectsTracked","latestSnapshotAt"],"additionalProperties":false},"DownloadAnalyticsPoint":{"type":"object","properties":{"bucket":{"type":"string"},"downloads":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"provider":{"anyOf":[{"anyOf":[{"type":"string","enum":["modrinth","spigot","hangar","ore","curseforge","github"]},{"type":"null"}]},{"type":"null"}]}},"required":["bucket","downloads"],"additionalProperties":false},"DownloadProviderSummary":{"type":"object","properties":{"provider":{"type":"string","enum":["modrinth","spigot","hangar","ore","curseforge","github"]},"downloads":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"latestSnapshotAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"followers":{"anyOf":[{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},{"type":"null"}]},"views":{"anyOf":[{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},{"type":"null"}]},"watchers":{"anyOf":[{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},{"type":"null"}]},"stars":{"anyOf":[{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},{"type":"null"}]},"thumbsUpCount":{"anyOf":[{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},{"type":"null"}]}},"required":["provider","downloads","latestSnapshotAt"],"additionalProperties":false},"DownloadVersionRow":{"type":"object","properties":{"provider":{"type":"string","enum":["modrinth","spigot","hangar","ore","curseforge","github"]},"externalId":{"type":"string"},"versionId":{"type":"string"},"versionNumber":{"type":"string"},"downloads":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"latestSnapshotAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"releaseDate":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["provider","externalId","versionId","versionNumber","downloads","latestSnapshotAt","releaseDate"],"additionalProperties":false},"DownloadAnalyticsResponse":{"type":"object","properties":{"overview":{"$ref":"#/components/schemas/DownloadAnalyticsOverview"},"history":{"type":"array","items":{"$ref":"#/components/schemas/DownloadAnalyticsPoint"}},"providerBreakdown":{"type":"array","items":{"$ref":"#/components/schemas/DownloadAnalyticsPoint"}},"providerSummaries":{"type":"array","items":{"$ref":"#/components/schemas/DownloadProviderSummary"}},"versions":{"type":"array","items":{"$ref":"#/components/schemas/DownloadVersionRow"}}},"required":["overview","history","providerBreakdown","providerSummaries","versions"],"additionalProperties":false},"RetentionFilter":{"type":"object","properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","starts_with","not_starts_with","ends_with","not_ends_with","greater_than","less_than"]},"value":{"anyOf":[{"anyOf":[{"type":"string","allOf":[{"pattern":"^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"string","enum":["true","false"]},{"type":"string"}]},"dataType":{"type":"string","enum":["string","number","boolean"]}},"required":["field","operator","value","dataType"],"additionalProperties":false},"RetentionCohortPeriod":{"type":"object","properties":{"period":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"usersRetained":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"retentionRate":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["period","usersRetained","retentionRate"],"additionalProperties":false},"RetentionCohortData":{"type":"object","properties":{"cohort":{"type":"string"},"cohortDate":{"type":"string"},"users":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"periods":{"type":"array","items":{"$ref":"#/components/schemas/RetentionCohortPeriod"}}},"required":["cohort","cohortDate","users","periods"],"additionalProperties":false},"RetentionDriverData":{"type":"object","properties":{"source":{"type":"string","enum":["web","mods"]},"field":{"type":"string"},"value":{"type":"string"},"cohortUsers":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"retainedUsers":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"retentionRate":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"baselineRate":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"deltaPoints":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"impactScore":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["source","field","value","cohortUsers","retainedUsers","retentionRate","baselineRate","deltaPoints","impactScore"],"additionalProperties":false},"EventExplorerRow":{"type":"object","properties":{"id":{"type":"string"},"timestamp":{"type":"string"},"fieldValues":{"type":"object","additionalProperties":{"type":"string"}},"rawData":{"type":"string"}},"required":["id","timestamp","fieldValues","rawData"],"additionalProperties":false},"EventExplorerResult":{"type":"object","properties":{"rows":{"type":"array","items":{"$ref":"#/components/schemas/EventExplorerRow"}},"total":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"page":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"pageSize":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["rows","total","page","pageSize"],"additionalProperties":false},"UserListItem":{"type":"object","properties":{"userKey":{"type":"string"},"userId":{"type":"string"},"userIds":{"type":"array","items":{"type":"string"}},"firstSeen":{"type":"string"},"lastSeen":{"type":"string"},"eventCount":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"activeDays":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"browser":{"type":"string"},"os":{"type":"string"},"country":{"type":"string"},"device":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"traits":{"anyOf":[{"type":"object"},{"type":"null"}]},"serverCount":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]}},"required":["userKey","userId","userIds","firstSeen","lastSeen","eventCount","activeDays","browser","os","country","device","externalId","email","name","phone","avatarUrl","traits"],"additionalProperties":false},"UsersActiveTimeseriesRow":{"type":"object","properties":{"date":{"type":"string"},"dau":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"mau":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["date","dau","mau"],"additionalProperties":false},"UsersBreakdown":{"type":"object","properties":{"total":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"identified":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"anonymous":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"totalEvents":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"avgEvents":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"activeToday":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["total","identified","anonymous","totalEvents","avgEvents","activeToday"],"additionalProperties":false},"UserSessionEvent":{"type":"object","properties":{"userId":{"type":"string"},"sessionId":{"anyOf":[{"type":"string"},{"type":"null"}]},"data":{"type":"object"},"createdAt":{"type":"string"}},"required":["userId","sessionId","data","createdAt"],"additionalProperties":false},"UserErrorOccurrence":{"type":"object","properties":{"id":{"type":"string"},"sessionId":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"},"issueHash":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","sessionId","message","issueHash","createdAt"],"additionalProperties":false},"WebVitalData":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"sessionId":{"anyOf":[{"type":"string"},{"type":"null"}]},"metric":{"type":"string"},"value":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"label":{"type":"string"},"device":{"anyOf":[{"type":"string"},{"type":"null"}]},"country":{"anyOf":[{"type":"string"},{"type":"null"}]},"os":{"anyOf":[{"type":"string"},{"type":"null"}]},"browser":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"attributes":{"anyOf":[{"type":"object"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","projectId","sessionId","metric","value","label","device","country","os","browser","url","attributes","createdAt"],"additionalProperties":false},"BuildDeploymentData":{"type":"object","properties":{"buildId":{"type":"string"},"deployedAt":{"type":"string"}},"required":["buildId","deployedAt"],"additionalProperties":false},"WebVitalsTrendPoint":{"type":"object","properties":{"bucketStart":{"type":"string"},"metric":{"type":"string"},"samples":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"p75":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"p90":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"p99":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["bucketStart","metric","samples","p75","p90","p99"],"additionalProperties":false},"SessionReplayListItem":{"type":"object","properties":{"sessionId":{"type":"string"},"windowId":{"type":"string"},"identifier":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"startedAt":{"type":"string"},"endedAt":{"type":"string"},"eventCount":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"snapshotCount":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"actualDuration":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"browser":{"anyOf":[{"type":"string"},{"type":"null"}]},"country":{"anyOf":[{"type":"string"},{"type":"null"}]},"os":{"anyOf":[{"type":"string"},{"type":"null"}]},"viewed":{"type":"boolean"}},"required":["sessionId","windowId","identifier","externalId","email","name","startedAt","endedAt","eventCount","snapshotCount","actualDuration","browser","country","os","viewed"],"additionalProperties":false},"SessionReplaysValidationError":{"type":"object","properties":{"_tag":{"type":"string","enum":["SessionReplaysValidationError"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"ReplayCollectionRecord":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"name":{"type":"string"},"mode":{"type":"string","enum":["manual","automatic"]},"filterConfig":{"anyOf":[{"type":"object","properties":{"viewed":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"identifiedState":{"anyOf":[{"type":"string","enum":["identified","anonymous"]},{"type":"null"}]},"browserIn":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"osIn":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"countryIn":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"routeVisitedAny":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"minEventCount":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"maxEventCount":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"minDurationMs":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"maxDurationMs":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"hasErrors":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"hasPoorVitals":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"poorVitalMetric":{"anyOf":[{"type":"string"},{"type":"null"}]},"playbackStart":{"anyOf":[{"type":"string","enum":["session_start","matched_event"]},{"type":"null"}]},"datasourceFilters":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"referenceId":{"type":"string"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains","greater_than","less_than"]},"value":{"type":"string"},"dataType":{"anyOf":[{"type":"string","enum":["string","number","boolean"]},{"type":"null"}]}},"required":["referenceId","operator","value"],"additionalProperties":false}},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"position":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"defaultKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"updatedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"replayCount":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]}},"required":["id","projectId","name","mode","filterConfig","position","defaultKey","createdBy","updatedBy","createdAt","updatedAt"],"additionalProperties":false},"ReplayCollectionAssignmentsResponse":{"type":"object","properties":{"sessionId":{"type":"string"},"windowId":{"type":"string"},"collectionIds":{"type":"array","items":{"type":"string"}}},"required":["sessionId","windowId","collectionIds"],"additionalProperties":false},"ReplayEventsPageResponse":{"type":"object","properties":{"sessionId":{"type":"string"},"windowId":{"type":"string"},"events":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"object"}]}},"routeSpans":{"type":"array","items":{"type":"object","properties":{"route":{"type":"string"},"from":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"to":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"count":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["route","from","to","count"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"sequence":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"firstEventTimestampMs":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"createdAt":{"type":"string"}},"required":["id","sequence","firstEventTimestampMs","createdAt"],"additionalProperties":false},{"type":"null"}]},"hasMore":{"type":"boolean"},"loadedFrom":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]},"loadedTo":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},{"type":"null"}]}},"required":["sessionId","windowId","events","routeSpans","nextCursor","hasMore","loadedFrom","loadedTo"],"additionalProperties":false},"SessionError":{"type":"object","properties":{"id":{"type":"string"},"errorId":{"type":"string"},"count":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"errorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","errorId","count","errorName","createdAt"],"additionalProperties":false},"SessionVital":{"type":"object","properties":{"id":{"type":"string"},"metric":{"type":"string"},"value":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","enum":["NaN"]},{"type":"string","enum":["Infinity"]},{"type":"string","enum":["-Infinity"]}]},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"label":{"type":"string"},"url":{"type":"string"},"attributes":{"anyOf":[{"type":"object"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","metric","value","label","url","attributes","createdAt"],"additionalProperties":false}},"securitySchemes":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header."}}},"security":[],"tags":[{"name":"Projects"},{"name":"Dashboards"},{"name":"Charts"},{"name":"Metrics"},{"name":"Funnels"},{"name":"DataSources"},{"name":"NetworkRules"},{"name":"Downloads"},{"name":"Retention"},{"name":"EventExplorer"},{"name":"Users"},{"name":"WebVitals"},{"name":"SessionReplays"}],"servers":[{"url":"https://api.faststats.dev"}]}