@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
|
@@ -28,6 +28,7 @@ export const IsmsRegistersControllerCreateRowV1Register = {
|
|
|
28
28
|
Obligations: "obligations",
|
|
29
29
|
KeyRecords: "key-records",
|
|
30
30
|
ApprovedSoftware: "approved-software",
|
|
31
|
+
Nonconformities: "nonconformities",
|
|
31
32
|
} as const;
|
|
32
33
|
/**
|
|
33
34
|
* Which ISMS register the row belongs to.
|
|
@@ -55,6 +56,7 @@ export const IsmsRegistersControllerCreateRowV1Register$zodSchema = z.enum([
|
|
|
55
56
|
"obligations",
|
|
56
57
|
"key-records",
|
|
57
58
|
"approved-software",
|
|
59
|
+
"nonconformities",
|
|
58
60
|
]).describe("Which ISMS register the row belongs to.");
|
|
59
61
|
|
|
60
62
|
export const IsmsRegistersControllerCreateRowV1Kind = {
|
|
@@ -92,6 +94,8 @@ export const IsmsRegistersControllerCreateRowV1Status = {
|
|
|
92
94
|
Complete: "complete",
|
|
93
95
|
Open: "open",
|
|
94
96
|
Closed: "closed",
|
|
97
|
+
ActionComplete: "action_complete",
|
|
98
|
+
VerifiedAndClosed: "verified_and_closed",
|
|
95
99
|
} as const;
|
|
96
100
|
export type IsmsRegistersControllerCreateRowV1Status = ClosedEnum<
|
|
97
101
|
typeof IsmsRegistersControllerCreateRowV1Status
|
|
@@ -107,6 +111,8 @@ export const IsmsRegistersControllerCreateRowV1Status$zodSchema = z.enum([
|
|
|
107
111
|
"complete",
|
|
108
112
|
"open",
|
|
109
113
|
"closed",
|
|
114
|
+
"action_complete",
|
|
115
|
+
"verified_and_closed",
|
|
110
116
|
]);
|
|
111
117
|
|
|
112
118
|
export const IsmsRegistersControllerCreateRowV1AuditRoute = {
|
|
@@ -242,6 +248,9 @@ export const IsmsRegistersControllerCreateRowV1Type = {
|
|
|
242
248
|
NcMinor: "nc_minor",
|
|
243
249
|
Ofi: "ofi",
|
|
244
250
|
Observation: "observation",
|
|
251
|
+
MinorNonconformity: "minor_nonconformity",
|
|
252
|
+
MajorNonconformity: "major_nonconformity",
|
|
253
|
+
ImprovementOpportunity: "improvement_opportunity",
|
|
245
254
|
} as const;
|
|
246
255
|
export type IsmsRegistersControllerCreateRowV1Type = ClosedEnum<
|
|
247
256
|
typeof IsmsRegistersControllerCreateRowV1Type
|
|
@@ -252,6 +261,9 @@ export const IsmsRegistersControllerCreateRowV1Type$zodSchema = z.enum([
|
|
|
252
261
|
"nc_minor",
|
|
253
262
|
"ofi",
|
|
254
263
|
"observation",
|
|
264
|
+
"minor_nonconformity",
|
|
265
|
+
"major_nonconformity",
|
|
266
|
+
"improvement_opportunity",
|
|
255
267
|
]);
|
|
256
268
|
|
|
257
269
|
export const IsmsRegistersControllerCreateRowV1Audience = {
|
|
@@ -380,6 +392,53 @@ export const IsmsRegistersControllerCreateRowV1Licence$zodSchema = z.enum([
|
|
|
380
392
|
"internal",
|
|
381
393
|
]);
|
|
382
394
|
|
|
395
|
+
export const IsmsRegistersControllerCreateRowV1Source = {
|
|
396
|
+
InternalAudit: "internal_audit",
|
|
397
|
+
ExternalAudit: "external_audit",
|
|
398
|
+
Incident: "incident",
|
|
399
|
+
ManagementReview: "management_review",
|
|
400
|
+
ControlOrTaskFailure: "control_or_task_failure",
|
|
401
|
+
CustomerOrVendorIssue: "customer_or_vendor_issue",
|
|
402
|
+
Other: "other",
|
|
403
|
+
} as const;
|
|
404
|
+
export type IsmsRegistersControllerCreateRowV1Source = ClosedEnum<
|
|
405
|
+
typeof IsmsRegistersControllerCreateRowV1Source
|
|
406
|
+
>;
|
|
407
|
+
|
|
408
|
+
export const IsmsRegistersControllerCreateRowV1Source$zodSchema = z.enum([
|
|
409
|
+
"internal_audit",
|
|
410
|
+
"external_audit",
|
|
411
|
+
"incident",
|
|
412
|
+
"management_review",
|
|
413
|
+
"control_or_task_failure",
|
|
414
|
+
"customer_or_vendor_issue",
|
|
415
|
+
"other",
|
|
416
|
+
]);
|
|
417
|
+
|
|
418
|
+
export const IsmsRegistersControllerCreateRowV1RootCauseCategory = {
|
|
419
|
+
ProcessNotDefined: "process_not_defined",
|
|
420
|
+
ProcessDefinedButNotFollowed: "process_defined_but_not_followed",
|
|
421
|
+
NoOwnerAssigned: "no_owner_assigned",
|
|
422
|
+
LackOfAwarenessOrTraining: "lack_of_awareness_or_training",
|
|
423
|
+
ToolingOrSystemGap: "tooling_or_system_gap",
|
|
424
|
+
ResourceConstraint: "resource_constraint",
|
|
425
|
+
OneOffHumanError: "one_off_human_error",
|
|
426
|
+
} as const;
|
|
427
|
+
export type IsmsRegistersControllerCreateRowV1RootCauseCategory = ClosedEnum<
|
|
428
|
+
typeof IsmsRegistersControllerCreateRowV1RootCauseCategory
|
|
429
|
+
>;
|
|
430
|
+
|
|
431
|
+
export const IsmsRegistersControllerCreateRowV1RootCauseCategory$zodSchema = z
|
|
432
|
+
.enum([
|
|
433
|
+
"process_not_defined",
|
|
434
|
+
"process_defined_but_not_followed",
|
|
435
|
+
"no_owner_assigned",
|
|
436
|
+
"lack_of_awareness_or_training",
|
|
437
|
+
"tooling_or_system_gap",
|
|
438
|
+
"resource_constraint",
|
|
439
|
+
"one_off_human_error",
|
|
440
|
+
]);
|
|
441
|
+
|
|
383
442
|
export type IsmsRegistersControllerCreateRowV1Attendee = {
|
|
384
443
|
memberId: string;
|
|
385
444
|
name: string;
|
|
@@ -513,6 +572,19 @@ export type IsmsRegistersControllerCreateRowV1RequestBody = {
|
|
|
513
572
|
vendorId?: string | null | undefined;
|
|
514
573
|
usedWhere?: IsmsRegistersControllerCreateRowV1UsedWhere | null | undefined;
|
|
515
574
|
licence?: IsmsRegistersControllerCreateRowV1Licence | null | undefined;
|
|
575
|
+
raisedAt?: string | undefined;
|
|
576
|
+
source?: IsmsRegistersControllerCreateRowV1Source | undefined;
|
|
577
|
+
correction?: string | null | undefined;
|
|
578
|
+
rootCauseCategory?:
|
|
579
|
+
| IsmsRegistersControllerCreateRowV1RootCauseCategory
|
|
580
|
+
| null
|
|
581
|
+
| undefined;
|
|
582
|
+
rootCause?: string | null | undefined;
|
|
583
|
+
correctiveAction?: string | null | undefined;
|
|
584
|
+
actionCompletedAt?: string | null | undefined;
|
|
585
|
+
verifiedByMemberId?: string | null | undefined;
|
|
586
|
+
verifiedAt?: string | null | undefined;
|
|
587
|
+
verificationCheck?: string | null | undefined;
|
|
516
588
|
position?: number | undefined;
|
|
517
589
|
};
|
|
518
590
|
|
|
@@ -526,6 +598,7 @@ export const IsmsRegistersControllerCreateRowV1RequestBody$zodSchema: z.ZodType<
|
|
|
526
598
|
accessText: z.string().nullable().optional().describe(
|
|
527
599
|
"Free-text access holder, for answers no picker can express (e.g. \"Each individual\")",
|
|
528
600
|
),
|
|
601
|
+
actionCompletedAt: z.string().nullable().optional(),
|
|
529
602
|
analyzeMemberId: z.string().nullable().optional(),
|
|
530
603
|
attendees: z.array(
|
|
531
604
|
z.lazy(() => IsmsRegistersControllerCreateRowV1Attendee$zodSchema),
|
|
@@ -564,6 +637,12 @@ export const IsmsRegistersControllerCreateRowV1RequestBody$zodSchema: z.ZodType<
|
|
|
564
637
|
),
|
|
565
638
|
controlId: z.string().nullable().optional(),
|
|
566
639
|
controlRef: z.string().optional(),
|
|
640
|
+
correction: z.string().nullable().optional().describe(
|
|
641
|
+
"The immediate fix, as opposed to the corrective action",
|
|
642
|
+
),
|
|
643
|
+
correctiveAction: z.string().nullable().optional().describe(
|
|
644
|
+
"What stops the nonconformity recurring",
|
|
645
|
+
),
|
|
567
646
|
criteria: z.string().optional(),
|
|
568
647
|
decisionsText: z.string().nullable().optional(),
|
|
569
648
|
description: z.string().optional(),
|
|
@@ -615,6 +694,9 @@ export const IsmsRegistersControllerCreateRowV1RequestBody$zodSchema: z.ZodType<
|
|
|
615
694
|
position: z.int().optional(),
|
|
616
695
|
protects: z.string().optional(),
|
|
617
696
|
purpose: z.string().nullable().optional(),
|
|
697
|
+
raisedAt: z.string().optional().describe(
|
|
698
|
+
"Date the entry was raised (YYYY-MM-DD); defaults to today",
|
|
699
|
+
),
|
|
618
700
|
recipients: z.string().optional(),
|
|
619
701
|
remediationAction: z.string().nullable().optional(),
|
|
620
702
|
remediationDueDate: z.string().nullable().optional(),
|
|
@@ -625,6 +707,10 @@ export const IsmsRegistersControllerCreateRowV1RequestBody$zodSchema: z.ZodType<
|
|
|
625
707
|
.optional(),
|
|
626
708
|
reviewId: z.string().optional(),
|
|
627
709
|
roleId: z.string().optional(),
|
|
710
|
+
rootCause: z.string().nullable().optional(),
|
|
711
|
+
rootCauseCategory:
|
|
712
|
+
IsmsRegistersControllerCreateRowV1RootCauseCategory$zodSchema.nullable()
|
|
713
|
+
.optional(),
|
|
628
714
|
rotation: IsmsRegistersControllerCreateRowV1Rotation$zodSchema.optional(),
|
|
629
715
|
rotationNote: z.string().nullable().optional().describe(
|
|
630
716
|
"Only kept when rotation is not_rotated",
|
|
@@ -638,6 +724,7 @@ export const IsmsRegistersControllerCreateRowV1RequestBody$zodSchema: z.ZodType<
|
|
|
638
724
|
signoffSpoName: z.string().nullable().optional(),
|
|
639
725
|
signoffTopMgmtDate: z.string().nullable().optional(),
|
|
640
726
|
signoffTopMgmtName: z.string().nullable().optional(),
|
|
727
|
+
source: IsmsRegistersControllerCreateRowV1Source$zodSchema.optional(),
|
|
641
728
|
status: IsmsRegistersControllerCreateRowV1Status$zodSchema.optional(),
|
|
642
729
|
target: z.string().optional(),
|
|
643
730
|
targetDate: z.string().nullable().optional().describe(
|
|
@@ -659,6 +746,11 @@ export const IsmsRegistersControllerCreateRowV1RequestBody$zodSchema: z.ZodType<
|
|
|
659
746
|
vendorId: z.string().nullable().optional().describe(
|
|
660
747
|
"Links the row to a vendor; the name then renders live",
|
|
661
748
|
),
|
|
749
|
+
verificationCheck: z.string().nullable().optional().describe(
|
|
750
|
+
"How effectiveness was confirmed",
|
|
751
|
+
),
|
|
752
|
+
verifiedAt: z.string().nullable().optional(),
|
|
753
|
+
verifiedByMemberId: z.string().nullable().optional(),
|
|
662
754
|
what: z.string().optional(),
|
|
663
755
|
whatIsMeasured: z.string().optional(),
|
|
664
756
|
whatItCovers: z.string().optional(),
|
|
@@ -28,6 +28,7 @@ export const IsmsRegistersControllerDeleteRowV1Register = {
|
|
|
28
28
|
Obligations: "obligations",
|
|
29
29
|
KeyRecords: "key-records",
|
|
30
30
|
ApprovedSoftware: "approved-software",
|
|
31
|
+
Nonconformities: "nonconformities",
|
|
31
32
|
} as const;
|
|
32
33
|
/**
|
|
33
34
|
* Which ISMS register the row belongs to.
|
|
@@ -55,6 +56,7 @@ export const IsmsRegistersControllerDeleteRowV1Register$zodSchema = z.enum([
|
|
|
55
56
|
"obligations",
|
|
56
57
|
"key-records",
|
|
57
58
|
"approved-software",
|
|
59
|
+
"nonconformities",
|
|
58
60
|
]).describe("Which ISMS register the row belongs to.");
|
|
59
61
|
|
|
60
62
|
export type IsmsRegistersControllerDeleteRowV1Request = {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 77345d273096
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Internal-audit findings to raise as Nonconformity Register entries
|
|
10
|
+
*/
|
|
11
|
+
export type IsmsRegistersControllerImportFindingsAsNonconformitiesV1RequestBody =
|
|
12
|
+
{ findingIds: Array<string> };
|
|
13
|
+
|
|
14
|
+
export const IsmsRegistersControllerImportFindingsAsNonconformitiesV1RequestBody$zodSchema:
|
|
15
|
+
z.ZodType<
|
|
16
|
+
IsmsRegistersControllerImportFindingsAsNonconformitiesV1RequestBody
|
|
17
|
+
> = z.object({
|
|
18
|
+
findingIds: z.array(z.string()).describe(
|
|
19
|
+
"Finding ids from an Internal Audit document in the same framework as this register.",
|
|
20
|
+
),
|
|
21
|
+
}).describe(
|
|
22
|
+
"Internal-audit findings to raise as Nonconformity Register entries",
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
export type IsmsRegistersControllerImportFindingsAsNonconformitiesV1Request = {
|
|
26
|
+
id: string;
|
|
27
|
+
body: IsmsRegistersControllerImportFindingsAsNonconformitiesV1RequestBody;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const IsmsRegistersControllerImportFindingsAsNonconformitiesV1Request$zodSchema:
|
|
31
|
+
z.ZodType<IsmsRegistersControllerImportFindingsAsNonconformitiesV1Request> = z
|
|
32
|
+
.object({
|
|
33
|
+
body: z.lazy(() =>
|
|
34
|
+
IsmsRegistersControllerImportFindingsAsNonconformitiesV1RequestBody$zodSchema
|
|
35
|
+
).describe(
|
|
36
|
+
"Internal-audit findings to raise as Nonconformity Register entries",
|
|
37
|
+
),
|
|
38
|
+
id: z.string(),
|
|
39
|
+
});
|
|
@@ -28,6 +28,7 @@ export const IsmsRegistersControllerUpdateRowV1Register = {
|
|
|
28
28
|
Obligations: "obligations",
|
|
29
29
|
KeyRecords: "key-records",
|
|
30
30
|
ApprovedSoftware: "approved-software",
|
|
31
|
+
Nonconformities: "nonconformities",
|
|
31
32
|
} as const;
|
|
32
33
|
/**
|
|
33
34
|
* Which ISMS register the row belongs to.
|
|
@@ -55,6 +56,7 @@ export const IsmsRegistersControllerUpdateRowV1Register$zodSchema = z.enum([
|
|
|
55
56
|
"obligations",
|
|
56
57
|
"key-records",
|
|
57
58
|
"approved-software",
|
|
59
|
+
"nonconformities",
|
|
58
60
|
]).describe("Which ISMS register the row belongs to.");
|
|
59
61
|
|
|
60
62
|
export const IsmsRegistersControllerUpdateRowV1Kind = {
|
|
@@ -92,6 +94,8 @@ export const IsmsRegistersControllerUpdateRowV1Status = {
|
|
|
92
94
|
Complete: "complete",
|
|
93
95
|
Open: "open",
|
|
94
96
|
Closed: "closed",
|
|
97
|
+
ActionComplete: "action_complete",
|
|
98
|
+
VerifiedAndClosed: "verified_and_closed",
|
|
95
99
|
} as const;
|
|
96
100
|
export type IsmsRegistersControllerUpdateRowV1Status = ClosedEnum<
|
|
97
101
|
typeof IsmsRegistersControllerUpdateRowV1Status
|
|
@@ -107,6 +111,8 @@ export const IsmsRegistersControllerUpdateRowV1Status$zodSchema = z.enum([
|
|
|
107
111
|
"complete",
|
|
108
112
|
"open",
|
|
109
113
|
"closed",
|
|
114
|
+
"action_complete",
|
|
115
|
+
"verified_and_closed",
|
|
110
116
|
]);
|
|
111
117
|
|
|
112
118
|
export const IsmsRegistersControllerUpdateRowV1AuditRoute = {
|
|
@@ -242,6 +248,9 @@ export const IsmsRegistersControllerUpdateRowV1Type = {
|
|
|
242
248
|
NcMinor: "nc_minor",
|
|
243
249
|
Ofi: "ofi",
|
|
244
250
|
Observation: "observation",
|
|
251
|
+
MinorNonconformity: "minor_nonconformity",
|
|
252
|
+
MajorNonconformity: "major_nonconformity",
|
|
253
|
+
ImprovementOpportunity: "improvement_opportunity",
|
|
245
254
|
} as const;
|
|
246
255
|
export type IsmsRegistersControllerUpdateRowV1Type = ClosedEnum<
|
|
247
256
|
typeof IsmsRegistersControllerUpdateRowV1Type
|
|
@@ -252,6 +261,9 @@ export const IsmsRegistersControllerUpdateRowV1Type$zodSchema = z.enum([
|
|
|
252
261
|
"nc_minor",
|
|
253
262
|
"ofi",
|
|
254
263
|
"observation",
|
|
264
|
+
"minor_nonconformity",
|
|
265
|
+
"major_nonconformity",
|
|
266
|
+
"improvement_opportunity",
|
|
255
267
|
]);
|
|
256
268
|
|
|
257
269
|
export const IsmsRegistersControllerUpdateRowV1Audience = {
|
|
@@ -380,6 +392,53 @@ export const IsmsRegistersControllerUpdateRowV1Licence$zodSchema = z.enum([
|
|
|
380
392
|
"internal",
|
|
381
393
|
]);
|
|
382
394
|
|
|
395
|
+
export const IsmsRegistersControllerUpdateRowV1Source = {
|
|
396
|
+
InternalAudit: "internal_audit",
|
|
397
|
+
ExternalAudit: "external_audit",
|
|
398
|
+
Incident: "incident",
|
|
399
|
+
ManagementReview: "management_review",
|
|
400
|
+
ControlOrTaskFailure: "control_or_task_failure",
|
|
401
|
+
CustomerOrVendorIssue: "customer_or_vendor_issue",
|
|
402
|
+
Other: "other",
|
|
403
|
+
} as const;
|
|
404
|
+
export type IsmsRegistersControllerUpdateRowV1Source = ClosedEnum<
|
|
405
|
+
typeof IsmsRegistersControllerUpdateRowV1Source
|
|
406
|
+
>;
|
|
407
|
+
|
|
408
|
+
export const IsmsRegistersControllerUpdateRowV1Source$zodSchema = z.enum([
|
|
409
|
+
"internal_audit",
|
|
410
|
+
"external_audit",
|
|
411
|
+
"incident",
|
|
412
|
+
"management_review",
|
|
413
|
+
"control_or_task_failure",
|
|
414
|
+
"customer_or_vendor_issue",
|
|
415
|
+
"other",
|
|
416
|
+
]);
|
|
417
|
+
|
|
418
|
+
export const IsmsRegistersControllerUpdateRowV1RootCauseCategory = {
|
|
419
|
+
ProcessNotDefined: "process_not_defined",
|
|
420
|
+
ProcessDefinedButNotFollowed: "process_defined_but_not_followed",
|
|
421
|
+
NoOwnerAssigned: "no_owner_assigned",
|
|
422
|
+
LackOfAwarenessOrTraining: "lack_of_awareness_or_training",
|
|
423
|
+
ToolingOrSystemGap: "tooling_or_system_gap",
|
|
424
|
+
ResourceConstraint: "resource_constraint",
|
|
425
|
+
OneOffHumanError: "one_off_human_error",
|
|
426
|
+
} as const;
|
|
427
|
+
export type IsmsRegistersControllerUpdateRowV1RootCauseCategory = ClosedEnum<
|
|
428
|
+
typeof IsmsRegistersControllerUpdateRowV1RootCauseCategory
|
|
429
|
+
>;
|
|
430
|
+
|
|
431
|
+
export const IsmsRegistersControllerUpdateRowV1RootCauseCategory$zodSchema = z
|
|
432
|
+
.enum([
|
|
433
|
+
"process_not_defined",
|
|
434
|
+
"process_defined_but_not_followed",
|
|
435
|
+
"no_owner_assigned",
|
|
436
|
+
"lack_of_awareness_or_training",
|
|
437
|
+
"tooling_or_system_gap",
|
|
438
|
+
"resource_constraint",
|
|
439
|
+
"one_off_human_error",
|
|
440
|
+
]);
|
|
441
|
+
|
|
383
442
|
export type IsmsRegistersControllerUpdateRowV1Attendee = {
|
|
384
443
|
memberId: string;
|
|
385
444
|
name: string;
|
|
@@ -513,6 +572,19 @@ export type IsmsRegistersControllerUpdateRowV1RequestBody = {
|
|
|
513
572
|
vendorId?: string | null | undefined;
|
|
514
573
|
usedWhere?: IsmsRegistersControllerUpdateRowV1UsedWhere | null | undefined;
|
|
515
574
|
licence?: IsmsRegistersControllerUpdateRowV1Licence | null | undefined;
|
|
575
|
+
raisedAt?: string | undefined;
|
|
576
|
+
source?: IsmsRegistersControllerUpdateRowV1Source | undefined;
|
|
577
|
+
correction?: string | null | undefined;
|
|
578
|
+
rootCauseCategory?:
|
|
579
|
+
| IsmsRegistersControllerUpdateRowV1RootCauseCategory
|
|
580
|
+
| null
|
|
581
|
+
| undefined;
|
|
582
|
+
rootCause?: string | null | undefined;
|
|
583
|
+
correctiveAction?: string | null | undefined;
|
|
584
|
+
actionCompletedAt?: string | null | undefined;
|
|
585
|
+
verifiedByMemberId?: string | null | undefined;
|
|
586
|
+
verifiedAt?: string | null | undefined;
|
|
587
|
+
verificationCheck?: string | null | undefined;
|
|
516
588
|
position?: number | undefined;
|
|
517
589
|
};
|
|
518
590
|
|
|
@@ -526,6 +598,7 @@ export const IsmsRegistersControllerUpdateRowV1RequestBody$zodSchema: z.ZodType<
|
|
|
526
598
|
accessText: z.string().nullable().optional().describe(
|
|
527
599
|
"Free-text access holder, for answers no picker can express (e.g. \"Each individual\")",
|
|
528
600
|
),
|
|
601
|
+
actionCompletedAt: z.string().nullable().optional(),
|
|
529
602
|
analyzeMemberId: z.string().nullable().optional(),
|
|
530
603
|
attendees: z.array(
|
|
531
604
|
z.lazy(() => IsmsRegistersControllerUpdateRowV1Attendee$zodSchema),
|
|
@@ -564,6 +637,12 @@ export const IsmsRegistersControllerUpdateRowV1RequestBody$zodSchema: z.ZodType<
|
|
|
564
637
|
),
|
|
565
638
|
controlId: z.string().nullable().optional(),
|
|
566
639
|
controlRef: z.string().optional(),
|
|
640
|
+
correction: z.string().nullable().optional().describe(
|
|
641
|
+
"The immediate fix, as opposed to the corrective action",
|
|
642
|
+
),
|
|
643
|
+
correctiveAction: z.string().nullable().optional().describe(
|
|
644
|
+
"What stops the nonconformity recurring",
|
|
645
|
+
),
|
|
567
646
|
criteria: z.string().optional(),
|
|
568
647
|
decisionsText: z.string().nullable().optional(),
|
|
569
648
|
description: z.string().optional(),
|
|
@@ -615,6 +694,9 @@ export const IsmsRegistersControllerUpdateRowV1RequestBody$zodSchema: z.ZodType<
|
|
|
615
694
|
position: z.int().optional(),
|
|
616
695
|
protects: z.string().optional(),
|
|
617
696
|
purpose: z.string().nullable().optional(),
|
|
697
|
+
raisedAt: z.string().optional().describe(
|
|
698
|
+
"Date the entry was raised (YYYY-MM-DD); defaults to today",
|
|
699
|
+
),
|
|
618
700
|
recipients: z.string().optional(),
|
|
619
701
|
remediationAction: z.string().nullable().optional(),
|
|
620
702
|
remediationDueDate: z.string().nullable().optional(),
|
|
@@ -625,6 +707,10 @@ export const IsmsRegistersControllerUpdateRowV1RequestBody$zodSchema: z.ZodType<
|
|
|
625
707
|
.optional(),
|
|
626
708
|
reviewId: z.string().optional(),
|
|
627
709
|
roleId: z.string().optional(),
|
|
710
|
+
rootCause: z.string().nullable().optional(),
|
|
711
|
+
rootCauseCategory:
|
|
712
|
+
IsmsRegistersControllerUpdateRowV1RootCauseCategory$zodSchema.nullable()
|
|
713
|
+
.optional(),
|
|
628
714
|
rotation: IsmsRegistersControllerUpdateRowV1Rotation$zodSchema.optional(),
|
|
629
715
|
rotationNote: z.string().nullable().optional().describe(
|
|
630
716
|
"Only kept when rotation is not_rotated",
|
|
@@ -638,6 +724,7 @@ export const IsmsRegistersControllerUpdateRowV1RequestBody$zodSchema: z.ZodType<
|
|
|
638
724
|
signoffSpoName: z.string().nullable().optional(),
|
|
639
725
|
signoffTopMgmtDate: z.string().nullable().optional(),
|
|
640
726
|
signoffTopMgmtName: z.string().nullable().optional(),
|
|
727
|
+
source: IsmsRegistersControllerUpdateRowV1Source$zodSchema.optional(),
|
|
641
728
|
status: IsmsRegistersControllerUpdateRowV1Status$zodSchema.optional(),
|
|
642
729
|
target: z.string().optional(),
|
|
643
730
|
targetDate: z.string().nullable().optional().describe(
|
|
@@ -659,6 +746,11 @@ export const IsmsRegistersControllerUpdateRowV1RequestBody$zodSchema: z.ZodType<
|
|
|
659
746
|
vendorId: z.string().nullable().optional().describe(
|
|
660
747
|
"Links the row to a vendor; the name then renders live",
|
|
661
748
|
),
|
|
749
|
+
verificationCheck: z.string().nullable().optional().describe(
|
|
750
|
+
"How effectiveness was confirmed",
|
|
751
|
+
),
|
|
752
|
+
verifiedAt: z.string().nullable().optional(),
|
|
753
|
+
verifiedByMemberId: z.string().nullable().optional(),
|
|
662
754
|
what: z.string().optional(),
|
|
663
755
|
whatIsMeasured: z.string().optional(),
|
|
664
756
|
whatItCovers: z.string().optional(),
|
|
@@ -27,14 +27,16 @@ export const PeopleControllerDeleteMemberV1AuthType$zodSchema = z.enum([
|
|
|
27
27
|
|
|
28
28
|
export type PeopleControllerDeleteMemberV1Request = {
|
|
29
29
|
id: string;
|
|
30
|
-
skipOffboarding
|
|
30
|
+
skipOffboarding?: string | undefined;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
export const PeopleControllerDeleteMemberV1Request$zodSchema: z.ZodType<
|
|
34
34
|
PeopleControllerDeleteMemberV1Request
|
|
35
35
|
> = z.object({
|
|
36
36
|
id: z.string().describe("Member ID"),
|
|
37
|
-
skipOffboarding: z.string()
|
|
37
|
+
skipOffboarding: z.string().describe(
|
|
38
|
+
"Pass true to delete without running the offboarding flow",
|
|
39
|
+
).optional(),
|
|
38
40
|
});
|
|
39
41
|
|
|
40
42
|
/**
|
|
@@ -30,21 +30,31 @@ export const PeopleControllerGetAllPeopleV1AuthType$zodSchema = z.enum([
|
|
|
30
30
|
]).describe("How the request was authenticated");
|
|
31
31
|
|
|
32
32
|
export type PeopleControllerGetAllPeopleV1Request = {
|
|
33
|
-
includeDeactivated
|
|
34
|
-
onboardAfter
|
|
35
|
-
onboardBefore
|
|
36
|
-
offboardAfter
|
|
37
|
-
offboardBefore
|
|
33
|
+
includeDeactivated?: string | undefined;
|
|
34
|
+
onboardAfter?: string | undefined;
|
|
35
|
+
onboardBefore?: string | undefined;
|
|
36
|
+
offboardAfter?: string | undefined;
|
|
37
|
+
offboardBefore?: string | undefined;
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
export const PeopleControllerGetAllPeopleV1Request$zodSchema: z.ZodType<
|
|
41
41
|
PeopleControllerGetAllPeopleV1Request
|
|
42
42
|
> = z.object({
|
|
43
|
-
includeDeactivated: z.string()
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
includeDeactivated: z.string().describe(
|
|
44
|
+
"Pass true to include deactivated members",
|
|
45
|
+
).optional(),
|
|
46
|
+
offboardAfter: z.string().describe(
|
|
47
|
+
"ISO date — only members offboarded on or after it",
|
|
48
|
+
).optional(),
|
|
49
|
+
offboardBefore: z.string().describe(
|
|
50
|
+
"ISO date — only members offboarded on or before it",
|
|
51
|
+
).optional(),
|
|
52
|
+
onboardAfter: z.string().describe(
|
|
53
|
+
"ISO date — only members onboarded on or after it",
|
|
54
|
+
).optional(),
|
|
55
|
+
onboardBefore: z.string().describe(
|
|
56
|
+
"ISO date — only members onboarded on or before it",
|
|
57
|
+
).optional(),
|
|
48
58
|
});
|
|
49
59
|
|
|
50
60
|
/**
|
|
@@ -4,6 +4,26 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* How the request was authenticated
|
|
11
|
+
*/
|
|
12
|
+
export const PoliciesControllerGetPolicyControlsV1AuthType = {
|
|
13
|
+
ApiKey: "api-key",
|
|
14
|
+
Session: "session",
|
|
15
|
+
} as const;
|
|
16
|
+
/**
|
|
17
|
+
* How the request was authenticated
|
|
18
|
+
*/
|
|
19
|
+
export type PoliciesControllerGetPolicyControlsV1AuthType = ClosedEnum<
|
|
20
|
+
typeof PoliciesControllerGetPolicyControlsV1AuthType
|
|
21
|
+
>;
|
|
22
|
+
|
|
23
|
+
export const PoliciesControllerGetPolicyControlsV1AuthType$zodSchema = z.enum([
|
|
24
|
+
"api-key",
|
|
25
|
+
"session",
|
|
26
|
+
]).describe("How the request was authenticated");
|
|
7
27
|
|
|
8
28
|
export type PoliciesControllerGetPolicyControlsV1Request = {
|
|
9
29
|
xOrganizationId?: string | undefined;
|
|
@@ -18,3 +38,97 @@ export const PoliciesControllerGetPolicyControlsV1Request$zodSchema: z.ZodType<
|
|
|
18
38
|
"Organization ID (required for session auth, optional for API key auth)",
|
|
19
39
|
).optional(),
|
|
20
40
|
});
|
|
41
|
+
|
|
42
|
+
export type MappedControlFramework = { id: string; name: string };
|
|
43
|
+
|
|
44
|
+
export const MappedControlFramework$zodSchema: z.ZodType<
|
|
45
|
+
MappedControlFramework
|
|
46
|
+
> = z.object({
|
|
47
|
+
id: z.string(),
|
|
48
|
+
name: z.string(),
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export type MappedControl = {
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
description: string | null;
|
|
55
|
+
frameworks: Array<MappedControlFramework>;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const MappedControl$zodSchema: z.ZodType<MappedControl> = z.object({
|
|
59
|
+
description: z.string().nullable(),
|
|
60
|
+
frameworks: z.array(z.lazy(() => MappedControlFramework$zodSchema)).describe(
|
|
61
|
+
"Frameworks (built-in or custom) this control is mapped to in the organization",
|
|
62
|
+
),
|
|
63
|
+
id: z.string(),
|
|
64
|
+
name: z.string(),
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
export type AllControlFramework = { id: string; name: string };
|
|
68
|
+
|
|
69
|
+
export const AllControlFramework$zodSchema: z.ZodType<AllControlFramework> = z
|
|
70
|
+
.object({
|
|
71
|
+
id: z.string(),
|
|
72
|
+
name: z.string(),
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export type AllControl = {
|
|
76
|
+
id: string;
|
|
77
|
+
name: string;
|
|
78
|
+
description: string | null;
|
|
79
|
+
frameworks: Array<AllControlFramework>;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export const AllControl$zodSchema: z.ZodType<AllControl> = z.object({
|
|
83
|
+
description: z.string().nullable(),
|
|
84
|
+
frameworks: z.array(z.lazy(() => AllControlFramework$zodSchema)).describe(
|
|
85
|
+
"Frameworks (built-in or custom) this control is mapped to in the organization",
|
|
86
|
+
),
|
|
87
|
+
id: z.string(),
|
|
88
|
+
name: z.string(),
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Authenticated user information (only present for session auth)
|
|
93
|
+
*/
|
|
94
|
+
export type PoliciesControllerGetPolicyControlsV1AuthenticatedUser = {
|
|
95
|
+
id?: string | undefined;
|
|
96
|
+
email?: string | undefined;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export const PoliciesControllerGetPolicyControlsV1AuthenticatedUser$zodSchema:
|
|
100
|
+
z.ZodType<PoliciesControllerGetPolicyControlsV1AuthenticatedUser> = z.object({
|
|
101
|
+
email: z.string().optional(),
|
|
102
|
+
id: z.string().optional(),
|
|
103
|
+
}).describe("Authenticated user information (only present for session auth)");
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Controls retrieved successfully
|
|
107
|
+
*/
|
|
108
|
+
export type PoliciesControllerGetPolicyControlsV1Response = {
|
|
109
|
+
mappedControls: Array<MappedControl>;
|
|
110
|
+
allControls: Array<AllControl>;
|
|
111
|
+
authType: PoliciesControllerGetPolicyControlsV1AuthType;
|
|
112
|
+
authenticatedUser?:
|
|
113
|
+
| PoliciesControllerGetPolicyControlsV1AuthenticatedUser
|
|
114
|
+
| undefined;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export const PoliciesControllerGetPolicyControlsV1Response$zodSchema: z.ZodType<
|
|
118
|
+
PoliciesControllerGetPolicyControlsV1Response
|
|
119
|
+
> = z.object({
|
|
120
|
+
allControls: z.array(z.lazy(() => AllControl$zodSchema)).describe(
|
|
121
|
+
"Every control in the organization, so a client can offer the full mapping choice. Not a subset of the policy's controls.",
|
|
122
|
+
),
|
|
123
|
+
authType: PoliciesControllerGetPolicyControlsV1AuthType$zodSchema.describe(
|
|
124
|
+
"How the request was authenticated",
|
|
125
|
+
),
|
|
126
|
+
authenticatedUser: z.lazy(() =>
|
|
127
|
+
PoliciesControllerGetPolicyControlsV1AuthenticatedUser$zodSchema
|
|
128
|
+
).optional().describe(
|
|
129
|
+
"Authenticated user information (only present for session auth)",
|
|
130
|
+
),
|
|
131
|
+
mappedControls: z.array(z.lazy(() => MappedControl$zodSchema)).describe(
|
|
132
|
+
"Controls currently mapped to this policy",
|
|
133
|
+
),
|
|
134
|
+
}).describe("Controls retrieved successfully");
|