@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
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: a1d5b70ab062
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const EvidenceFormsControllerListSubmissionsV1FormType = {
|
|
10
|
+
BoardMeeting: "board-meeting",
|
|
11
|
+
ItLeadershipMeeting: "it-leadership-meeting",
|
|
12
|
+
RiskCommitteeMeeting: "risk-committee-meeting",
|
|
13
|
+
Meeting: "meeting",
|
|
14
|
+
AccessRequest: "access-request",
|
|
15
|
+
WhistleblowerReport: "whistleblower-report",
|
|
16
|
+
PenetrationTest: "penetration-test",
|
|
17
|
+
RbacMatrix: "rbac-matrix",
|
|
18
|
+
InfrastructureInventory: "infrastructure-inventory",
|
|
19
|
+
EmployeePerformanceEvaluation: "employee-performance-evaluation",
|
|
20
|
+
NetworkDiagram: "network-diagram",
|
|
21
|
+
TabletopExercise: "tabletop-exercise",
|
|
22
|
+
AccountTypes: "account-types",
|
|
23
|
+
} as const;
|
|
24
|
+
export type EvidenceFormsControllerListSubmissionsV1FormType = ClosedEnum<
|
|
25
|
+
typeof EvidenceFormsControllerListSubmissionsV1FormType
|
|
26
|
+
>;
|
|
27
|
+
|
|
28
|
+
export const EvidenceFormsControllerListSubmissionsV1FormType$zodSchema = z
|
|
29
|
+
.enum([
|
|
30
|
+
"board-meeting",
|
|
31
|
+
"it-leadership-meeting",
|
|
32
|
+
"risk-committee-meeting",
|
|
33
|
+
"meeting",
|
|
34
|
+
"access-request",
|
|
35
|
+
"whistleblower-report",
|
|
36
|
+
"penetration-test",
|
|
37
|
+
"rbac-matrix",
|
|
38
|
+
"infrastructure-inventory",
|
|
39
|
+
"employee-performance-evaluation",
|
|
40
|
+
"network-diagram",
|
|
41
|
+
"tabletop-exercise",
|
|
42
|
+
"account-types",
|
|
43
|
+
]);
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Review status of the submission
|
|
47
|
+
*/
|
|
48
|
+
export const EvidenceFormsControllerListSubmissionsV1Status = {
|
|
49
|
+
Pending: "pending",
|
|
50
|
+
Approved: "approved",
|
|
51
|
+
Rejected: "rejected",
|
|
52
|
+
} as const;
|
|
53
|
+
/**
|
|
54
|
+
* Review status of the submission
|
|
55
|
+
*/
|
|
56
|
+
export type EvidenceFormsControllerListSubmissionsV1Status = ClosedEnum<
|
|
57
|
+
typeof EvidenceFormsControllerListSubmissionsV1Status
|
|
58
|
+
>;
|
|
59
|
+
|
|
60
|
+
export const EvidenceFormsControllerListSubmissionsV1Status$zodSchema = z.enum([
|
|
61
|
+
"pending",
|
|
62
|
+
"approved",
|
|
63
|
+
"rejected",
|
|
64
|
+
]).describe("Review status of the submission");
|
|
65
|
+
|
|
66
|
+
export type EvidenceFormsControllerListSubmissionsV1Request = {
|
|
67
|
+
xOrganizationId?: string | undefined;
|
|
68
|
+
formType: string;
|
|
69
|
+
search?: string | undefined;
|
|
70
|
+
limit?: string | undefined;
|
|
71
|
+
offset?: string | undefined;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export const EvidenceFormsControllerListSubmissionsV1Request$zodSchema:
|
|
75
|
+
z.ZodType<EvidenceFormsControllerListSubmissionsV1Request> = z.object({
|
|
76
|
+
formType: z.string(),
|
|
77
|
+
limit: z.string().describe("Page size, 1-200. Defaults to 50.").optional(),
|
|
78
|
+
offset: z.string().describe("Submissions to skip. Defaults to 0.")
|
|
79
|
+
.optional(),
|
|
80
|
+
search: z.string().describe(
|
|
81
|
+
"Case-insensitive substring match over the submission answers",
|
|
82
|
+
).optional(),
|
|
83
|
+
xOrganizationId: z.string().describe(
|
|
84
|
+
"Organization ID (required for session auth, optional for API key auth)",
|
|
85
|
+
).optional(),
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
export type EvidenceFormsControllerListSubmissionsV1SubmittedBy = {
|
|
89
|
+
id?: string | undefined;
|
|
90
|
+
name?: string | undefined;
|
|
91
|
+
email?: string | undefined;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export const EvidenceFormsControllerListSubmissionsV1SubmittedBy$zodSchema:
|
|
95
|
+
z.ZodType<EvidenceFormsControllerListSubmissionsV1SubmittedBy> = z.object({
|
|
96
|
+
email: z.string().optional(),
|
|
97
|
+
id: z.string().optional(),
|
|
98
|
+
name: z.string().optional(),
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
export type EvidenceFormsControllerListSubmissionsV1Data = {
|
|
102
|
+
id: string;
|
|
103
|
+
organizationId: string;
|
|
104
|
+
formType: EvidenceFormsControllerListSubmissionsV1FormType;
|
|
105
|
+
status: EvidenceFormsControllerListSubmissionsV1Status;
|
|
106
|
+
submittedAt: string;
|
|
107
|
+
submittedById?: string | null | undefined;
|
|
108
|
+
submittedBy?:
|
|
109
|
+
| EvidenceFormsControllerListSubmissionsV1SubmittedBy
|
|
110
|
+
| null
|
|
111
|
+
| undefined;
|
|
112
|
+
reviewedById?: string | null | undefined;
|
|
113
|
+
reviewedAt?: string | null | undefined;
|
|
114
|
+
reviewReason?: string | null | undefined;
|
|
115
|
+
data: { [k: string]: any };
|
|
116
|
+
createdAt?: string | undefined;
|
|
117
|
+
updatedAt?: string | undefined;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export const EvidenceFormsControllerListSubmissionsV1Data$zodSchema: z.ZodType<
|
|
121
|
+
EvidenceFormsControllerListSubmissionsV1Data
|
|
122
|
+
> = z.object({
|
|
123
|
+
createdAt: z.iso.datetime({ offset: true }).optional(),
|
|
124
|
+
data: z.record(z.string(), z.any()).describe(
|
|
125
|
+
"Answers keyed by the form definition field keys. File fields carry a short-lived downloadUrl.",
|
|
126
|
+
),
|
|
127
|
+
formType: EvidenceFormsControllerListSubmissionsV1FormType$zodSchema,
|
|
128
|
+
id: z.string(),
|
|
129
|
+
organizationId: z.string(),
|
|
130
|
+
reviewReason: z.string().nullable().optional(),
|
|
131
|
+
reviewedAt: z.iso.datetime({ offset: true }).nullable().optional(),
|
|
132
|
+
reviewedById: z.string().nullable().optional(),
|
|
133
|
+
status: EvidenceFormsControllerListSubmissionsV1Status$zodSchema.describe(
|
|
134
|
+
"Review status of the submission",
|
|
135
|
+
),
|
|
136
|
+
submittedAt: z.iso.datetime({ offset: true }),
|
|
137
|
+
submittedBy: z.lazy(() =>
|
|
138
|
+
EvidenceFormsControllerListSubmissionsV1SubmittedBy$zodSchema
|
|
139
|
+
).nullable().optional(),
|
|
140
|
+
submittedById: z.string().nullable().optional().describe(
|
|
141
|
+
"User who submitted. Always null for forms that promise anonymity (e.g. whistleblower reports).",
|
|
142
|
+
),
|
|
143
|
+
updatedAt: z.iso.datetime({ offset: true }).optional(),
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Submissions retrieved successfully
|
|
148
|
+
*/
|
|
149
|
+
export type EvidenceFormsControllerListSubmissionsV1Response = {
|
|
150
|
+
data: Array<EvidenceFormsControllerListSubmissionsV1Data>;
|
|
151
|
+
count: number;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
export const EvidenceFormsControllerListSubmissionsV1Response$zodSchema:
|
|
155
|
+
z.ZodType<EvidenceFormsControllerListSubmissionsV1Response> = z.object({
|
|
156
|
+
count: z.number().describe(
|
|
157
|
+
"Total submissions matching the search, before limit/offset",
|
|
158
|
+
),
|
|
159
|
+
data: z.array(
|
|
160
|
+
z.lazy(() => EvidenceFormsControllerListSubmissionsV1Data$zodSchema),
|
|
161
|
+
).describe("Submissions for this form type, newest first"),
|
|
162
|
+
}).describe("Submissions retrieved successfully");
|
|
@@ -6,30 +6,481 @@
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
import { ClosedEnum } from "../types/enums.js";
|
|
8
8
|
|
|
9
|
-
export const
|
|
9
|
+
export const FindingsControllerGetOrganizationFindingsV1QueryParamStatus = {
|
|
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
|
-
|
|
15
|
+
export type FindingsControllerGetOrganizationFindingsV1QueryParamStatus =
|
|
16
|
+
ClosedEnum<
|
|
17
|
+
typeof FindingsControllerGetOrganizationFindingsV1QueryParamStatus
|
|
18
|
+
>;
|
|
19
|
+
|
|
20
|
+
export const FindingsControllerGetOrganizationFindingsV1QueryParamStatus$zodSchema =
|
|
21
|
+
z.enum([
|
|
22
|
+
"open",
|
|
23
|
+
"ready_for_review",
|
|
24
|
+
"needs_revision",
|
|
25
|
+
"closed",
|
|
26
|
+
]);
|
|
27
|
+
|
|
28
|
+
export const FindingsControllerGetOrganizationFindingsV1Type = {
|
|
29
|
+
Soc2: "soc2",
|
|
30
|
+
Iso27001: "iso27001",
|
|
31
|
+
PciDss: "pci_dss",
|
|
32
|
+
Hipaa: "hipaa",
|
|
33
|
+
Gdpr: "gdpr",
|
|
34
|
+
Iso9001: "iso9001",
|
|
35
|
+
Iso42001: "iso42001",
|
|
36
|
+
} as const;
|
|
37
|
+
export type FindingsControllerGetOrganizationFindingsV1Type = ClosedEnum<
|
|
38
|
+
typeof FindingsControllerGetOrganizationFindingsV1Type
|
|
17
39
|
>;
|
|
18
40
|
|
|
19
|
-
export const
|
|
20
|
-
|
|
41
|
+
export const FindingsControllerGetOrganizationFindingsV1Type$zodSchema = z.enum(
|
|
42
|
+
[
|
|
43
|
+
"soc2",
|
|
44
|
+
"iso27001",
|
|
45
|
+
"pci_dss",
|
|
46
|
+
"hipaa",
|
|
47
|
+
"gdpr",
|
|
48
|
+
"iso9001",
|
|
49
|
+
"iso42001",
|
|
50
|
+
],
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
export const FindingsControllerGetOrganizationFindingsV1StatusResponse = {
|
|
54
|
+
Open: "open",
|
|
55
|
+
ReadyForReview: "ready_for_review",
|
|
56
|
+
NeedsRevision: "needs_revision",
|
|
57
|
+
Closed: "closed",
|
|
58
|
+
} as const;
|
|
59
|
+
export type FindingsControllerGetOrganizationFindingsV1StatusResponse =
|
|
60
|
+
ClosedEnum<typeof FindingsControllerGetOrganizationFindingsV1StatusResponse>;
|
|
61
|
+
|
|
62
|
+
export const FindingsControllerGetOrganizationFindingsV1StatusResponse$zodSchema =
|
|
63
|
+
z.enum([
|
|
21
64
|
"open",
|
|
22
65
|
"ready_for_review",
|
|
23
66
|
"needs_revision",
|
|
24
67
|
"closed",
|
|
25
68
|
]);
|
|
26
69
|
|
|
70
|
+
export const FindingsControllerGetOrganizationFindingsV1Severity = {
|
|
71
|
+
Low: "low",
|
|
72
|
+
Medium: "medium",
|
|
73
|
+
High: "high",
|
|
74
|
+
Critical: "critical",
|
|
75
|
+
} as const;
|
|
76
|
+
export type FindingsControllerGetOrganizationFindingsV1Severity = ClosedEnum<
|
|
77
|
+
typeof FindingsControllerGetOrganizationFindingsV1Severity
|
|
78
|
+
>;
|
|
79
|
+
|
|
80
|
+
export const FindingsControllerGetOrganizationFindingsV1Severity$zodSchema = z
|
|
81
|
+
.enum([
|
|
82
|
+
"low",
|
|
83
|
+
"medium",
|
|
84
|
+
"high",
|
|
85
|
+
"critical",
|
|
86
|
+
]);
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Set when the finding is not tied to a specific item
|
|
90
|
+
*/
|
|
91
|
+
export const FindingsControllerGetOrganizationFindingsV1Area = {
|
|
92
|
+
People: "people",
|
|
93
|
+
Documents: "documents",
|
|
94
|
+
Compliance: "compliance",
|
|
95
|
+
Risks: "risks",
|
|
96
|
+
Vendors: "vendors",
|
|
97
|
+
Policies: "policies",
|
|
98
|
+
Other: "other",
|
|
99
|
+
} as const;
|
|
100
|
+
/**
|
|
101
|
+
* Set when the finding is not tied to a specific item
|
|
102
|
+
*/
|
|
103
|
+
export type FindingsControllerGetOrganizationFindingsV1Area = ClosedEnum<
|
|
104
|
+
typeof FindingsControllerGetOrganizationFindingsV1Area
|
|
105
|
+
>;
|
|
106
|
+
|
|
107
|
+
export const FindingsControllerGetOrganizationFindingsV1Area$zodSchema = z.enum(
|
|
108
|
+
[
|
|
109
|
+
"people",
|
|
110
|
+
"documents",
|
|
111
|
+
"compliance",
|
|
112
|
+
"risks",
|
|
113
|
+
"vendors",
|
|
114
|
+
"policies",
|
|
115
|
+
"other",
|
|
116
|
+
],
|
|
117
|
+
).describe("Set when the finding is not tied to a specific item");
|
|
118
|
+
|
|
119
|
+
export const FindingsControllerGetOrganizationFindingsV1EvidenceFormType = {
|
|
120
|
+
BoardMeeting: "board-meeting",
|
|
121
|
+
ItLeadershipMeeting: "it-leadership-meeting",
|
|
122
|
+
RiskCommitteeMeeting: "risk-committee-meeting",
|
|
123
|
+
Meeting: "meeting",
|
|
124
|
+
AccessRequest: "access-request",
|
|
125
|
+
WhistleblowerReport: "whistleblower-report",
|
|
126
|
+
PenetrationTest: "penetration-test",
|
|
127
|
+
RbacMatrix: "rbac-matrix",
|
|
128
|
+
InfrastructureInventory: "infrastructure-inventory",
|
|
129
|
+
EmployeePerformanceEvaluation: "employee-performance-evaluation",
|
|
130
|
+
NetworkDiagram: "network-diagram",
|
|
131
|
+
TabletopExercise: "tabletop-exercise",
|
|
132
|
+
AccountTypes: "account-types",
|
|
133
|
+
} as const;
|
|
134
|
+
export type FindingsControllerGetOrganizationFindingsV1EvidenceFormType =
|
|
135
|
+
ClosedEnum<
|
|
136
|
+
typeof FindingsControllerGetOrganizationFindingsV1EvidenceFormType
|
|
137
|
+
>;
|
|
138
|
+
|
|
139
|
+
export const FindingsControllerGetOrganizationFindingsV1EvidenceFormType$zodSchema =
|
|
140
|
+
z.enum([
|
|
141
|
+
"board-meeting",
|
|
142
|
+
"it-leadership-meeting",
|
|
143
|
+
"risk-committee-meeting",
|
|
144
|
+
"meeting",
|
|
145
|
+
"access-request",
|
|
146
|
+
"whistleblower-report",
|
|
147
|
+
"penetration-test",
|
|
148
|
+
"rbac-matrix",
|
|
149
|
+
"infrastructure-inventory",
|
|
150
|
+
"employee-performance-evaluation",
|
|
151
|
+
"network-diagram",
|
|
152
|
+
"tabletop-exercise",
|
|
153
|
+
"account-types",
|
|
154
|
+
]);
|
|
155
|
+
|
|
156
|
+
export const FindingsControllerGetOrganizationFindingsV1FormType = {
|
|
157
|
+
BoardMeeting: "board-meeting",
|
|
158
|
+
ItLeadershipMeeting: "it-leadership-meeting",
|
|
159
|
+
RiskCommitteeMeeting: "risk-committee-meeting",
|
|
160
|
+
Meeting: "meeting",
|
|
161
|
+
AccessRequest: "access-request",
|
|
162
|
+
WhistleblowerReport: "whistleblower-report",
|
|
163
|
+
PenetrationTest: "penetration-test",
|
|
164
|
+
RbacMatrix: "rbac-matrix",
|
|
165
|
+
InfrastructureInventory: "infrastructure-inventory",
|
|
166
|
+
EmployeePerformanceEvaluation: "employee-performance-evaluation",
|
|
167
|
+
NetworkDiagram: "network-diagram",
|
|
168
|
+
TabletopExercise: "tabletop-exercise",
|
|
169
|
+
AccountTypes: "account-types",
|
|
170
|
+
} as const;
|
|
171
|
+
export type FindingsControllerGetOrganizationFindingsV1FormType = ClosedEnum<
|
|
172
|
+
typeof FindingsControllerGetOrganizationFindingsV1FormType
|
|
173
|
+
>;
|
|
174
|
+
|
|
175
|
+
export const FindingsControllerGetOrganizationFindingsV1FormType$zodSchema = z
|
|
176
|
+
.enum([
|
|
177
|
+
"board-meeting",
|
|
178
|
+
"it-leadership-meeting",
|
|
179
|
+
"risk-committee-meeting",
|
|
180
|
+
"meeting",
|
|
181
|
+
"access-request",
|
|
182
|
+
"whistleblower-report",
|
|
183
|
+
"penetration-test",
|
|
184
|
+
"rbac-matrix",
|
|
185
|
+
"infrastructure-inventory",
|
|
186
|
+
"employee-performance-evaluation",
|
|
187
|
+
"network-diagram",
|
|
188
|
+
"tabletop-exercise",
|
|
189
|
+
"account-types",
|
|
190
|
+
]);
|
|
191
|
+
|
|
27
192
|
export type FindingsControllerGetOrganizationFindingsV1Request = {
|
|
28
|
-
status?:
|
|
193
|
+
status?:
|
|
194
|
+
| FindingsControllerGetOrganizationFindingsV1QueryParamStatus
|
|
195
|
+
| undefined;
|
|
29
196
|
};
|
|
30
197
|
|
|
31
198
|
export const FindingsControllerGetOrganizationFindingsV1Request$zodSchema:
|
|
32
199
|
z.ZodType<FindingsControllerGetOrganizationFindingsV1Request> = z.object({
|
|
33
|
-
status:
|
|
34
|
-
|
|
200
|
+
status:
|
|
201
|
+
FindingsControllerGetOrganizationFindingsV1QueryParamStatus$zodSchema
|
|
202
|
+
.optional(),
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
export type FindingsControllerGetOrganizationFindingsV1Template = {
|
|
206
|
+
id?: string | undefined;
|
|
207
|
+
title?: string | undefined;
|
|
208
|
+
category?: string | undefined;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
export const FindingsControllerGetOrganizationFindingsV1Template$zodSchema:
|
|
212
|
+
z.ZodType<FindingsControllerGetOrganizationFindingsV1Template> = z.object({
|
|
213
|
+
category: z.string().optional().describe(
|
|
214
|
+
"Template grouping, e.g. \"evidence_issue\", \"further_evidence\", \"task_specific\", \"na_incorrect\"",
|
|
215
|
+
),
|
|
216
|
+
id: z.string().optional(),
|
|
217
|
+
title: z.string().optional(),
|
|
218
|
+
});
|
|
219
|
+
|
|
220
|
+
export type FindingsControllerGetOrganizationFindingsV1Task = {
|
|
221
|
+
id?: string | undefined;
|
|
222
|
+
title?: string | undefined;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
export const FindingsControllerGetOrganizationFindingsV1Task$zodSchema:
|
|
226
|
+
z.ZodType<FindingsControllerGetOrganizationFindingsV1Task> = z.object({
|
|
227
|
+
id: z.string().optional(),
|
|
228
|
+
title: z.string().optional(),
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
export type FindingsControllerGetOrganizationFindingsV1Policy = {
|
|
232
|
+
id?: string | undefined;
|
|
233
|
+
name?: string | undefined;
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
export const FindingsControllerGetOrganizationFindingsV1Policy$zodSchema:
|
|
237
|
+
z.ZodType<FindingsControllerGetOrganizationFindingsV1Policy> = z.object({
|
|
238
|
+
id: z.string().optional(),
|
|
239
|
+
name: z.string().optional(),
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
export type FindingsControllerGetOrganizationFindingsV1Vendor = {
|
|
243
|
+
id?: string | undefined;
|
|
244
|
+
name?: string | undefined;
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
export const FindingsControllerGetOrganizationFindingsV1Vendor$zodSchema:
|
|
248
|
+
z.ZodType<FindingsControllerGetOrganizationFindingsV1Vendor> = z.object({
|
|
249
|
+
id: z.string().optional(),
|
|
250
|
+
name: z.string().optional(),
|
|
251
|
+
});
|
|
252
|
+
|
|
253
|
+
export type FindingsControllerGetOrganizationFindingsV1Risk = {
|
|
254
|
+
id?: string | undefined;
|
|
255
|
+
title?: string | undefined;
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
export const FindingsControllerGetOrganizationFindingsV1Risk$zodSchema:
|
|
259
|
+
z.ZodType<FindingsControllerGetOrganizationFindingsV1Risk> = z.object({
|
|
260
|
+
id: z.string().optional(),
|
|
261
|
+
title: z.string().optional(),
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
export type FindingsControllerGetOrganizationFindingsV1Device = {
|
|
265
|
+
id?: string | undefined;
|
|
266
|
+
name?: string | undefined;
|
|
267
|
+
hostname?: string | undefined;
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
export const FindingsControllerGetOrganizationFindingsV1Device$zodSchema:
|
|
271
|
+
z.ZodType<FindingsControllerGetOrganizationFindingsV1Device> = z.object({
|
|
272
|
+
hostname: z.string().optional(),
|
|
273
|
+
id: z.string().optional(),
|
|
274
|
+
name: z.string().optional(),
|
|
275
|
+
});
|
|
276
|
+
|
|
277
|
+
export type FindingsControllerGetOrganizationFindingsV1EvidenceSubmission = {
|
|
278
|
+
id?: string | undefined;
|
|
279
|
+
formType?: FindingsControllerGetOrganizationFindingsV1FormType | undefined;
|
|
280
|
+
submittedAt?: string | undefined;
|
|
281
|
+
submittedById?: string | null | undefined;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
export const FindingsControllerGetOrganizationFindingsV1EvidenceSubmission$zodSchema:
|
|
285
|
+
z.ZodType<FindingsControllerGetOrganizationFindingsV1EvidenceSubmission> = z
|
|
286
|
+
.object({
|
|
287
|
+
formType: FindingsControllerGetOrganizationFindingsV1FormType$zodSchema
|
|
288
|
+
.optional(),
|
|
289
|
+
id: z.string().optional(),
|
|
290
|
+
submittedAt: z.iso.datetime({ offset: true }).optional(),
|
|
291
|
+
submittedById: z.string().nullable().optional().describe(
|
|
292
|
+
"Always null for forms that promise anonymity (e.g. whistleblower reports)",
|
|
293
|
+
),
|
|
294
|
+
});
|
|
295
|
+
|
|
296
|
+
export type FindingsControllerGetOrganizationFindingsV1MemberUser = {
|
|
297
|
+
id?: string | undefined;
|
|
298
|
+
name?: string | undefined;
|
|
299
|
+
email?: string | undefined;
|
|
300
|
+
image?: string | null | undefined;
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
export const FindingsControllerGetOrganizationFindingsV1MemberUser$zodSchema:
|
|
304
|
+
z.ZodType<FindingsControllerGetOrganizationFindingsV1MemberUser> = z.object({
|
|
305
|
+
email: z.string().optional(),
|
|
306
|
+
id: z.string().optional(),
|
|
307
|
+
image: z.string().nullable().optional(),
|
|
308
|
+
name: z.string().optional(),
|
|
309
|
+
});
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* The member the finding is about
|
|
313
|
+
*/
|
|
314
|
+
export type FindingsControllerGetOrganizationFindingsV1Member = {
|
|
315
|
+
id?: string | undefined;
|
|
316
|
+
user?: FindingsControllerGetOrganizationFindingsV1MemberUser | undefined;
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
export const FindingsControllerGetOrganizationFindingsV1Member$zodSchema:
|
|
320
|
+
z.ZodType<FindingsControllerGetOrganizationFindingsV1Member> = z.object({
|
|
321
|
+
id: z.string().optional(),
|
|
322
|
+
user: z.lazy(() =>
|
|
323
|
+
FindingsControllerGetOrganizationFindingsV1MemberUser$zodSchema
|
|
324
|
+
).optional(),
|
|
325
|
+
}).describe("The member the finding is about");
|
|
326
|
+
|
|
327
|
+
export type FindingsControllerGetOrganizationFindingsV1CreatedByUser = {
|
|
328
|
+
id?: string | undefined;
|
|
329
|
+
name?: string | undefined;
|
|
330
|
+
email?: string | undefined;
|
|
331
|
+
image?: string | null | undefined;
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
export const FindingsControllerGetOrganizationFindingsV1CreatedByUser$zodSchema:
|
|
335
|
+
z.ZodType<FindingsControllerGetOrganizationFindingsV1CreatedByUser> = z
|
|
336
|
+
.object({
|
|
337
|
+
email: z.string().optional(),
|
|
338
|
+
id: z.string().optional(),
|
|
339
|
+
image: z.string().nullable().optional(),
|
|
340
|
+
name: z.string().optional(),
|
|
341
|
+
});
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Member who raised the finding (null for platform admins)
|
|
345
|
+
*/
|
|
346
|
+
export type FindingsControllerGetOrganizationFindingsV1CreatedBy = {
|
|
347
|
+
id?: string | undefined;
|
|
348
|
+
user?: FindingsControllerGetOrganizationFindingsV1CreatedByUser | undefined;
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
export const FindingsControllerGetOrganizationFindingsV1CreatedBy$zodSchema:
|
|
352
|
+
z.ZodType<FindingsControllerGetOrganizationFindingsV1CreatedBy> = z.object({
|
|
353
|
+
id: z.string().optional(),
|
|
354
|
+
user: z.lazy(() =>
|
|
355
|
+
FindingsControllerGetOrganizationFindingsV1CreatedByUser$zodSchema
|
|
356
|
+
).optional(),
|
|
357
|
+
}).describe("Member who raised the finding (null for platform admins)");
|
|
358
|
+
|
|
359
|
+
export type FindingsControllerGetOrganizationFindingsV1CreatedByAdmin = {
|
|
360
|
+
id?: string | undefined;
|
|
361
|
+
name?: string | undefined;
|
|
362
|
+
email?: string | undefined;
|
|
363
|
+
image?: string | null | undefined;
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
export const FindingsControllerGetOrganizationFindingsV1CreatedByAdmin$zodSchema:
|
|
367
|
+
z.ZodType<FindingsControllerGetOrganizationFindingsV1CreatedByAdmin> = z
|
|
368
|
+
.object({
|
|
369
|
+
email: z.string().optional(),
|
|
370
|
+
id: z.string().optional(),
|
|
371
|
+
image: z.string().nullable().optional(),
|
|
372
|
+
name: z.string().optional(),
|
|
373
|
+
});
|
|
374
|
+
|
|
375
|
+
export type FindingsControllerGetOrganizationFindingsV1Response = {
|
|
376
|
+
id: string;
|
|
377
|
+
organizationId: string;
|
|
378
|
+
type: FindingsControllerGetOrganizationFindingsV1Type;
|
|
379
|
+
status: FindingsControllerGetOrganizationFindingsV1StatusResponse;
|
|
380
|
+
severity: FindingsControllerGetOrganizationFindingsV1Severity;
|
|
381
|
+
content: string;
|
|
382
|
+
revisionNote?: string | null | undefined;
|
|
383
|
+
area?: FindingsControllerGetOrganizationFindingsV1Area | null | undefined;
|
|
384
|
+
createdAt: string;
|
|
385
|
+
updatedAt: string;
|
|
386
|
+
taskId?: string | null | undefined;
|
|
387
|
+
evidenceSubmissionId?: string | null | undefined;
|
|
388
|
+
evidenceFormType?:
|
|
389
|
+
| FindingsControllerGetOrganizationFindingsV1EvidenceFormType
|
|
390
|
+
| null
|
|
391
|
+
| undefined;
|
|
392
|
+
policyId?: string | null | undefined;
|
|
393
|
+
vendorId?: string | null | undefined;
|
|
394
|
+
riskId?: string | null | undefined;
|
|
395
|
+
memberId?: string | null | undefined;
|
|
396
|
+
deviceId?: string | null | undefined;
|
|
397
|
+
templateId?: string | null | undefined;
|
|
398
|
+
template?:
|
|
399
|
+
| FindingsControllerGetOrganizationFindingsV1Template
|
|
400
|
+
| null
|
|
401
|
+
| undefined;
|
|
402
|
+
task?: FindingsControllerGetOrganizationFindingsV1Task | null | undefined;
|
|
403
|
+
policy?: FindingsControllerGetOrganizationFindingsV1Policy | null | undefined;
|
|
404
|
+
vendor?: FindingsControllerGetOrganizationFindingsV1Vendor | null | undefined;
|
|
405
|
+
risk?: FindingsControllerGetOrganizationFindingsV1Risk | null | undefined;
|
|
406
|
+
device?: FindingsControllerGetOrganizationFindingsV1Device | null | undefined;
|
|
407
|
+
evidenceSubmission?:
|
|
408
|
+
| FindingsControllerGetOrganizationFindingsV1EvidenceSubmission
|
|
409
|
+
| null
|
|
410
|
+
| undefined;
|
|
411
|
+
member?: FindingsControllerGetOrganizationFindingsV1Member | null | undefined;
|
|
412
|
+
createdById?: string | null | undefined;
|
|
413
|
+
createdBy?:
|
|
414
|
+
| FindingsControllerGetOrganizationFindingsV1CreatedBy
|
|
415
|
+
| null
|
|
416
|
+
| undefined;
|
|
417
|
+
createdByAdminId?: string | null | undefined;
|
|
418
|
+
createdByAdmin?:
|
|
419
|
+
| FindingsControllerGetOrganizationFindingsV1CreatedByAdmin
|
|
420
|
+
| null
|
|
421
|
+
| undefined;
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
export const FindingsControllerGetOrganizationFindingsV1Response$zodSchema:
|
|
425
|
+
z.ZodType<FindingsControllerGetOrganizationFindingsV1Response> = z.object({
|
|
426
|
+
area: FindingsControllerGetOrganizationFindingsV1Area$zodSchema.nullable()
|
|
427
|
+
.optional().describe(
|
|
428
|
+
"Set when the finding is not tied to a specific item",
|
|
429
|
+
),
|
|
430
|
+
content: z.string().describe("The finding text"),
|
|
431
|
+
createdAt: z.iso.datetime({ offset: true }),
|
|
432
|
+
createdBy: z.lazy(() =>
|
|
433
|
+
FindingsControllerGetOrganizationFindingsV1CreatedBy$zodSchema
|
|
434
|
+
).nullable().optional().describe(
|
|
435
|
+
"Member who raised the finding (null for platform admins)",
|
|
436
|
+
),
|
|
437
|
+
createdByAdmin: z.lazy(() =>
|
|
438
|
+
FindingsControllerGetOrganizationFindingsV1CreatedByAdmin$zodSchema
|
|
439
|
+
).nullable().optional(),
|
|
440
|
+
createdByAdminId: z.string().nullable().optional(),
|
|
441
|
+
createdById: z.string().nullable().optional(),
|
|
442
|
+
device: z.lazy(() =>
|
|
443
|
+
FindingsControllerGetOrganizationFindingsV1Device$zodSchema
|
|
444
|
+
).nullable().optional(),
|
|
445
|
+
deviceId: z.string().nullable().optional(),
|
|
446
|
+
evidenceFormType:
|
|
447
|
+
FindingsControllerGetOrganizationFindingsV1EvidenceFormType$zodSchema
|
|
448
|
+
.nullable().optional(),
|
|
449
|
+
evidenceSubmission: z.lazy(() =>
|
|
450
|
+
FindingsControllerGetOrganizationFindingsV1EvidenceSubmission$zodSchema
|
|
451
|
+
).nullable().optional(),
|
|
452
|
+
evidenceSubmissionId: z.string().nullable().optional(),
|
|
453
|
+
id: z.string(),
|
|
454
|
+
member: z.lazy(() =>
|
|
455
|
+
FindingsControllerGetOrganizationFindingsV1Member$zodSchema
|
|
456
|
+
).nullable().optional().describe("The member the finding is about"),
|
|
457
|
+
memberId: z.string().nullable().optional(),
|
|
458
|
+
organizationId: z.string(),
|
|
459
|
+
policy: z.lazy(() =>
|
|
460
|
+
FindingsControllerGetOrganizationFindingsV1Policy$zodSchema
|
|
461
|
+
).nullable().optional(),
|
|
462
|
+
policyId: z.string().nullable().optional(),
|
|
463
|
+
revisionNote: z.string().nullable().optional().describe(
|
|
464
|
+
"Auditor's note when revision was requested",
|
|
465
|
+
),
|
|
466
|
+
risk: z.lazy(() =>
|
|
467
|
+
FindingsControllerGetOrganizationFindingsV1Risk$zodSchema
|
|
468
|
+
).nullable().optional(),
|
|
469
|
+
riskId: z.string().nullable().optional(),
|
|
470
|
+
severity: FindingsControllerGetOrganizationFindingsV1Severity$zodSchema,
|
|
471
|
+
status: FindingsControllerGetOrganizationFindingsV1StatusResponse$zodSchema,
|
|
472
|
+
task: z.lazy(() =>
|
|
473
|
+
FindingsControllerGetOrganizationFindingsV1Task$zodSchema
|
|
474
|
+
).nullable().optional(),
|
|
475
|
+
taskId: z.string().nullable().optional(),
|
|
476
|
+
template: z.lazy(() =>
|
|
477
|
+
FindingsControllerGetOrganizationFindingsV1Template$zodSchema
|
|
478
|
+
).nullable().optional(),
|
|
479
|
+
templateId: z.string().nullable().optional(),
|
|
480
|
+
type: FindingsControllerGetOrganizationFindingsV1Type$zodSchema,
|
|
481
|
+
updatedAt: z.iso.datetime({ offset: true }),
|
|
482
|
+
vendor: z.lazy(() =>
|
|
483
|
+
FindingsControllerGetOrganizationFindingsV1Vendor$zodSchema
|
|
484
|
+
).nullable().optional(),
|
|
485
|
+
vendorId: z.string().nullable().optional(),
|
|
35
486
|
});
|