@censys/platform-sdk 0.9.0 → 0.10.0
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 +19 -13
- package/docs/sdks/accountmanagement/README.md +113 -9
- package/docs/sdks/collections/README.md +22 -14
- package/docs/sdks/globaldata/README.md +27 -14
- package/docs/sdks/threathunting/README.md +11 -6
- package/examples/package-lock.json +3 -3
- package/funcs/accountManagementGetMemberCreditUsage.d.ts +2 -2
- package/funcs/accountManagementGetMemberCreditUsage.js +8 -3
- package/funcs/accountManagementGetMemberCreditUsage.js.map +1 -1
- package/funcs/accountManagementGetOrganizationCreditUsage.d.ts +1 -1
- package/funcs/accountManagementGetOrganizationCreditUsage.js +8 -2
- package/funcs/accountManagementGetOrganizationCreditUsage.js.map +1 -1
- package/funcs/accountManagementGetOrganizationCredits.d.ts +1 -1
- package/funcs/accountManagementGetOrganizationCredits.js +4 -2
- package/funcs/accountManagementGetOrganizationCredits.js.map +1 -1
- package/funcs/accountManagementGetOrganizationDetails.js +3 -1
- package/funcs/accountManagementGetOrganizationDetails.js.map +1 -1
- package/funcs/accountManagementGetUserCredits.d.ts +2 -2
- package/funcs/accountManagementGetUserCredits.js +5 -3
- package/funcs/accountManagementGetUserCredits.js.map +1 -1
- package/funcs/accountManagementGetUserCreditsUsage.d.ts +18 -0
- package/funcs/accountManagementGetUserCreditsUsage.d.ts.map +1 -0
- package/funcs/accountManagementGetUserCreditsUsage.js +131 -0
- package/funcs/accountManagementGetUserCreditsUsage.js.map +1 -0
- 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.d.ts +1 -1
- package/funcs/collectionsCreate.js +5 -3
- package/funcs/collectionsCreate.js.map +1 -1
- package/funcs/collectionsDelete.d.ts +1 -1
- package/funcs/collectionsDelete.js +5 -3
- package/funcs/collectionsDelete.js.map +1 -1
- package/funcs/collectionsGet.d.ts +1 -1
- package/funcs/collectionsGet.js +5 -3
- package/funcs/collectionsGet.js.map +1 -1
- package/funcs/collectionsList.d.ts +1 -1
- package/funcs/collectionsList.js +5 -3
- package/funcs/collectionsList.js.map +1 -1
- package/funcs/collectionsListEvents.d.ts +1 -1
- package/funcs/collectionsListEvents.js +5 -3
- package/funcs/collectionsListEvents.js.map +1 -1
- package/funcs/collectionsSearch.js +4 -2
- package/funcs/collectionsSearch.js.map +1 -1
- package/funcs/collectionsUpdate.d.ts +1 -1
- package/funcs/collectionsUpdate.js +5 -3
- 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/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.d.ts +1 -1
- package/funcs/threatHuntingListThreats.js +5 -3
- 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/lib/sdks.js +2 -2
- package/lib/sdks.js.map +1 -1
- package/models/components/alternativequery.d.ts +3 -3
- package/models/components/alternativequery.d.ts.map +1 -1
- package/models/components/alternativequery.js +2 -2
- package/models/components/alternativequery.js.map +1 -1
- package/models/components/attribute.d.ts +4 -3
- package/models/components/attribute.d.ts.map +1 -1
- package/models/components/attribute.js +3 -2
- package/models/components/attribute.js.map +1 -1
- package/models/components/certificate.d.ts +5 -5
- package/models/components/certificate.d.ts.map +1 -1
- package/models/components/certificate.js +3 -3
- package/models/components/certificate.js.map +1 -1
- package/models/components/certificaterevocationrevocationinfo.d.ts +3 -3
- package/models/components/certificaterevocationrevocationinfo.d.ts.map +1 -1
- package/models/components/certificaterevocationrevocationinfo.js +2 -2
- package/models/components/certificaterevocationrevocationinfo.js.map +1 -1
- package/models/components/collection.d.ts +9 -5
- package/models/components/collection.d.ts.map +1 -1
- package/models/components/collection.js +5 -2
- package/models/components/collection.js.map +1 -1
- package/models/components/creditexpiration.d.ts +4 -0
- package/models/components/creditexpiration.d.ts.map +1 -1
- package/models/components/creditexpiration.js +2 -0
- package/models/components/creditexpiration.js.map +1 -1
- package/models/components/creditusagereport.d.ts +44 -5
- package/models/components/creditusagereport.d.ts.map +1 -1
- package/models/components/creditusagereport.js +28 -7
- package/models/components/creditusagereport.js.map +1 -1
- package/models/components/creditusagereportperiod.d.ts +33 -0
- package/models/components/creditusagereportperiod.d.ts.map +1 -0
- package/models/components/creditusagereportperiod.js +65 -0
- package/models/components/creditusagereportperiod.js.map +1 -0
- package/models/components/cvsscomponents.d.ts +17 -17
- package/models/components/cvsscomponents.d.ts.map +1 -1
- package/models/components/cvsscomponents.js +9 -9
- package/models/components/cvsscomponents.js.map +1 -1
- package/models/components/cvssv4components.d.ts +29 -29
- package/models/components/cvssv4components.d.ts.map +1 -1
- package/models/components/cvssv4components.js +15 -17
- package/models/components/cvssv4components.js.map +1 -1
- package/models/components/dns.d.ts +5 -5
- package/models/components/dns.d.ts.map +1 -1
- package/models/components/dns.js +3 -3
- package/models/components/dns.js.map +1 -1
- package/models/components/dnsresourcerecord.d.ts +3 -3
- package/models/components/dnsresourcerecord.d.ts.map +1 -1
- package/models/components/dnsresourcerecord.js +2 -1
- package/models/components/dnsresourcerecord.js.map +1 -1
- package/models/components/endpointscan.d.ts +3 -3
- package/models/components/endpointscan.d.ts.map +1 -1
- package/models/components/endpointscan.js +2 -1
- package/models/components/endpointscan.js.map +1 -1
- package/models/components/endpointscanstate.d.ts +5 -3
- package/models/components/endpointscanstate.d.ts.map +1 -1
- package/models/components/endpointscanstate.js +4 -1
- package/models/components/endpointscanstate.js.map +1 -1
- package/models/components/eventassetchange.d.ts +3 -3
- package/models/components/eventassetchange.d.ts.map +1 -1
- package/models/components/eventassetchange.js +2 -2
- package/models/components/eventassetchange.js.map +1 -1
- package/models/components/eventstatuschange.d.ts +5 -5
- package/models/components/eventstatuschange.d.ts.map +1 -1
- package/models/components/eventstatuschange.js +3 -4
- package/models/components/eventstatuschange.js.map +1 -1
- package/models/components/extractedendpointdata.d.ts +17 -0
- package/models/components/extractedendpointdata.d.ts.map +1 -0
- package/models/components/extractedendpointdata.js +65 -0
- package/models/components/extractedendpointdata.js.map +1 -0
- package/models/components/extractedendpointdataanalyticsservice.d.ts +11 -0
- package/models/components/extractedendpointdataanalyticsservice.d.ts.map +1 -0
- package/models/components/extractedendpointdataanalyticsservice.js +51 -0
- package/models/components/extractedendpointdataanalyticsservice.js.map +1 -0
- package/models/components/extractedendpointdatacopyright.d.ts +13 -0
- package/models/components/extractedendpointdatacopyright.d.ts.map +1 -0
- package/models/components/extractedendpointdatacopyright.js +59 -0
- package/models/components/extractedendpointdatacopyright.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/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/hajime.d.ts +10 -0
- package/models/components/hajime.d.ts.map +1 -0
- package/models/components/hajime.js +56 -0
- package/models/components/hajime.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/hostdnsforwardresolution.d.ts +3 -3
- package/models/components/hostdnsforwardresolution.d.ts.map +1 -1
- package/models/components/hostdnsforwardresolution.js +2 -2
- package/models/components/hostdnsforwardresolution.js.map +1 -1
- package/models/components/http.d.ts +7 -0
- package/models/components/http.d.ts.map +1 -1
- package/models/components/http.js +7 -0
- package/models/components/http.js.map +1 -1
- package/models/components/httpredirectchainlink.d.ts +26 -0
- package/models/components/httpredirectchainlink.d.ts.map +1 -0
- package/models/components/httpredirectchainlink.js +71 -0
- package/models/components/httpredirectchainlink.js.map +1 -0
- package/models/components/index.d.ts +26 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +26 -0
- package/models/components/index.js.map +1 -1
- package/models/components/jarmscan.d.ts +3 -3
- package/models/components/jarmscan.d.ts.map +1 -1
- package/models/components/jarmscan.js +2 -1
- package/models/components/jarmscan.js.map +1 -1
- package/models/components/kev.d.ts +3 -3
- package/models/components/kev.d.ts.map +1 -1
- package/models/components/kev.js +2 -2
- package/models/components/kev.js.map +1 -1
- package/models/components/label.d.ts +4 -3
- package/models/components/label.d.ts.map +1 -1
- package/models/components/label.js +3 -2
- package/models/components/label.js.map +1 -1
- package/models/components/matchedservice.d.ts +3 -3
- package/models/components/matchedservice.d.ts.map +1 -1
- package/models/components/matchedservice.js +2 -1
- package/models/components/matchedservice.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/networklog.d.ts +18 -0
- package/models/components/networklog.d.ts.map +1 -0
- package/models/components/networklog.js +58 -0
- package/models/components/networklog.js.map +1 -0
- package/models/components/networklogresourceinfo.d.ts +49 -0
- package/models/components/networklogresourceinfo.d.ts.map +1 -0
- package/models/components/networklogresourceinfo.js +64 -0
- package/models/components/networklogresourceinfo.js.map +1 -0
- package/models/components/paginationinfo.d.ts +1 -1
- package/models/components/reject.d.ts +3 -3
- package/models/components/reject.d.ts.map +1 -1
- package/models/components/reject.js +2 -2
- package/models/components/reject.js.map +1 -1
- package/models/components/representativeinfo.d.ts +3 -3
- package/models/components/representativeinfo.d.ts.map +1 -1
- package/models/components/representativeinfo.js +2 -1
- package/models/components/representativeinfo.js.map +1 -1
- package/models/components/risk.d.ts +8 -7
- package/models/components/risk.d.ts.map +1 -1
- package/models/components/risk.js +5 -6
- package/models/components/risk.js.map +1 -1
- package/models/components/rootstore.d.ts +3 -3
- package/models/components/rootstore.d.ts.map +1 -1
- package/models/components/rootstore.js +2 -1
- package/models/components/rootstore.js.map +1 -1
- 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/searchconvertqueryresponse.d.ts +3 -3
- package/models/components/searchconvertqueryresponse.d.ts.map +1 -1
- package/models/components/searchconvertqueryresponse.js +2 -1
- package/models/components/searchconvertqueryresponse.js.map +1 -1
- package/models/components/searchqueryinputbody.d.ts +1 -1
- package/models/components/service.d.ts +23 -3
- package/models/components/service.d.ts.map +1 -1
- package/models/components/service.js +27 -1
- package/models/components/service.js.map +1 -1
- package/models/components/serviceid.d.ts +3 -3
- package/models/components/serviceid.d.ts.map +1 -1
- package/models/components/serviceid.js +2 -1
- package/models/components/serviceid.js.map +1 -1
- package/models/components/servicescan.d.ts +23 -3
- package/models/components/servicescan.d.ts.map +1 -1
- package/models/components/servicescan.js +27 -1
- package/models/components/servicescan.js.map +1 -1
- package/models/components/sourceusagebreakdown.d.ts +9 -1
- package/models/components/sourceusagebreakdown.d.ts.map +1 -1
- package/models/components/sourceusagebreakdown.js +7 -0
- package/models/components/sourceusagebreakdown.js.map +1 -1
- package/models/components/threat.d.ts +4 -3
- package/models/components/threat.d.ts.map +1 -1
- package/models/components/threat.js +3 -1
- package/models/components/threat.js.map +1 -1
- package/models/components/tls.d.ts +3 -3
- package/models/components/tls.d.ts.map +1 -1
- package/models/components/tls.js +2 -1
- package/models/components/tls.js.map +1 -1
- package/models/components/tlsversiondata.d.ts +3 -3
- package/models/components/tlsversiondata.d.ts.map +1 -1
- package/models/components/tlsversiondata.js +2 -2
- package/models/components/tlsversiondata.js.map +1 -1
- package/models/components/trackedscantask.d.ts +3 -3
- package/models/components/trackedscantask.d.ts.map +1 -1
- package/models/components/trackedscantask.js +2 -1
- package/models/components/trackedscantask.js.map +1 -1
- package/models/components/vuln.d.ts +8 -7
- package/models/components/vuln.d.ts.map +1 -1
- package/models/components/vuln.js +5 -4
- package/models/components/vuln.js.map +1 -1
- 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/v3accountmanagementmembercreditsusage.d.ts +33 -3
- package/models/operations/v3accountmanagementmembercreditsusage.d.ts.map +1 -1
- package/models/operations/v3accountmanagementmembercreditsusage.js +17 -2
- package/models/operations/v3accountmanagementmembercreditsusage.js.map +1 -1
- package/models/operations/v3accountmanagementorgcreditsusage.d.ts +38 -3
- package/models/operations/v3accountmanagementorgcreditsusage.d.ts.map +1 -1
- package/models/operations/v3accountmanagementorgcreditsusage.js +20 -2
- package/models/operations/v3accountmanagementorgcreditsusage.js.map +1 -1
- package/models/operations/v3accountmanagementusercreditsusage.d.ts +57 -0
- package/models/operations/v3accountmanagementusercreditsusage.d.ts.map +1 -0
- package/models/operations/v3accountmanagementusercreditsusage.js +85 -0
- package/models/operations/v3accountmanagementusercreditsusage.js.map +1 -0
- package/package.json +3 -3
- package/sdk/accountmanagement.d.ts +13 -6
- package/sdk/accountmanagement.d.ts.map +1 -1
- package/sdk/accountmanagement.js +16 -6
- package/sdk/accountmanagement.js.map +1 -1
- package/sdk/collections.d.ts +6 -6
- package/sdk/collections.js +6 -6
- package/sdk/threathunting.d.ts +1 -1
- package/sdk/threathunting.js +1 -1
- package/src/funcs/accountManagementGetMemberCreditUsage.ts +9 -3
- package/src/funcs/accountManagementGetOrganizationCreditUsage.ts +9 -2
- package/src/funcs/accountManagementGetOrganizationCredits.ts +5 -2
- package/src/funcs/accountManagementGetOrganizationDetails.ts +4 -1
- package/src/funcs/accountManagementGetUserCredits.ts +6 -3
- package/src/funcs/accountManagementGetUserCreditsUsage.ts +193 -0
- 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 +6 -3
- package/src/funcs/collectionsDelete.ts +6 -3
- package/src/funcs/collectionsGet.ts +6 -3
- package/src/funcs/collectionsList.ts +6 -3
- package/src/funcs/collectionsListEvents.ts +6 -3
- package/src/funcs/collectionsSearch.ts +5 -2
- package/src/funcs/collectionsUpdate.ts +6 -3
- 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/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 +6 -3
- package/src/funcs/threatHuntingValueCounts.ts +5 -2
- package/src/lib/config.ts +4 -4
- package/src/lib/sdks.ts +2 -2
- package/src/models/components/alternativequery.ts +5 -4
- package/src/models/components/attribute.ts +6 -4
- package/src/models/components/certificate.ts +14 -8
- package/src/models/components/certificaterevocationrevocationinfo.ts +5 -4
- package/src/models/components/collection.ts +20 -8
- package/src/models/components/creditexpiration.ts +6 -0
- package/src/models/components/creditusagereport.ts +70 -11
- package/src/models/components/creditusagereportperiod.ts +69 -0
- package/src/models/components/cvsscomponents.ts +47 -30
- package/src/models/components/cvssv4components.ts +83 -53
- package/src/models/components/dns.ts +11 -8
- package/src/models/components/dnsresourcerecord.ts +8 -5
- package/src/models/components/endpointscan.ts +8 -5
- package/src/models/components/endpointscanstate.ts +14 -5
- package/src/models/components/eventassetchange.ts +8 -4
- package/src/models/components/eventstatuschange.ts +14 -7
- package/src/models/components/extractedendpointdata.ts +62 -0
- package/src/models/components/extractedendpointdataanalyticsservice.ts +34 -0
- package/src/models/components/extractedendpointdatacopyright.ts +43 -0
- package/src/models/components/flashsocketpolicy.ts +47 -0
- package/src/models/components/flashsocketpolicyallowaccessfrom.ts +40 -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/hajime.ts +33 -0
- package/src/models/components/host.ts +3 -0
- package/src/models/components/hostdnsforwardresolution.ts +8 -4
- package/src/models/components/http.ts +15 -0
- package/src/models/components/httpredirectchainlink.ts +67 -0
- package/src/models/components/index.ts +26 -0
- package/src/models/components/jarmscan.ts +8 -5
- package/src/models/components/kev.ts +8 -4
- package/src/models/components/label.ts +9 -4
- package/src/models/components/matchedservice.ts +8 -5
- 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/networklog.ts +49 -0
- package/src/models/components/networklogresourceinfo.ts +84 -0
- package/src/models/components/paginationinfo.ts +1 -1
- package/src/models/components/reject.ts +8 -4
- package/src/models/components/representativeinfo.ts +8 -5
- package/src/models/components/risk.ts +21 -10
- package/src/models/components/rootstore.ts +5 -5
- 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/searchconvertqueryresponse.ts +8 -5
- package/src/models/components/searchqueryinputbody.ts +1 -1
- package/src/models/components/service.ts +52 -5
- package/src/models/components/serviceid.ts +8 -5
- package/src/models/components/servicescan.ts +52 -5
- package/src/models/components/sourceusagebreakdown.ts +16 -1
- package/src/models/components/threat.ts +9 -4
- package/src/models/components/tls.ts +8 -5
- package/src/models/components/tlsversiondata.ts +5 -4
- package/src/models/components/trackedscantask.ts +8 -5
- package/src/models/components/vuln.ts +21 -11
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/v3accountmanagementmembercreditsusage.ts +43 -4
- package/src/models/operations/v3accountmanagementorgcreditsusage.ts +49 -4
- package/src/models/operations/v3accountmanagementusercreditsusage.ts +128 -0
- package/src/sdk/accountmanagement.ts +24 -6
- package/src/sdk/collections.ts +6 -6
- package/src/sdk/threathunting.ts +1 -1
|
@@ -41,6 +41,7 @@ exports.collectionFromJSON = collectionFromJSON;
|
|
|
41
41
|
const z = __importStar(require("zod/v3"));
|
|
42
42
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const openEnums = __importStar(require("../../types/enums.js"));
|
|
44
45
|
exports.CollectionStatus = {
|
|
45
46
|
Unspecified: "unspecified",
|
|
46
47
|
Populating: "populating",
|
|
@@ -58,13 +59,14 @@ exports.StatusReason = {
|
|
|
58
59
|
Initial: "initial",
|
|
59
60
|
};
|
|
60
61
|
/** @internal */
|
|
61
|
-
exports.CollectionStatus$inboundSchema =
|
|
62
|
+
exports.CollectionStatus$inboundSchema = openEnums.inboundSchema(exports.CollectionStatus);
|
|
62
63
|
/** @internal */
|
|
63
|
-
exports.StatusReason$inboundSchema =
|
|
64
|
+
exports.StatusReason$inboundSchema = openEnums.inboundSchema(exports.StatusReason);
|
|
64
65
|
/** @internal */
|
|
65
66
|
exports.Collection$inboundSchema = z.object({
|
|
66
67
|
added_assets_24_hours: z.number().int(),
|
|
67
68
|
create_time: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
69
|
+
created_by: z.string().optional(),
|
|
68
70
|
description: z.string(),
|
|
69
71
|
id: z.string(),
|
|
70
72
|
name: z.string(),
|
|
@@ -77,6 +79,7 @@ exports.Collection$inboundSchema = z.object({
|
|
|
77
79
|
return (0, primitives_js_1.remap)(v, {
|
|
78
80
|
"added_assets_24_hours": "addedAssets24Hours",
|
|
79
81
|
"create_time": "createTime",
|
|
82
|
+
"created_by": "createdBy",
|
|
80
83
|
"removed_assets_24_hours": "removedAssets24Hours",
|
|
81
84
|
"status_reason": "statusReason",
|
|
82
85
|
"total_assets": "totalAssets",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../../src/models/components/collection.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../../src/models/components/collection.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2FH,gDAQC;AAjGD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AACjD,gEAAkD;AAKrC,QAAA,gBAAgB,GAAG;IAC9B,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAGE,QAAA,YAAY,GAAG;IAC1B,WAAW,EAAE,aAAa;IAC1B,gBAAgB,EAAE,oBAAoB;IACtC,WAAW,EAAE,cAAc;IAC3B,aAAa,EAAE,iBAAiB;IAChC,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,eAAe;IAC7B,OAAO,EAAE,SAAS;CACV,CAAC;AAoBX,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,SAAS,CAAC,aAAa,CAAC,wBAAgB,CAAC,CAAC;AAE9C,gBAAgB;AACH,QAAA,0BAA0B,GAInC,SAAS,CAAC,aAAa,CAAC,oBAAY,CAAC,CAAC;AAE1C,gBAAgB;AACH,QAAA,wBAAwB,GAIjC,CAAC,CAAC,MAAM,CAAC;IACX,qBAAqB,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credit expiration will expire.
|
|
15
15
|
*/
|
|
16
16
|
expiresAt?: Date | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The initial balance of the credit expiration (i.e. how much was purchased).
|
|
19
|
+
*/
|
|
20
|
+
initialBalance: number;
|
|
17
21
|
};
|
|
18
22
|
/** @internal */
|
|
19
23
|
export declare const CreditExpiration$inboundSchema: z.ZodType<CreditExpiration, z.ZodTypeDef, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditexpiration.d.ts","sourceRoot":"","sources":["../../src/models/components/creditexpiration.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"creditexpiration.d.ts","sourceRoot":"","sources":["../../src/models/components/creditexpiration.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAcP,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
|
|
@@ -48,10 +48,12 @@ exports.CreditExpiration$inboundSchema = z.object({
|
|
|
48
48
|
.optional(),
|
|
49
49
|
expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
50
50
|
.optional(),
|
|
51
|
+
initial_balance: z.number().int(),
|
|
51
52
|
}).transform((v) => {
|
|
52
53
|
return (0, primitives_js_1.remap)(v, {
|
|
53
54
|
"created_at": "createdAt",
|
|
54
55
|
"expires_at": "expiresAt",
|
|
56
|
+
"initial_balance": "initialBalance",
|
|
55
57
|
});
|
|
56
58
|
});
|
|
57
59
|
function creditExpirationFromJSON(jsonString) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditexpiration.js","sourceRoot":"","sources":["../../src/models/components/creditexpiration.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"creditexpiration.js","sourceRoot":"","sources":["../../src/models/components/creditexpiration.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CH,4DAQC;AArDD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAuBjD,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACzB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;SAC1E,QAAQ,EAAE;IACb,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;SAC1E,QAAQ,EAAE;IACb,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAClC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,WAAW;QACzB,iBAAiB,EAAE,gBAAgB;KACpC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,wBAAwB,CACtC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
|
|
@@ -1,23 +1,62 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
import { CreditUsageReportPeriod } from "./creditusagereportperiod.js";
|
|
4
6
|
import { SourceUsageBreakdown } from "./sourceusagebreakdown.js";
|
|
7
|
+
/**
|
|
8
|
+
* The granularity of the report.
|
|
9
|
+
*/
|
|
10
|
+
export declare const Granularity: {
|
|
11
|
+
readonly Daily: "daily";
|
|
12
|
+
readonly Monthly: "monthly";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The granularity of the report.
|
|
16
|
+
*/
|
|
17
|
+
export type Granularity = OpenEnum<typeof Granularity>;
|
|
5
18
|
export type CreditUsageReport = {
|
|
6
19
|
/**
|
|
7
|
-
* The
|
|
20
|
+
* The breakdown of credits consumed by consumer. This may not be present if the report is generated for a specific user.
|
|
21
|
+
*/
|
|
22
|
+
creditsConsumedByConsumer?: string | undefined;
|
|
23
|
+
creditsConsumedBySource: SourceUsageBreakdown;
|
|
24
|
+
/**
|
|
25
|
+
* The end time of the window for this report.
|
|
26
|
+
*/
|
|
27
|
+
endTime: Date;
|
|
28
|
+
/**
|
|
29
|
+
* The granularity of the report.
|
|
30
|
+
*/
|
|
31
|
+
granularity: Granularity;
|
|
32
|
+
/**
|
|
33
|
+
* The periods of the report (i.e. time buckets).
|
|
8
34
|
*/
|
|
9
|
-
|
|
10
|
-
sourceBreakdown: SourceUsageBreakdown;
|
|
35
|
+
periods: Array<CreditUsageReportPeriod> | null;
|
|
11
36
|
/**
|
|
12
|
-
* The start
|
|
37
|
+
* The start time of the window for this report.
|
|
13
38
|
*/
|
|
14
|
-
|
|
39
|
+
startTime: Date;
|
|
40
|
+
/**
|
|
41
|
+
* The total amount of credits added during the report period.
|
|
42
|
+
*/
|
|
43
|
+
totalAdded: number;
|
|
15
44
|
/**
|
|
16
45
|
* The total amount of credits consumed during the report period.
|
|
17
46
|
*/
|
|
18
47
|
totalConsumed: number;
|
|
48
|
+
/**
|
|
49
|
+
* The total amount of credits expired during the report period.
|
|
50
|
+
*/
|
|
51
|
+
totalExpired: number;
|
|
52
|
+
/**
|
|
53
|
+
* The total number of transactions during the report period.
|
|
54
|
+
*/
|
|
55
|
+
transactionCount: number;
|
|
19
56
|
};
|
|
20
57
|
/** @internal */
|
|
58
|
+
export declare const Granularity$inboundSchema: z.ZodType<Granularity, z.ZodTypeDef, unknown>;
|
|
59
|
+
/** @internal */
|
|
21
60
|
export declare const CreditUsageReport$inboundSchema: z.ZodType<CreditUsageReport, z.ZodTypeDef, unknown>;
|
|
22
61
|
export declare function creditUsageReportFromJSON(jsonString: string): SafeParseResult<CreditUsageReport, SDKValidationError>;
|
|
23
62
|
//# sourceMappingURL=creditusagereport.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditusagereport.d.ts","sourceRoot":"","sources":["../../src/models/components/creditusagereport.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"creditusagereport.d.ts","sourceRoot":"","sources":["../../src/models/components/creditusagereport.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,uBAAuB,EAExB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,oBAAoB,EAErB,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,WAAW;;;CAGd,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,uBAAuB,EAAE,oBAAoB,CAAC;IAC9C;;OAEG;IACH,OAAO,EAAE,IAAI,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC;IAC/C;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,WAAW,EACX,CAAC,CAAC,UAAU,EACZ,OAAO,CAC+B,CAAC;AAEzC,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CAuBP,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
|
|
@@ -36,24 +36,45 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.CreditUsageReport$inboundSchema = void 0;
|
|
39
|
+
exports.CreditUsageReport$inboundSchema = exports.Granularity$inboundSchema = exports.Granularity = void 0;
|
|
40
40
|
exports.creditUsageReportFromJSON = creditUsageReportFromJSON;
|
|
41
41
|
const z = __importStar(require("zod/v3"));
|
|
42
42
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const openEnums = __importStar(require("../../types/enums.js"));
|
|
45
|
+
const creditusagereportperiod_js_1 = require("./creditusagereportperiod.js");
|
|
44
46
|
const sourceusagebreakdown_js_1 = require("./sourceusagebreakdown.js");
|
|
47
|
+
/**
|
|
48
|
+
* The granularity of the report.
|
|
49
|
+
*/
|
|
50
|
+
exports.Granularity = {
|
|
51
|
+
Daily: "daily",
|
|
52
|
+
Monthly: "monthly",
|
|
53
|
+
};
|
|
54
|
+
/** @internal */
|
|
55
|
+
exports.Granularity$inboundSchema = openEnums.inboundSchema(exports.Granularity);
|
|
45
56
|
/** @internal */
|
|
46
57
|
exports.CreditUsageReport$inboundSchema = z.object({
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
58
|
+
credits_consumed_by_consumer: z.string().optional(),
|
|
59
|
+
credits_consumed_by_source: sourceusagebreakdown_js_1.SourceUsageBreakdown$inboundSchema,
|
|
60
|
+
end_time: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
61
|
+
granularity: exports.Granularity$inboundSchema.default("daily"),
|
|
62
|
+
periods: z.nullable(z.array(creditusagereportperiod_js_1.CreditUsageReportPeriod$inboundSchema)),
|
|
63
|
+
start_time: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
64
|
+
total_added: z.number().int(),
|
|
50
65
|
total_consumed: z.number().int(),
|
|
66
|
+
total_expired: z.number().int(),
|
|
67
|
+
transaction_count: z.number().int(),
|
|
51
68
|
}).transform((v) => {
|
|
52
69
|
return (0, primitives_js_1.remap)(v, {
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
70
|
+
"credits_consumed_by_consumer": "creditsConsumedByConsumer",
|
|
71
|
+
"credits_consumed_by_source": "creditsConsumedBySource",
|
|
72
|
+
"end_time": "endTime",
|
|
73
|
+
"start_time": "startTime",
|
|
74
|
+
"total_added": "totalAdded",
|
|
56
75
|
"total_consumed": "totalConsumed",
|
|
76
|
+
"total_expired": "totalExpired",
|
|
77
|
+
"transaction_count": "transactionCount",
|
|
57
78
|
});
|
|
58
79
|
});
|
|
59
80
|
function creditUsageReportFromJSON(jsonString) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditusagereport.js","sourceRoot":"","sources":["../../src/models/components/creditusagereport.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"creditusagereport.js","sourceRoot":"","sources":["../../src/models/components/creditusagereport.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,8BAA8B,EAAE,2BAA2B;QAC3D,4BAA4B,EAAE,yBAAyB;QACvD,UAAU,EAAE,SAAS;QACrB,YAAY,EAAE,WAAW;QACzB,aAAa,EAAE,YAAY;QAC3B,gBAAgB,EAAE,eAAe;QACjC,eAAe,EAAE,cAAc;QAC/B,mBAAmB,EAAE,kBAAkB;KACxC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,yBAAyB,CACvC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type CreditUsageReportPeriod = {
|
|
5
|
+
/**
|
|
6
|
+
* The total amount of credits added during the report period.
|
|
7
|
+
*/
|
|
8
|
+
creditsAdded: number;
|
|
9
|
+
/**
|
|
10
|
+
* The total amount of credits consumed during the report period.
|
|
11
|
+
*/
|
|
12
|
+
creditsConsumed: number;
|
|
13
|
+
/**
|
|
14
|
+
* The total amount of credits expired during the report period.
|
|
15
|
+
*/
|
|
16
|
+
creditsExpired: number;
|
|
17
|
+
/**
|
|
18
|
+
* The end date of the window for this report period.
|
|
19
|
+
*/
|
|
20
|
+
endDate: Date;
|
|
21
|
+
/**
|
|
22
|
+
* The start date of the window for this report period.
|
|
23
|
+
*/
|
|
24
|
+
startDate: Date;
|
|
25
|
+
/**
|
|
26
|
+
* The total number of transactions during the report period.
|
|
27
|
+
*/
|
|
28
|
+
transactionCount: number;
|
|
29
|
+
};
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const CreditUsageReportPeriod$inboundSchema: z.ZodType<CreditUsageReportPeriod, z.ZodTypeDef, unknown>;
|
|
32
|
+
export declare function creditUsageReportPeriodFromJSON(jsonString: string): SafeParseResult<CreditUsageReportPeriod, SDKValidationError>;
|
|
33
|
+
//# sourceMappingURL=creditusagereportperiod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creditusagereportperiod.d.ts","sourceRoot":"","sources":["../../src/models/components/creditusagereportperiod.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,IAAI,CAAC;IACd;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,OAAO,CAiBP,CAAC;AAEH,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.CreditUsageReportPeriod$inboundSchema = void 0;
|
|
40
|
+
exports.creditUsageReportPeriodFromJSON = creditUsageReportPeriodFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.CreditUsageReportPeriod$inboundSchema = z.object({
|
|
46
|
+
credits_added: z.number().int(),
|
|
47
|
+
credits_consumed: z.number().int(),
|
|
48
|
+
credits_expired: z.number().int(),
|
|
49
|
+
end_date: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
50
|
+
start_date: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
51
|
+
transaction_count: z.number().int(),
|
|
52
|
+
}).transform((v) => {
|
|
53
|
+
return (0, primitives_js_1.remap)(v, {
|
|
54
|
+
"credits_added": "creditsAdded",
|
|
55
|
+
"credits_consumed": "creditsConsumed",
|
|
56
|
+
"credits_expired": "creditsExpired",
|
|
57
|
+
"end_date": "endDate",
|
|
58
|
+
"start_date": "startDate",
|
|
59
|
+
"transaction_count": "transactionCount",
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
function creditUsageReportPeriodFromJSON(jsonString) {
|
|
63
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreditUsageReportPeriod$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreditUsageReportPeriod' from JSON`);
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=creditusagereportperiod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creditusagereportperiod.js","sourceRoot":"","sources":["../../src/models/components/creditusagereportperiod.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DH,0EAQC;AAhED,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AA+BjD,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC/B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAClC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACjC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAC3E,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7E,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACpC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,eAAe,EAAE,cAAc;QAC/B,kBAAkB,EAAE,iBAAiB;QACrC,iBAAiB,EAAE,gBAAgB;QACnC,UAAU,EAAE,SAAS;QACrB,YAAY,EAAE,WAAW;QACzB,mBAAmB,EAAE,kBAAkB;KACxC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6CAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
-
import {
|
|
2
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
5
|
/**
|
|
@@ -13,7 +13,7 @@ export declare const AttackComplexity: {
|
|
|
13
13
|
/**
|
|
14
14
|
* Indicates conditions beyond the attacker’s control that must exist in order to exploit the vulnerability. The Attack Complexity metric is scored as either Low or High. There are two possible values: Low (L) – There are no specific pre-conditions required for exploitation, High (H) – The attacker must complete some number of preparatory steps in order to get access.
|
|
15
15
|
*/
|
|
16
|
-
export type AttackComplexity =
|
|
16
|
+
export type AttackComplexity = OpenEnum<typeof AttackComplexity>;
|
|
17
17
|
/**
|
|
18
18
|
* Indicates the level of access required for an attacker to exploit the vulnerability. The Attack Vector metric is scored in one of four levels: Network (N) – Vulnerabilities with this rating are remotely exploitable, from one or more hops away, up to, and including, remote exploitation over the Internet, Adjacent (A) – A vulnerability with this rating requires network adjacency for exploitation. The attack must be launched from the same physical or logical network, Local (L) – Vulnerabilities with this rating are not exploitable over a network, Physical (P) – An attacker must physically interact with the target system.
|
|
19
19
|
*/
|
|
@@ -27,7 +27,7 @@ export declare const AttackVector: {
|
|
|
27
27
|
/**
|
|
28
28
|
* Indicates the level of access required for an attacker to exploit the vulnerability. The Attack Vector metric is scored in one of four levels: Network (N) – Vulnerabilities with this rating are remotely exploitable, from one or more hops away, up to, and including, remote exploitation over the Internet, Adjacent (A) – A vulnerability with this rating requires network adjacency for exploitation. The attack must be launched from the same physical or logical network, Local (L) – Vulnerabilities with this rating are not exploitable over a network, Physical (P) – An attacker must physically interact with the target system.
|
|
29
29
|
*/
|
|
30
|
-
export type AttackVector =
|
|
30
|
+
export type AttackVector = OpenEnum<typeof AttackVector>;
|
|
31
31
|
/**
|
|
32
32
|
* If an attack renders information unavailable, such as when a system crashes or through a DDoS attack, availability is negatively impacted. Availability has three possible values: None (N) – There is no loss of availability, Low (L) – Availability might be intermittently limited, or performance might be negatively impacted, as a result of a successful attack, High (H) – There is a complete loss of availability of the impacted system or information.
|
|
33
33
|
*/
|
|
@@ -40,7 +40,7 @@ export declare const Availability: {
|
|
|
40
40
|
/**
|
|
41
41
|
* If an attack renders information unavailable, such as when a system crashes or through a DDoS attack, availability is negatively impacted. Availability has three possible values: None (N) – There is no loss of availability, Low (L) – Availability might be intermittently limited, or performance might be negatively impacted, as a result of a successful attack, High (H) – There is a complete loss of availability of the impacted system or information.
|
|
42
42
|
*/
|
|
43
|
-
export type Availability =
|
|
43
|
+
export type Availability = OpenEnum<typeof Availability>;
|
|
44
44
|
/**
|
|
45
45
|
* Refers to the disclosure of sensitive information to authorized and unauthorized users, with the goal being that only authorized users are able to access the target data. Confidentiality has three potential values: High (H) – The attacker has full access to all resources in the impacted system, including highly sensitive information such as encryption keys, Low (L) – The attacker has partial access to information, with no control over what, specifically, they are able to access, None (N) – No data is accessible to unauthorized users as a result of the exploit.
|
|
46
46
|
*/
|
|
@@ -53,7 +53,7 @@ export declare const Confidentiality: {
|
|
|
53
53
|
/**
|
|
54
54
|
* Refers to the disclosure of sensitive information to authorized and unauthorized users, with the goal being that only authorized users are able to access the target data. Confidentiality has three potential values: High (H) – The attacker has full access to all resources in the impacted system, including highly sensitive information such as encryption keys, Low (L) – The attacker has partial access to information, with no control over what, specifically, they are able to access, None (N) – No data is accessible to unauthorized users as a result of the exploit.
|
|
55
55
|
*/
|
|
56
|
-
export type Confidentiality =
|
|
56
|
+
export type Confidentiality = OpenEnum<typeof Confidentiality>;
|
|
57
57
|
/**
|
|
58
58
|
* Refers to whether the protected information has been tampered with or changed in any way. If there is no way for an attacker to alter the accuracy or completeness of the information, integrity has been maintained. Integrity has three values: None (N) – There is no loss of the integrity of any information, Low (L) – A limited amount of information might be tampered with or modified, but there is no serious impact on the protected system, High (H) – The attacker can modify any/all information on the target system, resulting in a complete loss of integrity.
|
|
59
59
|
*/
|
|
@@ -66,7 +66,7 @@ export declare const Integrity: {
|
|
|
66
66
|
/**
|
|
67
67
|
* Refers to whether the protected information has been tampered with or changed in any way. If there is no way for an attacker to alter the accuracy or completeness of the information, integrity has been maintained. Integrity has three values: None (N) – There is no loss of the integrity of any information, Low (L) – A limited amount of information might be tampered with or modified, but there is no serious impact on the protected system, High (H) – The attacker can modify any/all information on the target system, resulting in a complete loss of integrity.
|
|
68
68
|
*/
|
|
69
|
-
export type Integrity =
|
|
69
|
+
export type Integrity = OpenEnum<typeof Integrity>;
|
|
70
70
|
/**
|
|
71
71
|
* Describes the level of privileges or access an attacker must have before successful exploitation. There are three possible values: None (N) – There is no privilege or special access required to conduct the attack, Low (L) – The attacker requires basic, “user” level privileges to leverage the exploit, High (H) – Administrative or similar access privileges are required for successful attack.
|
|
72
72
|
*/
|
|
@@ -79,7 +79,7 @@ export declare const PrivilegesRequired: {
|
|
|
79
79
|
/**
|
|
80
80
|
* Describes the level of privileges or access an attacker must have before successful exploitation. There are three possible values: None (N) – There is no privilege or special access required to conduct the attack, Low (L) – The attacker requires basic, “user” level privileges to leverage the exploit, High (H) – Administrative or similar access privileges are required for successful attack.
|
|
81
81
|
*/
|
|
82
|
-
export type PrivilegesRequired =
|
|
82
|
+
export type PrivilegesRequired = OpenEnum<typeof PrivilegesRequired>;
|
|
83
83
|
/**
|
|
84
84
|
* Determines whether a vulnerability in one system or component can impact another system or component. If a vulnerability in a vulnerable component can affect a component which is in a different security scope than the vulnerable component, a scope change occurs. Scope has two possible ratings: Changed (C) – An exploited vulnerability can have a carry over impact on another system, Unchanged (U) – The exploited vulnerability is limited in damage to only the local security authority.
|
|
85
85
|
*/
|
|
@@ -91,7 +91,7 @@ export declare const Scope: {
|
|
|
91
91
|
/**
|
|
92
92
|
* Determines whether a vulnerability in one system or component can impact another system or component. If a vulnerability in a vulnerable component can affect a component which is in a different security scope than the vulnerable component, a scope change occurs. Scope has two possible ratings: Changed (C) – An exploited vulnerability can have a carry over impact on another system, Unchanged (U) – The exploited vulnerability is limited in damage to only the local security authority.
|
|
93
93
|
*/
|
|
94
|
-
export type Scope =
|
|
94
|
+
export type Scope = OpenEnum<typeof Scope>;
|
|
95
95
|
/**
|
|
96
96
|
* Describes whether a user, other than the attacker, is required to do anything or participate in exploitation of the vulnerability. User interaction has two possible values: None (N) – No user interaction is required, Required (R) – A user must complete some steps for the exploit to succeed. For example, a user might be required to install some software.
|
|
97
97
|
*/
|
|
@@ -103,7 +103,7 @@ export declare const UserInteraction: {
|
|
|
103
103
|
/**
|
|
104
104
|
* Describes whether a user, other than the attacker, is required to do anything or participate in exploitation of the vulnerability. User interaction has two possible values: None (N) – No user interaction is required, Required (R) – A user must complete some steps for the exploit to succeed. For example, a user might be required to install some software.
|
|
105
105
|
*/
|
|
106
|
-
export type UserInteraction =
|
|
106
|
+
export type UserInteraction = OpenEnum<typeof UserInteraction>;
|
|
107
107
|
export type CVSSComponents = {
|
|
108
108
|
/**
|
|
109
109
|
* Indicates conditions beyond the attacker’s control that must exist in order to exploit the vulnerability. The Attack Complexity metric is scored as either Low or High. There are two possible values: Low (L) – There are no specific pre-conditions required for exploitation, High (H) – The attacker must complete some number of preparatory steps in order to get access.
|
|
@@ -139,21 +139,21 @@ export type CVSSComponents = {
|
|
|
139
139
|
userInteraction?: UserInteraction | undefined;
|
|
140
140
|
};
|
|
141
141
|
/** @internal */
|
|
142
|
-
export declare const AttackComplexity$inboundSchema: z.
|
|
142
|
+
export declare const AttackComplexity$inboundSchema: z.ZodType<AttackComplexity, z.ZodTypeDef, unknown>;
|
|
143
143
|
/** @internal */
|
|
144
|
-
export declare const AttackVector$inboundSchema: z.
|
|
144
|
+
export declare const AttackVector$inboundSchema: z.ZodType<AttackVector, z.ZodTypeDef, unknown>;
|
|
145
145
|
/** @internal */
|
|
146
|
-
export declare const Availability$inboundSchema: z.
|
|
146
|
+
export declare const Availability$inboundSchema: z.ZodType<Availability, z.ZodTypeDef, unknown>;
|
|
147
147
|
/** @internal */
|
|
148
|
-
export declare const Confidentiality$inboundSchema: z.
|
|
148
|
+
export declare const Confidentiality$inboundSchema: z.ZodType<Confidentiality, z.ZodTypeDef, unknown>;
|
|
149
149
|
/** @internal */
|
|
150
|
-
export declare const Integrity$inboundSchema: z.
|
|
150
|
+
export declare const Integrity$inboundSchema: z.ZodType<Integrity, z.ZodTypeDef, unknown>;
|
|
151
151
|
/** @internal */
|
|
152
|
-
export declare const PrivilegesRequired$inboundSchema: z.
|
|
152
|
+
export declare const PrivilegesRequired$inboundSchema: z.ZodType<PrivilegesRequired, z.ZodTypeDef, unknown>;
|
|
153
153
|
/** @internal */
|
|
154
|
-
export declare const Scope$inboundSchema: z.
|
|
154
|
+
export declare const Scope$inboundSchema: z.ZodType<Scope, z.ZodTypeDef, unknown>;
|
|
155
155
|
/** @internal */
|
|
156
|
-
export declare const UserInteraction$inboundSchema: z.
|
|
156
|
+
export declare const UserInteraction$inboundSchema: z.ZodType<UserInteraction, z.ZodTypeDef, unknown>;
|
|
157
157
|
/** @internal */
|
|
158
158
|
export declare const CVSSComponents$inboundSchema: z.ZodType<CVSSComponents, z.ZodTypeDef, unknown>;
|
|
159
159
|
export declare function cvssComponentsFromJSON(jsonString: string): SafeParseResult<CVSSComponents, SDKValidationError>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cvsscomponents.d.ts","sourceRoot":"","sources":["../../src/models/components/cvsscomponents.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"cvsscomponents.d.ts","sourceRoot":"","sources":["../../src/models/components/cvsscomponents.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEjE;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC;AACX;;GAEG;AACH,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CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CAiBP,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
|
|
@@ -41,6 +41,7 @@ exports.cvssComponentsFromJSON = cvssComponentsFromJSON;
|
|
|
41
41
|
const z = __importStar(require("zod/v3"));
|
|
42
42
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const openEnums = __importStar(require("../../types/enums.js"));
|
|
44
45
|
/**
|
|
45
46
|
* Indicates conditions beyond the attacker’s control that must exist in order to exploit the vulnerability. The Attack Complexity metric is scored as either Low or High. There are two possible values: Low (L) – There are no specific pre-conditions required for exploitation, High (H) – The attacker must complete some number of preparatory steps in order to get access.
|
|
46
47
|
*/
|
|
@@ -112,22 +113,21 @@ exports.UserInteraction = {
|
|
|
112
113
|
Required: "required",
|
|
113
114
|
};
|
|
114
115
|
/** @internal */
|
|
115
|
-
exports.AttackComplexity$inboundSchema =
|
|
116
|
+
exports.AttackComplexity$inboundSchema = openEnums.inboundSchema(exports.AttackComplexity);
|
|
116
117
|
/** @internal */
|
|
117
|
-
exports.AttackVector$inboundSchema =
|
|
118
|
+
exports.AttackVector$inboundSchema = openEnums.inboundSchema(exports.AttackVector);
|
|
118
119
|
/** @internal */
|
|
119
|
-
exports.Availability$inboundSchema =
|
|
120
|
+
exports.Availability$inboundSchema = openEnums.inboundSchema(exports.Availability);
|
|
120
121
|
/** @internal */
|
|
121
|
-
exports.Confidentiality$inboundSchema =
|
|
122
|
+
exports.Confidentiality$inboundSchema = openEnums.inboundSchema(exports.Confidentiality);
|
|
122
123
|
/** @internal */
|
|
123
|
-
exports.Integrity$inboundSchema =
|
|
124
|
-
.nativeEnum(exports.Integrity);
|
|
124
|
+
exports.Integrity$inboundSchema = openEnums.inboundSchema(exports.Integrity);
|
|
125
125
|
/** @internal */
|
|
126
|
-
exports.PrivilegesRequired$inboundSchema =
|
|
126
|
+
exports.PrivilegesRequired$inboundSchema = openEnums.inboundSchema(exports.PrivilegesRequired);
|
|
127
127
|
/** @internal */
|
|
128
|
-
exports.Scope$inboundSchema =
|
|
128
|
+
exports.Scope$inboundSchema = openEnums.inboundSchema(exports.Scope);
|
|
129
129
|
/** @internal */
|
|
130
|
-
exports.UserInteraction$inboundSchema =
|
|
130
|
+
exports.UserInteraction$inboundSchema = openEnums.inboundSchema(exports.UserInteraction);
|
|
131
131
|
/** @internal */
|
|
132
132
|
exports.CVSSComponents$inboundSchema = z.object({
|
|
133
133
|
attack_complexity: exports.AttackComplexity$inboundSchema.optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cvsscomponents.js","sourceRoot":"","sources":["../../src/models/components/cvsscomponents.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"cvsscomponents.js","sourceRoot":"","sources":["../../src/models/components/cvsscomponents.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuOH,wDAQC;AA7OD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AACjD,gEAAkD;AAKlD;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,OAAO,EAAE,EAAE;IACX,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACJ,CAAC;AAMX;;GAEG;AACU,QAAA,YAAY,GAAG;IAC1B,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;CACZ,CAAC;AAMX;;GAEG;AACU,QAAA,YAAY,GAAG;IAC1B,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,MAAM;IACZ,GA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