vanta-auditor-api-sdk 0.6.3 → 0.6.4
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 +12 -0
- package/docs/sdks/audits/README.md +446 -0
- package/funcs/auditsGetVulnerableAssets.d.ts +18 -0
- package/funcs/auditsGetVulnerableAssets.d.ts.map +1 -0
- package/funcs/auditsGetVulnerableAssets.js +130 -0
- package/funcs/auditsGetVulnerableAssets.js.map +1 -0
- package/funcs/auditsListMonitoredComputersInAuditScope.d.ts +20 -0
- package/funcs/auditsListMonitoredComputersInAuditScope.d.ts.map +1 -0
- package/funcs/auditsListMonitoredComputersInAuditScope.js +129 -0
- package/funcs/auditsListMonitoredComputersInAuditScope.js.map +1 -0
- package/funcs/auditsListPeopleInAuditScope.d.ts +18 -0
- package/funcs/auditsListPeopleInAuditScope.d.ts.map +1 -0
- package/funcs/auditsListPeopleInAuditScope.js +129 -0
- package/funcs/auditsListPeopleInAuditScope.js.map +1 -0
- package/funcs/auditsListVendorsInAuditScope.d.ts +18 -0
- package/funcs/auditsListVendorsInAuditScope.d.ts.map +1 -0
- package/funcs/auditsListVendorsInAuditScope.js +126 -0
- package/funcs/auditsListVendorsInAuditScope.js.map +1 -0
- package/funcs/auditsListVulnerabilities.d.ts +18 -0
- package/funcs/auditsListVulnerabilities.d.ts.map +1 -0
- package/funcs/auditsListVulnerabilities.js +137 -0
- package/funcs/auditsListVulnerabilities.js.map +1 -0
- package/funcs/auditsListVulnerabilityRemediationsInAuditScope.d.ts +18 -0
- package/funcs/auditsListVulnerabilityRemediationsInAuditScope.d.ts.map +1 -0
- package/funcs/auditsListVulnerabilityRemediationsInAuditScope.js +132 -0
- package/funcs/auditsListVulnerabilityRemediationsInAuditScope.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/acceptpoliciestasksummary.d.ts +67 -0
- package/models/components/acceptpoliciestasksummary.d.ts.map +1 -0
- package/models/components/acceptpoliciestasksummary.js +83 -0
- package/models/components/acceptpoliciestasksummary.js.map +1 -0
- package/models/components/auditorapivulnerability.d.ts +119 -0
- package/models/components/auditorapivulnerability.d.ts.map +1 -0
- package/models/components/auditorapivulnerability.js +83 -0
- package/models/components/auditorapivulnerability.js.map +1 -0
- package/models/components/completebackgroundcheckstasksummary.d.ts +47 -0
- package/models/components/completebackgroundcheckstasksummary.d.ts.map +1 -0
- package/models/components/completebackgroundcheckstasksummary.js +65 -0
- package/models/components/completebackgroundcheckstasksummary.js.map +1 -0
- package/models/components/completecustomtaskstasksummary.d.ts +56 -0
- package/models/components/completecustomtaskstasksummary.d.ts.map +1 -0
- package/models/components/completecustomtaskstasksummary.js +68 -0
- package/models/components/completecustomtaskstasksummary.js.map +1 -0
- package/models/components/completeoffboardingcustomtaskstasksummary.d.ts +56 -0
- package/models/components/completeoffboardingcustomtaskstasksummary.d.ts.map +1 -0
- package/models/components/completeoffboardingcustomtaskstasksummary.js +68 -0
- package/models/components/completeoffboardingcustomtaskstasksummary.js.map +1 -0
- package/models/components/completetrainingstasksummary.d.ts +56 -0
- package/models/components/completetrainingstasksummary.d.ts.map +1 -0
- package/models/components/completetrainingstasksummary.js +68 -0
- package/models/components/completetrainingstasksummary.js.map +1 -0
- package/models/components/computerstatus.d.ts +23 -0
- package/models/components/computerstatus.d.ts.map +1 -0
- package/models/components/computerstatus.js +51 -0
- package/models/components/computerstatus.js.map +1 -0
- package/models/components/computerstatusfilter.d.ts +33 -0
- package/models/components/computerstatusfilter.d.ts.map +1 -0
- package/models/components/computerstatusfilter.js +60 -0
- package/models/components/computerstatusfilter.js.map +1 -0
- package/models/components/computerstatusoutcome.d.ts +30 -0
- package/models/components/computerstatusoutcome.d.ts.map +1 -0
- package/models/components/computerstatusoutcome.js +58 -0
- package/models/components/computerstatusoutcome.js.map +1 -0
- package/models/components/currencycode.d.ts +32 -0
- package/models/components/currencycode.d.ts.map +1 -0
- package/models/components/currencycode.js +69 -0
- package/models/components/currencycode.js.map +1 -0
- package/models/components/customtask.d.ts +13 -0
- package/models/components/customtask.d.ts.map +1 -0
- package/models/components/customtask.js +50 -0
- package/models/components/customtask.js.map +1 -0
- package/models/components/employmentstatus.d.ts +33 -0
- package/models/components/employmentstatus.d.ts.map +1 -0
- package/models/components/employmentstatus.js +60 -0
- package/models/components/employmentstatus.js.map +1 -0
- package/models/components/externalfindingseverity.d.ts +18 -0
- package/models/components/externalfindingseverity.d.ts.map +1 -0
- package/models/components/externalfindingseverity.js +52 -0
- package/models/components/externalfindingseverity.js.map +1 -0
- package/models/components/externalfindingseveritytype.d.ts +12 -0
- package/models/components/externalfindingseveritytype.d.ts.map +1 -0
- package/models/components/externalfindingseveritytype.js +49 -0
- package/models/components/externalfindingseveritytype.js.map +1 -0
- package/models/components/index.d.ts +50 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +50 -0
- package/models/components/index.js.map +1 -1
- package/models/components/installdevicemonitoringtasksummary.d.ts +47 -0
- package/models/components/installdevicemonitoringtasksummary.d.ts.map +1 -0
- package/models/components/installdevicemonitoringtasksummary.js +65 -0
- package/models/components/installdevicemonitoringtasksummary.js.map +1 -0
- package/models/components/integrationbasedpersoninfosource.d.ts +15 -0
- package/models/components/integrationbasedpersoninfosource.d.ts.map +1 -0
- package/models/components/integrationbasedpersoninfosource.js +52 -0
- package/models/components/integrationbasedpersoninfosource.js.map +1 -0
- package/models/components/keyvaluepair.d.ts +17 -0
- package/models/components/keyvaluepair.d.ts.map +1 -0
- package/models/components/keyvaluepair.js +51 -0
- package/models/components/keyvaluepair.js.map +1 -0
- package/models/components/leavestatus.d.ts +16 -0
- package/models/components/leavestatus.d.ts.map +1 -0
- package/models/components/leavestatus.js +51 -0
- package/models/components/leavestatus.js.map +1 -0
- package/models/components/monitoredcomputer.d.ts +91 -0
- package/models/components/monitoredcomputer.d.ts.map +1 -0
- package/models/components/monitoredcomputer.js +81 -0
- package/models/components/monitoredcomputer.js.map +1 -0
- package/models/components/operatingsystemtype.d.ts +17 -0
- package/models/components/operatingsystemtype.d.ts.map +1 -0
- package/models/components/operatingsystemtype.js +51 -0
- package/models/components/operatingsystemtype.js.map +1 -0
- package/models/components/paginatedresponseauditorapivulnerability.d.ts +22 -0
- package/models/components/paginatedresponseauditorapivulnerability.d.ts.map +1 -0
- package/models/components/paginatedresponseauditorapivulnerability.js +61 -0
- package/models/components/paginatedresponseauditorapivulnerability.js.map +1 -0
- package/models/components/paginatedresponsemonitoredcomputer.d.ts +22 -0
- package/models/components/paginatedresponsemonitoredcomputer.d.ts.map +1 -0
- package/models/components/paginatedresponsemonitoredcomputer.js +61 -0
- package/models/components/paginatedresponsemonitoredcomputer.js.map +1 -0
- package/models/components/paginatedresponseperson.d.ts +22 -0
- package/models/components/paginatedresponseperson.d.ts.map +1 -0
- package/models/components/paginatedresponseperson.js +61 -0
- package/models/components/paginatedresponseperson.js.map +1 -0
- package/models/components/paginatedresponsevendor.d.ts +22 -0
- package/models/components/paginatedresponsevendor.d.ts.map +1 -0
- package/models/components/paginatedresponsevendor.js +61 -0
- package/models/components/paginatedresponsevendor.js.map +1 -0
- package/models/components/paginatedresponsevulnerabilityremediation.d.ts +22 -0
- package/models/components/paginatedresponsevulnerabilityremediation.d.ts.map +1 -0
- package/models/components/paginatedresponsevulnerabilityremediation.js +61 -0
- package/models/components/paginatedresponsevulnerabilityremediation.js.map +1 -0
- package/models/components/paginatedresponsevulnerableasset.d.ts +22 -0
- package/models/components/paginatedresponsevulnerableasset.d.ts.map +1 -0
- package/models/components/paginatedresponsevulnerableasset.js +61 -0
- package/models/components/paginatedresponsevulnerableasset.js.map +1 -0
- package/models/components/person.d.ts +169 -0
- package/models/components/person.d.ts.map +1 -0
- package/models/components/person.js +125 -0
- package/models/components/person.js.map +1 -0
- package/models/components/personinfosource.d.ts +14 -0
- package/models/components/personinfosource.d.ts.map +1 -0
- package/models/components/personinfosource.js +55 -0
- package/models/components/personinfosource.js.map +1 -0
- package/models/components/personnelperson.d.ts +8 -8
- package/models/components/personnelperson.d.ts.map +1 -1
- package/models/components/personnelperson.js +11 -9
- package/models/components/personnelperson.js.map +1 -1
- package/models/components/scimbasedpersoninfosource.d.ts +13 -0
- package/models/components/scimbasedpersoninfosource.d.ts.map +1 -0
- package/models/components/scimbasedpersoninfosource.js +50 -0
- package/models/components/scimbasedpersoninfosource.js.map +1 -0
- package/models/components/taskssummarystatus.d.ts +44 -0
- package/models/components/taskssummarystatus.d.ts.map +1 -0
- package/models/components/taskssummarystatus.js +68 -0
- package/models/components/taskssummarystatus.js.map +1 -0
- package/models/components/taskstatus.d.ts +32 -0
- package/models/components/taskstatus.d.ts.map +1 -0
- package/models/components/taskstatus.js +61 -0
- package/models/components/taskstatus.js.map +1 -0
- package/models/components/tasksummarydetails.d.ts +42 -0
- package/models/components/tasksummarydetails.d.ts.map +1 -0
- package/models/components/tasksummarydetails.js +61 -0
- package/models/components/tasksummarydetails.js.map +1 -0
- package/models/components/tasktype.d.ts +34 -0
- package/models/components/tasktype.d.ts.map +1 -0
- package/models/components/tasktype.js +62 -0
- package/models/components/tasktype.js.map +1 -0
- package/models/components/tasktypeacceptpolicies.d.ts +9 -0
- package/models/components/tasktypeacceptpolicies.d.ts.map +1 -0
- package/models/components/tasktypeacceptpolicies.js +46 -0
- package/models/components/tasktypeacceptpolicies.js.map +1 -0
- package/models/components/tasktypecompletebackgroundchecks.d.ts +9 -0
- package/models/components/tasktypecompletebackgroundchecks.d.ts.map +1 -0
- package/models/components/tasktypecompletebackgroundchecks.js +46 -0
- package/models/components/tasktypecompletebackgroundchecks.js.map +1 -0
- package/models/components/tasktypecompletecustomoffboardingtasks.d.ts +9 -0
- package/models/components/tasktypecompletecustomoffboardingtasks.d.ts.map +1 -0
- package/models/components/tasktypecompletecustomoffboardingtasks.js +46 -0
- package/models/components/tasktypecompletecustomoffboardingtasks.js.map +1 -0
- package/models/components/tasktypecompletecustomtasks.d.ts +9 -0
- package/models/components/tasktypecompletecustomtasks.d.ts.map +1 -0
- package/models/components/tasktypecompletecustomtasks.js +46 -0
- package/models/components/tasktypecompletecustomtasks.js.map +1 -0
- package/models/components/tasktypecompletetrainings.d.ts +9 -0
- package/models/components/tasktypecompletetrainings.d.ts.map +1 -0
- package/models/components/tasktypecompletetrainings.js +46 -0
- package/models/components/tasktypecompletetrainings.js.map +1 -0
- package/models/components/tasktypeinstalldevicemonitoring.d.ts +9 -0
- package/models/components/tasktypeinstalldevicemonitoring.d.ts.map +1 -0
- package/models/components/tasktypeinstalldevicemonitoring.js +46 -0
- package/models/components/tasktypeinstalldevicemonitoring.js.map +1 -0
- package/models/components/training.d.ts +13 -0
- package/models/components/training.d.ts.map +1 -0
- package/models/components/training.js +50 -0
- package/models/components/training.js.map +1 -0
- package/models/components/vantabasedpersoninfosource.d.ts +13 -0
- package/models/components/vantabasedpersoninfosource.d.ts.map +1 -0
- package/models/components/vantabasedpersoninfosource.js +50 -0
- package/models/components/vantabasedpersoninfosource.js.map +1 -0
- package/models/components/vendor.d.ts +498 -0
- package/models/components/vendor.d.ts.map +1 -0
- package/models/components/vendor.js +408 -0
- package/models/components/vendor.js.map +1 -0
- package/models/components/vendordecisionstatus.d.ts +11 -0
- package/models/components/vendordecisionstatus.d.ts.map +1 -0
- package/models/components/vendordecisionstatus.js +48 -0
- package/models/components/vendordecisionstatus.js.map +1 -0
- package/models/components/vendorrisklevel.d.ts +33 -0
- package/models/components/vendorrisklevel.d.ts.map +1 -0
- package/models/components/vendorrisklevel.js +60 -0
- package/models/components/vendorrisklevel.js.map +1 -0
- package/models/components/vendorstatus.d.ts +27 -0
- package/models/components/vendorstatus.d.ts.map +1 -0
- package/models/components/vendorstatus.js +56 -0
- package/models/components/vendorstatus.js.map +1 -0
- package/models/components/vulnerabilityremediation.d.ts +37 -0
- package/models/components/vulnerabilityremediation.d.ts.map +1 -0
- package/models/components/vulnerabilityremediation.js +56 -0
- package/models/components/vulnerabilityremediation.js.map +1 -0
- package/models/components/vulnerabilitytype.d.ts +11 -0
- package/models/components/vulnerabilitytype.d.ts.map +1 -0
- package/models/components/vulnerabilitytype.js +48 -0
- package/models/components/vulnerabilitytype.js.map +1 -0
- package/models/components/vulnerableasset.d.ts +35 -0
- package/models/components/vulnerableasset.d.ts.map +1 -0
- package/models/components/vulnerableasset.js +57 -0
- package/models/components/vulnerableasset.js.map +1 -0
- package/models/components/vulnerableassetscanner.d.ts +70 -0
- package/models/components/vulnerableassetscanner.d.ts.map +1 -0
- package/models/components/vulnerableassetscanner.js +65 -0
- package/models/components/vulnerableassetscanner.js.map +1 -0
- package/models/components/vulnerableassettype.d.ts +25 -0
- package/models/components/vulnerableassettype.d.ts.map +1 -0
- package/models/components/vulnerableassettype.js +59 -0
- package/models/components/vulnerableassettype.js.map +1 -0
- package/models/operations/getvulnerableassets.d.ts +40 -0
- package/models/operations/getvulnerableassets.d.ts.map +1 -0
- package/models/operations/getvulnerableassets.js +56 -0
- package/models/operations/getvulnerableassets.js.map +1 -0
- package/models/operations/index.d.ts +6 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +6 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listmonitoredcomputersinauditscope.d.ts +22 -0
- package/models/operations/listmonitoredcomputersinauditscope.d.ts.map +1 -0
- package/models/operations/listmonitoredcomputersinauditscope.js +53 -0
- package/models/operations/listmonitoredcomputersinauditscope.js.map +1 -0
- package/models/operations/listpeopleinauditscope.d.ts +38 -0
- package/models/operations/listpeopleinauditscope.d.ts.map +1 -0
- package/models/operations/listpeopleinauditscope.js +56 -0
- package/models/operations/listpeopleinauditscope.js.map +1 -0
- package/models/operations/listvendorsinauditscope.d.ts +16 -0
- package/models/operations/listvendorsinauditscope.d.ts.map +1 -0
- package/models/operations/listvendorsinauditscope.js +51 -0
- package/models/operations/listvendorsinauditscope.js.map +1 -0
- package/models/operations/listvulnerabilities.d.ts +75 -0
- package/models/operations/listvulnerabilities.d.ts.map +1 -0
- package/models/operations/listvulnerabilities.js +63 -0
- package/models/operations/listvulnerabilities.js.map +1 -0
- package/models/operations/listvulnerabilityremediationsinauditscope.d.ts +45 -0
- package/models/operations/listvulnerabilityremediationsinauditscope.d.ts.map +1 -0
- package/models/operations/listvulnerabilityremediationsinauditscope.js +57 -0
- package/models/operations/listvulnerabilityremediationsinauditscope.js.map +1 -0
- package/package.json +1 -1
- package/sdk/audits.d.ts +44 -0
- package/sdk/audits.d.ts.map +1 -1
- package/sdk/audits.js +62 -0
- package/sdk/audits.js.map +1 -1
- package/src/funcs/auditsGetVulnerableAssets.ts +179 -0
- package/src/funcs/auditsListMonitoredComputersInAuditScope.ts +181 -0
- package/src/funcs/auditsListPeopleInAuditScope.ts +178 -0
- package/src/funcs/auditsListVendorsInAuditScope.ts +175 -0
- package/src/funcs/auditsListVulnerabilities.ts +190 -0
- package/src/funcs/auditsListVulnerabilityRemediationsInAuditScope.ts +186 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/acceptpoliciestasksummary.ts +155 -0
- package/src/models/components/auditorapivulnerability.ts +200 -0
- package/src/models/components/completebackgroundcheckstasksummary.ts +107 -0
- package/src/models/components/completecustomtaskstasksummary.ts +111 -0
- package/src/models/components/completeoffboardingcustomtaskstasksummary.ts +125 -0
- package/src/models/components/completetrainingstasksummary.ts +108 -0
- package/src/models/components/computerstatus.ts +47 -0
- package/src/models/components/computerstatusfilter.ts +40 -0
- package/src/models/components/computerstatusoutcome.ts +37 -0
- package/src/models/components/currencycode.ts +38 -0
- package/src/models/components/customtask.ts +34 -0
- package/src/models/components/employmentstatus.ts +40 -0
- package/src/models/components/externalfindingseverity.ts +27 -0
- package/src/models/components/externalfindingseveritytype.ts +21 -0
- package/src/models/components/index.ts +50 -0
- package/src/models/components/installdevicemonitoringtasksummary.ts +104 -0
- package/src/models/components/integrationbasedpersoninfosource.ts +38 -0
- package/src/models/components/keyvaluepair.ts +39 -0
- package/src/models/components/leavestatus.ts +22 -0
- package/src/models/components/monitoredcomputer.ts +167 -0
- package/src/models/components/operatingsystemtype.ts +24 -0
- package/src/models/components/paginatedresponseauditorapivulnerability.ts +79 -0
- package/src/models/components/paginatedresponsemonitoredcomputer.ts +73 -0
- package/src/models/components/paginatedresponseperson.ts +61 -0
- package/src/models/components/paginatedresponsevendor.ts +61 -0
- package/src/models/components/paginatedresponsevulnerabilityremediation.ts +79 -0
- package/src/models/components/paginatedresponsevulnerableasset.ts +70 -0
- package/src/models/components/person.ts +323 -0
- package/src/models/components/personinfosource.ts +49 -0
- package/src/models/components/personnelperson.ts +20 -16
- package/src/models/components/scimbasedpersoninfosource.ts +34 -0
- package/src/models/components/taskssummarystatus.ts +53 -0
- package/src/models/components/taskstatus.ts +39 -0
- package/src/models/components/tasksummarydetails.ts +87 -0
- package/src/models/components/tasktype.ts +40 -0
- package/src/models/components/tasktypeacceptpolicies.ts +16 -0
- package/src/models/components/tasktypecompletebackgroundchecks.ts +18 -0
- package/src/models/components/tasktypecompletecustomoffboardingtasks.ts +19 -0
- package/src/models/components/tasktypecompletecustomtasks.ts +18 -0
- package/src/models/components/tasktypecompletetrainings.ts +18 -0
- package/src/models/components/tasktypeinstalldevicemonitoring.ts +18 -0
- package/src/models/components/training.ts +34 -0
- package/src/models/components/vantabasedpersoninfosource.ts +34 -0
- package/src/models/components/vendor.ts +669 -0
- package/src/models/components/vendordecisionstatus.ts +18 -0
- package/src/models/components/vendorrisklevel.ts +40 -0
- package/src/models/components/vendorstatus.ts +33 -0
- package/src/models/components/vulnerabilityremediation.ts +70 -0
- package/src/models/components/vulnerabilitytype.ts +18 -0
- package/src/models/components/vulnerableasset.ts +67 -0
- package/src/models/components/vulnerableassetscanner.ts +107 -0
- package/src/models/components/vulnerableassettype.ts +34 -0
- package/src/models/operations/getvulnerableassets.ts +65 -0
- package/src/models/operations/index.ts +6 -0
- package/src/models/operations/listmonitoredcomputersinauditscope.ts +52 -0
- package/src/models/operations/listpeopleinauditscope.ts +69 -0
- package/src/models/operations/listvendorsinauditscope.ts +39 -0
- package/src/models/operations/listvulnerabilities.ts +107 -0
- package/src/models/operations/listvulnerabilityremediationsinauditscope.ts +75 -0
- package/src/sdk/audits.ts +110 -0
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export * from "./acceptinformationrequestevidenceinput.js";
|
|
6
|
+
export * from "./acceptpoliciestasksummary.js";
|
|
6
7
|
export * from "./accountaccess.js";
|
|
7
8
|
export * from "./accountaccessservice.js";
|
|
8
9
|
export * from "./accountaccessstatus.js";
|
|
@@ -16,6 +17,7 @@ export * from "./auditevidencetype.js";
|
|
|
16
17
|
export * from "./auditevidenceupdateinput.js";
|
|
17
18
|
export * from "./auditfocus.js";
|
|
18
19
|
export * from "./auditor.js";
|
|
20
|
+
export * from "./auditorapivulnerability.js";
|
|
19
21
|
export * from "./auditorcontrol.js";
|
|
20
22
|
export * from "./auditorenabledstatetransition.js";
|
|
21
23
|
export * from "./auditrisk.js";
|
|
@@ -25,18 +27,30 @@ export * from "./auditvendorrisklevel.js";
|
|
|
25
27
|
export * from "./auditvendorstatus.js";
|
|
26
28
|
export * from "./codechange.js";
|
|
27
29
|
export * from "./comment.js";
|
|
30
|
+
export * from "./completebackgroundcheckstasksummary.js";
|
|
31
|
+
export * from "./completecustomtaskstasksummary.js";
|
|
32
|
+
export * from "./completeoffboardingcustomtaskstasksummary.js";
|
|
33
|
+
export * from "./completetrainingstasksummary.js";
|
|
34
|
+
export * from "./computerstatus.js";
|
|
35
|
+
export * from "./computerstatusfilter.js";
|
|
36
|
+
export * from "./computerstatusoutcome.js";
|
|
28
37
|
export * from "./control.js";
|
|
29
38
|
export * from "./controldomain.js";
|
|
30
39
|
export * from "./controlsource.js";
|
|
31
40
|
export * from "./createcustomcontrolinput.js";
|
|
32
41
|
export * from "./createcustomevidencerequestinput.js";
|
|
33
42
|
export * from "./createinformationrequestinput.js";
|
|
43
|
+
export * from "./currencycode.js";
|
|
34
44
|
export * from "./customevidencerequest.js";
|
|
35
45
|
export * from "./customfield.js";
|
|
46
|
+
export * from "./customtask.js";
|
|
36
47
|
export * from "./deleteinformationrequestcommentinput.js";
|
|
48
|
+
export * from "./employmentstatus.js";
|
|
37
49
|
export * from "./evidence.js";
|
|
38
50
|
export * from "./evidencecontrol.js";
|
|
39
51
|
export * from "./evidenceurl.js";
|
|
52
|
+
export * from "./externalfindingseverity.js";
|
|
53
|
+
export * from "./externalfindingseveritytype.js";
|
|
40
54
|
export * from "./flaginformationrequestevidenceinput.js";
|
|
41
55
|
export * from "./frameworkcodes.js";
|
|
42
56
|
export * from "./frameworkid.js";
|
|
@@ -52,12 +66,18 @@ export * from "./informationrequestevidence.js";
|
|
|
52
66
|
export * from "./informationrequestevidenceunion.js";
|
|
53
67
|
export * from "./informationrequestsupportedevidencetype.js";
|
|
54
68
|
export * from "./informationrequesttype.js";
|
|
69
|
+
export * from "./installdevicemonitoringtasksummary.js";
|
|
70
|
+
export * from "./integrationbasedpersoninfosource.js";
|
|
55
71
|
export * from "./issuesnapshotitem.js";
|
|
56
72
|
export * from "./issuesnapshotitemorderby.js";
|
|
57
73
|
export * from "./issuesnapshotmetadata.js";
|
|
58
74
|
export * from "./issuestatustypeforsnapshot.js";
|
|
75
|
+
export * from "./keyvaluepair.js";
|
|
76
|
+
export * from "./leavestatus.js";
|
|
59
77
|
export * from "./linkevidence.js";
|
|
78
|
+
export * from "./monitoredcomputer.js";
|
|
60
79
|
export * from "./observationevidence.js";
|
|
80
|
+
export * from "./operatingsystemtype.js";
|
|
61
81
|
export * from "./orderdirection.js";
|
|
62
82
|
export * from "./pageinfo.js";
|
|
63
83
|
export * from "./paginatedissuesnapshotitemsresponse.js";
|
|
@@ -65,6 +85,7 @@ export * from "./paginatedissuesnapshotmetadataresponse.js";
|
|
|
65
85
|
export * from "./paginatedresponseaccountaccess.js";
|
|
66
86
|
export * from "./paginatedresponseaccountaccessservice.js";
|
|
67
87
|
export * from "./paginatedresponseaudit.js";
|
|
88
|
+
export * from "./paginatedresponseauditorapivulnerability.js";
|
|
68
89
|
export * from "./paginatedresponseauditorcontrol.js";
|
|
69
90
|
export * from "./paginatedresponseauditrisk.js";
|
|
70
91
|
export * from "./paginatedresponseauditvendor.js";
|
|
@@ -76,24 +97,44 @@ export * from "./paginatedresponseinformationrequest.js";
|
|
|
76
97
|
export * from "./paginatedresponseinformationrequestactivitylog.js";
|
|
77
98
|
export * from "./paginatedresponseinformationrequestcomment.js";
|
|
78
99
|
export * from "./paginatedresponseinformationrequestevidence.js";
|
|
100
|
+
export * from "./paginatedresponsemonitoredcomputer.js";
|
|
101
|
+
export * from "./paginatedresponseperson.js";
|
|
79
102
|
export * from "./paginatedresponsepersonnelgroup.js";
|
|
80
103
|
export * from "./paginatedresponsepersonnelperson.js";
|
|
81
104
|
export * from "./paginatedresponserisksnapshot.js";
|
|
105
|
+
export * from "./paginatedresponsevendor.js";
|
|
106
|
+
export * from "./paginatedresponsevulnerabilityremediation.js";
|
|
107
|
+
export * from "./paginatedresponsevulnerableasset.js";
|
|
82
108
|
export * from "./partialupdateinformationrequest.js";
|
|
83
109
|
export * from "./peopleemploymentstatus.js";
|
|
84
110
|
export * from "./peopleorderby.js";
|
|
85
111
|
export * from "./peoplesecuritytaskstatus.js";
|
|
86
112
|
export * from "./peopletaskstatus.js";
|
|
113
|
+
export * from "./person.js";
|
|
114
|
+
export * from "./personinfosource.js";
|
|
87
115
|
export * from "./personnelgroup.js";
|
|
88
116
|
export * from "./personnelgrouptask.js";
|
|
89
117
|
export * from "./personnelperson.js";
|
|
90
118
|
export * from "./recurrenceduration.js";
|
|
91
119
|
export * from "./riskorderby.js";
|
|
92
120
|
export * from "./risksnapshot.js";
|
|
121
|
+
export * from "./scimbasedpersoninfosource.js";
|
|
93
122
|
export * from "./section.js";
|
|
94
123
|
export * from "./security.js";
|
|
124
|
+
export * from "./taskssummarystatus.js";
|
|
125
|
+
export * from "./taskstatus.js";
|
|
126
|
+
export * from "./tasksummarydetails.js";
|
|
127
|
+
export * from "./tasktype.js";
|
|
128
|
+
export * from "./tasktypeacceptpolicies.js";
|
|
129
|
+
export * from "./tasktypecompletebackgroundchecks.js";
|
|
130
|
+
export * from "./tasktypecompletecustomoffboardingtasks.js";
|
|
131
|
+
export * from "./tasktypecompletecustomtasks.js";
|
|
132
|
+
export * from "./tasktypecompletetrainings.js";
|
|
133
|
+
export * from "./tasktypeinstalldevicemonitoring.js";
|
|
134
|
+
export * from "./training.js";
|
|
95
135
|
export * from "./updateinformationrequestcommentinput.js";
|
|
96
136
|
export * from "./uploadeddocumentevidence.js";
|
|
137
|
+
export * from "./vantabasedpersoninfosource.js";
|
|
97
138
|
export * from "./vantadocumentevidence.js";
|
|
98
139
|
export * from "./vantadocumentlinkevidence.js";
|
|
99
140
|
export * from "./vantadocumentuploadedevidence.js";
|
|
@@ -105,4 +146,13 @@ export * from "./vantatestsnapshotevidence.js";
|
|
|
105
146
|
export * from "./vantatestsnapshotevidencedetail.js";
|
|
106
147
|
export * from "./vantatestsnapshotintegration.js";
|
|
107
148
|
export * from "./vantatestsnapshotrawtestdatarow.js";
|
|
149
|
+
export * from "./vendor.js";
|
|
150
|
+
export * from "./vendordecisionstatus.js";
|
|
108
151
|
export * from "./vendororderby.js";
|
|
152
|
+
export * from "./vendorrisklevel.js";
|
|
153
|
+
export * from "./vendorstatus.js";
|
|
154
|
+
export * from "./vulnerabilityremediation.js";
|
|
155
|
+
export * from "./vulnerabilitytype.js";
|
|
156
|
+
export * from "./vulnerableasset.js";
|
|
157
|
+
export * from "./vulnerableassetscanner.js";
|
|
158
|
+
export * from "./vulnerableassettype.js";
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import { TaskStatus, TaskStatus$inboundSchema } from "./taskstatus.js";
|
|
10
|
+
import {
|
|
11
|
+
TaskTypeINSTALLDEVICEMONITORING,
|
|
12
|
+
TaskTypeINSTALLDEVICEMONITORING$inboundSchema,
|
|
13
|
+
} from "./tasktypeinstalldevicemonitoring.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* If the task is disabled, the reason and date when it was disabled.
|
|
17
|
+
*/
|
|
18
|
+
export type InstallDeviceMonitoringTaskSummaryDisabled = {
|
|
19
|
+
date: Date;
|
|
20
|
+
reason: string | null;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Task summary for installing device monitoring.
|
|
25
|
+
*/
|
|
26
|
+
export type InstallDeviceMonitoringTaskSummary = {
|
|
27
|
+
taskType: TaskTypeINSTALLDEVICEMONITORING;
|
|
28
|
+
/**
|
|
29
|
+
* The status of a task.
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* - COMPLETE: The task has been completed.
|
|
33
|
+
* - DUE_SOON: The task is due soon.
|
|
34
|
+
* - OVERDUE: The task is overdue.
|
|
35
|
+
* - NONE: The task is not assigned.
|
|
36
|
+
*/
|
|
37
|
+
status: TaskStatus;
|
|
38
|
+
/**
|
|
39
|
+
* The due date of the task.
|
|
40
|
+
*/
|
|
41
|
+
dueDate: Date | null;
|
|
42
|
+
/**
|
|
43
|
+
* The date the task was completed.
|
|
44
|
+
*/
|
|
45
|
+
completionDate: Date | null;
|
|
46
|
+
/**
|
|
47
|
+
* If the task is disabled, the reason and date when it was disabled.
|
|
48
|
+
*/
|
|
49
|
+
disabled: InstallDeviceMonitoringTaskSummaryDisabled | null;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const InstallDeviceMonitoringTaskSummaryDisabled$inboundSchema:
|
|
54
|
+
z.ZodType<InstallDeviceMonitoringTaskSummaryDisabled, z.ZodTypeDef, unknown> =
|
|
55
|
+
z.object({
|
|
56
|
+
date: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
57
|
+
reason: z.nullable(z.string()),
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export function installDeviceMonitoringTaskSummaryDisabledFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<
|
|
63
|
+
InstallDeviceMonitoringTaskSummaryDisabled,
|
|
64
|
+
SDKValidationError
|
|
65
|
+
> {
|
|
66
|
+
return safeParse(
|
|
67
|
+
jsonString,
|
|
68
|
+
(x) =>
|
|
69
|
+
InstallDeviceMonitoringTaskSummaryDisabled$inboundSchema.parse(
|
|
70
|
+
JSON.parse(x),
|
|
71
|
+
),
|
|
72
|
+
`Failed to parse 'InstallDeviceMonitoringTaskSummaryDisabled' from JSON`,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const InstallDeviceMonitoringTaskSummary$inboundSchema: z.ZodType<
|
|
78
|
+
InstallDeviceMonitoringTaskSummary,
|
|
79
|
+
z.ZodTypeDef,
|
|
80
|
+
unknown
|
|
81
|
+
> = z.object({
|
|
82
|
+
taskType: TaskTypeINSTALLDEVICEMONITORING$inboundSchema,
|
|
83
|
+
status: TaskStatus$inboundSchema,
|
|
84
|
+
dueDate: z.nullable(
|
|
85
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
86
|
+
),
|
|
87
|
+
completionDate: z.nullable(
|
|
88
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
89
|
+
),
|
|
90
|
+
disabled: z.nullable(
|
|
91
|
+
z.lazy(() => InstallDeviceMonitoringTaskSummaryDisabled$inboundSchema),
|
|
92
|
+
),
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
export function installDeviceMonitoringTaskSummaryFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<InstallDeviceMonitoringTaskSummary, SDKValidationError> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) =>
|
|
101
|
+
InstallDeviceMonitoringTaskSummary$inboundSchema.parse(JSON.parse(x)),
|
|
102
|
+
`Failed to parse 'InstallDeviceMonitoringTaskSummary' from JSON`,
|
|
103
|
+
);
|
|
104
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The person's information comes from an integration.
|
|
12
|
+
*/
|
|
13
|
+
export type IntegrationBasedPersonInfoSource = {
|
|
14
|
+
integrationId: string;
|
|
15
|
+
resourceId: string | null;
|
|
16
|
+
type: "INTEGRATION";
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const IntegrationBasedPersonInfoSource$inboundSchema: z.ZodType<
|
|
21
|
+
IntegrationBasedPersonInfoSource,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
integrationId: z.string(),
|
|
26
|
+
resourceId: z.nullable(z.string()),
|
|
27
|
+
type: z.literal("INTEGRATION"),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function integrationBasedPersonInfoSourceFromJSON(
|
|
31
|
+
jsonString: string,
|
|
32
|
+
): SafeParseResult<IntegrationBasedPersonInfoSource, SDKValidationError> {
|
|
33
|
+
return safeParse(
|
|
34
|
+
jsonString,
|
|
35
|
+
(x) => IntegrationBasedPersonInfoSource$inboundSchema.parse(JSON.parse(x)),
|
|
36
|
+
`Failed to parse 'IntegrationBasedPersonInfoSource' from JSON`,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type KeyValuePair = {
|
|
11
|
+
/**
|
|
12
|
+
* Key of key-value pair.
|
|
13
|
+
*/
|
|
14
|
+
key: string;
|
|
15
|
+
/**
|
|
16
|
+
* Value of key-value pair.
|
|
17
|
+
*/
|
|
18
|
+
value: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const KeyValuePair$inboundSchema: z.ZodType<
|
|
23
|
+
KeyValuePair,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
key: z.string(),
|
|
28
|
+
value: z.string(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export function keyValuePairFromJSON(
|
|
32
|
+
jsonString: string,
|
|
33
|
+
): SafeParseResult<KeyValuePair, SDKValidationError> {
|
|
34
|
+
return safeParse(
|
|
35
|
+
jsonString,
|
|
36
|
+
(x) => KeyValuePair$inboundSchema.parse(JSON.parse(x)),
|
|
37
|
+
`Failed to parse 'KeyValuePair' from JSON`,
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* User can be active or upcoming leave period
|
|
10
|
+
*/
|
|
11
|
+
export const LeaveStatus = {
|
|
12
|
+
Active: "ACTIVE",
|
|
13
|
+
Upcoming: "UPCOMING",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* User can be active or upcoming leave period
|
|
17
|
+
*/
|
|
18
|
+
export type LeaveStatus = ClosedEnum<typeof LeaveStatus>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const LeaveStatus$inboundSchema: z.ZodNativeEnum<typeof LeaveStatus> = z
|
|
22
|
+
.nativeEnum(LeaveStatus);
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
ComputerStatus,
|
|
11
|
+
ComputerStatus$inboundSchema,
|
|
12
|
+
} from "./computerstatus.js";
|
|
13
|
+
import {
|
|
14
|
+
OperatingSystemType,
|
|
15
|
+
OperatingSystemType$inboundSchema,
|
|
16
|
+
} from "./operatingsystemtype.js";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The computer's operating system name and version.
|
|
20
|
+
*/
|
|
21
|
+
export type OperatingSystem = {
|
|
22
|
+
/**
|
|
23
|
+
* The possible types of the operating system. One of `mac_OS`, `linux`, or `windows`.
|
|
24
|
+
*/
|
|
25
|
+
type: OperatingSystemType;
|
|
26
|
+
/**
|
|
27
|
+
* The version of the operating system.
|
|
28
|
+
*/
|
|
29
|
+
version: string | null;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The name, unique identifier, and email address of the computer's owner.
|
|
34
|
+
*/
|
|
35
|
+
export type MonitoredComputerOwner = {
|
|
36
|
+
/**
|
|
37
|
+
* Unique identifier for the person.
|
|
38
|
+
*/
|
|
39
|
+
id: string;
|
|
40
|
+
/**
|
|
41
|
+
* Name of the person that is shown in product.
|
|
42
|
+
*/
|
|
43
|
+
displayName: string;
|
|
44
|
+
/**
|
|
45
|
+
* Email address of the person.
|
|
46
|
+
*/
|
|
47
|
+
emailAddress: string;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export type MonitoredComputer = {
|
|
51
|
+
/**
|
|
52
|
+
* Unique identifier for the monitored computer.
|
|
53
|
+
*/
|
|
54
|
+
id: string;
|
|
55
|
+
/**
|
|
56
|
+
* Hard-coded enums for Vanta-built integrations or application IDs for 3rd-party-built integrations.
|
|
57
|
+
*/
|
|
58
|
+
integrationId: string;
|
|
59
|
+
/**
|
|
60
|
+
* Date of the computer's most recent report.
|
|
61
|
+
*/
|
|
62
|
+
lastCheckDate: Date | null;
|
|
63
|
+
/**
|
|
64
|
+
* The a status check for a computer. Representation for screenlock, diskEncryption, passwordManager, and antivirusInstallation.
|
|
65
|
+
*/
|
|
66
|
+
screenlock: ComputerStatus;
|
|
67
|
+
/**
|
|
68
|
+
* The a status check for a computer. Representation for screenlock, diskEncryption, passwordManager, and antivirusInstallation.
|
|
69
|
+
*/
|
|
70
|
+
diskEncryption: ComputerStatus;
|
|
71
|
+
/**
|
|
72
|
+
* The a status check for a computer. Representation for screenlock, diskEncryption, passwordManager, and antivirusInstallation.
|
|
73
|
+
*/
|
|
74
|
+
passwordManager: ComputerStatus;
|
|
75
|
+
/**
|
|
76
|
+
* The a status check for a computer. Representation for screenlock, diskEncryption, passwordManager, and antivirusInstallation.
|
|
77
|
+
*/
|
|
78
|
+
antivirusInstallation: ComputerStatus;
|
|
79
|
+
/**
|
|
80
|
+
* The computer's operating system name and version.
|
|
81
|
+
*/
|
|
82
|
+
operatingSystem: OperatingSystem | null;
|
|
83
|
+
/**
|
|
84
|
+
* The name, unique identifier, and email address of the computer's owner.
|
|
85
|
+
*/
|
|
86
|
+
owner: MonitoredComputerOwner | null;
|
|
87
|
+
/**
|
|
88
|
+
* The serial number of the computer. This value may be null if it is not reported by the device.
|
|
89
|
+
*/
|
|
90
|
+
serialNumber: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* The universal device id of the computer.
|
|
93
|
+
*/
|
|
94
|
+
udid: string | null;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const OperatingSystem$inboundSchema: z.ZodType<
|
|
99
|
+
OperatingSystem,
|
|
100
|
+
z.ZodTypeDef,
|
|
101
|
+
unknown
|
|
102
|
+
> = z.object({
|
|
103
|
+
type: OperatingSystemType$inboundSchema,
|
|
104
|
+
version: z.nullable(z.string()),
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
export function operatingSystemFromJSON(
|
|
108
|
+
jsonString: string,
|
|
109
|
+
): SafeParseResult<OperatingSystem, SDKValidationError> {
|
|
110
|
+
return safeParse(
|
|
111
|
+
jsonString,
|
|
112
|
+
(x) => OperatingSystem$inboundSchema.parse(JSON.parse(x)),
|
|
113
|
+
`Failed to parse 'OperatingSystem' from JSON`,
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const MonitoredComputerOwner$inboundSchema: z.ZodType<
|
|
119
|
+
MonitoredComputerOwner,
|
|
120
|
+
z.ZodTypeDef,
|
|
121
|
+
unknown
|
|
122
|
+
> = z.object({
|
|
123
|
+
id: z.string(),
|
|
124
|
+
displayName: z.string(),
|
|
125
|
+
emailAddress: z.string(),
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
export function monitoredComputerOwnerFromJSON(
|
|
129
|
+
jsonString: string,
|
|
130
|
+
): SafeParseResult<MonitoredComputerOwner, SDKValidationError> {
|
|
131
|
+
return safeParse(
|
|
132
|
+
jsonString,
|
|
133
|
+
(x) => MonitoredComputerOwner$inboundSchema.parse(JSON.parse(x)),
|
|
134
|
+
`Failed to parse 'MonitoredComputerOwner' from JSON`,
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** @internal */
|
|
139
|
+
export const MonitoredComputer$inboundSchema: z.ZodType<
|
|
140
|
+
MonitoredComputer,
|
|
141
|
+
z.ZodTypeDef,
|
|
142
|
+
unknown
|
|
143
|
+
> = z.object({
|
|
144
|
+
id: z.string(),
|
|
145
|
+
integrationId: z.string(),
|
|
146
|
+
lastCheckDate: z.nullable(
|
|
147
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
148
|
+
),
|
|
149
|
+
screenlock: ComputerStatus$inboundSchema,
|
|
150
|
+
diskEncryption: ComputerStatus$inboundSchema,
|
|
151
|
+
passwordManager: ComputerStatus$inboundSchema,
|
|
152
|
+
antivirusInstallation: ComputerStatus$inboundSchema,
|
|
153
|
+
operatingSystem: z.nullable(z.lazy(() => OperatingSystem$inboundSchema)),
|
|
154
|
+
owner: z.nullable(z.lazy(() => MonitoredComputerOwner$inboundSchema)),
|
|
155
|
+
serialNumber: z.nullable(z.string()),
|
|
156
|
+
udid: z.nullable(z.string()),
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
export function monitoredComputerFromJSON(
|
|
160
|
+
jsonString: string,
|
|
161
|
+
): SafeParseResult<MonitoredComputer, SDKValidationError> {
|
|
162
|
+
return safeParse(
|
|
163
|
+
jsonString,
|
|
164
|
+
(x) => MonitoredComputer$inboundSchema.parse(JSON.parse(x)),
|
|
165
|
+
`Failed to parse 'MonitoredComputer' from JSON`,
|
|
166
|
+
);
|
|
167
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The possible types of the operating system. One of `mac_OS`, `linux`, or `windows`.
|
|
10
|
+
*/
|
|
11
|
+
export const OperatingSystemType = {
|
|
12
|
+
MacOS: "macOS",
|
|
13
|
+
Linux: "linux",
|
|
14
|
+
Windows: "windows",
|
|
15
|
+
} as const;
|
|
16
|
+
/**
|
|
17
|
+
* The possible types of the operating system. One of `mac_OS`, `linux`, or `windows`.
|
|
18
|
+
*/
|
|
19
|
+
export type OperatingSystemType = ClosedEnum<typeof OperatingSystemType>;
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const OperatingSystemType$inboundSchema: z.ZodNativeEnum<
|
|
23
|
+
typeof OperatingSystemType
|
|
24
|
+
> = z.nativeEnum(OperatingSystemType);
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
AuditorApiVulnerability,
|
|
11
|
+
AuditorApiVulnerability$inboundSchema,
|
|
12
|
+
} from "./auditorapivulnerability.js";
|
|
13
|
+
import { PageInfo, PageInfo$inboundSchema } from "./pageinfo.js";
|
|
14
|
+
|
|
15
|
+
export type PaginatedResponseAuditorApiVulnerabilityResults = {
|
|
16
|
+
data: Array<AuditorApiVulnerability>;
|
|
17
|
+
/**
|
|
18
|
+
* Provides information about the pagination of a dataset.
|
|
19
|
+
*/
|
|
20
|
+
pageInfo: PageInfo;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type PaginatedResponseAuditorApiVulnerability = {
|
|
24
|
+
results: PaginatedResponseAuditorApiVulnerabilityResults;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const PaginatedResponseAuditorApiVulnerabilityResults$inboundSchema:
|
|
29
|
+
z.ZodType<
|
|
30
|
+
PaginatedResponseAuditorApiVulnerabilityResults,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
data: z.array(AuditorApiVulnerability$inboundSchema),
|
|
35
|
+
pageInfo: PageInfo$inboundSchema,
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export function paginatedResponseAuditorApiVulnerabilityResultsFromJSON(
|
|
39
|
+
jsonString: string,
|
|
40
|
+
): SafeParseResult<
|
|
41
|
+
PaginatedResponseAuditorApiVulnerabilityResults,
|
|
42
|
+
SDKValidationError
|
|
43
|
+
> {
|
|
44
|
+
return safeParse(
|
|
45
|
+
jsonString,
|
|
46
|
+
(x) =>
|
|
47
|
+
PaginatedResponseAuditorApiVulnerabilityResults$inboundSchema.parse(
|
|
48
|
+
JSON.parse(x),
|
|
49
|
+
),
|
|
50
|
+
`Failed to parse 'PaginatedResponseAuditorApiVulnerabilityResults' from JSON`,
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const PaginatedResponseAuditorApiVulnerability$inboundSchema: z.ZodType<
|
|
56
|
+
PaginatedResponseAuditorApiVulnerability,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
unknown
|
|
59
|
+
> = z.object({
|
|
60
|
+
results: z.lazy(() =>
|
|
61
|
+
PaginatedResponseAuditorApiVulnerabilityResults$inboundSchema
|
|
62
|
+
),
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export function paginatedResponseAuditorApiVulnerabilityFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<
|
|
68
|
+
PaginatedResponseAuditorApiVulnerability,
|
|
69
|
+
SDKValidationError
|
|
70
|
+
> {
|
|
71
|
+
return safeParse(
|
|
72
|
+
jsonString,
|
|
73
|
+
(x) =>
|
|
74
|
+
PaginatedResponseAuditorApiVulnerability$inboundSchema.parse(
|
|
75
|
+
JSON.parse(x),
|
|
76
|
+
),
|
|
77
|
+
`Failed to parse 'PaginatedResponseAuditorApiVulnerability' from JSON`,
|
|
78
|
+
);
|
|
79
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
MonitoredComputer,
|
|
11
|
+
MonitoredComputer$inboundSchema,
|
|
12
|
+
} from "./monitoredcomputer.js";
|
|
13
|
+
import { PageInfo, PageInfo$inboundSchema } from "./pageinfo.js";
|
|
14
|
+
|
|
15
|
+
export type PaginatedResponseMonitoredComputerResults = {
|
|
16
|
+
data: Array<MonitoredComputer>;
|
|
17
|
+
/**
|
|
18
|
+
* Provides information about the pagination of a dataset.
|
|
19
|
+
*/
|
|
20
|
+
pageInfo: PageInfo;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type PaginatedResponseMonitoredComputer = {
|
|
24
|
+
results: PaginatedResponseMonitoredComputerResults;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const PaginatedResponseMonitoredComputerResults$inboundSchema: z.ZodType<
|
|
29
|
+
PaginatedResponseMonitoredComputerResults,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
data: z.array(MonitoredComputer$inboundSchema),
|
|
34
|
+
pageInfo: PageInfo$inboundSchema,
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function paginatedResponseMonitoredComputerResultsFromJSON(
|
|
38
|
+
jsonString: string,
|
|
39
|
+
): SafeParseResult<
|
|
40
|
+
PaginatedResponseMonitoredComputerResults,
|
|
41
|
+
SDKValidationError
|
|
42
|
+
> {
|
|
43
|
+
return safeParse(
|
|
44
|
+
jsonString,
|
|
45
|
+
(x) =>
|
|
46
|
+
PaginatedResponseMonitoredComputerResults$inboundSchema.parse(
|
|
47
|
+
JSON.parse(x),
|
|
48
|
+
),
|
|
49
|
+
`Failed to parse 'PaginatedResponseMonitoredComputerResults' from JSON`,
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const PaginatedResponseMonitoredComputer$inboundSchema: z.ZodType<
|
|
55
|
+
PaginatedResponseMonitoredComputer,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
unknown
|
|
58
|
+
> = z.object({
|
|
59
|
+
results: z.lazy(() =>
|
|
60
|
+
PaginatedResponseMonitoredComputerResults$inboundSchema
|
|
61
|
+
),
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export function paginatedResponseMonitoredComputerFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<PaginatedResponseMonitoredComputer, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) =>
|
|
70
|
+
PaginatedResponseMonitoredComputer$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'PaginatedResponseMonitoredComputer' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|