@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
|
@@ -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", "409", "412", "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, 409, 412, 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"),
|
|
@@ -154,7 +154,7 @@ async function $do(
|
|
|
154
154
|
|
|
155
155
|
const doResult = await client._do(req, {
|
|
156
156
|
context,
|
|
157
|
-
errorCodes: ["401", "403", "404", "4XX", "5XX"],
|
|
157
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
158
158
|
retryConfig: context.retryConfig,
|
|
159
159
|
retryCodes: context.retryCodes,
|
|
160
160
|
});
|
|
@@ -186,7 +186,10 @@ async function $do(
|
|
|
186
186
|
{ hdrs: true },
|
|
187
187
|
),
|
|
188
188
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
189
|
-
M.jsonErr([403, 404], errors.ErrorModel$inboundSchema, {
|
|
189
|
+
M.jsonErr([400, 403, 404], errors.ErrorModel$inboundSchema, {
|
|
190
|
+
ctype: "application/problem+json",
|
|
191
|
+
}),
|
|
192
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
190
193
|
ctype: "application/problem+json",
|
|
191
194
|
}),
|
|
192
195
|
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
|
});
|
|
@@ -179,7 +179,10 @@ async function $do(
|
|
|
179
179
|
key: "Result",
|
|
180
180
|
}),
|
|
181
181
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
182
|
-
M.jsonErr([403, 404], errors.ErrorModel$inboundSchema, {
|
|
182
|
+
M.jsonErr([400, 403, 404], errors.ErrorModel$inboundSchema, {
|
|
183
|
+
ctype: "application/problem+json",
|
|
184
|
+
}),
|
|
185
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
183
186
|
ctype: "application/problem+json",
|
|
184
187
|
}),
|
|
185
188
|
M.fail("4XX"),
|
|
@@ -94,6 +94,7 @@ async function $do(
|
|
|
94
94
|
const path = pathToFunc("/v3/collections")();
|
|
95
95
|
|
|
96
96
|
const query = encodeFormQuery({
|
|
97
|
+
"collection_statuses": payload.collection_statuses,
|
|
97
98
|
"organization_id": payload.organization_id
|
|
98
99
|
?? client._options.organizationId,
|
|
99
100
|
"page_size": payload.page_size,
|
|
@@ -143,7 +144,7 @@ async function $do(
|
|
|
143
144
|
|
|
144
145
|
const doResult = await client._do(req, {
|
|
145
146
|
context,
|
|
146
|
-
errorCodes: ["401", "403", "4XX", "5XX"],
|
|
147
|
+
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
147
148
|
retryConfig: context.retryConfig,
|
|
148
149
|
retryCodes: context.retryCodes,
|
|
149
150
|
});
|
|
@@ -174,7 +175,10 @@ async function $do(
|
|
|
174
175
|
key: "Result",
|
|
175
176
|
}),
|
|
176
177
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
177
|
-
M.jsonErr(403, errors.ErrorModel$inboundSchema, {
|
|
178
|
+
M.jsonErr([400, 403], errors.ErrorModel$inboundSchema, {
|
|
179
|
+
ctype: "application/problem+json",
|
|
180
|
+
}),
|
|
181
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
178
182
|
ctype: "application/problem+json",
|
|
179
183
|
}),
|
|
180
184
|
M.fail("4XX"),
|
|
@@ -157,7 +157,7 @@ async function $do(
|
|
|
157
157
|
|
|
158
158
|
const doResult = await client._do(req, {
|
|
159
159
|
context,
|
|
160
|
-
errorCodes: ["401", "403", "404", "4XX", "5XX"],
|
|
160
|
+
errorCodes: ["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
|
161
161
|
retryConfig: context.retryConfig,
|
|
162
162
|
retryCodes: context.retryCodes,
|
|
163
163
|
});
|
|
@@ -188,7 +188,10 @@ async function $do(
|
|
|
188
188
|
key: "Result",
|
|
189
189
|
}),
|
|
190
190
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
191
|
-
M.jsonErr([403, 404], errors.ErrorModel$inboundSchema, {
|
|
191
|
+
M.jsonErr([400, 403, 404, 422], errors.ErrorModel$inboundSchema, {
|
|
192
|
+
ctype: "application/problem+json",
|
|
193
|
+
}),
|
|
194
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
192
195
|
ctype: "application/problem+json",
|
|
193
196
|
}),
|
|
194
197
|
M.fail("4XX"),
|
|
@@ -153,7 +153,7 @@ async function $do(
|
|
|
153
153
|
|
|
154
154
|
const doResult = await client._do(req, {
|
|
155
155
|
context,
|
|
156
|
-
errorCodes: ["401", "403", "404", "4XX", "5XX"],
|
|
156
|
+
errorCodes: ["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
|
157
157
|
retryConfig: context.retryConfig,
|
|
158
158
|
retryCodes: context.retryCodes,
|
|
159
159
|
});
|
|
@@ -184,7 +184,10 @@ async function $do(
|
|
|
184
184
|
key: "Result",
|
|
185
185
|
}),
|
|
186
186
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
187
|
-
M.jsonErr([403, 404], errors.ErrorModel$inboundSchema, {
|
|
187
|
+
M.jsonErr([400, 403, 404, 422], errors.ErrorModel$inboundSchema, {
|
|
188
|
+
ctype: "application/problem+json",
|
|
189
|
+
}),
|
|
190
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
188
191
|
ctype: "application/problem+json",
|
|
189
192
|
}),
|
|
190
193
|
M.fail("4XX"),
|
|
@@ -151,7 +151,7 @@ async function $do(
|
|
|
151
151
|
|
|
152
152
|
const doResult = await client._do(req, {
|
|
153
153
|
context,
|
|
154
|
-
errorCodes: ["401", "403", "404", "4XX", "5XX"],
|
|
154
|
+
errorCodes: ["400", "401", "403", "404", "412", "4XX", "500", "5XX"],
|
|
155
155
|
retryConfig: context.retryConfig,
|
|
156
156
|
retryCodes: context.retryCodes,
|
|
157
157
|
});
|
|
@@ -182,7 +182,10 @@ async function $do(
|
|
|
182
182
|
key: "Result",
|
|
183
183
|
}),
|
|
184
184
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
185
|
-
M.jsonErr([403, 404], errors.ErrorModel$inboundSchema, {
|
|
185
|
+
M.jsonErr([400, 403, 404, 412], errors.ErrorModel$inboundSchema, {
|
|
186
|
+
ctype: "application/problem+json",
|
|
187
|
+
}),
|
|
188
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
186
189
|
ctype: "application/problem+json",
|
|
187
190
|
}),
|
|
188
191
|
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", "422", "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, 422], 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"),
|
|
@@ -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", "500", "5XX"],
|
|
147
|
+
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
148
148
|
retryConfig: context.retryConfig,
|
|
149
149
|
retryCodes: context.retryCodes,
|
|
150
150
|
});
|
|
@@ -175,7 +175,7 @@ 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], errors.ErrorModel$inboundSchema, {
|
|
179
179
|
ctype: "application/problem+json",
|
|
180
180
|
}),
|
|
181
181
|
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
@@ -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"),
|
|
@@ -152,7 +152,7 @@ async function $do(
|
|
|
152
152
|
|
|
153
153
|
const doResult = await client._do(req, {
|
|
154
154
|
context,
|
|
155
|
-
errorCodes: ["401", "403", "404", "4XX", "5XX"],
|
|
155
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
156
156
|
retryConfig: context.retryConfig,
|
|
157
157
|
retryCodes: context.retryCodes,
|
|
158
158
|
});
|
|
@@ -184,7 +184,10 @@ async function $do(
|
|
|
184
184
|
key: "Result",
|
|
185
185
|
}),
|
|
186
186
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
187
|
-
M.jsonErr([403, 404], errors.ErrorModel$inboundSchema, {
|
|
187
|
+
M.jsonErr([400, 403, 404], errors.ErrorModel$inboundSchema, {
|
|
188
|
+
ctype: "application/problem+json",
|
|
189
|
+
}),
|
|
190
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
188
191
|
ctype: "application/problem+json",
|
|
189
192
|
}),
|
|
190
193
|
M.fail("4XX"),
|
|
@@ -152,7 +152,7 @@ async function $do(
|
|
|
152
152
|
|
|
153
153
|
const doResult = await client._do(req, {
|
|
154
154
|
context,
|
|
155
|
-
errorCodes: ["401", "403", "404", "4XX", "5XX"],
|
|
155
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
156
156
|
retryConfig: context.retryConfig,
|
|
157
157
|
retryCodes: context.retryCodes,
|
|
158
158
|
});
|
|
@@ -184,7 +184,10 @@ async function $do(
|
|
|
184
184
|
{ ctype: "application/x-pem-file", hdrs: true, key: "Result" },
|
|
185
185
|
),
|
|
186
186
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
187
|
-
M.jsonErr([403, 404], errors.ErrorModel$inboundSchema, {
|
|
187
|
+
M.jsonErr([400, 403, 404], errors.ErrorModel$inboundSchema, {
|
|
188
|
+
ctype: "application/problem+json",
|
|
189
|
+
}),
|
|
190
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
188
191
|
ctype: "application/problem+json",
|
|
189
192
|
}),
|
|
190
193
|
M.fail("4XX"),
|
|
@@ -145,7 +145,7 @@ async function $do(
|
|
|
145
145
|
|
|
146
146
|
const doResult = await client._do(req, {
|
|
147
147
|
context,
|
|
148
|
-
errorCodes: ["401", "403", "404", "4XX", "5XX"],
|
|
148
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
149
149
|
retryConfig: context.retryConfig,
|
|
150
150
|
retryCodes: context.retryCodes,
|
|
151
151
|
});
|
|
@@ -181,7 +181,10 @@ async function $do(
|
|
|
181
181
|
},
|
|
182
182
|
),
|
|
183
183
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
184
|
-
M.jsonErr([403, 404], errors.ErrorModel$inboundSchema, {
|
|
184
|
+
M.jsonErr([400, 403, 404], errors.ErrorModel$inboundSchema, {
|
|
185
|
+
ctype: "application/problem+json",
|
|
186
|
+
}),
|
|
187
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
185
188
|
ctype: "application/problem+json",
|
|
186
189
|
}),
|
|
187
190
|
M.fail("4XX"),
|
|
@@ -145,7 +145,7 @@ async function $do(
|
|
|
145
145
|
|
|
146
146
|
const doResult = await client._do(req, {
|
|
147
147
|
context,
|
|
148
|
-
errorCodes: ["401", "403", "404", "4XX", "5XX"],
|
|
148
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
149
149
|
retryConfig: context.retryConfig,
|
|
150
150
|
retryCodes: context.retryCodes,
|
|
151
151
|
});
|
|
@@ -177,7 +177,10 @@ async function $do(
|
|
|
177
177
|
{ hdrs: true, key: "Result" },
|
|
178
178
|
),
|
|
179
179
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
180
|
-
M.jsonErr([403, 404], errors.ErrorModel$inboundSchema, {
|
|
180
|
+
M.jsonErr([400, 403, 404], errors.ErrorModel$inboundSchema, {
|
|
181
|
+
ctype: "application/problem+json",
|
|
182
|
+
}),
|
|
183
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
181
184
|
ctype: "application/problem+json",
|
|
182
185
|
}),
|
|
183
186
|
M.fail("4XX"),
|
|
@@ -149,7 +149,7 @@ async function $do(
|
|
|
149
149
|
|
|
150
150
|
const doResult = await client._do(req, {
|
|
151
151
|
context,
|
|
152
|
-
errorCodes: ["401", "403", "404", "4XX", "5XX"],
|
|
152
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
153
153
|
retryConfig: context.retryConfig,
|
|
154
154
|
retryCodes: context.retryCodes,
|
|
155
155
|
});
|
|
@@ -181,7 +181,10 @@ async function $do(
|
|
|
181
181
|
key: "Result",
|
|
182
182
|
}),
|
|
183
183
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
184
|
-
M.jsonErr([403, 404], errors.ErrorModel$inboundSchema, {
|
|
184
|
+
M.jsonErr([400, 403, 404], errors.ErrorModel$inboundSchema, {
|
|
185
|
+
ctype: "application/problem+json",
|
|
186
|
+
}),
|
|
187
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
185
188
|
ctype: "application/problem+json",
|
|
186
189
|
}),
|
|
187
190
|
M.fail("4XX"),
|
|
@@ -154,7 +154,7 @@ async function $do(
|
|
|
154
154
|
|
|
155
155
|
const doResult = await client._do(req, {
|
|
156
156
|
context,
|
|
157
|
-
errorCodes: ["401", "403", "4XX", "5XX"],
|
|
157
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
158
158
|
retryConfig: context.retryConfig,
|
|
159
159
|
retryCodes: context.retryCodes,
|
|
160
160
|
});
|
|
@@ -190,7 +190,10 @@ async function $do(
|
|
|
190
190
|
},
|
|
191
191
|
),
|
|
192
192
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
193
|
-
M.jsonErr(403, errors.ErrorModel$inboundSchema, {
|
|
193
|
+
M.jsonErr([400, 403, 404], errors.ErrorModel$inboundSchema, {
|
|
194
|
+
ctype: "application/problem+json",
|
|
195
|
+
}),
|
|
196
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
194
197
|
ctype: "application/problem+json",
|
|
195
198
|
}),
|
|
196
199
|
M.fail("4XX"),
|
|
@@ -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", "404", "4XX", "500", "5XX"],
|
|
150
150
|
retryConfig: context.retryConfig,
|
|
151
151
|
retryCodes: context.retryCodes,
|
|
152
152
|
});
|
|
@@ -182,7 +182,10 @@ async function $do(
|
|
|
182
182
|
},
|
|
183
183
|
),
|
|
184
184
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
185
|
-
M.jsonErr(403, errors.ErrorModel$inboundSchema, {
|
|
185
|
+
M.jsonErr([400, 403, 404], errors.ErrorModel$inboundSchema, {
|
|
186
|
+
ctype: "application/problem+json",
|
|
187
|
+
}),
|
|
188
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
186
189
|
ctype: "application/problem+json",
|
|
187
190
|
}),
|
|
188
191
|
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"),
|
|
@@ -145,7 +145,7 @@ async function $do(
|
|
|
145
145
|
|
|
146
146
|
const doResult = await client._do(req, {
|
|
147
147
|
context,
|
|
148
|
-
errorCodes: ["401", "403", "4XX", "5XX"],
|
|
148
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
149
149
|
retryConfig: context.retryConfig,
|
|
150
150
|
retryCodes: context.retryCodes,
|
|
151
151
|
});
|
|
@@ -181,7 +181,10 @@ async function $do(
|
|
|
181
181
|
},
|
|
182
182
|
),
|
|
183
183
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
184
|
-
M.jsonErr(403, errors.ErrorModel$inboundSchema, {
|
|
184
|
+
M.jsonErr([400, 403, 404], errors.ErrorModel$inboundSchema, {
|
|
185
|
+
ctype: "application/problem+json",
|
|
186
|
+
}),
|
|
187
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
185
188
|
ctype: "application/problem+json",
|
|
186
189
|
}),
|
|
187
190
|
M.fail("4XX"),
|
|
@@ -153,7 +153,7 @@ async function $do(
|
|
|
153
153
|
|
|
154
154
|
const doResult = await client._do(req, {
|
|
155
155
|
context,
|
|
156
|
-
errorCodes: ["401", "403", "422", "4XX", "5XX"],
|
|
156
|
+
errorCodes: ["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
|
157
157
|
retryConfig: context.retryConfig,
|
|
158
158
|
retryCodes: context.retryCodes,
|
|
159
159
|
});
|
|
@@ -185,7 +185,10 @@ async function $do(
|
|
|
185
185
|
key: "Result",
|
|
186
186
|
}),
|
|
187
187
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
188
|
-
M.jsonErr([403, 422], errors.ErrorModel$inboundSchema, {
|
|
188
|
+
M.jsonErr([400, 403, 404, 422], errors.ErrorModel$inboundSchema, {
|
|
189
|
+
ctype: "application/problem+json",
|
|
190
|
+
}),
|
|
191
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
189
192
|
ctype: "application/problem+json",
|
|
190
193
|
}),
|
|
191
194
|
M.fail("4XX"),
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import * as errors from "../models/errors/index.js";
|
|
21
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKBaseError } from "../models/errors/sdkbaseerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Get service history for a host
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Retrieve historical service observations for a host. This endpoint returns time ranges during which services were detected on the host.<br><br>You can define a specific time frame of interest. If you do not specify a time frame, this endpoint will search the historical dataset that is available to your account.<br><br>You can filter by port number, protocol, and transport protocol.
|
|
33
|
+
*/
|
|
34
|
+
export function globalDataListServicesOnHost(
|
|
35
|
+
client: SDKCore,
|
|
36
|
+
request: operations.V3GlobaldataServiceOnHostRequest,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<
|
|
39
|
+
Result<
|
|
40
|
+
operations.V3GlobaldataServiceOnHostResponse,
|
|
41
|
+
| errors.AuthenticationError
|
|
42
|
+
| errors.ErrorModel
|
|
43
|
+
| SDKBaseError
|
|
44
|
+
| ResponseValidationError
|
|
45
|
+
| ConnectionError
|
|
46
|
+
| RequestAbortedError
|
|
47
|
+
| RequestTimeoutError
|
|
48
|
+
| InvalidRequestError
|
|
49
|
+
| UnexpectedClientError
|
|
50
|
+
| SDKValidationError
|
|
51
|
+
>
|
|
52
|
+
> {
|
|
53
|
+
return new APIPromise($do(
|
|
54
|
+
client,
|
|
55
|
+
request,
|
|
56
|
+
options,
|
|
57
|
+
));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async function $do(
|
|
61
|
+
client: SDKCore,
|
|
62
|
+
request: operations.V3GlobaldataServiceOnHostRequest,
|
|
63
|
+
options?: RequestOptions,
|
|
64
|
+
): Promise<
|
|
65
|
+
[
|
|
66
|
+
Result<
|
|
67
|
+
operations.V3GlobaldataServiceOnHostResponse,
|
|
68
|
+
| errors.AuthenticationError
|
|
69
|
+
| errors.ErrorModel
|
|
70
|
+
| SDKBaseError
|
|
71
|
+
| ResponseValidationError
|
|
72
|
+
| ConnectionError
|
|
73
|
+
| RequestAbortedError
|
|
74
|
+
| RequestTimeoutError
|
|
75
|
+
| InvalidRequestError
|
|
76
|
+
| UnexpectedClientError
|
|
77
|
+
| SDKValidationError
|
|
78
|
+
>,
|
|
79
|
+
APICall,
|
|
80
|
+
]
|
|
81
|
+
> {
|
|
82
|
+
const parsed = safeParse(
|
|
83
|
+
request,
|
|
84
|
+
(value) =>
|
|
85
|
+
operations.V3GlobaldataServiceOnHostRequest$outboundSchema.parse(value),
|
|
86
|
+
"Input validation failed",
|
|
87
|
+
);
|
|
88
|
+
if (!parsed.ok) {
|
|
89
|
+
return [parsed, { status: "invalid" }];
|
|
90
|
+
}
|
|
91
|
+
const payload = parsed.value;
|
|
92
|
+
const body = null;
|
|
93
|
+
|
|
94
|
+
const pathParams = {
|
|
95
|
+
host_id: encodeSimple("host_id", payload.host_id, {
|
|
96
|
+
explode: false,
|
|
97
|
+
charEncoding: "percent",
|
|
98
|
+
}),
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
const path = pathToFunc(
|
|
102
|
+
"/v3/global/asset/host/{host_id}/observations/services",
|
|
103
|
+
)(pathParams);
|
|
104
|
+
|
|
105
|
+
const query = encodeFormQuery({
|
|
106
|
+
"end_time": payload.end_time,
|
|
107
|
+
"order_by": payload.order_by,
|
|
108
|
+
"organization_id": payload.organization_id
|
|
109
|
+
?? client._options.organizationId,
|
|
110
|
+
"page_size": payload.page_size,
|
|
111
|
+
"page_token": payload.page_token,
|
|
112
|
+
"port": payload.port,
|
|
113
|
+
"protocol": payload.protocol,
|
|
114
|
+
"start_time": payload.start_time,
|
|
115
|
+
"transport_protocol": payload.transport_protocol,
|
|
116
|
+
}, { explode: false });
|
|
117
|
+
|
|
118
|
+
const headers = new Headers(compactMap({
|
|
119
|
+
Accept: "application/json",
|
|
120
|
+
}));
|
|
121
|
+
|
|
122
|
+
const secConfig = await extractSecurity(client._options.personalAccessToken);
|
|
123
|
+
const securityInput = secConfig == null
|
|
124
|
+
? {}
|
|
125
|
+
: { personalAccessToken: secConfig };
|
|
126
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
127
|
+
|
|
128
|
+
const context = {
|
|
129
|
+
options: client._options,
|
|
130
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
131
|
+
operationID: "v3-globaldata-service-on-host",
|
|
132
|
+
oAuth2Scopes: null,
|
|
133
|
+
|
|
134
|
+
resolvedSecurity: requestSecurity,
|
|
135
|
+
|
|
136
|
+
securitySource: client._options.personalAccessToken,
|
|
137
|
+
retryConfig: options?.retries
|
|
138
|
+
|| client._options.retryConfig
|
|
139
|
+
|| { strategy: "none" },
|
|
140
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
const requestRes = client._createRequest(context, {
|
|
144
|
+
security: requestSecurity,
|
|
145
|
+
method: "GET",
|
|
146
|
+
baseURL: options?.serverURL,
|
|
147
|
+
path: path,
|
|
148
|
+
headers: headers,
|
|
149
|
+
query: query,
|
|
150
|
+
body: body,
|
|
151
|
+
userAgent: client._options.userAgent,
|
|
152
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
153
|
+
}, options);
|
|
154
|
+
if (!requestRes.ok) {
|
|
155
|
+
return [requestRes, { status: "invalid" }];
|
|
156
|
+
}
|
|
157
|
+
const req = requestRes.value;
|
|
158
|
+
|
|
159
|
+
const doResult = await client._do(req, {
|
|
160
|
+
context,
|
|
161
|
+
errorCodes: ["400", "401", "403", "404", "409", "4XX", "500", "5XX"],
|
|
162
|
+
retryConfig: context.retryConfig,
|
|
163
|
+
retryCodes: context.retryCodes,
|
|
164
|
+
});
|
|
165
|
+
if (!doResult.ok) {
|
|
166
|
+
return [doResult, { status: "request-error", request: req }];
|
|
167
|
+
}
|
|
168
|
+
const response = doResult.value;
|
|
169
|
+
|
|
170
|
+
const responseFields = {
|
|
171
|
+
HttpMeta: { Response: response, Request: req },
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
const [result] = await M.match<
|
|
175
|
+
operations.V3GlobaldataServiceOnHostResponse,
|
|
176
|
+
| errors.AuthenticationError
|
|
177
|
+
| errors.ErrorModel
|
|
178
|
+
| SDKBaseError
|
|
179
|
+
| ResponseValidationError
|
|
180
|
+
| ConnectionError
|
|
181
|
+
| RequestAbortedError
|
|
182
|
+
| RequestTimeoutError
|
|
183
|
+
| InvalidRequestError
|
|
184
|
+
| UnexpectedClientError
|
|
185
|
+
| SDKValidationError
|
|
186
|
+
>(
|
|
187
|
+
M.json(200, operations.V3GlobaldataServiceOnHostResponse$inboundSchema, {
|
|
188
|
+
hdrs: true,
|
|
189
|
+
key: "Result",
|
|
190
|
+
}),
|
|
191
|
+
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
192
|
+
M.jsonErr([400, 403, 404, 409], errors.ErrorModel$inboundSchema, {
|
|
193
|
+
ctype: "application/problem+json",
|
|
194
|
+
}),
|
|
195
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
196
|
+
ctype: "application/problem+json",
|
|
197
|
+
}),
|
|
198
|
+
M.fail("4XX"),
|
|
199
|
+
M.fail("5XX"),
|
|
200
|
+
)(response, req, { extraFields: responseFields });
|
|
201
|
+
if (!result.ok) {
|
|
202
|
+
return [result, { status: "complete", request: req, response }];
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
return [result, { status: "complete", request: req, response }];
|
|
206
|
+
}
|
|
@@ -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"),
|