From 0997c0defda378b724f7688b5c9d9dfc0a944507 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Tue, 5 May 2026 08:17:21 +0000
Subject: [PATCH 1/7] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 27bb4b6..7eda359 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 959
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-c4f4939d793d2c423f834b2dbbf5ece484009798e6fdaea771cdcae1f84229a8.yml
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-a393b1d7074c56c47932ec0f1e328d567f1466ecdbc04c19e7067df1b097ecb0.yml
openapi_spec_hash: d0e76c7f7ecb1e8f701d4ced83be404f
-config_hash: 9a5e751d38a6c4ccba657d505406981e
+config_hash: 3c65b4da968b08d5322cacebf983ccb9
From 4f4f79286a9883fe7bd6cf01fa1662ccd6cc7a51 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 7 May 2026 11:48:23 +0000
Subject: [PATCH 2/7] feat(api): manual updates
---
.stats.yml | 6 +-
api.md | 10 +-
src/hubspot_sdk/resources/cms/api.md | 58 +--
.../cms/media_bridge/media_bridge.py | 28 +-
.../resources/cms/pages/a_b_tests.py | 18 +-
src/hubspot_sdk/resources/cms/pages/batch.py | 10 +-
.../resources/cms/pages/landing_pages.py | 62 +--
.../resources/cms/pages/multi_language.py | 10 +-
src/hubspot_sdk/resources/cms/pages/pages.py | 34 +-
.../resources/cms/pages/website_pages.py | 62 +--
.../resources/conversations/api.md | 2 -
.../conversations/custom_channels/messages.py | 5 -
src/hubspot_sdk/resources/crm/api.md | 10 +-
.../resources/crm/extensions/cards_dev.py | 12 +-
.../crm/object_schemas/object_schemas.py | 20 +-
.../resources/crm/properties/properties.py | 26 +-
src/hubspot_sdk/resources/events/api.md | 4 +-
.../resources/events/definitions.py | 18 +-
.../resources/marketing/campaigns/assets.py | 16 +
.../resources/marketing/campaigns/batch.py | 28 ++
.../marketing/campaigns/campaigns.py | 34 ++
.../resources/marketing/campaigns/metrics.py | 34 ++
src/hubspot_sdk/types/__init__.py | 10 +-
.../chirp_ai_context_object_param.py | 2 +
src/hubspot_sdk/types/cms/__init__.py | 4 +-
.../types/cms/batch_response_page.py | 4 +-
...response_with_total_page_forward_paging.py | 4 +-
src/hubspot_sdk/types/cms/import_result.py | 4 +-
src/hubspot_sdk/types/cms/object_schema.py | 4 +-
src/hubspot_sdk/types/cms/page_version.py | 4 +-
.../batch_create_landing_pages_params.py | 4 +-
.../pages/batch_create_site_pages_params.py | 4 +-
.../types/cms/{page_data.py => pages_page.py} | 4 +-
...page_data_param.py => pages_page_param.py} | 4 +-
.../types/conversations/__init__.py | 2 -
.../custom_channels/message_create_params.py | 3 -
.../pre_resolved_contact_param.py | 409 ------------------
.../pre_resolved_contacts_param.py | 14 -
.../types/crm/batch_response_property.py | 4 +-
.../collection_response_property_no_paging.py | 4 +-
.../extensions/card_migrate_views_response.py | 20 +-
src/hubspot_sdk/types/crm/object_schema.py | 8 +-
...ternal_behavioral_event_type_definition.py | 4 +-
.../types/marketing/campaign_get_params.py | 13 +
.../types/marketing/campaign_list_params.py | 7 +
.../marketing/campaigns/asset_list_params.py | 12 +
.../marketing/campaigns/batch_get_params.py | 19 +
.../metric_get_attribution_metrics_params.py | 8 +
.../metric_get_revenue_attribution_params.py | 6 +
.../metric_list_contact_ids_by_type_params.py | 8 +
.../types/marketing/email_send_status_view.py | 1 +
src/hubspot_sdk/types/shared/__init__.py | 10 +-
...efinition.py => association_definition.py} | 4 +-
.../shared/{base_error.py => error_data.py} | 4 +-
...efinition.py => object_type_definition.py} | 4 +-
.../shared/{base_option.py => option.py} | 4 +-
.../shared/{base_property.py => property.py} | 8 +-
.../api_resources/cms/pages/test_a_b_tests.py | 26 +-
.../cms/pages/test_landing_pages.py | 102 ++---
.../cms/pages/test_multi_language.py | 18 +-
.../cms/pages/test_website_pages.py | 102 ++---
tests/api_resources/cms/test_media_bridge.py | 48 +-
tests/api_resources/cms/test_pages.py | 50 +--
.../custom_channels/test_messages.py | 16 -
.../api_resources/crm/test_object_schemas.py | 34 +-
tests/api_resources/crm/test_properties.py | 50 +--
.../api_resources/events/test_definitions.py | 34 +-
67 files changed, 692 insertions(+), 923 deletions(-)
rename src/hubspot_sdk/types/cms/{page_data.py => pages_page.py} (99%)
rename src/hubspot_sdk/types/cms/{page_data_param.py => pages_page_param.py} (99%)
delete mode 100644 src/hubspot_sdk/types/conversations/pre_resolved_contact_param.py
delete mode 100644 src/hubspot_sdk/types/conversations/pre_resolved_contacts_param.py
rename src/hubspot_sdk/types/shared/{base_association_definition.py => association_definition.py} (92%)
rename src/hubspot_sdk/types/shared/{base_error.py => error_data.py} (95%)
rename src/hubspot_sdk/types/shared/{base_object_type_definition.py => object_type_definition.py} (93%)
rename src/hubspot_sdk/types/shared/{base_option.py => option.py} (94%)
rename src/hubspot_sdk/types/shared/{base_property.py => property.py} (97%)
diff --git a/.stats.yml b/.stats.yml
index 7eda359..137d682 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 959
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-a393b1d7074c56c47932ec0f1e328d567f1466ecdbc04c19e7067df1b097ecb0.yml
-openapi_spec_hash: d0e76c7f7ecb1e8f701d4ced83be404f
-config_hash: 3c65b4da968b08d5322cacebf983ccb9
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-d4a5ee63599381787c93431700850350eae82433db6716e405678a1c52a95a89.yml
+openapi_spec_hash: 3a53f40c597fb1a8ded7d5f8939b8cc1
+config_hash: eb3466c7284bdc1016ea5673e1564ffd
diff --git a/api.md b/api.md
index c2fd307..2dcc50a 100644
--- a/api.md
+++ b/api.md
@@ -4,28 +4,28 @@
from hubspot_sdk.types import (
AbTestCreateRequestVNext,
ActionResponse,
+ AssociationDefinition,
AssociationDefinitionEgg,
AssociationSpec,
AutomationActionsOption,
- BaseAssociationDefinition,
- BaseError,
- BaseObjectTypeDefinition,
- BaseOption,
- BaseProperty,
BatchInputPropertyCreate,
BatchInputPropertyName,
BatchInputPublicObjectID,
BatchInputString,
BatchReadInputPropertyName,
CollectionResponsePropertyGroupNoPaging,
+ ErrorData,
ErrorDetail,
ForwardPaging,
NextPage,
+ ObjectTypeDefinition,
ObjectTypeDefinitionLabels,
ObjectTypeDefinitionPatch,
+ Option,
OptionInput,
Paging,
PreviousPage,
+ Property,
PropertyCreate,
PropertyGroup,
PropertyGroupCreate,
diff --git a/src/hubspot_sdk/resources/cms/api.md b/src/hubspot_sdk/resources/cms/api.md
index 8019b06..80bf59c 100644
--- a/src/hubspot_sdk/resources/cms/api.md
+++ b/src/hubspot_sdk/resources/cms/api.md
@@ -373,6 +373,7 @@ from hubspot_sdk.types.cms import (
ExtractMostRecentPlainTextEmailReply,
FetchCurrencyDecimalPlaces,
FetchExchangeRate,
+ FetchPortalHomeCurrency,
FetchSingleCurrencyPortalCurrency,
FieldLevelPermission,
FilteringMetaData,
@@ -392,9 +393,15 @@ from hubspot_sdk.types.cms import (
IntegratorObjectCreationRequest,
IntegratorObjectCreationResponse,
IsBlank,
+ IsDayBasedISOPeriod,
IsEngagementType,
+ IsMonthBasedISOPeriod,
+ IsMultipleOf,
IsPipelineStageClosed,
+ IsPortalEnabledCurrency,
+ IsPortalMulticurrencyEnabled,
IsPresent,
+ IsValidISOPeriod,
LessThan,
LessThanOrEqual,
LookupAssociationSpec,
@@ -435,6 +442,7 @@ from hubspot_sdk.types.cms import (
Property1,
PropertyDefinition,
PropertyDefinitionSource,
+ RegexMatches,
RequiredPropertiesExtensionData,
RollupExpression,
RoundDownNumbers,
@@ -463,7 +471,7 @@ from hubspot_sdk.types.cms import (
Methods:
-- client.cms.media_bridge.create_association(object_type, \*, app_id, \*\*params) -> BaseAssociationDefinition
+- client.cms.media_bridge.create_association(object_type, \*, app_id, \*\*params) -> AssociationDefinition
- client.cms.media_bridge.create_attention_span_event(\*\*params) -> AttentionSpanEvent
- client.cms.media_bridge.create_media_played_event(\*\*params) -> MediaPlayedEvent
- client.cms.media_bridge.create_media_played_percent_event(\*\*params) -> MediaPlayedPercentageEvent
@@ -471,7 +479,7 @@ Methods:
- client.cms.media_bridge.create_oembed_domain(app_id, \*\*params) -> IntegratorOEmbedDomainModel
- client.cms.media_bridge.create_property(object_type, \*, app_id, \*\*params) -> MediaBridgeProperty
- client.cms.media_bridge.create_property_group(object_type, \*, app_id, \*\*params) -> PropertyGroup
-- client.cms.media_bridge.create_video_association_definition(app_id) -> BaseAssociationDefinition
+- client.cms.media_bridge.create_video_association_definition(app_id) -> AssociationDefinition
- client.cms.media_bridge.delete_association(association_id, \*, app_id, object_type) -> None
- client.cms.media_bridge.delete_oembed_domain(app_id, \*\*params) -> None
- client.cms.media_bridge.delete_property(property_name, \*, app_id, object_type) -> None
@@ -491,7 +499,7 @@ Methods:
- client.cms.media_bridge.update_oembed_domain(o_embed_domain_id, \*, app_id, \*\*params) -> IntegratorOEmbedDomainModel
- client.cms.media_bridge.update_property(property_name, \*, app_id, object_type, \*\*params) -> MediaBridgeProperty
- client.cms.media_bridge.update_property_group(group_name, \*, app_id, object_type, \*\*params) -> PropertyGroup
-- client.cms.media_bridge.update_schema(object_type, \*, app_id, \*\*params) -> BaseObjectTypeDefinition
+- client.cms.media_bridge.update_schema(object_type, \*, app_id, \*\*params) -> ObjectTypeDefinition
- client.cms.media_bridge.update_settings(app_id, \*\*params) -> MediaBridgeProviderRegistrationResponse
### Batch
@@ -523,8 +531,8 @@ from hubspot_sdk.types.cms import (
ContentFolder,
ContentFolderVersion,
ContentLanguageCloneRequestVNext,
- PageData,
PageVersion,
+ PagesPage,
)
```
@@ -535,17 +543,17 @@ Methods:
- client.cms.pages.list_landing_page_revisions(object_id, \*\*params) -> SyncPage[PageVersion]
- client.cms.pages.list_site_page_revisions(object_id, \*\*params) -> SyncPage[PageVersion]
- client.cms.pages.reset_site_page_draft(object_id) -> None
-- client.cms.pages.restore_landing_page_revision(revision_id, \*, object_id) -> PageData
-- client.cms.pages.restore_landing_page_revision_to_draft(revision_id, \*, object_id) -> PageData
-- client.cms.pages.restore_site_page_revision(revision_id, \*, object_id) -> PageData
-- client.cms.pages.restore_site_page_revision_to_draft(revision_id, \*, object_id) -> PageData
+- client.cms.pages.restore_landing_page_revision(revision_id, \*, object_id) -> PagesPage
+- client.cms.pages.restore_landing_page_revision_to_draft(revision_id, \*, object_id) -> PagesPage
+- client.cms.pages.restore_site_page_revision(revision_id, \*, object_id) -> PagesPage
+- client.cms.pages.restore_site_page_revision_to_draft(revision_id, \*, object_id) -> PagesPage
### ABTests
Methods:
-- client.cms.pages.a_b_tests.create_landing_page_variation(\*\*params) -> PageData
-- client.cms.pages.a_b_tests.create_site_page_variation(\*\*params) -> PageData
+- client.cms.pages.a_b_tests.create_landing_page_variation(\*\*params) -> PagesPage
+- client.cms.pages.a_b_tests.create_site_page_variation(\*\*params) -> PagesPage
- client.cms.pages.a_b_tests.end_landing_page_test(\*\*params) -> None
- client.cms.pages.a_b_tests.end_site_page_test(\*\*params) -> None
- client.cms.pages.a_b_tests.rerun_landing_page_test(\*\*params) -> None
@@ -585,24 +593,24 @@ Methods:
Methods:
-- client.cms.pages.landing_pages.create(\*\*params) -> PageData
-- client.cms.pages.landing_pages.update(object_id, \*\*params) -> PageData
-- client.cms.pages.landing_pages.list(\*\*params) -> SyncPage[PageData]
+- client.cms.pages.landing_pages.create(\*\*params) -> PagesPage
+- client.cms.pages.landing_pages.update(object_id, \*\*params) -> PagesPage
+- client.cms.pages.landing_pages.list(\*\*params) -> SyncPage[PagesPage]
- client.cms.pages.landing_pages.delete(object_id, \*\*params) -> None
-- client.cms.pages.landing_pages.clone(\*\*params) -> PageData
-- client.cms.pages.landing_pages.get(object_id, \*\*params) -> PageData
-- client.cms.pages.landing_pages.get_draft(object_id) -> PageData
+- client.cms.pages.landing_pages.clone(\*\*params) -> PagesPage
+- client.cms.pages.landing_pages.get(object_id, \*\*params) -> PagesPage
+- client.cms.pages.landing_pages.get_draft(object_id) -> PagesPage
- client.cms.pages.landing_pages.push_draft_live(object_id) -> None
- client.cms.pages.landing_pages.reset_draft(object_id) -> None
- client.cms.pages.landing_pages.schedule(\*\*params) -> None
-- client.cms.pages.landing_pages.update_draft(object_id, \*\*params) -> PageData
+- client.cms.pages.landing_pages.update_draft(object_id, \*\*params) -> PagesPage
### MultiLanguage
Methods:
- client.cms.pages.multi_language.attach_to_lang_group(\*\*params) -> BinaryAPIResponse
-- client.cms.pages.multi_language.create_language_variation(\*\*params) -> PageData
+- client.cms.pages.multi_language.create_language_variation(\*\*params) -> PagesPage
- client.cms.pages.multi_language.detach_from_lang_group(\*\*params) -> BinaryAPIResponse
- client.cms.pages.multi_language.set_new_lang_primary(\*\*params) -> None
- client.cms.pages.multi_language.update_languages(\*\*params) -> BinaryAPIResponse
@@ -611,17 +619,17 @@ Methods:
Methods:
-- client.cms.pages.website_pages.create(\*\*params) -> PageData
-- client.cms.pages.website_pages.update(object_id, \*\*params) -> PageData
-- client.cms.pages.website_pages.list(\*\*params) -> SyncPage[PageData]
+- client.cms.pages.website_pages.create(\*\*params) -> PagesPage
+- client.cms.pages.website_pages.update(object_id, \*\*params) -> PagesPage
+- client.cms.pages.website_pages.list(\*\*params) -> SyncPage[PagesPage]
- client.cms.pages.website_pages.delete(object_id, \*\*params) -> None
-- client.cms.pages.website_pages.clone(\*\*params) -> PageData
-- client.cms.pages.website_pages.get(object_id, \*\*params) -> PageData
-- client.cms.pages.website_pages.get_draft(object_id) -> PageData
+- client.cms.pages.website_pages.clone(\*\*params) -> PagesPage
+- client.cms.pages.website_pages.get(object_id, \*\*params) -> PagesPage
+- client.cms.pages.website_pages.get_draft(object_id) -> PagesPage
- client.cms.pages.website_pages.publish_draft(object_id) -> None
- client.cms.pages.website_pages.schedule(\*\*params) -> None
- client.cms.pages.website_pages.set_new_lang_primary(\*\*params) -> None
-- client.cms.pages.website_pages.update_draft(object_id, \*\*params) -> PageData
+- client.cms.pages.website_pages.update_draft(object_id, \*\*params) -> PagesPage
## SiteSearch
diff --git a/src/hubspot_sdk/resources/cms/media_bridge/media_bridge.py b/src/hubspot_sdk/resources/cms/media_bridge/media_bridge.py
index bd074a3..825b01f 100644
--- a/src/hubspot_sdk/resources/cms/media_bridge/media_bridge.py
+++ b/src/hubspot_sdk/resources/cms/media_bridge/media_bridge.py
@@ -59,10 +59,10 @@
from ....types.shared_params.option_input import OptionInput
from ....types.cms.event_visibility_change import EventVisibilityChange
from ....types.cms.event_visibility_response import EventVisibilityResponse
+from ....types.shared.association_definition import AssociationDefinition
+from ....types.shared.object_type_definition import ObjectTypeDefinition
from ....types.cms.object_definition_response import ObjectDefinitionResponse
from ....types.cms.media_played_percentage_event import MediaPlayedPercentageEvent
-from ....types.shared.base_association_definition import BaseAssociationDefinition
-from ....types.shared.base_object_type_definition import BaseObjectTypeDefinition
from ....types.cms.integrator_o_embed_domain_model import IntegratorOEmbedDomainModel
from ....types.cms.o_embed_domains_collection_response import OEmbedDomainsCollectionResponse
from ....types.cms.attention_span_calculated_values_param import AttentionSpanCalculatedValuesParam
@@ -114,7 +114,7 @@ def create_association(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseAssociationDefinition:
+ ) -> AssociationDefinition:
"""
Create a new association definition for the specified object type.
@@ -146,7 +146,7 @@ def create_association(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=BaseAssociationDefinition,
+ cast_to=AssociationDefinition,
)
def create_attention_span_event(
@@ -574,7 +574,7 @@ def create_video_association_definition(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseAssociationDefinition:
+ ) -> AssociationDefinition:
"""
Args:
extra_headers: Send extra headers
@@ -590,7 +590,7 @@ def create_video_association_definition(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=BaseAssociationDefinition,
+ cast_to=AssociationDefinition,
)
def delete_association(
@@ -1480,7 +1480,7 @@ def update_schema(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseObjectTypeDefinition:
+ ) -> ObjectTypeDefinition:
"""
Update the schema for an existing object type
@@ -1516,7 +1516,7 @@ def update_schema(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=BaseObjectTypeDefinition,
+ cast_to=ObjectTypeDefinition,
)
def update_settings(
@@ -1603,7 +1603,7 @@ async def create_association(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseAssociationDefinition:
+ ) -> AssociationDefinition:
"""
Create a new association definition for the specified object type.
@@ -1635,7 +1635,7 @@ async def create_association(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=BaseAssociationDefinition,
+ cast_to=AssociationDefinition,
)
async def create_attention_span_event(
@@ -2063,7 +2063,7 @@ async def create_video_association_definition(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseAssociationDefinition:
+ ) -> AssociationDefinition:
"""
Args:
extra_headers: Send extra headers
@@ -2079,7 +2079,7 @@ async def create_video_association_definition(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=BaseAssociationDefinition,
+ cast_to=AssociationDefinition,
)
async def delete_association(
@@ -2969,7 +2969,7 @@ async def update_schema(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseObjectTypeDefinition:
+ ) -> ObjectTypeDefinition:
"""
Update the schema for an existing object type
@@ -3005,7 +3005,7 @@ async def update_schema(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=BaseObjectTypeDefinition,
+ cast_to=ObjectTypeDefinition,
)
async def update_settings(
diff --git a/src/hubspot_sdk/resources/cms/pages/a_b_tests.py b/src/hubspot_sdk/resources/cms/pages/a_b_tests.py
index 8e987fd..eb34022 100644
--- a/src/hubspot_sdk/resources/cms/pages/a_b_tests.py
+++ b/src/hubspot_sdk/resources/cms/pages/a_b_tests.py
@@ -23,7 +23,7 @@
a_b_test_create_site_page_variation_params,
a_b_test_create_landing_page_variation_params,
)
-from ....types.cms.page_data import PageData
+from ....types.cms.pages_page import PagesPage
__all__ = ["ABTestsResource", "AsyncABTestsResource"]
@@ -59,7 +59,7 @@ def create_landing_page_variation(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Create a new A/B test variation based on the information provided in the request
body.
@@ -89,7 +89,7 @@ def create_landing_page_variation(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
def create_site_page_variation(
@@ -103,7 +103,7 @@ def create_site_page_variation(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Create a new A/B test variation based on the information provided in the request
body.
@@ -133,7 +133,7 @@ def create_site_page_variation(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
def end_landing_page_test(
@@ -344,7 +344,7 @@ async def create_landing_page_variation(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Create a new A/B test variation based on the information provided in the request
body.
@@ -374,7 +374,7 @@ async def create_landing_page_variation(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
async def create_site_page_variation(
@@ -388,7 +388,7 @@ async def create_site_page_variation(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Create a new A/B test variation based on the information provided in the request
body.
@@ -418,7 +418,7 @@ async def create_site_page_variation(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
async def end_landing_page_test(
diff --git a/src/hubspot_sdk/resources/cms/pages/batch.py b/src/hubspot_sdk/resources/cms/pages/batch.py
index bcc3c48..3d5372e 100644
--- a/src/hubspot_sdk/resources/cms/pages/batch.py
+++ b/src/hubspot_sdk/resources/cms/pages/batch.py
@@ -30,7 +30,7 @@
batch_delete_landing_pages_params,
batch_update_landing_pages_params,
)
-from ....types.cms.page_data_param import PageDataParam
+from ....types.cms.pages_page_param import PagesPageParam
from ....types.cms.batch_response_page import BatchResponsePage
from ....types.cms.content_folder_param import ContentFolderParam
from ....types.cms.batch_response_content_folder import BatchResponseContentFolder
@@ -95,7 +95,7 @@ def create_folders(
def create_landing_pages(
self,
*,
- inputs: Iterable[PageDataParam],
+ inputs: Iterable[PagesPageParam],
# 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,
@@ -129,7 +129,7 @@ def create_landing_pages(
def create_site_pages(
self,
*,
- inputs: Iterable[PageDataParam],
+ inputs: Iterable[PagesPageParam],
# 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,
@@ -541,7 +541,7 @@ async def create_folders(
async def create_landing_pages(
self,
*,
- inputs: Iterable[PageDataParam],
+ inputs: Iterable[PagesPageParam],
# 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,
@@ -577,7 +577,7 @@ async def create_landing_pages(
async def create_site_pages(
self,
*,
- inputs: Iterable[PageDataParam],
+ inputs: Iterable[PagesPageParam],
# 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,
diff --git a/src/hubspot_sdk/resources/cms/pages/landing_pages.py b/src/hubspot_sdk/resources/cms/pages/landing_pages.py
index 943ecc7..e20f9d6 100644
--- a/src/hubspot_sdk/resources/cms/pages/landing_pages.py
+++ b/src/hubspot_sdk/resources/cms/pages/landing_pages.py
@@ -30,7 +30,7 @@
landing_page_schedule_params,
landing_page_update_draft_params,
)
-from ....types.cms.page_data import PageData
+from ....types.cms.pages_page import PagesPage
from ....types.cms.layout_section_param import LayoutSectionParam
from ....types.cms.public_access_rule_param import PublicAccessRuleParam
from ....types.cms.content_language_variation_param import ContentLanguageVariationParam
@@ -1034,7 +1034,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Create a new landing page.
@@ -1249,7 +1249,7 @@ def create(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
def update(
@@ -2230,7 +2230,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Sparse updates a single Landing Page object identified by the id in the path.
You only need to specify the column values that you are modifying.
@@ -2454,7 +2454,7 @@ def update(
timeout=timeout,
query=maybe_transform({"archived": archived}, landing_page_update_params.LandingPageUpdateParams),
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
def list(
@@ -2477,7 +2477,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> SyncPage[PageData]:
+ ) -> SyncPage[PagesPage]:
"""Retrieve a list of landing pages in your HubSpot account.
This endpoint allows
@@ -2519,7 +2519,7 @@ def list(
"""
return self._get_api_list(
"/cms/pages/2026-03/landing-pages",
- page=SyncPage[PageData],
+ page=SyncPage[PagesPage],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -2542,7 +2542,7 @@ def list(
landing_page_list_params.LandingPageListParams,
),
),
- model=PageData,
+ model=PagesPage,
)
def delete(
@@ -2597,7 +2597,7 @@ def clone(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Create a copy of an existing landing page.
@@ -2626,7 +2626,7 @@ def clone(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
def get(
@@ -2641,7 +2641,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Retrieve a landing page, specified by its ID.
@@ -2675,7 +2675,7 @@ def get(
landing_page_get_params.LandingPageGetParams,
),
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
def get_draft(
@@ -2688,7 +2688,7 @@ def get_draft(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Retrieve the full draft version of a landing page, specified by page ID.
@@ -2708,7 +2708,7 @@ def get_draft(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
def push_draft_live(
@@ -3801,7 +3801,7 @@ def update_draft(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Partially updates the draft version of a single landing page, specified by its
ID. You only need to specify the column values that you are modifying.
@@ -4019,7 +4019,7 @@ def update_draft(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
@@ -5019,7 +5019,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Create a new landing page.
@@ -5234,7 +5234,7 @@ async def create(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
async def update(
@@ -6215,7 +6215,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Sparse updates a single Landing Page object identified by the id in the path.
You only need to specify the column values that you are modifying.
@@ -6441,7 +6441,7 @@ async def update(
{"archived": archived}, landing_page_update_params.LandingPageUpdateParams
),
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
def list(
@@ -6464,7 +6464,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> AsyncPaginator[PageData, AsyncPage[PageData]]:
+ ) -> AsyncPaginator[PagesPage, AsyncPage[PagesPage]]:
"""Retrieve a list of landing pages in your HubSpot account.
This endpoint allows
@@ -6506,7 +6506,7 @@ def list(
"""
return self._get_api_list(
"/cms/pages/2026-03/landing-pages",
- page=AsyncPage[PageData],
+ page=AsyncPage[PagesPage],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -6529,7 +6529,7 @@ def list(
landing_page_list_params.LandingPageListParams,
),
),
- model=PageData,
+ model=PagesPage,
)
async def delete(
@@ -6586,7 +6586,7 @@ async def clone(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Create a copy of an existing landing page.
@@ -6615,7 +6615,7 @@ async def clone(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
async def get(
@@ -6630,7 +6630,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Retrieve a landing page, specified by its ID.
@@ -6664,7 +6664,7 @@ async def get(
landing_page_get_params.LandingPageGetParams,
),
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
async def get_draft(
@@ -6677,7 +6677,7 @@ async def get_draft(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Retrieve the full draft version of a landing page, specified by page ID.
@@ -6697,7 +6697,7 @@ async def get_draft(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
async def push_draft_live(
@@ -7790,7 +7790,7 @@ async def update_draft(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Partially updates the draft version of a single landing page, specified by its
ID. You only need to specify the column values that you are modifying.
@@ -8008,7 +8008,7 @@ async def update_draft(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
diff --git a/src/hubspot_sdk/resources/cms/pages/multi_language.py b/src/hubspot_sdk/resources/cms/pages/multi_language.py
index c68c746..cec65ec 100644
--- a/src/hubspot_sdk/resources/cms/pages/multi_language.py
+++ b/src/hubspot_sdk/resources/cms/pages/multi_language.py
@@ -33,7 +33,7 @@
multi_language_detach_from_lang_group_params,
multi_language_create_language_variation_params,
)
-from ....types.cms.page_data import PageData
+from ....types.cms.pages_page import PagesPage
__all__ = ["MultiLanguageResource", "AsyncMultiLanguageResource"]
@@ -1811,7 +1811,7 @@ def create_language_variation(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""Create a new language variation from an existing website page.
The variation
@@ -1847,7 +1847,7 @@ def create_language_variation(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
def detach_from_lang_group(
@@ -4589,7 +4589,7 @@ async def create_language_variation(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""Create a new language variation from an existing website page.
The variation
@@ -4625,7 +4625,7 @@ async def create_language_variation(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
async def detach_from_lang_group(
diff --git a/src/hubspot_sdk/resources/cms/pages/pages.py b/src/hubspot_sdk/resources/cms/pages/pages.py
index b68e723..8eec381 100644
--- a/src/hubspot_sdk/resources/cms/pages/pages.py
+++ b/src/hubspot_sdk/resources/cms/pages/pages.py
@@ -65,7 +65,7 @@
AsyncMultiLanguageResourceWithStreamingResponse,
)
from ...._base_client import AsyncPaginator, make_request_options
-from ....types.cms.page_data import PageData
+from ....types.cms.pages_page import PagesPage
from ....types.cms.page_version import PageVersion
__all__ = ["PagesResource", "AsyncPagesResource"]
@@ -349,7 +349,7 @@ def restore_landing_page_revision(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Restores a previous version of a landing page, specified by page ID and revision
ID.
@@ -376,7 +376,7 @@ def restore_landing_page_revision(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
def restore_landing_page_revision_to_draft(
@@ -390,7 +390,7 @@ def restore_landing_page_revision_to_draft(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Specify a previous version of a landing page to set as the page draft.
@@ -414,7 +414,7 @@ def restore_landing_page_revision_to_draft(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
def restore_site_page_revision(
@@ -428,7 +428,7 @@ def restore_site_page_revision(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Restores a website page to a previous version, specified by page ID and version
ID.
@@ -455,7 +455,7 @@ def restore_site_page_revision(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
def restore_site_page_revision_to_draft(
@@ -469,7 +469,7 @@ def restore_site_page_revision_to_draft(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Takes a specified version of a website page and sets it as the new draft version
of the page.
@@ -494,7 +494,7 @@ def restore_site_page_revision_to_draft(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
@@ -776,7 +776,7 @@ async def restore_landing_page_revision(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Restores a previous version of a landing page, specified by page ID and revision
ID.
@@ -803,7 +803,7 @@ async def restore_landing_page_revision(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
async def restore_landing_page_revision_to_draft(
@@ -817,7 +817,7 @@ async def restore_landing_page_revision_to_draft(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Specify a previous version of a landing page to set as the page draft.
@@ -841,7 +841,7 @@ async def restore_landing_page_revision_to_draft(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
async def restore_site_page_revision(
@@ -855,7 +855,7 @@ async def restore_site_page_revision(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Restores a website page to a previous version, specified by page ID and version
ID.
@@ -882,7 +882,7 @@ async def restore_site_page_revision(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
async def restore_site_page_revision_to_draft(
@@ -896,7 +896,7 @@ async def restore_site_page_revision_to_draft(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Takes a specified version of a website page and sets it as the new draft version
of the page.
@@ -921,7 +921,7 @@ async def restore_site_page_revision_to_draft(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
diff --git a/src/hubspot_sdk/resources/cms/pages/website_pages.py b/src/hubspot_sdk/resources/cms/pages/website_pages.py
index d3a6e4a..86d49ab 100644
--- a/src/hubspot_sdk/resources/cms/pages/website_pages.py
+++ b/src/hubspot_sdk/resources/cms/pages/website_pages.py
@@ -31,7 +31,7 @@
website_page_update_draft_params,
website_page_set_new_lang_primary_params,
)
-from ....types.cms.page_data import PageData
+from ....types.cms.pages_page import PagesPage
from ....types.cms.layout_section_param import LayoutSectionParam
from ....types.cms.public_access_rule_param import PublicAccessRuleParam
from ....types.cms.content_language_variation_param import ContentLanguageVariationParam
@@ -1035,7 +1035,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Create a new website page.
@@ -1250,7 +1250,7 @@ def create(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
def update(
@@ -2231,7 +2231,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""Partially updates a single website page, specified by its ID.
You only need to
@@ -2456,7 +2456,7 @@ def update(
timeout=timeout,
query=maybe_transform({"archived": archived}, website_page_update_params.WebsitePageUpdateParams),
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
def list(
@@ -2479,7 +2479,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> SyncPage[PageData]:
+ ) -> SyncPage[PagesPage]:
"""Retrieve all website pages.
Supports paging and filtering. This method would be
@@ -2522,7 +2522,7 @@ def list(
"""
return self._get_api_list(
"/cms/pages/2026-03/site-pages",
- page=SyncPage[PageData],
+ page=SyncPage[PagesPage],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -2545,7 +2545,7 @@ def list(
website_page_list_params.WebsitePageListParams,
),
),
- model=PageData,
+ model=PagesPage,
)
def delete(
@@ -2600,7 +2600,7 @@ def clone(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Create a copy of an existing website page.
@@ -2629,7 +2629,7 @@ def clone(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
def get(
@@ -2644,7 +2644,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Retrieve a website page by its ID.
@@ -2676,7 +2676,7 @@ def get(
website_page_get_params.WebsitePageGetParams,
),
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
def get_draft(
@@ -2689,7 +2689,7 @@ def get_draft(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Retrieve the full draft version of a website page, specified by its ID.
@@ -2709,7 +2709,7 @@ def get_draft(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
def publish_draft(
@@ -3805,7 +3805,7 @@ def update_draft(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""Partially update the draft version of a website page, specified by page ID.
You
@@ -4024,7 +4024,7 @@ def update_draft(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
@@ -5024,7 +5024,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Create a new website page.
@@ -5239,7 +5239,7 @@ async def create(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
async def update(
@@ -6220,7 +6220,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""Partially updates a single website page, specified by its ID.
You only need to
@@ -6447,7 +6447,7 @@ async def update(
{"archived": archived}, website_page_update_params.WebsitePageUpdateParams
),
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
def list(
@@ -6470,7 +6470,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> AsyncPaginator[PageData, AsyncPage[PageData]]:
+ ) -> AsyncPaginator[PagesPage, AsyncPage[PagesPage]]:
"""Retrieve all website pages.
Supports paging and filtering. This method would be
@@ -6513,7 +6513,7 @@ def list(
"""
return self._get_api_list(
"/cms/pages/2026-03/site-pages",
- page=AsyncPage[PageData],
+ page=AsyncPage[PagesPage],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -6536,7 +6536,7 @@ def list(
website_page_list_params.WebsitePageListParams,
),
),
- model=PageData,
+ model=PagesPage,
)
async def delete(
@@ -6593,7 +6593,7 @@ async def clone(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Create a copy of an existing website page.
@@ -6622,7 +6622,7 @@ async def clone(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
async def get(
@@ -6637,7 +6637,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Retrieve a website page by its ID.
@@ -6669,7 +6669,7 @@ async def get(
website_page_get_params.WebsitePageGetParams,
),
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
async def get_draft(
@@ -6682,7 +6682,7 @@ async def get_draft(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""
Retrieve the full draft version of a website page, specified by its ID.
@@ -6702,7 +6702,7 @@ async def get_draft(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
async def publish_draft(
@@ -7798,7 +7798,7 @@ async def update_draft(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PageData:
+ ) -> PagesPage:
"""Partially update the draft version of a website page, specified by page ID.
You
@@ -8017,7 +8017,7 @@ async def update_draft(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=PageData,
+ cast_to=PagesPage,
)
diff --git a/src/hubspot_sdk/resources/conversations/api.md b/src/hubspot_sdk/resources/conversations/api.md
index ad7b90a..5ec8b5c 100644
--- a/src/hubspot_sdk/resources/conversations/api.md
+++ b/src/hubspot_sdk/resources/conversations/api.md
@@ -21,8 +21,6 @@ from hubspot_sdk.types.conversations import (
FileAttachment,
LocationAttachment,
MessageHeaderAttachment,
- PreResolvedContact,
- PreResolvedContacts,
PublicChannelAccount,
PublicChannelAccountEgg,
PublicChannelAccountStagingToken,
diff --git a/src/hubspot_sdk/resources/conversations/custom_channels/messages.py b/src/hubspot_sdk/resources/conversations/custom_channels/messages.py
index 37499ac..be55695 100644
--- a/src/hubspot_sdk/resources/conversations/custom_channels/messages.py
+++ b/src/hubspot_sdk/resources/conversations/custom_channels/messages.py
@@ -20,7 +20,6 @@
)
from ...._base_client import make_request_options
from ....types.conversations.custom_channels import message_create_params, message_update_params
-from ....types.conversations.pre_resolved_contacts_param import PreResolvedContactsParam
from ....types.conversations.public_conversations_message import PublicConversationsMessage
from ....types.conversations.channel_integration_participant_param import ChannelIntegrationParticipantParam
@@ -62,7 +61,6 @@ def create(
in_reply_to_id: str | Omit = omit,
integration_idempotency_id: str | Omit = omit,
integration_thread_id: str | Omit = omit,
- pre_resolved_contacts: PreResolvedContactsParam | Omit = omit,
rich_text: str | 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.
@@ -98,7 +96,6 @@ def create(
"in_reply_to_id": in_reply_to_id,
"integration_idempotency_id": integration_idempotency_id,
"integration_thread_id": integration_thread_id,
- "pre_resolved_contacts": pre_resolved_contacts,
"rich_text": rich_text,
},
message_create_params.MessageCreateParams,
@@ -234,7 +231,6 @@ async def create(
in_reply_to_id: str | Omit = omit,
integration_idempotency_id: str | Omit = omit,
integration_thread_id: str | Omit = omit,
- pre_resolved_contacts: PreResolvedContactsParam | Omit = omit,
rich_text: str | 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.
@@ -270,7 +266,6 @@ async def create(
"in_reply_to_id": in_reply_to_id,
"integration_idempotency_id": integration_idempotency_id,
"integration_thread_id": integration_thread_id,
- "pre_resolved_contacts": pre_resolved_contacts,
"rich_text": rich_text,
},
message_create_params.MessageCreateParams,
diff --git a/src/hubspot_sdk/resources/crm/api.md b/src/hubspot_sdk/resources/crm/api.md
index 1025036..4a1d338 100644
--- a/src/hubspot_sdk/resources/crm/api.md
+++ b/src/hubspot_sdk/resources/crm/api.md
@@ -555,10 +555,10 @@ from hubspot_sdk.types.crm import (
Methods:
- client.crm.object_schemas.create(\*\*params) -> ObjectSchema
-- client.crm.object_schemas.update(object_type, \*\*params) -> BaseObjectTypeDefinition
+- client.crm.object_schemas.update(object_type, \*\*params) -> ObjectTypeDefinition
- client.crm.object_schemas.list(\*\*params) -> CollectionResponseObjectSchemaNoPaging
- client.crm.object_schemas.delete(object_type, \*\*params) -> None
-- client.crm.object_schemas.create_association(object_type, \*\*params) -> BaseAssociationDefinition
+- client.crm.object_schemas.create_association(object_type, \*\*params) -> AssociationDefinition
- client.crm.object_schemas.delete_association(association_identifier, \*, object_type) -> None
- client.crm.object_schemas.get(object_type, \*\*params) -> ObjectSchema
@@ -1401,11 +1401,11 @@ from hubspot_sdk.types.crm import (
Methods:
-- client.crm.properties.create(object_type, \*\*params) -> BaseProperty
-- client.crm.properties.update(property_name, \*, object_type, \*\*params) -> BaseProperty
+- client.crm.properties.create(object_type, \*\*params) -> Property
+- client.crm.properties.update(property_name, \*, object_type, \*\*params) -> Property
- client.crm.properties.list(object_type, \*\*params) -> CollectionResponsePropertyNoPaging
- client.crm.properties.delete(property_name, \*, object_type) -> None
-- client.crm.properties.get(property_name, \*, object_type, \*\*params) -> BaseProperty
+- client.crm.properties.get(property_name, \*, object_type, \*\*params) -> Property
### Batch
diff --git a/src/hubspot_sdk/resources/crm/extensions/cards_dev.py b/src/hubspot_sdk/resources/crm/extensions/cards_dev.py
index a19dfbc..2b80d72 100644
--- a/src/hubspot_sdk/resources/crm/extensions/cards_dev.py
+++ b/src/hubspot_sdk/resources/crm/extensions/cards_dev.py
@@ -290,7 +290,11 @@ def migrate_views(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> CardMigrateViewsResponse:
- """
+ """Swaps a Legacy CRM Card with an App Card in views.
+
+ Reference the "Migrate a
+ legacy CRM card to an app card" docs for more information
+
Args:
extra_headers: Send extra headers
@@ -576,7 +580,11 @@ async def migrate_views(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> CardMigrateViewsResponse:
- """
+ """Swaps a Legacy CRM Card with an App Card in views.
+
+ Reference the "Migrate a
+ legacy CRM card to an app card" docs for more information
+
Args:
extra_headers: Send extra headers
diff --git a/src/hubspot_sdk/resources/crm/object_schemas/object_schemas.py b/src/hubspot_sdk/resources/crm/object_schemas/object_schemas.py
index f0cdea1..01d7e8f 100644
--- a/src/hubspot_sdk/resources/crm/object_schemas/object_schemas.py
+++ b/src/hubspot_sdk/resources/crm/object_schemas/object_schemas.py
@@ -34,8 +34,8 @@
)
from ...._base_client import make_request_options
from ....types.crm.object_schema import ObjectSchema
-from ....types.shared.base_association_definition import BaseAssociationDefinition
-from ....types.shared.base_object_type_definition import BaseObjectTypeDefinition
+from ....types.shared.association_definition import AssociationDefinition
+from ....types.shared.object_type_definition import ObjectTypeDefinition
from ....types.crm.object_type_property_create_param import ObjectTypePropertyCreateParam
from ....types.shared_params.object_type_definition_labels import ObjectTypeDefinitionLabels
from ....types.crm.collection_response_object_schema_no_paging import CollectionResponseObjectSchemaNoPaging
@@ -164,7 +164,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseObjectTypeDefinition:
+ ) -> ObjectTypeDefinition:
"""
Update attributes of a custom object schema, such as properties and labels,
using the object type ID or fully qualified name.
@@ -199,7 +199,7 @@ def update(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=BaseObjectTypeDefinition,
+ cast_to=ObjectTypeDefinition,
)
def list(
@@ -306,7 +306,7 @@ def create_association(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseAssociationDefinition:
+ ) -> AssociationDefinition:
"""
Create a new association between the specified object type and another object
type. This operation requires the definition of the association attributes, such
@@ -336,7 +336,7 @@ def create_association(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=BaseAssociationDefinition,
+ cast_to=AssociationDefinition,
)
def delete_association(
@@ -554,7 +554,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseObjectTypeDefinition:
+ ) -> ObjectTypeDefinition:
"""
Update attributes of a custom object schema, such as properties and labels,
using the object type ID or fully qualified name.
@@ -589,7 +589,7 @@ async def update(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=BaseObjectTypeDefinition,
+ cast_to=ObjectTypeDefinition,
)
async def list(
@@ -698,7 +698,7 @@ async def create_association(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseAssociationDefinition:
+ ) -> AssociationDefinition:
"""
Create a new association between the specified object type and another object
type. This operation requires the definition of the association attributes, such
@@ -728,7 +728,7 @@ async def create_association(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=BaseAssociationDefinition,
+ cast_to=AssociationDefinition,
)
async def delete_association(
diff --git a/src/hubspot_sdk/resources/crm/properties/properties.py b/src/hubspot_sdk/resources/crm/properties/properties.py
index b110163..dd6513a 100644
--- a/src/hubspot_sdk/resources/crm/properties/properties.py
+++ b/src/hubspot_sdk/resources/crm/properties/properties.py
@@ -35,7 +35,7 @@
)
from ....types.crm import property_get_params, property_list_params, property_create_params, property_update_params
from ...._base_client import make_request_options
-from ....types.shared.base_property import BaseProperty
+from ....types.shared.property import Property
from ....types.shared_params.option_input import OptionInput
from ....types.crm.collection_response_property_no_paging import CollectionResponsePropertyNoPaging
@@ -112,7 +112,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseProperty:
+ ) -> Property:
"""
Create and return a copy of a new property for the specified object type.
@@ -155,7 +155,7 @@ def create(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=BaseProperty,
+ cast_to=Property,
)
def update(
@@ -197,7 +197,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseProperty:
+ ) -> Property:
"""Perform a partial update of a property identified by { propertyName }.
Provided
@@ -265,7 +265,7 @@ def update(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=BaseProperty,
+ cast_to=Property,
)
def list(
@@ -375,7 +375,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseProperty:
+ ) -> Property:
"""
Read a property identified by {propertyName}.
@@ -415,7 +415,7 @@ def get(
property_get_params.PropertyGetParams,
),
),
- cast_to=BaseProperty,
+ cast_to=Property,
)
@@ -489,7 +489,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseProperty:
+ ) -> Property:
"""
Create and return a copy of a new property for the specified object type.
@@ -532,7 +532,7 @@ async def create(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=BaseProperty,
+ cast_to=Property,
)
async def update(
@@ -574,7 +574,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseProperty:
+ ) -> Property:
"""Perform a partial update of a property identified by { propertyName }.
Provided
@@ -642,7 +642,7 @@ async def update(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=BaseProperty,
+ cast_to=Property,
)
async def list(
@@ -752,7 +752,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseProperty:
+ ) -> Property:
"""
Read a property identified by {propertyName}.
@@ -792,7 +792,7 @@ async def get(
property_get_params.PropertyGetParams,
),
),
- cast_to=BaseProperty,
+ cast_to=Property,
)
diff --git a/src/hubspot_sdk/resources/events/api.md b/src/hubspot_sdk/resources/events/api.md
index 972a4d8..6ad4230 100644
--- a/src/hubspot_sdk/resources/events/api.md
+++ b/src/hubspot_sdk/resources/events/api.md
@@ -80,11 +80,11 @@ Methods:
- client.events.definitions.update(event_name, \*\*params) -> ExternalBehavioralEventTypeDefinition
- client.events.definitions.list(\*\*params) -> SyncPage[ExternalBehavioralEventTypeDefinition]
- client.events.definitions.delete(event_name) -> None
-- client.events.definitions.create_property(event_name, \*\*params) -> BaseProperty
+- client.events.definitions.create_property(event_name, \*\*params) -> Property
- client.events.definitions.delete_property(property_name, \*, event_name) -> None
- client.events.definitions.get(event_name) -> ExternalBehavioralEventTypeDefinition
- client.events.definitions.send_batch(\*\*params) -> None
-- client.events.definitions.update_property(property_name, \*, event_name, \*\*params) -> BaseProperty
+- client.events.definitions.update_property(property_name, \*, event_name, \*\*params) -> Property
## Occurrences
diff --git a/src/hubspot_sdk/resources/events/definitions.py b/src/hubspot_sdk/resources/events/definitions.py
index 015a8e2..686ab4d 100644
--- a/src/hubspot_sdk/resources/events/definitions.py
+++ b/src/hubspot_sdk/resources/events/definitions.py
@@ -26,7 +26,7 @@
definition_create_property_params,
definition_update_property_params,
)
-from ...types.shared.base_property import BaseProperty
+from ...types.shared.property import Property
from ...types.shared_params.option_input import OptionInput
from ...types.events.external_behavioral_event_type_definition import ExternalBehavioralEventTypeDefinition
from ...types.events.behavioral_event_http_completion_request_param import BehavioralEventHTTPCompletionRequestParam
@@ -271,7 +271,7 @@ def create_property(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseProperty:
+ ) -> Property:
"""
Create a new property for an existing event definition.
@@ -314,7 +314,7 @@ def create_property(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=BaseProperty,
+ cast_to=Property,
)
def delete_property(
@@ -438,7 +438,7 @@ def update_property(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseProperty:
+ ) -> Property:
"""
Update an existing property in a custom event definition.
@@ -479,7 +479,7 @@ def update_property(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=BaseProperty,
+ cast_to=Property,
)
@@ -718,7 +718,7 @@ async def create_property(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseProperty:
+ ) -> Property:
"""
Create a new property for an existing event definition.
@@ -761,7 +761,7 @@ async def create_property(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=BaseProperty,
+ cast_to=Property,
)
async def delete_property(
@@ -887,7 +887,7 @@ async def update_property(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> BaseProperty:
+ ) -> Property:
"""
Update an existing property in a custom event definition.
@@ -928,7 +928,7 @@ async def update_property(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=BaseProperty,
+ cast_to=Property,
)
diff --git a/src/hubspot_sdk/resources/marketing/campaigns/assets.py b/src/hubspot_sdk/resources/marketing/campaigns/assets.py
index fbd5d56..6194bc4 100644
--- a/src/hubspot_sdk/resources/marketing/campaigns/assets.py
+++ b/src/hubspot_sdk/resources/marketing/campaigns/assets.py
@@ -126,8 +126,16 @@ def list(
as the `paging.next.after` JSON property of a paged response containing more
results.
+ end_date: End date to fetch asset metrics, formatted as YYYY-MM-DD. This date is used to
+ fetch the metrics associated with the assets for a specified period. If not
+ provided, no asset metrics will be fetched. Example: 2024-01-27
+
limit: The maximum number of results to display per page.
+ start_date: Start date to fetch asset metrics, formatted as YYYY-MM-DD. This date is used to
+ fetch the metrics associated with the assets for a specified period. If not
+ provided, no asset metrics will be fetched. Example: 2023-01-20
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -323,8 +331,16 @@ async def list(
as the `paging.next.after` JSON property of a paged response containing more
results.
+ end_date: End date to fetch asset metrics, formatted as YYYY-MM-DD. This date is used to
+ fetch the metrics associated with the assets for a specified period. If not
+ provided, no asset metrics will be fetched. Example: 2024-01-27
+
limit: The maximum number of results to display per page.
+ start_date: Start date to fetch asset metrics, formatted as YYYY-MM-DD. This date is used to
+ fetch the metrics associated with the assets for a specified period. If not
+ provided, no asset metrics will be fetched. Example: 2023-01-20
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
diff --git a/src/hubspot_sdk/resources/marketing/campaigns/batch.py b/src/hubspot_sdk/resources/marketing/campaigns/batch.py
index 06dc9e0..f56dbb2 100644
--- a/src/hubspot_sdk/resources/marketing/campaigns/batch.py
+++ b/src/hubspot_sdk/resources/marketing/campaigns/batch.py
@@ -196,6 +196,20 @@ def get(
inputs: An array of PublicCampaignReadInput objects, each containing the ID of a
campaign to be read. This property is required.
+ end_date: End date to fetch asset metrics, formatted as YYYY-MM-DD. This date is used to
+ fetch the metrics associated with the assets for a specified period. If not
+ provided, no asset metrics will be fetched. Example: 2024-01-27
+
+ properties: A comma-separated list of the properties to be returned in the response. If any
+ of the specified properties has empty value on the requested object(s), they
+ will be ignored and not returned in response. If this parameter is empty, the
+ response will include an empty properties map. Example: hs_name,
+ hs_campaign_status, hs_notes
+
+ start_date: Start date to fetch asset metrics, formatted as YYYY-MM-DD. This date is used to
+ fetch the metrics associated with the assets for a specified period. If not
+ provided, no asset metrics will be fetched. Example: 2023-01-20
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -388,6 +402,20 @@ async def get(
inputs: An array of PublicCampaignReadInput objects, each containing the ID of a
campaign to be read. This property is required.
+ end_date: End date to fetch asset metrics, formatted as YYYY-MM-DD. This date is used to
+ fetch the metrics associated with the assets for a specified period. If not
+ provided, no asset metrics will be fetched. Example: 2024-01-27
+
+ properties: A comma-separated list of the properties to be returned in the response. If any
+ of the specified properties has empty value on the requested object(s), they
+ will be ignored and not returned in response. If this parameter is empty, the
+ response will include an empty properties map. Example: hs_name,
+ hs_campaign_status, hs_notes
+
+ start_date: Start date to fetch asset metrics, formatted as YYYY-MM-DD. This date is used to
+ fetch the metrics associated with the assets for a specified period. If not
+ provided, no asset metrics will be fetched. Example: 2023-01-20
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
diff --git a/src/hubspot_sdk/resources/marketing/campaigns/campaigns.py b/src/hubspot_sdk/resources/marketing/campaigns/campaigns.py
index 999d9f7..080549f 100644
--- a/src/hubspot_sdk/resources/marketing/campaigns/campaigns.py
+++ b/src/hubspot_sdk/resources/marketing/campaigns/campaigns.py
@@ -218,6 +218,14 @@ def list(
limit: The maximum number of results to display per page.
+ name: Filter campaigns by name. Optional.
+
+ properties: A comma-separated list of properties to include in the response.
+ Unrecognized properties are ignored. Optional. Example:
+ hs_name, hs_budget,hs_notes
+
+ sort: The property to sort results by. Optional.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -307,6 +315,15 @@ def get(
if startDate and endDate are provided.
Args:
+ end_date: The end date for fetching asset metrics, in YYYY-MM-DD format. Optional.
+ Example: 2000-01-27
+
+ properties: A comma-separated list of properties to include in the response.
+ Unrecognized properties are ignored. Optional. Example: hs_name,hs_budget, hs_notes
+
+ start_date: The start date for fetching asset metrics, in YYYY-MM-DD format.
+ Optional. Example: 2000-01-20
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -485,6 +502,14 @@ def list(
limit: The maximum number of results to display per page.
+ name: Filter campaigns by name. Optional.
+
+ properties: A comma-separated list of properties to include in the response.
+ Unrecognized properties are ignored. Optional. Example:
+ hs_name, hs_budget,hs_notes
+
+ sort: The property to sort results by. Optional.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -574,6 +599,15 @@ async def get(
if startDate and endDate are provided.
Args:
+ end_date: The end date for fetching asset metrics, in YYYY-MM-DD format. Optional.
+ Example: 2000-01-27
+
+ properties: A comma-separated list of properties to include in the response.
+ Unrecognized properties are ignored. Optional. Example: hs_name,hs_budget, hs_notes
+
+ start_date: The start date for fetching asset metrics, in YYYY-MM-DD format.
+ Optional. Example: 2000-01-20
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
diff --git a/src/hubspot_sdk/resources/marketing/campaigns/metrics.py b/src/hubspot_sdk/resources/marketing/campaigns/metrics.py
index 16c0f73..e4a3b5d 100644
--- a/src/hubspot_sdk/resources/marketing/campaigns/metrics.py
+++ b/src/hubspot_sdk/resources/marketing/campaigns/metrics.py
@@ -66,6 +66,12 @@ def get_attribution_metrics(
as sessions, new contacts, and influenced contacts.
Args:
+ end_date: The end date for fetching attribution data, in YYYY-MM-DD format. Optional.
+ Example: 2000-01-27
+
+ start_date: The start date for fetching attribution data, in YYYY-MM-DD format. Optional.
+ Example: 2000-01-20
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -112,6 +118,11 @@ def get_revenue_attribution(
Fetch revenue attribution report data for a specified campaign
Args:
+ attribution_model: The revenue attribution model used to calculate deal revenue credit. Defaults to
+ LINEAR if not specified. Enum values: LINEAR, FIRST_INTERACTION,
+ LAST_INTERACTION, FULL_PATH, U_SHAPED, W_SHAPED, TIME_DECAY, J_SHAPED,
+ INVERSE_J_SHAPED
+
end_date: End date to fetch attribution data, YYYY-MM-DD
start_date: Start date to fetch attribution data, YYYY-MM-DD
@@ -169,8 +180,14 @@ def list_contact_ids_by_type(
as the `paging.next.after` JSON property of a paged response containing more
results.
+ end_date: The end date for fetching contact data, in YYYY-MM-DD format.
+ Optional. Example: 2000-01-27
+
limit: The maximum number of results to display per page.
+ start_date: The start date for fetching contact data, in YYYY-MM-DD format.
+ Optional. Example: 2000-01-20
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -247,6 +264,12 @@ async def get_attribution_metrics(
as sessions, new contacts, and influenced contacts.
Args:
+ end_date: The end date for fetching attribution data, in YYYY-MM-DD format. Optional.
+ Example: 2000-01-27
+
+ start_date: The start date for fetching attribution data, in YYYY-MM-DD format. Optional.
+ Example: 2000-01-20
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -293,6 +316,11 @@ async def get_revenue_attribution(
Fetch revenue attribution report data for a specified campaign
Args:
+ attribution_model: The revenue attribution model used to calculate deal revenue credit. Defaults to
+ LINEAR if not specified. Enum values: LINEAR, FIRST_INTERACTION,
+ LAST_INTERACTION, FULL_PATH, U_SHAPED, W_SHAPED, TIME_DECAY, J_SHAPED,
+ INVERSE_J_SHAPED
+
end_date: End date to fetch attribution data, YYYY-MM-DD
start_date: Start date to fetch attribution data, YYYY-MM-DD
@@ -350,8 +378,14 @@ def list_contact_ids_by_type(
as the `paging.next.after` JSON property of a paged response containing more
results.
+ end_date: The end date for fetching contact data, in YYYY-MM-DD format.
+ Optional. Example: 2000-01-27
+
limit: The maximum number of results to display per page.
+ start_date: The start date for fetching contact data, in YYYY-MM-DD format.
+ Optional. Example: 2000-01-20
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
diff --git a/src/hubspot_sdk/types/__init__.py b/src/hubspot_sdk/types/__init__.py
index 077c4d2..2da98b0 100644
--- a/src/hubspot_sdk/types/__init__.py
+++ b/src/hubspot_sdk/types/__init__.py
@@ -3,15 +3,15 @@
from __future__ import annotations
from .shared import (
+ Option as Option,
Paging as Paging,
NextPage as NextPage,
- BaseError as BaseError,
- BaseOption as BaseOption,
+ Property as Property,
+ ErrorData as ErrorData,
ErrorDetail as ErrorDetail,
OptionInput as OptionInput,
TaskLocator as TaskLocator,
VersionUser as VersionUser,
- BaseProperty as BaseProperty,
PreviousPage as PreviousPage,
PropertyName as PropertyName,
ForwardPaging as ForwardPaging,
@@ -25,14 +25,14 @@
BatchInputString as BatchInputString,
PropertyGroupCreate as PropertyGroupCreate,
PropertyGroupUpdate as PropertyGroupUpdate,
+ ObjectTypeDefinition as ObjectTypeDefinition,
+ AssociationDefinition as AssociationDefinition,
BatchInputPropertyName as BatchInputPropertyName,
AutomationActionsOption as AutomationActionsOption,
AbTestCreateRequestVNext as AbTestCreateRequestVNext,
AssociationDefinitionEgg as AssociationDefinitionEgg,
- BaseObjectTypeDefinition as BaseObjectTypeDefinition,
BatchInputPropertyCreate as BatchInputPropertyCreate,
BatchInputPublicObjectID as BatchInputPublicObjectID,
- BaseAssociationDefinition as BaseAssociationDefinition,
ObjectTypeDefinitionPatch as ObjectTypeDefinitionPatch,
BatchReadInputPropertyName as BatchReadInputPropertyName,
ObjectTypeDefinitionLabels as ObjectTypeDefinitionLabels,
diff --git a/src/hubspot_sdk/types/automation/chirp_ai_context_object_param.py b/src/hubspot_sdk/types/automation/chirp_ai_context_object_param.py
index d1db4a5..c3d32fd 100644
--- a/src/hubspot_sdk/types/automation/chirp_ai_context_object_param.py
+++ b/src/hubspot_sdk/types/automation/chirp_ai_context_object_param.py
@@ -18,6 +18,8 @@ class ChirpAIContextObjectParam(TypedDict, total=False):
application_id: Required[Annotated[str, PropertyInfo(alias="applicationId")]]
"""The identifier for the application associated with the context."""
+ is_private: Required[Annotated[bool, PropertyInfo(alias="isPrivate")]]
+
metadata: Required[Dict[str, str]]
"""Additional metadata related to the context, represented as key-value pairs."""
diff --git a/src/hubspot_sdk/types/cms/__init__.py b/src/hubspot_sdk/types/cms/__init__.py
index 86c98d2..a8af7e0 100644
--- a/src/hubspot_sdk/types/cms/__init__.py
+++ b/src/hubspot_sdk/types/cms/__init__.py
@@ -13,10 +13,10 @@
from .gradient import Gradient as Gradient
from .option_1 import Option1 as Option1
from .endpoints import Endpoints as Endpoints
-from .page_data import PageData as PageData
from .color_stop import ColorStop as ColorStop
from .foreign_id import ForeignID as ForeignID
from .group_view import GroupView as GroupView
+from .pages_page import PagesPage as PagesPage
from .property_1 import Property1 as Property1
from .rgba_color import RgbaColor as RgbaColor
from .size_param import SizeParam as SizeParam
@@ -43,9 +43,9 @@
from .side_or_corner import SideOrCorner as SideOrCorner
from .endpoints_param import EndpointsParam as EndpointsParam
from .hub_db_table_v3 import HubDBTableV3 as HubDBTableV3
-from .page_data_param import PageDataParam as PageDataParam
from .background_image import BackgroundImage as BackgroundImage
from .color_stop_param import ColorStopParam as ColorStopParam
+from .pages_page_param import PagesPageParam as PagesPageParam
from .public_audit_log import PublicAuditLog as PublicAuditLog
from .rgba_color_param import RgbaColorParam as RgbaColorParam
from .bounded_next_page import BoundedNextPage as BoundedNextPage
diff --git a/src/hubspot_sdk/types/cms/batch_response_page.py b/src/hubspot_sdk/types/cms/batch_response_page.py
index 1a261d7..0935b6a 100644
--- a/src/hubspot_sdk/types/cms/batch_response_page.py
+++ b/src/hubspot_sdk/types/cms/batch_response_page.py
@@ -17,7 +17,7 @@ class BatchResponsePage(BaseModel):
completed_at: datetime = FieldInfo(alias="completedAt")
"""Time of batch operation completion."""
- results: List["PageData"]
+ results: List["PagesPage"]
"""Results of batch operation."""
started_at: datetime = FieldInfo(alias="startedAt")
@@ -33,4 +33,4 @@ class BatchResponsePage(BaseModel):
"""Time of batch operation request."""
-from .page_data import PageData
+from .pages_page import PagesPage
diff --git a/src/hubspot_sdk/types/cms/collection_response_with_total_page_forward_paging.py b/src/hubspot_sdk/types/cms/collection_response_with_total_page_forward_paging.py
index ff97e42..ff87185 100644
--- a/src/hubspot_sdk/types/cms/collection_response_with_total_page_forward_paging.py
+++ b/src/hubspot_sdk/types/cms/collection_response_with_total_page_forward_paging.py
@@ -11,7 +11,7 @@
class CollectionResponseWithTotalPageForwardPaging(BaseModel):
- results: List["PageData"]
+ results: List["PagesPage"]
"""Collection of pages."""
total: int
@@ -20,4 +20,4 @@ class CollectionResponseWithTotalPageForwardPaging(BaseModel):
paging: Optional[ForwardPaging] = None
-from .page_data import PageData
+from .pages_page import PagesPage
diff --git a/src/hubspot_sdk/types/cms/import_result.py b/src/hubspot_sdk/types/cms/import_result.py
index e97eda9..7e3d408 100644
--- a/src/hubspot_sdk/types/cms/import_result.py
+++ b/src/hubspot_sdk/types/cms/import_result.py
@@ -5,7 +5,7 @@
from pydantic import Field as FieldInfo
from ..._models import BaseModel
-from ..shared.base_error import BaseError
+from ..shared.error_data import ErrorData
__all__ = ["ImportResult"]
@@ -14,7 +14,7 @@ class ImportResult(BaseModel):
duplicate_rows: int = FieldInfo(alias="duplicateRows")
"""Specifies number of duplicate rows"""
- errors: List[BaseError]
+ errors: List[ErrorData]
"""List of errors during import"""
row_limit_exceeded: bool = FieldInfo(alias="rowLimitExceeded")
diff --git a/src/hubspot_sdk/types/cms/object_schema.py b/src/hubspot_sdk/types/cms/object_schema.py
index 1a2eb0c..c8a678a 100644
--- a/src/hubspot_sdk/types/cms/object_schema.py
+++ b/src/hubspot_sdk/types/cms/object_schema.py
@@ -7,7 +7,7 @@
from ..._models import BaseModel
from .property_1 import Property1
-from ..shared.base_association_definition import BaseAssociationDefinition
+from ..shared.association_definition import AssociationDefinition
from ..shared.object_type_definition_labels import ObjectTypeDefinitionLabels
__all__ = ["ObjectSchema"]
@@ -20,7 +20,7 @@ class ObjectSchema(BaseModel):
archived: bool
- associations: List[BaseAssociationDefinition]
+ associations: List[AssociationDefinition]
fully_qualified_name: str = FieldInfo(alias="fullyQualifiedName")
diff --git a/src/hubspot_sdk/types/cms/page_version.py b/src/hubspot_sdk/types/cms/page_version.py
index 16b2a68..4daadf6 100644
--- a/src/hubspot_sdk/types/cms/page_version.py
+++ b/src/hubspot_sdk/types/cms/page_version.py
@@ -15,11 +15,11 @@
class PageVersion(BaseModel):
id: str
- object: "PageData"
+ object: "PagesPage"
updated_at: datetime = FieldInfo(alias="updatedAt")
user: VersionUser
-from .page_data import PageData
+from .pages_page import PagesPage
diff --git a/src/hubspot_sdk/types/cms/pages/batch_create_landing_pages_params.py b/src/hubspot_sdk/types/cms/pages/batch_create_landing_pages_params.py
index 9aa6b3a..5c23174 100644
--- a/src/hubspot_sdk/types/cms/pages/batch_create_landing_pages_params.py
+++ b/src/hubspot_sdk/types/cms/pages/batch_create_landing_pages_params.py
@@ -9,8 +9,8 @@
class BatchCreateLandingPagesParams(TypedDict, total=False):
- inputs: Required[Iterable["PageDataParam"]]
+ inputs: Required[Iterable["PagesPageParam"]]
"""Pages to input."""
-from ..page_data_param import PageDataParam
+from ..pages_page_param import PagesPageParam
diff --git a/src/hubspot_sdk/types/cms/pages/batch_create_site_pages_params.py b/src/hubspot_sdk/types/cms/pages/batch_create_site_pages_params.py
index 7b1339a..7696953 100644
--- a/src/hubspot_sdk/types/cms/pages/batch_create_site_pages_params.py
+++ b/src/hubspot_sdk/types/cms/pages/batch_create_site_pages_params.py
@@ -9,8 +9,8 @@
class BatchCreateSitePagesParams(TypedDict, total=False):
- inputs: Required[Iterable["PageDataParam"]]
+ inputs: Required[Iterable["PagesPageParam"]]
"""Pages to input."""
-from ..page_data_param import PageDataParam
+from ..pages_page_param import PagesPageParam
diff --git a/src/hubspot_sdk/types/cms/page_data.py b/src/hubspot_sdk/types/cms/pages_page.py
similarity index 99%
rename from src/hubspot_sdk/types/cms/page_data.py
rename to src/hubspot_sdk/types/cms/pages_page.py
index 5f05913..598608f 100644
--- a/src/hubspot_sdk/types/cms/page_data.py
+++ b/src/hubspot_sdk/types/cms/pages_page.py
@@ -11,10 +11,10 @@
from ..._models import BaseModel
from .content_language_variation import ContentLanguageVariation
-__all__ = ["PageData"]
+__all__ = ["PagesPage"]
-class PageData(BaseModel):
+class PagesPage(BaseModel):
id: str
"""The unique ID of the page."""
diff --git a/src/hubspot_sdk/types/cms/page_data_param.py b/src/hubspot_sdk/types/cms/pages_page_param.py
similarity index 99%
rename from src/hubspot_sdk/types/cms/page_data_param.py
rename to src/hubspot_sdk/types/cms/pages_page_param.py
index d6735ec..e2a8d8f 100644
--- a/src/hubspot_sdk/types/cms/page_data_param.py
+++ b/src/hubspot_sdk/types/cms/pages_page_param.py
@@ -10,10 +10,10 @@
from .public_access_rule_param import PublicAccessRuleParam
from .content_language_variation_param import ContentLanguageVariationParam
-__all__ = ["PageDataParam"]
+__all__ = ["PagesPageParam"]
-class PageDataParam(TypedDict, total=False):
+class PagesPageParam(TypedDict, total=False):
id: Required[str]
"""The unique ID of the page."""
diff --git a/src/hubspot_sdk/types/conversations/__init__.py b/src/hubspot_sdk/types/conversations/__init__.py
index 8571ac3..c6bb16f 100644
--- a/src/hubspot_sdk/types/conversations/__init__.py
+++ b/src/hubspot_sdk/types/conversations/__init__.py
@@ -35,10 +35,8 @@
from .custom_channel_get_params import CustomChannelGetParams as CustomChannelGetParams
from .location_attachment_param import LocationAttachmentParam as LocationAttachmentParam
from .custom_channel_list_params import CustomChannelListParams as CustomChannelListParams
-from .pre_resolved_contact_param import PreResolvedContactParam as PreResolvedContactParam
from .public_delivery_identifier import PublicDeliveryIdentifier as PublicDeliveryIdentifier
from .public_unsupported_content import PublicUnsupportedContent as PublicUnsupportedContent
-from .pre_resolved_contacts_param import PreResolvedContactsParam as PreResolvedContactsParam
from .custom_channel_create_params import CustomChannelCreateParams as CustomChannelCreateParams
from .custom_channel_update_params import CustomChannelUpdateParams as CustomChannelUpdateParams
from .public_conversations_message import PublicConversationsMessage as PublicConversationsMessage
diff --git a/src/hubspot_sdk/types/conversations/custom_channels/message_create_params.py b/src/hubspot_sdk/types/conversations/custom_channels/message_create_params.py
index d28dda8..f36223a 100644
--- a/src/hubspot_sdk/types/conversations/custom_channels/message_create_params.py
+++ b/src/hubspot_sdk/types/conversations/custom_channels/message_create_params.py
@@ -10,7 +10,6 @@
from ..file_attachment_param import FileAttachmentParam
from ..contact_attachment_param import ContactAttachmentParam
from ..location_attachment_param import LocationAttachmentParam
-from ..pre_resolved_contacts_param import PreResolvedContactsParam
from ..quick_replies_attachment_param import QuickRepliesAttachmentParam
from ..message_header_attachment_param import MessageHeaderAttachmentParam
from ..unsupported_content_attachment_param import UnsupportedContentAttachmentParam
@@ -43,8 +42,6 @@ class MessageCreateParams(TypedDict, total=False):
integration_thread_id: Annotated[str, PropertyInfo(alias="integrationThreadId")]
- pre_resolved_contacts: Annotated[PreResolvedContactsParam, PropertyInfo(alias="preResolvedContacts")]
-
rich_text: Annotated[str, PropertyInfo(alias="richText")]
diff --git a/src/hubspot_sdk/types/conversations/pre_resolved_contact_param.py b/src/hubspot_sdk/types/conversations/pre_resolved_contact_param.py
deleted file mode 100644
index 68ba031..0000000
--- a/src/hubspot_sdk/types/conversations/pre_resolved_contact_param.py
+++ /dev/null
@@ -1,409 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from __future__ import annotations
-
-from typing import List
-from typing_extensions import Literal, Required, Annotated, TypedDict
-
-from ..._utils import PropertyInfo
-
-__all__ = ["PreResolvedContactParam"]
-
-
-class PreResolvedContactParam(TypedDict, total=False):
- contact_properties_leading_to_match: Required[
- Annotated[
- List[
- Literal[
- "address",
- "annualrevenue",
- "associatedcompanyid",
- "associatedcompanylastupdated",
- "city",
- "closedate",
- "company",
- "company_size",
- "country",
- "createdate",
- "currentlyinworkflow",
- "date_of_birth",
- "days_to_close",
- "degree",
- "email",
- "engagements_last_meeting_booked",
- "engagements_last_meeting_booked_campaign",
- "engagements_last_meeting_booked_medium",
- "engagements_last_meeting_booked_source",
- "fax",
- "field_of_study",
- "first_conversion_date",
- "first_conversion_event_name",
- "first_deal_created_date",
- "firstname",
- "followercount",
- "gender",
- "graduation_date",
- "hs_additional_emails",
- "hs_all_contact_vids",
- "hs_analytics_average_page_views",
- "hs_analytics_first_referrer",
- "hs_analytics_first_timestamp",
- "hs_analytics_first_touch_converting_campaign",
- "hs_analytics_first_url",
- "hs_analytics_first_visit_timestamp",
- "hs_analytics_last_referrer",
- "hs_analytics_last_timestamp",
- "hs_analytics_last_touch_converting_campaign",
- "hs_analytics_last_url",
- "hs_analytics_last_visit_timestamp",
- "hs_analytics_num_event_completions",
- "hs_analytics_num_page_views",
- "hs_analytics_num_visits",
- "hs_analytics_revenue",
- "hs_analytics_source",
- "hs_analytics_source_composite_data",
- "hs_analytics_source_data_1",
- "hs_analytics_source_data_2",
- "hs_associated_target_accounts",
- "hs_avatar_filemanager_key",
- "hs_bing_ad_clicked",
- "hs_bing_click_id",
- "hs_buying_role",
- "hs_calculated_form_submissions",
- "hs_calculated_merged_vids",
- "hs_calculated_mobile_number",
- "hs_calculated_phone_number",
- "hs_calculated_phone_number_area_code",
- "hs_calculated_phone_number_country_code",
- "hs_calculated_phone_number_region_code",
- "hs_chat_assistant_iql_date",
- "hs_chat_assistant_source",
- "hs_chat_assistant_summary",
- "hs_clicked_linkedin_ad",
- "hs_contact_creation_legal_basis_source_instance_id",
- "hs_contact_enrichment_opt_out",
- "hs_contact_enrichment_opt_out_timestamp",
- "hs_content_membership_email",
- "hs_content_membership_email_confirmed",
- "hs_content_membership_follow_up_enqueued_at",
- "hs_content_membership_notes",
- "hs_content_membership_registered_at",
- "hs_content_membership_registration_domain_sent_to",
- "hs_content_membership_registration_email_sent_at",
- "hs_content_membership_status",
- "hs_conversations_visitor_email",
- "hs_count_is_unworked",
- "hs_count_is_worked",
- "hs_country_region_code",
- "hs_created_by_conversations",
- "hs_cross_account_note",
- "hs_cross_sell_opportunity",
- "hs_current_customer",
- "hs_currently_enrolled_in_prospecting_agent",
- "hs_customer_agent_lead_status",
- "hs_data_privacy_ads_consent",
- "hs_date_entered_customer",
- "hs_date_entered_evangelist",
- "hs_date_entered_lead",
- "hs_date_entered_marketingqualifiedlead",
- "hs_date_entered_opportunity",
- "hs_date_entered_other",
- "hs_date_entered_salesqualifiedlead",
- "hs_date_entered_subscriber",
- "hs_date_exited_customer",
- "hs_date_exited_evangelist",
- "hs_date_exited_lead",
- "hs_date_exited_marketingqualifiedlead",
- "hs_date_exited_opportunity",
- "hs_date_exited_other",
- "hs_date_exited_salesqualifiedlead",
- "hs_date_exited_subscriber",
- "hs_document_last_revisited",
- "hs_email_bad_address",
- "hs_email_bounce",
- "hs_email_click",
- "hs_email_customer_quarantined_reason",
- "hs_email_delivered",
- "hs_email_domain",
- "hs_email_first_click_date",
- "hs_email_first_open_date",
- "hs_email_first_reply_date",
- "hs_email_first_send_date",
- "hs_email_hard_bounce_reason",
- "hs_email_hard_bounce_reason_enum",
- "hs_email_is_ineligible",
- "hs_email_last_click_date",
- "hs_email_last_email_name",
- "hs_email_last_open_date",
- "hs_email_last_reply_date",
- "hs_email_last_send_date",
- "hs_email_live_sourcing_restricted",
- "hs_email_open",
- "hs_email_optimal_send_day_of_week",
- "hs_email_optimal_send_time_of_day",
- "hs_email_optout",
- "hs_email_optout_survey_reason",
- "hs_email_quarantined",
- "hs_email_quarantined_reason",
- "hs_email_recipient_fatigue_recovery_time",
- "hs_email_replied",
- "hs_email_sends_since_last_engagement",
- "hs_email_type",
- "hs_emailconfirmationstatus",
- "hs_employment_change_detected_date",
- "hs_enriched_email_bounce_detected",
- "hs_excluded_from_cross_account_data_mirroring",
- "hs_facebook_ad_clicked",
- "hs_facebook_click_id",
- "hs_facebookid",
- "hs_feedback_last_ces_survey_date",
- "hs_feedback_last_ces_survey_follow_up",
- "hs_feedback_last_ces_survey_rating",
- "hs_feedback_last_csat_survey_date",
- "hs_feedback_last_csat_survey_follow_up",
- "hs_feedback_last_csat_survey_rating",
- "hs_feedback_last_nps_follow_up",
- "hs_feedback_last_nps_rating",
- "hs_feedback_last_nps_rating_number",
- "hs_feedback_last_survey_date",
- "hs_feedback_show_nps_web_survey",
- "hs_first_closed_order_id",
- "hs_first_engagement_object_id",
- "hs_first_order_closed_date",
- "hs_first_outreach_date",
- "hs_first_subscription_create_date",
- "hs_full_name_or_email",
- "hs_geohash_1",
- "hs_geohash_2",
- "hs_geohash_3",
- "hs_geohash_4",
- "hs_geohash_5",
- "hs_geohash_6",
- "hs_google_click_id",
- "hs_googleplusid",
- "hs_gps_coordinates",
- "hs_gps_error",
- "hs_gps_latitude",
- "hs_gps_longitude",
- "hs_has_active_subscription",
- "hs_inferred_language_codes",
- "hs_intent_paid_up_to_date",
- "hs_intent_signals_enabled",
- "hs_ip_timezone",
- "hs_is_contact",
- "hs_is_enriched",
- "hs_is_merge_revertible",
- "hs_is_unworked",
- "hs_job_change_detected_date",
- "hs_journey_stage",
- "hs_language",
- "hs_last_metered_enrichment_timestamp",
- "hs_last_sales_activity_date",
- "hs_last_sales_activity_timestamp",
- "hs_last_sales_activity_type",
- "hs_last_sms_send_date",
- "hs_last_sms_send_name",
- "hs_latest_disqualified_lead_date",
- "hs_latest_meeting_activity",
- "hs_latest_open_lead_date",
- "hs_latest_qualified_lead_date",
- "hs_latest_sequence_ended_date",
- "hs_latest_sequence_enrolled",
- "hs_latest_sequence_enrolled_date",
- "hs_latest_sequence_finished_date",
- "hs_latest_sequence_unenrolled_date",
- "hs_latest_source",
- "hs_latest_source_composite_data",
- "hs_latest_source_data_1",
- "hs_latest_source_data_2",
- "hs_latest_source_timestamp",
- "hs_latest_subscription_create_date",
- "hs_latitude",
- "hs_lead_status",
- "hs_legal_basis",
- "hs_lifecyclestage_customer_date",
- "hs_lifecyclestage_evangelist_date",
- "hs_lifecyclestage_lead_date",
- "hs_lifecyclestage_marketingqualifiedlead_date",
- "hs_lifecyclestage_opportunity_date",
- "hs_lifecyclestage_other_date",
- "hs_lifecyclestage_salesqualifiedlead_date",
- "hs_lifecyclestage_subscriber_date",
- "hs_linkedin_ad_clicked",
- "hs_linkedin_click_id",
- "hs_linkedin_url",
- "hs_linkedinid",
- "hs_live_enrichment_deadline",
- "hs_longitude",
- "hs_manual_campaign_ids",
- "hs_marketable_reason_id",
- "hs_marketable_reason_type",
- "hs_marketable_status",
- "hs_marketable_until_renewal",
- "hs_membership_has_accessed_private_content",
- "hs_membership_last_private_content_access_date",
- "hs_messaging_engagement_score",
- "hs_mobile_sdk_push_tokens",
- "hs_notes_last_activity",
- "hs_notes_next_activity",
- "hs_notes_next_activity_type",
- "hs_persona",
- "hs_pinned_engagement_id",
- "hs_pipeline",
- "hs_predictivecontactscore",
- "hs_predictivecontactscore_tmp",
- "hs_predictivecontactscore_v2",
- "hs_predictivecontactscorebucket",
- "hs_predictivescoringtier",
- "hs_predictivescoringtier_tmp",
- "hs_prospecting_agent_actively_enrolled_count",
- "hs_prospecting_agent_last_enrolled",
- "hs_prospecting_agent_total_enrolled_count",
- "hs_quarantined_emails",
- "hs_recent_closed_order_date",
- "hs_registered_member",
- "hs_registration_method",
- "hs_returning_to_office_detected_date",
- "hs_role",
- "hs_sa_first_engagement_date",
- "hs_sa_first_engagement_descr",
- "hs_sa_first_engagement_object_type",
- "hs_sales_email_last_clicked",
- "hs_sales_email_last_opened",
- "hs_sales_email_last_replied",
- "hs_searchable_calculated_international_mobile_number",
- "hs_searchable_calculated_international_phone_number",
- "hs_searchable_calculated_mobile_number",
- "hs_searchable_calculated_phone_number",
- "hs_seniority",
- "hs_sequences_actively_enrolled_count",
- "hs_sequences_enrolled_count",
- "hs_sequences_is_enrolled",
- "hs_social_facebook_clicks",
- "hs_social_google_plus_clicks",
- "hs_social_last_engagement",
- "hs_social_linkedin_clicks",
- "hs_social_num_broadcast_clicks",
- "hs_social_twitter_clicks",
- "hs_source_object_id",
- "hs_source_portal_id",
- "hs_state_code",
- "hs_sub_role",
- "hs_testpurge",
- "hs_testrollback",
- "hs_tiktok_ad_clicked",
- "hs_tiktok_click_id",
- "hs_time_between_contact_creation_and_deal_close",
- "hs_time_between_contact_creation_and_deal_creation",
- "hs_time_in_customer",
- "hs_time_in_evangelist",
- "hs_time_in_lead",
- "hs_time_in_marketingqualifiedlead",
- "hs_time_in_opportunity",
- "hs_time_in_other",
- "hs_time_in_salesqualifiedlead",
- "hs_time_in_subscriber",
- "hs_time_to_first_engagement",
- "hs_time_to_move_from_lead_to_customer",
- "hs_time_to_move_from_marketingqualifiedlead_to_customer",
- "hs_time_to_move_from_opportunity_to_customer",
- "hs_time_to_move_from_salesqualifiedlead_to_customer",
- "hs_time_to_move_from_subscriber_to_customer",
- "hs_timezone",
- "hs_twitterid",
- "hs_v2_cumulative_time_in_customer",
- "hs_v2_cumulative_time_in_evangelist",
- "hs_v2_cumulative_time_in_lead",
- "hs_v2_cumulative_time_in_marketingqualifiedlead",
- "hs_v2_cumulative_time_in_opportunity",
- "hs_v2_cumulative_time_in_other",
- "hs_v2_cumulative_time_in_salesqualifiedlead",
- "hs_v2_cumulative_time_in_subscriber",
- "hs_v2_date_entered_current_stage",
- "hs_v2_date_entered_customer",
- "hs_v2_date_entered_evangelist",
- "hs_v2_date_entered_lead",
- "hs_v2_date_entered_marketingqualifiedlead",
- "hs_v2_date_entered_opportunity",
- "hs_v2_date_entered_other",
- "hs_v2_date_entered_salesqualifiedlead",
- "hs_v2_date_entered_subscriber",
- "hs_v2_date_exited_customer",
- "hs_v2_date_exited_evangelist",
- "hs_v2_date_exited_lead",
- "hs_v2_date_exited_marketingqualifiedlead",
- "hs_v2_date_exited_opportunity",
- "hs_v2_date_exited_other",
- "hs_v2_date_exited_salesqualifiedlead",
- "hs_v2_date_exited_subscriber",
- "hs_v2_latest_time_in_customer",
- "hs_v2_latest_time_in_evangelist",
- "hs_v2_latest_time_in_lead",
- "hs_v2_latest_time_in_marketingqualifiedlead",
- "hs_v2_latest_time_in_opportunity",
- "hs_v2_latest_time_in_other",
- "hs_v2_latest_time_in_salesqualifiedlead",
- "hs_v2_latest_time_in_subscriber",
- "hs_v2_time_in_current_stage",
- "hs_whatsapp_phone_number",
- "hubspot_owner_id",
- "hubspotscore",
- "industry",
- "ip_city",
- "ip_country",
- "ip_country_code",
- "ip_latlon",
- "ip_state",
- "ip_state_code",
- "ip_zipcode",
- "job_function",
- "jobtitle",
- "kloutscoregeneral",
- "lastmodifieddate",
- "lastname",
- "lifecyclestage",
- "linkedinbio",
- "linkedinconnections",
- "marital_status",
- "message",
- "military_status",
- "mobilephone",
- "notes_last_contacted",
- "notes_last_updated",
- "notes_next_activity_date",
- "num_associated_deals",
- "num_contacted_notes",
- "num_conversion_events",
- "num_notes",
- "num_unique_conversion_events",
- "numemployees",
- "owneremail",
- "ownername",
- "phone",
- "photo",
- "recent_conversion_date",
- "recent_conversion_event_name",
- "recent_deal_amount",
- "recent_deal_close_date",
- "relationship_status",
- "salutation",
- "school",
- "seniority",
- "start_date",
- "state",
- "surveymonkeyeventlastupdated",
- "total_revenue",
- "twitterbio",
- "twitterhandle",
- "twitterprofilephoto",
- "webinareventlastupdated",
- "website",
- "work_email",
- "zip",
- ]
- ],
- PropertyInfo(alias="contactPropertiesLeadingToMatch"),
- ]
- ]
-
- contact_vid: Required[Annotated[int, PropertyInfo(alias="contactVid")]]
diff --git a/src/hubspot_sdk/types/conversations/pre_resolved_contacts_param.py b/src/hubspot_sdk/types/conversations/pre_resolved_contacts_param.py
deleted file mode 100644
index a2c50c4..0000000
--- a/src/hubspot_sdk/types/conversations/pre_resolved_contacts_param.py
+++ /dev/null
@@ -1,14 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from __future__ import annotations
-
-from typing import Iterable
-from typing_extensions import Required, TypedDict
-
-from .pre_resolved_contact_param import PreResolvedContactParam
-
-__all__ = ["PreResolvedContactsParam"]
-
-
-class PreResolvedContactsParam(TypedDict, total=False):
- contacts: Required[Iterable[PreResolvedContactParam]]
diff --git a/src/hubspot_sdk/types/crm/batch_response_property.py b/src/hubspot_sdk/types/crm/batch_response_property.py
index fe0228a..b27e20f 100644
--- a/src/hubspot_sdk/types/crm/batch_response_property.py
+++ b/src/hubspot_sdk/types/crm/batch_response_property.py
@@ -7,7 +7,7 @@
from pydantic import Field as FieldInfo
from ..._models import BaseModel
-from ..shared.base_property import BaseProperty
+from ..shared.property import Property
__all__ = ["BatchResponseProperty"]
@@ -16,7 +16,7 @@ class BatchResponseProperty(BaseModel):
completed_at: datetime = FieldInfo(alias="completedAt")
"""The timestamp indicating when the batch operation was completed."""
- results: List[BaseProperty]
+ results: List[Property]
started_at: datetime = FieldInfo(alias="startedAt")
"""The timestamp indicating when the batch operation began processing."""
diff --git a/src/hubspot_sdk/types/crm/collection_response_property_no_paging.py b/src/hubspot_sdk/types/crm/collection_response_property_no_paging.py
index 7433b87..df95c0b 100644
--- a/src/hubspot_sdk/types/crm/collection_response_property_no_paging.py
+++ b/src/hubspot_sdk/types/crm/collection_response_property_no_paging.py
@@ -3,10 +3,10 @@
from typing import List
from ..._models import BaseModel
-from ..shared.base_property import BaseProperty
+from ..shared.property import Property
__all__ = ["CollectionResponsePropertyNoPaging"]
class CollectionResponsePropertyNoPaging(BaseModel):
- results: List[BaseProperty]
+ results: List[Property]
diff --git a/src/hubspot_sdk/types/crm/extensions/card_migrate_views_response.py b/src/hubspot_sdk/types/crm/extensions/card_migrate_views_response.py
index 6e2d7a8..e02590f 100644
--- a/src/hubspot_sdk/types/crm/extensions/card_migrate_views_response.py
+++ b/src/hubspot_sdk/types/crm/extensions/card_migrate_views_response.py
@@ -1,5 +1,9 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+from typing import Optional
+
+from pydantic import Field as FieldInfo
+
from ...._models import BaseModel
__all__ = ["CardMigrateViewsResponse"]
@@ -7,7 +11,19 @@
class CardMigrateViewsResponse(BaseModel):
message: str
+ """A human readable message describing the progress of the migration."""
+
+ ended_at: Optional[int] = FieldInfo(alias="endedAt", default=None)
+ """The timestamp for when the migration ended."""
+
+ remaining_portal_count: Optional[int] = FieldInfo(alias="remainingPortalCount", default=None)
"""
- A human readable message describing the error along with remediation steps where
- appropriate
+ The number of portals that remain to be swapped from the Legacy CRM Card to the
+ App Card
"""
+
+ started_at: Optional[int] = FieldInfo(alias="startedAt", default=None)
+ """The timestamp for when the migration started."""
+
+ total_portal_count: Optional[int] = FieldInfo(alias="totalPortalCount", default=None)
+ """The total number of portals that have access to the Legacy CRM Card"""
diff --git a/src/hubspot_sdk/types/crm/object_schema.py b/src/hubspot_sdk/types/crm/object_schema.py
index 215df56..a843a08 100644
--- a/src/hubspot_sdk/types/crm/object_schema.py
+++ b/src/hubspot_sdk/types/crm/object_schema.py
@@ -6,8 +6,8 @@
from pydantic import Field as FieldInfo
from ..._models import BaseModel
-from ..shared.base_property import BaseProperty
-from ..shared.base_association_definition import BaseAssociationDefinition
+from ..shared.property import Property
+from ..shared.association_definition import AssociationDefinition
from ..shared.object_type_definition_labels import ObjectTypeDefinitionLabels
__all__ = ["ObjectSchema"]
@@ -24,7 +24,7 @@ class ObjectSchema(BaseModel):
archived: bool
- associations: List[BaseAssociationDefinition]
+ associations: List[AssociationDefinition]
"""Associations defined for a given object type."""
fully_qualified_name: str = FieldInfo(alias="fullyQualifiedName")
@@ -37,7 +37,7 @@ class ObjectSchema(BaseModel):
object_type_id: str = FieldInfo(alias="objectTypeId")
- properties: List[BaseProperty]
+ properties: List[Property]
"""Properties defined for this object type."""
required_properties: List[str] = FieldInfo(alias="requiredProperties")
diff --git a/src/hubspot_sdk/types/events/external_behavioral_event_type_definition.py b/src/hubspot_sdk/types/events/external_behavioral_event_type_definition.py
index bb6e4b8..70b0c50 100644
--- a/src/hubspot_sdk/types/events/external_behavioral_event_type_definition.py
+++ b/src/hubspot_sdk/types/events/external_behavioral_event_type_definition.py
@@ -9,7 +9,7 @@
from pydantic import Field as FieldInfo
from ..._models import BaseModel
-from ..shared.base_property import BaseProperty
+from ..shared.property import Property
from .definitions_association_definition import DefinitionsAssociationDefinition
from .behavioral_event_type_definition_labels import BehavioralEventTypeDefinitionLabels
from .external_object_resolution_mapping_response import ExternalObjectResolutionMappingResponse
@@ -32,7 +32,7 @@ class ExternalBehavioralEventTypeDefinition(BaseModel):
object_type_id: str = FieldInfo(alias="objectTypeId")
- properties: List[BaseProperty]
+ properties: List[Property]
combo_event_rules: Optional["ComboEventRuleBranch"] = FieldInfo(alias="comboEventRules", default=None)
diff --git a/src/hubspot_sdk/types/marketing/campaign_get_params.py b/src/hubspot_sdk/types/marketing/campaign_get_params.py
index 29463ef..95c440b 100644
--- a/src/hubspot_sdk/types/marketing/campaign_get_params.py
+++ b/src/hubspot_sdk/types/marketing/campaign_get_params.py
@@ -12,7 +12,20 @@
class CampaignGetParams(TypedDict, total=False):
end_date: Annotated[str, PropertyInfo(alias="endDate")]
+ """The end date for fetching asset metrics, in YYYY-MM-DD format. Optional.
+
+ Example: 2000-01-27
+ """
properties: SequenceNotStr[str]
+ """A comma-separated list of properties to include in the response.
+
+ Unrecognized properties are ignored. Optional. Example: hs_name,hs_budget,
+ hs_notes
+ """
start_date: Annotated[str, PropertyInfo(alias="startDate")]
+ """The start date for fetching asset metrics, in YYYY-MM-DD format.
+
+ Optional. Example: 2000-01-20
+ """
diff --git a/src/hubspot_sdk/types/marketing/campaign_list_params.py b/src/hubspot_sdk/types/marketing/campaign_list_params.py
index b26137d..c9fee0e 100644
--- a/src/hubspot_sdk/types/marketing/campaign_list_params.py
+++ b/src/hubspot_sdk/types/marketing/campaign_list_params.py
@@ -21,7 +21,14 @@ class CampaignListParams(TypedDict, total=False):
"""The maximum number of results to display per page."""
name: str
+ """Filter campaigns by name. Optional."""
properties: SequenceNotStr[str]
+ """A comma-separated list of properties to include in the response.
+
+ Unrecognized properties are ignored. Optional. Example:
+ hs_name, hs_budget,hs_notes
+ """
sort: str
+ """The property to sort results by. Optional."""
diff --git a/src/hubspot_sdk/types/marketing/campaigns/asset_list_params.py b/src/hubspot_sdk/types/marketing/campaigns/asset_list_params.py
index 721603c..cc18343 100644
--- a/src/hubspot_sdk/types/marketing/campaigns/asset_list_params.py
+++ b/src/hubspot_sdk/types/marketing/campaigns/asset_list_params.py
@@ -20,8 +20,20 @@ class AssetListParams(TypedDict, total=False):
"""
end_date: Annotated[str, PropertyInfo(alias="endDate")]
+ """End date to fetch asset metrics, formatted as YYYY-MM-DD.
+
+ This date is used to fetch the metrics associated with the assets for a
+ specified period. If not provided, no asset metrics will be fetched. Example:
+ 2024-01-27
+ """
limit: str
"""The maximum number of results to display per page."""
start_date: Annotated[str, PropertyInfo(alias="startDate")]
+ """Start date to fetch asset metrics, formatted as YYYY-MM-DD.
+
+ This date is used to fetch the metrics associated with the assets for a
+ specified period. If not provided, no asset metrics will be fetched. Example:
+ 2023-01-20
+ """
diff --git a/src/hubspot_sdk/types/marketing/campaigns/batch_get_params.py b/src/hubspot_sdk/types/marketing/campaigns/batch_get_params.py
index 1188d01..5049db4 100644
--- a/src/hubspot_sdk/types/marketing/campaigns/batch_get_params.py
+++ b/src/hubspot_sdk/types/marketing/campaigns/batch_get_params.py
@@ -20,7 +20,26 @@ class BatchGetParams(TypedDict, total=False):
"""
end_date: Annotated[str, PropertyInfo(alias="endDate")]
+ """End date to fetch asset metrics, formatted as YYYY-MM-DD.
+
+ This date is used to fetch the metrics associated with the assets for a
+ specified period. If not provided, no asset metrics will be fetched. Example:
+ 2024-01-27
+ """
properties: SequenceNotStr[str]
+ """A comma-separated list of the properties to be returned in the response.
+
+ If any of the specified properties has empty value on the requested object(s),
+ they will be ignored and not returned in response. If this parameter is empty,
+ the response will include an empty properties map. Example: hs_name,
+ hs_campaign_status, hs_notes
+ """
start_date: Annotated[str, PropertyInfo(alias="startDate")]
+ """Start date to fetch asset metrics, formatted as YYYY-MM-DD.
+
+ This date is used to fetch the metrics associated with the assets for a
+ specified period. If not provided, no asset metrics will be fetched. Example:
+ 2023-01-20
+ """
diff --git a/src/hubspot_sdk/types/marketing/campaigns/metric_get_attribution_metrics_params.py b/src/hubspot_sdk/types/marketing/campaigns/metric_get_attribution_metrics_params.py
index 25fed5c..98ac9e7 100644
--- a/src/hubspot_sdk/types/marketing/campaigns/metric_get_attribution_metrics_params.py
+++ b/src/hubspot_sdk/types/marketing/campaigns/metric_get_attribution_metrics_params.py
@@ -11,5 +11,13 @@
class MetricGetAttributionMetricsParams(TypedDict, total=False):
end_date: Annotated[str, PropertyInfo(alias="endDate")]
+ """The end date for fetching attribution data, in YYYY-MM-DD format. Optional.
+
+ Example: 2000-01-27
+ """
start_date: Annotated[str, PropertyInfo(alias="startDate")]
+ """The start date for fetching attribution data, in YYYY-MM-DD format. Optional.
+
+ Example: 2000-01-20
+ """
diff --git a/src/hubspot_sdk/types/marketing/campaigns/metric_get_revenue_attribution_params.py b/src/hubspot_sdk/types/marketing/campaigns/metric_get_revenue_attribution_params.py
index e4dffb4..74868f6 100644
--- a/src/hubspot_sdk/types/marketing/campaigns/metric_get_revenue_attribution_params.py
+++ b/src/hubspot_sdk/types/marketing/campaigns/metric_get_revenue_attribution_params.py
@@ -11,6 +11,12 @@
class MetricGetRevenueAttributionParams(TypedDict, total=False):
attribution_model: Annotated[str, PropertyInfo(alias="attributionModel")]
+ """The revenue attribution model used to calculate deal revenue credit.
+
+ Defaults to LINEAR if not specified. Enum values: LINEAR, FIRST_INTERACTION,
+ LAST_INTERACTION, FULL_PATH, U_SHAPED, W_SHAPED, TIME_DECAY, J_SHAPED,
+ INVERSE_J_SHAPED
+ """
end_date: Annotated[str, PropertyInfo(alias="endDate")]
"""End date to fetch attribution data, YYYY-MM-DD"""
diff --git a/src/hubspot_sdk/types/marketing/campaigns/metric_list_contact_ids_by_type_params.py b/src/hubspot_sdk/types/marketing/campaigns/metric_list_contact_ids_by_type_params.py
index 1324f57..18d6aff 100644
--- a/src/hubspot_sdk/types/marketing/campaigns/metric_list_contact_ids_by_type_params.py
+++ b/src/hubspot_sdk/types/marketing/campaigns/metric_list_contact_ids_by_type_params.py
@@ -20,8 +20,16 @@ class MetricListContactIDsByTypeParams(TypedDict, total=False):
"""
end_date: Annotated[str, PropertyInfo(alias="endDate")]
+ """The end date for fetching contact data, in YYYY-MM-DD format.
+
+ Optional. Example: 2000-01-27
+ """
limit: int
"""The maximum number of results to display per page."""
start_date: Annotated[str, PropertyInfo(alias="startDate")]
+ """The start date for fetching contact data, in YYYY-MM-DD format.
+
+ Optional. Example: 2000-01-20
+ """
diff --git a/src/hubspot_sdk/types/marketing/email_send_status_view.py b/src/hubspot_sdk/types/marketing/email_send_status_view.py
index 1240c0d..9db1a63 100644
--- a/src/hubspot_sdk/types/marketing/email_send_status_view.py
+++ b/src/hubspot_sdk/types/marketing/email_send_status_view.py
@@ -44,6 +44,7 @@ class EmailSendStatusView(BaseModel):
"BRAND_RECIPIENT_FATIGUE_SUPPRESSED",
"CAMPAIGN_CANCELLED",
"CANCELLED_ABUSE",
+ "CONTACT_VIEW_PERMISSION",
"CORRUPT_INPUT",
"EMAIL_DISABLED",
"EMAIL_UNCONFIRMED",
diff --git a/src/hubspot_sdk/types/shared/__init__.py b/src/hubspot_sdk/types/shared/__init__.py
index 0b34311..5ccb906 100644
--- a/src/hubspot_sdk/types/shared/__init__.py
+++ b/src/hubspot_sdk/types/shared/__init__.py
@@ -1,14 +1,14 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+from .option import Option as Option
from .paging import Paging as Paging
+from .property import Property as Property
from .next_page import NextPage as NextPage
-from .base_error import BaseError as BaseError
-from .base_option import BaseOption as BaseOption
+from .error_data import ErrorData as ErrorData
from .error_detail import ErrorDetail as ErrorDetail
from .option_input import OptionInput as OptionInput
from .task_locator import TaskLocator as TaskLocator
from .version_user import VersionUser as VersionUser
-from .base_property import BaseProperty as BaseProperty
from .previous_page import PreviousPage as PreviousPage
from .property_name import PropertyName as PropertyName
from .forward_paging import ForwardPaging as ForwardPaging
@@ -22,11 +22,11 @@
from .batch_input_string import BatchInputString as BatchInputString
from .property_group_create import PropertyGroupCreate as PropertyGroupCreate
from .property_group_update import PropertyGroupUpdate as PropertyGroupUpdate
+from .association_definition import AssociationDefinition as AssociationDefinition
+from .object_type_definition import ObjectTypeDefinition as ObjectTypeDefinition
from .automation_actions_option import AutomationActionsOption as AutomationActionsOption
from .batch_input_property_name import BatchInputPropertyName as BatchInputPropertyName
from .association_definition_egg import AssociationDefinitionEgg as AssociationDefinitionEgg
-from .base_association_definition import BaseAssociationDefinition as BaseAssociationDefinition
-from .base_object_type_definition import BaseObjectTypeDefinition as BaseObjectTypeDefinition
from .batch_input_property_create import BatchInputPropertyCreate as BatchInputPropertyCreate
from .batch_input_public_object_id import BatchInputPublicObjectID as BatchInputPublicObjectID
from .object_type_definition_patch import ObjectTypeDefinitionPatch as ObjectTypeDefinitionPatch
diff --git a/src/hubspot_sdk/types/shared/base_association_definition.py b/src/hubspot_sdk/types/shared/association_definition.py
similarity index 92%
rename from src/hubspot_sdk/types/shared/base_association_definition.py
rename to src/hubspot_sdk/types/shared/association_definition.py
index 17149d2..3a77a49 100644
--- a/src/hubspot_sdk/types/shared/base_association_definition.py
+++ b/src/hubspot_sdk/types/shared/association_definition.py
@@ -7,10 +7,10 @@
from ..._models import BaseModel
-__all__ = ["BaseAssociationDefinition"]
+__all__ = ["AssociationDefinition"]
-class BaseAssociationDefinition(BaseModel):
+class AssociationDefinition(BaseModel):
"""The definition of an association"""
id: str
diff --git a/src/hubspot_sdk/types/shared/base_error.py b/src/hubspot_sdk/types/shared/error_data.py
similarity index 95%
rename from src/hubspot_sdk/types/shared/base_error.py
rename to src/hubspot_sdk/types/shared/error_data.py
index 345c2d8..995f220 100644
--- a/src/hubspot_sdk/types/shared/base_error.py
+++ b/src/hubspot_sdk/types/shared/error_data.py
@@ -7,10 +7,10 @@
from ..._models import BaseModel
from .error_detail import ErrorDetail
-__all__ = ["BaseError"]
+__all__ = ["ErrorData"]
-class BaseError(BaseModel):
+class ErrorData(BaseModel):
category: str
"""The error category"""
diff --git a/src/hubspot_sdk/types/shared/base_object_type_definition.py b/src/hubspot_sdk/types/shared/object_type_definition.py
similarity index 93%
rename from src/hubspot_sdk/types/shared/base_object_type_definition.py
rename to src/hubspot_sdk/types/shared/object_type_definition.py
index 70e2da5..7d3fdb8 100644
--- a/src/hubspot_sdk/types/shared/base_object_type_definition.py
+++ b/src/hubspot_sdk/types/shared/object_type_definition.py
@@ -8,10 +8,10 @@
from ..._models import BaseModel
from .object_type_definition_labels import ObjectTypeDefinitionLabels
-__all__ = ["BaseObjectTypeDefinition"]
+__all__ = ["ObjectTypeDefinition"]
-class BaseObjectTypeDefinition(BaseModel):
+class ObjectTypeDefinition(BaseModel):
id: str
allows_sensitive_properties: bool = FieldInfo(alias="allowsSensitiveProperties")
diff --git a/src/hubspot_sdk/types/shared/base_option.py b/src/hubspot_sdk/types/shared/option.py
similarity index 94%
rename from src/hubspot_sdk/types/shared/base_option.py
rename to src/hubspot_sdk/types/shared/option.py
index 3bc3d25..5f1356a 100644
--- a/src/hubspot_sdk/types/shared/base_option.py
+++ b/src/hubspot_sdk/types/shared/option.py
@@ -6,10 +6,10 @@
from ..._models import BaseModel
-__all__ = ["BaseOption"]
+__all__ = ["Option"]
-class BaseOption(BaseModel):
+class Option(BaseModel):
"""A HubSpot property option"""
hidden: bool
diff --git a/src/hubspot_sdk/types/shared/base_property.py b/src/hubspot_sdk/types/shared/property.py
similarity index 97%
rename from src/hubspot_sdk/types/shared/base_property.py
rename to src/hubspot_sdk/types/shared/property.py
index 08a0018..077c100 100644
--- a/src/hubspot_sdk/types/shared/base_property.py
+++ b/src/hubspot_sdk/types/shared/property.py
@@ -6,14 +6,14 @@
from pydantic import Field as FieldInfo
+from .option import Option
from ..._models import BaseModel
-from .base_option import BaseOption
from .property_modification_metadata import PropertyModificationMetadata
-__all__ = ["BaseProperty"]
+__all__ = ["Property"]
-class BaseProperty(BaseModel):
+class Property(BaseModel):
"""A HubSpot property"""
description: str
@@ -34,7 +34,7 @@ class BaseProperty(BaseModel):
the API.
"""
- options: List[BaseOption]
+ options: List[Option]
"""A list of valid options for the property.
This field is required for enumerated properties, but will be empty for other
diff --git a/tests/api_resources/cms/pages/test_a_b_tests.py b/tests/api_resources/cms/pages/test_a_b_tests.py
index 3bc31c5..076e9d9 100644
--- a/tests/api_resources/cms/pages/test_a_b_tests.py
+++ b/tests/api_resources/cms/pages/test_a_b_tests.py
@@ -9,7 +9,7 @@
from hubspot_sdk import HubSpot, AsyncHubSpot
from tests.utils import assert_matches_type
-from hubspot_sdk.types.cms import PageData
+from hubspot_sdk.types.cms import PagesPage
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -24,7 +24,7 @@ def test_method_create_landing_page_variation(self, client: HubSpot) -> None:
content_id="contentId",
variation_name="variationName",
)
- assert_matches_type(PageData, a_b_test, path=["response"])
+ assert_matches_type(PagesPage, a_b_test, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -37,7 +37,7 @@ def test_raw_response_create_landing_page_variation(self, client: HubSpot) -> No
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
a_b_test = response.parse()
- assert_matches_type(PageData, a_b_test, path=["response"])
+ assert_matches_type(PagesPage, a_b_test, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -50,7 +50,7 @@ def test_streaming_response_create_landing_page_variation(self, client: HubSpot)
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
a_b_test = response.parse()
- assert_matches_type(PageData, a_b_test, path=["response"])
+ assert_matches_type(PagesPage, a_b_test, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -61,7 +61,7 @@ def test_method_create_site_page_variation(self, client: HubSpot) -> None:
content_id="contentId",
variation_name="variationName",
)
- assert_matches_type(PageData, a_b_test, path=["response"])
+ assert_matches_type(PagesPage, a_b_test, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -74,7 +74,7 @@ def test_raw_response_create_site_page_variation(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
a_b_test = response.parse()
- assert_matches_type(PageData, a_b_test, path=["response"])
+ assert_matches_type(PagesPage, a_b_test, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -87,7 +87,7 @@ def test_streaming_response_create_site_page_variation(self, client: HubSpot) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
a_b_test = response.parse()
- assert_matches_type(PageData, a_b_test, path=["response"])
+ assert_matches_type(PagesPage, a_b_test, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -252,7 +252,7 @@ async def test_method_create_landing_page_variation(self, async_client: AsyncHub
content_id="contentId",
variation_name="variationName",
)
- assert_matches_type(PageData, a_b_test, path=["response"])
+ assert_matches_type(PagesPage, a_b_test, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -265,7 +265,7 @@ async def test_raw_response_create_landing_page_variation(self, async_client: As
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
a_b_test = await response.parse()
- assert_matches_type(PageData, a_b_test, path=["response"])
+ assert_matches_type(PagesPage, a_b_test, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -278,7 +278,7 @@ async def test_streaming_response_create_landing_page_variation(self, async_clie
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
a_b_test = await response.parse()
- assert_matches_type(PageData, a_b_test, path=["response"])
+ assert_matches_type(PagesPage, a_b_test, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -289,7 +289,7 @@ async def test_method_create_site_page_variation(self, async_client: AsyncHubSpo
content_id="contentId",
variation_name="variationName",
)
- assert_matches_type(PageData, a_b_test, path=["response"])
+ assert_matches_type(PagesPage, a_b_test, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -302,7 +302,7 @@ async def test_raw_response_create_site_page_variation(self, async_client: Async
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
a_b_test = await response.parse()
- assert_matches_type(PageData, a_b_test, path=["response"])
+ assert_matches_type(PagesPage, a_b_test, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -315,7 +315,7 @@ async def test_streaming_response_create_site_page_variation(self, async_client:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
a_b_test = await response.parse()
- assert_matches_type(PageData, a_b_test, path=["response"])
+ assert_matches_type(PagesPage, a_b_test, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/cms/pages/test_landing_pages.py b/tests/api_resources/cms/pages/test_landing_pages.py
index 6bfbb72..bc7abac 100644
--- a/tests/api_resources/cms/pages/test_landing_pages.py
+++ b/tests/api_resources/cms/pages/test_landing_pages.py
@@ -10,7 +10,7 @@
from hubspot_sdk import HubSpot, AsyncHubSpot
from tests.utils import assert_matches_type
from hubspot_sdk._utils import parse_datetime
-from hubspot_sdk.types.cms import PageData
+from hubspot_sdk.types.cms import PagesPage
from hubspot_sdk.pagination import SyncPage, AsyncPage
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -191,7 +191,7 @@ def test_method_create(self, client: HubSpot) -> None:
widget_containers={"foo": {}},
widgets={"foo": {}},
)
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -369,7 +369,7 @@ def test_raw_response_create(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -547,7 +547,7 @@ def test_streaming_response_create(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -724,7 +724,7 @@ def test_method_update(self, client: HubSpot) -> None:
widget_containers={"foo": {}},
widgets={"foo": {}},
)
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -967,7 +967,7 @@ def test_method_update_with_all_params(self, client: HubSpot) -> None:
widgets={"foo": {}},
archived=True,
)
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1146,7 +1146,7 @@ def test_raw_response_update(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1325,7 +1325,7 @@ def test_streaming_response_update(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1508,7 +1508,7 @@ def test_path_params_update(self, client: HubSpot) -> None:
@parametrize
def test_method_list(self, client: HubSpot) -> None:
landing_page = client.cms.pages.landing_pages.list()
- assert_matches_type(SyncPage[PageData], landing_page, path=["response"])
+ assert_matches_type(SyncPage[PagesPage], landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1526,7 +1526,7 @@ def test_method_list_with_all_params(self, client: HubSpot) -> None:
updated_at=parse_datetime("2019-12-27T18:11:19.117Z"),
updated_before=parse_datetime("2019-12-27T18:11:19.117Z"),
)
- assert_matches_type(SyncPage[PageData], landing_page, path=["response"])
+ assert_matches_type(SyncPage[PagesPage], landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1536,7 +1536,7 @@ def test_raw_response_list(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = response.parse()
- assert_matches_type(SyncPage[PageData], landing_page, path=["response"])
+ assert_matches_type(SyncPage[PagesPage], landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1546,7 +1546,7 @@ def test_streaming_response_list(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = response.parse()
- assert_matches_type(SyncPage[PageData], landing_page, path=["response"])
+ assert_matches_type(SyncPage[PagesPage], landing_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1607,7 +1607,7 @@ def test_method_clone(self, client: HubSpot) -> None:
landing_page = client.cms.pages.landing_pages.clone(
id="id",
)
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1616,7 +1616,7 @@ def test_method_clone_with_all_params(self, client: HubSpot) -> None:
id="id",
clone_name="cloneName",
)
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1628,7 +1628,7 @@ def test_raw_response_clone(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1640,7 +1640,7 @@ def test_streaming_response_clone(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1650,7 +1650,7 @@ def test_method_get(self, client: HubSpot) -> None:
landing_page = client.cms.pages.landing_pages.get(
object_id="objectId",
)
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1660,7 +1660,7 @@ def test_method_get_with_all_params(self, client: HubSpot) -> None:
archived=True,
property="property",
)
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1672,7 +1672,7 @@ def test_raw_response_get(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1684,7 +1684,7 @@ def test_streaming_response_get(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1702,7 +1702,7 @@ def test_method_get_draft(self, client: HubSpot) -> None:
landing_page = client.cms.pages.landing_pages.get_draft(
"objectId",
)
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1714,7 +1714,7 @@ def test_raw_response_get_draft(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1726,7 +1726,7 @@ def test_streaming_response_get_draft(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -2032,7 +2032,7 @@ def test_method_update_draft(self, client: HubSpot) -> None:
widget_containers={"foo": {}},
widgets={"foo": {}},
)
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -2211,7 +2211,7 @@ def test_raw_response_update_draft(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -2390,7 +2390,7 @@ def test_streaming_response_update_draft(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -2747,7 +2747,7 @@ async def test_method_create(self, async_client: AsyncHubSpot) -> None:
widget_containers={"foo": {}},
widgets={"foo": {}},
)
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -2925,7 +2925,7 @@ async def test_raw_response_create(self, async_client: AsyncHubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = await response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -3103,7 +3103,7 @@ async def test_streaming_response_create(self, async_client: AsyncHubSpot) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = await response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -3280,7 +3280,7 @@ async def test_method_update(self, async_client: AsyncHubSpot) -> None:
widget_containers={"foo": {}},
widgets={"foo": {}},
)
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -3523,7 +3523,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncHubSpot) -
widgets={"foo": {}},
archived=True,
)
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -3702,7 +3702,7 @@ async def test_raw_response_update(self, async_client: AsyncHubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = await response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -3881,7 +3881,7 @@ async def test_streaming_response_update(self, async_client: AsyncHubSpot) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = await response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4064,7 +4064,7 @@ async def test_path_params_update(self, async_client: AsyncHubSpot) -> None:
@parametrize
async def test_method_list(self, async_client: AsyncHubSpot) -> None:
landing_page = await async_client.cms.pages.landing_pages.list()
- assert_matches_type(AsyncPage[PageData], landing_page, path=["response"])
+ assert_matches_type(AsyncPage[PagesPage], landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4082,7 +4082,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncHubSpot) ->
updated_at=parse_datetime("2019-12-27T18:11:19.117Z"),
updated_before=parse_datetime("2019-12-27T18:11:19.117Z"),
)
- assert_matches_type(AsyncPage[PageData], landing_page, path=["response"])
+ assert_matches_type(AsyncPage[PagesPage], landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4092,7 +4092,7 @@ async def test_raw_response_list(self, async_client: AsyncHubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = await response.parse()
- assert_matches_type(AsyncPage[PageData], landing_page, path=["response"])
+ assert_matches_type(AsyncPage[PagesPage], landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4102,7 +4102,7 @@ async def test_streaming_response_list(self, async_client: AsyncHubSpot) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = await response.parse()
- assert_matches_type(AsyncPage[PageData], landing_page, path=["response"])
+ assert_matches_type(AsyncPage[PagesPage], landing_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4163,7 +4163,7 @@ async def test_method_clone(self, async_client: AsyncHubSpot) -> None:
landing_page = await async_client.cms.pages.landing_pages.clone(
id="id",
)
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4172,7 +4172,7 @@ async def test_method_clone_with_all_params(self, async_client: AsyncHubSpot) ->
id="id",
clone_name="cloneName",
)
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4184,7 +4184,7 @@ async def test_raw_response_clone(self, async_client: AsyncHubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = await response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4196,7 +4196,7 @@ async def test_streaming_response_clone(self, async_client: AsyncHubSpot) -> Non
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = await response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4206,7 +4206,7 @@ async def test_method_get(self, async_client: AsyncHubSpot) -> None:
landing_page = await async_client.cms.pages.landing_pages.get(
object_id="objectId",
)
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4216,7 +4216,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncHubSpot) -> N
archived=True,
property="property",
)
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4228,7 +4228,7 @@ async def test_raw_response_get(self, async_client: AsyncHubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = await response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4240,7 +4240,7 @@ async def test_streaming_response_get(self, async_client: AsyncHubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = await response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4258,7 +4258,7 @@ async def test_method_get_draft(self, async_client: AsyncHubSpot) -> None:
landing_page = await async_client.cms.pages.landing_pages.get_draft(
"objectId",
)
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4270,7 +4270,7 @@ async def test_raw_response_get_draft(self, async_client: AsyncHubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = await response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4282,7 +4282,7 @@ async def test_streaming_response_get_draft(self, async_client: AsyncHubSpot) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = await response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4588,7 +4588,7 @@ async def test_method_update_draft(self, async_client: AsyncHubSpot) -> None:
widget_containers={"foo": {}},
widgets={"foo": {}},
)
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4767,7 +4767,7 @@ async def test_raw_response_update_draft(self, async_client: AsyncHubSpot) -> No
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = await response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4946,7 +4946,7 @@ async def test_streaming_response_update_draft(self, async_client: AsyncHubSpot)
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
landing_page = await response.parse()
- assert_matches_type(PageData, landing_page, path=["response"])
+ assert_matches_type(PagesPage, landing_page, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/cms/pages/test_multi_language.py b/tests/api_resources/cms/pages/test_multi_language.py
index 3ece169..4f3301e 100644
--- a/tests/api_resources/cms/pages/test_multi_language.py
+++ b/tests/api_resources/cms/pages/test_multi_language.py
@@ -17,7 +17,7 @@
StreamedBinaryAPIResponse,
AsyncStreamedBinaryAPIResponse,
)
-from hubspot_sdk.types.cms import PageData
+from hubspot_sdk.types.cms import PagesPage
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -102,7 +102,7 @@ def test_method_create_language_variation(self, client: HubSpot) -> None:
multi_language = client.cms.pages.multi_language.create_language_variation(
id="id",
)
- assert_matches_type(PageData, multi_language, path=["response"])
+ assert_matches_type(PagesPage, multi_language, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -112,7 +112,7 @@ def test_method_create_language_variation_with_all_params(self, client: HubSpot)
language="language",
primary_language="primaryLanguage",
)
- assert_matches_type(PageData, multi_language, path=["response"])
+ assert_matches_type(PagesPage, multi_language, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -124,7 +124,7 @@ def test_raw_response_create_language_variation(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
multi_language = response.parse()
- assert_matches_type(PageData, multi_language, path=["response"])
+ assert_matches_type(PagesPage, multi_language, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -136,7 +136,7 @@ def test_streaming_response_create_language_variation(self, client: HubSpot) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
multi_language = response.parse()
- assert_matches_type(PageData, multi_language, path=["response"])
+ assert_matches_type(PagesPage, multi_language, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -360,7 +360,7 @@ async def test_method_create_language_variation(self, async_client: AsyncHubSpot
multi_language = await async_client.cms.pages.multi_language.create_language_variation(
id="id",
)
- assert_matches_type(PageData, multi_language, path=["response"])
+ assert_matches_type(PagesPage, multi_language, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -370,7 +370,7 @@ async def test_method_create_language_variation_with_all_params(self, async_clie
language="language",
primary_language="primaryLanguage",
)
- assert_matches_type(PageData, multi_language, path=["response"])
+ assert_matches_type(PagesPage, multi_language, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -382,7 +382,7 @@ async def test_raw_response_create_language_variation(self, async_client: AsyncH
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
multi_language = await response.parse()
- assert_matches_type(PageData, multi_language, path=["response"])
+ assert_matches_type(PagesPage, multi_language, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -394,7 +394,7 @@ async def test_streaming_response_create_language_variation(self, async_client:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
multi_language = await response.parse()
- assert_matches_type(PageData, multi_language, path=["response"])
+ assert_matches_type(PagesPage, multi_language, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/cms/pages/test_website_pages.py b/tests/api_resources/cms/pages/test_website_pages.py
index 33f77cf..c5c330c 100644
--- a/tests/api_resources/cms/pages/test_website_pages.py
+++ b/tests/api_resources/cms/pages/test_website_pages.py
@@ -10,7 +10,7 @@
from hubspot_sdk import HubSpot, AsyncHubSpot
from tests.utils import assert_matches_type
from hubspot_sdk._utils import parse_datetime
-from hubspot_sdk.types.cms import PageData
+from hubspot_sdk.types.cms import PagesPage
from hubspot_sdk.pagination import SyncPage, AsyncPage
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -191,7 +191,7 @@ def test_method_create(self, client: HubSpot) -> None:
widget_containers={"foo": {}},
widgets={"foo": {}},
)
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -369,7 +369,7 @@ def test_raw_response_create(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -547,7 +547,7 @@ def test_streaming_response_create(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -724,7 +724,7 @@ def test_method_update(self, client: HubSpot) -> None:
widget_containers={"foo": {}},
widgets={"foo": {}},
)
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -967,7 +967,7 @@ def test_method_update_with_all_params(self, client: HubSpot) -> None:
widgets={"foo": {}},
archived=True,
)
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1146,7 +1146,7 @@ def test_raw_response_update(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1325,7 +1325,7 @@ def test_streaming_response_update(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1508,7 +1508,7 @@ def test_path_params_update(self, client: HubSpot) -> None:
@parametrize
def test_method_list(self, client: HubSpot) -> None:
website_page = client.cms.pages.website_pages.list()
- assert_matches_type(SyncPage[PageData], website_page, path=["response"])
+ assert_matches_type(SyncPage[PagesPage], website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1526,7 +1526,7 @@ def test_method_list_with_all_params(self, client: HubSpot) -> None:
updated_at=parse_datetime("2019-12-27T18:11:19.117Z"),
updated_before=parse_datetime("2019-12-27T18:11:19.117Z"),
)
- assert_matches_type(SyncPage[PageData], website_page, path=["response"])
+ assert_matches_type(SyncPage[PagesPage], website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1536,7 +1536,7 @@ def test_raw_response_list(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = response.parse()
- assert_matches_type(SyncPage[PageData], website_page, path=["response"])
+ assert_matches_type(SyncPage[PagesPage], website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1546,7 +1546,7 @@ def test_streaming_response_list(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = response.parse()
- assert_matches_type(SyncPage[PageData], website_page, path=["response"])
+ assert_matches_type(SyncPage[PagesPage], website_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1607,7 +1607,7 @@ def test_method_clone(self, client: HubSpot) -> None:
website_page = client.cms.pages.website_pages.clone(
id="id",
)
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1616,7 +1616,7 @@ def test_method_clone_with_all_params(self, client: HubSpot) -> None:
id="id",
clone_name="cloneName",
)
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1628,7 +1628,7 @@ def test_raw_response_clone(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1640,7 +1640,7 @@ def test_streaming_response_clone(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1650,7 +1650,7 @@ def test_method_get(self, client: HubSpot) -> None:
website_page = client.cms.pages.website_pages.get(
object_id="objectId",
)
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1660,7 +1660,7 @@ def test_method_get_with_all_params(self, client: HubSpot) -> None:
archived=True,
property="property",
)
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1672,7 +1672,7 @@ def test_raw_response_get(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1684,7 +1684,7 @@ def test_streaming_response_get(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1702,7 +1702,7 @@ def test_method_get_draft(self, client: HubSpot) -> None:
website_page = client.cms.pages.website_pages.get_draft(
"objectId",
)
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1714,7 +1714,7 @@ def test_raw_response_get_draft(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1726,7 +1726,7 @@ def test_streaming_response_get_draft(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -2024,7 +2024,7 @@ def test_method_update_draft(self, client: HubSpot) -> None:
widget_containers={"foo": {}},
widgets={"foo": {}},
)
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -2203,7 +2203,7 @@ def test_raw_response_update_draft(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -2382,7 +2382,7 @@ def test_streaming_response_update_draft(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -2739,7 +2739,7 @@ async def test_method_create(self, async_client: AsyncHubSpot) -> None:
widget_containers={"foo": {}},
widgets={"foo": {}},
)
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -2917,7 +2917,7 @@ async def test_raw_response_create(self, async_client: AsyncHubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = await response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -3095,7 +3095,7 @@ async def test_streaming_response_create(self, async_client: AsyncHubSpot) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = await response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -3272,7 +3272,7 @@ async def test_method_update(self, async_client: AsyncHubSpot) -> None:
widget_containers={"foo": {}},
widgets={"foo": {}},
)
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -3515,7 +3515,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncHubSpot) -
widgets={"foo": {}},
archived=True,
)
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -3694,7 +3694,7 @@ async def test_raw_response_update(self, async_client: AsyncHubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = await response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -3873,7 +3873,7 @@ async def test_streaming_response_update(self, async_client: AsyncHubSpot) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = await response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4056,7 +4056,7 @@ async def test_path_params_update(self, async_client: AsyncHubSpot) -> None:
@parametrize
async def test_method_list(self, async_client: AsyncHubSpot) -> None:
website_page = await async_client.cms.pages.website_pages.list()
- assert_matches_type(AsyncPage[PageData], website_page, path=["response"])
+ assert_matches_type(AsyncPage[PagesPage], website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4074,7 +4074,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncHubSpot) ->
updated_at=parse_datetime("2019-12-27T18:11:19.117Z"),
updated_before=parse_datetime("2019-12-27T18:11:19.117Z"),
)
- assert_matches_type(AsyncPage[PageData], website_page, path=["response"])
+ assert_matches_type(AsyncPage[PagesPage], website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4084,7 +4084,7 @@ async def test_raw_response_list(self, async_client: AsyncHubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = await response.parse()
- assert_matches_type(AsyncPage[PageData], website_page, path=["response"])
+ assert_matches_type(AsyncPage[PagesPage], website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4094,7 +4094,7 @@ async def test_streaming_response_list(self, async_client: AsyncHubSpot) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = await response.parse()
- assert_matches_type(AsyncPage[PageData], website_page, path=["response"])
+ assert_matches_type(AsyncPage[PagesPage], website_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4155,7 +4155,7 @@ async def test_method_clone(self, async_client: AsyncHubSpot) -> None:
website_page = await async_client.cms.pages.website_pages.clone(
id="id",
)
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4164,7 +4164,7 @@ async def test_method_clone_with_all_params(self, async_client: AsyncHubSpot) ->
id="id",
clone_name="cloneName",
)
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4176,7 +4176,7 @@ async def test_raw_response_clone(self, async_client: AsyncHubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = await response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4188,7 +4188,7 @@ async def test_streaming_response_clone(self, async_client: AsyncHubSpot) -> Non
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = await response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4198,7 +4198,7 @@ async def test_method_get(self, async_client: AsyncHubSpot) -> None:
website_page = await async_client.cms.pages.website_pages.get(
object_id="objectId",
)
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4208,7 +4208,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncHubSpot) -> N
archived=True,
property="property",
)
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4220,7 +4220,7 @@ async def test_raw_response_get(self, async_client: AsyncHubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = await response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4232,7 +4232,7 @@ async def test_streaming_response_get(self, async_client: AsyncHubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = await response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4250,7 +4250,7 @@ async def test_method_get_draft(self, async_client: AsyncHubSpot) -> None:
website_page = await async_client.cms.pages.website_pages.get_draft(
"objectId",
)
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4262,7 +4262,7 @@ async def test_raw_response_get_draft(self, async_client: AsyncHubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = await response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4274,7 +4274,7 @@ async def test_streaming_response_get_draft(self, async_client: AsyncHubSpot) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = await response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4572,7 +4572,7 @@ async def test_method_update_draft(self, async_client: AsyncHubSpot) -> None:
widget_containers={"foo": {}},
widgets={"foo": {}},
)
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4751,7 +4751,7 @@ async def test_raw_response_update_draft(self, async_client: AsyncHubSpot) -> No
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = await response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -4930,7 +4930,7 @@ async def test_streaming_response_update_draft(self, async_client: AsyncHubSpot)
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
website_page = await response.parse()
- assert_matches_type(PageData, website_page, path=["response"])
+ assert_matches_type(PagesPage, website_page, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/cms/test_media_bridge.py b/tests/api_resources/cms/test_media_bridge.py
index 551c760..68c2c79 100644
--- a/tests/api_resources/cms/test_media_bridge.py
+++ b/tests/api_resources/cms/test_media_bridge.py
@@ -27,8 +27,8 @@
)
from hubspot_sdk.types.shared import (
PropertyGroup,
- BaseObjectTypeDefinition,
- BaseAssociationDefinition,
+ ObjectTypeDefinition,
+ AssociationDefinition,
CollectionResponsePropertyGroupNoPaging,
)
@@ -49,7 +49,7 @@ def test_method_create_association(self, client: HubSpot) -> None:
from_object_type_id="fromObjectTypeId",
to_object_type_id="toObjectTypeId",
)
- assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"])
+ assert_matches_type(AssociationDefinition, media_bridge, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -61,7 +61,7 @@ def test_method_create_association_with_all_params(self, client: HubSpot) -> Non
to_object_type_id="toObjectTypeId",
name="name",
)
- assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"])
+ assert_matches_type(AssociationDefinition, media_bridge, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -76,7 +76,7 @@ def test_raw_response_create_association(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
media_bridge = response.parse()
- assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"])
+ assert_matches_type(AssociationDefinition, media_bridge, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -91,7 +91,7 @@ def test_streaming_response_create_association(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
media_bridge = response.parse()
- assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"])
+ assert_matches_type(AssociationDefinition, media_bridge, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -580,7 +580,7 @@ def test_method_create_video_association_definition(self, client: HubSpot) -> No
media_bridge = client.cms.media_bridge.create_video_association_definition(
0,
)
- assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"])
+ assert_matches_type(AssociationDefinition, media_bridge, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -592,7 +592,7 @@ def test_raw_response_create_video_association_definition(self, client: HubSpot)
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
media_bridge = response.parse()
- assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"])
+ assert_matches_type(AssociationDefinition, media_bridge, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -604,7 +604,7 @@ def test_streaming_response_create_video_association_definition(self, client: Hu
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
media_bridge = response.parse()
- assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"])
+ assert_matches_type(AssociationDefinition, media_bridge, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1666,7 +1666,7 @@ def test_method_update_schema(self, client: HubSpot) -> None:
app_id=0,
clear_description=True,
)
- assert_matches_type(BaseObjectTypeDefinition, media_bridge, path=["response"])
+ assert_matches_type(ObjectTypeDefinition, media_bridge, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1687,7 +1687,7 @@ def test_method_update_schema_with_all_params(self, client: HubSpot) -> None:
searchable_properties=["string"],
secondary_display_properties=["string"],
)
- assert_matches_type(BaseObjectTypeDefinition, media_bridge, path=["response"])
+ assert_matches_type(ObjectTypeDefinition, media_bridge, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1701,7 +1701,7 @@ def test_raw_response_update_schema(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
media_bridge = response.parse()
- assert_matches_type(BaseObjectTypeDefinition, media_bridge, path=["response"])
+ assert_matches_type(ObjectTypeDefinition, media_bridge, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1715,7 +1715,7 @@ def test_streaming_response_update_schema(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
media_bridge = response.parse()
- assert_matches_type(BaseObjectTypeDefinition, media_bridge, path=["response"])
+ assert_matches_type(ObjectTypeDefinition, media_bridge, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1793,7 +1793,7 @@ async def test_method_create_association(self, async_client: AsyncHubSpot) -> No
from_object_type_id="fromObjectTypeId",
to_object_type_id="toObjectTypeId",
)
- assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"])
+ assert_matches_type(AssociationDefinition, media_bridge, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1805,7 +1805,7 @@ async def test_method_create_association_with_all_params(self, async_client: Asy
to_object_type_id="toObjectTypeId",
name="name",
)
- assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"])
+ assert_matches_type(AssociationDefinition, media_bridge, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1820,7 +1820,7 @@ async def test_raw_response_create_association(self, async_client: AsyncHubSpot)
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
media_bridge = await response.parse()
- assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"])
+ assert_matches_type(AssociationDefinition, media_bridge, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1835,7 +1835,7 @@ async def test_streaming_response_create_association(self, async_client: AsyncHu
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
media_bridge = await response.parse()
- assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"])
+ assert_matches_type(AssociationDefinition, media_bridge, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -2324,7 +2324,7 @@ async def test_method_create_video_association_definition(self, async_client: As
media_bridge = await async_client.cms.media_bridge.create_video_association_definition(
0,
)
- assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"])
+ assert_matches_type(AssociationDefinition, media_bridge, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -2336,7 +2336,7 @@ async def test_raw_response_create_video_association_definition(self, async_clie
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
media_bridge = await response.parse()
- assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"])
+ assert_matches_type(AssociationDefinition, media_bridge, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -2348,7 +2348,7 @@ async def test_streaming_response_create_video_association_definition(self, asyn
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
media_bridge = await response.parse()
- assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"])
+ assert_matches_type(AssociationDefinition, media_bridge, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -3410,7 +3410,7 @@ async def test_method_update_schema(self, async_client: AsyncHubSpot) -> None:
app_id=0,
clear_description=True,
)
- assert_matches_type(BaseObjectTypeDefinition, media_bridge, path=["response"])
+ assert_matches_type(ObjectTypeDefinition, media_bridge, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -3431,7 +3431,7 @@ async def test_method_update_schema_with_all_params(self, async_client: AsyncHub
searchable_properties=["string"],
secondary_display_properties=["string"],
)
- assert_matches_type(BaseObjectTypeDefinition, media_bridge, path=["response"])
+ assert_matches_type(ObjectTypeDefinition, media_bridge, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -3445,7 +3445,7 @@ async def test_raw_response_update_schema(self, async_client: AsyncHubSpot) -> N
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
media_bridge = await response.parse()
- assert_matches_type(BaseObjectTypeDefinition, media_bridge, path=["response"])
+ assert_matches_type(ObjectTypeDefinition, media_bridge, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -3459,7 +3459,7 @@ async def test_streaming_response_update_schema(self, async_client: AsyncHubSpot
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
media_bridge = await response.parse()
- assert_matches_type(BaseObjectTypeDefinition, media_bridge, path=["response"])
+ assert_matches_type(ObjectTypeDefinition, media_bridge, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/cms/test_pages.py b/tests/api_resources/cms/test_pages.py
index 6da4eb2..290b3c4 100644
--- a/tests/api_resources/cms/test_pages.py
+++ b/tests/api_resources/cms/test_pages.py
@@ -10,7 +10,7 @@
from hubspot_sdk import HubSpot, AsyncHubSpot
from tests.utils import assert_matches_type
from hubspot_sdk.types.cms import (
- PageData,
+ PagesPage,
PageVersion,
)
from hubspot_sdk.pagination import SyncPage, AsyncPage
@@ -280,7 +280,7 @@ def test_method_restore_landing_page_revision(self, client: HubSpot) -> None:
revision_id="revisionId",
object_id="objectId",
)
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -293,7 +293,7 @@ def test_raw_response_restore_landing_page_revision(self, client: HubSpot) -> No
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
page = response.parse()
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -306,7 +306,7 @@ def test_streaming_response_restore_landing_page_revision(self, client: HubSpot)
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
page = response.parse()
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -332,7 +332,7 @@ def test_method_restore_landing_page_revision_to_draft(self, client: HubSpot) ->
revision_id=0,
object_id="objectId",
)
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -345,7 +345,7 @@ def test_raw_response_restore_landing_page_revision_to_draft(self, client: HubSp
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
page = response.parse()
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -358,7 +358,7 @@ def test_streaming_response_restore_landing_page_revision_to_draft(self, client:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
page = response.parse()
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -378,7 +378,7 @@ def test_method_restore_site_page_revision(self, client: HubSpot) -> None:
revision_id="revisionId",
object_id="objectId",
)
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -391,7 +391,7 @@ def test_raw_response_restore_site_page_revision(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
page = response.parse()
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -404,7 +404,7 @@ def test_streaming_response_restore_site_page_revision(self, client: HubSpot) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
page = response.parse()
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -430,7 +430,7 @@ def test_method_restore_site_page_revision_to_draft(self, client: HubSpot) -> No
revision_id=0,
object_id="objectId",
)
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -443,7 +443,7 @@ def test_raw_response_restore_site_page_revision_to_draft(self, client: HubSpot)
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
page = response.parse()
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -456,7 +456,7 @@ def test_streaming_response_restore_site_page_revision_to_draft(self, client: Hu
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
page = response.parse()
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -734,7 +734,7 @@ async def test_method_restore_landing_page_revision(self, async_client: AsyncHub
revision_id="revisionId",
object_id="objectId",
)
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -747,7 +747,7 @@ async def test_raw_response_restore_landing_page_revision(self, async_client: As
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
page = await response.parse()
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -760,7 +760,7 @@ async def test_streaming_response_restore_landing_page_revision(self, async_clie
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
page = await response.parse()
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -786,7 +786,7 @@ async def test_method_restore_landing_page_revision_to_draft(self, async_client:
revision_id=0,
object_id="objectId",
)
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -799,7 +799,7 @@ async def test_raw_response_restore_landing_page_revision_to_draft(self, async_c
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
page = await response.parse()
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -812,7 +812,7 @@ async def test_streaming_response_restore_landing_page_revision_to_draft(self, a
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
page = await response.parse()
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -832,7 +832,7 @@ async def test_method_restore_site_page_revision(self, async_client: AsyncHubSpo
revision_id="revisionId",
object_id="objectId",
)
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -845,7 +845,7 @@ async def test_raw_response_restore_site_page_revision(self, async_client: Async
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
page = await response.parse()
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -858,7 +858,7 @@ async def test_streaming_response_restore_site_page_revision(self, async_client:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
page = await response.parse()
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -884,7 +884,7 @@ async def test_method_restore_site_page_revision_to_draft(self, async_client: As
revision_id=0,
object_id="objectId",
)
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -897,7 +897,7 @@ async def test_raw_response_restore_site_page_revision_to_draft(self, async_clie
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
page = await response.parse()
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -910,7 +910,7 @@ async def test_streaming_response_restore_site_page_revision_to_draft(self, asyn
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
page = await response.parse()
- assert_matches_type(PageData, page, path=["response"])
+ assert_matches_type(PagesPage, page, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/conversations/custom_channels/test_messages.py b/tests/api_resources/conversations/custom_channels/test_messages.py
index f63db25..6b1bb3d 100644
--- a/tests/api_resources/conversations/custom_channels/test_messages.py
+++ b/tests/api_resources/conversations/custom_channels/test_messages.py
@@ -92,14 +92,6 @@ def test_method_create_with_all_params(self, client: HubSpot) -> None:
in_reply_to_id="inReplyToId",
integration_idempotency_id="integrationIdempotencyId",
integration_thread_id="integrationThreadId",
- pre_resolved_contacts={
- "contacts": [
- {
- "contact_properties_leading_to_match": ["address"],
- "contact_vid": 0,
- }
- ]
- },
rich_text="richText",
)
assert_matches_type(PublicConversationsMessage, message, path=["response"])
@@ -369,14 +361,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncHubSpot) -
in_reply_to_id="inReplyToId",
integration_idempotency_id="integrationIdempotencyId",
integration_thread_id="integrationThreadId",
- pre_resolved_contacts={
- "contacts": [
- {
- "contact_properties_leading_to_match": ["address"],
- "contact_vid": 0,
- }
- ]
- },
rich_text="richText",
)
assert_matches_type(PublicConversationsMessage, message, path=["response"])
diff --git a/tests/api_resources/crm/test_object_schemas.py b/tests/api_resources/crm/test_object_schemas.py
index 664fe42..4d171e8 100644
--- a/tests/api_resources/crm/test_object_schemas.py
+++ b/tests/api_resources/crm/test_object_schemas.py
@@ -13,7 +13,7 @@
ObjectSchema,
CollectionResponseObjectSchemaNoPaging,
)
-from hubspot_sdk.types.shared import BaseObjectTypeDefinition, BaseAssociationDefinition
+from hubspot_sdk.types.shared import ObjectTypeDefinition, AssociationDefinition
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -153,7 +153,7 @@ def test_method_update(self, client: HubSpot) -> None:
object_type="objectType",
clear_description=True,
)
- assert_matches_type(BaseObjectTypeDefinition, object_schema, path=["response"])
+ assert_matches_type(ObjectTypeDefinition, object_schema, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -173,7 +173,7 @@ def test_method_update_with_all_params(self, client: HubSpot) -> None:
searchable_properties=["string"],
secondary_display_properties=["string"],
)
- assert_matches_type(BaseObjectTypeDefinition, object_schema, path=["response"])
+ assert_matches_type(ObjectTypeDefinition, object_schema, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -186,7 +186,7 @@ def test_raw_response_update(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
object_schema = response.parse()
- assert_matches_type(BaseObjectTypeDefinition, object_schema, path=["response"])
+ assert_matches_type(ObjectTypeDefinition, object_schema, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -199,7 +199,7 @@ def test_streaming_response_update(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
object_schema = response.parse()
- assert_matches_type(BaseObjectTypeDefinition, object_schema, path=["response"])
+ assert_matches_type(ObjectTypeDefinition, object_schema, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -310,7 +310,7 @@ def test_method_create_association(self, client: HubSpot) -> None:
from_object_type_id="fromObjectTypeId",
to_object_type_id="toObjectTypeId",
)
- assert_matches_type(BaseAssociationDefinition, object_schema, path=["response"])
+ assert_matches_type(AssociationDefinition, object_schema, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -321,7 +321,7 @@ def test_method_create_association_with_all_params(self, client: HubSpot) -> Non
to_object_type_id="toObjectTypeId",
name="name",
)
- assert_matches_type(BaseAssociationDefinition, object_schema, path=["response"])
+ assert_matches_type(AssociationDefinition, object_schema, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -335,7 +335,7 @@ def test_raw_response_create_association(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
object_schema = response.parse()
- assert_matches_type(BaseAssociationDefinition, object_schema, path=["response"])
+ assert_matches_type(AssociationDefinition, object_schema, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -349,7 +349,7 @@ def test_streaming_response_create_association(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
object_schema = response.parse()
- assert_matches_type(BaseAssociationDefinition, object_schema, path=["response"])
+ assert_matches_type(AssociationDefinition, object_schema, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -608,7 +608,7 @@ async def test_method_update(self, async_client: AsyncHubSpot) -> None:
object_type="objectType",
clear_description=True,
)
- assert_matches_type(BaseObjectTypeDefinition, object_schema, path=["response"])
+ assert_matches_type(ObjectTypeDefinition, object_schema, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -628,7 +628,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncHubSpot) -
searchable_properties=["string"],
secondary_display_properties=["string"],
)
- assert_matches_type(BaseObjectTypeDefinition, object_schema, path=["response"])
+ assert_matches_type(ObjectTypeDefinition, object_schema, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -641,7 +641,7 @@ async def test_raw_response_update(self, async_client: AsyncHubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
object_schema = await response.parse()
- assert_matches_type(BaseObjectTypeDefinition, object_schema, path=["response"])
+ assert_matches_type(ObjectTypeDefinition, object_schema, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -654,7 +654,7 @@ async def test_streaming_response_update(self, async_client: AsyncHubSpot) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
object_schema = await response.parse()
- assert_matches_type(BaseObjectTypeDefinition, object_schema, path=["response"])
+ assert_matches_type(ObjectTypeDefinition, object_schema, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -765,7 +765,7 @@ async def test_method_create_association(self, async_client: AsyncHubSpot) -> No
from_object_type_id="fromObjectTypeId",
to_object_type_id="toObjectTypeId",
)
- assert_matches_type(BaseAssociationDefinition, object_schema, path=["response"])
+ assert_matches_type(AssociationDefinition, object_schema, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -776,7 +776,7 @@ async def test_method_create_association_with_all_params(self, async_client: Asy
to_object_type_id="toObjectTypeId",
name="name",
)
- assert_matches_type(BaseAssociationDefinition, object_schema, path=["response"])
+ assert_matches_type(AssociationDefinition, object_schema, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -790,7 +790,7 @@ async def test_raw_response_create_association(self, async_client: AsyncHubSpot)
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
object_schema = await response.parse()
- assert_matches_type(BaseAssociationDefinition, object_schema, path=["response"])
+ assert_matches_type(AssociationDefinition, object_schema, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -804,7 +804,7 @@ async def test_streaming_response_create_association(self, async_client: AsyncHu
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
object_schema = await response.parse()
- assert_matches_type(BaseAssociationDefinition, object_schema, path=["response"])
+ assert_matches_type(AssociationDefinition, object_schema, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/crm/test_properties.py b/tests/api_resources/crm/test_properties.py
index 4dc6430..1ca0ca0 100644
--- a/tests/api_resources/crm/test_properties.py
+++ b/tests/api_resources/crm/test_properties.py
@@ -12,7 +12,7 @@
from hubspot_sdk.types.crm import (
CollectionResponsePropertyNoPaging,
)
-from hubspot_sdk.types.shared import BaseProperty
+from hubspot_sdk.types.shared import Property
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -31,7 +31,7 @@ def test_method_create(self, client: HubSpot) -> None:
name="name",
type="bool",
)
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -65,7 +65,7 @@ def test_method_create_with_all_params(self, client: HubSpot) -> None:
referenced_object_type="referencedObjectType",
show_currency_symbol=True,
)
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -82,7 +82,7 @@ def test_raw_response_create(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
property = response.parse()
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -99,7 +99,7 @@ def test_streaming_response_create(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
property = response.parse()
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -123,7 +123,7 @@ def test_method_update(self, client: HubSpot) -> None:
property_name="propertyName",
object_type="objectType",
)
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -153,7 +153,7 @@ def test_method_update_with_all_params(self, client: HubSpot) -> None:
show_currency_symbol=True,
type="bool",
)
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -166,7 +166,7 @@ def test_raw_response_update(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
property = response.parse()
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -179,7 +179,7 @@ def test_streaming_response_update(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
property = response.parse()
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -311,7 +311,7 @@ def test_method_get(self, client: HubSpot) -> None:
property_name="propertyName",
object_type="objectType",
)
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -324,7 +324,7 @@ def test_method_get_with_all_params(self, client: HubSpot) -> None:
locale="locale",
properties="properties",
)
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -337,7 +337,7 @@ def test_raw_response_get(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
property = response.parse()
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -350,7 +350,7 @@ def test_streaming_response_get(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
property = response.parse()
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -386,7 +386,7 @@ async def test_method_create(self, async_client: AsyncHubSpot) -> None:
name="name",
type="bool",
)
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -420,7 +420,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncHubSpot) -
referenced_object_type="referencedObjectType",
show_currency_symbol=True,
)
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -437,7 +437,7 @@ async def test_raw_response_create(self, async_client: AsyncHubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
property = await response.parse()
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -454,7 +454,7 @@ async def test_streaming_response_create(self, async_client: AsyncHubSpot) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
property = await response.parse()
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -478,7 +478,7 @@ async def test_method_update(self, async_client: AsyncHubSpot) -> None:
property_name="propertyName",
object_type="objectType",
)
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -508,7 +508,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncHubSpot) -
show_currency_symbol=True,
type="bool",
)
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -521,7 +521,7 @@ async def test_raw_response_update(self, async_client: AsyncHubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
property = await response.parse()
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -534,7 +534,7 @@ async def test_streaming_response_update(self, async_client: AsyncHubSpot) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
property = await response.parse()
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -666,7 +666,7 @@ async def test_method_get(self, async_client: AsyncHubSpot) -> None:
property_name="propertyName",
object_type="objectType",
)
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -679,7 +679,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncHubSpot) -> N
locale="locale",
properties="properties",
)
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -692,7 +692,7 @@ async def test_raw_response_get(self, async_client: AsyncHubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
property = await response.parse()
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -705,7 +705,7 @@ async def test_streaming_response_get(self, async_client: AsyncHubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
property = await response.parse()
- assert_matches_type(BaseProperty, property, path=["response"])
+ assert_matches_type(Property, property, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/events/test_definitions.py b/tests/api_resources/events/test_definitions.py
index 8c84a10..d2c7065 100644
--- a/tests/api_resources/events/test_definitions.py
+++ b/tests/api_resources/events/test_definitions.py
@@ -13,7 +13,7 @@
from hubspot_sdk.types.events import (
ExternalBehavioralEventTypeDefinition,
)
-from hubspot_sdk.types.shared import BaseProperty
+from hubspot_sdk.types.shared import Property
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -253,7 +253,7 @@ def test_method_create_property(self, client: HubSpot) -> None:
label="label",
type="type",
)
- assert_matches_type(BaseProperty, definition, path=["response"])
+ assert_matches_type(Property, definition, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -274,7 +274,7 @@ def test_method_create_property_with_all_params(self, client: HubSpot) -> None:
}
],
)
- assert_matches_type(BaseProperty, definition, path=["response"])
+ assert_matches_type(Property, definition, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -288,7 +288,7 @@ def test_raw_response_create_property(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
definition = response.parse()
- assert_matches_type(BaseProperty, definition, path=["response"])
+ assert_matches_type(Property, definition, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -302,7 +302,7 @@ def test_streaming_response_create_property(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
definition = response.parse()
- assert_matches_type(BaseProperty, definition, path=["response"])
+ assert_matches_type(Property, definition, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -466,7 +466,7 @@ def test_method_update_property(self, client: HubSpot) -> None:
property_name="propertyName",
event_name="eventName",
)
- assert_matches_type(BaseProperty, definition, path=["response"])
+ assert_matches_type(Property, definition, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -486,7 +486,7 @@ def test_method_update_property_with_all_params(self, client: HubSpot) -> None:
}
],
)
- assert_matches_type(BaseProperty, definition, path=["response"])
+ assert_matches_type(Property, definition, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -499,7 +499,7 @@ def test_raw_response_update_property(self, client: HubSpot) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
definition = response.parse()
- assert_matches_type(BaseProperty, definition, path=["response"])
+ assert_matches_type(Property, definition, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -512,7 +512,7 @@ def test_streaming_response_update_property(self, client: HubSpot) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
definition = response.parse()
- assert_matches_type(BaseProperty, definition, path=["response"])
+ assert_matches_type(Property, definition, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -769,7 +769,7 @@ async def test_method_create_property(self, async_client: AsyncHubSpot) -> None:
label="label",
type="type",
)
- assert_matches_type(BaseProperty, definition, path=["response"])
+ assert_matches_type(Property, definition, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -790,7 +790,7 @@ async def test_method_create_property_with_all_params(self, async_client: AsyncH
}
],
)
- assert_matches_type(BaseProperty, definition, path=["response"])
+ assert_matches_type(Property, definition, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -804,7 +804,7 @@ async def test_raw_response_create_property(self, async_client: AsyncHubSpot) ->
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
definition = await response.parse()
- assert_matches_type(BaseProperty, definition, path=["response"])
+ assert_matches_type(Property, definition, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -818,7 +818,7 @@ async def test_streaming_response_create_property(self, async_client: AsyncHubSp
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
definition = await response.parse()
- assert_matches_type(BaseProperty, definition, path=["response"])
+ assert_matches_type(Property, definition, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -982,7 +982,7 @@ async def test_method_update_property(self, async_client: AsyncHubSpot) -> None:
property_name="propertyName",
event_name="eventName",
)
- assert_matches_type(BaseProperty, definition, path=["response"])
+ assert_matches_type(Property, definition, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1002,7 +1002,7 @@ async def test_method_update_property_with_all_params(self, async_client: AsyncH
}
],
)
- assert_matches_type(BaseProperty, definition, path=["response"])
+ assert_matches_type(Property, definition, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1015,7 +1015,7 @@ async def test_raw_response_update_property(self, async_client: AsyncHubSpot) ->
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
definition = await response.parse()
- assert_matches_type(BaseProperty, definition, path=["response"])
+ assert_matches_type(Property, definition, path=["response"])
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
@@ -1028,7 +1028,7 @@ async def test_streaming_response_update_property(self, async_client: AsyncHubSp
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
definition = await response.parse()
- assert_matches_type(BaseProperty, definition, path=["response"])
+ assert_matches_type(Property, definition, path=["response"])
assert cast(Any, response.is_closed) is True
From 02adb88875d3b42f6d4fed6600055c82965436f9 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 7 May 2026 12:41:09 +0000
Subject: [PATCH 3/7] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 137d682..47f1cb3 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 959
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-d4a5ee63599381787c93431700850350eae82433db6716e405678a1c52a95a89.yml
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-10670e8b046a913d525c58235f039117e5c43c6657818de8c1b5050e5ffa6a60.yml
openapi_spec_hash: 3a53f40c597fb1a8ded7d5f8939b8cc1
-config_hash: eb3466c7284bdc1016ea5673e1564ffd
+config_hash: 1a2418ad0ae52279c366cfde5b84ac87
From 0c1c2369d17ab7922d112d3af5f2cdfd52cf88d1 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 7 May 2026 12:42:18 +0000
Subject: [PATCH 4/7] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 47f1cb3..e2c7ce8 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 959
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-10670e8b046a913d525c58235f039117e5c43c6657818de8c1b5050e5ffa6a60.yml
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-13820203f6510196156d833042f4ef85824efaf03cbe99dd5510c7683d1f5ac3.yml
openapi_spec_hash: 3a53f40c597fb1a8ded7d5f8939b8cc1
-config_hash: 1a2418ad0ae52279c366cfde5b84ac87
+config_hash: c3720dc6756ec83720d922b4ab1c40c6
From 30c2c7b5f9452ac5c43b07823bbd8a5ba3640b49 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 7 May 2026 12:43:01 +0000
Subject: [PATCH 5/7] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index e2c7ce8..47f1cb3 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 959
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-13820203f6510196156d833042f4ef85824efaf03cbe99dd5510c7683d1f5ac3.yml
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-10670e8b046a913d525c58235f039117e5c43c6657818de8c1b5050e5ffa6a60.yml
openapi_spec_hash: 3a53f40c597fb1a8ded7d5f8939b8cc1
-config_hash: c3720dc6756ec83720d922b4ab1c40c6
+config_hash: 1a2418ad0ae52279c366cfde5b84ac87
From ac7fba62a7edfb795cf77cc0e584d60a6b712449 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 7 May 2026 13:01:02 +0000
Subject: [PATCH 6/7] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 47f1cb3..9a756ba 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 959
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-10670e8b046a913d525c58235f039117e5c43c6657818de8c1b5050e5ffa6a60.yml
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-823cfd41f503bd00779bc02af045a44617ded14a4612bc128567301eb2982763.yml
openapi_spec_hash: 3a53f40c597fb1a8ded7d5f8939b8cc1
-config_hash: 1a2418ad0ae52279c366cfde5b84ac87
+config_hash: 8397c3cc951490dffa28dc7f9f0635e4
From 691206aa71f5bb7ee851088dfc54d568166bec17 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 7 May 2026 13:01:37 +0000
Subject: [PATCH 7/7] release: 0.1.0-alpha.5
---
.release-please-manifest.json | 2 +-
CHANGELOG.md | 8 ++++++++
pyproject.toml | 2 +-
src/hubspot_sdk/_version.py | 2 +-
4 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index b56c3d0..e8285b7 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.1.0-alpha.4"
+ ".": "0.1.0-alpha.5"
}
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ed5028f..66e10d0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 0.1.0-alpha.5 (2026-05-07)
+
+Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/HubSpot/hubspot-sdk-python/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
+
+### Features
+
+* **api:** manual updates ([4f4f792](https://github.com/HubSpot/hubspot-sdk-python/commit/4f4f79286a9883fe7bd6cf01fa1662ccd6cc7a51))
+
## 0.1.0-alpha.4 (2026-05-01)
Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/HubSpot/hubspot-sdk-python/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)
diff --git a/pyproject.toml b/pyproject.toml
index a2ad59d..16db8a5 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "hubspot-sdk"
-version = "0.1.0-alpha.4"
+version = "0.1.0-alpha.5"
description = "The official Python library for the hubspot API"
dynamic = ["readme"]
license = "Apache-2.0"
diff --git a/src/hubspot_sdk/_version.py b/src/hubspot_sdk/_version.py
index a2e6fee..a42fd3d 100644
--- a/src/hubspot_sdk/_version.py
+++ b/src/hubspot_sdk/_version.py
@@ -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.4" # x-release-please-version
+__version__ = "0.1.0-alpha.5" # x-release-please-version