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
|
@@ -0,0 +1,111 @@
|
|
|
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 { CustomTask, CustomTask$inboundSchema } from "./customtask.js";
|
|
10
|
+
import { TaskStatus, TaskStatus$inboundSchema } from "./taskstatus.js";
|
|
11
|
+
import {
|
|
12
|
+
TaskTypeCOMPLETECUSTOMTASKS,
|
|
13
|
+
TaskTypeCOMPLETECUSTOMTASKS$inboundSchema,
|
|
14
|
+
} from "./tasktypecompletecustomtasks.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* If the task is disabled, the reason and date when it was disabled.
|
|
18
|
+
*/
|
|
19
|
+
export type CompleteCustomTasksTaskSummaryDisabled = {
|
|
20
|
+
date: Date;
|
|
21
|
+
reason: string | null;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Task summary for completing all custom tasks.
|
|
26
|
+
*/
|
|
27
|
+
export type CompleteCustomTasksTaskSummary = {
|
|
28
|
+
taskType: TaskTypeCOMPLETECUSTOMTASKS;
|
|
29
|
+
/**
|
|
30
|
+
* The status of a task.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* - COMPLETE: The task has been completed.
|
|
34
|
+
* - DUE_SOON: The task is due soon.
|
|
35
|
+
* - OVERDUE: The task is overdue.
|
|
36
|
+
* - NONE: The task is not assigned.
|
|
37
|
+
*/
|
|
38
|
+
status: TaskStatus;
|
|
39
|
+
/**
|
|
40
|
+
* The due date of the task.
|
|
41
|
+
*/
|
|
42
|
+
dueDate: Date | null;
|
|
43
|
+
/**
|
|
44
|
+
* The date the task was completed.
|
|
45
|
+
*/
|
|
46
|
+
completionDate: Date | null;
|
|
47
|
+
/**
|
|
48
|
+
* If the task is disabled, the reason and date when it was disabled.
|
|
49
|
+
*/
|
|
50
|
+
disabled: CompleteCustomTasksTaskSummaryDisabled | null;
|
|
51
|
+
/**
|
|
52
|
+
* Incomplete custom tasks that are relevant given a person's requirements.
|
|
53
|
+
*/
|
|
54
|
+
incompleteCustomTasks: Array<CustomTask>;
|
|
55
|
+
/**
|
|
56
|
+
* Custom tasks that have been completed and are relevant given a person's current requirements.
|
|
57
|
+
*/
|
|
58
|
+
completedCustomTasks: Array<CustomTask>;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const CompleteCustomTasksTaskSummaryDisabled$inboundSchema: z.ZodType<
|
|
63
|
+
CompleteCustomTasksTaskSummaryDisabled,
|
|
64
|
+
z.ZodTypeDef,
|
|
65
|
+
unknown
|
|
66
|
+
> = z.object({
|
|
67
|
+
date: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
68
|
+
reason: z.nullable(z.string()),
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export function completeCustomTasksTaskSummaryDisabledFromJSON(
|
|
72
|
+
jsonString: string,
|
|
73
|
+
): SafeParseResult<CompleteCustomTasksTaskSummaryDisabled, SDKValidationError> {
|
|
74
|
+
return safeParse(
|
|
75
|
+
jsonString,
|
|
76
|
+
(x) =>
|
|
77
|
+
CompleteCustomTasksTaskSummaryDisabled$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
+
`Failed to parse 'CompleteCustomTasksTaskSummaryDisabled' from JSON`,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/** @internal */
|
|
83
|
+
export const CompleteCustomTasksTaskSummary$inboundSchema: z.ZodType<
|
|
84
|
+
CompleteCustomTasksTaskSummary,
|
|
85
|
+
z.ZodTypeDef,
|
|
86
|
+
unknown
|
|
87
|
+
> = z.object({
|
|
88
|
+
taskType: TaskTypeCOMPLETECUSTOMTASKS$inboundSchema,
|
|
89
|
+
status: TaskStatus$inboundSchema,
|
|
90
|
+
dueDate: z.nullable(
|
|
91
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
92
|
+
),
|
|
93
|
+
completionDate: z.nullable(
|
|
94
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
95
|
+
),
|
|
96
|
+
disabled: z.nullable(
|
|
97
|
+
z.lazy(() => CompleteCustomTasksTaskSummaryDisabled$inboundSchema),
|
|
98
|
+
),
|
|
99
|
+
incompleteCustomTasks: z.array(CustomTask$inboundSchema),
|
|
100
|
+
completedCustomTasks: z.array(CustomTask$inboundSchema),
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
export function completeCustomTasksTaskSummaryFromJSON(
|
|
104
|
+
jsonString: string,
|
|
105
|
+
): SafeParseResult<CompleteCustomTasksTaskSummary, SDKValidationError> {
|
|
106
|
+
return safeParse(
|
|
107
|
+
jsonString,
|
|
108
|
+
(x) => CompleteCustomTasksTaskSummary$inboundSchema.parse(JSON.parse(x)),
|
|
109
|
+
`Failed to parse 'CompleteCustomTasksTaskSummary' from JSON`,
|
|
110
|
+
);
|
|
111
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
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 { CustomTask, CustomTask$inboundSchema } from "./customtask.js";
|
|
10
|
+
import { TaskStatus, TaskStatus$inboundSchema } from "./taskstatus.js";
|
|
11
|
+
import {
|
|
12
|
+
TaskTypeCOMPLETECUSTOMOFFBOARDINGTASKS,
|
|
13
|
+
TaskTypeCOMPLETECUSTOMOFFBOARDINGTASKS$inboundSchema,
|
|
14
|
+
} from "./tasktypecompletecustomoffboardingtasks.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* If the task is disabled, the reason and date when it was disabled.
|
|
18
|
+
*/
|
|
19
|
+
export type CompleteOffboardingCustomTasksTaskSummaryDisabled = {
|
|
20
|
+
date: Date;
|
|
21
|
+
reason: string | null;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Task summary for completing all offboarding custom tasks.
|
|
26
|
+
*/
|
|
27
|
+
export type CompleteOffboardingCustomTasksTaskSummary = {
|
|
28
|
+
taskType: TaskTypeCOMPLETECUSTOMOFFBOARDINGTASKS;
|
|
29
|
+
/**
|
|
30
|
+
* The status of a task.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* - COMPLETE: The task has been completed.
|
|
34
|
+
* - DUE_SOON: The task is due soon.
|
|
35
|
+
* - OVERDUE: The task is overdue.
|
|
36
|
+
* - NONE: The task is not assigned.
|
|
37
|
+
*/
|
|
38
|
+
status: TaskStatus;
|
|
39
|
+
/**
|
|
40
|
+
* The due date of the task.
|
|
41
|
+
*/
|
|
42
|
+
dueDate: Date | null;
|
|
43
|
+
/**
|
|
44
|
+
* The date the task was completed.
|
|
45
|
+
*/
|
|
46
|
+
completionDate: Date | null;
|
|
47
|
+
/**
|
|
48
|
+
* If the task is disabled, the reason and date when it was disabled.
|
|
49
|
+
*/
|
|
50
|
+
disabled: CompleteOffboardingCustomTasksTaskSummaryDisabled | null;
|
|
51
|
+
/**
|
|
52
|
+
* Incomplete custom tasks that are relevant given a person's requirements.
|
|
53
|
+
*/
|
|
54
|
+
incompleteCustomOffboardingTasks: Array<CustomTask>;
|
|
55
|
+
/**
|
|
56
|
+
* Custom tasks that have been completed and are relevant given a person's current requirements.
|
|
57
|
+
*/
|
|
58
|
+
completedCustomOffboardingTasks: Array<CustomTask>;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const CompleteOffboardingCustomTasksTaskSummaryDisabled$inboundSchema:
|
|
63
|
+
z.ZodType<
|
|
64
|
+
CompleteOffboardingCustomTasksTaskSummaryDisabled,
|
|
65
|
+
z.ZodTypeDef,
|
|
66
|
+
unknown
|
|
67
|
+
> = z.object({
|
|
68
|
+
date: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
69
|
+
reason: z.nullable(z.string()),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
export function completeOffboardingCustomTasksTaskSummaryDisabledFromJSON(
|
|
73
|
+
jsonString: string,
|
|
74
|
+
): SafeParseResult<
|
|
75
|
+
CompleteOffboardingCustomTasksTaskSummaryDisabled,
|
|
76
|
+
SDKValidationError
|
|
77
|
+
> {
|
|
78
|
+
return safeParse(
|
|
79
|
+
jsonString,
|
|
80
|
+
(x) =>
|
|
81
|
+
CompleteOffboardingCustomTasksTaskSummaryDisabled$inboundSchema.parse(
|
|
82
|
+
JSON.parse(x),
|
|
83
|
+
),
|
|
84
|
+
`Failed to parse 'CompleteOffboardingCustomTasksTaskSummaryDisabled' from JSON`,
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const CompleteOffboardingCustomTasksTaskSummary$inboundSchema: z.ZodType<
|
|
90
|
+
CompleteOffboardingCustomTasksTaskSummary,
|
|
91
|
+
z.ZodTypeDef,
|
|
92
|
+
unknown
|
|
93
|
+
> = z.object({
|
|
94
|
+
taskType: TaskTypeCOMPLETECUSTOMOFFBOARDINGTASKS$inboundSchema,
|
|
95
|
+
status: TaskStatus$inboundSchema,
|
|
96
|
+
dueDate: z.nullable(
|
|
97
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
98
|
+
),
|
|
99
|
+
completionDate: z.nullable(
|
|
100
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
101
|
+
),
|
|
102
|
+
disabled: z.nullable(
|
|
103
|
+
z.lazy(() =>
|
|
104
|
+
CompleteOffboardingCustomTasksTaskSummaryDisabled$inboundSchema
|
|
105
|
+
),
|
|
106
|
+
),
|
|
107
|
+
incompleteCustomOffboardingTasks: z.array(CustomTask$inboundSchema),
|
|
108
|
+
completedCustomOffboardingTasks: z.array(CustomTask$inboundSchema),
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
export function completeOffboardingCustomTasksTaskSummaryFromJSON(
|
|
112
|
+
jsonString: string,
|
|
113
|
+
): SafeParseResult<
|
|
114
|
+
CompleteOffboardingCustomTasksTaskSummary,
|
|
115
|
+
SDKValidationError
|
|
116
|
+
> {
|
|
117
|
+
return safeParse(
|
|
118
|
+
jsonString,
|
|
119
|
+
(x) =>
|
|
120
|
+
CompleteOffboardingCustomTasksTaskSummary$inboundSchema.parse(
|
|
121
|
+
JSON.parse(x),
|
|
122
|
+
),
|
|
123
|
+
`Failed to parse 'CompleteOffboardingCustomTasksTaskSummary' from JSON`,
|
|
124
|
+
);
|
|
125
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
TaskTypeCOMPLETETRAININGS,
|
|
12
|
+
TaskTypeCOMPLETETRAININGS$inboundSchema,
|
|
13
|
+
} from "./tasktypecompletetrainings.js";
|
|
14
|
+
import { Training, Training$inboundSchema } from "./training.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* If the task is disabled, the reason and date when it was disabled.
|
|
18
|
+
*/
|
|
19
|
+
export type Disabled = {
|
|
20
|
+
date: Date;
|
|
21
|
+
reason: string | null;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Task summary for completing all trainings.
|
|
26
|
+
*/
|
|
27
|
+
export type CompleteTrainingsTaskSummary = {
|
|
28
|
+
taskType: TaskTypeCOMPLETETRAININGS;
|
|
29
|
+
/**
|
|
30
|
+
* The status of a task.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* - COMPLETE: The task has been completed.
|
|
34
|
+
* - DUE_SOON: The task is due soon.
|
|
35
|
+
* - OVERDUE: The task is overdue.
|
|
36
|
+
* - NONE: The task is not assigned.
|
|
37
|
+
*/
|
|
38
|
+
status: TaskStatus;
|
|
39
|
+
/**
|
|
40
|
+
* The due date of the task.
|
|
41
|
+
*/
|
|
42
|
+
dueDate: Date | null;
|
|
43
|
+
/**
|
|
44
|
+
* The date the task was completed.
|
|
45
|
+
*/
|
|
46
|
+
completionDate: Date | null;
|
|
47
|
+
/**
|
|
48
|
+
* If the task is disabled, the reason and date when it was disabled.
|
|
49
|
+
*/
|
|
50
|
+
disabled: Disabled | null;
|
|
51
|
+
/**
|
|
52
|
+
* Incomplete security trainings that are relevant given a person's requirements.
|
|
53
|
+
*/
|
|
54
|
+
incompleteTrainings: Array<Training>;
|
|
55
|
+
/**
|
|
56
|
+
* Security trainings that have been completed and are relevant given a person's current requirements.
|
|
57
|
+
*/
|
|
58
|
+
completedTrainings: Array<Training>;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const Disabled$inboundSchema: z.ZodType<
|
|
63
|
+
Disabled,
|
|
64
|
+
z.ZodTypeDef,
|
|
65
|
+
unknown
|
|
66
|
+
> = z.object({
|
|
67
|
+
date: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
68
|
+
reason: z.nullable(z.string()),
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export function disabledFromJSON(
|
|
72
|
+
jsonString: string,
|
|
73
|
+
): SafeParseResult<Disabled, SDKValidationError> {
|
|
74
|
+
return safeParse(
|
|
75
|
+
jsonString,
|
|
76
|
+
(x) => Disabled$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
+
`Failed to parse 'Disabled' from JSON`,
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const CompleteTrainingsTaskSummary$inboundSchema: z.ZodType<
|
|
83
|
+
CompleteTrainingsTaskSummary,
|
|
84
|
+
z.ZodTypeDef,
|
|
85
|
+
unknown
|
|
86
|
+
> = z.object({
|
|
87
|
+
taskType: TaskTypeCOMPLETETRAININGS$inboundSchema,
|
|
88
|
+
status: TaskStatus$inboundSchema,
|
|
89
|
+
dueDate: z.nullable(
|
|
90
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
91
|
+
),
|
|
92
|
+
completionDate: z.nullable(
|
|
93
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
94
|
+
),
|
|
95
|
+
disabled: z.nullable(z.lazy(() => Disabled$inboundSchema)),
|
|
96
|
+
incompleteTrainings: z.array(Training$inboundSchema),
|
|
97
|
+
completedTrainings: z.array(Training$inboundSchema),
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
export function completeTrainingsTaskSummaryFromJSON(
|
|
101
|
+
jsonString: string,
|
|
102
|
+
): SafeParseResult<CompleteTrainingsTaskSummary, SDKValidationError> {
|
|
103
|
+
return safeParse(
|
|
104
|
+
jsonString,
|
|
105
|
+
(x) => CompleteTrainingsTaskSummary$inboundSchema.parse(JSON.parse(x)),
|
|
106
|
+
`Failed to parse 'CompleteTrainingsTaskSummary' from JSON`,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
ComputerStatusOutcome,
|
|
11
|
+
ComputerStatusOutcome$inboundSchema,
|
|
12
|
+
} from "./computerstatusoutcome.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The a status check for a computer. Representation for screenlock, diskEncryption, passwordManager, and antivirusInstallation.
|
|
16
|
+
*/
|
|
17
|
+
export type ComputerStatus = {
|
|
18
|
+
/**
|
|
19
|
+
* The possible outcomes of a status check. The outcome can be one of the following:
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* FAIL: The check is failing.
|
|
23
|
+
* IN_PROGRESS: The check needs further data from the given computer in order to evaluate. The field(s) needed from a computer to calculate the ComputerStatusOutcome were null.
|
|
24
|
+
* NA: The check is not applicable for the given computer.
|
|
25
|
+
* PASS: The check is passing.
|
|
26
|
+
*/
|
|
27
|
+
outcome: ComputerStatusOutcome;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const ComputerStatus$inboundSchema: z.ZodType<
|
|
32
|
+
ComputerStatus,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
outcome: ComputerStatusOutcome$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function computerStatusFromJSON(
|
|
40
|
+
jsonString: string,
|
|
41
|
+
): SafeParseResult<ComputerStatus, SDKValidationError> {
|
|
42
|
+
return safeParse(
|
|
43
|
+
jsonString,
|
|
44
|
+
(x) => ComputerStatus$inboundSchema.parse(JSON.parse(x)),
|
|
45
|
+
`Failed to parse 'ComputerStatus' from JSON`,
|
|
46
|
+
);
|
|
47
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
* Enum representing computer compliance statuses that can be utilized as a filter. The meanings are as follows:
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* AV_NOT_INSTALLED: The computer does not have antivirus software installed.
|
|
13
|
+
* HD_NOT_ENCRYPTED: The computer's harddrive is not encrypted.
|
|
14
|
+
* LAST_CHECK_OVER_14_DAYS: No data has been received from computer for over 14 days.
|
|
15
|
+
* PWM_NOT_INSTALLED: The computer does not have a password manager installed.
|
|
16
|
+
* SCREENLOCK_NOT_CONFIGURED: The computer does not have screenlock configured appropriately.
|
|
17
|
+
*/
|
|
18
|
+
export const ComputerStatusFilter = {
|
|
19
|
+
PwmNotInstalled: "PWM_NOT_INSTALLED",
|
|
20
|
+
HdNotEncrypted: "HD_NOT_ENCRYPTED",
|
|
21
|
+
AvNotInstalled: "AV_NOT_INSTALLED",
|
|
22
|
+
ScreenlockNotConfigured: "SCREENLOCK_NOT_CONFIGURED",
|
|
23
|
+
LastCheckOver14Days: "LAST_CHECK_OVER_14_DAYS",
|
|
24
|
+
} as const;
|
|
25
|
+
/**
|
|
26
|
+
* Enum representing computer compliance statuses that can be utilized as a filter. The meanings are as follows:
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* AV_NOT_INSTALLED: The computer does not have antivirus software installed.
|
|
30
|
+
* HD_NOT_ENCRYPTED: The computer's harddrive is not encrypted.
|
|
31
|
+
* LAST_CHECK_OVER_14_DAYS: No data has been received from computer for over 14 days.
|
|
32
|
+
* PWM_NOT_INSTALLED: The computer does not have a password manager installed.
|
|
33
|
+
* SCREENLOCK_NOT_CONFIGURED: The computer does not have screenlock configured appropriately.
|
|
34
|
+
*/
|
|
35
|
+
export type ComputerStatusFilter = ClosedEnum<typeof ComputerStatusFilter>;
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const ComputerStatusFilter$outboundSchema: z.ZodNativeEnum<
|
|
39
|
+
typeof ComputerStatusFilter
|
|
40
|
+
> = z.nativeEnum(ComputerStatusFilter);
|
|
@@ -0,0 +1,37 @@
|
|
|
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 outcomes of a status check. The outcome can be one of the following:
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* FAIL: The check is failing.
|
|
13
|
+
* IN_PROGRESS: The check needs further data from the given computer in order to evaluate. The field(s) needed from a computer to calculate the ComputerStatusOutcome were null.
|
|
14
|
+
* NA: The check is not applicable for the given computer.
|
|
15
|
+
* PASS: The check is passing.
|
|
16
|
+
*/
|
|
17
|
+
export const ComputerStatusOutcome = {
|
|
18
|
+
Fail: "FAIL",
|
|
19
|
+
InProgress: "IN_PROGRESS",
|
|
20
|
+
Na: "NA",
|
|
21
|
+
Pass: "PASS",
|
|
22
|
+
} as const;
|
|
23
|
+
/**
|
|
24
|
+
* The possible outcomes of a status check. The outcome can be one of the following:
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* FAIL: The check is failing.
|
|
28
|
+
* IN_PROGRESS: The check needs further data from the given computer in order to evaluate. The field(s) needed from a computer to calculate the ComputerStatusOutcome were null.
|
|
29
|
+
* NA: The check is not applicable for the given computer.
|
|
30
|
+
* PASS: The check is passing.
|
|
31
|
+
*/
|
|
32
|
+
export type ComputerStatusOutcome = ClosedEnum<typeof ComputerStatusOutcome>;
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const ComputerStatusOutcome$inboundSchema: z.ZodNativeEnum<
|
|
36
|
+
typeof ComputerStatusOutcome
|
|
37
|
+
> = z.nativeEnum(ComputerStatusOutcome);
|
|
@@ -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 { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const CurrencyCode = {
|
|
9
|
+
Ars: "ARS",
|
|
10
|
+
Aud: "AUD",
|
|
11
|
+
Brl: "BRL",
|
|
12
|
+
Cad: "CAD",
|
|
13
|
+
Cop: "COP",
|
|
14
|
+
Czk: "CZK",
|
|
15
|
+
Dkk: "DKK",
|
|
16
|
+
Eur: "EUR",
|
|
17
|
+
Gbp: "GBP",
|
|
18
|
+
Ils: "ILS",
|
|
19
|
+
Inr: "INR",
|
|
20
|
+
Jpy: "JPY",
|
|
21
|
+
Mxn: "MXN",
|
|
22
|
+
Nok: "NOK",
|
|
23
|
+
Nzd: "NZD",
|
|
24
|
+
Php: "PHP",
|
|
25
|
+
Pkr: "PKR",
|
|
26
|
+
Pln: "PLN",
|
|
27
|
+
Rsd: "RSD",
|
|
28
|
+
Sek: "SEK",
|
|
29
|
+
Sgd: "SGD",
|
|
30
|
+
Uah: "UAH",
|
|
31
|
+
Usd: "USD",
|
|
32
|
+
Zar: "ZAR",
|
|
33
|
+
} as const;
|
|
34
|
+
export type CurrencyCode = ClosedEnum<typeof CurrencyCode>;
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const CurrencyCode$inboundSchema: z.ZodNativeEnum<typeof CurrencyCode> =
|
|
38
|
+
z.nativeEnum(CurrencyCode);
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
* A custom task.
|
|
12
|
+
*/
|
|
13
|
+
export type CustomTask = {
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const CustomTask$inboundSchema: z.ZodType<
|
|
19
|
+
CustomTask,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
name: z.string(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export function customTaskFromJSON(
|
|
27
|
+
jsonString: string,
|
|
28
|
+
): SafeParseResult<CustomTask, SDKValidationError> {
|
|
29
|
+
return safeParse(
|
|
30
|
+
jsonString,
|
|
31
|
+
(x) => CustomTask$inboundSchema.parse(JSON.parse(x)),
|
|
32
|
+
`Failed to parse 'CustomTask' from JSON`,
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 employment status of a person:
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* - UPCOMING: The person is not yet employed and will start employment in the future.
|
|
13
|
+
* - CURRENT: The person is currently employed.
|
|
14
|
+
* - ON_LEAVE: The person is on leave.
|
|
15
|
+
* - INACTIVE: The person's employment is inactive.
|
|
16
|
+
* - FORMER: The person was previously employed.
|
|
17
|
+
*/
|
|
18
|
+
export const EmploymentStatus = {
|
|
19
|
+
Upcoming: "UPCOMING",
|
|
20
|
+
Current: "CURRENT",
|
|
21
|
+
OnLeave: "ON_LEAVE",
|
|
22
|
+
Inactive: "INACTIVE",
|
|
23
|
+
Former: "FORMER",
|
|
24
|
+
} as const;
|
|
25
|
+
/**
|
|
26
|
+
* The employment status of a person:
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* - UPCOMING: The person is not yet employed and will start employment in the future.
|
|
30
|
+
* - CURRENT: The person is currently employed.
|
|
31
|
+
* - ON_LEAVE: The person is on leave.
|
|
32
|
+
* - INACTIVE: The person's employment is inactive.
|
|
33
|
+
* - FORMER: The person was previously employed.
|
|
34
|
+
*/
|
|
35
|
+
export type EmploymentStatus = ClosedEnum<typeof EmploymentStatus>;
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const EmploymentStatus$inboundSchema: z.ZodNativeEnum<
|
|
39
|
+
typeof EmploymentStatus
|
|
40
|
+
> = z.nativeEnum(EmploymentStatus);
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
* ExternalFindingSeverity describes the severity of an external finding (Vulnerability or Security Alert)
|
|
10
|
+
*/
|
|
11
|
+
export const ExternalFindingSeverity = {
|
|
12
|
+
Critical: "CRITICAL",
|
|
13
|
+
High: "HIGH",
|
|
14
|
+
Low: "LOW",
|
|
15
|
+
Medium: "MEDIUM",
|
|
16
|
+
} as const;
|
|
17
|
+
/**
|
|
18
|
+
* ExternalFindingSeverity describes the severity of an external finding (Vulnerability or Security Alert)
|
|
19
|
+
*/
|
|
20
|
+
export type ExternalFindingSeverity = ClosedEnum<
|
|
21
|
+
typeof ExternalFindingSeverity
|
|
22
|
+
>;
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ExternalFindingSeverity$outboundSchema: z.ZodNativeEnum<
|
|
26
|
+
typeof ExternalFindingSeverity
|
|
27
|
+
> = z.nativeEnum(ExternalFindingSeverity);
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
export const ExternalFindingSeverityType = {
|
|
9
|
+
Critical: "CRITICAL",
|
|
10
|
+
High: "HIGH",
|
|
11
|
+
Low: "LOW",
|
|
12
|
+
Medium: "MEDIUM",
|
|
13
|
+
} as const;
|
|
14
|
+
export type ExternalFindingSeverityType = ClosedEnum<
|
|
15
|
+
typeof ExternalFindingSeverityType
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const ExternalFindingSeverityType$inboundSchema: z.ZodNativeEnum<
|
|
20
|
+
typeof ExternalFindingSeverityType
|
|
21
|
+
> = z.nativeEnum(ExternalFindingSeverityType);
|