Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2,234 changes: 1,121 additions & 1,113 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ generation:
requestResponseComponentNamesFeb2024: true
securityFeb2025: false
sharedErrorComponentsApr2025: false
sharedNestedComponentsJan2026: false
auth:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
Expand All @@ -26,7 +27,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
python:
version: 0.12.1
version: 0.12.2
additionalDependencies:
dev: {}
main: {}
Expand Down Expand Up @@ -73,3 +74,4 @@ python:
responseFormat: flat
sseFlatResponse: false
templateVersion: v2
useAsyncHooks: false
16 changes: 8 additions & 8 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.682.0
speakeasyVersion: 1.686.0
sources:
converge-source:
sourceNamespace: converge-source
sourceRevisionDigest: sha256:29a147b1c7849375f4c0dd3cf042e586f46088af68462dfc73c562595229c7f1
sourceBlobDigest: sha256:c007b3011b46fd017ac8c3a964db9c819515de1d130b401c9d9ef127e2f433c7
sourceRevisionDigest: sha256:2fcd4a47fa3226588142f859e4bbf2c52400a8fbcda9fe66f788db244ffc576d
sourceBlobDigest: sha256:e512e913749949526ed979fa7884ae0eeda78e582aca7692928876862bd93c6e
tags:
- latest
- speakeasy-sdk-regen-1766104176
- 1.0.59
- speakeasy-sdk-regen-1767832222
- 1.0.63
targets:
censys-sdk-python:
source: converge-source
sourceNamespace: converge-source
sourceRevisionDigest: sha256:29a147b1c7849375f4c0dd3cf042e586f46088af68462dfc73c562595229c7f1
sourceBlobDigest: sha256:c007b3011b46fd017ac8c3a964db9c819515de1d130b401c9d9ef127e2f433c7
sourceRevisionDigest: sha256:2fcd4a47fa3226588142f859e4bbf2c52400a8fbcda9fe66f788db244ffc576d
sourceBlobDigest: sha256:e512e913749949526ed979fa7884ae0eeda78e582aca7692928876862bd93c6e
codeSamplesNamespace: converge-source-python-code-samples
codeSamplesRevisionDigest: sha256:f25d55cdef67c3b748888eb41940f7ec0ffd17699b36eb6156681b069a478fec
codeSamplesRevisionDigest: sha256:63f0655909e08c37d712f7957095ee8862da00bd096031632cbfb046411572b7
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,14 @@ Based on:
### Generated
- [python v0.12.1] .
### Releases
- [PyPI v0.12.1] https://pypi.org/project/censys-platform/0.12.1 - .
- [PyPI v0.12.1] https://pypi.org/project/censys-platform/0.12.1 - .

## 2026-01-16 00:30:16
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.686.0 (2.796.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.12.2] .
### Releases
- [PyPI v0.12.2] https://pypi.org/project/censys-platform/0.12.2 - .
8 changes: 8 additions & 0 deletions docs/models/hajime.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Hajime


## Fields

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `public_key` | *Optional[str]* | :heavy_minus_sign: | N/A |
1 change: 1 addition & 0 deletions docs/models/service.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
| `fox` | [Optional[models.Fox]](../models/fox.md) | :heavy_minus_sign: | N/A |
| `ftp` | [Optional[models.Ftp]](../models/ftp.md) | :heavy_minus_sign: | N/A |
| `gearman` | [Optional[models.Gearman]](../models/gearman.md) | :heavy_minus_sign: | N/A |
| `hajime` | [Optional[models.Hajime]](../models/hajime.md) | :heavy_minus_sign: | N/A |
| `hardware` | List[[models.Attribute](../models/attribute.md)] | :heavy_minus_sign: | N/A |
| `hid_vertx` | [Optional[models.HidVertx]](../models/hidvertx.md) | :heavy_minus_sign: | N/A |
| `hikvision` | [Optional[models.Hikvision]](../models/hikvision.md) | :heavy_minus_sign: | N/A |
Expand Down
1 change: 1 addition & 0 deletions docs/models/servicescan.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
| `fox` | [Optional[models.Fox]](../models/fox.md) | :heavy_minus_sign: | N/A |
| `ftp` | [Optional[models.Ftp]](../models/ftp.md) | :heavy_minus_sign: | N/A |
| `gearman` | [Optional[models.Gearman]](../models/gearman.md) | :heavy_minus_sign: | N/A |
| `hajime` | [Optional[models.Hajime]](../models/hajime.md) | :heavy_minus_sign: | N/A |
| `hid_vertx` | [Optional[models.HidVertx]](../models/hidvertx.md) | :heavy_minus_sign: | N/A |
| `hikvision` | [Optional[models.Hikvision]](../models/hikvision.md) | :heavy_minus_sign: | N/A |
| `ibmnje` | [Optional[models.Ibmnje]](../models/ibmnje.md) | :heavy_minus_sign: | N/A |
Expand Down
12 changes: 6 additions & 6 deletions docs/sdks/collections/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Endpoints related to the Collections product

