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

@@ -74,7 +74,9 @@ describe("openapi security guard", () => {
const publicDocument = cloneDocument();
operation(publicDocument, "/healthz", "get").security = [{ bearerAuth: [] }];
expect(validateOpenApiSecurity(publicDocument).violations).toContain("GET /healthz getHealthz: public allowlisted operation must omit security or declare security: []");
expect(validateOpenApiSecurity(publicDocument).violations).toContain(
"GET /healthz getHealthz: public allowlisted operation must omit security or declare security: []"
);
const optionalDocument = cloneDocument();
expect(validateOpenApiSecurity(optionalDocument).ok).toBe(true);
@@ -83,8 +85,34 @@ describe("openapi security guard", () => {
operation(anonymousProtectedDocument, "/v1/session/current-user", "get").security = [{ bearerAuth: [] }, {}];
expect(validateOpenApiSecurity(anonymousProtectedDocument).violations).toContain(
"GET /v1/session/current-user getCurrentUserSession: anonymous security requirement is only allowed for optional-auth allowlisted operations",
"GET /v1/session/current-user getCurrentUserSession: anonymous security requirement is only allowed for optional-auth allowlisted operations"
);
});
test("keeps the global analytics overview public without making the ingest token a read credential", () => {
const document = cloneDocument();
operation(document, "/v1/analytics/public", "get").security = [{ analyticsToken: [] }];
expect(validateOpenApiSecurity(document).violations).toContain(
"GET /v1/analytics/public getPublicAnalyticsOverview: public allowlisted operation must omit security or declare security: []"
);
});
test("documents Aircall body-token authentication without inventing a header security scheme", () => {
const document = cloneDocument();
expect(validateOpenApiSecurity(document).ok).toBe(true);
operation(document, "/v1/webhooks/telephony/aircall", "post").security = [{ bearerAuth: [] }];
expect(validateOpenApiSecurity(document).violations).toContain(
"POST /v1/webhooks/telephony/aircall receiveAircallTelephonyWebhook: request-body credential operation must omit security or declare security: []"
);
operation(document, "/v1/webhooks/telephony/aircall", "post").security = [];
operation(document, "/v1/webhooks/admin-telephony/aircall", "post").security = [{ bearerAuth: [] }];
expect(validateOpenApiSecurity(document).violations).toContain(
"POST /v1/webhooks/admin-telephony/aircall receiveAdminAircallTelephonyWebhook: request-body credential operation must omit security or declare security: []"
);
});
});