From d3d9f2806d386df78aa377b736286df8577f8892 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 20 Jul 2026 00:45:38 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.790.2 --- .speakeasy/gen.lock | 96 ++++++++++++------- .speakeasy/gen.yaml | 4 +- .speakeasy/workflow.lock | 14 +-- README-PYPI.md | 8 +- README.md | 8 +- RELEASES.md | 12 ++- docs/models/argocd.md | 10 ++ docs/models/argocdanonymousexposure.md | 11 +++ docs/models/argocdsettings.md | 15 +++ docs/models/argocdsettingsoidcconfig.md | 9 ++ docs/models/endpointscan.md | 1 + docs/models/endpointscanstate.md | 1 + docs/sdks/globaldata/README.md | 18 ++-- pyproject.toml | 2 +- src/censys_platform/_version.py | 8 +- src/censys_platform/global_data.py | 36 +++---- src/censys_platform/models/__init__.py | 26 +++++ src/censys_platform/models/argocd.py | 42 ++++++++ .../models/argocd_anonymousexposure.py | 47 +++++++++ src/censys_platform/models/argocd_settings.py | 67 +++++++++++++ .../models/argocd_settings_oidcconfig.py | 34 +++++++ src/censys_platform/models/endpointscan.py | 5 + .../models/endpointscanstate.py | 5 + src/censys_platform/utils/__init__.py | 4 +- src/censys_platform/utils/datetimes.py | 16 +++- 25 files changed, 416 insertions(+), 83 deletions(-) create mode 100644 docs/models/argocd.md create mode 100644 docs/models/argocdanonymousexposure.md create mode 100644 docs/models/argocdsettings.md create mode 100644 docs/models/argocdsettingsoidcconfig.md create mode 100644 src/censys_platform/models/argocd.py create mode 100644 src/censys_platform/models/argocd_anonymousexposure.py create mode 100644 src/censys_platform/models/argocd_settings.py create mode 100644 src/censys_platform/models/argocd_settings_oidcconfig.py diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 8506c900..4f3804c0 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,25 +1,25 @@ lockVersion: 2.0.0 id: 5ca2c9b7-aea6-4a23-a631-998fcc6c18a8 management: - docChecksum: f6ae0f61affe5a7c38091ba27a08e3e9 - docVersion: 1.0.114 - speakeasyVersion: 1.787.0 - generationVersion: 2.914.0 - releaseVersion: 0.15.1 - configChecksum: e3dd3086fc3f2c33cf694f6bc07a94d3 + docChecksum: 8cfe1dbac9f0a62bb2f9f554b8bc7b37 + docVersion: 1.0.117 + speakeasyVersion: 1.790.2 + generationVersion: 2.918.3 + releaseVersion: 0.15.2 + configChecksum: 8d847036008d0210f3d1aee4c5002164 repoURL: https://github.com/censys/censys-sdk-python.git installationURL: https://github.com/censys/censys-sdk-python.git published: true persistentEdits: - generation_id: c6a6fd83-9394-4be7-80a9-4d055858c3ad - pristine_commit_hash: fa5308cbc7f632440416b356608b7397cbb5cde8 - pristine_tree_hash: aab331b1d0f2d5301b4ddf9890b459dc8b245720 + generation_id: d23072a9-bc2f-4d51-b120-a9d5b9568d66 + pristine_commit_hash: 93906742307aa4e468a6417f2c514a056a0faf1c + pristine_tree_hash: 0dca50ee4e089e3d57ee2211ccff8a291d643cbd features: python: acceptHeaders: 3.0.0 additionalDependencies: 1.1.0 constsAndDefaults: 1.0.7 - core: 6.0.33 + core: 6.0.34 defaultEnabledRetries: 0.2.0 downloadStreams: 1.0.1 enumUnions: 0.1.1 @@ -84,6 +84,22 @@ trackedFiles: id: c8995f9f934b last_write_checksum: sha1:b0a9fcc0d2faee6830d3856b119573cfc6bf2f97 pristine_git_object: 847a34b048907842f5330bb51e0131870a60338c + docs/models/argocd.md: + id: ed9767e5a533 + last_write_checksum: sha1:1b1083af0fe38cb065aec8bee9a914a73c43064c + pristine_git_object: 73ff4328e86ef906f62db63bd0a6f2d05ce803d4 + docs/models/argocdanonymousexposure.md: + id: 5a0063344791 + last_write_checksum: sha1:8db6927dd1b00eaf3b43aaf20bbe46e2f2c20117 + pristine_git_object: 68ad5fa44d65b5cfc057ed6f90904a9069a5ddcb + docs/models/argocdsettings.md: + id: 933c17a8fbd9 + last_write_checksum: sha1:8c3305fd8d6124229c377dc5e1937751d4a0b292 + pristine_git_object: c3e5dc46573f736b88d3fea95c8fb1a211ee615c + docs/models/argocdsettingsoidcconfig.md: + id: 8a4292f311dc + last_write_checksum: sha1:711e78295aa41ec1c13e166333810ee40181c6cb + pristine_git_object: 8562c6ee82c4cfd6388d57c754599df93175bab6 docs/models/assetcertificatelistinputbody.md: id: f025fc3bb8ee last_write_checksum: sha1:e917d6bae83b5ea94b11f2c6c2ce08f3295b34ee @@ -794,16 +810,16 @@ trackedFiles: pristine_git_object: 9c735895110f3b56d5e26c570d15cf143747c533 docs/models/endpointscan.md: id: 74c09badb875 - last_write_checksum: sha1:34c9250a8937318984197de31da311bdbca718ae - pristine_git_object: ee6478093c6bc57b94d1b799c111b8cdc2f96575 + last_write_checksum: sha1:651b6b79357a2ef6d2f26f3fae23f45125c42bd8 + pristine_git_object: a3640e5164deffe24dfcae17c403bd0aaa230b04 docs/models/endpointscanned.md: id: 3ea99f65fa10 last_write_checksum: sha1:ac0e3f51e3b56992018881630868f2145f006767 pristine_git_object: 329a0199b23767a9ae036c09997ed2899f9ddda7 docs/models/endpointscanstate.md: id: e2ee34e6abd2 - last_write_checksum: sha1:1c4691d724972f3810ae8046f4563b98e1aa32b7 - pristine_git_object: 0b7a950d8b1805eecf8cb8d870a2dde4afb20264 + last_write_checksum: sha1:0677e58d1794c230c75302eb248e636f02092c43 + pristine_git_object: 8a0aa811921e5726927f30d2a9a8fe06dc9d9183 docs/models/endpointscanstatetransportprotocol.md: id: 70cde6881504 last_write_checksum: sha1:90077eafdf227363cbd2905d0a204ef01a53e16b @@ -3942,8 +3958,8 @@ trackedFiles: pristine_git_object: 7c00028bb7ac927b2a2a51c23903759c44d6207c docs/sdks/globaldata/README.md: id: 0c68886632e6 - last_write_checksum: sha1:f33437f41944923bef3eb2f3303d27807d8c61cb - pristine_git_object: 4412fe377b910b71bcfe8d0eb8d0fd0cd7e4a709 + last_write_checksum: sha1:7a7ffb2d3a2a50bd17b485fd7dcfe2189e7c0ab9 + pristine_git_object: f66f5a3badb215228cede56c06baf3b42241cf91 docs/sdks/tagsandcomments/README.md: id: 092d693513d0 last_write_checksum: sha1:c1622953e204c9899be112c839bfdd950d78bd46 @@ -3966,8 +3982,8 @@ trackedFiles: pristine_git_object: bfd8691be4b4b5ee9f2c4baf849970d807ade207 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:a71e548a04ba6131cf6694fdceae8db8ba5478ad - pristine_git_object: a0ea16d59940b422586bfc82d325b61974901ac6 + last_write_checksum: sha1:b5ec863976a064b8c22937df6d8cc472aeeccd2d + pristine_git_object: 0e98ebad860baecb68ba58b1687fe3214dbeac0b scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:10d6ae008b24c68e99d7e8ba9c2e747070685ead @@ -3994,8 +4010,8 @@ trackedFiles: pristine_git_object: ec32aa84954b1a51f33327002cacd727eb9ab81e src/censys_platform/_version.py: id: d2dc39704c23 - last_write_checksum: sha1:8f662d35dc68f660500136b6971289e19705615a - pristine_git_object: 3001104a5ead0e0ce386518df8c5da7e3db6e597 + last_write_checksum: sha1:a1cd670bd5f2990d61310ad8175c4df0b8fee19f + pristine_git_object: 5015522581e75d2146a244846d23705b9c4fb3b3 src/censys_platform/account_management.py: id: 09993862b047 last_write_checksum: sha1:bd19db50cb8a422da287a12730ebd3520de2d4ee @@ -4014,16 +4030,16 @@ trackedFiles: pristine_git_object: 6a3f9934fb892e840d0b61300ac27d8a2e53624a src/censys_platform/global_data.py: id: 0eedbf9a2038 - last_write_checksum: sha1:99e33241e890d0fc6668921b76d8e064e7bcf7ae - pristine_git_object: fc8fdf75c6541431553bae897c00b1fbfb3e03ef + last_write_checksum: sha1:d741624d78e3fb536730a052d67ecf558795cd87 + pristine_git_object: c3f105301c9506c59f6bd1b3b2319c09f9067708 src/censys_platform/httpclient.py: id: 9378a19c2de6 last_write_checksum: sha1:5e55338d6ee9f01ab648cad4380201a8a3da7dd7 pristine_git_object: 89560b566073785535643e694c112bedbd3db13d src/censys_platform/models/__init__.py: id: 4c65ae1e4fed - last_write_checksum: sha1:558cc042326518650e8a886c304d87c4d9a375e8 - pristine_git_object: f386290a8d0c1b01297fa657c6c4568c0698c5db + last_write_checksum: sha1:bde8b06c6398b017d229f01d6e770c4d3e99e072 + pristine_git_object: e230e232ba968f7a32c2bd119e82679663d2a064 src/censys_platform/models/activemq.py: id: c852b87bc559 last_write_checksum: sha1:a754dc1ce0647be6304994e4c598c533e0db974e @@ -4056,6 +4072,22 @@ trackedFiles: id: c2f70eef6aae last_write_checksum: sha1:cca0fb4235ef4085927eb9f561b8557c43027d85 pristine_git_object: 775df8d30da45baefa644b30a8515f96adfc7300 + src/censys_platform/models/argocd.py: + id: 353bbd57bbce + last_write_checksum: sha1:0d22fecd3ad9e08fc9e2ed28c801d297a4fcfb7a + pristine_git_object: e7d044b80b829ea38053b1f762d36d48928073be + src/censys_platform/models/argocd_anonymousexposure.py: + id: 7870da175ca0 + last_write_checksum: sha1:a71ef9fa81b71cde33dc553b84cf6e625783db37 + pristine_git_object: d53dc1ccb4da52e3e00466c2c40a3888216e593d + src/censys_platform/models/argocd_settings.py: + id: a7efb53ca18c + last_write_checksum: sha1:921e1cbf4d439855faadcd640de7f2aa7361a001 + pristine_git_object: 2b27ed79487865c7fd2793a2643373fab5ff8aa6 + src/censys_platform/models/argocd_settings_oidcconfig.py: + id: 4531b76f8148 + last_write_checksum: sha1:78c404cff5c4ce7d0720d5c63a8a9179c1ca006e + pristine_git_object: cfb97578ea99627178da7faa8abedd6846d44b3b src/censys_platform/models/assetcertificatelistinputbody.py: id: 1cf737523db8 last_write_checksum: sha1:5720dc2865c0c23948903153456b52d755845080 @@ -4662,16 +4694,16 @@ trackedFiles: pristine_git_object: d3af93915b99c62422a93dbc7f9dae79417c546b src/censys_platform/models/endpointscan.py: id: e9034f3e14f9 - last_write_checksum: sha1:839b8f0aa63a39c21137a63041fbf2dc675dce52 - pristine_git_object: 9fa33b0de0c30966c34e185a4466426bf50d6554 + last_write_checksum: sha1:de87716f1286171c8121dafb8ad5cbe3f1a0ec9d + pristine_git_object: 9de555c445a1571ee38ce0f46a004d990b47afc5 src/censys_platform/models/endpointscanned.py: id: 62ea4d26c40d last_write_checksum: sha1:2afb8006679248fb848b4d2ef87caa4e143f892b pristine_git_object: a9984383bd95fc929bbf9ae60a98068b10155e5f src/censys_platform/models/endpointscanstate.py: id: 7b8f1fb78573 - last_write_checksum: sha1:210ddb98300461215956d47fa37fa61297094211 - pristine_git_object: c1c48bffba46d01d1fcfa481e14c4cd3e47e9fbf + last_write_checksum: sha1:b9d058c077d62a36eba715b694187886834f312e + pristine_git_object: cbea75684905b82ccb8e4d3bb8704652b2ec93f1 src/censys_platform/models/epmd.py: id: 8088ccd12b02 last_write_checksum: sha1:418687e71656a7120501c2af1043db1dfc0b7109 @@ -7054,16 +7086,16 @@ trackedFiles: pristine_git_object: a9a640a1a7048736383f96c67c6290c86bf536ee src/censys_platform/utils/__init__.py: id: 76ac94c422c2 - last_write_checksum: sha1:1970816f2234ecb8785798240b0edced961de971 - pristine_git_object: 0498cb8dabf249b39609f81fb10cddc30f1b78b5 + last_write_checksum: sha1:53c9544397bbc534c45a228feac3cdb2e9017fe6 + pristine_git_object: 7af3b82cf95edc2901bc85b2624c54f39b7f9724 src/censys_platform/utils/annotations.py: id: 259f8dfc4b83 last_write_checksum: sha1:a4824ad65f730303e4e1e3ec1febf87b4eb46dbc pristine_git_object: 12e0aa4f1151bb52474cc02e88397329b90703f6 src/censys_platform/utils/datetimes.py: id: 45311463dfef - last_write_checksum: sha1:c721e4123000e7dc61ec52b28a739439d9e17341 - pristine_git_object: a6c52cd61bbe2d459046c940ce5e8c469f2f0664 + last_write_checksum: sha1:fa47d54c549ff9b95496ce91930fadfb04a36be9 + pristine_git_object: adad24762cf452d137abe94fda0fd26224cef593 src/censys_platform/utils/dynamic_imports.py: id: 01ddee0f294a last_write_checksum: sha1:a1940c63feb8eddfd8026de53384baf5056d5dcc diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 063f5142..4084a8bd 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -29,7 +29,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 0.15.1 + version: 0.15.2 additionalDependencies: dev: {} main: {} @@ -45,6 +45,7 @@ python: constFieldCasing: upper defaultErrorName: SDKError description: Python Client SDK Generated by Speakeasy. + durationFormat: false enableCustomCodeRegions: false enumFormat: enum errorSchemaValidation: true @@ -92,3 +93,4 @@ python: sseFlatResponse: false templateVersion: v2 useAsyncHooks: false + uuidFormat: false diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 7c6b03bd..62f0d49e 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,20 +1,20 @@ -speakeasyVersion: 1.787.0 +speakeasyVersion: 1.790.2 sources: converge-source: sourceNamespace: converge-source - sourceRevisionDigest: sha256:daa8a30f96b04cbd5828be0210d6834ebb3bf353a7b88fb40cf09df517cca982 - sourceBlobDigest: sha256:a665cd982787958631a36444539314aeab2fac9b4133438a89e5a1d2b7db491d + sourceRevisionDigest: sha256:7e1f7b92939556e1c60376539f6347a02fc702d116905983c29737b26db7e12d + sourceBlobDigest: sha256:9879d71323bf3fbfc16a17da715b02a5a6171fbb6d5c8769fa64922669bef1ee tags: - latest - - 1.0.114 + - 1.0.117 targets: censys-sdk-python: source: converge-source sourceNamespace: converge-source - sourceRevisionDigest: sha256:daa8a30f96b04cbd5828be0210d6834ebb3bf353a7b88fb40cf09df517cca982 - sourceBlobDigest: sha256:a665cd982787958631a36444539314aeab2fac9b4133438a89e5a1d2b7db491d + sourceRevisionDigest: sha256:7e1f7b92939556e1c60376539f6347a02fc702d116905983c29737b26db7e12d + sourceBlobDigest: sha256:9879d71323bf3fbfc16a17da715b02a5a6171fbb6d5c8769fa64922669bef1ee codeSamplesNamespace: converge-source-python-code-samples - codeSamplesRevisionDigest: sha256:b684838ba0e36568897fd77a786c52a8f4842198dae7d4d556d9efbd6a4a055b + codeSamplesRevisionDigest: sha256:db672ea3fa803dd120911710ed26e0a3c91bb4f57555f35ceff3e78ecbb0dc5d workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README-PYPI.md b/README-PYPI.md index 70d160e6..5782d76a 100644 --- a/README-PYPI.md +++ b/README-PYPI.md @@ -225,10 +225,10 @@ asyncio.run(main()) * [get_host_timeline](https://github.com/censys/censys-sdk-python/blob/master/docs/sdks/globaldata/README.md#get_host_timeline) - Get host event history * [get_web_properties](https://github.com/censys/censys-sdk-python/blob/master/docs/sdks/globaldata/README.md#get_web_properties) - Retrieve multiple web properties * [get_web_property](https://github.com/censys/censys-sdk-python/blob/master/docs/sdks/globaldata/README.md#get_web_property) - Get a web property -* [list_dns_ip_resolution_bounds](https://github.com/censys/censys-sdk-python/blob/master/docs/sdks/globaldata/README.md#list_dns_ip_resolution_bounds) - Get latest DNS names that resolved to an IP -* [list_dns_ip_resolution_ranges](https://github.com/censys/censys-sdk-python/blob/master/docs/sdks/globaldata/README.md#list_dns_ip_resolution_ranges) - Get DNS names that resolved to an IP within a time window -* [list_dns_name_resolution_bounds](https://github.com/censys/censys-sdk-python/blob/master/docs/sdks/globaldata/README.md#list_dns_name_resolution_bounds) - Get latest DNS resolution records for a name -* [list_dns_name_resolution_ranges](https://github.com/censys/censys-sdk-python/blob/master/docs/sdks/globaldata/README.md#list_dns_name_resolution_ranges) - Get historical DNS resolution ranges for a name +* [list_dns_ip_resolution_bounds](https://github.com/censys/censys-sdk-python/blob/master/docs/sdks/globaldata/README.md#list_dns_ip_resolution_bounds) - Get DNS names that resolved to an IP (aggregated bounds) +* [list_dns_ip_resolution_ranges](https://github.com/censys/censys-sdk-python/blob/master/docs/sdks/globaldata/README.md#list_dns_ip_resolution_ranges) - Get DNS names that resolved to an IP (ranges) +* [list_dns_name_resolution_bounds](https://github.com/censys/censys-sdk-python/blob/master/docs/sdks/globaldata/README.md#list_dns_name_resolution_bounds) - Get DNS resolution records for a name (aggregated bounds) +* [list_dns_name_resolution_ranges](https://github.com/censys/censys-sdk-python/blob/master/docs/sdks/globaldata/README.md#list_dns_name_resolution_ranges) - Get DNS resolution records for a name (ranges) * [create_tracked_scan](https://github.com/censys/censys-sdk-python/blob/master/docs/sdks/globaldata/README.md#create_tracked_scan) - Live Rescan: Initiate a new rescan * [get_tracked_scan](https://github.com/censys/censys-sdk-python/blob/master/docs/sdks/globaldata/README.md#get_tracked_scan) - Get scan status * [aggregate](https://github.com/censys/censys-sdk-python/blob/master/docs/sdks/globaldata/README.md#aggregate) - Aggregate results for a search query diff --git a/README.md b/README.md index eade3692..5505836e 100644 --- a/README.md +++ b/README.md @@ -225,10 +225,10 @@ asyncio.run(main()) * [get_host_timeline](docs/sdks/globaldata/README.md#get_host_timeline) - Get host event history * [get_web_properties](docs/sdks/globaldata/README.md#get_web_properties) - Retrieve multiple web properties * [get_web_property](docs/sdks/globaldata/README.md#get_web_property) - Get a web property -* [list_dns_ip_resolution_bounds](docs/sdks/globaldata/README.md#list_dns_ip_resolution_bounds) - Get latest DNS names that resolved to an IP -* [list_dns_ip_resolution_ranges](docs/sdks/globaldata/README.md#list_dns_ip_resolution_ranges) - Get DNS names that resolved to an IP within a time window -* [list_dns_name_resolution_bounds](docs/sdks/globaldata/README.md#list_dns_name_resolution_bounds) - Get latest DNS resolution records for a name -* [list_dns_name_resolution_ranges](docs/sdks/globaldata/README.md#list_dns_name_resolution_ranges) - Get historical DNS resolution ranges for a name +* [list_dns_ip_resolution_bounds](docs/sdks/globaldata/README.md#list_dns_ip_resolution_bounds) - Get DNS names that resolved to an IP (aggregated bounds) +* [list_dns_ip_resolution_ranges](docs/sdks/globaldata/README.md#list_dns_ip_resolution_ranges) - Get DNS names that resolved to an IP (ranges) +* [list_dns_name_resolution_bounds](docs/sdks/globaldata/README.md#list_dns_name_resolution_bounds) - Get DNS resolution records for a name (aggregated bounds) +* [list_dns_name_resolution_ranges](docs/sdks/globaldata/README.md#list_dns_name_resolution_ranges) - Get DNS resolution records for a name (ranges) * [create_tracked_scan](docs/sdks/globaldata/README.md#create_tracked_scan) - Live Rescan: Initiate a new rescan * [get_tracked_scan](docs/sdks/globaldata/README.md#get_tracked_scan) - Get scan status * [aggregate](docs/sdks/globaldata/README.md#aggregate) - Aggregate results for a search query diff --git a/RELEASES.md b/RELEASES.md index 82dcaf25..64c6064b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -346,4 +346,14 @@ Based on: ### Generated - [python v0.15.1] . ### Releases -- [PyPI v0.15.1] https://pypi.org/project/censys-platform/0.15.1 - . \ No newline at end of file +- [PyPI v0.15.1] https://pypi.org/project/censys-platform/0.15.1 - . + +## 2026-07-20 00:44:00 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.790.2 (2.918.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.15.2] . +### Releases +- [PyPI v0.15.2] https://pypi.org/project/censys-platform/0.15.2 - . \ No newline at end of file diff --git a/docs/models/argocd.md b/docs/models/argocd.md new file mode 100644 index 00000000..73ff4328 --- /dev/null +++ b/docs/models/argocd.md @@ -0,0 +1,10 @@ +# Argocd + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `anonymous_exposure` | [Optional[models.ArgocdAnonymousExposure]](../models/argocdanonymousexposure.md) | :heavy_minus_sign: | N/A | +| `settings` | [Optional[models.ArgocdSettings]](../models/argocdsettings.md) | :heavy_minus_sign: | N/A | +| `version` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/argocdanonymousexposure.md b/docs/models/argocdanonymousexposure.md new file mode 100644 index 00000000..68ad5fa4 --- /dev/null +++ b/docs/models/argocdanonymousexposure.md @@ -0,0 +1,11 @@ +# ArgocdAnonymousExposure + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `application_count` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `applications_anonymously_readable` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `cluster_count` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `clusters_anonymously_readable` | *Optional[bool]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/argocdsettings.md b/docs/models/argocdsettings.md new file mode 100644 index 00000000..c3e5dc46 --- /dev/null +++ b/docs/models/argocdsettings.md @@ -0,0 +1,15 @@ +# ArgocdSettings + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `apps_in_any_namespace_enabled` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `exec_enabled` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `impersonation_enabled` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `installation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `oidc_config` | [Optional[models.ArgocdSettingsOIDCConfig]](../models/argocdsettingsoidcconfig.md) | :heavy_minus_sign: | N/A | +| `sync_with_replace_allowed` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `url` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `user_logins_disabled` | *Optional[bool]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/argocdsettingsoidcconfig.md b/docs/models/argocdsettingsoidcconfig.md new file mode 100644 index 00000000..8562c6ee --- /dev/null +++ b/docs/models/argocdsettingsoidcconfig.md @@ -0,0 +1,9 @@ +# ArgocdSettingsOIDCConfig + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `client_id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `issuer` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/endpointscan.md b/docs/models/endpointscan.md index ee647809..a3640e51 100644 --- a/docs/models/endpointscan.md +++ b/docs/models/endpointscan.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `argocd` | [Optional[models.Argocd]](../models/argocd.md) | :heavy_minus_sign: | N/A | | `banner` | *Optional[str]* | :heavy_minus_sign: | N/A | | `banner_hash_sha256` | *Optional[str]* | :heavy_minus_sign: | N/A | | `chrome_devtools` | [Optional[models.ChromeDevtools]](../models/chromedevtools.md) | :heavy_minus_sign: | N/A | diff --git a/docs/models/endpointscanstate.md b/docs/models/endpointscanstate.md index 0b7a950d..8a0aa811 100644 --- a/docs/models/endpointscanstate.md +++ b/docs/models/endpointscanstate.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `argocd` | [Optional[models.Argocd]](../models/argocd.md) | :heavy_minus_sign: | N/A | | `banner` | *Optional[str]* | :heavy_minus_sign: | N/A | | `banner_hash_sha256` | *Optional[str]* | :heavy_minus_sign: | N/A | | `chrome_devtools` | [Optional[models.ChromeDevtools]](../models/chromedevtools.md) | :heavy_minus_sign: | N/A | diff --git a/docs/sdks/globaldata/README.md b/docs/sdks/globaldata/README.md index 4412fe37..f66f5a3b 100644 --- a/docs/sdks/globaldata/README.md +++ b/docs/sdks/globaldata/README.md @@ -17,10 +17,10 @@ Endpoints related to the Global Data product * [get_host_timeline](#get_host_timeline) - Get host event history * [get_web_properties](#get_web_properties) - Retrieve multiple web properties * [get_web_property](#get_web_property) - Get a web property -* [list_dns_ip_resolution_bounds](#list_dns_ip_resolution_bounds) - Get latest DNS names that resolved to an IP -* [list_dns_ip_resolution_ranges](#list_dns_ip_resolution_ranges) - Get DNS names that resolved to an IP within a time window -* [list_dns_name_resolution_bounds](#list_dns_name_resolution_bounds) - Get latest DNS resolution records for a name -* [list_dns_name_resolution_ranges](#list_dns_name_resolution_ranges) - Get historical DNS resolution ranges for a name +* [list_dns_ip_resolution_bounds](#list_dns_ip_resolution_bounds) - Get DNS names that resolved to an IP (aggregated bounds) +* [list_dns_ip_resolution_ranges](#list_dns_ip_resolution_ranges) - Get DNS names that resolved to an IP (ranges) +* [list_dns_name_resolution_bounds](#list_dns_name_resolution_bounds) - Get DNS resolution records for a name (aggregated bounds) +* [list_dns_name_resolution_ranges](#list_dns_name_resolution_ranges) - Get DNS resolution records for a name (ranges) * [create_tracked_scan](#create_tracked_scan) - Live Rescan: Initiate a new rescan * [get_tracked_scan](#get_tracked_scan) - Get scan status * [aggregate](#aggregate) - Aggregate results for a search query @@ -213,7 +213,7 @@ with SDK( ## get_host_enrichment -Retrieve enrichment data for a single host, optimized for high-volume SOC enrichment use cases. A host IP is its IP address. +Retrieve enrichment data for a single host. This endpoint is optimized for high-volume SOC enrichment use cases.

