update openapi docs
This commit is contained in:
1 parent
abec4e6c70
commit
3c2b571313
12 files changed
+41
-15
No files matched your search
+27
-1
@@ -3,7 +3,7 @@
|
|||||||
"info": {
|
"info": {
|
||||||
"title": "Checkmate API",
|
"title": "Checkmate API",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Generated from Zod validation schemas. Source of truth: server/src/validation/*.ts"
|
"description": "Generated from Zod validation schemas. Source of truth: server/src/api/validation/*.ts"
|
||||||
},
|
},
|
||||||
"servers": [
|
"servers": [
|
||||||
{
|
{
|
||||||
@@ -398,6 +398,12 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"customUpCodes": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
},
|
||||||
"secret": {
|
"secret": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
@@ -7016,6 +7022,13 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"customUpCodes": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"default": []
|
||||||
|
},
|
||||||
"secret": {
|
"secret": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
@@ -7685,6 +7698,13 @@
|
|||||||
},
|
},
|
||||||
"default": []
|
"default": []
|
||||||
},
|
},
|
||||||
|
"customUpCodes": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"default": []
|
||||||
|
},
|
||||||
"secret": {
|
"secret": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
@@ -8209,6 +8229,12 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"customUpCodes": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
},
|
||||||
"secret": {
|
"secret": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export function getOpenApiSpec(): JsonObject {
|
|||||||
info: {
|
info: {
|
||||||
title: "Checkmate API",
|
title: "Checkmate API",
|
||||||
version: "1.0.0",
|
version: "1.0.0",
|
||||||
description: "Generated from Zod validation schemas. Source of truth: server/src/validation/*.ts",
|
description: "Generated from Zod validation schemas. Source of truth: server/src/api/validation/*.ts",
|
||||||
},
|
},
|
||||||
servers: [{ url: "/api/v1", description: "Current server" }],
|
servers: [{ url: "/api/v1", description: "Current server" }],
|
||||||
tags: [
|
tags: [
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
recoveryValidation,
|
recoveryValidation,
|
||||||
recoveryTokenBodyValidation,
|
recoveryTokenBodyValidation,
|
||||||
newPasswordValidation,
|
newPasswordValidation,
|
||||||
} from "@/validation/authValidation.js";
|
} from "@/api/validation/authValidation.js";
|
||||||
import {
|
import {
|
||||||
getUserByIdParamValidation,
|
getUserByIdParamValidation,
|
||||||
editUserByIdParamValidation,
|
editUserByIdParamValidation,
|
||||||
@@ -16,7 +16,7 @@ import {
|
|||||||
createUserBodyValidation,
|
createUserBodyValidation,
|
||||||
editUserBodyValidation,
|
editUserBodyValidation,
|
||||||
userResponseSchema,
|
userResponseSchema,
|
||||||
} from "@/validation/userValidation.js";
|
} from "@/api/validation/userValidation.js";
|
||||||
|
|
||||||
const tags = ["auth"];
|
const tags = ["auth"];
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
getTeamChecksQueryValidation,
|
getTeamChecksQueryValidation,
|
||||||
deleteChecksParamValidation,
|
deleteChecksParamValidation,
|
||||||
getChecksSummaryByTeamIdQueryValidation,
|
getChecksSummaryByTeamIdQueryValidation,
|
||||||
} from "@/validation/checkValidation.js";
|
} from "@/api/validation/checkValidation.js";
|
||||||
|
|
||||||
const tags = ["checks"];
|
const tags = ["checks"];
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { registry } from "../registry.js";
|
import { registry } from "../registry.js";
|
||||||
import { bearer, okUnknown, standardErrors } from "../helpers.js";
|
import { bearer, okUnknown, standardErrors } from "../helpers.js";
|
||||||
import { getChecksParamValidation, getChecksQueryValidation } from "@/validation/checkValidation.js";
|
import { getChecksParamValidation, getChecksQueryValidation } from "@/api/validation/checkValidation.js";
|
||||||
|
|
||||||
registry.registerPath({
|
registry.registerPath({
|
||||||
method: "get",
|
method: "get",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { registry } from "../registry.js";
|
import { registry } from "../registry.js";
|
||||||
import { bearer, okJson, okJsonNoData, standardErrors } from "../helpers.js";
|
import { bearer, okJson, okJsonNoData, standardErrors } from "../helpers.js";
|
||||||
import { getIncidentsByTeamQueryValidation, getIncidentSummaryQueryValidation } from "@/validation/incidentValidation.js";
|
import { getIncidentsByTeamQueryValidation, getIncidentSummaryQueryValidation } from "@/api/validation/incidentValidation.js";
|
||||||
|
|
||||||
const tags = ["incidents"];
|
const tags = ["incidents"];
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { registry } from "../registry.js";
|
import { registry } from "../registry.js";
|
||||||
import { bearer, json, okJson, okJsonNoData, standardErrors } from "../helpers.js";
|
import { bearer, json, okJson, okJsonNoData, standardErrors } from "../helpers.js";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { inviteBodyValidation, inviteVerificationBodyValidation } from "@/validation/authValidation.js";
|
import { inviteBodyValidation, inviteVerificationBodyValidation } from "@/api/validation/authValidation.js";
|
||||||
|
|
||||||
const tags = ["invite"];
|
const tags = ["invite"];
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
deleteMaintenanceWindowByIdParamValidation,
|
deleteMaintenanceWindowByIdParamValidation,
|
||||||
editMaintenanceWindowByIdParamValidation,
|
editMaintenanceWindowByIdParamValidation,
|
||||||
editMaintenanceByIdWindowBodyValidation,
|
editMaintenanceByIdWindowBodyValidation,
|
||||||
} from "@/validation/maintenanceWindowValidation.js";
|
} from "@/api/validation/maintenanceWindowValidation.js";
|
||||||
|
|
||||||
const tags = ["maintenance-window"];
|
const tags = ["maintenance-window"];
|
||||||
|
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ import {
|
|||||||
getHardwareDetailsByIdParamValidation,
|
getHardwareDetailsByIdParamValidation,
|
||||||
getHardwareDetailsByIdQueryValidation,
|
getHardwareDetailsByIdQueryValidation,
|
||||||
monitorResponseSchema,
|
monitorResponseSchema,
|
||||||
} from "@/validation/monitorValidation.js";
|
} from "@/api/validation/monitorValidation.js";
|
||||||
import { updateNotificationsValidation } from "@/validation/notificationValidation.js";
|
import { updateNotificationsValidation } from "@/api/validation/notificationValidation.js";
|
||||||
|
|
||||||
const tags = ["monitors"];
|
const tags = ["monitors"];
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
getNotificationByIdParamValidation,
|
getNotificationByIdParamValidation,
|
||||||
editNotificationParamValidation,
|
editNotificationParamValidation,
|
||||||
testAllNotificationsBodyValidation,
|
testAllNotificationsBodyValidation,
|
||||||
} from "@/validation/notificationValidation.js";
|
} from "@/api/validation/notificationValidation.js";
|
||||||
|
|
||||||
const tags = ["notifications"];
|
const tags = ["notifications"];
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { registry } from "../registry.js";
|
import { registry } from "../registry.js";
|
||||||
import { bearer, json, okJsonNoData, okUnknown, standardErrors } from "../helpers.js";
|
import { bearer, json, okJsonNoData, okUnknown, standardErrors } from "../helpers.js";
|
||||||
import { updateAppSettingsBodyValidation } from "@/validation/settingsValidation.js";
|
import { updateAppSettingsBodyValidation } from "@/api/validation/settingsValidation.js";
|
||||||
import { sendTestEmailBodyValidation } from "@/validation/notificationValidation.js";
|
import { sendTestEmailBodyValidation } from "@/api/validation/notificationValidation.js";
|
||||||
|
|
||||||
const tags = ["settings"];
|
const tags = ["settings"];
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { registry } from "../registry.js";
|
import { registry } from "../registry.js";
|
||||||
import { bearer, multipart, okJsonNoData, okUnknown, standardErrors } from "../helpers.js";
|
import { bearer, multipart, okJsonNoData, okUnknown, standardErrors } from "../helpers.js";
|
||||||
import { createStatusPageBodyValidation, getStatusPageParamValidation, getStatusPageQueryValidation } from "@/validation/statusPageValidation.js";
|
import { createStatusPageBodyValidation, getStatusPageParamValidation, getStatusPageQueryValidation } from "@/api/validation/statusPageValidation.js";
|
||||||
|
|
||||||
const tags = ["status-page"];
|
const tags = ["status-page"];
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user