mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-11 00:12:09 +02:00
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
import { OpenAPIRegistry } from "@asteasolutions/zod-to-openapi";
|
|
|
|
export const registry = new OpenAPIRegistry();
|
|
|
|
export enum OpenAPITags {
|
|
Site = "Site",
|
|
PublicResource = "Public Resource",
|
|
Target = "Resource Target",
|
|
PrivateResource = "Private Resource",
|
|
Client = "Client",
|
|
Org = "Organization",
|
|
Domain = "Domain",
|
|
PublicResourcePolicy = "Public Resource Policy",
|
|
Role = "Role",
|
|
User = "User",
|
|
Rule = "Rule",
|
|
Invitation = "User Invitation",
|
|
AccessToken = "Access Token",
|
|
GlobalIdp = "Identity Provider (Global)",
|
|
OrgIdp = "Identity Provider (Organization Only)",
|
|
ApiKey = "API Key",
|
|
Blueprint = "Blueprint",
|
|
Ssh = "SSH",
|
|
Logs = "Logs",
|
|
EventStreamingDestination = "Event Streaming Destination",
|
|
AlertRule = "Alert Rule",
|
|
HealthCheck = "Health Check",
|
|
PublicResourcePolicyLegacy = "Public Resource Policy (Legacy)",
|
|
PublicResourceLegacy = "Public Resource (Legacy)",
|
|
PrivateResourceLegacy = "Private Resource (Legacy)"
|
|
}
|
|
|
|
// Order here controls the order tags are displayed in Swagger UI
|
|
export const openApiTags = Object.values(OpenAPITags).map((name) => ({
|
|
name
|
|
}));
|