@censys/platform-sdk 0.10.0 → 0.10.2
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 +8 -0
- package/docs/sdks/collections/README.md +8 -0
- package/docs/sdks/globaldata/README.md +91 -0
- package/docs/sdks/threathunting/README.md +250 -1
- package/funcs/accountManagementGetMemberCreditUsage.js.map +1 -1
- package/funcs/accountManagementGetOrganizationCreditUsage.js.map +1 -1
- package/funcs/accountManagementGetOrganizationCredits.js.map +1 -1
- package/funcs/accountManagementGetOrganizationDetails.js.map +1 -1
- package/funcs/accountManagementInviteUserToOrganization.js.map +1 -1
- package/funcs/accountManagementListOrganizationMembers.js.map +1 -1
- package/funcs/accountManagementRemoveOrganizationMember.js.map +1 -1
- package/funcs/accountManagementUpdateOrganizationMember.js.map +1 -1
- package/funcs/collectionsAggregate.js.map +1 -1
- package/funcs/collectionsDelete.js.map +1 -1
- package/funcs/collectionsGet.js.map +1 -1
- package/funcs/collectionsList.js +1 -0
- package/funcs/collectionsList.js.map +1 -1
- package/funcs/collectionsListEvents.js.map +1 -1
- package/funcs/collectionsSearch.js.map +1 -1
- package/funcs/collectionsUpdate.js.map +1 -1
- package/funcs/globalDataGetCertificate.js.map +1 -1
- package/funcs/globalDataGetCertificateRaw.js.map +1 -1
- package/funcs/globalDataGetHost.js.map +1 -1
- package/funcs/globalDataGetHostTimeline.js.map +1 -1
- package/funcs/globalDataGetTrackedScan.js.map +1 -1
- package/funcs/globalDataGetWebProperty.js.map +1 -1
- package/funcs/globalDataListServicesOnHost.d.ts +18 -0
- package/funcs/globalDataListServicesOnHost.d.ts.map +1 -0
- package/funcs/globalDataListServicesOnHost.js +145 -0
- package/funcs/globalDataListServicesOnHost.js.map +1 -0
- package/funcs/threatHuntingCreateCenseyeJob.d.ts +18 -0
- package/funcs/threatHuntingCreateCenseyeJob.d.ts.map +1 -0
- package/funcs/threatHuntingCreateCenseyeJob.js +131 -0
- package/funcs/threatHuntingCreateCenseyeJob.js.map +1 -0
- package/funcs/threatHuntingGetCenseyeJob.d.ts +18 -0
- package/funcs/threatHuntingGetCenseyeJob.d.ts.map +1 -0
- package/funcs/threatHuntingGetCenseyeJob.js +134 -0
- package/funcs/threatHuntingGetCenseyeJob.js.map +1 -0
- package/funcs/threatHuntingGetCenseyeJobResults.d.ts +18 -0
- package/funcs/threatHuntingGetCenseyeJobResults.d.ts.map +1 -0
- package/funcs/threatHuntingGetCenseyeJobResults.js +136 -0
- package/funcs/threatHuntingGetCenseyeJobResults.js.map +1 -0
- package/funcs/threatHuntingGetHostObservationsWithCertificate.js.map +1 -1
- package/funcs/threatHuntingGetTrackedScanThreatHunting.js.map +1 -1
- package/funcs/threatHuntingValueCounts.d.ts +1 -1
- package/funcs/threatHuntingValueCounts.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/config.js.map +1 -1
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +20 -5
- package/lib/encodings.js.map +1 -1
- package/lib/files.d.ts +13 -0
- package/lib/files.d.ts.map +1 -1
- package/lib/files.js +19 -0
- package/lib/files.js.map +1 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +0 -1
- package/lib/matchers.js.map +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +8 -4
- package/lib/sdks.js.map +1 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +1 -2
- package/lib/security.js.map +1 -1
- package/lib/url.d.ts.map +1 -1
- package/lib/url.js +4 -2
- package/lib/url.js.map +1 -1
- package/models/components/anermacfforth.d.ts +14 -0
- package/models/components/anermacfforth.d.ts.map +1 -0
- package/models/components/anermacfforth.js +60 -0
- package/models/components/anermacfforth.js.map +1 -0
- package/models/components/censeyejob.d.ts +59 -0
- package/models/components/censeyejob.d.ts.map +1 -0
- package/models/components/censeyejob.js +85 -0
- package/models/components/censeyejob.js.map +1 -0
- package/models/components/censeyeresult.d.ts +18 -0
- package/models/components/censeyeresult.d.ts.map +1 -0
- package/models/components/censeyeresult.js +57 -0
- package/models/components/censeyeresult.js.map +1 -0
- package/models/components/censeyeresultsresponse.d.ts +18 -0
- package/models/components/censeyeresultsresponse.d.ts.map +1 -0
- package/models/components/censeyeresultsresponse.js +57 -0
- package/models/components/censeyeresultsresponse.js.map +1 -0
- package/models/components/censeyetarget.d.ts +30 -0
- package/models/components/censeyetarget.d.ts.map +1 -0
- package/models/components/censeyetarget.js +75 -0
- package/models/components/censeyetarget.js.map +1 -0
- package/models/components/countcondition.d.ts +1 -1
- package/models/components/createcenseyejobinputbody.d.ts +13 -0
- package/models/components/createcenseyejobinputbody.d.ts.map +1 -0
- package/models/components/createcenseyejobinputbody.js +50 -0
- package/models/components/createcenseyejobinputbody.js.map +1 -0
- package/models/components/cursorontarget.d.ts +11 -0
- package/models/components/cursorontarget.d.ts.map +1 -0
- package/models/components/cursorontarget.js +51 -0
- package/models/components/cursorontarget.js.map +1 -0
- package/models/components/cursorontargetevent.d.ts +25 -0
- package/models/components/cursorontargetevent.d.ts.map +1 -0
- package/models/components/cursorontargetevent.js +70 -0
- package/models/components/cursorontargetevent.js.map +1 -0
- package/models/components/cursorontargetpoint.d.ts +14 -0
- package/models/components/cursorontargetpoint.d.ts.map +1 -0
- package/models/components/cursorontargetpoint.js +54 -0
- package/models/components/cursorontargetpoint.js.map +1 -0
- package/models/components/cursorontargetstatus.d.ts +10 -0
- package/models/components/cursorontargetstatus.d.ts.map +1 -0
- package/models/components/cursorontargetstatus.js +50 -0
- package/models/components/cursorontargetstatus.js.map +1 -0
- package/models/components/cursorontargettakv.d.ts +13 -0
- package/models/components/cursorontargettakv.d.ts.map +1 -0
- package/models/components/cursorontargettakv.js +53 -0
- package/models/components/cursorontargettakv.js.map +1 -0
- package/models/components/fieldvaluepair.d.ts +5 -0
- package/models/components/fieldvaluepair.d.ts.map +1 -1
- package/models/components/fieldvaluepair.js +11 -1
- package/models/components/fieldvaluepair.js.map +1 -1
- package/models/components/frps.d.ts +12 -0
- package/models/components/frps.d.ts.map +1 -0
- package/models/components/frps.js +58 -0
- package/models/components/frps.js.map +1 -0
- package/models/components/host.d.ts +12 -0
- package/models/components/host.d.ts.map +1 -1
- package/models/components/host.js +7 -0
- package/models/components/host.js.map +1 -1
- package/models/components/icap.d.ts +11 -0
- package/models/components/icap.d.ts.map +1 -0
- package/models/components/icap.js +57 -0
- package/models/components/icap.js.map +1 -0
- package/models/components/icapoptionsresponse.d.ts +21 -0
- package/models/components/icapoptionsresponse.d.ts.map +1 -0
- package/models/components/icapoptionsresponse.js +73 -0
- package/models/components/icapoptionsresponse.js.map +1 -0
- package/models/components/index.d.ts +40 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +40 -0
- package/models/components/index.js.map +1 -1
- package/models/components/networkclassification.d.ts +27 -0
- package/models/components/networkclassification.d.ts.map +1 -0
- package/models/components/networkclassification.js +60 -0
- package/models/components/networkclassification.js.map +1 -0
- package/models/components/networkmobileinfo.d.ts +21 -0
- package/models/components/networkmobileinfo.d.ts.map +1 -0
- package/models/components/networkmobileinfo.js +57 -0
- package/models/components/networkmobileinfo.js.map +1 -0
- package/models/components/privacy.d.ts +39 -0
- package/models/components/privacy.d.ts.map +1 -0
- package/models/components/privacy.js +64 -0
- package/models/components/privacy.js.map +1 -0
- package/models/components/privacytorinfo.d.ts +11 -0
- package/models/components/privacytorinfo.d.ts.map +1 -0
- package/models/components/privacytorinfo.js +51 -0
- package/models/components/privacytorinfo.js.map +1 -0
- package/models/components/privacytorinforelay.d.ts +140 -0
- package/models/components/privacytorinforelay.d.ts.map +1 -0
- package/models/components/privacytorinforelay.js +114 -0
- package/models/components/privacytorinforelay.js.map +1 -0
- package/models/components/privacytorinforelayexitpolicysummary.d.ts +17 -0
- package/models/components/privacytorinforelayexitpolicysummary.d.ts.map +1 -0
- package/models/components/privacytorinforelayexitpolicysummary.js +51 -0
- package/models/components/privacytorinforelayexitpolicysummary.js.map +1 -0
- package/models/components/reputation.d.ts +26 -0
- package/models/components/reputation.d.ts.map +1 -0
- package/models/components/reputation.js +71 -0
- package/models/components/reputation.js.map +1 -0
- package/models/components/reputationevidence.d.ts +17 -0
- package/models/components/reputationevidence.d.ts.map +1 -0
- package/models/components/reputationevidence.js +65 -0
- package/models/components/reputationevidence.js.map +1 -0
- package/models/components/reputationevidenceexternalsignal.d.ts +23 -0
- package/models/components/reputationevidenceexternalsignal.d.ts.map +1 -0
- package/models/components/reputationevidenceexternalsignal.js +62 -0
- package/models/components/reputationevidenceexternalsignal.js.map +1 -0
- package/models/components/reputationevidencefieldvalue.d.ts +11 -0
- package/models/components/reputationevidencefieldvalue.d.ts.map +1 -0
- package/models/components/reputationevidencefieldvalue.js +51 -0
- package/models/components/reputationevidencefieldvalue.js.map +1 -0
- package/models/components/reputationevidencethreat.d.ts +12 -0
- package/models/components/reputationevidencethreat.d.ts.map +1 -0
- package/models/components/reputationevidencethreat.js +59 -0
- package/models/components/reputationevidencethreat.js.map +1 -0
- package/models/components/responseenvelopecenseyejob.d.ts +11 -0
- package/models/components/responseenvelopecenseyejob.d.ts.map +1 -0
- package/models/components/responseenvelopecenseyejob.js +51 -0
- package/models/components/responseenvelopecenseyejob.js.map +1 -0
- package/models/components/responseenvelopecenseyeresultsresponse.d.ts +11 -0
- package/models/components/responseenvelopecenseyeresultsresponse.d.ts.map +1 -0
- package/models/components/responseenvelopecenseyeresultsresponse.js +51 -0
- package/models/components/responseenvelopecenseyeresultsresponse.js.map +1 -0
- package/models/components/responseenvelopeservicesonhostresponse.d.ts +11 -0
- package/models/components/responseenvelopeservicesonhostresponse.d.ts.map +1 -0
- package/models/components/responseenvelopeservicesonhostresponse.js +51 -0
- package/models/components/responseenvelopeservicesonhostresponse.js.map +1 -0
- package/models/components/sapient.d.ts +15 -0
- package/models/components/sapient.d.ts.map +1 -0
- package/models/components/sapient.js +60 -0
- package/models/components/sapient.js.map +1 -0
- package/models/components/sapienterror.d.ts +11 -0
- package/models/components/sapienterror.d.ts.map +1 -0
- package/models/components/sapienterror.js +56 -0
- package/models/components/sapienterror.js.map +1 -0
- package/models/components/sapientregistrationack.d.ts +11 -0
- package/models/components/sapientregistrationack.d.ts.map +1 -0
- package/models/components/sapientregistrationack.js +56 -0
- package/models/components/sapientregistrationack.js.map +1 -0
- package/models/components/searchvaluecountsinputbody.d.ts +1 -1
- package/models/components/service.d.ts +12 -0
- package/models/components/service.d.ts.map +1 -1
- package/models/components/service.js +14 -0
- package/models/components/service.js.map +1 -1
- package/models/components/serviceonhostrange.d.ts +33 -0
- package/models/components/serviceonhostrange.d.ts.map +1 -0
- package/models/components/serviceonhostrange.js +62 -0
- package/models/components/serviceonhostrange.js.map +1 -0
- package/models/components/servicescan.d.ts +12 -0
- package/models/components/servicescan.d.ts.map +1 -1
- package/models/components/servicescan.js +14 -0
- package/models/components/servicescan.js.map +1 -1
- package/models/components/servicesonhostresponse.d.ts +18 -0
- package/models/components/servicesonhostresponse.d.ts.map +1 -0
- package/models/components/servicesonhostresponse.js +57 -0
- package/models/components/servicesonhostresponse.js.map +1 -0
- package/models/components/sourceusagebreakdown.d.ts +2 -2
- package/models/components/sourceusagebreakdown.d.ts.map +1 -1
- package/models/components/sourceusagebreakdown.js +2 -2
- package/models/components/sourceusagebreakdown.js.map +1 -1
- package/models/components/stun.d.ts +17 -0
- package/models/components/stun.d.ts.map +1 -0
- package/models/components/stun.js +67 -0
- package/models/components/stun.js.map +1 -0
- package/models/components/stunbindingerrorresponse.d.ts +13 -0
- package/models/components/stunbindingerrorresponse.d.ts.map +1 -0
- package/models/components/stunbindingerrorresponse.js +60 -0
- package/models/components/stunbindingerrorresponse.js.map +1 -0
- package/models/components/stunbindingsuccessresponse.d.ts +13 -0
- package/models/components/stunbindingsuccessresponse.d.ts.map +1 -0
- package/models/components/stunbindingsuccessresponse.js +59 -0
- package/models/components/stunbindingsuccessresponse.js.map +1 -0
- package/models/components/stunmappedaddress.d.ts +11 -0
- package/models/components/stunmappedaddress.d.ts.map +1 -0
- package/models/components/stunmappedaddress.js +51 -0
- package/models/components/stunmappedaddress.js.map +1 -0
- package/models/components/stunturn.d.ts +15 -0
- package/models/components/stunturn.d.ts.map +1 -0
- package/models/components/stunturn.js +65 -0
- package/models/components/stunturn.js.map +1 -0
- package/models/components/stunturnallocateerrorresponse.d.ts +15 -0
- package/models/components/stunturnallocateerrorresponse.d.ts.map +1 -0
- package/models/components/stunturnallocateerrorresponse.js +62 -0
- package/models/components/stunturnallocateerrorresponse.js.map +1 -0
- package/models/components/stunturnallocatesuccessresponse.d.ts +13 -0
- package/models/components/stunturnallocatesuccessresponse.d.ts.map +1 -0
- package/models/components/stunturnallocatesuccessresponse.js +59 -0
- package/models/components/stunturnallocatesuccessresponse.js.map +1 -0
- package/models/operations/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/v3collectionscrudlist.d.ts +15 -0
- package/models/operations/v3collectionscrudlist.d.ts.map +1 -1
- package/models/operations/v3collectionscrudlist.js +12 -1
- package/models/operations/v3collectionscrudlist.js.map +1 -1
- package/models/operations/v3globaldataserviceonhost.d.ts +101 -0
- package/models/operations/v3globaldataserviceonhost.d.ts.map +1 -0
- package/models/operations/v3globaldataserviceonhost.js +107 -0
- package/models/operations/v3globaldataserviceonhost.js.map +1 -0
- package/models/operations/v3threathuntingcenseyejobresults.d.ts +45 -0
- package/models/operations/v3threathuntingcenseyejobresults.d.ts.map +1 -0
- package/models/operations/v3threathuntingcenseyejobresults.js +76 -0
- package/models/operations/v3threathuntingcenseyejobresults.js.map +1 -0
- package/models/operations/v3threathuntingcenseyejobscreate.d.ts +32 -0
- package/models/operations/v3threathuntingcenseyejobscreate.d.ts.map +1 -0
- package/models/operations/v3threathuntingcenseyejobscreate.js +72 -0
- package/models/operations/v3threathuntingcenseyejobscreate.js.map +1 -0
- package/models/operations/v3threathuntingcenseyejobsget.d.ts +35 -0
- package/models/operations/v3threathuntingcenseyejobsget.d.ts.map +1 -0
- package/models/operations/v3threathuntingcenseyejobsget.js +72 -0
- package/models/operations/v3threathuntingcenseyejobsget.js.map +1 -0
- package/package.json +1 -1
- package/sdk/globaldata.d.ts +7 -0
- package/sdk/globaldata.d.ts.map +1 -1
- package/sdk/globaldata.js +10 -0
- package/sdk/globaldata.js.map +1 -1
- package/sdk/threathunting.d.ts +22 -1
- package/sdk/threathunting.d.ts.map +1 -1
- package/sdk/threathunting.js +31 -1
- package/sdk/threathunting.js.map +1 -1
- package/src/funcs/accountManagementGetMemberCreditUsage.ts +0 -1
- package/src/funcs/accountManagementGetOrganizationCreditUsage.ts +0 -1
- package/src/funcs/accountManagementGetOrganizationCredits.ts +0 -1
- package/src/funcs/accountManagementGetOrganizationDetails.ts +0 -1
- package/src/funcs/accountManagementInviteUserToOrganization.ts +0 -1
- package/src/funcs/accountManagementListOrganizationMembers.ts +0 -1
- package/src/funcs/accountManagementRemoveOrganizationMember.ts +0 -1
- package/src/funcs/accountManagementUpdateOrganizationMember.ts +0 -1
- package/src/funcs/collectionsAggregate.ts +0 -1
- package/src/funcs/collectionsDelete.ts +0 -1
- package/src/funcs/collectionsGet.ts +0 -1
- package/src/funcs/collectionsList.ts +1 -0
- package/src/funcs/collectionsListEvents.ts +0 -1
- package/src/funcs/collectionsSearch.ts +0 -1
- package/src/funcs/collectionsUpdate.ts +0 -1
- package/src/funcs/globalDataGetCertificate.ts +0 -1
- package/src/funcs/globalDataGetCertificateRaw.ts +0 -1
- package/src/funcs/globalDataGetHost.ts +0 -1
- package/src/funcs/globalDataGetHostTimeline.ts +0 -1
- package/src/funcs/globalDataGetTrackedScan.ts +0 -1
- package/src/funcs/globalDataGetWebProperty.ts +0 -1
- package/src/funcs/globalDataListServicesOnHost.ts +205 -0
- package/src/funcs/threatHuntingCreateCenseyeJob.ts +195 -0
- package/src/funcs/threatHuntingGetCenseyeJob.ts +200 -0
- package/src/funcs/threatHuntingGetCenseyeJobResults.ts +202 -0
- package/src/funcs/threatHuntingGetHostObservationsWithCertificate.ts +0 -1
- package/src/funcs/threatHuntingGetTrackedScanThreatHunting.ts +0 -1
- package/src/funcs/threatHuntingValueCounts.ts +1 -1
- package/src/lib/config.ts +4 -4
- package/src/lib/encodings.ts +23 -4
- package/src/lib/files.ts +22 -0
- package/src/lib/matchers.ts +3 -2
- package/src/lib/sdks.ts +7 -5
- package/src/lib/security.ts +1 -2
- package/src/lib/url.ts +16 -14
- package/src/models/components/anermacfforth.ts +45 -0
- package/src/models/components/censeyejob.ts +106 -0
- package/src/models/components/censeyeresult.ts +48 -0
- package/src/models/components/censeyeresultsresponse.ts +45 -0
- package/src/models/components/censeyetarget.ts +77 -0
- package/src/models/components/countcondition.ts +1 -1
- package/src/models/components/createcenseyejobinputbody.ts +36 -0
- package/src/models/components/cursorontarget.ts +35 -0
- package/src/models/components/cursorontargetevent.ts +72 -0
- package/src/models/components/cursorontargetpoint.ts +39 -0
- package/src/models/components/cursorontargetstatus.ts +31 -0
- package/src/models/components/cursorontargettakv.ts +37 -0
- package/src/models/components/fieldvaluepair.ts +21 -0
- package/src/models/components/frps.ts +37 -0
- package/src/models/components/host.ts +19 -0
- package/src/models/components/icap.ts +37 -0
- package/src/models/components/icapoptionsresponse.ts +65 -0
- package/src/models/components/index.ts +40 -0
- package/src/models/components/networkclassification.ts +60 -0
- package/src/models/components/networkmobileinfo.ts +49 -0
- package/src/models/components/privacy.ts +73 -0
- package/src/models/components/privacytorinfo.ts +35 -0
- package/src/models/components/privacytorinforelay.ts +227 -0
- package/src/models/components/privacytorinforelayexitpolicysummary.ts +40 -0
- package/src/models/components/reputation.ts +66 -0
- package/src/models/components/reputationevidence.ts +63 -0
- package/src/models/components/reputationevidenceexternalsignal.ts +50 -0
- package/src/models/components/reputationevidencefieldvalue.ts +33 -0
- package/src/models/components/reputationevidencethreat.ts +42 -0
- package/src/models/components/responseenvelopecenseyejob.ts +32 -0
- package/src/models/components/responseenvelopecenseyeresultsresponse.ts +36 -0
- package/src/models/components/responseenvelopeservicesonhostresponse.ts +36 -0
- package/src/models/components/sapient.ts +44 -0
- package/src/models/components/sapienterror.ts +38 -0
- package/src/models/components/sapientregistrationack.ts +38 -0
- package/src/models/components/searchvaluecountsinputbody.ts +1 -1
- package/src/models/components/service.ts +23 -0
- package/src/models/components/serviceonhostrange.ts +66 -0
- package/src/models/components/servicescan.ts +23 -0
- package/src/models/components/servicesonhostresponse.ts +48 -0
- package/src/models/components/sourceusagebreakdown.ts +4 -4
- package/src/models/components/stun.ts +54 -0
- package/src/models/components/stunbindingerrorresponse.ts +44 -0
- package/src/models/components/stunbindingsuccessresponse.ts +45 -0
- package/src/models/components/stunmappedaddress.ts +33 -0
- package/src/models/components/stunturn.ts +55 -0
- package/src/models/components/stunturnallocateerrorresponse.ts +48 -0
- package/src/models/components/stunturnallocatesuccessresponse.ts +45 -0
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/v3collectionscrudlist.ts +22 -0
- package/src/models/operations/v3globaldataserviceonhost.ts +173 -0
- package/src/models/operations/v3threathuntingcenseyejobresults.ts +107 -0
- package/src/models/operations/v3threathuntingcenseyejobscreate.ts +91 -0
- package/src/models/operations/v3threathuntingcenseyejobsget.ts +87 -0
- package/src/sdk/globaldata.ts +18 -0
- package/src/sdk/threathunting.ts +55 -1
- package/tests/sdk.test.ts +412 -259
- package/examples/package-lock.json +0 -610
- package/examples/package.json +0 -18
- package/tests/package-lock.json +0 -1448
- package/tests/package.json +0 -11
- package/tsconfig.json +0 -40
|
@@ -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 { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type SapientError = {
|
|
12
|
+
errorMessage?: Array<string> | null | undefined;
|
|
13
|
+
packet?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const SapientError$inboundSchema: z.ZodType<
|
|
18
|
+
SapientError,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
error_message: z.nullable(z.array(z.string())).optional(),
|
|
23
|
+
packet: z.string().optional(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"error_message": "errorMessage",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function sapientErrorFromJSON(
|
|
31
|
+
jsonString: string,
|
|
32
|
+
): SafeParseResult<SapientError, SDKValidationError> {
|
|
33
|
+
return safeParse(
|
|
34
|
+
jsonString,
|
|
35
|
+
(x) => SapientError$inboundSchema.parse(JSON.parse(x)),
|
|
36
|
+
`Failed to parse 'SapientError' from JSON`,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -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 { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type SapientRegistrationAck = {
|
|
12
|
+
acceptance?: boolean | undefined;
|
|
13
|
+
ackResponseReason?: Array<string> | null | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const SapientRegistrationAck$inboundSchema: z.ZodType<
|
|
18
|
+
SapientRegistrationAck,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
acceptance: z.boolean().optional(),
|
|
23
|
+
ack_response_reason: z.nullable(z.array(z.string())).optional(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"ack_response_reason": "ackResponseReason",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function sapientRegistrationAckFromJSON(
|
|
31
|
+
jsonString: string,
|
|
32
|
+
): SafeParseResult<SapientRegistrationAck, SDKValidationError> {
|
|
33
|
+
return safeParse(
|
|
34
|
+
jsonString,
|
|
35
|
+
(x) => SapientRegistrationAck$inboundSchema.parse(JSON.parse(x)),
|
|
36
|
+
`Failed to parse 'SapientRegistrationAck' from JSON`,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
|
|
13
13
|
export type SearchValueCountsInputBody = {
|
|
14
14
|
/**
|
|
15
|
-
* Groups of field-value pairs to count matches for.
|
|
15
|
+
* Groups of field-value pairs to count matches for. Each group may contain up to 5 field-value pairs.
|
|
16
16
|
*/
|
|
17
17
|
andCountConditions: Array<CountCondition> | null;
|
|
18
18
|
/**
|
|
@@ -11,6 +11,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
import { Activemq, Activemq$inboundSchema } from "./activemq.js";
|
|
13
13
|
import { Amqp, Amqp$inboundSchema } from "./amqp.js";
|
|
14
|
+
import { AnermaCfForth, AnermaCfForth$inboundSchema } from "./anermacfforth.js";
|
|
14
15
|
import { AnyConnect, AnyConnect$inboundSchema } from "./anyconnect.js";
|
|
15
16
|
import {
|
|
16
17
|
AsteriskManagerInterface,
|
|
@@ -32,6 +33,10 @@ import {
|
|
|
32
33
|
CrestronDinAp2,
|
|
33
34
|
CrestronDinAp2$inboundSchema,
|
|
34
35
|
} from "./crestrondinap2.js";
|
|
36
|
+
import {
|
|
37
|
+
CursorOnTarget,
|
|
38
|
+
CursorOnTarget$inboundSchema,
|
|
39
|
+
} from "./cursorontarget.js";
|
|
35
40
|
import { Cwmp, Cwmp$inboundSchema } from "./cwmp.js";
|
|
36
41
|
import { Darkcomet, Darkcomet$inboundSchema } from "./darkcomet.js";
|
|
37
42
|
import { Darkgate, Darkgate$inboundSchema } from "./darkgate.js";
|
|
@@ -55,6 +60,7 @@ import {
|
|
|
55
60
|
FlashSocketPolicy$inboundSchema,
|
|
56
61
|
} from "./flashsocketpolicy.js";
|
|
57
62
|
import { Fox, Fox$inboundSchema } from "./fox.js";
|
|
63
|
+
import { Frps, Frps$inboundSchema } from "./frps.js";
|
|
58
64
|
import { Ftp, Ftp$inboundSchema } from "./ftp.js";
|
|
59
65
|
import { Gearman, Gearman$inboundSchema } from "./gearman.js";
|
|
60
66
|
import { Gemini, Gemini$inboundSchema } from "./gemini.js";
|
|
@@ -62,6 +68,7 @@ import { Hajime, Hajime$inboundSchema } from "./hajime.js";
|
|
|
62
68
|
import { HidVertx, HidVertx$inboundSchema } from "./hidvertx.js";
|
|
63
69
|
import { Hikvision, Hikvision$inboundSchema } from "./hikvision.js";
|
|
64
70
|
import { Ibmnje, Ibmnje$inboundSchema } from "./ibmnje.js";
|
|
71
|
+
import { Icap, Icap$inboundSchema } from "./icap.js";
|
|
65
72
|
import { Ike, Ike$inboundSchema } from "./ike.js";
|
|
66
73
|
import { Imap, Imap$inboundSchema } from "./imap.js";
|
|
67
74
|
import { Iota, Iota$inboundSchema } from "./iota.js";
|
|
@@ -142,6 +149,7 @@ import {
|
|
|
142
149
|
RustdeskRendezvous$inboundSchema,
|
|
143
150
|
} from "./rustdeskrendezvous.js";
|
|
144
151
|
import { S7, S7$inboundSchema } from "./s7.js";
|
|
152
|
+
import { Sapient, Sapient$inboundSchema } from "./sapient.js";
|
|
145
153
|
import { SapRouter, SapRouter$inboundSchema } from "./saprouter.js";
|
|
146
154
|
import { Scpi, Scpi$inboundSchema } from "./scpi.js";
|
|
147
155
|
import { Screenshot, Screenshot$inboundSchema } from "./screenshot.js";
|
|
@@ -160,6 +168,7 @@ import { Spice, Spice$inboundSchema } from "./spice.js";
|
|
|
160
168
|
import { Ssdp, Ssdp$inboundSchema } from "./ssdp.js";
|
|
161
169
|
import { Ssh, Ssh$inboundSchema } from "./ssh.js";
|
|
162
170
|
import { Steam, Steam$inboundSchema } from "./steam.js";
|
|
171
|
+
import { Stun, Stun$inboundSchema } from "./stun.js";
|
|
163
172
|
import { TacacsPlus, TacacsPlus$inboundSchema } from "./tacacsplus.js";
|
|
164
173
|
import { TeamViewer, TeamViewer$inboundSchema } from "./teamviewer.js";
|
|
165
174
|
import { Telnet, Telnet$inboundSchema } from "./telnet.js";
|
|
@@ -195,6 +204,7 @@ export type ServiceTransportProtocol = OpenEnum<
|
|
|
195
204
|
export type Service = {
|
|
196
205
|
activemq?: Activemq | undefined;
|
|
197
206
|
amqp?: Amqp | undefined;
|
|
207
|
+
anermaCfForth?: AnermaCfForth | undefined;
|
|
198
208
|
anyConnect?: AnyConnect | undefined;
|
|
199
209
|
asteriskManagerInterface?: AsteriskManagerInterface | undefined;
|
|
200
210
|
bacnet?: Bacnet | undefined;
|
|
@@ -209,6 +219,7 @@ export type Service = {
|
|
|
209
219
|
coap?: Coap | undefined;
|
|
210
220
|
crestronCp3?: CrestronCp3 | undefined;
|
|
211
221
|
crestronDinAp2?: CrestronDinAp2 | undefined;
|
|
222
|
+
cursorOnTarget?: CursorOnTarget | undefined;
|
|
212
223
|
cwmp?: Cwmp | undefined;
|
|
213
224
|
darkcomet?: Darkcomet | undefined;
|
|
214
225
|
darkgate?: Darkgate | undefined;
|
|
@@ -227,6 +238,7 @@ export type Service = {
|
|
|
227
238
|
exposures?: Array<Risk> | null | undefined;
|
|
228
239
|
flashSocketPolicy?: FlashSocketPolicy | undefined;
|
|
229
240
|
fox?: Fox | undefined;
|
|
241
|
+
frps?: Frps | undefined;
|
|
230
242
|
ftp?: Ftp | undefined;
|
|
231
243
|
gearman?: Gearman | undefined;
|
|
232
244
|
gemini?: Gemini | undefined;
|
|
@@ -235,6 +247,7 @@ export type Service = {
|
|
|
235
247
|
hidVertx?: HidVertx | undefined;
|
|
236
248
|
hikvision?: Hikvision | undefined;
|
|
237
249
|
ibmnje?: Ibmnje | undefined;
|
|
250
|
+
icap?: Icap | undefined;
|
|
238
251
|
ike?: Ike | undefined;
|
|
239
252
|
imap?: Imap | undefined;
|
|
240
253
|
iota?: Iota | undefined;
|
|
@@ -305,6 +318,7 @@ export type Service = {
|
|
|
305
318
|
rustdeskRendezvous?: RustdeskRendezvous | undefined;
|
|
306
319
|
s7?: S7 | undefined;
|
|
307
320
|
sapRouter?: SapRouter | undefined;
|
|
321
|
+
sapient?: Sapient | undefined;
|
|
308
322
|
scanTime?: string | undefined;
|
|
309
323
|
scpi?: Scpi | undefined;
|
|
310
324
|
screenshots?: Array<Screenshot> | null | undefined;
|
|
@@ -321,6 +335,7 @@ export type Service = {
|
|
|
321
335
|
ssdp?: Ssdp | undefined;
|
|
322
336
|
ssh?: Ssh | undefined;
|
|
323
337
|
steam?: Steam | undefined;
|
|
338
|
+
stun?: Stun | undefined;
|
|
324
339
|
tacacsPlus?: TacacsPlus | undefined;
|
|
325
340
|
teamViewer?: TeamViewer | undefined;
|
|
326
341
|
telnet?: Telnet | undefined;
|
|
@@ -353,6 +368,7 @@ export const Service$inboundSchema: z.ZodType<Service, z.ZodTypeDef, unknown> =
|
|
|
353
368
|
z.object({
|
|
354
369
|
activemq: Activemq$inboundSchema.optional(),
|
|
355
370
|
amqp: Amqp$inboundSchema.optional(),
|
|
371
|
+
anerma_cf_forth: AnermaCfForth$inboundSchema.optional(),
|
|
356
372
|
any_connect: AnyConnect$inboundSchema.optional(),
|
|
357
373
|
asterisk_manager_interface: AsteriskManagerInterface$inboundSchema
|
|
358
374
|
.optional(),
|
|
@@ -368,6 +384,7 @@ export const Service$inboundSchema: z.ZodType<Service, z.ZodTypeDef, unknown> =
|
|
|
368
384
|
coap: Coap$inboundSchema.optional(),
|
|
369
385
|
crestron_cp3: CrestronCp3$inboundSchema.optional(),
|
|
370
386
|
crestron_din_ap2: CrestronDinAp2$inboundSchema.optional(),
|
|
387
|
+
cursor_on_target: CursorOnTarget$inboundSchema.optional(),
|
|
371
388
|
cwmp: Cwmp$inboundSchema.optional(),
|
|
372
389
|
darkcomet: Darkcomet$inboundSchema.optional(),
|
|
373
390
|
darkgate: Darkgate$inboundSchema.optional(),
|
|
@@ -386,6 +403,7 @@ export const Service$inboundSchema: z.ZodType<Service, z.ZodTypeDef, unknown> =
|
|
|
386
403
|
exposures: z.nullable(z.array(Risk$inboundSchema)).optional(),
|
|
387
404
|
flash_socket_policy: FlashSocketPolicy$inboundSchema.optional(),
|
|
388
405
|
fox: Fox$inboundSchema.optional(),
|
|
406
|
+
frps: Frps$inboundSchema.optional(),
|
|
389
407
|
ftp: Ftp$inboundSchema.optional(),
|
|
390
408
|
gearman: Gearman$inboundSchema.optional(),
|
|
391
409
|
gemini: Gemini$inboundSchema.optional(),
|
|
@@ -394,6 +412,7 @@ export const Service$inboundSchema: z.ZodType<Service, z.ZodTypeDef, unknown> =
|
|
|
394
412
|
hid_vertx: HidVertx$inboundSchema.optional(),
|
|
395
413
|
hikvision: Hikvision$inboundSchema.optional(),
|
|
396
414
|
ibmnje: Ibmnje$inboundSchema.optional(),
|
|
415
|
+
icap: Icap$inboundSchema.optional(),
|
|
397
416
|
ike: Ike$inboundSchema.optional(),
|
|
398
417
|
imap: Imap$inboundSchema.optional(),
|
|
399
418
|
iota: Iota$inboundSchema.optional(),
|
|
@@ -464,6 +483,7 @@ export const Service$inboundSchema: z.ZodType<Service, z.ZodTypeDef, unknown> =
|
|
|
464
483
|
rustdesk_rendezvous: RustdeskRendezvous$inboundSchema.optional(),
|
|
465
484
|
s7: S7$inboundSchema.optional(),
|
|
466
485
|
sap_router: SapRouter$inboundSchema.optional(),
|
|
486
|
+
sapient: Sapient$inboundSchema.optional(),
|
|
467
487
|
scan_time: z.string().optional(),
|
|
468
488
|
scpi: Scpi$inboundSchema.optional(),
|
|
469
489
|
screenshots: z.nullable(z.array(Screenshot$inboundSchema)).optional(),
|
|
@@ -480,6 +500,7 @@ export const Service$inboundSchema: z.ZodType<Service, z.ZodTypeDef, unknown> =
|
|
|
480
500
|
ssdp: Ssdp$inboundSchema.optional(),
|
|
481
501
|
ssh: Ssh$inboundSchema.optional(),
|
|
482
502
|
steam: Steam$inboundSchema.optional(),
|
|
503
|
+
stun: Stun$inboundSchema.optional(),
|
|
483
504
|
tacacs_plus: TacacsPlus$inboundSchema.optional(),
|
|
484
505
|
team_viewer: TeamViewer$inboundSchema.optional(),
|
|
485
506
|
telnet: Telnet$inboundSchema.optional(),
|
|
@@ -500,6 +521,7 @@ export const Service$inboundSchema: z.ZodType<Service, z.ZodTypeDef, unknown> =
|
|
|
500
521
|
zeromq: Zeromq$inboundSchema.optional(),
|
|
501
522
|
}).transform((v) => {
|
|
502
523
|
return remap$(v, {
|
|
524
|
+
"anerma_cf_forth": "anermaCfForth",
|
|
503
525
|
"any_connect": "anyConnect",
|
|
504
526
|
"asterisk_manager_interface": "asteriskManagerInterface",
|
|
505
527
|
"banner_hash_sha256": "bannerHashSha256",
|
|
@@ -508,6 +530,7 @@ export const Service$inboundSchema: z.ZodType<Service, z.ZodTypeDef, unknown> =
|
|
|
508
530
|
"cisco_ipsla": "ciscoIpsla",
|
|
509
531
|
"crestron_cp3": "crestronCp3",
|
|
510
532
|
"crestron_din_ap2": "crestronDinAp2",
|
|
533
|
+
"cursor_on_target": "cursorOnTarget",
|
|
511
534
|
"dvr_ip": "dvrIp",
|
|
512
535
|
"elf_file": "elfFile",
|
|
513
536
|
"flash_socket_policy": "flashSocketPolicy",
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type ServiceOnHostRange = {
|
|
12
|
+
/**
|
|
13
|
+
* When the service was last observed
|
|
14
|
+
*/
|
|
15
|
+
endTime: Date;
|
|
16
|
+
/**
|
|
17
|
+
* IP address where the service was observed
|
|
18
|
+
*/
|
|
19
|
+
ip: string;
|
|
20
|
+
/**
|
|
21
|
+
* Port number where the service was observed
|
|
22
|
+
*/
|
|
23
|
+
port: string;
|
|
24
|
+
/**
|
|
25
|
+
* Application protocol (e.g., HTTP, HTTPS)
|
|
26
|
+
*/
|
|
27
|
+
protocol: string;
|
|
28
|
+
/**
|
|
29
|
+
* When the service was first observed
|
|
30
|
+
*/
|
|
31
|
+
startTime: Date;
|
|
32
|
+
/**
|
|
33
|
+
* Transport protocol (e.g., TCP, UDP, QUIC)
|
|
34
|
+
*/
|
|
35
|
+
transportProtocol: string;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const ServiceOnHostRange$inboundSchema: z.ZodType<
|
|
40
|
+
ServiceOnHostRange,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.object({
|
|
44
|
+
end_time: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
45
|
+
ip: z.string(),
|
|
46
|
+
port: z.string(),
|
|
47
|
+
protocol: z.string(),
|
|
48
|
+
start_time: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
49
|
+
transport_protocol: z.string(),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return remap$(v, {
|
|
52
|
+
"end_time": "endTime",
|
|
53
|
+
"start_time": "startTime",
|
|
54
|
+
"transport_protocol": "transportProtocol",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
export function serviceOnHostRangeFromJSON(
|
|
59
|
+
jsonString: string,
|
|
60
|
+
): SafeParseResult<ServiceOnHostRange, SDKValidationError> {
|
|
61
|
+
return safeParse(
|
|
62
|
+
jsonString,
|
|
63
|
+
(x) => ServiceOnHostRange$inboundSchema.parse(JSON.parse(x)),
|
|
64
|
+
`Failed to parse 'ServiceOnHostRange' from JSON`,
|
|
65
|
+
);
|
|
66
|
+
}
|
|
@@ -11,6 +11,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
import { Activemq, Activemq$inboundSchema } from "./activemq.js";
|
|
13
13
|
import { Amqp, Amqp$inboundSchema } from "./amqp.js";
|
|
14
|
+
import { AnermaCfForth, AnermaCfForth$inboundSchema } from "./anermacfforth.js";
|
|
14
15
|
import { AnyConnect, AnyConnect$inboundSchema } from "./anyconnect.js";
|
|
15
16
|
import {
|
|
16
17
|
AsteriskManagerInterface,
|
|
@@ -30,6 +31,10 @@ import {
|
|
|
30
31
|
CrestronDinAp2,
|
|
31
32
|
CrestronDinAp2$inboundSchema,
|
|
32
33
|
} from "./crestrondinap2.js";
|
|
34
|
+
import {
|
|
35
|
+
CursorOnTarget,
|
|
36
|
+
CursorOnTarget$inboundSchema,
|
|
37
|
+
} from "./cursorontarget.js";
|
|
33
38
|
import { Cwmp, Cwmp$inboundSchema } from "./cwmp.js";
|
|
34
39
|
import { Darkcomet, Darkcomet$inboundSchema } from "./darkcomet.js";
|
|
35
40
|
import { Darkgate, Darkgate$inboundSchema } from "./darkgate.js";
|
|
@@ -49,6 +54,7 @@ import {
|
|
|
49
54
|
FlashSocketPolicy$inboundSchema,
|
|
50
55
|
} from "./flashsocketpolicy.js";
|
|
51
56
|
import { Fox, Fox$inboundSchema } from "./fox.js";
|
|
57
|
+
import { Frps, Frps$inboundSchema } from "./frps.js";
|
|
52
58
|
import { Ftp, Ftp$inboundSchema } from "./ftp.js";
|
|
53
59
|
import { Gearman, Gearman$inboundSchema } from "./gearman.js";
|
|
54
60
|
import { Gemini, Gemini$inboundSchema } from "./gemini.js";
|
|
@@ -56,6 +62,7 @@ import { Hajime, Hajime$inboundSchema } from "./hajime.js";
|
|
|
56
62
|
import { HidVertx, HidVertx$inboundSchema } from "./hidvertx.js";
|
|
57
63
|
import { Hikvision, Hikvision$inboundSchema } from "./hikvision.js";
|
|
58
64
|
import { Ibmnje, Ibmnje$inboundSchema } from "./ibmnje.js";
|
|
65
|
+
import { Icap, Icap$inboundSchema } from "./icap.js";
|
|
59
66
|
import { Ike, Ike$inboundSchema } from "./ike.js";
|
|
60
67
|
import { Imap, Imap$inboundSchema } from "./imap.js";
|
|
61
68
|
import { Iota, Iota$inboundSchema } from "./iota.js";
|
|
@@ -132,6 +139,7 @@ import {
|
|
|
132
139
|
RustdeskRendezvous$inboundSchema,
|
|
133
140
|
} from "./rustdeskrendezvous.js";
|
|
134
141
|
import { S7, S7$inboundSchema } from "./s7.js";
|
|
142
|
+
import { Sapient, Sapient$inboundSchema } from "./sapient.js";
|
|
135
143
|
import { SapRouter, SapRouter$inboundSchema } from "./saprouter.js";
|
|
136
144
|
import { Scpi, Scpi$inboundSchema } from "./scpi.js";
|
|
137
145
|
import { Screenshot, Screenshot$inboundSchema } from "./screenshot.js";
|
|
@@ -150,6 +158,7 @@ import { Spice, Spice$inboundSchema } from "./spice.js";
|
|
|
150
158
|
import { Ssdp, Ssdp$inboundSchema } from "./ssdp.js";
|
|
151
159
|
import { Ssh, Ssh$inboundSchema } from "./ssh.js";
|
|
152
160
|
import { Steam, Steam$inboundSchema } from "./steam.js";
|
|
161
|
+
import { Stun, Stun$inboundSchema } from "./stun.js";
|
|
153
162
|
import { TacacsPlus, TacacsPlus$inboundSchema } from "./tacacsplus.js";
|
|
154
163
|
import { TeamViewer, TeamViewer$inboundSchema } from "./teamviewer.js";
|
|
155
164
|
import { Telnet, Telnet$inboundSchema } from "./telnet.js";
|
|
@@ -183,6 +192,7 @@ export type ServiceScanTransportProtocol = OpenEnum<
|
|
|
183
192
|
export type ServiceScan = {
|
|
184
193
|
activemq?: Activemq | undefined;
|
|
185
194
|
amqp?: Amqp | undefined;
|
|
195
|
+
anermaCfForth?: AnermaCfForth | undefined;
|
|
186
196
|
anyConnect?: AnyConnect | undefined;
|
|
187
197
|
asteriskManagerInterface?: AsteriskManagerInterface | undefined;
|
|
188
198
|
bacnet?: Bacnet | undefined;
|
|
@@ -195,6 +205,7 @@ export type ServiceScan = {
|
|
|
195
205
|
coap?: Coap | undefined;
|
|
196
206
|
crestronCp3?: CrestronCp3 | undefined;
|
|
197
207
|
crestronDinAp2?: CrestronDinAp2 | undefined;
|
|
208
|
+
cursorOnTarget?: CursorOnTarget | undefined;
|
|
198
209
|
cwmp?: Cwmp | undefined;
|
|
199
210
|
darkcomet?: Darkcomet | undefined;
|
|
200
211
|
darkgate?: Darkgate | undefined;
|
|
@@ -211,6 +222,7 @@ export type ServiceScan = {
|
|
|
211
222
|
ethereum?: Ethereum | undefined;
|
|
212
223
|
flashSocketPolicy?: FlashSocketPolicy | undefined;
|
|
213
224
|
fox?: Fox | undefined;
|
|
225
|
+
frps?: Frps | undefined;
|
|
214
226
|
ftp?: Ftp | undefined;
|
|
215
227
|
gearman?: Gearman | undefined;
|
|
216
228
|
gemini?: Gemini | undefined;
|
|
@@ -218,6 +230,7 @@ export type ServiceScan = {
|
|
|
218
230
|
hidVertx?: HidVertx | undefined;
|
|
219
231
|
hikvision?: Hikvision | undefined;
|
|
220
232
|
ibmnje?: Ibmnje | undefined;
|
|
233
|
+
icap?: Icap | undefined;
|
|
221
234
|
ike?: Ike | undefined;
|
|
222
235
|
imap?: Imap | undefined;
|
|
223
236
|
iota?: Iota | undefined;
|
|
@@ -284,6 +297,7 @@ export type ServiceScan = {
|
|
|
284
297
|
rustdeskRendezvous?: RustdeskRendezvous | undefined;
|
|
285
298
|
s7?: S7 | undefined;
|
|
286
299
|
sapRouter?: SapRouter | undefined;
|
|
300
|
+
sapient?: Sapient | undefined;
|
|
287
301
|
scanTime?: string | undefined;
|
|
288
302
|
scpi?: Scpi | undefined;
|
|
289
303
|
screenshots?: Array<Screenshot> | null | undefined;
|
|
@@ -299,6 +313,7 @@ export type ServiceScan = {
|
|
|
299
313
|
ssdp?: Ssdp | undefined;
|
|
300
314
|
ssh?: Ssh | undefined;
|
|
301
315
|
steam?: Steam | undefined;
|
|
316
|
+
stun?: Stun | undefined;
|
|
302
317
|
tacacsPlus?: TacacsPlus | undefined;
|
|
303
318
|
teamViewer?: TeamViewer | undefined;
|
|
304
319
|
telnet?: Telnet | undefined;
|
|
@@ -332,6 +347,7 @@ export const ServiceScan$inboundSchema: z.ZodType<
|
|
|
332
347
|
> = z.object({
|
|
333
348
|
activemq: Activemq$inboundSchema.optional(),
|
|
334
349
|
amqp: Amqp$inboundSchema.optional(),
|
|
350
|
+
anerma_cf_forth: AnermaCfForth$inboundSchema.optional(),
|
|
335
351
|
any_connect: AnyConnect$inboundSchema.optional(),
|
|
336
352
|
asterisk_manager_interface: AsteriskManagerInterface$inboundSchema.optional(),
|
|
337
353
|
bacnet: Bacnet$inboundSchema.optional(),
|
|
@@ -344,6 +360,7 @@ export const ServiceScan$inboundSchema: z.ZodType<
|
|
|
344
360
|
coap: Coap$inboundSchema.optional(),
|
|
345
361
|
crestron_cp3: CrestronCp3$inboundSchema.optional(),
|
|
346
362
|
crestron_din_ap2: CrestronDinAp2$inboundSchema.optional(),
|
|
363
|
+
cursor_on_target: CursorOnTarget$inboundSchema.optional(),
|
|
347
364
|
cwmp: Cwmp$inboundSchema.optional(),
|
|
348
365
|
darkcomet: Darkcomet$inboundSchema.optional(),
|
|
349
366
|
darkgate: Darkgate$inboundSchema.optional(),
|
|
@@ -360,6 +377,7 @@ export const ServiceScan$inboundSchema: z.ZodType<
|
|
|
360
377
|
ethereum: Ethereum$inboundSchema.optional(),
|
|
361
378
|
flash_socket_policy: FlashSocketPolicy$inboundSchema.optional(),
|
|
362
379
|
fox: Fox$inboundSchema.optional(),
|
|
380
|
+
frps: Frps$inboundSchema.optional(),
|
|
363
381
|
ftp: Ftp$inboundSchema.optional(),
|
|
364
382
|
gearman: Gearman$inboundSchema.optional(),
|
|
365
383
|
gemini: Gemini$inboundSchema.optional(),
|
|
@@ -367,6 +385,7 @@ export const ServiceScan$inboundSchema: z.ZodType<
|
|
|
367
385
|
hid_vertx: HidVertx$inboundSchema.optional(),
|
|
368
386
|
hikvision: Hikvision$inboundSchema.optional(),
|
|
369
387
|
ibmnje: Ibmnje$inboundSchema.optional(),
|
|
388
|
+
icap: Icap$inboundSchema.optional(),
|
|
370
389
|
ike: Ike$inboundSchema.optional(),
|
|
371
390
|
imap: Imap$inboundSchema.optional(),
|
|
372
391
|
iota: Iota$inboundSchema.optional(),
|
|
@@ -433,6 +452,7 @@ export const ServiceScan$inboundSchema: z.ZodType<
|
|
|
433
452
|
rustdesk_rendezvous: RustdeskRendezvous$inboundSchema.optional(),
|
|
434
453
|
s7: S7$inboundSchema.optional(),
|
|
435
454
|
sap_router: SapRouter$inboundSchema.optional(),
|
|
455
|
+
sapient: Sapient$inboundSchema.optional(),
|
|
436
456
|
scan_time: z.string().optional(),
|
|
437
457
|
scpi: Scpi$inboundSchema.optional(),
|
|
438
458
|
screenshots: z.nullable(z.array(Screenshot$inboundSchema)).optional(),
|
|
@@ -448,6 +468,7 @@ export const ServiceScan$inboundSchema: z.ZodType<
|
|
|
448
468
|
ssdp: Ssdp$inboundSchema.optional(),
|
|
449
469
|
ssh: Ssh$inboundSchema.optional(),
|
|
450
470
|
steam: Steam$inboundSchema.optional(),
|
|
471
|
+
stun: Stun$inboundSchema.optional(),
|
|
451
472
|
tacacs_plus: TacacsPlus$inboundSchema.optional(),
|
|
452
473
|
team_viewer: TeamViewer$inboundSchema.optional(),
|
|
453
474
|
telnet: Telnet$inboundSchema.optional(),
|
|
@@ -466,6 +487,7 @@ export const ServiceScan$inboundSchema: z.ZodType<
|
|
|
466
487
|
zeromq: Zeromq$inboundSchema.optional(),
|
|
467
488
|
}).transform((v) => {
|
|
468
489
|
return remap$(v, {
|
|
490
|
+
"anerma_cf_forth": "anermaCfForth",
|
|
469
491
|
"any_connect": "anyConnect",
|
|
470
492
|
"asterisk_manager_interface": "asteriskManagerInterface",
|
|
471
493
|
"banner_hash_sha256": "bannerHashSha256",
|
|
@@ -473,6 +495,7 @@ export const ServiceScan$inboundSchema: z.ZodType<
|
|
|
473
495
|
"cisco_ipsla": "ciscoIpsla",
|
|
474
496
|
"crestron_cp3": "crestronCp3",
|
|
475
497
|
"crestron_din_ap2": "crestronDinAp2",
|
|
498
|
+
"cursor_on_target": "cursorOnTarget",
|
|
476
499
|
"dvr_ip": "dvrIp",
|
|
477
500
|
"elf_file": "elfFile",
|
|
478
501
|
"flash_socket_policy": "flashSocketPolicy",
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
ServiceOnHostRange,
|
|
12
|
+
ServiceOnHostRange$inboundSchema,
|
|
13
|
+
} from "./serviceonhostrange.js";
|
|
14
|
+
|
|
15
|
+
export type ServicesOnHostResponse = {
|
|
16
|
+
/**
|
|
17
|
+
* A token that can be used to retrieve the next page of ranges.
|
|
18
|
+
*/
|
|
19
|
+
nextPageToken: string;
|
|
20
|
+
/**
|
|
21
|
+
* The list of requested services.
|
|
22
|
+
*/
|
|
23
|
+
ranges: Array<ServiceOnHostRange> | null;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const ServicesOnHostResponse$inboundSchema: z.ZodType<
|
|
28
|
+
ServicesOnHostResponse,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
next_page_token: z.string(),
|
|
33
|
+
ranges: z.nullable(z.array(ServiceOnHostRange$inboundSchema)),
|
|
34
|
+
}).transform((v) => {
|
|
35
|
+
return remap$(v, {
|
|
36
|
+
"next_page_token": "nextPageToken",
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function servicesOnHostResponseFromJSON(
|
|
41
|
+
jsonString: string,
|
|
42
|
+
): SafeParseResult<ServicesOnHostResponse, SDKValidationError> {
|
|
43
|
+
return safeParse(
|
|
44
|
+
jsonString,
|
|
45
|
+
(x) => ServicesOnHostResponse$inboundSchema.parse(JSON.parse(x)),
|
|
46
|
+
`Failed to parse 'ServicesOnHostResponse' from JSON`,
|
|
47
|
+
);
|
|
48
|
+
}
|
|
@@ -16,11 +16,11 @@ export type SourceUsageBreakdown = {
|
|
|
16
16
|
/**
|
|
17
17
|
* The amount of credits consumed through auto-replenishment.
|
|
18
18
|
*/
|
|
19
|
-
autoReplenishment
|
|
19
|
+
autoReplenishment?: number | undefined;
|
|
20
20
|
/**
|
|
21
21
|
* The amount of credits consumed through other operations.
|
|
22
22
|
*/
|
|
23
|
-
other
|
|
23
|
+
other?: number | undefined;
|
|
24
24
|
/**
|
|
25
25
|
* The amount of credits consumed through the Platform UI.
|
|
26
26
|
*/
|
|
@@ -34,8 +34,8 @@ export const SourceUsageBreakdown$inboundSchema: z.ZodType<
|
|
|
34
34
|
unknown
|
|
35
35
|
> = z.object({
|
|
36
36
|
api: z.number().int(),
|
|
37
|
-
auto_replenishment: z.number().int(),
|
|
38
|
-
other: z.number().int(),
|
|
37
|
+
auto_replenishment: z.number().int().optional(),
|
|
38
|
+
other: z.number().int().optional(),
|
|
39
39
|
ui: z.number().int(),
|
|
40
40
|
}).transform((v) => {
|
|
41
41
|
return remap$(v, {
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
StunBindingErrorResponse,
|
|
12
|
+
StunBindingErrorResponse$inboundSchema,
|
|
13
|
+
} from "./stunbindingerrorresponse.js";
|
|
14
|
+
import {
|
|
15
|
+
StunBindingSuccessResponse,
|
|
16
|
+
StunBindingSuccessResponse$inboundSchema,
|
|
17
|
+
} from "./stunbindingsuccessresponse.js";
|
|
18
|
+
import { StunTurn, StunTurn$inboundSchema } from "./stunturn.js";
|
|
19
|
+
|
|
20
|
+
export type Stun = {
|
|
21
|
+
bindingErrorResponse?: StunBindingErrorResponse | undefined;
|
|
22
|
+
bindingSuccessResponse?: StunBindingSuccessResponse | undefined;
|
|
23
|
+
responseType?: number | undefined;
|
|
24
|
+
responseTypeName?: string | undefined;
|
|
25
|
+
turn?: StunTurn | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const Stun$inboundSchema: z.ZodType<Stun, z.ZodTypeDef, unknown> = z
|
|
30
|
+
.object({
|
|
31
|
+
binding_error_response: StunBindingErrorResponse$inboundSchema.optional(),
|
|
32
|
+
binding_success_response: StunBindingSuccessResponse$inboundSchema
|
|
33
|
+
.optional(),
|
|
34
|
+
response_type: z.number().int().optional(),
|
|
35
|
+
response_type_name: z.string().optional(),
|
|
36
|
+
turn: StunTurn$inboundSchema.optional(),
|
|
37
|
+
}).transform((v) => {
|
|
38
|
+
return remap$(v, {
|
|
39
|
+
"binding_error_response": "bindingErrorResponse",
|
|
40
|
+
"binding_success_response": "bindingSuccessResponse",
|
|
41
|
+
"response_type": "responseType",
|
|
42
|
+
"response_type_name": "responseTypeName",
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export function stunFromJSON(
|
|
47
|
+
jsonString: string,
|
|
48
|
+
): SafeParseResult<Stun, SDKValidationError> {
|
|
49
|
+
return safeParse(
|
|
50
|
+
jsonString,
|
|
51
|
+
(x) => Stun$inboundSchema.parse(JSON.parse(x)),
|
|
52
|
+
`Failed to parse 'Stun' from JSON`,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type StunBindingErrorResponse = {
|
|
12
|
+
errorCode?: number | undefined;
|
|
13
|
+
errorReason?: string | undefined;
|
|
14
|
+
hasFingerprint?: boolean | undefined;
|
|
15
|
+
software?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const StunBindingErrorResponse$inboundSchema: z.ZodType<
|
|
20
|
+
StunBindingErrorResponse,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
error_code: z.number().int().optional(),
|
|
25
|
+
error_reason: z.string().optional(),
|
|
26
|
+
has_fingerprint: z.boolean().optional(),
|
|
27
|
+
software: z.string().optional(),
|
|
28
|
+
}).transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
"error_code": "errorCode",
|
|
31
|
+
"error_reason": "errorReason",
|
|
32
|
+
"has_fingerprint": "hasFingerprint",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function stunBindingErrorResponseFromJSON(
|
|
37
|
+
jsonString: string,
|
|
38
|
+
): SafeParseResult<StunBindingErrorResponse, SDKValidationError> {
|
|
39
|
+
return safeParse(
|
|
40
|
+
jsonString,
|
|
41
|
+
(x) => StunBindingErrorResponse$inboundSchema.parse(JSON.parse(x)),
|
|
42
|
+
`Failed to parse 'StunBindingErrorResponse' from JSON`,
|
|
43
|
+
);
|
|
44
|
+
}
|