@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,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type CursorOnTargetTakv = {
|
|
11
|
+
device?: string | undefined;
|
|
12
|
+
os?: string | undefined;
|
|
13
|
+
platform?: string | undefined;
|
|
14
|
+
version?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const CursorOnTargetTakv$inboundSchema: z.ZodType<
|
|
19
|
+
CursorOnTargetTakv,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
device: z.string().optional(),
|
|
24
|
+
os: z.string().optional(),
|
|
25
|
+
platform: z.string().optional(),
|
|
26
|
+
version: z.string().optional(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function cursorOnTargetTakvFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<CursorOnTargetTakv, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => CursorOnTargetTakv$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'CursorOnTargetTakv' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
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";
|
|
6
9
|
|
|
7
10
|
export type FieldValuePair = {
|
|
8
11
|
/**
|
|
@@ -15,6 +18,15 @@ export type FieldValuePair = {
|
|
|
15
18
|
value: string;
|
|
16
19
|
};
|
|
17
20
|
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const FieldValuePair$inboundSchema: z.ZodType<
|
|
23
|
+
FieldValuePair,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
field: z.string(),
|
|
28
|
+
value: z.string(),
|
|
29
|
+
});
|
|
18
30
|
/** @internal */
|
|
19
31
|
export type FieldValuePair$Outbound = {
|
|
20
32
|
field: string;
|
|
@@ -34,3 +46,12 @@ export const FieldValuePair$outboundSchema: z.ZodType<
|
|
|
34
46
|
export function fieldValuePairToJSON(fieldValuePair: FieldValuePair): string {
|
|
35
47
|
return JSON.stringify(FieldValuePair$outboundSchema.parse(fieldValuePair));
|
|
36
48
|
}
|
|
49
|
+
export function fieldValuePairFromJSON(
|
|
50
|
+
jsonString: string,
|
|
51
|
+
): SafeParseResult<FieldValuePair, SDKValidationError> {
|
|
52
|
+
return safeParse(
|
|
53
|
+
jsonString,
|
|
54
|
+
(x) => FieldValuePair$inboundSchema.parse(JSON.parse(x)),
|
|
55
|
+
`Failed to parse 'FieldValuePair' from JSON`,
|
|
56
|
+
);
|
|
57
|
+
}
|
|
@@ -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 { 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 Frps = {
|
|
12
|
+
error?: string | undefined;
|
|
13
|
+
runId?: string | undefined;
|
|
14
|
+
version?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const Frps$inboundSchema: z.ZodType<Frps, z.ZodTypeDef, unknown> = z
|
|
19
|
+
.object({
|
|
20
|
+
error: z.string().optional(),
|
|
21
|
+
run_id: z.string().optional(),
|
|
22
|
+
version: z.string().optional(),
|
|
23
|
+
}).transform((v) => {
|
|
24
|
+
return remap$(v, {
|
|
25
|
+
"run_id": "runId",
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function frpsFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<Frps, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => Frps$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'Frps' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -12,6 +12,12 @@ import { Greynoise, Greynoise$inboundSchema } from "./greynoise.js";
|
|
|
12
12
|
import { HostDns, HostDns$inboundSchema } from "./hostdns.js";
|
|
13
13
|
import { Label, Label$inboundSchema } from "./label.js";
|
|
14
14
|
import { Location, Location$inboundSchema } from "./location.js";
|
|
15
|
+
import {
|
|
16
|
+
NetworkClassification,
|
|
17
|
+
NetworkClassification$inboundSchema,
|
|
18
|
+
} from "./networkclassification.js";
|
|
19
|
+
import { Privacy, Privacy$inboundSchema } from "./privacy.js";
|
|
20
|
+
import { Reputation, Reputation$inboundSchema } from "./reputation.js";
|
|
15
21
|
import { Routing, Routing$inboundSchema } from "./routing.js";
|
|
16
22
|
import { Service, Service$inboundSchema } from "./service.js";
|
|
17
23
|
import { Whois, Whois$inboundSchema } from "./whois.js";
|
|
@@ -24,7 +30,16 @@ export type Host = {
|
|
|
24
30
|
ip?: string | undefined;
|
|
25
31
|
labels?: Array<Label> | null | undefined;
|
|
26
32
|
location?: Location | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Information about what type of network the host belongs to.
|
|
35
|
+
*/
|
|
36
|
+
network?: Array<NetworkClassification> | null | undefined;
|
|
27
37
|
operatingSystem?: Attribute | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Information about privacy services used by the IP, such as VPNs, Proxies, or Tor.
|
|
40
|
+
*/
|
|
41
|
+
privacy?: Array<Privacy> | null | undefined;
|
|
42
|
+
reputation?: Reputation | undefined;
|
|
28
43
|
serviceCount?: number | undefined;
|
|
29
44
|
services?: Array<Service> | null | undefined;
|
|
30
45
|
whois?: Whois | undefined;
|
|
@@ -40,7 +55,11 @@ export const Host$inboundSchema: z.ZodType<Host, z.ZodTypeDef, unknown> = z
|
|
|
40
55
|
ip: z.string().optional(),
|
|
41
56
|
labels: z.nullable(z.array(Label$inboundSchema)).optional(),
|
|
42
57
|
location: Location$inboundSchema.optional(),
|
|
58
|
+
network: z.nullable(z.array(NetworkClassification$inboundSchema))
|
|
59
|
+
.optional(),
|
|
43
60
|
operating_system: Attribute$inboundSchema.optional(),
|
|
61
|
+
privacy: z.nullable(z.array(Privacy$inboundSchema)).optional(),
|
|
62
|
+
reputation: Reputation$inboundSchema.optional(),
|
|
44
63
|
service_count: z.number().int().optional(),
|
|
45
64
|
services: z.nullable(z.array(Service$inboundSchema)).optional(),
|
|
46
65
|
whois: Whois$inboundSchema.optional(),
|
|
@@ -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 { 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
|
+
IcapOptionsResponse,
|
|
12
|
+
IcapOptionsResponse$inboundSchema,
|
|
13
|
+
} from "./icapoptionsresponse.js";
|
|
14
|
+
|
|
15
|
+
export type Icap = {
|
|
16
|
+
optionsResponse?: IcapOptionsResponse | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const Icap$inboundSchema: z.ZodType<Icap, z.ZodTypeDef, unknown> = z
|
|
21
|
+
.object({
|
|
22
|
+
options_response: IcapOptionsResponse$inboundSchema.optional(),
|
|
23
|
+
}).transform((v) => {
|
|
24
|
+
return remap$(v, {
|
|
25
|
+
"options_response": "optionsResponse",
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function icapFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<Icap, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => Icap$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'Icap' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 IcapOptionsResponse = {
|
|
12
|
+
allow204?: boolean | undefined;
|
|
13
|
+
icapVersion?: string | undefined;
|
|
14
|
+
istag?: string | undefined;
|
|
15
|
+
maxConnections?: number | undefined;
|
|
16
|
+
methods?: Array<string> | null | undefined;
|
|
17
|
+
optionsTtl?: number | undefined;
|
|
18
|
+
preview?: number | undefined;
|
|
19
|
+
serverHeader?: string | undefined;
|
|
20
|
+
service?: string | undefined;
|
|
21
|
+
serviceId?: string | undefined;
|
|
22
|
+
statusCode?: number | undefined;
|
|
23
|
+
statusText?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const IcapOptionsResponse$inboundSchema: z.ZodType<
|
|
28
|
+
IcapOptionsResponse,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
allow_204: z.boolean().optional(),
|
|
33
|
+
icap_version: z.string().optional(),
|
|
34
|
+
istag: z.string().optional(),
|
|
35
|
+
max_connections: z.number().int().optional(),
|
|
36
|
+
methods: z.nullable(z.array(z.string())).optional(),
|
|
37
|
+
options_ttl: z.number().int().optional(),
|
|
38
|
+
preview: z.number().int().optional(),
|
|
39
|
+
server_header: z.string().optional(),
|
|
40
|
+
service: z.string().optional(),
|
|
41
|
+
service_id: z.string().optional(),
|
|
42
|
+
status_code: z.number().int().optional(),
|
|
43
|
+
status_text: z.string().optional(),
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return remap$(v, {
|
|
46
|
+
"allow_204": "allow204",
|
|
47
|
+
"icap_version": "icapVersion",
|
|
48
|
+
"max_connections": "maxConnections",
|
|
49
|
+
"options_ttl": "optionsTtl",
|
|
50
|
+
"server_header": "serverHeader",
|
|
51
|
+
"service_id": "serviceId",
|
|
52
|
+
"status_code": "statusCode",
|
|
53
|
+
"status_text": "statusText",
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export function icapOptionsResponseFromJSON(
|
|
58
|
+
jsonString: string,
|
|
59
|
+
): SafeParseResult<IcapOptionsResponse, SDKValidationError> {
|
|
60
|
+
return safeParse(
|
|
61
|
+
jsonString,
|
|
62
|
+
(x) => IcapOptionsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
63
|
+
`Failed to parse 'IcapOptionsResponse' from JSON`,
|
|
64
|
+
);
|
|
65
|
+
}
|
|
@@ -8,6 +8,7 @@ export * from "./amqp.js";
|
|
|
8
8
|
export * from "./amqpprotocol.js";
|
|
9
9
|
export * from "./amqpversion.js";
|
|
10
10
|
export * from "./analyticscapabilities.js";
|
|
11
|
+
export * from "./anermacfforth.js";
|
|
11
12
|
export * from "./anyconnect.js";
|
|
12
13
|
export * from "./assetcertificatelistinputbody.js";
|
|
13
14
|
export * from "./assethostlistinputbody.js";
|
|
@@ -23,6 +24,10 @@ export * from "./bacnet.js";
|
|
|
23
24
|
export * from "./basicconstraints.js";
|
|
24
25
|
export * from "./cabforganizationid.js";
|
|
25
26
|
export * from "./capabilities.js";
|
|
27
|
+
export * from "./censeyejob.js";
|
|
28
|
+
export * from "./censeyeresult.js";
|
|
29
|
+
export * from "./censeyeresultsresponse.js";
|
|
30
|
+
export * from "./censeyetarget.js";
|
|
26
31
|
export * from "./certificate.js";
|
|
27
32
|
export * from "./certificateasset.js";
|
|
28
33
|
export * from "./certificateextensions.js";
|
|
@@ -58,6 +63,7 @@ export * from "./coordinates.js";
|
|
|
58
63
|
export * from "./countcondition.js";
|
|
59
64
|
export * from "./cpe.js";
|
|
60
65
|
export * from "./cpelifecycle.js";
|
|
66
|
+
export * from "./createcenseyejobinputbody.js";
|
|
61
67
|
export * from "./creditexpiration.js";
|
|
62
68
|
export * from "./creditusagereport.js";
|
|
63
69
|
export * from "./creditusagereportperiod.js";
|
|
@@ -68,6 +74,11 @@ export * from "./crudupdateinputbody.js";
|
|
|
68
74
|
export * from "./cryptsetup.js";
|
|
69
75
|
export * from "./ct.js";
|
|
70
76
|
export * from "./ctrecord.js";
|
|
77
|
+
export * from "./cursorontarget.js";
|
|
78
|
+
export * from "./cursorontargetevent.js";
|
|
79
|
+
export * from "./cursorontargetpoint.js";
|
|
80
|
+
export * from "./cursorontargetstatus.js";
|
|
81
|
+
export * from "./cursorontargettakv.js";
|
|
71
82
|
export * from "./cvss.js";
|
|
72
83
|
export * from "./cvsscomponents.js";
|
|
73
84
|
export * from "./cvssv4.js";
|
|
@@ -156,6 +167,7 @@ export * from "./floatvalue.js";
|
|
|
156
167
|
export * from "./fortigate.js";
|
|
157
168
|
export * from "./forwarddnsresolved.js";
|
|
158
169
|
export * from "./fox.js";
|
|
170
|
+
export * from "./frps.js";
|
|
159
171
|
export * from "./ftp.js";
|
|
160
172
|
export * from "./gearman.js";
|
|
161
173
|
export * from "./gemini.js";
|
|
@@ -185,6 +197,8 @@ export * from "./httpfavicon.js";
|
|
|
185
197
|
export * from "./httpredirectchainlink.js";
|
|
186
198
|
export * from "./httprepeatedheaders.js";
|
|
187
199
|
export * from "./ibmnje.js";
|
|
200
|
+
export * from "./icap.js";
|
|
201
|
+
export * from "./icapoptionsresponse.js";
|
|
188
202
|
export * from "./ike.js";
|
|
189
203
|
export * from "./ikev1.js";
|
|
190
204
|
export * from "./ikev2.js";
|
|
@@ -290,8 +304,10 @@ export * from "./natsio.js";
|
|
|
290
304
|
export * from "./nbd.js";
|
|
291
305
|
export * from "./network.js";
|
|
292
306
|
export * from "./networkcapabilities.js";
|
|
307
|
+
export * from "./networkclassification.js";
|
|
293
308
|
export * from "./networklog.js";
|
|
294
309
|
export * from "./networklogresourceinfo.js";
|
|
310
|
+
export * from "./networkmobileinfo.js";
|
|
295
311
|
export * from "./nfsmountd.js";
|
|
296
312
|
export * from "./nmea.js";
|
|
297
313
|
export * from "./nmeanmeamessage.js";
|
|
@@ -347,6 +363,10 @@ export * from "./pprof.js";
|
|
|
347
363
|
export * from "./pptp.js";
|
|
348
364
|
export * from "./pptpresponseinfo.js";
|
|
349
365
|
export * from "./pptpversion.js";
|
|
366
|
+
export * from "./privacy.js";
|
|
367
|
+
export * from "./privacytorinfo.js";
|
|
368
|
+
export * from "./privacytorinforelay.js";
|
|
369
|
+
export * from "./privacytorinforelayexitpolicysummary.js";
|
|
350
370
|
export * from "./profinetcm.js";
|
|
351
371
|
export * from "./prometheus.js";
|
|
352
372
|
export * from "./prometheusmetricfamily.js";
|
|
@@ -383,6 +403,13 @@ export * from "./redlionweb.js";
|
|
|
383
403
|
export * from "./reject.js";
|
|
384
404
|
export * from "./replaycapabilities.js";
|
|
385
405
|
export * from "./representativeinfo.js";
|
|
406
|
+
export * from "./reputation.js";
|
|
407
|
+
export * from "./reputationevidence.js";
|
|
408
|
+
export * from "./reputationevidenceexternalsignal.js";
|
|
409
|
+
export * from "./reputationevidencefieldvalue.js";
|
|
410
|
+
export * from "./reputationevidencethreat.js";
|
|
411
|
+
export * from "./responseenvelopecenseyejob.js";
|
|
412
|
+
export * from "./responseenvelopecenseyeresultsresponse.js";
|
|
386
413
|
export * from "./responseenvelopecertificateasset.js";
|
|
387
414
|
export * from "./responseenvelopecollection.js";
|
|
388
415
|
export * from "./responseenvelopecollectioneventsresponse.js";
|
|
@@ -401,6 +428,7 @@ export * from "./responseenvelopeorganizationdetails.js";
|
|
|
401
428
|
export * from "./responseenvelopeorganizationmemberslist.js";
|
|
402
429
|
export * from "./responseenvelopesearchaggregateresponse.js";
|
|
403
430
|
export * from "./responseenvelopesearchqueryresponse.js";
|
|
431
|
+
export * from "./responseenvelopeservicesonhostresponse.js";
|
|
404
432
|
export * from "./responseenvelopethreatslistresponse.js";
|
|
405
433
|
export * from "./responseenvelopetrackedscan.js";
|
|
406
434
|
export * from "./responseenvelopeusercredits.js";
|
|
@@ -434,6 +462,9 @@ export * from "./rustdeskrendezvousconfigupdate.js";
|
|
|
434
462
|
export * from "./rustdeskrendezvouskeyexchange.js";
|
|
435
463
|
export * from "./rustdeskrendezvoustestnatresponse.js";
|
|
436
464
|
export * from "./s7.js";
|
|
465
|
+
export * from "./sapient.js";
|
|
466
|
+
export * from "./sapienterror.js";
|
|
467
|
+
export * from "./sapientregistrationack.js";
|
|
437
468
|
export * from "./saprouter.js";
|
|
438
469
|
export * from "./saprouterclientinfo.js";
|
|
439
470
|
export * from "./saprouterrouterinfo.js";
|
|
@@ -461,8 +492,10 @@ export * from "./serverconfig.js";
|
|
|
461
492
|
export * from "./serversync.js";
|
|
462
493
|
export * from "./service.js";
|
|
463
494
|
export * from "./serviceid.js";
|
|
495
|
+
export * from "./serviceonhostrange.js";
|
|
464
496
|
export * from "./servicescan.js";
|
|
465
497
|
export * from "./servicescanned.js";
|
|
498
|
+
export * from "./servicesonhostresponse.js";
|
|
466
499
|
export * from "./sevendaystodie.js";
|
|
467
500
|
export * from "./signature.js";
|
|
468
501
|
export * from "./signedcertificatetimestamp.js";
|
|
@@ -494,6 +527,13 @@ export * from "./sshkexinitmessage.js";
|
|
|
494
527
|
export * from "./sshserverhostkey.js";
|
|
495
528
|
export * from "./status.js";
|
|
496
529
|
export * from "./steam.js";
|
|
530
|
+
export * from "./stun.js";
|
|
531
|
+
export * from "./stunbindingerrorresponse.js";
|
|
532
|
+
export * from "./stunbindingsuccessresponse.js";
|
|
533
|
+
export * from "./stunmappedaddress.js";
|
|
534
|
+
export * from "./stunturn.js";
|
|
535
|
+
export * from "./stunturnallocateerrorresponse.js";
|
|
536
|
+
export * from "./stunturnallocatesuccessresponse.js";
|
|
497
537
|
export * from "./subjectkeyinfo.js";
|
|
498
538
|
export * from "./systemcapabilities.js";
|
|
499
539
|
export * from "./tacacsplus.js";
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
NetworkMobileInfo,
|
|
12
|
+
NetworkMobileInfo$inboundSchema,
|
|
13
|
+
} from "./networkmobileinfo.js";
|
|
14
|
+
|
|
15
|
+
export type NetworkClassification = {
|
|
16
|
+
/**
|
|
17
|
+
* Whether the host belongs to an Internet hosting service provider.
|
|
18
|
+
*/
|
|
19
|
+
hosting?: boolean | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the host belongs to a mobile network.
|
|
22
|
+
*/
|
|
23
|
+
mobile?: boolean | undefined;
|
|
24
|
+
mobileInfo?: NetworkMobileInfo | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the host belongs to a statellite network.
|
|
27
|
+
*/
|
|
28
|
+
satellite?: boolean | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* The source of the data.
|
|
31
|
+
*/
|
|
32
|
+
source?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const NetworkClassification$inboundSchema: z.ZodType<
|
|
37
|
+
NetworkClassification,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
unknown
|
|
40
|
+
> = z.object({
|
|
41
|
+
hosting: z.boolean().optional(),
|
|
42
|
+
mobile: z.boolean().optional(),
|
|
43
|
+
mobile_info: NetworkMobileInfo$inboundSchema.optional(),
|
|
44
|
+
satellite: z.boolean().optional(),
|
|
45
|
+
source: z.string().optional(),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
"mobile_info": "mobileInfo",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function networkClassificationFromJSON(
|
|
53
|
+
jsonString: string,
|
|
54
|
+
): SafeParseResult<NetworkClassification, SDKValidationError> {
|
|
55
|
+
return safeParse(
|
|
56
|
+
jsonString,
|
|
57
|
+
(x) => NetworkClassification$inboundSchema.parse(JSON.parse(x)),
|
|
58
|
+
`Failed to parse 'NetworkClassification' from JSON`,
|
|
59
|
+
);
|
|
60
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 NetworkMobileInfo = {
|
|
12
|
+
/**
|
|
13
|
+
* The name of the mobile carrier.
|
|
14
|
+
*/
|
|
15
|
+
carrierName?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The Mobile Country Code, identifying the country of the mobile network.
|
|
18
|
+
*/
|
|
19
|
+
mcc?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* The Mobile Network Code, identifying the specific carrier network.
|
|
22
|
+
*/
|
|
23
|
+
mnc?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const NetworkMobileInfo$inboundSchema: z.ZodType<
|
|
28
|
+
NetworkMobileInfo,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
carrier_name: z.string().optional(),
|
|
33
|
+
mcc: z.string().optional(),
|
|
34
|
+
mnc: z.string().optional(),
|
|
35
|
+
}).transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
"carrier_name": "carrierName",
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export function networkMobileInfoFromJSON(
|
|
42
|
+
jsonString: string,
|
|
43
|
+
): SafeParseResult<NetworkMobileInfo, SDKValidationError> {
|
|
44
|
+
return safeParse(
|
|
45
|
+
jsonString,
|
|
46
|
+
(x) => NetworkMobileInfo$inboundSchema.parse(JSON.parse(x)),
|
|
47
|
+
`Failed to parse 'NetworkMobileInfo' from JSON`,
|
|
48
|
+
);
|
|
49
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { 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
|
+
PrivacyTorInfo,
|
|
12
|
+
PrivacyTorInfo$inboundSchema,
|
|
13
|
+
} from "./privacytorinfo.js";
|
|
14
|
+
|
|
15
|
+
export type Privacy = {
|
|
16
|
+
/**
|
|
17
|
+
* Whether the host uses any kind of privacy service.
|
|
18
|
+
*/
|
|
19
|
+
anonymous?: boolean | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the host is an open web proxy.
|
|
22
|
+
*/
|
|
23
|
+
proxy?: boolean | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the host is a location-preserving anonymous relay service, like iCloud Private Relay..
|
|
26
|
+
*/
|
|
27
|
+
relay?: boolean | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The name of the privacy service providers detected.
|
|
30
|
+
*/
|
|
31
|
+
serviceProvider?: Array<string> | null | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The source of the data.
|
|
34
|
+
*/
|
|
35
|
+
source?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the host is a Tor exit node.
|
|
38
|
+
*/
|
|
39
|
+
tor?: boolean | undefined;
|
|
40
|
+
torInfo?: PrivacyTorInfo | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Whether the host is a VPN service exit node IP address.
|
|
43
|
+
*/
|
|
44
|
+
vpn?: boolean | undefined;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const Privacy$inboundSchema: z.ZodType<Privacy, z.ZodTypeDef, unknown> =
|
|
49
|
+
z.object({
|
|
50
|
+
anonymous: z.boolean().optional(),
|
|
51
|
+
proxy: z.boolean().optional(),
|
|
52
|
+
relay: z.boolean().optional(),
|
|
53
|
+
service_provider: z.nullable(z.array(z.string())).optional(),
|
|
54
|
+
source: z.string().optional(),
|
|
55
|
+
tor: z.boolean().optional(),
|
|
56
|
+
tor_info: PrivacyTorInfo$inboundSchema.optional(),
|
|
57
|
+
vpn: z.boolean().optional(),
|
|
58
|
+
}).transform((v) => {
|
|
59
|
+
return remap$(v, {
|
|
60
|
+
"service_provider": "serviceProvider",
|
|
61
|
+
"tor_info": "torInfo",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export function privacyFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<Privacy, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => Privacy$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'Privacy' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
PrivacyTorInfoRelay,
|
|
11
|
+
PrivacyTorInfoRelay$inboundSchema,
|
|
12
|
+
} from "./privacytorinforelay.js";
|
|
13
|
+
|
|
14
|
+
export type PrivacyTorInfo = {
|
|
15
|
+
relays?: Array<PrivacyTorInfoRelay> | null | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const PrivacyTorInfo$inboundSchema: z.ZodType<
|
|
20
|
+
PrivacyTorInfo,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
relays: z.nullable(z.array(PrivacyTorInfoRelay$inboundSchema)).optional(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function privacyTorInfoFromJSON(
|
|
28
|
+
jsonString: string,
|
|
29
|
+
): SafeParseResult<PrivacyTorInfo, SDKValidationError> {
|
|
30
|
+
return safeParse(
|
|
31
|
+
jsonString,
|
|
32
|
+
(x) => PrivacyTorInfo$inboundSchema.parse(JSON.parse(x)),
|
|
33
|
+
`Failed to parse 'PrivacyTorInfo' from JSON`,
|
|
34
|
+
);
|
|
35
|
+
}
|