@trycompai/mcp-server 0.3.5 → 0.3.8
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 +3406 -2340
- package/bin/mcp-server.js.map +57 -48
- 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/ismsISMSControllerSetCoverageV1.d.ts +1 -1
- package/esm/funcs/ismsISMSControllerSetCoverageV1.js +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/ismsISMSRegistersControllerImportVendorsAsContinuityContactsV1.d.ts +16 -0
- package/esm/funcs/ismsISMSRegistersControllerImportVendorsAsContinuityContactsV1.d.ts.map +1 -0
- package/esm/funcs/ismsISMSRegistersControllerImportVendorsAsContinuityContactsV1.js +90 -0
- package/esm/funcs/ismsISMSRegistersControllerImportVendorsAsContinuityContactsV1.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 +8 -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/ismsISMSControllerSetCoverageV1.js +1 -1
- package/esm/mcp-server/tools/ismsISMSControllerSetCoverageV1.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/ismsISMSRegistersControllerImportVendorsAsContinuityContactsV1.d.ts +7 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerImportVendorsAsContinuityContactsV1.d.ts.map +1 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerImportVendorsAsContinuityContactsV1.js +35 -0
- package/esm/mcp-server/tools/ismsISMSRegistersControllerImportVendorsAsContinuityContactsV1.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/ismscontrollersetcoveragev1op.d.ts +1 -1
- package/esm/models/ismscontrollersetcoveragev1op.js +3 -3
- package/esm/models/ismscontrollersetcoveragev1op.js.map +1 -1
- package/esm/models/ismsregisterscontrollercreaterowv1op.d.ts +68 -0
- package/esm/models/ismsregisterscontrollercreaterowv1op.d.ts.map +1 -1
- package/esm/models/ismsregisterscontrollercreaterowv1op.js +68 -0
- package/esm/models/ismsregisterscontrollercreaterowv1op.js.map +1 -1
- package/esm/models/ismsregisterscontrollerdeleterowv1op.d.ts +10 -0
- package/esm/models/ismsregisterscontrollerdeleterowv1op.d.ts.map +1 -1
- package/esm/models/ismsregisterscontrollerdeleterowv1op.js +10 -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/ismsregisterscontrollerimportvendorsascontinuitycontactsv1op.d.ts +14 -0
- package/esm/models/ismsregisterscontrollerimportvendorsascontinuitycontactsv1op.d.ts.map +1 -0
- package/esm/models/ismsregisterscontrollerimportvendorsascontinuitycontactsv1op.js +13 -0
- package/esm/models/ismsregisterscontrollerimportvendorsascontinuitycontactsv1op.js.map +1 -0
- package/esm/models/ismsregisterscontrollerupdaterowv1op.d.ts +68 -0
- package/esm/models/ismsregisterscontrollerupdaterowv1op.d.ts.map +1 -1
- package/esm/models/ismsregisterscontrollerupdaterowv1op.js +68 -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 +17 -5
- 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/ismsISMSControllerSetCoverageV1.ts +1 -1
- package/src/funcs/ismsISMSRegistersControllerImportFindingsAsNonconformitiesV1.ts +158 -0
- package/src/funcs/ismsISMSRegistersControllerImportVendorsAsContinuityContactsV1.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 +8 -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/ismsISMSControllerSetCoverageV1.ts +1 -1
- package/src/mcp-server/tools/ismsISMSRegistersControllerImportFindingsAsNonconformitiesV1.ts +46 -0
- package/src/mcp-server/tools/ismsISMSRegistersControllerImportVendorsAsContinuityContactsV1.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/ismscontrollersetcoveragev1op.ts +4 -4
- package/src/models/ismsregisterscontrollercreaterowv1op.ts +100 -0
- package/src/models/ismsregisterscontrollerdeleterowv1op.ts +10 -0
- package/src/models/ismsregisterscontrollerimportfindingsasnonconformitiesv1op.ts +39 -0
- package/src/models/ismsregisterscontrollerimportvendorsascontinuitycontactsv1op.ts +38 -0
- package/src/models/ismsregisterscontrollerupdaterowv1op.ts +100 -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 +17 -5
|
@@ -6,13 +6,17 @@
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
8
|
export type DeviceAgentControllerGetDeviceStatusV1Request = {
|
|
9
|
-
deviceId
|
|
10
|
-
organizationId
|
|
9
|
+
deviceId?: string | undefined;
|
|
10
|
+
organizationId?: string | undefined;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const DeviceAgentControllerGetDeviceStatusV1Request$zodSchema: z.ZodType<
|
|
14
14
|
DeviceAgentControllerGetDeviceStatusV1Request
|
|
15
15
|
> = z.object({
|
|
16
|
-
deviceId: z.string()
|
|
17
|
-
|
|
16
|
+
deviceId: z.string().describe(
|
|
17
|
+
"One device's status. Omit to list every device of the user.",
|
|
18
|
+
).optional(),
|
|
19
|
+
organizationId: z.string().describe(
|
|
20
|
+
"Restrict the device list to one organization",
|
|
21
|
+
).optional(),
|
|
18
22
|
});
|
|
@@ -4,22 +4,358 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const EvidenceFormsControllerGetFormWithSubmissionsV1Type = {
|
|
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 EvidenceFormsControllerGetFormWithSubmissionsV1Type = ClosedEnum<
|
|
25
|
+
typeof EvidenceFormsControllerGetFormWithSubmissionsV1Type
|
|
26
|
+
>;
|
|
27
|
+
|
|
28
|
+
export const EvidenceFormsControllerGetFormWithSubmissionsV1Type$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
|
+
* `custom` lets the submitter pick the submission date; `auto` stamps it
|
|
47
|
+
*/
|
|
48
|
+
export const SubmissionDateMode = {
|
|
49
|
+
Custom: "custom",
|
|
50
|
+
Auto: "auto",
|
|
51
|
+
} as const;
|
|
52
|
+
/**
|
|
53
|
+
* `custom` lets the submitter pick the submission date; `auto` stamps it
|
|
54
|
+
*/
|
|
55
|
+
export type SubmissionDateMode = ClosedEnum<typeof SubmissionDateMode>;
|
|
56
|
+
|
|
57
|
+
export const SubmissionDateMode$zodSchema = z.enum([
|
|
58
|
+
"custom",
|
|
59
|
+
"auto",
|
|
60
|
+
]).describe(
|
|
61
|
+
"`custom` lets the submitter pick the submission date; `auto` stamps it",
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
export const FieldType = {
|
|
65
|
+
Text: "text",
|
|
66
|
+
Textarea: "textarea",
|
|
67
|
+
Date: "date",
|
|
68
|
+
Select: "select",
|
|
69
|
+
File: "file",
|
|
70
|
+
Matrix: "matrix",
|
|
71
|
+
} as const;
|
|
72
|
+
export type FieldType = ClosedEnum<typeof FieldType>;
|
|
73
|
+
|
|
74
|
+
export const FieldType$zodSchema = z.enum([
|
|
75
|
+
"text",
|
|
76
|
+
"textarea",
|
|
77
|
+
"date",
|
|
78
|
+
"select",
|
|
79
|
+
"file",
|
|
80
|
+
"matrix",
|
|
81
|
+
]);
|
|
82
|
+
|
|
83
|
+
export const ColumnType = {
|
|
84
|
+
Text: "text",
|
|
85
|
+
Select: "select",
|
|
86
|
+
} as const;
|
|
87
|
+
export type ColumnType = ClosedEnum<typeof ColumnType>;
|
|
88
|
+
|
|
89
|
+
export const ColumnType$zodSchema = z.enum([
|
|
90
|
+
"text",
|
|
91
|
+
"select",
|
|
92
|
+
]);
|
|
93
|
+
|
|
94
|
+
export const EvidenceFormsControllerGetFormWithSubmissionsV1FormType = {
|
|
95
|
+
BoardMeeting: "board-meeting",
|
|
96
|
+
ItLeadershipMeeting: "it-leadership-meeting",
|
|
97
|
+
RiskCommitteeMeeting: "risk-committee-meeting",
|
|
98
|
+
Meeting: "meeting",
|
|
99
|
+
AccessRequest: "access-request",
|
|
100
|
+
WhistleblowerReport: "whistleblower-report",
|
|
101
|
+
PenetrationTest: "penetration-test",
|
|
102
|
+
RbacMatrix: "rbac-matrix",
|
|
103
|
+
InfrastructureInventory: "infrastructure-inventory",
|
|
104
|
+
EmployeePerformanceEvaluation: "employee-performance-evaluation",
|
|
105
|
+
NetworkDiagram: "network-diagram",
|
|
106
|
+
TabletopExercise: "tabletop-exercise",
|
|
107
|
+
AccountTypes: "account-types",
|
|
108
|
+
} as const;
|
|
109
|
+
export type EvidenceFormsControllerGetFormWithSubmissionsV1FormType =
|
|
110
|
+
ClosedEnum<typeof EvidenceFormsControllerGetFormWithSubmissionsV1FormType>;
|
|
111
|
+
|
|
112
|
+
export const EvidenceFormsControllerGetFormWithSubmissionsV1FormType$zodSchema =
|
|
113
|
+
z.enum([
|
|
114
|
+
"board-meeting",
|
|
115
|
+
"it-leadership-meeting",
|
|
116
|
+
"risk-committee-meeting",
|
|
117
|
+
"meeting",
|
|
118
|
+
"access-request",
|
|
119
|
+
"whistleblower-report",
|
|
120
|
+
"penetration-test",
|
|
121
|
+
"rbac-matrix",
|
|
122
|
+
"infrastructure-inventory",
|
|
123
|
+
"employee-performance-evaluation",
|
|
124
|
+
"network-diagram",
|
|
125
|
+
"tabletop-exercise",
|
|
126
|
+
"account-types",
|
|
127
|
+
]);
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Review status of the submission
|
|
131
|
+
*/
|
|
132
|
+
export const EvidenceFormsControllerGetFormWithSubmissionsV1Status = {
|
|
133
|
+
Pending: "pending",
|
|
134
|
+
Approved: "approved",
|
|
135
|
+
Rejected: "rejected",
|
|
136
|
+
} as const;
|
|
137
|
+
/**
|
|
138
|
+
* Review status of the submission
|
|
139
|
+
*/
|
|
140
|
+
export type EvidenceFormsControllerGetFormWithSubmissionsV1Status = ClosedEnum<
|
|
141
|
+
typeof EvidenceFormsControllerGetFormWithSubmissionsV1Status
|
|
142
|
+
>;
|
|
143
|
+
|
|
144
|
+
export const EvidenceFormsControllerGetFormWithSubmissionsV1Status$zodSchema = z
|
|
145
|
+
.enum([
|
|
146
|
+
"pending",
|
|
147
|
+
"approved",
|
|
148
|
+
"rejected",
|
|
149
|
+
]).describe("Review status of the submission");
|
|
7
150
|
|
|
8
151
|
export type EvidenceFormsControllerGetFormWithSubmissionsV1Request = {
|
|
9
152
|
xOrganizationId?: string | undefined;
|
|
10
153
|
formType: string;
|
|
11
|
-
search
|
|
12
|
-
limit
|
|
13
|
-
offset
|
|
154
|
+
search?: string | undefined;
|
|
155
|
+
limit?: string | undefined;
|
|
156
|
+
offset?: string | undefined;
|
|
14
157
|
};
|
|
15
158
|
|
|
16
159
|
export const EvidenceFormsControllerGetFormWithSubmissionsV1Request$zodSchema:
|
|
17
160
|
z.ZodType<EvidenceFormsControllerGetFormWithSubmissionsV1Request> = z.object({
|
|
18
161
|
formType: z.string(),
|
|
19
|
-
limit: z.string(),
|
|
20
|
-
offset: z.string()
|
|
21
|
-
|
|
162
|
+
limit: z.string().describe("Page size, 1-200. Defaults to 50.").optional(),
|
|
163
|
+
offset: z.string().describe("Submissions to skip. Defaults to 0.")
|
|
164
|
+
.optional(),
|
|
165
|
+
search: z.string().describe(
|
|
166
|
+
"Case-insensitive substring match over the submission answers",
|
|
167
|
+
).optional(),
|
|
22
168
|
xOrganizationId: z.string().describe(
|
|
23
169
|
"Organization ID (required for session auth, optional for API key auth)",
|
|
24
170
|
).optional(),
|
|
25
171
|
});
|
|
172
|
+
|
|
173
|
+
export type Option = { label: string; value: string };
|
|
174
|
+
|
|
175
|
+
export const Option$zodSchema: z.ZodType<Option> = z.object({
|
|
176
|
+
label: z.string(),
|
|
177
|
+
value: z.string(),
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
export type ColumnOption = { label: string; value: string };
|
|
181
|
+
|
|
182
|
+
export const ColumnOption$zodSchema: z.ZodType<ColumnOption> = z.object({
|
|
183
|
+
label: z.string(),
|
|
184
|
+
value: z.string(),
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
export type Column = {
|
|
188
|
+
key: string;
|
|
189
|
+
label: string;
|
|
190
|
+
required?: boolean | undefined;
|
|
191
|
+
placeholder?: string | undefined;
|
|
192
|
+
description?: string | undefined;
|
|
193
|
+
type?: ColumnType | undefined;
|
|
194
|
+
options?: Array<ColumnOption> | undefined;
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
export const Column$zodSchema: z.ZodType<Column> = z.object({
|
|
198
|
+
description: z.string().optional(),
|
|
199
|
+
key: z.string(),
|
|
200
|
+
label: z.string(),
|
|
201
|
+
options: z.array(z.lazy(() => ColumnOption$zodSchema)).optional(),
|
|
202
|
+
placeholder: z.string().optional(),
|
|
203
|
+
required: z.boolean().optional(),
|
|
204
|
+
type: ColumnType$zodSchema.optional(),
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* One input in the form. `data` on a submission is keyed by `key`.
|
|
209
|
+
*/
|
|
210
|
+
export type Field = {
|
|
211
|
+
key: string;
|
|
212
|
+
label: string;
|
|
213
|
+
type: FieldType;
|
|
214
|
+
required: boolean;
|
|
215
|
+
placeholder?: string | undefined;
|
|
216
|
+
description?: string | undefined;
|
|
217
|
+
options?: Array<Option> | undefined;
|
|
218
|
+
accept?: string | undefined;
|
|
219
|
+
columns?: Array<Column> | undefined;
|
|
220
|
+
addRowLabel?: string | undefined;
|
|
221
|
+
defaultRows?: Array<{ [k: string]: string }> | undefined;
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
export const Field$zodSchema: z.ZodType<Field> = z.object({
|
|
225
|
+
accept: z.string().optional().describe(
|
|
226
|
+
"Accepted MIME types for `file` fields",
|
|
227
|
+
),
|
|
228
|
+
addRowLabel: z.string().optional(),
|
|
229
|
+
columns: z.array(z.lazy(() => Column$zodSchema)).optional().describe(
|
|
230
|
+
"Column definitions for `matrix` fields",
|
|
231
|
+
),
|
|
232
|
+
defaultRows: z.array(z.record(z.string(), z.string())).optional().describe(
|
|
233
|
+
"Rows a `matrix` field is pre-seeded with, keyed by column key",
|
|
234
|
+
),
|
|
235
|
+
description: z.string().optional(),
|
|
236
|
+
key: z.string(),
|
|
237
|
+
label: z.string(),
|
|
238
|
+
options: z.array(z.lazy(() => Option$zodSchema)).optional().describe(
|
|
239
|
+
"Choices for `select` fields",
|
|
240
|
+
),
|
|
241
|
+
placeholder: z.string().optional(),
|
|
242
|
+
required: z.boolean(),
|
|
243
|
+
type: FieldType$zodSchema,
|
|
244
|
+
}).describe("One input in the form. `data` on a submission is keyed by `key`.");
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Static definition of the form: its metadata and its fields
|
|
248
|
+
*/
|
|
249
|
+
export type Form = {
|
|
250
|
+
type: EvidenceFormsControllerGetFormWithSubmissionsV1Type;
|
|
251
|
+
title: string;
|
|
252
|
+
description: string;
|
|
253
|
+
category: string;
|
|
254
|
+
submissionDateMode: SubmissionDateMode;
|
|
255
|
+
portalAccessible: boolean;
|
|
256
|
+
fields: Array<Field>;
|
|
257
|
+
optional?: boolean | undefined;
|
|
258
|
+
hidden?: boolean | undefined;
|
|
259
|
+
anonymous?: boolean | undefined;
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
export const Form$zodSchema: z.ZodType<Form> = z.object({
|
|
263
|
+
anonymous: z.boolean().optional().describe(
|
|
264
|
+
"The form promises anonymity: `submittedById`/`submittedBy` are always null on its submissions",
|
|
265
|
+
),
|
|
266
|
+
category: z.string(),
|
|
267
|
+
description: z.string(),
|
|
268
|
+
fields: z.array(z.lazy(() => Field$zodSchema)),
|
|
269
|
+
hidden: z.boolean().optional(),
|
|
270
|
+
optional: z.boolean().optional(),
|
|
271
|
+
portalAccessible: z.boolean().describe(
|
|
272
|
+
"Whether employees can submit this form from the portal",
|
|
273
|
+
),
|
|
274
|
+
submissionDateMode: SubmissionDateMode$zodSchema.describe(
|
|
275
|
+
"`custom` lets the submitter pick the submission date; `auto` stamps it",
|
|
276
|
+
),
|
|
277
|
+
title: z.string(),
|
|
278
|
+
type: EvidenceFormsControllerGetFormWithSubmissionsV1Type$zodSchema,
|
|
279
|
+
}).describe("Static definition of the form: its metadata and its fields");
|
|
280
|
+
|
|
281
|
+
export type EvidenceFormsControllerGetFormWithSubmissionsV1SubmittedBy = {
|
|
282
|
+
id?: string | undefined;
|
|
283
|
+
name?: string | undefined;
|
|
284
|
+
email?: string | undefined;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
export const EvidenceFormsControllerGetFormWithSubmissionsV1SubmittedBy$zodSchema:
|
|
288
|
+
z.ZodType<EvidenceFormsControllerGetFormWithSubmissionsV1SubmittedBy> = z
|
|
289
|
+
.object({
|
|
290
|
+
email: z.string().optional(),
|
|
291
|
+
id: z.string().optional(),
|
|
292
|
+
name: z.string().optional(),
|
|
293
|
+
});
|
|
294
|
+
|
|
295
|
+
export type Submission = {
|
|
296
|
+
id: string;
|
|
297
|
+
organizationId: string;
|
|
298
|
+
formType: EvidenceFormsControllerGetFormWithSubmissionsV1FormType;
|
|
299
|
+
status: EvidenceFormsControllerGetFormWithSubmissionsV1Status;
|
|
300
|
+
submittedAt: string;
|
|
301
|
+
submittedById?: string | null | undefined;
|
|
302
|
+
submittedBy?:
|
|
303
|
+
| EvidenceFormsControllerGetFormWithSubmissionsV1SubmittedBy
|
|
304
|
+
| null
|
|
305
|
+
| undefined;
|
|
306
|
+
reviewedById?: string | null | undefined;
|
|
307
|
+
reviewedAt?: string | null | undefined;
|
|
308
|
+
reviewReason?: string | null | undefined;
|
|
309
|
+
data: { [k: string]: any };
|
|
310
|
+
createdAt?: string | undefined;
|
|
311
|
+
updatedAt?: string | undefined;
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
export const Submission$zodSchema: z.ZodType<Submission> = z.object({
|
|
315
|
+
createdAt: z.iso.datetime({ offset: true }).optional(),
|
|
316
|
+
data: z.record(z.string(), z.any()).describe(
|
|
317
|
+
"Answers keyed by the form definition field keys. File fields carry a short-lived downloadUrl.",
|
|
318
|
+
),
|
|
319
|
+
formType: EvidenceFormsControllerGetFormWithSubmissionsV1FormType$zodSchema,
|
|
320
|
+
id: z.string(),
|
|
321
|
+
organizationId: z.string(),
|
|
322
|
+
reviewReason: z.string().nullable().optional(),
|
|
323
|
+
reviewedAt: z.iso.datetime({ offset: true }).nullable().optional(),
|
|
324
|
+
reviewedById: z.string().nullable().optional(),
|
|
325
|
+
status: EvidenceFormsControllerGetFormWithSubmissionsV1Status$zodSchema
|
|
326
|
+
.describe("Review status of the submission"),
|
|
327
|
+
submittedAt: z.iso.datetime({ offset: true }),
|
|
328
|
+
submittedBy: z.lazy(() =>
|
|
329
|
+
EvidenceFormsControllerGetFormWithSubmissionsV1SubmittedBy$zodSchema
|
|
330
|
+
).nullable().optional(),
|
|
331
|
+
submittedById: z.string().nullable().optional().describe(
|
|
332
|
+
"User who submitted. Always null for forms that promise anonymity (e.g. whistleblower reports).",
|
|
333
|
+
),
|
|
334
|
+
updatedAt: z.iso.datetime({ offset: true }).optional(),
|
|
335
|
+
});
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Form definition and its submissions retrieved successfully. Note the envelope: `{ form, submissions, total }`, not `{ data, count }`.
|
|
339
|
+
*/
|
|
340
|
+
export type EvidenceFormsControllerGetFormWithSubmissionsV1Response = {
|
|
341
|
+
form: Form;
|
|
342
|
+
submissions: Array<Submission>;
|
|
343
|
+
total: number;
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
export const EvidenceFormsControllerGetFormWithSubmissionsV1Response$zodSchema:
|
|
347
|
+
z.ZodType<EvidenceFormsControllerGetFormWithSubmissionsV1Response> = z.object(
|
|
348
|
+
{
|
|
349
|
+
form: z.lazy(() => Form$zodSchema).describe(
|
|
350
|
+
"Static definition of the form: its metadata and its fields",
|
|
351
|
+
),
|
|
352
|
+
submissions: z.array(z.lazy(() => Submission$zodSchema)).describe(
|
|
353
|
+
"The page of submissions selected by search/limit/offset, newest first",
|
|
354
|
+
),
|
|
355
|
+
total: z.number().describe(
|
|
356
|
+
"Total submissions matching the search, before limit/offset",
|
|
357
|
+
),
|
|
358
|
+
},
|
|
359
|
+
).describe(
|
|
360
|
+
"Form definition and its submissions retrieved successfully. Note the envelope: `{ form, submissions, total }`, not `{ data, count }`.",
|
|
361
|
+
);
|
|
@@ -4,15 +4,61 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Restrict to one form type. Omit for every form type.
|
|
11
|
+
*/
|
|
12
|
+
export const EvidenceFormsControllerGetMySubmissionsV1FormType = {
|
|
13
|
+
BoardMeeting: "board-meeting",
|
|
14
|
+
ItLeadershipMeeting: "it-leadership-meeting",
|
|
15
|
+
RiskCommitteeMeeting: "risk-committee-meeting",
|
|
16
|
+
Meeting: "meeting",
|
|
17
|
+
AccessRequest: "access-request",
|
|
18
|
+
WhistleblowerReport: "whistleblower-report",
|
|
19
|
+
PenetrationTest: "penetration-test",
|
|
20
|
+
RbacMatrix: "rbac-matrix",
|
|
21
|
+
InfrastructureInventory: "infrastructure-inventory",
|
|
22
|
+
EmployeePerformanceEvaluation: "employee-performance-evaluation",
|
|
23
|
+
NetworkDiagram: "network-diagram",
|
|
24
|
+
TabletopExercise: "tabletop-exercise",
|
|
25
|
+
AccountTypes: "account-types",
|
|
26
|
+
} as const;
|
|
27
|
+
/**
|
|
28
|
+
* Restrict to one form type. Omit for every form type.
|
|
29
|
+
*/
|
|
30
|
+
export type EvidenceFormsControllerGetMySubmissionsV1FormType = ClosedEnum<
|
|
31
|
+
typeof EvidenceFormsControllerGetMySubmissionsV1FormType
|
|
32
|
+
>;
|
|
33
|
+
|
|
34
|
+
export const EvidenceFormsControllerGetMySubmissionsV1FormType$zodSchema = z
|
|
35
|
+
.enum([
|
|
36
|
+
"board-meeting",
|
|
37
|
+
"it-leadership-meeting",
|
|
38
|
+
"risk-committee-meeting",
|
|
39
|
+
"meeting",
|
|
40
|
+
"access-request",
|
|
41
|
+
"whistleblower-report",
|
|
42
|
+
"penetration-test",
|
|
43
|
+
"rbac-matrix",
|
|
44
|
+
"infrastructure-inventory",
|
|
45
|
+
"employee-performance-evaluation",
|
|
46
|
+
"network-diagram",
|
|
47
|
+
"tabletop-exercise",
|
|
48
|
+
"account-types",
|
|
49
|
+
]).describe("Restrict to one form type. Omit for every form type.");
|
|
7
50
|
|
|
8
51
|
export type EvidenceFormsControllerGetMySubmissionsV1Request = {
|
|
9
52
|
xOrganizationId?: string | undefined;
|
|
10
|
-
formType
|
|
53
|
+
formType?: EvidenceFormsControllerGetMySubmissionsV1FormType | undefined;
|
|
11
54
|
};
|
|
12
55
|
|
|
13
56
|
export const EvidenceFormsControllerGetMySubmissionsV1Request$zodSchema:
|
|
14
57
|
z.ZodType<EvidenceFormsControllerGetMySubmissionsV1Request> = z.object({
|
|
15
|
-
formType:
|
|
58
|
+
formType: EvidenceFormsControllerGetMySubmissionsV1FormType$zodSchema
|
|
59
|
+
.optional().describe(
|
|
60
|
+
"Restrict to one form type. Omit for every form type.",
|
|
61
|
+
),
|
|
16
62
|
xOrganizationId: z.string().describe(
|
|
17
63
|
"Organization ID (required for session auth, optional for API key auth)",
|
|
18
64
|
).optional(),
|
|
@@ -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");
|