@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
|
@@ -8,7 +8,7 @@ import { ConnectionsControllerListProvidersV1Request$zodSchema } from "../../mod
|
|
|
8
8
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
9
9
|
|
|
10
10
|
const args = {
|
|
11
|
-
request: ConnectionsControllerListProvidersV1Request$zodSchema,
|
|
11
|
+
request: ConnectionsControllerListProvidersV1Request$zodSchema.optional(),
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export const tool$integrationsConnectionsControllerListProvidersV1:
|
|
@@ -8,7 +8,8 @@ import { SyncControllerGetAvailableSyncProvidersV1Request$zodSchema } from "../.
|
|
|
8
8
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
9
9
|
|
|
10
10
|
const args = {
|
|
11
|
-
request: SyncControllerGetAvailableSyncProvidersV1Request$zodSchema
|
|
11
|
+
request: SyncControllerGetAvailableSyncProvidersV1Request$zodSchema
|
|
12
|
+
.optional(),
|
|
12
13
|
};
|
|
13
14
|
|
|
14
15
|
export const tool$integrationsSyncControllerGetAvailableSyncProvidersV1:
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d3fdd830c115
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { ismsISMSRegistersControllerImportFindingsAsNonconformitiesV1 } from "../../funcs/ismsISMSRegistersControllerImportFindingsAsNonconformitiesV1.js";
|
|
7
|
+
import { IsmsRegistersControllerImportFindingsAsNonconformitiesV1Request$zodSchema } from "../../models/ismsregisterscontrollerimportfindingsasnonconformitiesv1op.js";
|
|
8
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
9
|
+
|
|
10
|
+
const args = {
|
|
11
|
+
request:
|
|
12
|
+
IsmsRegistersControllerImportFindingsAsNonconformitiesV1Request$zodSchema,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const tool$ismsISMSRegistersControllerImportFindingsAsNonconformitiesV1:
|
|
16
|
+
ToolDefinition<typeof args> = {
|
|
17
|
+
name: "import-findings-as-nonconformities",
|
|
18
|
+
description: `Raise register entries from internal-audit findings
|
|
19
|
+
|
|
20
|
+
Raises the chosen internal-audit findings as entries in the Nonconformity & Corrective Action Register, in one transaction. A finding already imported is skipped, never duplicated. Findings must belong to this register's framework.`,
|
|
21
|
+
annotations: {
|
|
22
|
+
"title": "",
|
|
23
|
+
"destructiveHint": false,
|
|
24
|
+
"idempotentHint": false,
|
|
25
|
+
"openWorldHint": false,
|
|
26
|
+
"readOnlyHint": false,
|
|
27
|
+
},
|
|
28
|
+
args,
|
|
29
|
+
tool: async (client, args, ctx) => {
|
|
30
|
+
const [result] =
|
|
31
|
+
await ismsISMSRegistersControllerImportFindingsAsNonconformitiesV1(
|
|
32
|
+
client,
|
|
33
|
+
args.request,
|
|
34
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
35
|
+
).$inspect();
|
|
36
|
+
|
|
37
|
+
if (!result.ok) {
|
|
38
|
+
return {
|
|
39
|
+
content: [{ type: "text", text: result.error.message }],
|
|
40
|
+
isError: true,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return formatResult(result.value);
|
|
45
|
+
},
|
|
46
|
+
};
|
|
@@ -8,7 +8,7 @@ import { PeopleControllerGetAllPeopleV1Request$zodSchema } from "../../models/pe
|
|
|
8
8
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
9
9
|
|
|
10
10
|
const args = {
|
|
11
|
-
request: PeopleControllerGetAllPeopleV1Request$zodSchema,
|
|
11
|
+
request: PeopleControllerGetAllPeopleV1Request$zodSchema.optional(),
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export const tool$peoplePeopleControllerGetAllPeopleV1: ToolDefinition<
|
|
@@ -8,15 +8,17 @@ import * as z from "zod";
|
|
|
8
8
|
export type AutomationsControllerGetAutomationVersionsV1Request = {
|
|
9
9
|
taskId: string;
|
|
10
10
|
automationId: string;
|
|
11
|
-
limit
|
|
12
|
-
offset
|
|
11
|
+
limit?: string | undefined;
|
|
12
|
+
offset?: string | undefined;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export const AutomationsControllerGetAutomationVersionsV1Request$zodSchema:
|
|
16
16
|
z.ZodType<AutomationsControllerGetAutomationVersionsV1Request> = z.object({
|
|
17
17
|
automationId: z.string().describe("Automation ID"),
|
|
18
|
-
limit: z.string(),
|
|
19
|
-
offset: z.string()
|
|
18
|
+
limit: z.string().describe("Page size. Omit for every version.").optional(),
|
|
19
|
+
offset: z.string().describe(
|
|
20
|
+
"Versions to skip. Omit to start at the newest.",
|
|
21
|
+
).optional(),
|
|
20
22
|
taskId: z.string().describe("Task ID"),
|
|
21
23
|
});
|
|
22
24
|
|
|
@@ -6,11 +6,13 @@
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
8
|
export type ConnectionsControllerListProvidersV1Request = {
|
|
9
|
-
activeOnly
|
|
9
|
+
activeOnly?: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export const ConnectionsControllerListProvidersV1Request$zodSchema: z.ZodType<
|
|
13
13
|
ConnectionsControllerListProvidersV1Request
|
|
14
14
|
> = z.object({
|
|
15
|
-
activeOnly: z.string()
|
|
15
|
+
activeOnly: z.string().describe(
|
|
16
|
+
"Pass true to list only providers that are currently active",
|
|
17
|
+
).optional(),
|
|
16
18
|
});
|
|
@@ -7,12 +7,14 @@ import * as z from "zod";
|
|
|
7
7
|
|
|
8
8
|
export type ControlsControllerFindOneV1Request = {
|
|
9
9
|
id: string;
|
|
10
|
-
frameworkInstanceId
|
|
10
|
+
frameworkInstanceId?: string | undefined;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const ControlsControllerFindOneV1Request$zodSchema: z.ZodType<
|
|
14
14
|
ControlsControllerFindOneV1Request
|
|
15
15
|
> = z.object({
|
|
16
|
-
frameworkInstanceId: z.string()
|
|
16
|
+
frameworkInstanceId: z.string().describe(
|
|
17
|
+
"Scope to one framework instance. Omit to use every instance the control belongs to.",
|
|
18
|
+
).optional(),
|
|
17
19
|
id: z.string(),
|
|
18
20
|
});
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
|
|
12
12
|
export type ControlsControllerLinkDocumentTypesV1Request = {
|
|
13
13
|
id: string;
|
|
14
|
-
frameworkInstanceId
|
|
14
|
+
frameworkInstanceId?: string | undefined;
|
|
15
15
|
body: LinkDocumentTypesDto;
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -19,6 +19,8 @@ export const ControlsControllerLinkDocumentTypesV1Request$zodSchema: z.ZodType<
|
|
|
19
19
|
ControlsControllerLinkDocumentTypesV1Request
|
|
20
20
|
> = z.object({
|
|
21
21
|
body: LinkDocumentTypesDto$zodSchema,
|
|
22
|
-
frameworkInstanceId: z.string()
|
|
22
|
+
frameworkInstanceId: z.string().describe(
|
|
23
|
+
"Scope to one framework instance. Omit to use every instance the control belongs to.",
|
|
24
|
+
).optional(),
|
|
23
25
|
id: z.string(),
|
|
24
26
|
});
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
|
|
12
12
|
export type ControlsControllerLinkPoliciesV1Request = {
|
|
13
13
|
id: string;
|
|
14
|
-
frameworkInstanceId
|
|
14
|
+
frameworkInstanceId?: string | undefined;
|
|
15
15
|
body: LinkPoliciesDto;
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -19,6 +19,8 @@ export const ControlsControllerLinkPoliciesV1Request$zodSchema: z.ZodType<
|
|
|
19
19
|
ControlsControllerLinkPoliciesV1Request
|
|
20
20
|
> = z.object({
|
|
21
21
|
body: LinkPoliciesDto$zodSchema,
|
|
22
|
-
frameworkInstanceId: z.string()
|
|
22
|
+
frameworkInstanceId: z.string().describe(
|
|
23
|
+
"Scope to one framework instance. Omit to use every instance the control belongs to.",
|
|
24
|
+
).optional(),
|
|
23
25
|
id: z.string(),
|
|
24
26
|
});
|
|
@@ -8,7 +8,7 @@ import { LinkTasksDto, LinkTasksDto$zodSchema } from "./linktasksdto.js";
|
|
|
8
8
|
|
|
9
9
|
export type ControlsControllerLinkTasksV1Request = {
|
|
10
10
|
id: string;
|
|
11
|
-
frameworkInstanceId
|
|
11
|
+
frameworkInstanceId?: string | undefined;
|
|
12
12
|
body: LinkTasksDto;
|
|
13
13
|
};
|
|
14
14
|
|
|
@@ -16,6 +16,8 @@ export const ControlsControllerLinkTasksV1Request$zodSchema: z.ZodType<
|
|
|
16
16
|
ControlsControllerLinkTasksV1Request
|
|
17
17
|
> = z.object({
|
|
18
18
|
body: LinkTasksDto$zodSchema,
|
|
19
|
-
frameworkInstanceId: z.string()
|
|
19
|
+
frameworkInstanceId: z.string().describe(
|
|
20
|
+
"Scope to one framework instance. Omit to use every instance the control belongs to.",
|
|
21
|
+
).optional(),
|
|
20
22
|
id: z.string(),
|
|
21
23
|
});
|
|
@@ -49,7 +49,7 @@ export const ControlsControllerUnlinkDocumentTypeV1FormType$zodSchema = z.enum([
|
|
|
49
49
|
|
|
50
50
|
export type ControlsControllerUnlinkDocumentTypeV1Request = {
|
|
51
51
|
id: string;
|
|
52
|
-
frameworkInstanceId
|
|
52
|
+
frameworkInstanceId?: string | undefined;
|
|
53
53
|
formType: ControlsControllerUnlinkDocumentTypeV1FormType;
|
|
54
54
|
};
|
|
55
55
|
|
|
@@ -59,6 +59,8 @@ export const ControlsControllerUnlinkDocumentTypeV1Request$zodSchema: z.ZodType<
|
|
|
59
59
|
formType: ControlsControllerUnlinkDocumentTypeV1FormType$zodSchema.describe(
|
|
60
60
|
"Evidence form type to unlink from the control",
|
|
61
61
|
),
|
|
62
|
-
frameworkInstanceId: z.string()
|
|
62
|
+
frameworkInstanceId: z.string().describe(
|
|
63
|
+
"Scope to one framework instance. Omit to use every instance the control belongs to.",
|
|
64
|
+
).optional(),
|
|
63
65
|
id: z.string().describe("Unique control identifier"),
|
|
64
66
|
});
|
|
@@ -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(),
|