## list

List all collections for an organization. Retrieved information includes collection ID, name, query, description, status, and asset count.
List all collections for an organization. Retrieved information includes collection ID, name, query, description, status, and asset count.<br><br>This endpoint does not cost credits to execute.

### Example Usage

Expand Down Expand Up @@ -61,7 +61,7 @@ with SDK(

## create

Create a new collection.
Create a new collection.<br><br>This endpoint does not cost credits to execute.

### Example Usage

Expand Down Expand Up @@ -108,7 +108,7 @@ with SDK(

## delete

Delete a collection.
Delete a collection.<br><br>This endpoint does not cost credits to execute.

### Example Usage

Expand Down Expand Up @@ -151,7 +151,7 @@ with SDK(

## get

Retrieve information about a collection. Retrieved information includes its name, query, description, status, and asset count.
Retrieve information about a collection. Retrieved information includes its name, query, description, status, and asset count.<br><br>This endpoint does not cost credits to execute.

### Example Usage

Expand Down Expand Up @@ -194,7 +194,7 @@ with SDK(

## update

Update a collection's name, description, and/or query.
Update a collection's name, description, and/or query.<br><br>This endpoint does not cost credits to execute.

### Example Usage

Expand Down Expand Up @@ -242,7 +242,7 @@ with SDK(

## list_events

Retrieve the event history for a collection. This includes the addition or removal of assets as well as collection status changes.
Retrieve the event history for a collection. This includes the addition or removal of assets as well as collection status changes.<br><br>This endpoint does not cost credits to execute.

### Example Usage

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[project]
name = "censys-platform"
version = "0.12.1"
version = "0.12.2"
description = "Python Client SDK Generated by Speakeasy."
authors = [{ name = "Speakeasy" },]
readme = "README-PYPI.md"
Expand Down
8 changes: 4 additions & 4 deletions src/censys_platform/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import importlib.metadata

__title__: str = "censys-platform"
__version__: str = "0.12.1"
__openapi_doc_version__: str = "1.0.59"
__gen_version__: str = "2.791.1"
__user_agent__: str = "speakeasy-sdk/python 0.12.1 2.791.1 1.0.59 censys-platform"
__version__: str = "0.12.2"
__openapi_doc_version__: str = "1.0.63"
__gen_version__: str = "2.796.1"
__user_agent__: str = "speakeasy-sdk/python 0.12.2 2.796.1 1.0.63 censys-platform"

try:
if __package__ is not None:
Expand Down
26 changes: 20 additions & 6 deletions src/censys_platform/basesdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
AfterSuccessContext,
BeforeRequestContext,
)
from censys_platform.utils import RetryConfig, SerializedRequestBody, get_body_content
from censys_platform.utils import (
RetryConfig,
SerializedRequestBody,
get_body_content,
run_sync_in_thread,
)
import httpx
from typing import Callable, List, Mapping, Optional, Tuple
from urllib.parse import parse_qs, urlparse
Expand Down Expand Up @@ -311,7 +316,10 @@ async def do_request_async(
async def do():
http_res = None
try:
req = hooks.before_request(BeforeRequestContext(hook_ctx), request)
req = await run_sync_in_thread(
hooks.before_request, BeforeRequestContext(hook_ctx), request
)

logger.debug(
"Request:\nMethod: %s\nURL: %s\nHeaders: %s\nBody: %s",
req.method,
Expand All @@ -325,7 +333,10 @@ async def do():

http_res = await client.send(req, stream=stream)
except Exception as e:
_, e = hooks.after_error(AfterErrorContext(hook_ctx), None, e)
_, e = await run_sync_in_thread(
hooks.after_error, AfterErrorContext(hook_ctx), None, e
)

if e is not None:
logger.debug("Request Exception", exc_info=True)
raise e
Expand All @@ -343,9 +354,10 @@ async def do():
)

if utils.match_status_codes(error_status_codes, http_res.status_code):
result, err = hooks.after_error(
AfterErrorContext(hook_ctx), http_res, None
result, err = await run_sync_in_thread(
hooks.after_error, AfterErrorContext(hook_ctx), http_res, None
)

if err is not None:
logger.debug("Request Exception", exc_info=True)
raise err
Expand All @@ -365,6 +377,8 @@ async def do():
http_res = await do()

if not utils.match_status_codes(error_status_codes, http_res.status_code):
http_res = hooks.after_success(AfterSuccessContext(hook_ctx), http_res)
http_res = await run_sync_in_thread(
hooks.after_success, AfterSuccessContext(hook_ctx), http_res
)

return http_res
Loading
Loading