Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -12,9 +12,17 @@ const publicOperationAllowlist = new Set([
"GET /status",
"GET /v1/docs",
"GET /v1/openapi.json",
"GET /v1/analytics/public",
"POST /v1/auth/login",
"POST /v1/billing/mollie/webhooks",
]);
// OpenAPI has no Security Scheme location for credentials embedded in a JSON
// request body. These operations document the write-only credential in their
// body schema and must not claim an unrelated header-based auth mechanism.
const requestBodyCredentialOperationAllowlist = new Set([
"POST /v1/webhooks/telephony/aircall",
"POST /v1/webhooks/admin-telephony/aircall",
]);
const optionalAnonymousAllowlist = new Set(["POST /v1/api-keys/validate"]);
export type OpenApiDocument = {
@@ -119,6 +127,10 @@ export function validateOpenApiSecurity(document: OpenApiDocument = openApiDocum
if (operation.security !== undefined && (!Array.isArray(operation.security) || operation.security.length !== 0)) {
violations.push(`${context}: public allowlisted operation must omit security or declare security: []`);
}
} else if (requestBodyCredentialOperationAllowlist.has(allowlistKey)) {
if (operation.security !== undefined && (!Array.isArray(operation.security) || operation.security.length !== 0)) {
violations.push(`${context}: request-body credential operation must omit security or declare security: []`);
}
} else {
if (!hasNonEmptySecurityRequirement(operation.security)) {
violations.push(`${context}: protected operation must declare non-empty security`);