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.1"
".": "0.1.0-alpha.2"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 971
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot%2Fhubspot-sdk-b0d8bc008db9e485496b486b6fb770a256d16caf430e7c8696cb5e2f61cb42ef.yml
openapi_spec_hash: 73818ecf3b80406f1ff2729a9f1b2c97
config_hash: b00859c0731e231e20f63b0a02182b30
configured_endpoints: 972
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot%2Fhubspot-sdk-10919d69a6e90c90609c258a2f5e28439f1330d7219f2febee724d1beb81ba53.yml
openapi_spec_hash: 797d5ce41890b09309e124e9f74fad45
config_hash: 5f3ac65868b9b42b135beebc978b43b1
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Changelog

## 0.1.0-alpha.2 (2026-04-15)

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

### Features

* **api:** manual updates ([0da4fad](https://github.com/HubSpot/hubspot-sdk-python/commit/0da4fad7676006ac24fb405a50413c61b4dc484e))

## 0.1.0-alpha.1 (2026-04-13)
3 changes: 3 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ from hubspot_sdk.types import (
AssociationDefinitionEgg,
AssociationSpec,
AutomationActionsOption,
BatchInputPropertyCreate,
BatchInputPropertyName,
BatchInputPublicObjectID,
BatchInputString,
Expand All @@ -24,6 +25,8 @@ from hubspot_sdk.types import (
OptionInput,
Paging,
PreviousPage,
Property,
PropertyCreate,
PropertyGroup,
PropertyGroupCreate,
PropertyGroupUpdate,
Expand Down
2 changes: 1 addition & 1 deletion 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.1"
version = "0.1.0-alpha.2"
description = "The official Python library for the hubspot API"
dynamic = ["readme"]
license = "Apache-2.0"
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.1" # x-release-please-version
__version__ = "0.1.0-alpha.2" # x-release-please-version
7 changes: 1 addition & 6 deletions src/hubspot_sdk/resources/auth/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@
Types:

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

Methods:
Expand Down
67 changes: 28 additions & 39 deletions src/hubspot_sdk/resources/auth/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from __future__ import annotations

from typing import Any, cast
from typing_extensions import Literal

import httpx
Expand Down Expand Up @@ -130,26 +129,21 @@ def introspect_token(

timeout: Override the client-level default timeout for this request, in seconds
"""
return cast(
TokenInfoResponseBaseIf,
self._post(
"/oauth/2026-03/token/introspect",
body=maybe_transform(
{
"token": token,
"client_id": client_id,
"client_secret": client_secret,
"token_type_hint": token_type_hint,
},
oauth_introspect_token_params.OAuthIntrospectTokenParams,
),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=cast(
Any, TokenInfoResponseBaseIf
), # Union types cannot be passed in as arguments in the type system
return self._post(
"/oauth/2026-03/token/introspect",
body=maybe_transform(
{
"token": token,
"client_id": client_id,
"client_secret": client_secret,
"token_type_hint": token_type_hint,
},
oauth_introspect_token_params.OAuthIntrospectTokenParams,
),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=TokenInfoResponseBaseIf,
)

def revoke_token(
Expand Down Expand Up @@ -295,26 +289,21 @@ async def introspect_token(

timeout: Override the client-level default timeout for this request, in seconds
"""
return cast(
TokenInfoResponseBaseIf,
await self._post(
"/oauth/2026-03/token/introspect",
body=await async_maybe_transform(
{
"token": token,
"client_id": client_id,
"client_secret": client_secret,
"token_type_hint": token_type_hint,
},
oauth_introspect_token_params.OAuthIntrospectTokenParams,
),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=cast(
Any, TokenInfoResponseBaseIf
), # Union types cannot be passed in as arguments in the type system
return await self._post(
"/oauth/2026-03/token/introspect",
body=await async_maybe_transform(
{
"token": token,
"client_id": client_id,
"client_secret": client_secret,
"token_type_hint": token_type_hint,
},
oauth_introspect_token_params.OAuthIntrospectTokenParams,
),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=TokenInfoResponseBaseIf,
)

async def revoke_token(
Expand Down
3 changes: 1 addition & 2 deletions src/hubspot_sdk/resources/cms/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ from hubspot_sdk.types.cms import (
AttentionSpanCalculatedValues,
AttentionSpanEvent,
AttentionSpanEventRequest,
BatchInputPropertyCreate,
BatchResponseProperty,
BatchResponsePropertyWithErrors,
BeginsWith,
Expand Down Expand Up @@ -392,6 +391,7 @@ from hubspot_sdk.types.cms import (
IntegratorOEmbedDomainRequest,
IntegratorObjectCreationRequest,
IntegratorObjectCreationResponse,
IsBlank,
IsEngagementType,
IsPipelineStageClosed,
IsPresent,
Expand Down Expand Up @@ -432,7 +432,6 @@ from hubspot_sdk.types.cms import (
Power,
Property,
Property1,
PropertyCreate,
PropertyDefinition,
PropertyDefinitionSource,
RequiredPropertiesExtensionData,
Expand Down
6 changes: 3 additions & 3 deletions src/hubspot_sdk/resources/cms/media_bridge/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
)
from ...._base_client import make_request_options
from ....types.cms.media_bridge import batch_get_params, batch_create_params, batch_delete_params
from ....types.cms.property_create_param import PropertyCreateParam
from ....types.cms.batch_response_property import BatchResponseProperty
from ....types.shared_params.property_name import PropertyName
from ....types.shared_params.property_create import PropertyCreate

__all__ = ["BatchResource", "AsyncBatchResource"]

Expand Down Expand Up @@ -51,7 +51,7 @@ def create(
object_type: str,
*,
app_id: int,
inputs: Iterable[PropertyCreateParam],
inputs: Iterable[PropertyCreate],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -202,7 +202,7 @@ async def create(
object_type: str,
*,
app_id: int,
inputs: Iterable[PropertyCreateParam],
inputs: Iterable[PropertyCreate],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down
28 changes: 28 additions & 0 deletions src/hubspot_sdk/resources/cms/media_bridge/media_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,15 +450,19 @@ def create_property(
name: str,
type: Literal["bool", "date", "datetime", "enumeration", "number", "phone_number", "string"],
calculation_formula: str | Omit = omit,
currency_property_name: str | Omit = omit,
data_sensitivity: Literal["highly_sensitive", "non_sensitive", "sensitive"] | Omit = omit,
description: str | Omit = omit,
display_order: int | Omit = omit,
external_options: bool | Omit = omit,
form_field: bool | Omit = omit,
has_unique_value: bool | Omit = omit,
hidden: bool | Omit = omit,
number_display_hint: Literal["currency", "duration", "formatted", "percentage", "probability", "unformatted"]
| Omit = omit,
options: Iterable[OptionInput] | Omit = omit,
referenced_object_type: str | Omit = omit,
show_currency_symbol: bool | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -492,15 +496,18 @@ def create_property(
"name": name,
"type": type,
"calculation_formula": calculation_formula,
"currency_property_name": currency_property_name,
"data_sensitivity": data_sensitivity,
"description": description,
"display_order": display_order,
"external_options": external_options,
"form_field": form_field,
"has_unique_value": has_unique_value,
"hidden": hidden,
"number_display_hint": number_display_hint,
"options": options,
"referenced_object_type": referenced_object_type,
"show_currency_symbol": show_currency_symbol,
},
media_bridge_create_property_params.MediaBridgeCreatePropertyParams,
),
Expand Down Expand Up @@ -1319,6 +1326,7 @@ def update_property(
app_id: int,
object_type: str,
calculation_formula: str | Omit = omit,
currency_property_name: str | Omit = omit,
description: str | Omit = omit,
display_order: int | Omit = omit,
field_type: Literal[
Expand All @@ -1341,7 +1349,10 @@ def update_property(
has_unique_value: bool | Omit = omit,
hidden: bool | Omit = omit,
label: str | Omit = omit,
number_display_hint: Literal["currency", "duration", "formatted", "percentage", "probability", "unformatted"]
| Omit = omit,
options: Iterable[OptionInput] | Omit = omit,
show_currency_symbol: bool | Omit = omit,
type: Literal["bool", "date", "datetime", "enumeration", "number", "phone_number", "string"] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -1376,6 +1387,7 @@ def update_property(
body=maybe_transform(
{
"calculation_formula": calculation_formula,
"currency_property_name": currency_property_name,
"description": description,
"display_order": display_order,
"field_type": field_type,
Expand All @@ -1384,7 +1396,9 @@ def update_property(
"has_unique_value": has_unique_value,
"hidden": hidden,
"label": label,
"number_display_hint": number_display_hint,
"options": options,
"show_currency_symbol": show_currency_symbol,
"type": type,
},
media_bridge_update_property_params.MediaBridgeUpdatePropertyParams,
Expand Down Expand Up @@ -1925,15 +1939,19 @@ async def create_property(
name: str,
type: Literal["bool", "date", "datetime", "enumeration", "number", "phone_number", "string"],
calculation_formula: str | Omit = omit,
currency_property_name: str | Omit = omit,
data_sensitivity: Literal["highly_sensitive", "non_sensitive", "sensitive"] | Omit = omit,
description: str | Omit = omit,
display_order: int | Omit = omit,
external_options: bool | Omit = omit,
form_field: bool | Omit = omit,
has_unique_value: bool | Omit = omit,
hidden: bool | Omit = omit,
number_display_hint: Literal["currency", "duration", "formatted", "percentage", "probability", "unformatted"]
| Omit = omit,
options: Iterable[OptionInput] | Omit = omit,
referenced_object_type: str | Omit = omit,
show_currency_symbol: bool | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -1967,15 +1985,18 @@ async def create_property(
"name": name,
"type": type,
"calculation_formula": calculation_formula,
"currency_property_name": currency_property_name,
"data_sensitivity": data_sensitivity,
"description": description,
"display_order": display_order,
"external_options": external_options,
"form_field": form_field,
"has_unique_value": has_unique_value,
"hidden": hidden,
"number_display_hint": number_display_hint,
"options": options,
"referenced_object_type": referenced_object_type,
"show_currency_symbol": show_currency_symbol,
},
media_bridge_create_property_params.MediaBridgeCreatePropertyParams,
),
Expand Down Expand Up @@ -2794,6 +2815,7 @@ async def update_property(
app_id: int,
object_type: str,
calculation_formula: str | Omit = omit,
currency_property_name: str | Omit = omit,
description: str | Omit = omit,
display_order: int | Omit = omit,
field_type: Literal[
Expand All @@ -2816,7 +2838,10 @@ async def update_property(
has_unique_value: bool | Omit = omit,
hidden: bool | Omit = omit,
label: str | Omit = omit,
number_display_hint: Literal["currency", "duration", "formatted", "percentage", "probability", "unformatted"]
| Omit = omit,
options: Iterable[OptionInput] | Omit = omit,
show_currency_symbol: bool | Omit = omit,
type: Literal["bool", "date", "datetime", "enumeration", "number", "phone_number", "string"] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -2851,6 +2876,7 @@ async def update_property(
body=await async_maybe_transform(
{
"calculation_formula": calculation_formula,
"currency_property_name": currency_property_name,
"description": description,
"display_order": display_order,
"field_type": field_type,
Expand All @@ -2859,7 +2885,9 @@ async def update_property(
"has_unique_value": has_unique_value,
"hidden": hidden,
"label": label,
"number_display_hint": number_display_hint,
"options": options,
"show_currency_symbol": show_currency_symbol,
"type": type,
},
media_bridge_update_property_params.MediaBridgeUpdatePropertyParams,
Expand Down
4 changes: 4 additions & 0 deletions src/hubspot_sdk/resources/cms/url_mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def create(
is_regex: bool,
is_trailing_slash_optional: bool,
label: str,
last_used_at: int,
name: str,
note: str,
portal_id: int,
Expand Down Expand Up @@ -246,6 +247,7 @@ def create(
"is_regex": is_regex,
"is_trailing_slash_optional": is_trailing_slash_optional,
"label": label,
"last_used_at": last_used_at,
"name": name,
"note": note,
"portal_id": portal_id,
Expand Down Expand Up @@ -462,6 +464,7 @@ async def create(
is_regex: bool,
is_trailing_slash_optional: bool,
label: str,
last_used_at: int,
name: str,
note: str,
portal_id: int,
Expand Down Expand Up @@ -575,6 +578,7 @@ async def create(
"is_regex": is_regex,
"is_trailing_slash_optional": is_trailing_slash_optional,
"label": label,
"last_used_at": last_used_at,
"name": name,
"note": note,
"portal_id": portal_id,
Expand Down
Loading
Loading