This endpoint does not consume standard Censys credits. Core organizations may perform up to 20,000 enrichment calls per day. Core + Unlimited Enrichment organizations may perform an unlimited amount of enrichment calls per day.

[Learn more about the enrichment API here](https://docs.censys.com/docs/host-enrichment). ### Example Usage @@ -548,7 +548,7 @@ with SDK( ## list_dns_ip_resolution_bounds -Retrieve the latest domain names that resolved to the IP you provide (A and AAAA). You can narrow results with `record_types` (A or AAAA).

[Learn more about Censys Active DNS Resolution](https://docs.censys.com/docs/platform-active-dns).

This endpoint is in beta and is only available to Censys Enterprise users. +Retrieve the domain names that resolved to an IP during a time frame. You can narrow results with `record_types` (A or AAAA).

Results are aggregated per domain name and multiple distinct ranges for a name will be grouped into one row of results. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will group those ranges into one entry for `censys.com` in the response.

To retrieve domain names for an IP with each record broken down by time range, use the [ranges endpoint](https://docs.censys.com/reference/v3-globaldata-dns-ip-resolution-ranges)

This endpoint is only available to organizations on the Censys Search and Censys Core plans.

[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns). ### Example Usage @@ -600,7 +600,7 @@ with SDK( ## list_dns_ip_resolution_ranges -Retrieve domain names that resolved to the IP you provide (A and AAAA) within the requested time window.

[Learn more about Censys Active DNS Resolution](https://docs.censys.com/docs/platform-active-dns).

This endpoint is in beta and is only available to Censys Enterprise users. +Retrieve the domain names that resolved to an IP during a time frame. You can narrow results with `record_types` (A or AAAA).

Record results are broken down based on time range. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will return one row for each of those distinct ranges.

To retrieve domain names for an IP with each result aggregated by name, use the [bounds endpoint endpoint](https://docs.censys.com/reference/v3-globaldata-dns-ip-resolution-bound).

This endpoint is only available to organizations on the Censys Search and Censys Core plans.

[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns). ### Example Usage @@ -653,7 +653,7 @@ with SDK( ## list_dns_name_resolution_bounds -Retrieve the latest DNS resolution records for a name. This endpoint returns the latest observed A, AAAA, MX, NS, SOA, and TXT records for the name you provide. You can filter by one or more record types using `record_types`.

[Learn more about Censys Active DNS Resolution](https://docs.censys.com/docs/platform-active-dns).

This endpoint is in beta and is only available to Censys Enterprise users. +Retrieve the DNS resolution records for a name. This endpoint returns observed A, AAAA, MX, NS, SOA, and TXT records for the name you provide. You can filter by one or more record types using record_types.

Results are aggregated per record distinct ranges for a record will be grouped into one row of results. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will group those ranges into one entry for the `1.1.1.1` A record in the response.

To retrieve records for a name with each record broken down by time range, use the [ranges endpoint](https://docs.censys.com/reference/v3-globaldata-dns-name-resolution-ranges).

This endpoint is only available to organizations on the Censys Search and Censys Core plans.

[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns). ### Example Usage @@ -705,7 +705,7 @@ with SDK( ## list_dns_name_resolution_ranges -Retrieve historical DNS resolution observations for a name. Each item is one window during which a record value was observed by Censys.

[Learn more about Censys Active DNS Resolution](https://docs.censys.com/docs/platform-active-dns).

This endpoint is in beta and is only available to Censys Enterprise users. +Retrieve the records that resolved for a name during a time frame. This endpoint returns observed A, AAAA, MX, NS, SOA, and TXT records for the name you provide. You can filter by one or more record types using `record_types`.

Record results are broken down based on time range. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will return one row for each of those distinct ranges for the `1.1.1.1` A record.

To retrieve records for a name with each result aggregated per record, use the [bounds endpoint endpoint](https://docs.censys.com/reference/v3-globaldata-dns-name-resolution-bound).

This endpoint is only available to organizations on the Censys Search and Censys Core plans.

[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns). ### Example Usage diff --git a/pyproject.toml b/pyproject.toml index a0ea16d5..0e98ebad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "censys-platform" -version = "0.15.1" +version = "0.15.2" description = "Python Client SDK Generated by Speakeasy." authors = [{ name = "Speakeasy" },] readme = "README-PYPI.md" diff --git a/src/censys_platform/_version.py b/src/censys_platform/_version.py index 3001104a..50155225 100644 --- a/src/censys_platform/_version.py +++ b/src/censys_platform/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "censys-platform" -__version__: str = "0.15.1" -__openapi_doc_version__: str = "1.0.114" -__gen_version__: str = "2.914.0" -__user_agent__: str = "speakeasy-sdk/python 0.15.1 2.914.0 1.0.114 censys-platform" +__version__: str = "0.15.2" +__openapi_doc_version__: str = "1.0.117" +__gen_version__: str = "2.918.3" +__user_agent__: str = "speakeasy-sdk/python 0.15.2 2.918.3 1.0.117 censys-platform" try: if __package__ is not None: diff --git a/src/censys_platform/global_data.py b/src/censys_platform/global_data.py index fc8fdf75..c3f10530 100644 --- a/src/censys_platform/global_data.py +++ b/src/censys_platform/global_data.py @@ -964,7 +964,7 @@ def get_host_enrichment( ) -> models.V3GlobaldataAssetHostEnrichmentResponse: r"""Get host enrichment - Retrieve enrichment data for a single host, optimized for high-volume SOC enrichment use cases. A host IP is its IP address. + Retrieve enrichment data for a single host. This endpoint is optimized for high-volume SOC enrichment use cases.

This endpoint does not consume standard Censys credits. Core organizations may perform up to 20,000 enrichment calls per day. Core + Unlimited Enrichment organizations may perform an unlimited amount of enrichment calls per day.

[Learn more about the enrichment API here](https://docs.censys.com/docs/host-enrichment). :param host_ip: The IP address of a host. :param organization_id: The ID of a Censys organization to associate the request with. See the [Getting Started docs](https://docs.censys.com/reference/get-started#step-3-find-and-use-your-organization-id-optional) for more information. @@ -1075,7 +1075,7 @@ async def get_host_enrichment_async( ) -> models.V3GlobaldataAssetHostEnrichmentResponse: r"""Get host enrichment - Retrieve enrichment data for a single host, optimized for high-volume SOC enrichment use cases. A host IP is its IP address. + Retrieve enrichment data for a single host. This endpoint is optimized for high-volume SOC enrichment use cases.

This endpoint does not consume standard Censys credits. Core organizations may perform up to 20,000 enrichment calls per day. Core + Unlimited Enrichment organizations may perform an unlimited amount of enrichment calls per day.

[Learn more about the enrichment API here](https://docs.censys.com/docs/host-enrichment). :param host_ip: The IP address of a host. :param organization_id: The ID of a Censys organization to associate the request with. See the [Getting Started docs](https://docs.censys.com/reference/get-started#step-3-find-and-use-your-organization-id-optional) for more information. @@ -2584,9 +2584,9 @@ def list_dns_ip_resolution_bounds( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.V3GlobaldataDNSIPResolutionBoundResponse: - r"""Get latest DNS names that resolved to an IP + r"""Get DNS names that resolved to an IP (aggregated bounds) - Retrieve the latest domain names that resolved to the IP you provide (A and AAAA). You can narrow results with `record_types` (A or AAAA).

[Learn more about Censys Active DNS Resolution](https://docs.censys.com/docs/platform-active-dns).

This endpoint is in beta and is only available to Censys Enterprise users. + Retrieve the domain names that resolved to an IP during a time frame. You can narrow results with `record_types` (A or AAAA).

Results are aggregated per domain name and multiple distinct ranges for a name will be grouped into one row of results. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will group those ranges into one entry for `censys.com` in the response.

To retrieve domain names for an IP with each record broken down by time range, use the [ranges endpoint](https://docs.censys.com/reference/v3-globaldata-dns-ip-resolution-ranges)

This endpoint is only available to organizations on the Censys Search and Censys Core plans.

[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns). :param request: The request object to send. :param retries: Override the default retry configuration for this method @@ -2695,9 +2695,9 @@ async def list_dns_ip_resolution_bounds_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.V3GlobaldataDNSIPResolutionBoundResponse: - r"""Get latest DNS names that resolved to an IP + r"""Get DNS names that resolved to an IP (aggregated bounds) - Retrieve the latest domain names that resolved to the IP you provide (A and AAAA). You can narrow results with `record_types` (A or AAAA).

[Learn more about Censys Active DNS Resolution](https://docs.censys.com/docs/platform-active-dns).

This endpoint is in beta and is only available to Censys Enterprise users. + Retrieve the domain names that resolved to an IP during a time frame. You can narrow results with `record_types` (A or AAAA).

Results are aggregated per domain name and multiple distinct ranges for a name will be grouped into one row of results. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will group those ranges into one entry for `censys.com` in the response.

To retrieve domain names for an IP with each record broken down by time range, use the [ranges endpoint](https://docs.censys.com/reference/v3-globaldata-dns-ip-resolution-ranges)

This endpoint is only available to organizations on the Censys Search and Censys Core plans.

[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns). :param request: The request object to send. :param retries: Override the default retry configuration for this method @@ -2806,9 +2806,9 @@ def list_dns_ip_resolution_ranges( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.V3GlobaldataDNSIPResolutionRangesResponse: - r"""Get DNS names that resolved to an IP within a time window + r"""Get DNS names that resolved to an IP (ranges) - Retrieve domain names that resolved to the IP you provide (A and AAAA) within the requested time window.

[Learn more about Censys Active DNS Resolution](https://docs.censys.com/docs/platform-active-dns).

This endpoint is in beta and is only available to Censys Enterprise users. + Retrieve the domain names that resolved to an IP during a time frame. You can narrow results with `record_types` (A or AAAA).

Record results are broken down based on time range. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will return one row for each of those distinct ranges.

To retrieve domain names for an IP with each result aggregated by name, use the [bounds endpoint endpoint](https://docs.censys.com/reference/v3-globaldata-dns-ip-resolution-bound).

This endpoint is only available to organizations on the Censys Search and Censys Core plans.

[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns). :param request: The request object to send. :param retries: Override the default retry configuration for this method @@ -2917,9 +2917,9 @@ async def list_dns_ip_resolution_ranges_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.V3GlobaldataDNSIPResolutionRangesResponse: - r"""Get DNS names that resolved to an IP within a time window + r"""Get DNS names that resolved to an IP (ranges) - Retrieve domain names that resolved to the IP you provide (A and AAAA) within the requested time window.

[Learn more about Censys Active DNS Resolution](https://docs.censys.com/docs/platform-active-dns).

This endpoint is in beta and is only available to Censys Enterprise users. + Retrieve the domain names that resolved to an IP during a time frame. You can narrow results with `record_types` (A or AAAA).

Record results are broken down based on time range. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will return one row for each of those distinct ranges.

To retrieve domain names for an IP with each result aggregated by name, use the [bounds endpoint endpoint](https://docs.censys.com/reference/v3-globaldata-dns-ip-resolution-bound).

This endpoint is only available to organizations on the Censys Search and Censys Core plans.

[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns). :param request: The request object to send. :param retries: Override the default retry configuration for this method @@ -3028,9 +3028,9 @@ def list_dns_name_resolution_bounds( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.V3GlobaldataDNSNameResolutionBoundResponse: - r"""Get latest DNS resolution records for a name + r"""Get DNS resolution records for a name (aggregated bounds) - Retrieve the latest DNS resolution records for a name. This endpoint returns the latest observed A, AAAA, MX, NS, SOA, and TXT records for the name you provide. You can filter by one or more record types using `record_types`.

[Learn more about Censys Active DNS Resolution](https://docs.censys.com/docs/platform-active-dns).

This endpoint is in beta and is only available to Censys Enterprise users. + Retrieve the DNS resolution records for a name. This endpoint returns observed A, AAAA, MX, NS, SOA, and TXT records for the name you provide. You can filter by one or more record types using record_types.

Results are aggregated per record distinct ranges for a record will be grouped into one row of results. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will group those ranges into one entry for the `1.1.1.1` A record in the response.

To retrieve records for a name with each record broken down by time range, use the [ranges endpoint](https://docs.censys.com/reference/v3-globaldata-dns-name-resolution-ranges).

This endpoint is only available to organizations on the Censys Search and Censys Core plans.

[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns). :param request: The request object to send. :param retries: Override the default retry configuration for this method @@ -3139,9 +3139,9 @@ async def list_dns_name_resolution_bounds_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.V3GlobaldataDNSNameResolutionBoundResponse: - r"""Get latest DNS resolution records for a name + r"""Get DNS resolution records for a name (aggregated bounds) - Retrieve the latest DNS resolution records for a name. This endpoint returns the latest observed A, AAAA, MX, NS, SOA, and TXT records for the name you provide. You can filter by one or more record types using `record_types`.

[Learn more about Censys Active DNS Resolution](https://docs.censys.com/docs/platform-active-dns).

This endpoint is in beta and is only available to Censys Enterprise users. + Retrieve the DNS resolution records for a name. This endpoint returns observed A, AAAA, MX, NS, SOA, and TXT records for the name you provide. You can filter by one or more record types using record_types.

Results are aggregated per record distinct ranges for a record will be grouped into one row of results. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will group those ranges into one entry for the `1.1.1.1` A record in the response.

To retrieve records for a name with each record broken down by time range, use the [ranges endpoint](https://docs.censys.com/reference/v3-globaldata-dns-name-resolution-ranges).

This endpoint is only available to organizations on the Censys Search and Censys Core plans.

[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns). :param request: The request object to send. :param retries: Override the default retry configuration for this method @@ -3250,9 +3250,9 @@ def list_dns_name_resolution_ranges( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.V3GlobaldataDNSNameResolutionRangesResponse: - r"""Get historical DNS resolution ranges for a name + r"""Get DNS resolution records for a name (ranges) - Retrieve historical DNS resolution observations for a name. Each item is one window during which a record value was observed by Censys.

[Learn more about Censys Active DNS Resolution](https://docs.censys.com/docs/platform-active-dns).

This endpoint is in beta and is only available to Censys Enterprise users. + Retrieve the records that resolved for a name during a time frame. This endpoint returns observed A, AAAA, MX, NS, SOA, and TXT records for the name you provide. You can filter by one or more record types using `record_types`.

Record results are broken down based on time range. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will return one row for each of those distinct ranges for the `1.1.1.1` A record.

To retrieve records for a name with each result aggregated per record, use the [bounds endpoint endpoint](https://docs.censys.com/reference/v3-globaldata-dns-name-resolution-bound).

This endpoint is only available to organizations on the Censys Search and Censys Core plans.

[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns). :param request: The request object to send. :param retries: Override the default retry configuration for this method @@ -3361,9 +3361,9 @@ async def list_dns_name_resolution_ranges_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.V3GlobaldataDNSNameResolutionRangesResponse: - r"""Get historical DNS resolution ranges for a name + r"""Get DNS resolution records for a name (ranges) - Retrieve historical DNS resolution observations for a name. Each item is one window during which a record value was observed by Censys.

[Learn more about Censys Active DNS Resolution](https://docs.censys.com/docs/platform-active-dns).

This endpoint is in beta and is only available to Censys Enterprise users. + Retrieve the records that resolved for a name during a time frame. This endpoint returns observed A, AAAA, MX, NS, SOA, and TXT records for the name you provide. You can filter by one or more record types using `record_types`.

Record results are broken down based on time range. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will return one row for each of those distinct ranges for the `1.1.1.1` A record.

To retrieve records for a name with each result aggregated per record, use the [bounds endpoint endpoint](https://docs.censys.com/reference/v3-globaldata-dns-name-resolution-bound).

This endpoint is only available to organizations on the Censys Search and Censys Core plans.

[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns). :param request: The request object to send. :param retries: Override the default retry configuration for this method diff --git a/src/censys_platform/models/__init__.py b/src/censys_platform/models/__init__.py index f386290a..e230e232 100644 --- a/src/censys_platform/models/__init__.py +++ b/src/censys_platform/models/__init__.py @@ -17,6 +17,16 @@ ) from .anermacfforth import AnermaCfForth, AnermaCfForthTypedDict from .anyconnect import AnyConnect, AnyConnectTypedDict + from .argocd import Argocd, ArgocdTypedDict + from .argocd_anonymousexposure import ( + ArgocdAnonymousExposure, + ArgocdAnonymousExposureTypedDict, + ) + from .argocd_settings import ArgocdSettings, ArgocdSettingsTypedDict + from .argocd_settings_oidcconfig import ( + ArgocdSettingsOIDCConfig, + ArgocdSettingsOIDCConfigTypedDict, + ) from .assetcertificatelistinputbody import ( AssetCertificateListInputBody, AssetCertificateListInputBodyTypedDict, @@ -1952,6 +1962,14 @@ "AnermaCfForthTypedDict", "AnyConnect", "AnyConnectTypedDict", + "Argocd", + "ArgocdAnonymousExposure", + "ArgocdAnonymousExposureTypedDict", + "ArgocdSettings", + "ArgocdSettingsOIDCConfig", + "ArgocdSettingsOIDCConfigTypedDict", + "ArgocdSettingsTypedDict", + "ArgocdTypedDict", "AssetCertificateListInputBody", "AssetCertificateListInputBodyTypedDict", "AssetChangeTypes", @@ -3796,6 +3814,14 @@ "AnermaCfForthTypedDict": ".anermacfforth", "AnyConnect": ".anyconnect", "AnyConnectTypedDict": ".anyconnect", + "Argocd": ".argocd", + "ArgocdTypedDict": ".argocd", + "ArgocdAnonymousExposure": ".argocd_anonymousexposure", + "ArgocdAnonymousExposureTypedDict": ".argocd_anonymousexposure", + "ArgocdSettings": ".argocd_settings", + "ArgocdSettingsTypedDict": ".argocd_settings", + "ArgocdSettingsOIDCConfig": ".argocd_settings_oidcconfig", + "ArgocdSettingsOIDCConfigTypedDict": ".argocd_settings_oidcconfig", "AssetCertificateListInputBody": ".assetcertificatelistinputbody", "AssetCertificateListInputBodyTypedDict": ".assetcertificatelistinputbody", "AssetHostListInputBody": ".assethostlistinputbody", diff --git a/src/censys_platform/models/argocd.py b/src/censys_platform/models/argocd.py new file mode 100644 index 00000000..e7d044b8 --- /dev/null +++ b/src/censys_platform/models/argocd.py @@ -0,0 +1,42 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .argocd_anonymousexposure import ( + ArgocdAnonymousExposure, + ArgocdAnonymousExposureTypedDict, +) +from .argocd_settings import ArgocdSettings, ArgocdSettingsTypedDict +from censys_platform.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer +from typing import Optional +from typing_extensions import NotRequired, TypedDict + + +class ArgocdTypedDict(TypedDict): + anonymous_exposure: NotRequired[ArgocdAnonymousExposureTypedDict] + settings: NotRequired[ArgocdSettingsTypedDict] + version: NotRequired[str] + + +class Argocd(BaseModel): + anonymous_exposure: Optional[ArgocdAnonymousExposure] = None + + settings: Optional[ArgocdSettings] = None + + version: Optional[str] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["anonymous_exposure", "settings", "version"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/censys_platform/models/argocd_anonymousexposure.py b/src/censys_platform/models/argocd_anonymousexposure.py new file mode 100644 index 00000000..d53dc1cc --- /dev/null +++ b/src/censys_platform/models/argocd_anonymousexposure.py @@ -0,0 +1,47 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from censys_platform.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer +from typing import Optional +from typing_extensions import NotRequired, TypedDict + + +class ArgocdAnonymousExposureTypedDict(TypedDict): + application_count: NotRequired[int] + applications_anonymously_readable: NotRequired[bool] + cluster_count: NotRequired[int] + clusters_anonymously_readable: NotRequired[bool] + + +class ArgocdAnonymousExposure(BaseModel): + application_count: Optional[int] = None + + applications_anonymously_readable: Optional[bool] = None + + cluster_count: Optional[int] = None + + clusters_anonymously_readable: Optional[bool] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + [ + "application_count", + "applications_anonymously_readable", + "cluster_count", + "clusters_anonymously_readable", + ] + ) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/censys_platform/models/argocd_settings.py b/src/censys_platform/models/argocd_settings.py new file mode 100644 index 00000000..2b27ed79 --- /dev/null +++ b/src/censys_platform/models/argocd_settings.py @@ -0,0 +1,67 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .argocd_settings_oidcconfig import ( + ArgocdSettingsOIDCConfig, + ArgocdSettingsOIDCConfigTypedDict, +) +from censys_platform.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer +from typing import Optional +from typing_extensions import NotRequired, TypedDict + + +class ArgocdSettingsTypedDict(TypedDict): + apps_in_any_namespace_enabled: NotRequired[bool] + exec_enabled: NotRequired[bool] + impersonation_enabled: NotRequired[bool] + installation_id: NotRequired[str] + oidc_config: NotRequired[ArgocdSettingsOIDCConfigTypedDict] + sync_with_replace_allowed: NotRequired[bool] + url: NotRequired[str] + user_logins_disabled: NotRequired[bool] + + +class ArgocdSettings(BaseModel): + apps_in_any_namespace_enabled: Optional[bool] = None + + exec_enabled: Optional[bool] = None + + impersonation_enabled: Optional[bool] = None + + installation_id: Optional[str] = None + + oidc_config: Optional[ArgocdSettingsOIDCConfig] = None + + sync_with_replace_allowed: Optional[bool] = None + + url: Optional[str] = None + + user_logins_disabled: Optional[bool] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + [ + "apps_in_any_namespace_enabled", + "exec_enabled", + "impersonation_enabled", + "installation_id", + "oidc_config", + "sync_with_replace_allowed", + "url", + "user_logins_disabled", + ] + ) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/censys_platform/models/argocd_settings_oidcconfig.py b/src/censys_platform/models/argocd_settings_oidcconfig.py new file mode 100644 index 00000000..cfb97578 --- /dev/null +++ b/src/censys_platform/models/argocd_settings_oidcconfig.py @@ -0,0 +1,34 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from censys_platform.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer +from typing import Optional +from typing_extensions import NotRequired, TypedDict + + +class ArgocdSettingsOIDCConfigTypedDict(TypedDict): + client_id: NotRequired[str] + issuer: NotRequired[str] + + +class ArgocdSettingsOIDCConfig(BaseModel): + client_id: Optional[str] = None + + issuer: Optional[str] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["client_id", "issuer"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/censys_platform/models/endpointscan.py b/src/censys_platform/models/endpointscan.py index 9fa33b0d..9de555c4 100644 --- a/src/censys_platform/models/endpointscan.py +++ b/src/censys_platform/models/endpointscan.py @@ -1,6 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations +from .argocd import Argocd, ArgocdTypedDict from .chromedevtools import ChromeDevtools, ChromeDevtoolsTypedDict from .clickhousehttp import ClickHouseHTTP, ClickHouseHTTPTypedDict from .cobaltstrike import CobaltStrike, CobaltStrikeTypedDict @@ -53,6 +54,7 @@ class EndpointScanTransportProtocol(str, Enum, metaclass=utils.OpenEnumMeta): class EndpointScanTypedDict(TypedDict): + argocd: NotRequired[ArgocdTypedDict] banner: NotRequired[str] banner_hash_sha256: NotRequired[str] chrome_devtools: NotRequired[ChromeDevtoolsTypedDict] @@ -95,6 +97,8 @@ class EndpointScanTypedDict(TypedDict): class EndpointScan(BaseModel): + argocd: Optional[Argocd] = None + banner: Optional[str] = None banner_hash_sha256: Optional[str] = None @@ -186,6 +190,7 @@ def serialize_transport_protocol(self, value): def serialize_model(self, handler): optional_fields = set( [ + "argocd", "banner", "banner_hash_sha256", "chrome_devtools", diff --git a/src/censys_platform/models/endpointscanstate.py b/src/censys_platform/models/endpointscanstate.py index c1c48bff..cbea7568 100644 --- a/src/censys_platform/models/endpointscanstate.py +++ b/src/censys_platform/models/endpointscanstate.py @@ -1,6 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations +from .argocd import Argocd, ArgocdTypedDict from .chromedevtools import ChromeDevtools, ChromeDevtoolsTypedDict from .clickhousehttp import ClickHouseHTTP, ClickHouseHTTPTypedDict from .cobaltstrike import CobaltStrike, CobaltStrikeTypedDict @@ -53,6 +54,7 @@ class EndpointScanStateTransportProtocol(str, Enum, metaclass=utils.OpenEnumMeta class EndpointScanStateTypedDict(TypedDict): + argocd: NotRequired[ArgocdTypedDict] banner: NotRequired[str] banner_hash_sha256: NotRequired[str] chrome_devtools: NotRequired[ChromeDevtoolsTypedDict] @@ -94,6 +96,8 @@ class EndpointScanStateTypedDict(TypedDict): class EndpointScanState(BaseModel): + argocd: Optional[Argocd] = None + banner: Optional[str] = None banner_hash_sha256: Optional[str] = None @@ -183,6 +187,7 @@ def serialize_transport_protocol(self, value): def serialize_model(self, handler): optional_fields = set( [ + "argocd", "banner", "banner_hash_sha256", "chrome_devtools", diff --git a/src/censys_platform/utils/__init__.py b/src/censys_platform/utils/__init__.py index 0498cb8d..7af3b82c 100644 --- a/src/censys_platform/utils/__init__.py +++ b/src/censys_platform/utils/__init__.py @@ -15,7 +15,7 @@ async def run_sync_in_thread(func: Callable[..., _T], *args) -> _T: if TYPE_CHECKING: from .annotations import get_discriminator - from .datetimes import parse_datetime + from .datetimes import parse_datetime, parse_duration from .enums import OpenEnumMeta from .headers import get_headers, get_response_headers from .metadata import ( @@ -70,6 +70,7 @@ async def run_sync_in_thread(func: Callable[..., _T], *args) -> _T: "get_default_logger", "get_discriminator", "parse_datetime", + "parse_duration", "get_global_from_env", "get_headers", "get_pydantic_model", @@ -122,6 +123,7 @@ async def run_sync_in_thread(func: Callable[..., _T], *args) -> _T: "get_default_logger": ".logger", "get_discriminator": ".annotations", "parse_datetime": ".datetimes", + "parse_duration": ".datetimes", "get_global_from_env": ".values", "get_headers": ".headers", "get_pydantic_model": ".serializers", diff --git a/src/censys_platform/utils/datetimes.py b/src/censys_platform/utils/datetimes.py index a6c52cd6..adad2476 100644 --- a/src/censys_platform/utils/datetimes.py +++ b/src/censys_platform/utils/datetimes.py @@ -1,8 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from datetime import datetime +from datetime import datetime, timedelta import sys +from pydantic import TypeAdapter + def parse_datetime(datetime_string: str) -> datetime: """ @@ -21,3 +23,15 @@ def parse_datetime(datetime_string: str) -> datetime: datetime_string = datetime_string[:-1] + "+00:00" return datetime.fromisoformat(datetime_string) + + +_DURATION_ADAPTER = TypeAdapter(timedelta) + + +def parse_duration(duration_string: str) -> timedelta: + """ + Convert an ISO 8601 duration string (e.g. "PT1H30M") into a timedelta. + The standard library has no ISO 8601 duration parser, so this delegates to + pydantic, which is already a runtime dependency of the SDK. + """ + return _DURATION_ADAPTER.validate_python(duration_string)