Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.8"
".": "0.1.0-alpha.9"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 955
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-8aa2c4935982d3998769d656b2caae13c71151b5f00caaa875357ceb83f6e0a6.yml
openapi_spec_hash: 47d20b6496315d47f4f64441d4682f47
config_hash: 9c2a17b9755f3edac92a3ec4b93ac51c
configured_endpoints: 959
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-3260c0cfb88ce2653c37c4c97e1dd39b965df4f2c14177677bc46d95b104525d.yml
openapi_spec_hash: 93b8671a542b331e067319184c943fdd
config_hash: 0bcc56e67986936da66e382674e17c79
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## 0.1.0-alpha.9 (2026-05-26)

Full Changelog: [v0.1.0-alpha.8...v0.1.0-alpha.9](https://github.com/HubSpot/hubspot-sdk-python/compare/v0.1.0-alpha.8...v0.1.0-alpha.9)

### Features

* **api:** manual updates ([36cd2ad](https://github.com/HubSpot/hubspot-sdk-python/commit/36cd2ad2ab42aa77d232b064f6f0f6a00fb72708))
* **api:** manual updates ([dd6d95a](https://github.com/HubSpot/hubspot-sdk-python/commit/dd6d95aa6794f1ccc276ee5415677a560d5e55c7))
* **api:** manual updates ([36c571b](https://github.com/HubSpot/hubspot-sdk-python/commit/36c571b41e29defa39498e56944b2fabae301192))


### Chores

* configure new SDK language ([cc42975](https://github.com/HubSpot/hubspot-sdk-python/commit/cc42975455695e24cb98a8fd645c1e4e89e3506b))
* remove mypy from lint pipeline ([d690050](https://github.com/HubSpot/hubspot-sdk-python/commit/d6900507e7300d6f005e9cda5073b013b0b84656))

## 0.1.0-alpha.8 (2026-05-18)

Full Changelog: [v0.1.0-alpha.7...v0.1.0-alpha.8](https://github.com/HubSpot/hubspot-sdk-python/compare/v0.1.0-alpha.7...v0.1.0-alpha.8)
Expand Down
22 changes: 22 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,39 @@
```python
from hubspot_sdk.types import (
AbTestCreateRequestVNext,
ActionOverrideRequest,
ActionResponse,
AppLifecycleEventSubscriptionUpsertRequest,
AssociationDefinition,
AssociationDefinitionEgg,
AssociationSpec,
AssociationSubscriptionUpsertRequest,
AutomationActionsOption,
BatchInputPropertyCreate,
BatchInputPropertyName,
BatchInputPublicObjectID,
BatchInputString,
BatchReadInputPropertyName,
BatchResponseJournalFetchResponse,
BatchResponseJournalFetchResponseWithErrors,
CollectionResponsePropertyGroupNoPaging,
Condition,
CrmObjectSnapshotBatchRequest,
CrmObjectSnapshotBatchResponse,
CrmObjectSnapshotRequest,
CrmObjectSnapshotResponse,
ErrorData,
ErrorDetail,
Filter,
FilterCreateRequest,
FilterCreateResponse,
FilterResponse,
ForwardPaging,
GdprPrivacyDeletionSubscriptionUpsertRequest,
JournalFetchResponse,
ListMembershipSubscriptionUpsertRequest,
NextPage,
ObjectSubscriptionUpsertRequest,
ObjectTypeDefinition,
ObjectTypeDefinitionLabels,
ObjectTypeDefinitionPatch,
Expand All @@ -34,7 +52,9 @@ from hubspot_sdk.types import (
PropertyName,
PropertyValue,
PublicObjectID,
SnapshotStatusResponse,
StandardError,
SubscriptionUpsertRequest,
TaskLocator,
VersionUser,
)
Expand Down Expand Up @@ -69,3 +89,5 @@ from hubspot_sdk.types import (
# [Settings](src/hubspot_sdk/resources/settings/api.md)

# [Webhooks](src/hubspot_sdk/resources/webhooks/api.md)

# [WebhooksJournal](src/hubspot_sdk/resources/webhooks_journal/api.md)
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "hubspot-sdk"
version = "0.1.0-alpha.8"
version = "0.1.0-alpha.9"
description = "The official Python library for the hubspot API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down Expand Up @@ -57,7 +57,7 @@ conflicts = [
# version pins are in uv.lock
dev = [
"pyright==1.1.399",
"mypy==1.17",

"respx",
"pytest",
"pytest-asyncio",
Expand Down
3 changes: 0 additions & 3 deletions scripts/lint
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,5 @@ fi
echo "==> Running pyright"
uv run pyright

echo "==> Running mypy"
uv run mypy .

echo "==> Making sure it imports"
uv run python -c 'import hubspot_sdk'
38 changes: 38 additions & 0 deletions src/hubspot_sdk/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
automation,
conversations,
business_units,
webhooks_journal,
communication_preferences,
)
from .resources.cms.cms import CmsResource, AsyncCmsResource
Expand All @@ -66,6 +67,7 @@
from .resources.automation.automation import AutomationResource, AsyncAutomationResource
from .resources.conversations.conversations import ConversationsResource, AsyncConversationsResource
from .resources.business_units.business_units import BusinessUnitsResource, AsyncBusinessUnitsResource
from .resources.webhooks_journal.webhooks_journal import WebhooksJournalResource, AsyncWebhooksJournalResource
from .resources.communication_preferences.communication_preferences import (
CommunicationPreferencesResource,
AsyncCommunicationPreferencesResource,
Expand Down Expand Up @@ -223,6 +225,12 @@ def webhooks(self) -> WebhooksResource:

return WebhooksResource(self)

@cached_property
def webhooks_journal(self) -> WebhooksJournalResource:
from .resources.webhooks_journal import WebhooksJournalResource

return WebhooksJournalResource(self)

@cached_property
def with_raw_response(self) -> HubSpotWithRawResponse:
return HubSpotWithRawResponse(self)
Expand Down Expand Up @@ -498,6 +506,12 @@ def webhooks(self) -> AsyncWebhooksResource:

return AsyncWebhooksResource(self)

@cached_property
def webhooks_journal(self) -> AsyncWebhooksJournalResource:
from .resources.webhooks_journal import AsyncWebhooksJournalResource

return AsyncWebhooksJournalResource(self)

@cached_property
def with_raw_response(self) -> AsyncHubSpotWithRawResponse:
return AsyncHubSpotWithRawResponse(self)
Expand Down Expand Up @@ -720,6 +734,12 @@ def webhooks(self) -> webhooks.WebhooksResourceWithRawResponse:

return WebhooksResourceWithRawResponse(self._client.webhooks)

@cached_property
def webhooks_journal(self) -> webhooks_journal.WebhooksJournalResourceWithRawResponse:
from .resources.webhooks_journal import WebhooksJournalResourceWithRawResponse

return WebhooksJournalResourceWithRawResponse(self._client.webhooks_journal)


class AsyncHubSpotWithRawResponse:
_client: AsyncHubSpot
Expand Down Expand Up @@ -819,6 +839,12 @@ def webhooks(self) -> webhooks.AsyncWebhooksResourceWithRawResponse:

return AsyncWebhooksResourceWithRawResponse(self._client.webhooks)

@cached_property
def webhooks_journal(self) -> webhooks_journal.AsyncWebhooksJournalResourceWithRawResponse:
from .resources.webhooks_journal import AsyncWebhooksJournalResourceWithRawResponse

return AsyncWebhooksJournalResourceWithRawResponse(self._client.webhooks_journal)


class HubSpotWithStreamedResponse:
_client: HubSpot
Expand Down Expand Up @@ -918,6 +944,12 @@ def webhooks(self) -> webhooks.WebhooksResourceWithStreamingResponse:

return WebhooksResourceWithStreamingResponse(self._client.webhooks)

@cached_property
def webhooks_journal(self) -> webhooks_journal.WebhooksJournalResourceWithStreamingResponse:
from .resources.webhooks_journal import WebhooksJournalResourceWithStreamingResponse

return WebhooksJournalResourceWithStreamingResponse(self._client.webhooks_journal)


class AsyncHubSpotWithStreamedResponse:
_client: AsyncHubSpot
Expand Down Expand Up @@ -1017,6 +1049,12 @@ def webhooks(self) -> webhooks.AsyncWebhooksResourceWithStreamingResponse:

return AsyncWebhooksResourceWithStreamingResponse(self._client.webhooks)

@cached_property
def webhooks_journal(self) -> webhooks_journal.AsyncWebhooksJournalResourceWithStreamingResponse:
from .resources.webhooks_journal import AsyncWebhooksJournalResourceWithStreamingResponse

return AsyncWebhooksJournalResourceWithStreamingResponse(self._client.webhooks_journal)


Client = HubSpot

Expand Down
2 changes: 1 addition & 1 deletion src/hubspot_sdk/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "hubspot_sdk"
__version__ = "0.1.0-alpha.8" # x-release-please-version
__version__ = "0.1.0-alpha.9" # x-release-please-version
5 changes: 4 additions & 1 deletion src/hubspot_sdk/resources/auth/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ Types:

```python
from hubspot_sdk.types.auth import (
AccessTokenResponse,
ClientCredentialsTokenResponse,
PublicAccessTokenInfoResponse,
PublicRefreshTokenInfoResponse,
SignedAccessToken,
TokenInfoResponseBaseIf,
TokenResponseIf,
)
```

Methods:

- <code title="post /oauth/2026-03/token">client.auth.oauth.<a href="./src/hubspot_sdk/resources/auth/oauth.py">create_token</a>(\*\*<a href="src/hubspot_sdk/types/auth/oauth_create_token_params.py">params</a>) -> BinaryAPIResponse</code>
- <code title="post /oauth/2026-03/token">client.auth.oauth.<a href="./src/hubspot_sdk/resources/auth/oauth.py">create_token</a>(\*\*<a href="src/hubspot_sdk/types/auth/oauth_create_token_params.py">params</a>) -> <a href="./src/hubspot_sdk/types/auth/token_response_if.py">TokenResponseIf</a></code>
- <code title="post /oauth/2026-03/token/introspect">client.auth.oauth.<a href="./src/hubspot_sdk/resources/auth/oauth.py">introspect_token</a>(\*\*<a href="src/hubspot_sdk/types/auth/oauth_introspect_token_params.py">params</a>) -> <a href="./src/hubspot_sdk/types/auth/token_info_response_base_if.py">TokenInfoResponseBaseIf</a></code>
- <code title="post /oauth/2026-03/token/revoke">client.auth.oauth.<a href="./src/hubspot_sdk/resources/auth/oauth.py">revoke_token</a>(\*\*<a href="src/hubspot_sdk/types/auth/oauth_revoke_token_params.py">params</a>) -> BinaryAPIResponse</code>
Loading