mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 19:26:38 +00:00
Add API tag
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-floating-promises */
|
/* eslint-disable @typescript-eslint/no-floating-promises */
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
|
import { ApiDocsTags } from "@app/lib/api-docs";
|
||||||
import { readLimit, writeLimit } from "@app/server/config/rateLimiter";
|
import { readLimit, writeLimit } from "@app/server/config/rateLimiter";
|
||||||
|
|
||||||
export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
|
export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
|
||||||
@@ -13,6 +14,8 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
|
|||||||
rateLimit: readLimit
|
rateLimit: readLimit
|
||||||
},
|
},
|
||||||
schema: {
|
schema: {
|
||||||
|
hide: false,
|
||||||
|
tags: [ApiDocsTags.PkiAcme],
|
||||||
description: "ACME Directory - provides URLs for the client to make API calls to",
|
description: "ACME Directory - provides URLs for the client to make API calls to",
|
||||||
params: z.object({
|
params: z.object({
|
||||||
profileId: z.string().uuid()
|
profileId: z.string().uuid()
|
||||||
@@ -47,6 +50,8 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
|
|||||||
rateLimit: readLimit
|
rateLimit: readLimit
|
||||||
},
|
},
|
||||||
schema: {
|
schema: {
|
||||||
|
hide: false,
|
||||||
|
tags: [ApiDocsTags.PkiAcme],
|
||||||
description: "ACME New Nonce - generate a new nonce and return in Replay-Nonce header",
|
description: "ACME New Nonce - generate a new nonce and return in Replay-Nonce header",
|
||||||
params: z.object({
|
params: z.object({
|
||||||
profileId: z.string().uuid()
|
profileId: z.string().uuid()
|
||||||
@@ -73,6 +78,8 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
|
|||||||
rateLimit: writeLimit
|
rateLimit: writeLimit
|
||||||
},
|
},
|
||||||
schema: {
|
schema: {
|
||||||
|
hide: false,
|
||||||
|
tags: [ApiDocsTags.PkiAcme],
|
||||||
description: "ACME New Account - register a new account or find existing one",
|
description: "ACME New Account - register a new account or find existing one",
|
||||||
params: z.object({
|
params: z.object({
|
||||||
profileId: z.string().uuid()
|
profileId: z.string().uuid()
|
||||||
@@ -120,6 +127,8 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
|
|||||||
rateLimit: writeLimit
|
rateLimit: writeLimit
|
||||||
},
|
},
|
||||||
schema: {
|
schema: {
|
||||||
|
hide: false,
|
||||||
|
tags: [ApiDocsTags.PkiAcme],
|
||||||
description: "ACME New Order - apply for a new certificate",
|
description: "ACME New Order - apply for a new certificate",
|
||||||
params: z.object({
|
params: z.object({
|
||||||
profileId: z.string().uuid()
|
profileId: z.string().uuid()
|
||||||
@@ -174,6 +183,8 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
|
|||||||
rateLimit: writeLimit
|
rateLimit: writeLimit
|
||||||
},
|
},
|
||||||
schema: {
|
schema: {
|
||||||
|
hide: false,
|
||||||
|
tags: [ApiDocsTags.PkiAcme],
|
||||||
description: "ACME Account Deactivation",
|
description: "ACME Account Deactivation",
|
||||||
params: z.object({
|
params: z.object({
|
||||||
profileId: z.string().uuid(),
|
profileId: z.string().uuid(),
|
||||||
@@ -205,6 +216,8 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
|
|||||||
rateLimit: readLimit
|
rateLimit: readLimit
|
||||||
},
|
},
|
||||||
schema: {
|
schema: {
|
||||||
|
hide: false,
|
||||||
|
tags: [ApiDocsTags.PkiAcme],
|
||||||
description: "ACME List Orders - get existing orders from current account",
|
description: "ACME List Orders - get existing orders from current account",
|
||||||
params: z.object({
|
params: z.object({
|
||||||
profileId: z.string().uuid(),
|
profileId: z.string().uuid(),
|
||||||
@@ -233,6 +246,8 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
|
|||||||
rateLimit: readLimit
|
rateLimit: readLimit
|
||||||
},
|
},
|
||||||
schema: {
|
schema: {
|
||||||
|
hide: false,
|
||||||
|
tags: [ApiDocsTags.PkiAcme],
|
||||||
description: "ACME Get Order - return status and details of the order",
|
description: "ACME Get Order - return status and details of the order",
|
||||||
params: z.object({
|
params: z.object({
|
||||||
profileId: z.string().uuid(),
|
profileId: z.string().uuid(),
|
||||||
@@ -275,6 +290,8 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
|
|||||||
rateLimit: writeLimit
|
rateLimit: writeLimit
|
||||||
},
|
},
|
||||||
schema: {
|
schema: {
|
||||||
|
hide: false,
|
||||||
|
tags: [ApiDocsTags.PkiAcme],
|
||||||
description: "ACME Finalize Order - finalize cert order by providing CSR",
|
description: "ACME Finalize Order - finalize cert order by providing CSR",
|
||||||
params: z.object({
|
params: z.object({
|
||||||
profileId: z.string().uuid(),
|
profileId: z.string().uuid(),
|
||||||
@@ -321,6 +338,8 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
|
|||||||
rateLimit: readLimit
|
rateLimit: readLimit
|
||||||
},
|
},
|
||||||
schema: {
|
schema: {
|
||||||
|
hide: false,
|
||||||
|
tags: [ApiDocsTags.PkiAcme],
|
||||||
description: "ACME Download Certificate - download certificate when ready",
|
description: "ACME Download Certificate - download certificate when ready",
|
||||||
params: z.object({
|
params: z.object({
|
||||||
profileId: z.string().uuid(),
|
profileId: z.string().uuid(),
|
||||||
@@ -348,6 +367,8 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
|
|||||||
rateLimit: readLimit
|
rateLimit: readLimit
|
||||||
},
|
},
|
||||||
schema: {
|
schema: {
|
||||||
|
hide: false,
|
||||||
|
tags: [ApiDocsTags.PkiAcme],
|
||||||
description: "ACME Identifier Authorization - get authorization info (challenges)",
|
description: "ACME Identifier Authorization - get authorization info (challenges)",
|
||||||
params: z.object({
|
params: z.object({
|
||||||
profileId: z.string().uuid(),
|
profileId: z.string().uuid(),
|
||||||
@@ -403,6 +424,8 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
|
|||||||
rateLimit: writeLimit
|
rateLimit: writeLimit
|
||||||
},
|
},
|
||||||
schema: {
|
schema: {
|
||||||
|
hide: false,
|
||||||
|
tags: [ApiDocsTags.PkiAcme],
|
||||||
description: "ACME Respond to Challenge - let ACME server know challenge is ready",
|
description: "ACME Respond to Challenge - let ACME server know challenge is ready",
|
||||||
params: z.object({
|
params: z.object({
|
||||||
profileId: z.string().uuid(),
|
profileId: z.string().uuid(),
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ export enum ApiDocsTags {
|
|||||||
PkiCertificateCollections = "PKI Certificate Collections",
|
PkiCertificateCollections = "PKI Certificate Collections",
|
||||||
PkiAlerting = "PKI Alerting",
|
PkiAlerting = "PKI Alerting",
|
||||||
PkiSubscribers = "PKI Subscribers",
|
PkiSubscribers = "PKI Subscribers",
|
||||||
|
PkiAcme = "PKI ACME",
|
||||||
SshCertificates = "SSH Certificates",
|
SshCertificates = "SSH Certificates",
|
||||||
SshCertificateAuthorities = "SSH Certificate Authorities",
|
SshCertificateAuthorities = "SSH Certificate Authorities",
|
||||||
SshCertificateTemplates = "SSH Certificate Templates",
|
SshCertificateTemplates = "SSH Certificate Templates",
|
||||||
|
|||||||
Reference in New Issue
Block a user