@censys/platform-sdk 0.9.1 → 0.10.1
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 +13 -7
- package/docs/sdks/accountmanagement/README.md +14 -4
- package/docs/sdks/collections/README.md +24 -8
- package/docs/sdks/globaldata/README.md +118 -14
- package/docs/sdks/threathunting/README.md +10 -5
- package/funcs/accountManagementGetMemberCreditUsage.js +3 -1
- package/funcs/accountManagementGetMemberCreditUsage.js.map +1 -1
- package/funcs/accountManagementGetOrganizationCreditUsage.js +3 -1
- package/funcs/accountManagementGetOrganizationCreditUsage.js.map +1 -1
- package/funcs/accountManagementGetOrganizationCredits.js +3 -1
- package/funcs/accountManagementGetOrganizationCredits.js.map +1 -1
- package/funcs/accountManagementGetOrganizationDetails.js +3 -1
- package/funcs/accountManagementGetOrganizationDetails.js.map +1 -1
- package/funcs/accountManagementGetUserCredits.js +3 -1
- package/funcs/accountManagementGetUserCredits.js.map +1 -1
- package/funcs/accountManagementGetUserCreditsUsage.js +4 -2
- package/funcs/accountManagementGetUserCreditsUsage.js.map +1 -1
- package/funcs/accountManagementInviteUserToOrganization.js +4 -2
- package/funcs/accountManagementInviteUserToOrganization.js.map +1 -1
- package/funcs/accountManagementListOrganizationMembers.js +4 -2
- package/funcs/accountManagementListOrganizationMembers.js.map +1 -1
- package/funcs/accountManagementRemoveOrganizationMember.js +3 -1
- package/funcs/accountManagementRemoveOrganizationMember.js.map +1 -1
- package/funcs/accountManagementUpdateOrganizationMember.js +4 -2
- package/funcs/accountManagementUpdateOrganizationMember.js.map +1 -1
- package/funcs/collectionsAggregate.js +4 -2
- package/funcs/collectionsAggregate.js.map +1 -1
- package/funcs/collectionsCreate.js +4 -2
- package/funcs/collectionsCreate.js.map +1 -1
- package/funcs/collectionsDelete.js +4 -2
- package/funcs/collectionsDelete.js.map +1 -1
- package/funcs/collectionsGet.js +4 -2
- package/funcs/collectionsGet.js.map +1 -1
- package/funcs/collectionsList.js +5 -2
- package/funcs/collectionsList.js.map +1 -1
- package/funcs/collectionsListEvents.js +4 -2
- package/funcs/collectionsListEvents.js.map +1 -1
- package/funcs/collectionsSearch.js +4 -2
- package/funcs/collectionsSearch.js.map +1 -1
- package/funcs/collectionsUpdate.js +4 -2
- package/funcs/collectionsUpdate.js.map +1 -1
- package/funcs/globalDataAggregate.js +4 -2
- package/funcs/globalDataAggregate.js.map +1 -1
- package/funcs/globalDataConvertLegacySearchQueries.js +2 -2
- package/funcs/globalDataConvertLegacySearchQueries.js.map +1 -1
- package/funcs/globalDataCreateTrackedScan.js +4 -2
- package/funcs/globalDataCreateTrackedScan.js.map +1 -1
- package/funcs/globalDataGetCertificate.js +4 -2
- package/funcs/globalDataGetCertificate.js.map +1 -1
- package/funcs/globalDataGetCertificateRaw.js +4 -2
- package/funcs/globalDataGetCertificateRaw.js.map +1 -1
- package/funcs/globalDataGetCertificates.js +4 -2
- package/funcs/globalDataGetCertificates.js.map +1 -1
- package/funcs/globalDataGetCertificatesRaw.js +4 -2
- package/funcs/globalDataGetCertificatesRaw.js.map +1 -1
- package/funcs/globalDataGetHost.js +4 -2
- package/funcs/globalDataGetHost.js.map +1 -1
- package/funcs/globalDataGetHostTimeline.js +4 -2
- package/funcs/globalDataGetHostTimeline.js.map +1 -1
- package/funcs/globalDataGetHosts.js +4 -2
- package/funcs/globalDataGetHosts.js.map +1 -1
- package/funcs/globalDataGetTrackedScan.js +4 -2
- package/funcs/globalDataGetTrackedScan.js.map +1 -1
- package/funcs/globalDataGetWebProperties.js +4 -2
- package/funcs/globalDataGetWebProperties.js.map +1 -1
- package/funcs/globalDataGetWebProperty.js +4 -2
- 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/globalDataSearch.js +4 -2
- package/funcs/globalDataSearch.js.map +1 -1
- package/funcs/threatHuntingCreateTrackedScan.js +4 -2
- package/funcs/threatHuntingCreateTrackedScan.js.map +1 -1
- package/funcs/threatHuntingGetHostObservationsWithCertificate.js +4 -2
- package/funcs/threatHuntingGetHostObservationsWithCertificate.js.map +1 -1
- package/funcs/threatHuntingGetTrackedScanThreatHunting.js +4 -2
- package/funcs/threatHuntingGetTrackedScanThreatHunting.js.map +1 -1
- package/funcs/threatHuntingListThreats.js +4 -2
- package/funcs/threatHuntingListThreats.js.map +1 -1
- package/funcs/threatHuntingValueCounts.js +4 -2
- package/funcs/threatHuntingValueCounts.js.map +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/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/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/flashsocketpolicy.d.ts +13 -0
- package/models/components/flashsocketpolicy.d.ts.map +1 -0
- package/models/components/flashsocketpolicy.js +59 -0
- package/models/components/flashsocketpolicy.js.map +1 -0
- package/models/components/flashsocketpolicyallowaccessfrom.d.ts +12 -0
- package/models/components/flashsocketpolicyallowaccessfrom.d.ts.map +1 -0
- package/models/components/flashsocketpolicyallowaccessfrom.js +57 -0
- package/models/components/flashsocketpolicyallowaccessfrom.js.map +1 -0
- 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/gemini.d.ts +13 -0
- package/models/components/gemini.d.ts.map +1 -0
- package/models/components/gemini.js +60 -0
- package/models/components/gemini.js.map +1 -0
- package/models/components/greynoise.d.ts +22 -0
- package/models/components/greynoise.d.ts.map +1 -0
- package/models/components/greynoise.js +53 -0
- package/models/components/greynoise.js.map +1 -0
- package/models/components/greynoisetag.d.ts +13 -0
- package/models/components/greynoisetag.d.ts.map +1 -0
- package/models/components/greynoisetag.js +50 -0
- package/models/components/greynoisetag.js.map +1 -0
- package/models/components/host.d.ts +2 -0
- package/models/components/host.d.ts.map +1 -1
- package/models/components/host.js +2 -0
- package/models/components/host.js.map +1 -1
- package/models/components/httpredirectchainlink.d.ts +1 -0
- package/models/components/httpredirectchainlink.d.ts.map +1 -1
- package/models/components/httpredirectchainlink.js +1 -0
- package/models/components/httpredirectchainlink.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 +37 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +37 -0
- package/models/components/index.js.map +1 -1
- package/models/components/mavlink.d.ts +12 -0
- package/models/components/mavlink.d.ts.map +1 -0
- package/models/components/mavlink.js +57 -0
- package/models/components/mavlink.js.map +1 -0
- package/models/components/mavlinkframe.d.ts +15 -0
- package/models/components/mavlinkframe.d.ts.map +1 -0
- package/models/components/mavlinkframe.js +63 -0
- package/models/components/mavlinkframe.js.map +1 -0
- package/models/components/melsec.d.ts +10 -0
- package/models/components/melsec.d.ts.map +1 -0
- package/models/components/melsec.js +56 -0
- package/models/components/melsec.js.map +1 -0
- package/models/components/memberlist.d.ts +15 -0
- package/models/components/memberlist.d.ts.map +1 -0
- package/models/components/memberlist.js +62 -0
- package/models/components/memberlist.js.map +1 -0
- package/models/components/memberlistnodeinfo.d.ts +16 -0
- package/models/components/memberlistnodeinfo.d.ts.map +1 -0
- package/models/components/memberlistnodeinfo.js +62 -0
- package/models/components/memberlistnodeinfo.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/routerosapi.d.ts +12 -0
- package/models/components/routerosapi.d.ts.map +1 -0
- package/models/components/routerosapi.js +58 -0
- package/models/components/routerosapi.js.map +1 -0
- package/models/components/rustdeskheartbeat.d.ts +12 -0
- package/models/components/rustdeskheartbeat.d.ts.map +1 -0
- package/models/components/rustdeskheartbeat.js +59 -0
- package/models/components/rustdeskheartbeat.js.map +1 -0
- package/models/components/rustdeskheartbeatregisterpeerresponse.d.ts +10 -0
- package/models/components/rustdeskheartbeatregisterpeerresponse.d.ts.map +1 -0
- package/models/components/rustdeskheartbeatregisterpeerresponse.js +55 -0
- package/models/components/rustdeskheartbeatregisterpeerresponse.js.map +1 -0
- package/models/components/rustdeskrelay.d.ts +10 -0
- package/models/components/rustdeskrelay.d.ts.map +1 -0
- package/models/components/rustdeskrelay.js +55 -0
- package/models/components/rustdeskrelay.js.map +1 -0
- package/models/components/rustdeskrendezvous.d.ts +14 -0
- package/models/components/rustdeskrendezvous.d.ts.map +1 -0
- package/models/components/rustdeskrendezvous.js +61 -0
- package/models/components/rustdeskrendezvous.js.map +1 -0
- package/models/components/rustdeskrendezvousconfigupdate.d.ts +11 -0
- package/models/components/rustdeskrendezvousconfigupdate.d.ts.map +1 -0
- package/models/components/rustdeskrendezvousconfigupdate.js +56 -0
- package/models/components/rustdeskrendezvousconfigupdate.js.map +1 -0
- package/models/components/rustdeskrendezvouskeyexchange.d.ts +10 -0
- package/models/components/rustdeskrendezvouskeyexchange.d.ts.map +1 -0
- package/models/components/rustdeskrendezvouskeyexchange.js +50 -0
- package/models/components/rustdeskrendezvouskeyexchange.js.map +1 -0
- package/models/components/rustdeskrendezvoustestnatresponse.d.ts +12 -0
- package/models/components/rustdeskrendezvoustestnatresponse.d.ts.map +1 -0
- package/models/components/rustdeskrendezvoustestnatresponse.js +57 -0
- package/models/components/rustdeskrendezvoustestnatresponse.js.map +1 -0
- package/models/components/screenshot.d.ts +1 -0
- package/models/components/screenshot.d.ts.map +1 -1
- package/models/components/screenshot.js +1 -0
- package/models/components/screenshot.js.map +1 -1
- package/models/components/searchqueryinputbody.d.ts +1 -1
- package/models/components/service.d.ts +28 -0
- package/models/components/service.d.ts.map +1 -1
- package/models/components/service.js +35 -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 +28 -0
- package/models/components/servicescan.d.ts.map +1 -1
- package/models/components/servicescan.js +35 -0
- package/models/components/servicescan.js.map +1 -1
- package/models/components/servicesonhostresponse.d.ts +12 -0
- package/models/components/servicesonhostresponse.d.ts.map +1 -0
- package/models/components/servicesonhostresponse.js +58 -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 +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -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/package.json +3 -3
- 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/src/funcs/accountManagementGetMemberCreditUsage.ts +4 -1
- package/src/funcs/accountManagementGetOrganizationCreditUsage.ts +4 -1
- package/src/funcs/accountManagementGetOrganizationCredits.ts +4 -1
- package/src/funcs/accountManagementGetOrganizationDetails.ts +4 -1
- package/src/funcs/accountManagementGetUserCredits.ts +4 -1
- package/src/funcs/accountManagementGetUserCreditsUsage.ts +5 -2
- package/src/funcs/accountManagementInviteUserToOrganization.ts +5 -2
- package/src/funcs/accountManagementListOrganizationMembers.ts +5 -2
- package/src/funcs/accountManagementRemoveOrganizationMember.ts +4 -1
- package/src/funcs/accountManagementUpdateOrganizationMember.ts +5 -2
- package/src/funcs/collectionsAggregate.ts +5 -2
- package/src/funcs/collectionsCreate.ts +5 -2
- package/src/funcs/collectionsDelete.ts +5 -2
- package/src/funcs/collectionsGet.ts +5 -2
- package/src/funcs/collectionsList.ts +6 -2
- package/src/funcs/collectionsListEvents.ts +5 -2
- package/src/funcs/collectionsSearch.ts +5 -2
- package/src/funcs/collectionsUpdate.ts +5 -2
- package/src/funcs/globalDataAggregate.ts +5 -2
- package/src/funcs/globalDataConvertLegacySearchQueries.ts +2 -2
- package/src/funcs/globalDataCreateTrackedScan.ts +5 -2
- package/src/funcs/globalDataGetCertificate.ts +5 -2
- package/src/funcs/globalDataGetCertificateRaw.ts +5 -2
- package/src/funcs/globalDataGetCertificates.ts +5 -2
- package/src/funcs/globalDataGetCertificatesRaw.ts +5 -2
- package/src/funcs/globalDataGetHost.ts +5 -2
- package/src/funcs/globalDataGetHostTimeline.ts +5 -2
- package/src/funcs/globalDataGetHosts.ts +5 -2
- package/src/funcs/globalDataGetTrackedScan.ts +5 -2
- package/src/funcs/globalDataGetWebProperties.ts +5 -2
- package/src/funcs/globalDataGetWebProperty.ts +5 -2
- package/src/funcs/globalDataListServicesOnHost.ts +206 -0
- package/src/funcs/globalDataSearch.ts +5 -2
- package/src/funcs/threatHuntingCreateTrackedScan.ts +5 -2
- package/src/funcs/threatHuntingGetHostObservationsWithCertificate.ts +5 -2
- package/src/funcs/threatHuntingGetTrackedScanThreatHunting.ts +5 -2
- package/src/funcs/threatHuntingListThreats.ts +5 -2
- package/src/funcs/threatHuntingValueCounts.ts +5 -2
- package/src/lib/config.ts +4 -4
- package/src/models/components/anermacfforth.ts +45 -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/flashsocketpolicy.ts +47 -0
- package/src/models/components/flashsocketpolicyallowaccessfrom.ts +40 -0
- package/src/models/components/frps.ts +37 -0
- package/src/models/components/gemini.ts +40 -0
- package/src/models/components/greynoise.ts +45 -0
- package/src/models/components/greynoisetag.ts +34 -0
- package/src/models/components/host.ts +3 -0
- package/src/models/components/httpredirectchainlink.ts +2 -0
- package/src/models/components/icap.ts +37 -0
- package/src/models/components/icapoptionsresponse.ts +65 -0
- package/src/models/components/index.ts +37 -0
- package/src/models/components/mavlink.ts +36 -0
- package/src/models/components/mavlinkframe.ts +49 -0
- package/src/models/components/melsec.ts +33 -0
- package/src/models/components/memberlist.ts +50 -0
- package/src/models/components/memberlistnodeinfo.ts +49 -0
- package/src/models/components/responseenvelopeservicesonhostresponse.ts +36 -0
- package/src/models/components/routerosapi.ts +41 -0
- package/src/models/components/rustdeskheartbeat.ts +44 -0
- package/src/models/components/rustdeskheartbeatregisterpeerresponse.ts +37 -0
- package/src/models/components/rustdeskrelay.ts +36 -0
- package/src/models/components/rustdeskrendezvous.ts +50 -0
- package/src/models/components/rustdeskrendezvousconfigupdate.ts +38 -0
- package/src/models/components/rustdeskrendezvouskeyexchange.ts +31 -0
- package/src/models/components/rustdeskrendezvoustestnatresponse.ts +42 -0
- package/src/models/components/screenshot.ts +2 -0
- package/src/models/components/searchqueryinputbody.ts +1 -1
- package/src/models/components/service.ts +61 -0
- package/src/models/components/serviceonhostrange.ts +66 -0
- package/src/models/components/servicescan.ts +61 -0
- package/src/models/components/servicesonhostresponse.ts +43 -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 +1 -0
- package/src/models/operations/v3collectionscrudlist.ts +22 -0
- package/src/models/operations/v3globaldataserviceonhost.ts +173 -0
- package/src/sdk/globaldata.ts +18 -0
- 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
|
@@ -146,7 +146,7 @@ async function $do(
|
|
|
146
146
|
|
|
147
147
|
const doResult = await client._do(req, {
|
|
148
148
|
context,
|
|
149
|
-
errorCodes: ["401", "403", "4XX", "5XX"],
|
|
149
|
+
errorCodes: ["400", "401", "403", "422", "4XX", "500", "5XX"],
|
|
150
150
|
retryConfig: context.retryConfig,
|
|
151
151
|
retryCodes: context.retryCodes,
|
|
152
152
|
});
|
|
@@ -178,7 +178,10 @@ async function $do(
|
|
|
178
178
|
{ hdrs: true, key: "Result" },
|
|
179
179
|
),
|
|
180
180
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
181
|
-
M.jsonErr(403, errors.ErrorModel$inboundSchema, {
|
|
181
|
+
M.jsonErr([400, 403, 422], errors.ErrorModel$inboundSchema, {
|
|
182
|
+
ctype: "application/problem+json",
|
|
183
|
+
}),
|
|
184
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
182
185
|
ctype: "application/problem+json",
|
|
183
186
|
}),
|
|
184
187
|
M.fail("4XX"),
|
|
@@ -158,7 +158,7 @@ async function $do(
|
|
|
158
158
|
|
|
159
159
|
const doResult = await client._do(req, {
|
|
160
160
|
context,
|
|
161
|
-
errorCodes: ["401", "403", "4XX", "5XX"],
|
|
161
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
162
162
|
retryConfig: context.retryConfig,
|
|
163
163
|
retryCodes: context.retryCodes,
|
|
164
164
|
});
|
|
@@ -191,7 +191,10 @@ async function $do(
|
|
|
191
191
|
{ hdrs: true, key: "Result" },
|
|
192
192
|
),
|
|
193
193
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
194
|
-
M.jsonErr(403, errors.ErrorModel$inboundSchema, {
|
|
194
|
+
M.jsonErr([400, 403, 404], errors.ErrorModel$inboundSchema, {
|
|
195
|
+
ctype: "application/problem+json",
|
|
196
|
+
}),
|
|
197
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
195
198
|
ctype: "application/problem+json",
|
|
196
199
|
}),
|
|
197
200
|
M.fail("4XX"),
|
|
@@ -148,7 +148,7 @@ async function $do(
|
|
|
148
148
|
|
|
149
149
|
const doResult = await client._do(req, {
|
|
150
150
|
context,
|
|
151
|
-
errorCodes: ["401", "403", "404", "4XX", "5XX"],
|
|
151
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
152
152
|
retryConfig: context.retryConfig,
|
|
153
153
|
retryCodes: context.retryCodes,
|
|
154
154
|
});
|
|
@@ -180,7 +180,10 @@ async function $do(
|
|
|
180
180
|
key: "Result",
|
|
181
181
|
}),
|
|
182
182
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
183
|
-
M.jsonErr([403, 404], errors.ErrorModel$inboundSchema, {
|
|
183
|
+
M.jsonErr([400, 403, 404], errors.ErrorModel$inboundSchema, {
|
|
184
|
+
ctype: "application/problem+json",
|
|
185
|
+
}),
|
|
186
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
184
187
|
ctype: "application/problem+json",
|
|
185
188
|
}),
|
|
186
189
|
M.fail("4XX"),
|
|
@@ -142,7 +142,7 @@ async function $do(
|
|
|
142
142
|
|
|
143
143
|
const doResult = await client._do(req, {
|
|
144
144
|
context,
|
|
145
|
-
errorCodes: ["401", "403", "422", "4XX", "5XX"],
|
|
145
|
+
errorCodes: ["400", "401", "403", "422", "4XX", "500", "5XX"],
|
|
146
146
|
retryConfig: context.retryConfig,
|
|
147
147
|
retryCodes: context.retryCodes,
|
|
148
148
|
});
|
|
@@ -173,7 +173,10 @@ async function $do(
|
|
|
173
173
|
key: "Result",
|
|
174
174
|
}),
|
|
175
175
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
176
|
-
M.jsonErr([403, 422], errors.ErrorModel$inboundSchema, {
|
|
176
|
+
M.jsonErr([400, 403, 422], errors.ErrorModel$inboundSchema, {
|
|
177
|
+
ctype: "application/problem+json",
|
|
178
|
+
}),
|
|
179
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
177
180
|
ctype: "application/problem+json",
|
|
178
181
|
}),
|
|
179
182
|
M.fail("4XX"),
|
|
@@ -144,7 +144,7 @@ async function $do(
|
|
|
144
144
|
|
|
145
145
|
const doResult = await client._do(req, {
|
|
146
146
|
context,
|
|
147
|
-
errorCodes: ["401", "403", "4XX", "5XX"],
|
|
147
|
+
errorCodes: ["400", "401", "403", "422", "4XX", "500", "5XX"],
|
|
148
148
|
retryConfig: context.retryConfig,
|
|
149
149
|
retryCodes: context.retryCodes,
|
|
150
150
|
});
|
|
@@ -175,7 +175,10 @@ async function $do(
|
|
|
175
175
|
key: "Result",
|
|
176
176
|
}),
|
|
177
177
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
178
|
-
M.jsonErr(403, errors.ErrorModel$inboundSchema, {
|
|
178
|
+
M.jsonErr([400, 403, 422], errors.ErrorModel$inboundSchema, {
|
|
179
|
+
ctype: "application/problem+json",
|
|
180
|
+
}),
|
|
181
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
179
182
|
ctype: "application/problem+json",
|
|
180
183
|
}),
|
|
181
184
|
M.fail("4XX"),
|
package/src/lib/config.ts
CHANGED
|
@@ -65,9 +65,9 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
|
|
66
66
|
export const SDK_METADATA = {
|
|
67
67
|
language: "typescript",
|
|
68
|
-
openapiDocVersion: "1.0.
|
|
69
|
-
sdkVersion: "0.
|
|
70
|
-
genVersion: "2.
|
|
68
|
+
openapiDocVersion: "1.0.80",
|
|
69
|
+
sdkVersion: "0.10.1",
|
|
70
|
+
genVersion: "2.845.10",
|
|
71
71
|
userAgent:
|
|
72
|
-
"speakeasy-sdk/typescript 0.
|
|
72
|
+
"speakeasy-sdk/typescript 0.10.1 2.845.10 1.0.80 @censys/platform-sdk",
|
|
73
73
|
} as const;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 AnermaCfForth = {
|
|
12
|
+
ip?: string | undefined;
|
|
13
|
+
product?: string | undefined;
|
|
14
|
+
serialNumber?: string | undefined;
|
|
15
|
+
unitName?: string | undefined;
|
|
16
|
+
version?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const AnermaCfForth$inboundSchema: z.ZodType<
|
|
21
|
+
AnermaCfForth,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
ip: z.string().optional(),
|
|
26
|
+
product: z.string().optional(),
|
|
27
|
+
serial_number: z.string().optional(),
|
|
28
|
+
unit_name: z.string().optional(),
|
|
29
|
+
version: z.string().optional(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"serial_number": "serialNumber",
|
|
33
|
+
"unit_name": "unitName",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function anermaCfForthFromJSON(
|
|
38
|
+
jsonString: string,
|
|
39
|
+
): SafeParseResult<AnermaCfForth, SDKValidationError> {
|
|
40
|
+
return safeParse(
|
|
41
|
+
jsonString,
|
|
42
|
+
(x) => AnermaCfForth$inboundSchema.parse(JSON.parse(x)),
|
|
43
|
+
`Failed to parse 'AnermaCfForth' from JSON`,
|
|
44
|
+
);
|
|
45
|
+
}
|
|
@@ -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
|
+
CursorOnTargetEvent,
|
|
11
|
+
CursorOnTargetEvent$inboundSchema,
|
|
12
|
+
} from "./cursorontargetevent.js";
|
|
13
|
+
|
|
14
|
+
export type CursorOnTarget = {
|
|
15
|
+
events?: Array<CursorOnTargetEvent> | null | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const CursorOnTarget$inboundSchema: z.ZodType<
|
|
20
|
+
CursorOnTarget,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
events: z.nullable(z.array(CursorOnTargetEvent$inboundSchema)).optional(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function cursorOnTargetFromJSON(
|
|
28
|
+
jsonString: string,
|
|
29
|
+
): SafeParseResult<CursorOnTarget, SDKValidationError> {
|
|
30
|
+
return safeParse(
|
|
31
|
+
jsonString,
|
|
32
|
+
(x) => CursorOnTarget$inboundSchema.parse(JSON.parse(x)),
|
|
33
|
+
`Failed to parse 'CursorOnTarget' from JSON`,
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
CursorOnTargetPoint,
|
|
12
|
+
CursorOnTargetPoint$inboundSchema,
|
|
13
|
+
} from "./cursorontargetpoint.js";
|
|
14
|
+
import {
|
|
15
|
+
CursorOnTargetStatus,
|
|
16
|
+
CursorOnTargetStatus$inboundSchema,
|
|
17
|
+
} from "./cursorontargetstatus.js";
|
|
18
|
+
import {
|
|
19
|
+
CursorOnTargetTakv,
|
|
20
|
+
CursorOnTargetTakv$inboundSchema,
|
|
21
|
+
} from "./cursorontargettakv.js";
|
|
22
|
+
|
|
23
|
+
export type CursorOnTargetEvent = {
|
|
24
|
+
callsign?: string | undefined;
|
|
25
|
+
endpoint?: string | undefined;
|
|
26
|
+
how?: string | undefined;
|
|
27
|
+
point?: CursorOnTargetPoint | undefined;
|
|
28
|
+
stale?: string | undefined;
|
|
29
|
+
start?: string | undefined;
|
|
30
|
+
status?: CursorOnTargetStatus | undefined;
|
|
31
|
+
takv?: CursorOnTargetTakv | undefined;
|
|
32
|
+
time?: string | undefined;
|
|
33
|
+
type?: string | undefined;
|
|
34
|
+
uid?: string | undefined;
|
|
35
|
+
version?: string | undefined;
|
|
36
|
+
videoUrl?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const CursorOnTargetEvent$inboundSchema: z.ZodType<
|
|
41
|
+
CursorOnTargetEvent,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({
|
|
45
|
+
callsign: z.string().optional(),
|
|
46
|
+
endpoint: z.string().optional(),
|
|
47
|
+
how: z.string().optional(),
|
|
48
|
+
point: CursorOnTargetPoint$inboundSchema.optional(),
|
|
49
|
+
stale: z.string().optional(),
|
|
50
|
+
start: z.string().optional(),
|
|
51
|
+
status: CursorOnTargetStatus$inboundSchema.optional(),
|
|
52
|
+
takv: CursorOnTargetTakv$inboundSchema.optional(),
|
|
53
|
+
time: z.string().optional(),
|
|
54
|
+
type: z.string().optional(),
|
|
55
|
+
uid: z.string().optional(),
|
|
56
|
+
version: z.string().optional(),
|
|
57
|
+
video_url: z.string().optional(),
|
|
58
|
+
}).transform((v) => {
|
|
59
|
+
return remap$(v, {
|
|
60
|
+
"video_url": "videoUrl",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export function cursorOnTargetEventFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<CursorOnTargetEvent, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => CursorOnTargetEvent$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'CursorOnTargetEvent' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type CursorOnTargetPoint = {
|
|
11
|
+
ce?: number | undefined;
|
|
12
|
+
hae?: number | undefined;
|
|
13
|
+
lat?: number | undefined;
|
|
14
|
+
le?: number | undefined;
|
|
15
|
+
lon?: number | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const CursorOnTargetPoint$inboundSchema: z.ZodType<
|
|
20
|
+
CursorOnTargetPoint,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
ce: z.number().optional(),
|
|
25
|
+
hae: z.number().optional(),
|
|
26
|
+
lat: z.number().optional(),
|
|
27
|
+
le: z.number().optional(),
|
|
28
|
+
lon: z.number().optional(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export function cursorOnTargetPointFromJSON(
|
|
32
|
+
jsonString: string,
|
|
33
|
+
): SafeParseResult<CursorOnTargetPoint, SDKValidationError> {
|
|
34
|
+
return safeParse(
|
|
35
|
+
jsonString,
|
|
36
|
+
(x) => CursorOnTargetPoint$inboundSchema.parse(JSON.parse(x)),
|
|
37
|
+
`Failed to parse 'CursorOnTargetPoint' from JSON`,
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 CursorOnTargetStatus = {
|
|
11
|
+
battery?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const CursorOnTargetStatus$inboundSchema: z.ZodType<
|
|
16
|
+
CursorOnTargetStatus,
|
|
17
|
+
z.ZodTypeDef,
|
|
18
|
+
unknown
|
|
19
|
+
> = z.object({
|
|
20
|
+
battery: z.string().optional(),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export function cursorOnTargetStatusFromJSON(
|
|
24
|
+
jsonString: string,
|
|
25
|
+
): SafeParseResult<CursorOnTargetStatus, SDKValidationError> {
|
|
26
|
+
return safeParse(
|
|
27
|
+
jsonString,
|
|
28
|
+
(x) => CursorOnTargetStatus$inboundSchema.parse(JSON.parse(x)),
|
|
29
|
+
`Failed to parse 'CursorOnTargetStatus' from JSON`,
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { 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
|
+
FlashSocketPolicyAllowAccessFrom,
|
|
12
|
+
FlashSocketPolicyAllowAccessFrom$inboundSchema,
|
|
13
|
+
} from "./flashsocketpolicyallowaccessfrom.js";
|
|
14
|
+
|
|
15
|
+
export type FlashSocketPolicy = {
|
|
16
|
+
allowAccessFrom?: Array<FlashSocketPolicyAllowAccessFrom> | null | undefined;
|
|
17
|
+
policy?: string | undefined;
|
|
18
|
+
siteControl?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const FlashSocketPolicy$inboundSchema: z.ZodType<
|
|
23
|
+
FlashSocketPolicy,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
allow_access_from: z.nullable(
|
|
28
|
+
z.array(FlashSocketPolicyAllowAccessFrom$inboundSchema),
|
|
29
|
+
).optional(),
|
|
30
|
+
policy: z.string().optional(),
|
|
31
|
+
site_control: z.string().optional(),
|
|
32
|
+
}).transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"allow_access_from": "allowAccessFrom",
|
|
35
|
+
"site_control": "siteControl",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function flashSocketPolicyFromJSON(
|
|
40
|
+
jsonString: string,
|
|
41
|
+
): SafeParseResult<FlashSocketPolicy, SDKValidationError> {
|
|
42
|
+
return safeParse(
|
|
43
|
+
jsonString,
|
|
44
|
+
(x) => FlashSocketPolicy$inboundSchema.parse(JSON.parse(x)),
|
|
45
|
+
`Failed to parse 'FlashSocketPolicy' from JSON`,
|
|
46
|
+
);
|
|
47
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { 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 FlashSocketPolicyAllowAccessFrom = {
|
|
12
|
+
domain?: string | undefined;
|
|
13
|
+
secure?: boolean | undefined;
|
|
14
|
+
toPorts?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const FlashSocketPolicyAllowAccessFrom$inboundSchema: z.ZodType<
|
|
19
|
+
FlashSocketPolicyAllowAccessFrom,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
domain: z.string().optional(),
|
|
24
|
+
secure: z.boolean().optional(),
|
|
25
|
+
to_ports: z.string().optional(),
|
|
26
|
+
}).transform((v) => {
|
|
27
|
+
return remap$(v, {
|
|
28
|
+
"to_ports": "toPorts",
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export function flashSocketPolicyAllowAccessFromFromJSON(
|
|
33
|
+
jsonString: string,
|
|
34
|
+
): SafeParseResult<FlashSocketPolicyAllowAccessFrom, SDKValidationError> {
|
|
35
|
+
return safeParse(
|
|
36
|
+
jsonString,
|
|
37
|
+
(x) => FlashSocketPolicyAllowAccessFrom$inboundSchema.parse(JSON.parse(x)),
|
|
38
|
+
`Failed to parse 'FlashSocketPolicyAllowAccessFrom' from JSON`,
|
|
39
|
+
);
|
|
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 { 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
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { 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 Gemini = {
|
|
12
|
+
body?: string | undefined;
|
|
13
|
+
clientCertRequired?: boolean | undefined;
|
|
14
|
+
meta?: string | undefined;
|
|
15
|
+
statusCode?: number | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const Gemini$inboundSchema: z.ZodType<Gemini, z.ZodTypeDef, unknown> = z
|
|
20
|
+
.object({
|
|
21
|
+
body: z.string().optional(),
|
|
22
|
+
client_cert_required: z.boolean().optional(),
|
|
23
|
+
meta: z.string().optional(),
|
|
24
|
+
status_code: z.number().int().optional(),
|
|
25
|
+
}).transform((v) => {
|
|
26
|
+
return remap$(v, {
|
|
27
|
+
"client_cert_required": "clientCertRequired",
|
|
28
|
+
"status_code": "statusCode",
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export function geminiFromJSON(
|
|
33
|
+
jsonString: string,
|
|
34
|
+
): SafeParseResult<Gemini, SDKValidationError> {
|
|
35
|
+
return safeParse(
|
|
36
|
+
jsonString,
|
|
37
|
+
(x) => Gemini$inboundSchema.parse(JSON.parse(x)),
|
|
38
|
+
`Failed to parse 'Gemini' from JSON`,
|
|
39
|
+
);
|
|
40
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { GreynoiseTag, GreynoiseTag$inboundSchema } from "./greynoisetag.js";
|
|
10
|
+
|
|
11
|
+
export type Greynoise = {
|
|
12
|
+
/**
|
|
13
|
+
* The actor that was observed.
|
|
14
|
+
*/
|
|
15
|
+
actor?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The classification of the IP address.
|
|
18
|
+
*/
|
|
19
|
+
classification?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* The tags associated with the IP address.
|
|
22
|
+
*/
|
|
23
|
+
tags?: Array<GreynoiseTag> | null | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const Greynoise$inboundSchema: z.ZodType<
|
|
28
|
+
Greynoise,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
actor: z.string().optional(),
|
|
33
|
+
classification: z.string().optional(),
|
|
34
|
+
tags: z.nullable(z.array(GreynoiseTag$inboundSchema)).optional(),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function greynoiseFromJSON(
|
|
38
|
+
jsonString: string,
|
|
39
|
+
): SafeParseResult<Greynoise, SDKValidationError> {
|
|
40
|
+
return safeParse(
|
|
41
|
+
jsonString,
|
|
42
|
+
(x) => Greynoise$inboundSchema.parse(JSON.parse(x)),
|
|
43
|
+
`Failed to parse 'Greynoise' from JSON`,
|
|
44
|
+
);
|
|
45
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type GreynoiseTag = {
|
|
11
|
+
/**
|
|
12
|
+
* The name of the tag.
|
|
13
|
+
*/
|
|
14
|
+
name?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const GreynoiseTag$inboundSchema: z.ZodType<
|
|
19
|
+
GreynoiseTag,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
name: z.string().optional(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export function greynoiseTagFromJSON(
|
|
27
|
+
jsonString: string,
|
|
28
|
+
): SafeParseResult<GreynoiseTag, SDKValidationError> {
|
|
29
|
+
return safeParse(
|
|
30
|
+
jsonString,
|
|
31
|
+
(x) => GreynoiseTag$inboundSchema.parse(JSON.parse(x)),
|
|
32
|
+
`Failed to parse 'GreynoiseTag' from JSON`,
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -8,6 +8,7 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
import { Attribute, Attribute$inboundSchema } from "./attribute.js";
|
|
11
|
+
import { Greynoise, Greynoise$inboundSchema } from "./greynoise.js";
|
|
11
12
|
import { HostDns, HostDns$inboundSchema } from "./hostdns.js";
|
|
12
13
|
import { Label, Label$inboundSchema } from "./label.js";
|
|
13
14
|
import { Location, Location$inboundSchema } from "./location.js";
|
|
@@ -18,6 +19,7 @@ import { Whois, Whois$inboundSchema } from "./whois.js";
|
|
|
18
19
|
export type Host = {
|
|
19
20
|
autonomousSystem?: Routing | undefined;
|
|
20
21
|
dns?: HostDns | undefined;
|
|
22
|
+
greynoise?: Greynoise | undefined;
|
|
21
23
|
hardware?: Attribute | undefined;
|
|
22
24
|
ip?: string | undefined;
|
|
23
25
|
labels?: Array<Label> | null | undefined;
|
|
@@ -33,6 +35,7 @@ export const Host$inboundSchema: z.ZodType<Host, z.ZodTypeDef, unknown> = z
|
|
|
33
35
|
.object({
|
|
34
36
|
autonomous_system: Routing$inboundSchema.optional(),
|
|
35
37
|
dns: HostDns$inboundSchema.optional(),
|
|
38
|
+
greynoise: Greynoise$inboundSchema.optional(),
|
|
36
39
|
hardware: Attribute$inboundSchema.optional(),
|
|
37
40
|
ip: z.string().optional(),
|
|
38
41
|
labels: z.nullable(z.array(Label$inboundSchema)).optional(),
|
|
@@ -26,6 +26,7 @@ export type HttpRedirectChainLink = {
|
|
|
26
26
|
path?: string | undefined;
|
|
27
27
|
port?: number | undefined;
|
|
28
28
|
reason?: string | undefined;
|
|
29
|
+
scheme?: string | undefined;
|
|
29
30
|
transportProtocol?: HttpRedirectChainLinkTransportProtocol | undefined;
|
|
30
31
|
};
|
|
31
32
|
|
|
@@ -46,6 +47,7 @@ export const HttpRedirectChainLink$inboundSchema: z.ZodType<
|
|
|
46
47
|
path: z.string().optional(),
|
|
47
48
|
port: z.number().int().optional(),
|
|
48
49
|
reason: z.string().optional(),
|
|
50
|
+
scheme: z.string().optional(),
|
|
49
51
|
transport_protocol: HttpRedirectChainLinkTransportProtocol$inboundSchema
|
|
50
52
|
.optional(),
|
|
51
53
|
}).transform((v) => {
|