@trycompai/mcp-server 0.3.5 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/mcp-server.js +3242 -2323
- package/bin/mcp-server.js.map +51 -45
- package/esm/funcs/deviceAgentDeviceAgentControllerGetDeviceStatusV1.d.ts +1 -1
- package/esm/funcs/deviceAgentDeviceAgentControllerGetDeviceStatusV1.d.ts.map +1 -1
- package/esm/funcs/deviceAgentDeviceAgentControllerGetDeviceStatusV1.js +3 -3
- package/esm/funcs/deviceAgentDeviceAgentControllerGetDeviceStatusV1.js.map +1 -1
- package/esm/funcs/evidenceFormsEvidenceFormsControllerGetFormWithSubmissionsV1.js +1 -1
- package/esm/funcs/evidenceFormsEvidenceFormsControllerGetFormWithSubmissionsV1.js.map +1 -1
- package/esm/funcs/evidenceFormsEvidenceFormsControllerGetMySubmissionsV1.d.ts +1 -1
- package/esm/funcs/evidenceFormsEvidenceFormsControllerGetMySubmissionsV1.d.ts.map +1 -1
- package/esm/funcs/evidenceFormsEvidenceFormsControllerGetMySubmissionsV1.js +4 -3
- package/esm/funcs/evidenceFormsEvidenceFormsControllerGetMySubmissionsV1.js.map +1 -1
- package/esm/funcs/evidenceFormsEvidenceFormsControllerListSubmissionsV1.d.ts +16 -0
- package/esm/funcs/evidenceFormsEvidenceFormsControllerListSubmissionsV1.d.ts.map +1 -0
- package/esm/funcs/evidenceFormsEvidenceFormsControllerListSubmissionsV1.js +95 -0
- package/esm/funcs/evidenceFormsEvidenceFormsControllerListSubmissionsV1.js.map +1 -0
- package/esm/funcs/findingsFindingsControllerGetOrganizationFindingsV1.js +1 -1
- package/esm/funcs/findingsFindingsControllerGetOrganizationFindingsV1.js.map +1 -1
- package/esm/funcs/findingsFindingsControllerListFindingsV1.js +1 -1
- package/esm/funcs/findingsFindingsControllerListFindingsV1.js.map +1 -1
- package/esm/funcs/integrationsConnectionsControllerListProvidersV1.d.ts +1 -1
- package/esm/funcs/integrationsConnectionsControllerListProvidersV1.d.ts.map +1 -1
- package/esm/funcs/integrationsConnectionsControllerListProvidersV1.js +2 -2
- package/esm/funcs/integrationsConnectionsControllerListProvidersV1.js.map +1 -1
- package/esm/funcs/integrationsSyncControllerGetAvailableSyncProvidersV1.d.ts +1 -1
- package/esm/funcs/integrationsSyncControllerGetAvailableSyncProvidersV1.d.ts.map +1 -1
- package/esm/funcs/integrationsSyncControllerGetAvailableSyncProvidersV1.js +3 -2
- package/esm/funcs/integrationsSyncControllerGetAvailableSyncProvidersV1.js.map +1 -1
- package/esm/funcs/ismsISMSRegistersControllerImportFindingsAsNonconformitiesV1.d.ts +16 -0
- package/esm/funcs/ismsISMSRegistersControllerImportFindingsAsNonconformitiesV1.d.ts.map +1 -0
- package/esm/funcs/ismsISMSRegistersControllerImportFindingsAsNonconformitiesV1.js +90 -0
- package/esm/funcs/ismsISMSRegistersControllerImportFindingsAsNonconformitiesV1.js.map +1 -0
- package/esm/funcs/peoplePeopleControllerGetAllPeopleV1.d.ts +1 -1
- package/esm/funcs/peoplePeopleControllerGetAllPeopleV1.d.ts.map +1 -1
- package/esm/funcs/peoplePeopleControllerGetAllPeopleV1.js +6 -6
- package/esm/funcs/peoplePeopleControllerGetAllPeopleV1.js.map +1 -1
- package/esm/funcs/policiesPoliciesControllerGetPolicyControlsV1.js +1 -1
- package/esm/funcs/policiesPoliciesControllerGetPolicyControlsV1.js.map +1 -1
- package/esm/funcs/policiesPoliciesControllerGetPolicyEvidenceTasksV1.js +1 -1
- package/esm/funcs/policiesPoliciesControllerGetPolicyEvidenceTasksV1.js.map +1 -1
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +6 -2
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/deviceAgentDeviceAgentControllerGetDeviceStatusV1.d.ts +1 -1
- package/esm/mcp-server/tools/deviceAgentDeviceAgentControllerGetDeviceStatusV1.js +1 -1
- package/esm/mcp-server/tools/deviceAgentDeviceAgentControllerGetDeviceStatusV1.js.map +1 -1
- package/esm/mcp-server/tools/evidenceFormsEvidenceFormsControllerGetMySubmissionsV1.d.ts +1 -1
- package/esm/mcp-server/tools/evidenceFormsEvidenceFormsControllerGetMySubmissionsV1.d.ts.map +1 -1
- package/esm/mcp-server/tools/evidenceFormsEvidenceFormsControllerGetMySubmissionsV1.js +2 -1
- package/esm/mcp-server/tools/evidenceFormsEvidenceFormsControllerGetMySubmissionsV1.js.map +1 -1
- package/esm/mcp-server/tools/evidenceFormsEvidenceFormsControllerListSubmissionsV1.d.ts +7 -0
- package/esm/mcp-server/tools/evidenceFormsEvidenceFormsControllerListSubmissionsV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/evidenceFormsEvidenceFormsControllerListSubmissionsV1.js +35 -0
- package/esm/mcp-server/tools/evidenceFormsEvidenceFormsControllerListSubmissionsV1.js.map +1 -0
- package/esm/mcp-server/tools/integrationsConnectionsControllerListProvidersV1.d.ts +1 -1
- package/esm/mcp-server/tools/integrationsConnectionsControllerListProvidersV1.js +1 -1
- package/esm/mcp-server/tools/integrationsConnectionsControllerListProvidersV1.js.map +1 -1
- package/esm/mcp-server/tools/integrationsSyncControllerGetAvailableSyncProvidersV1.d.ts +1 -1
- package/esm/mcp-server/tools/integrationsSyncControllerGetAvailableSyncProvidersV1.d.ts.map +1 -1
- package/esm/mcp-server/tools/integrationsSyncControllerGetAvailableSyncProvidersV1.js +2 -1
- package/esm/mcp-server/tools/integrationsSyncControllerGetAvailableSyncProvidersV1.js.map +1 -1
- package/esm/mcp-server/tools/ismsISMSRegistersControllerImportFindingsAsNonconformitiesV1.d.ts +7 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerImportFindingsAsNonconformitiesV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerImportFindingsAsNonconformitiesV1.js +35 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerImportFindingsAsNonconformitiesV1.js.map +1 -0
- package/esm/mcp-server/tools/peoplePeopleControllerGetAllPeopleV1.d.ts +1 -1
- package/esm/mcp-server/tools/peoplePeopleControllerGetAllPeopleV1.js +1 -1
- package/esm/mcp-server/tools/peoplePeopleControllerGetAllPeopleV1.js.map +1 -1
- package/esm/models/automationscontrollergetautomationversionsv1op.d.ts +2 -2
- package/esm/models/automationscontrollergetautomationversionsv1op.d.ts.map +1 -1
- package/esm/models/automationscontrollergetautomationversionsv1op.js +2 -2
- package/esm/models/automationscontrollergetautomationversionsv1op.js.map +1 -1
- package/esm/models/connectionscontrollerlistprovidersv1op.d.ts +1 -1
- package/esm/models/connectionscontrollerlistprovidersv1op.d.ts.map +1 -1
- package/esm/models/connectionscontrollerlistprovidersv1op.js +1 -1
- package/esm/models/connectionscontrollerlistprovidersv1op.js.map +1 -1
- package/esm/models/controlscontrollerfindonev1op.d.ts +1 -1
- package/esm/models/controlscontrollerfindonev1op.d.ts.map +1 -1
- package/esm/models/controlscontrollerfindonev1op.js +1 -1
- package/esm/models/controlscontrollerfindonev1op.js.map +1 -1
- package/esm/models/controlscontrollerlinkdocumenttypesv1op.d.ts +1 -1
- package/esm/models/controlscontrollerlinkdocumenttypesv1op.d.ts.map +1 -1
- package/esm/models/controlscontrollerlinkdocumenttypesv1op.js +1 -1
- package/esm/models/controlscontrollerlinkdocumenttypesv1op.js.map +1 -1
- package/esm/models/controlscontrollerlinkpoliciesv1op.d.ts +1 -1
- package/esm/models/controlscontrollerlinkpoliciesv1op.d.ts.map +1 -1
- package/esm/models/controlscontrollerlinkpoliciesv1op.js +1 -1
- package/esm/models/controlscontrollerlinkpoliciesv1op.js.map +1 -1
- package/esm/models/controlscontrollerlinktasksv1op.d.ts +1 -1
- package/esm/models/controlscontrollerlinktasksv1op.d.ts.map +1 -1
- package/esm/models/controlscontrollerlinktasksv1op.js +1 -1
- package/esm/models/controlscontrollerlinktasksv1op.js.map +1 -1
- package/esm/models/controlscontrollerunlinkdocumenttypev1op.d.ts +1 -1
- package/esm/models/controlscontrollerunlinkdocumenttypev1op.d.ts.map +1 -1
- package/esm/models/controlscontrollerunlinkdocumenttypev1op.js +1 -1
- package/esm/models/controlscontrollerunlinkdocumenttypev1op.js.map +1 -1
- package/esm/models/createriskdto.d.ts +1 -1
- package/esm/models/createtaskitemdto.d.ts +1 -1
- package/esm/models/deviceagentcontrollergetdevicestatusv1op.d.ts +2 -2
- package/esm/models/deviceagentcontrollergetdevicestatusv1op.d.ts.map +1 -1
- package/esm/models/deviceagentcontrollergetdevicestatusv1op.js +2 -2
- package/esm/models/deviceagentcontrollergetdevicestatusv1op.js.map +1 -1
- package/esm/models/evidenceformscontrollergetformwithsubmissionsv1op.d.ts +212 -3
- package/esm/models/evidenceformscontrollergetformwithsubmissionsv1op.d.ts.map +1 -1
- package/esm/models/evidenceformscontrollergetformwithsubmissionsv1op.js +183 -3
- package/esm/models/evidenceformscontrollergetformwithsubmissionsv1op.js.map +1 -1
- package/esm/models/evidenceformscontrollergetmysubmissionsv1op.d.ts +39 -1
- package/esm/models/evidenceformscontrollergetmysubmissionsv1op.d.ts.map +1 -1
- package/esm/models/evidenceformscontrollergetmysubmissionsv1op.js +36 -1
- package/esm/models/evidenceformscontrollergetmysubmissionsv1op.js.map +1 -1
- package/esm/models/evidenceformscontrollerlistsubmissionsv1op.d.ts +91 -0
- package/esm/models/evidenceformscontrollerlistsubmissionsv1op.d.ts.map +1 -0
- package/esm/models/evidenceformscontrollerlistsubmissionsv1op.js +82 -0
- package/esm/models/evidenceformscontrollerlistsubmissionsv1op.js.map +1 -0
- package/esm/models/findingscontrollergetorganizationfindingsv1op.d.ts +246 -4
- package/esm/models/findingscontrollergetorganizationfindingsv1op.d.ts.map +1 -1
- package/esm/models/findingscontrollergetorganizationfindingsv1op.js +225 -4
- package/esm/models/findingscontrollergetorganizationfindingsv1op.js.map +1 -1
- package/esm/models/findingscontrollerlistfindingsv1op.d.ts +258 -16
- package/esm/models/findingscontrollerlistfindingsv1op.d.ts.map +1 -1
- package/esm/models/findingscontrollerlistfindingsv1op.js +239 -13
- package/esm/models/findingscontrollerlistfindingsv1op.js.map +1 -1
- package/esm/models/ismsregisterscontrollercreaterowv1op.d.ts +60 -0
- package/esm/models/ismsregisterscontrollercreaterowv1op.d.ts.map +1 -1
- package/esm/models/ismsregisterscontrollercreaterowv1op.js +60 -0
- package/esm/models/ismsregisterscontrollercreaterowv1op.js.map +1 -1
- package/esm/models/ismsregisterscontrollerdeleterowv1op.d.ts +2 -0
- package/esm/models/ismsregisterscontrollerdeleterowv1op.d.ts.map +1 -1
- package/esm/models/ismsregisterscontrollerdeleterowv1op.js +2 -0
- package/esm/models/ismsregisterscontrollerdeleterowv1op.js.map +1 -1
- package/esm/models/ismsregisterscontrollerimportfindingsasnonconformitiesv1op.d.ts +14 -0
- package/esm/models/ismsregisterscontrollerimportfindingsasnonconformitiesv1op.d.ts.map +1 -0
- package/esm/models/ismsregisterscontrollerimportfindingsasnonconformitiesv1op.js +14 -0
- package/esm/models/ismsregisterscontrollerimportfindingsasnonconformitiesv1op.js.map +1 -0
- package/esm/models/ismsregisterscontrollerupdaterowv1op.d.ts +60 -0
- package/esm/models/ismsregisterscontrollerupdaterowv1op.d.ts.map +1 -1
- package/esm/models/ismsregisterscontrollerupdaterowv1op.js +60 -0
- package/esm/models/ismsregisterscontrollerupdaterowv1op.js.map +1 -1
- package/esm/models/peoplecontrollerdeletememberv1op.d.ts +1 -1
- package/esm/models/peoplecontrollerdeletememberv1op.d.ts.map +1 -1
- package/esm/models/peoplecontrollerdeletememberv1op.js +1 -1
- package/esm/models/peoplecontrollerdeletememberv1op.js.map +1 -1
- package/esm/models/peoplecontrollergetallpeoplev1op.d.ts +5 -5
- package/esm/models/peoplecontrollergetallpeoplev1op.d.ts.map +1 -1
- package/esm/models/peoplecontrollergetallpeoplev1op.js +5 -5
- package/esm/models/peoplecontrollergetallpeoplev1op.js.map +1 -1
- package/esm/models/policiescontrollergetpolicycontrolsv1op.d.ts +58 -0
- package/esm/models/policiescontrollergetpolicycontrolsv1op.d.ts.map +1 -1
- package/esm/models/policiescontrollergetpolicycontrolsv1op.js +42 -0
- package/esm/models/policiescontrollergetpolicycontrolsv1op.js.map +1 -1
- package/esm/models/policiescontrollergetpolicyevidencetasksv1op.d.ts +104 -0
- package/esm/models/policiescontrollergetpolicyevidencetasksv1op.d.ts.map +1 -1
- package/esm/models/policiescontrollergetpolicyevidencetasksv1op.js +90 -0
- package/esm/models/policiescontrollergetpolicyevidencetasksv1op.js.map +1 -1
- package/esm/models/riskscontrollercreateriskv1op.d.ts +1 -1
- package/esm/models/riskscontrollergetallrisksv1op.d.ts +2 -2
- package/esm/models/riskscontrollergetriskbyidv1op.d.ts +1 -1
- package/esm/models/riskscontrollerupdateriskv1op.d.ts +1 -1
- package/esm/models/searchresultdto.d.ts +1 -1
- package/esm/models/synccontrollergetavailablesyncprovidersv1op.d.ts +17 -1
- package/esm/models/synccontrollergetavailablesyncprovidersv1op.d.ts.map +1 -1
- package/esm/models/synccontrollergetavailablesyncprovidersv1op.js +12 -1
- package/esm/models/synccontrollergetavailablesyncprovidersv1op.js.map +1 -1
- package/esm/models/taskintegrationscontrollergettaskcheckrunsv1op.d.ts +1 -1
- package/esm/models/taskintegrationscontrollergettaskcheckrunsv1op.d.ts.map +1 -1
- package/esm/models/taskintegrationscontrollergettaskcheckrunsv1op.js +1 -1
- package/esm/models/taskintegrationscontrollergettaskcheckrunsv1op.js.map +1 -1
- package/esm/models/taskitemresponsedto.d.ts +1 -1
- package/esm/models/taskmanagementcontrollergettaskitemsv1op.d.ts +1 -1
- package/esm/models/taskresponsedto.d.ts +1 -1
- package/esm/models/taskscontrollergettaskactivityv1op.d.ts +2 -2
- package/esm/models/taskscontrollergettaskactivityv1op.d.ts.map +1 -1
- package/esm/models/taskscontrollergettaskactivityv1op.js +3 -2
- package/esm/models/taskscontrollergettaskactivityv1op.js.map +1 -1
- package/esm/models/taskscontrollerreordertasksv1op.d.ts +1 -1
- package/esm/models/taskscontrollerupdatetasksstatusv1op.d.ts +1 -1
- package/esm/models/taskscontrollerupdatetaskv1op.d.ts +1 -1
- package/esm/models/trustaccesscontrollerlistaccessrequestsv1op.d.ts +1 -1
- package/esm/models/updateriskdto.d.ts +1 -1
- package/esm/models/updatetaskitemdto.d.ts +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +12 -4
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/deviceAgentDeviceAgentControllerGetDeviceStatusV1.ts +7 -5
- package/src/funcs/evidenceFormsEvidenceFormsControllerGetFormWithSubmissionsV1.ts +1 -1
- package/src/funcs/evidenceFormsEvidenceFormsControllerGetMySubmissionsV1.ts +6 -5
- package/src/funcs/evidenceFormsEvidenceFormsControllerListSubmissionsV1.ts +165 -0
- package/src/funcs/findingsFindingsControllerGetOrganizationFindingsV1.ts +1 -1
- package/src/funcs/findingsFindingsControllerListFindingsV1.ts +1 -1
- package/src/funcs/integrationsConnectionsControllerListProvidersV1.ts +6 -4
- package/src/funcs/integrationsSyncControllerGetAvailableSyncProvidersV1.ts +5 -4
- package/src/funcs/ismsISMSRegistersControllerImportFindingsAsNonconformitiesV1.ts +158 -0
- package/src/funcs/peoplePeopleControllerGetAllPeopleV1.ts +9 -8
- package/src/funcs/policiesPoliciesControllerGetPolicyControlsV1.ts +1 -1
- package/src/funcs/policiesPoliciesControllerGetPolicyEvidenceTasksV1.ts +1 -1
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +6 -2
- package/src/mcp-server/tools/deviceAgentDeviceAgentControllerGetDeviceStatusV1.ts +1 -1
- package/src/mcp-server/tools/evidenceFormsEvidenceFormsControllerGetMySubmissionsV1.ts +2 -1
- package/src/mcp-server/tools/evidenceFormsEvidenceFormsControllerListSubmissionsV1.ts +45 -0
- package/src/mcp-server/tools/integrationsConnectionsControllerListProvidersV1.ts +1 -1
- package/src/mcp-server/tools/integrationsSyncControllerGetAvailableSyncProvidersV1.ts +2 -1
- package/src/mcp-server/tools/ismsISMSRegistersControllerImportFindingsAsNonconformitiesV1.ts +46 -0
- package/src/mcp-server/tools/peoplePeopleControllerGetAllPeopleV1.ts +1 -1
- package/src/models/automationscontrollergetautomationversionsv1op.ts +6 -4
- package/src/models/connectionscontrollerlistprovidersv1op.ts +4 -2
- package/src/models/controlscontrollerfindonev1op.ts +4 -2
- package/src/models/controlscontrollerlinkdocumenttypesv1op.ts +4 -2
- package/src/models/controlscontrollerlinkpoliciesv1op.ts +4 -2
- package/src/models/controlscontrollerlinktasksv1op.ts +4 -2
- package/src/models/controlscontrollerunlinkdocumenttypev1op.ts +4 -2
- package/src/models/deviceagentcontrollergetdevicestatusv1op.ts +8 -4
- package/src/models/evidenceformscontrollergetformwithsubmissionsv1op.ts +342 -6
- package/src/models/evidenceformscontrollergetmysubmissionsv1op.ts +48 -2
- package/src/models/evidenceformscontrollerlistsubmissionsv1op.ts +162 -0
- package/src/models/findingscontrollergetorganizationfindingsv1op.ts +459 -8
- package/src/models/findingscontrollerlistfindingsv1op.ts +456 -34
- package/src/models/ismsregisterscontrollercreaterowv1op.ts +92 -0
- package/src/models/ismsregisterscontrollerdeleterowv1op.ts +2 -0
- package/src/models/ismsregisterscontrollerimportfindingsasnonconformitiesv1op.ts +39 -0
- package/src/models/ismsregisterscontrollerupdaterowv1op.ts +92 -0
- package/src/models/peoplecontrollerdeletememberv1op.ts +4 -2
- package/src/models/peoplecontrollergetallpeoplev1op.ts +20 -10
- package/src/models/policiescontrollergetpolicycontrolsv1op.ts +114 -0
- package/src/models/policiescontrollergetpolicyevidencetasksv1op.ts +194 -0
- package/src/models/synccontrollergetavailablesyncprovidersv1op.ts +22 -2
- package/src/models/taskintegrationscontrollergettaskcheckrunsv1op.ts +4 -2
- package/src/models/taskscontrollergettaskactivityv1op.ts +5 -4
- package/src/tool-names.ts +12 -4
|
@@ -6,41 +6,40 @@
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
import { ClosedEnum } from "../types/enums.js";
|
|
8
8
|
|
|
9
|
-
export const
|
|
9
|
+
export const FindingsControllerListFindingsV1QueryParamStatus = {
|
|
10
10
|
Open: "open",
|
|
11
11
|
ReadyForReview: "ready_for_review",
|
|
12
12
|
NeedsRevision: "needs_revision",
|
|
13
13
|
Closed: "closed",
|
|
14
14
|
} as const;
|
|
15
|
-
export type
|
|
16
|
-
typeof
|
|
15
|
+
export type FindingsControllerListFindingsV1QueryParamStatus = ClosedEnum<
|
|
16
|
+
typeof FindingsControllerListFindingsV1QueryParamStatus
|
|
17
17
|
>;
|
|
18
18
|
|
|
19
|
-
export const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
export const FindingsControllerListFindingsV1QueryParamStatus$zodSchema = z
|
|
20
|
+
.enum([
|
|
21
|
+
"open",
|
|
22
|
+
"ready_for_review",
|
|
23
|
+
"needs_revision",
|
|
24
|
+
"closed",
|
|
25
|
+
]);
|
|
25
26
|
|
|
26
|
-
export const
|
|
27
|
+
export const QueryParamSeverity = {
|
|
27
28
|
Low: "low",
|
|
28
29
|
Medium: "medium",
|
|
29
30
|
High: "high",
|
|
30
31
|
Critical: "critical",
|
|
31
32
|
} as const;
|
|
32
|
-
export type
|
|
33
|
-
typeof FindingsControllerListFindingsV1Severity
|
|
34
|
-
>;
|
|
33
|
+
export type QueryParamSeverity = ClosedEnum<typeof QueryParamSeverity>;
|
|
35
34
|
|
|
36
|
-
export const
|
|
35
|
+
export const QueryParamSeverity$zodSchema = z.enum([
|
|
37
36
|
"low",
|
|
38
37
|
"medium",
|
|
39
38
|
"high",
|
|
40
39
|
"critical",
|
|
41
40
|
]);
|
|
42
41
|
|
|
43
|
-
export const
|
|
42
|
+
export const QueryParamArea = {
|
|
44
43
|
People: "people",
|
|
45
44
|
Documents: "documents",
|
|
46
45
|
Compliance: "compliance",
|
|
@@ -49,11 +48,9 @@ export const FindingsControllerListFindingsV1Area = {
|
|
|
49
48
|
Policies: "policies",
|
|
50
49
|
Other: "other",
|
|
51
50
|
} as const;
|
|
52
|
-
export type
|
|
53
|
-
typeof FindingsControllerListFindingsV1Area
|
|
54
|
-
>;
|
|
51
|
+
export type QueryParamArea = ClosedEnum<typeof QueryParamArea>;
|
|
55
52
|
|
|
56
|
-
export const
|
|
53
|
+
export const QueryParamArea$zodSchema = z.enum([
|
|
57
54
|
"people",
|
|
58
55
|
"documents",
|
|
59
56
|
"compliance",
|
|
@@ -63,7 +60,7 @@ export const FindingsControllerListFindingsV1Area$zodSchema = z.enum([
|
|
|
63
60
|
"other",
|
|
64
61
|
]);
|
|
65
62
|
|
|
66
|
-
export const
|
|
63
|
+
export const QueryParamEvidenceFormType = {
|
|
67
64
|
BoardMeeting: "board-meeting",
|
|
68
65
|
ItLeadershipMeeting: "it-leadership-meeting",
|
|
69
66
|
RiskCommitteeMeeting: "risk-committee-meeting",
|
|
@@ -78,12 +75,133 @@ export const FindingsControllerListFindingsV1EvidenceFormType = {
|
|
|
78
75
|
TabletopExercise: "tabletop-exercise",
|
|
79
76
|
AccountTypes: "account-types",
|
|
80
77
|
} as const;
|
|
81
|
-
export type
|
|
82
|
-
typeof
|
|
78
|
+
export type QueryParamEvidenceFormType = ClosedEnum<
|
|
79
|
+
typeof QueryParamEvidenceFormType
|
|
83
80
|
>;
|
|
84
81
|
|
|
85
|
-
export const
|
|
82
|
+
export const QueryParamEvidenceFormType$zodSchema = z.enum([
|
|
83
|
+
"board-meeting",
|
|
84
|
+
"it-leadership-meeting",
|
|
85
|
+
"risk-committee-meeting",
|
|
86
|
+
"meeting",
|
|
87
|
+
"access-request",
|
|
88
|
+
"whistleblower-report",
|
|
89
|
+
"penetration-test",
|
|
90
|
+
"rbac-matrix",
|
|
91
|
+
"infrastructure-inventory",
|
|
92
|
+
"employee-performance-evaluation",
|
|
93
|
+
"network-diagram",
|
|
94
|
+
"tabletop-exercise",
|
|
95
|
+
"account-types",
|
|
96
|
+
]);
|
|
97
|
+
|
|
98
|
+
export const FindingsControllerListFindingsV1Type = {
|
|
99
|
+
Soc2: "soc2",
|
|
100
|
+
Iso27001: "iso27001",
|
|
101
|
+
PciDss: "pci_dss",
|
|
102
|
+
Hipaa: "hipaa",
|
|
103
|
+
Gdpr: "gdpr",
|
|
104
|
+
Iso9001: "iso9001",
|
|
105
|
+
Iso42001: "iso42001",
|
|
106
|
+
} as const;
|
|
107
|
+
export type FindingsControllerListFindingsV1Type = ClosedEnum<
|
|
108
|
+
typeof FindingsControllerListFindingsV1Type
|
|
109
|
+
>;
|
|
110
|
+
|
|
111
|
+
export const FindingsControllerListFindingsV1Type$zodSchema = z.enum([
|
|
112
|
+
"soc2",
|
|
113
|
+
"iso27001",
|
|
114
|
+
"pci_dss",
|
|
115
|
+
"hipaa",
|
|
116
|
+
"gdpr",
|
|
117
|
+
"iso9001",
|
|
118
|
+
"iso42001",
|
|
119
|
+
]);
|
|
120
|
+
|
|
121
|
+
export const FindingsControllerListFindingsV1StatusResponse = {
|
|
122
|
+
Open: "open",
|
|
123
|
+
ReadyForReview: "ready_for_review",
|
|
124
|
+
NeedsRevision: "needs_revision",
|
|
125
|
+
Closed: "closed",
|
|
126
|
+
} as const;
|
|
127
|
+
export type FindingsControllerListFindingsV1StatusResponse = ClosedEnum<
|
|
128
|
+
typeof FindingsControllerListFindingsV1StatusResponse
|
|
129
|
+
>;
|
|
130
|
+
|
|
131
|
+
export const FindingsControllerListFindingsV1StatusResponse$zodSchema = z.enum([
|
|
132
|
+
"open",
|
|
133
|
+
"ready_for_review",
|
|
134
|
+
"needs_revision",
|
|
135
|
+
"closed",
|
|
136
|
+
]);
|
|
137
|
+
|
|
138
|
+
export const FindingsControllerListFindingsV1SeverityResponse = {
|
|
139
|
+
Low: "low",
|
|
140
|
+
Medium: "medium",
|
|
141
|
+
High: "high",
|
|
142
|
+
Critical: "critical",
|
|
143
|
+
} as const;
|
|
144
|
+
export type FindingsControllerListFindingsV1SeverityResponse = ClosedEnum<
|
|
145
|
+
typeof FindingsControllerListFindingsV1SeverityResponse
|
|
146
|
+
>;
|
|
147
|
+
|
|
148
|
+
export const FindingsControllerListFindingsV1SeverityResponse$zodSchema = z
|
|
86
149
|
.enum([
|
|
150
|
+
"low",
|
|
151
|
+
"medium",
|
|
152
|
+
"high",
|
|
153
|
+
"critical",
|
|
154
|
+
]);
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Set when the finding is not tied to a specific item
|
|
158
|
+
*/
|
|
159
|
+
export const FindingsControllerListFindingsV1AreaResponse = {
|
|
160
|
+
People: "people",
|
|
161
|
+
Documents: "documents",
|
|
162
|
+
Compliance: "compliance",
|
|
163
|
+
Risks: "risks",
|
|
164
|
+
Vendors: "vendors",
|
|
165
|
+
Policies: "policies",
|
|
166
|
+
Other: "other",
|
|
167
|
+
} as const;
|
|
168
|
+
/**
|
|
169
|
+
* Set when the finding is not tied to a specific item
|
|
170
|
+
*/
|
|
171
|
+
export type FindingsControllerListFindingsV1AreaResponse = ClosedEnum<
|
|
172
|
+
typeof FindingsControllerListFindingsV1AreaResponse
|
|
173
|
+
>;
|
|
174
|
+
|
|
175
|
+
export const FindingsControllerListFindingsV1AreaResponse$zodSchema = z.enum([
|
|
176
|
+
"people",
|
|
177
|
+
"documents",
|
|
178
|
+
"compliance",
|
|
179
|
+
"risks",
|
|
180
|
+
"vendors",
|
|
181
|
+
"policies",
|
|
182
|
+
"other",
|
|
183
|
+
]).describe("Set when the finding is not tied to a specific item");
|
|
184
|
+
|
|
185
|
+
export const FindingsControllerListFindingsV1EvidenceFormTypeResponse = {
|
|
186
|
+
BoardMeeting: "board-meeting",
|
|
187
|
+
ItLeadershipMeeting: "it-leadership-meeting",
|
|
188
|
+
RiskCommitteeMeeting: "risk-committee-meeting",
|
|
189
|
+
Meeting: "meeting",
|
|
190
|
+
AccessRequest: "access-request",
|
|
191
|
+
WhistleblowerReport: "whistleblower-report",
|
|
192
|
+
PenetrationTest: "penetration-test",
|
|
193
|
+
RbacMatrix: "rbac-matrix",
|
|
194
|
+
InfrastructureInventory: "infrastructure-inventory",
|
|
195
|
+
EmployeePerformanceEvaluation: "employee-performance-evaluation",
|
|
196
|
+
NetworkDiagram: "network-diagram",
|
|
197
|
+
TabletopExercise: "tabletop-exercise",
|
|
198
|
+
AccountTypes: "account-types",
|
|
199
|
+
} as const;
|
|
200
|
+
export type FindingsControllerListFindingsV1EvidenceFormTypeResponse =
|
|
201
|
+
ClosedEnum<typeof FindingsControllerListFindingsV1EvidenceFormTypeResponse>;
|
|
202
|
+
|
|
203
|
+
export const FindingsControllerListFindingsV1EvidenceFormTypeResponse$zodSchema =
|
|
204
|
+
z.enum([
|
|
87
205
|
"board-meeting",
|
|
88
206
|
"it-leadership-meeting",
|
|
89
207
|
"risk-committee-meeting",
|
|
@@ -99,15 +217,48 @@ export const FindingsControllerListFindingsV1EvidenceFormType$zodSchema = z
|
|
|
99
217
|
"account-types",
|
|
100
218
|
]);
|
|
101
219
|
|
|
220
|
+
export const FindingsControllerListFindingsV1FormType = {
|
|
221
|
+
BoardMeeting: "board-meeting",
|
|
222
|
+
ItLeadershipMeeting: "it-leadership-meeting",
|
|
223
|
+
RiskCommitteeMeeting: "risk-committee-meeting",
|
|
224
|
+
Meeting: "meeting",
|
|
225
|
+
AccessRequest: "access-request",
|
|
226
|
+
WhistleblowerReport: "whistleblower-report",
|
|
227
|
+
PenetrationTest: "penetration-test",
|
|
228
|
+
RbacMatrix: "rbac-matrix",
|
|
229
|
+
InfrastructureInventory: "infrastructure-inventory",
|
|
230
|
+
EmployeePerformanceEvaluation: "employee-performance-evaluation",
|
|
231
|
+
NetworkDiagram: "network-diagram",
|
|
232
|
+
TabletopExercise: "tabletop-exercise",
|
|
233
|
+
AccountTypes: "account-types",
|
|
234
|
+
} as const;
|
|
235
|
+
export type FindingsControllerListFindingsV1FormType = ClosedEnum<
|
|
236
|
+
typeof FindingsControllerListFindingsV1FormType
|
|
237
|
+
>;
|
|
238
|
+
|
|
239
|
+
export const FindingsControllerListFindingsV1FormType$zodSchema = z.enum([
|
|
240
|
+
"board-meeting",
|
|
241
|
+
"it-leadership-meeting",
|
|
242
|
+
"risk-committee-meeting",
|
|
243
|
+
"meeting",
|
|
244
|
+
"access-request",
|
|
245
|
+
"whistleblower-report",
|
|
246
|
+
"penetration-test",
|
|
247
|
+
"rbac-matrix",
|
|
248
|
+
"infrastructure-inventory",
|
|
249
|
+
"employee-performance-evaluation",
|
|
250
|
+
"network-diagram",
|
|
251
|
+
"tabletop-exercise",
|
|
252
|
+
"account-types",
|
|
253
|
+
]);
|
|
254
|
+
|
|
102
255
|
export type FindingsControllerListFindingsV1Request = {
|
|
103
|
-
status?:
|
|
104
|
-
severity?:
|
|
105
|
-
area?:
|
|
256
|
+
status?: FindingsControllerListFindingsV1QueryParamStatus | undefined;
|
|
257
|
+
severity?: QueryParamSeverity | undefined;
|
|
258
|
+
area?: QueryParamArea | undefined;
|
|
106
259
|
taskId?: string | undefined;
|
|
107
260
|
evidenceSubmissionId?: string | undefined;
|
|
108
|
-
evidenceFormType?:
|
|
109
|
-
| FindingsControllerListFindingsV1EvidenceFormType
|
|
110
|
-
| undefined;
|
|
261
|
+
evidenceFormType?: QueryParamEvidenceFormType | undefined;
|
|
111
262
|
policyId?: string | undefined;
|
|
112
263
|
vendorId?: string | undefined;
|
|
113
264
|
riskId?: string | undefined;
|
|
@@ -118,16 +269,287 @@ export type FindingsControllerListFindingsV1Request = {
|
|
|
118
269
|
export const FindingsControllerListFindingsV1Request$zodSchema: z.ZodType<
|
|
119
270
|
FindingsControllerListFindingsV1Request
|
|
120
271
|
> = z.object({
|
|
121
|
-
area:
|
|
272
|
+
area: QueryParamArea$zodSchema.optional(),
|
|
122
273
|
deviceId: z.string().optional(),
|
|
123
|
-
evidenceFormType:
|
|
124
|
-
.optional(),
|
|
274
|
+
evidenceFormType: QueryParamEvidenceFormType$zodSchema.optional(),
|
|
125
275
|
evidenceSubmissionId: z.string().optional(),
|
|
126
276
|
memberId: z.string().optional(),
|
|
127
277
|
policyId: z.string().optional(),
|
|
128
278
|
riskId: z.string().optional(),
|
|
129
|
-
severity:
|
|
130
|
-
status:
|
|
279
|
+
severity: QueryParamSeverity$zodSchema.optional(),
|
|
280
|
+
status: FindingsControllerListFindingsV1QueryParamStatus$zodSchema.optional(),
|
|
131
281
|
taskId: z.string().optional(),
|
|
132
282
|
vendorId: z.string().optional(),
|
|
133
283
|
});
|
|
284
|
+
|
|
285
|
+
export type FindingsControllerListFindingsV1Template = {
|
|
286
|
+
id?: string | undefined;
|
|
287
|
+
title?: string | undefined;
|
|
288
|
+
category?: string | undefined;
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
export const FindingsControllerListFindingsV1Template$zodSchema: z.ZodType<
|
|
292
|
+
FindingsControllerListFindingsV1Template
|
|
293
|
+
> = z.object({
|
|
294
|
+
category: z.string().optional().describe(
|
|
295
|
+
"Template grouping, e.g. \"evidence_issue\", \"further_evidence\", \"task_specific\", \"na_incorrect\"",
|
|
296
|
+
),
|
|
297
|
+
id: z.string().optional(),
|
|
298
|
+
title: z.string().optional(),
|
|
299
|
+
});
|
|
300
|
+
|
|
301
|
+
export type FindingsControllerListFindingsV1Task = {
|
|
302
|
+
id?: string | undefined;
|
|
303
|
+
title?: string | undefined;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
export const FindingsControllerListFindingsV1Task$zodSchema: z.ZodType<
|
|
307
|
+
FindingsControllerListFindingsV1Task
|
|
308
|
+
> = z.object({
|
|
309
|
+
id: z.string().optional(),
|
|
310
|
+
title: z.string().optional(),
|
|
311
|
+
});
|
|
312
|
+
|
|
313
|
+
export type FindingsControllerListFindingsV1Policy = {
|
|
314
|
+
id?: string | undefined;
|
|
315
|
+
name?: string | undefined;
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
export const FindingsControllerListFindingsV1Policy$zodSchema: z.ZodType<
|
|
319
|
+
FindingsControllerListFindingsV1Policy
|
|
320
|
+
> = z.object({
|
|
321
|
+
id: z.string().optional(),
|
|
322
|
+
name: z.string().optional(),
|
|
323
|
+
});
|
|
324
|
+
|
|
325
|
+
export type FindingsControllerListFindingsV1Vendor = {
|
|
326
|
+
id?: string | undefined;
|
|
327
|
+
name?: string | undefined;
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
export const FindingsControllerListFindingsV1Vendor$zodSchema: z.ZodType<
|
|
331
|
+
FindingsControllerListFindingsV1Vendor
|
|
332
|
+
> = z.object({
|
|
333
|
+
id: z.string().optional(),
|
|
334
|
+
name: z.string().optional(),
|
|
335
|
+
});
|
|
336
|
+
|
|
337
|
+
export type FindingsControllerListFindingsV1Risk = {
|
|
338
|
+
id?: string | undefined;
|
|
339
|
+
title?: string | undefined;
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
export const FindingsControllerListFindingsV1Risk$zodSchema: z.ZodType<
|
|
343
|
+
FindingsControllerListFindingsV1Risk
|
|
344
|
+
> = z.object({
|
|
345
|
+
id: z.string().optional(),
|
|
346
|
+
title: z.string().optional(),
|
|
347
|
+
});
|
|
348
|
+
|
|
349
|
+
export type FindingsControllerListFindingsV1Device = {
|
|
350
|
+
id?: string | undefined;
|
|
351
|
+
name?: string | undefined;
|
|
352
|
+
hostname?: string | undefined;
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
export const FindingsControllerListFindingsV1Device$zodSchema: z.ZodType<
|
|
356
|
+
FindingsControllerListFindingsV1Device
|
|
357
|
+
> = z.object({
|
|
358
|
+
hostname: z.string().optional(),
|
|
359
|
+
id: z.string().optional(),
|
|
360
|
+
name: z.string().optional(),
|
|
361
|
+
});
|
|
362
|
+
|
|
363
|
+
export type FindingsControllerListFindingsV1EvidenceSubmission = {
|
|
364
|
+
id?: string | undefined;
|
|
365
|
+
formType?: FindingsControllerListFindingsV1FormType | undefined;
|
|
366
|
+
submittedAt?: string | undefined;
|
|
367
|
+
submittedById?: string | null | undefined;
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
export const FindingsControllerListFindingsV1EvidenceSubmission$zodSchema:
|
|
371
|
+
z.ZodType<FindingsControllerListFindingsV1EvidenceSubmission> = z.object({
|
|
372
|
+
formType: FindingsControllerListFindingsV1FormType$zodSchema.optional(),
|
|
373
|
+
id: z.string().optional(),
|
|
374
|
+
submittedAt: z.iso.datetime({ offset: true }).optional(),
|
|
375
|
+
submittedById: z.string().nullable().optional().describe(
|
|
376
|
+
"Always null for forms that promise anonymity (e.g. whistleblower reports)",
|
|
377
|
+
),
|
|
378
|
+
});
|
|
379
|
+
|
|
380
|
+
export type FindingsControllerListFindingsV1MemberUser = {
|
|
381
|
+
id?: string | undefined;
|
|
382
|
+
name?: string | undefined;
|
|
383
|
+
email?: string | undefined;
|
|
384
|
+
image?: string | null | undefined;
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
export const FindingsControllerListFindingsV1MemberUser$zodSchema: z.ZodType<
|
|
388
|
+
FindingsControllerListFindingsV1MemberUser
|
|
389
|
+
> = z.object({
|
|
390
|
+
email: z.string().optional(),
|
|
391
|
+
id: z.string().optional(),
|
|
392
|
+
image: z.string().nullable().optional(),
|
|
393
|
+
name: z.string().optional(),
|
|
394
|
+
});
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* The member the finding is about
|
|
398
|
+
*/
|
|
399
|
+
export type FindingsControllerListFindingsV1Member = {
|
|
400
|
+
id?: string | undefined;
|
|
401
|
+
user?: FindingsControllerListFindingsV1MemberUser | undefined;
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
export const FindingsControllerListFindingsV1Member$zodSchema: z.ZodType<
|
|
405
|
+
FindingsControllerListFindingsV1Member
|
|
406
|
+
> = z.object({
|
|
407
|
+
id: z.string().optional(),
|
|
408
|
+
user: z.lazy(() => FindingsControllerListFindingsV1MemberUser$zodSchema)
|
|
409
|
+
.optional(),
|
|
410
|
+
}).describe("The member the finding is about");
|
|
411
|
+
|
|
412
|
+
export type FindingsControllerListFindingsV1CreatedByUser = {
|
|
413
|
+
id?: string | undefined;
|
|
414
|
+
name?: string | undefined;
|
|
415
|
+
email?: string | undefined;
|
|
416
|
+
image?: string | null | undefined;
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
export const FindingsControllerListFindingsV1CreatedByUser$zodSchema: z.ZodType<
|
|
420
|
+
FindingsControllerListFindingsV1CreatedByUser
|
|
421
|
+
> = z.object({
|
|
422
|
+
email: z.string().optional(),
|
|
423
|
+
id: z.string().optional(),
|
|
424
|
+
image: z.string().nullable().optional(),
|
|
425
|
+
name: z.string().optional(),
|
|
426
|
+
});
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Member who raised the finding (null for platform admins)
|
|
430
|
+
*/
|
|
431
|
+
export type FindingsControllerListFindingsV1CreatedBy = {
|
|
432
|
+
id?: string | undefined;
|
|
433
|
+
user?: FindingsControllerListFindingsV1CreatedByUser | undefined;
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
export const FindingsControllerListFindingsV1CreatedBy$zodSchema: z.ZodType<
|
|
437
|
+
FindingsControllerListFindingsV1CreatedBy
|
|
438
|
+
> = z.object({
|
|
439
|
+
id: z.string().optional(),
|
|
440
|
+
user: z.lazy(() => FindingsControllerListFindingsV1CreatedByUser$zodSchema)
|
|
441
|
+
.optional(),
|
|
442
|
+
}).describe("Member who raised the finding (null for platform admins)");
|
|
443
|
+
|
|
444
|
+
export type FindingsControllerListFindingsV1CreatedByAdmin = {
|
|
445
|
+
id?: string | undefined;
|
|
446
|
+
name?: string | undefined;
|
|
447
|
+
email?: string | undefined;
|
|
448
|
+
image?: string | null | undefined;
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
export const FindingsControllerListFindingsV1CreatedByAdmin$zodSchema:
|
|
452
|
+
z.ZodType<FindingsControllerListFindingsV1CreatedByAdmin> = z.object({
|
|
453
|
+
email: z.string().optional(),
|
|
454
|
+
id: z.string().optional(),
|
|
455
|
+
image: z.string().nullable().optional(),
|
|
456
|
+
name: z.string().optional(),
|
|
457
|
+
});
|
|
458
|
+
|
|
459
|
+
export type FindingsControllerListFindingsV1Response = {
|
|
460
|
+
id: string;
|
|
461
|
+
organizationId: string;
|
|
462
|
+
type: FindingsControllerListFindingsV1Type;
|
|
463
|
+
status: FindingsControllerListFindingsV1StatusResponse;
|
|
464
|
+
severity: FindingsControllerListFindingsV1SeverityResponse;
|
|
465
|
+
content: string;
|
|
466
|
+
revisionNote?: string | null | undefined;
|
|
467
|
+
area?: FindingsControllerListFindingsV1AreaResponse | null | undefined;
|
|
468
|
+
createdAt: string;
|
|
469
|
+
updatedAt: string;
|
|
470
|
+
taskId?: string | null | undefined;
|
|
471
|
+
evidenceSubmissionId?: string | null | undefined;
|
|
472
|
+
evidenceFormType?:
|
|
473
|
+
| FindingsControllerListFindingsV1EvidenceFormTypeResponse
|
|
474
|
+
| null
|
|
475
|
+
| undefined;
|
|
476
|
+
policyId?: string | null | undefined;
|
|
477
|
+
vendorId?: string | null | undefined;
|
|
478
|
+
riskId?: string | null | undefined;
|
|
479
|
+
memberId?: string | null | undefined;
|
|
480
|
+
deviceId?: string | null | undefined;
|
|
481
|
+
templateId?: string | null | undefined;
|
|
482
|
+
template?: FindingsControllerListFindingsV1Template | null | undefined;
|
|
483
|
+
task?: FindingsControllerListFindingsV1Task | null | undefined;
|
|
484
|
+
policy?: FindingsControllerListFindingsV1Policy | null | undefined;
|
|
485
|
+
vendor?: FindingsControllerListFindingsV1Vendor | null | undefined;
|
|
486
|
+
risk?: FindingsControllerListFindingsV1Risk | null | undefined;
|
|
487
|
+
device?: FindingsControllerListFindingsV1Device | null | undefined;
|
|
488
|
+
evidenceSubmission?:
|
|
489
|
+
| FindingsControllerListFindingsV1EvidenceSubmission
|
|
490
|
+
| null
|
|
491
|
+
| undefined;
|
|
492
|
+
member?: FindingsControllerListFindingsV1Member | null | undefined;
|
|
493
|
+
createdById?: string | null | undefined;
|
|
494
|
+
createdBy?: FindingsControllerListFindingsV1CreatedBy | null | undefined;
|
|
495
|
+
createdByAdminId?: string | null | undefined;
|
|
496
|
+
createdByAdmin?:
|
|
497
|
+
| FindingsControllerListFindingsV1CreatedByAdmin
|
|
498
|
+
| null
|
|
499
|
+
| undefined;
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
export const FindingsControllerListFindingsV1Response$zodSchema: z.ZodType<
|
|
503
|
+
FindingsControllerListFindingsV1Response
|
|
504
|
+
> = z.object({
|
|
505
|
+
area: FindingsControllerListFindingsV1AreaResponse$zodSchema.nullable()
|
|
506
|
+
.optional().describe("Set when the finding is not tied to a specific item"),
|
|
507
|
+
content: z.string().describe("The finding text"),
|
|
508
|
+
createdAt: z.iso.datetime({ offset: true }),
|
|
509
|
+
createdBy: z.lazy(() => FindingsControllerListFindingsV1CreatedBy$zodSchema)
|
|
510
|
+
.nullable().optional().describe(
|
|
511
|
+
"Member who raised the finding (null for platform admins)",
|
|
512
|
+
),
|
|
513
|
+
createdByAdmin: z.lazy(() =>
|
|
514
|
+
FindingsControllerListFindingsV1CreatedByAdmin$zodSchema
|
|
515
|
+
).nullable().optional(),
|
|
516
|
+
createdByAdminId: z.string().nullable().optional(),
|
|
517
|
+
createdById: z.string().nullable().optional(),
|
|
518
|
+
device: z.lazy(() => FindingsControllerListFindingsV1Device$zodSchema)
|
|
519
|
+
.nullable().optional(),
|
|
520
|
+
deviceId: z.string().nullable().optional(),
|
|
521
|
+
evidenceFormType:
|
|
522
|
+
FindingsControllerListFindingsV1EvidenceFormTypeResponse$zodSchema
|
|
523
|
+
.nullable().optional(),
|
|
524
|
+
evidenceSubmission: z.lazy(() =>
|
|
525
|
+
FindingsControllerListFindingsV1EvidenceSubmission$zodSchema
|
|
526
|
+
).nullable().optional(),
|
|
527
|
+
evidenceSubmissionId: z.string().nullable().optional(),
|
|
528
|
+
id: z.string(),
|
|
529
|
+
member: z.lazy(() => FindingsControllerListFindingsV1Member$zodSchema)
|
|
530
|
+
.nullable().optional().describe("The member the finding is about"),
|
|
531
|
+
memberId: z.string().nullable().optional(),
|
|
532
|
+
organizationId: z.string(),
|
|
533
|
+
policy: z.lazy(() => FindingsControllerListFindingsV1Policy$zodSchema)
|
|
534
|
+
.nullable().optional(),
|
|
535
|
+
policyId: z.string().nullable().optional(),
|
|
536
|
+
revisionNote: z.string().nullable().optional().describe(
|
|
537
|
+
"Auditor's note when revision was requested",
|
|
538
|
+
),
|
|
539
|
+
risk: z.lazy(() => FindingsControllerListFindingsV1Risk$zodSchema).nullable()
|
|
540
|
+
.optional(),
|
|
541
|
+
riskId: z.string().nullable().optional(),
|
|
542
|
+
severity: FindingsControllerListFindingsV1SeverityResponse$zodSchema,
|
|
543
|
+
status: FindingsControllerListFindingsV1StatusResponse$zodSchema,
|
|
544
|
+
task: z.lazy(() => FindingsControllerListFindingsV1Task$zodSchema).nullable()
|
|
545
|
+
.optional(),
|
|
546
|
+
taskId: z.string().nullable().optional(),
|
|
547
|
+
template: z.lazy(() => FindingsControllerListFindingsV1Template$zodSchema)
|
|
548
|
+
.nullable().optional(),
|
|
549
|
+
templateId: z.string().nullable().optional(),
|
|
550
|
+
type: FindingsControllerListFindingsV1Type$zodSchema,
|
|
551
|
+
updatedAt: z.iso.datetime({ offset: true }),
|
|
552
|
+
vendor: z.lazy(() => FindingsControllerListFindingsV1Vendor$zodSchema)
|
|
553
|
+
.nullable().optional(),
|
|
554
|
+
vendorId: z.string().nullable().optional(),
|
|
555
|
+
});
|