Skip to content

Commit d857fa4

Browse files
klaviyo-sdkklaviyo-sdk
andauthored
version 19.0.2 (#92)
Co-authored-by: klaviyo-sdk <[email protected]>
1 parent 1ca9f5e commit d857fa4

19 files changed

+37
-34
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
NOTE: For more granular API-specific changes, please see our [API Changelog](https://developers.klaviyo.com/en/docs/changelog_)
99

10+
## [19.0.2] - revision 2025-04-15
11+
### Fixed
12+
- Fixed return value of `campaign_message_assign_template`
13+
1014
## [19.0.1] - revision 2025-04-15
1115
### Changed
1216
- Removed API revision from comment on files

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Klaviyo Python SDK
22

3-
- SDK version: 19.0.1
3+
- SDK version: 19.0.2
44
- API revision: 2025-04-15
55

66
## Table of Contents
@@ -48,7 +48,6 @@
4848
* [Typed Responses](#typed-responses)
4949
* [Backwards Compatibility](#backwards-compatibility)
5050
* [Untyped Response Data for Specific APIs](#untyped-response-data-for-specific-apis)
51-
* [Lazy Imports](#lazy-imports)
5251
<!-- TOC -->
5352

5453
## Helpful Resources

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openapi_client"
3-
version = "19.0.1"
3+
version = "19.0.2"
44
description = "Klaviyo API"
55
authors = ["Klaviyo Developer Experience Team <[email protected]>"]
66
license = "License"

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = klaviyo-api
3-
version = 19.0.1
3+
version = 19.0.2
44
author = Klaviyo Developers
55
author_email = [email protected]
66
description = Klaviyo Python SDK

src/openapi_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "19.0.1"
17+
__version__ = "19.0.2"
1818

1919
from typing import TYPE_CHECKING
2020

src/openapi_client/api/campaigns_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def assign_template_to_campaign_message(
129129
)
130130

131131
_response_types_map: Dict[str, Optional[str]] = {
132-
'201': "PostCampaignMessageResponse",
132+
'200': "PostCampaignMessageResponse",
133133
'4XX': "GetAccounts4XXResponse",
134134
'5XX': "GetAccounts4XXResponse",
135135
}
@@ -214,7 +214,7 @@ def assign_template_to_campaign_message_with_http_info(
214214
)
215215

216216
_response_types_map: Dict[str, Optional[str]] = {
217-
'201': "PostCampaignMessageResponse",
217+
'200': "PostCampaignMessageResponse",
218218
'4XX': "GetAccounts4XXResponse",
219219
'5XX': "GetAccounts4XXResponse",
220220
}
@@ -295,7 +295,7 @@ def assign_template_to_campaign_message_without_preload_content(
295295
)
296296

297297
_response_types_map: Dict[str, Optional[str]] = {
298-
'201': "PostCampaignMessageResponse",
298+
'200': "PostCampaignMessageResponse",
299299
'4XX': "GetAccounts4XXResponse",
300300
'5XX': "GetAccounts4XXResponse",
301301
}

src/openapi_client/api/templates_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ def create_universal_content(
729729
) -> Union[PostUniversalContentResponse, Dict[str, object]]:
730730
"""Create Universal Content
731731
732-
Create universal content. Only text blocks, which can include text or HTML, are supported at this time.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `templates:write`
732+
Create universal content. Currently supported block types are: `button`, `drop_shadow`, `horizontal_rule`, `html`, `image`, `spacer`, and `text`.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `templates:write`
733733
734734
:param universal_content_create_query: Create a template universal content (required)
735735
:type universal_content_create_query: UniversalContentCreateQuery
@@ -814,7 +814,7 @@ def create_universal_content_with_http_info(
814814
) -> ApiResponse[PostUniversalContentResponse]:
815815
"""Create Universal Content
816816
817-
Create universal content. Only text blocks, which can include text or HTML, are supported at this time.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `templates:write`
817+
Create universal content. Currently supported block types are: `button`, `drop_shadow`, `horizontal_rule`, `html`, `image`, `spacer`, and `text`.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `templates:write`
818818
819819
:param universal_content_create_query: Create a template universal content (required)
820820
:type universal_content_create_query: UniversalContentCreateQuery
@@ -895,7 +895,7 @@ def create_universal_content_without_preload_content(
895895
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,) -> RESTResponseType:
896896
"""Create Universal Content
897897
898-
Create universal content. Only text blocks, which can include text or HTML, are supported at this time.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `templates:write`
898+
Create universal content. Currently supported block types are: `button`, `drop_shadow`, `horizontal_rule`, `html`, `image`, `spacer`, and `text`.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `templates:write`
899899
900900
:param universal_content_create_query: Create a template universal content (required)
901901
:type universal_content_create_query: UniversalContentCreateQuery
@@ -3789,7 +3789,7 @@ def update_universal_content(
37893789
) -> Union[PatchUniversalContentResponse, Dict[str, object]]:
37903790
"""Update Universal Content
37913791
3792-
Update universal content. The `definition` field can only be updated for text blocks at this time.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `templates:write`
3792+
Update universal content. The `definition` field can only be updated on the following block types at this time: `button`, `drop_shadow`, `horizontal_rule`, `html`, `image`, `spacer`, and `text`.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `templates:write`
37933793
37943794
:param id: The ID of the template universal content (required)
37953795
:type id: str
@@ -3878,7 +3878,7 @@ def update_universal_content_with_http_info(
38783878
) -> ApiResponse[PatchUniversalContentResponse]:
38793879
"""Update Universal Content
38803880
3881-
Update universal content. The `definition` field can only be updated for text blocks at this time.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `templates:write`
3881+
Update universal content. The `definition` field can only be updated on the following block types at this time: `button`, `drop_shadow`, `horizontal_rule`, `html`, `image`, `spacer`, and `text`.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `templates:write`
38823882
38833883
:param id: The ID of the template universal content (required)
38843884
:type id: str
@@ -3963,7 +3963,7 @@ def update_universal_content_without_preload_content(
39633963
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,) -> RESTResponseType:
39643964
"""Update Universal Content
39653965
3966-
Update universal content. The `definition` field can only be updated for text blocks at this time.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `templates:write`
3966+
Update universal content. The `definition` field can only be updated on the following block types at this time: `button`, `drop_shadow`, `horizontal_rule`, `html`, `image`, `spacer`, and `text`.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `templates:write`
39673967
39683968
:param id: The ID of the template universal content (required)
39693969
:type id: str

src/openapi_client/api/tracking_settings_api.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def get_tracking_setting(
6868
) -> Union[GetTrackingSettingResponse, Dict[str, object]]:
6969
"""Get Tracking Setting
7070
71-
Get the tracking setting with the given account ID.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `tracking-settings:read`
71+
Get the UTM tracking setting with the given account ID. More information about UTM tracking settings can be found [here](https://help.klaviyo.com/hc/en-us/articles/115005247808).<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `tracking-settings:read`
7272
7373
:param id: The id of the tracking setting (account ID). (required)
7474
:type id: str
@@ -154,7 +154,7 @@ def get_tracking_setting_with_http_info(
154154
) -> ApiResponse[GetTrackingSettingResponse]:
155155
"""Get Tracking Setting
156156
157-
Get the tracking setting with the given account ID.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `tracking-settings:read`
157+
Get the UTM tracking setting with the given account ID. More information about UTM tracking settings can be found [here](https://help.klaviyo.com/hc/en-us/articles/115005247808).<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `tracking-settings:read`
158158
159159
:param id: The id of the tracking setting (account ID). (required)
160160
:type id: str
@@ -236,7 +236,7 @@ def get_tracking_setting_without_preload_content(
236236
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,) -> RESTResponseType:
237237
"""Get Tracking Setting
238238
239-
Get the tracking setting with the given account ID.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `tracking-settings:read`
239+
Get the UTM tracking setting with the given account ID. More information about UTM tracking settings can be found [here](https://help.klaviyo.com/hc/en-us/articles/115005247808).<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `tracking-settings:read`
240240
241241
:param id: The id of the tracking setting (account ID). (required)
242242
:type id: str
@@ -397,7 +397,7 @@ def get_tracking_settings(
397397
) -> Union[GetTrackingSettingResponseCollection, Dict[str, object]]:
398398
"""Get Tracking Settings
399399
400-
Get all tracking settings in an account. Returns an array with a single tracking setting.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `tracking-settings:read`
400+
Get all UTM tracking settings in an account. Returns an array with a single tracking setting. More information about UTM tracking settings can be found [here](https://help.klaviyo.com/hc/en-us/articles/115005247808).<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `tracking-settings:read`
401401
402402
:param fields_tracking_setting: For more information please visit https://developers.klaviyo.com/en/v2025-04-15/reference/api-overview#sparse-fieldsets
403403
:type fields_tracking_setting: List[str]
@@ -487,7 +487,7 @@ def get_tracking_settings_with_http_info(
487487
) -> ApiResponse[GetTrackingSettingResponseCollection]:
488488
"""Get Tracking Settings
489489
490-
Get all tracking settings in an account. Returns an array with a single tracking setting.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `tracking-settings:read`
490+
Get all UTM tracking settings in an account. Returns an array with a single tracking setting. More information about UTM tracking settings can be found [here](https://help.klaviyo.com/hc/en-us/articles/115005247808).<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `tracking-settings:read`
491491
492492
:param fields_tracking_setting: For more information please visit https://developers.klaviyo.com/en/v2025-04-15/reference/api-overview#sparse-fieldsets
493493
:type fields_tracking_setting: List[str]
@@ -573,7 +573,7 @@ def get_tracking_settings_without_preload_content(
573573
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,) -> RESTResponseType:
574574
"""Get Tracking Settings
575575
576-
Get all tracking settings in an account. Returns an array with a single tracking setting.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `tracking-settings:read`
576+
Get all UTM tracking settings in an account. Returns an array with a single tracking setting. More information about UTM tracking settings can be found [here](https://help.klaviyo.com/hc/en-us/articles/115005247808).<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `tracking-settings:read`
577577
578578
:param fields_tracking_setting: For more information please visit https://developers.klaviyo.com/en/v2025-04-15/reference/api-overview#sparse-fieldsets
579579
:type fields_tracking_setting: List[str]
@@ -749,7 +749,7 @@ def update_tracking_setting(
749749
) -> Union[PatchTrackingSettingResponse, Dict[str, object]]:
750750
"""Update Tracking Setting
751751
752-
Update the tracking setting with the given account ID.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `tracking-settings:write`
752+
Update the UTM tracking setting with the given account ID. More information about UTM tracking settings can be found [here](https://help.klaviyo.com/hc/en-us/articles/115005247808).<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `tracking-settings:write`
753753
754754
:param id: The id of the tracking setting (account ID). (required)
755755
:type id: str
@@ -835,7 +835,7 @@ def update_tracking_setting_with_http_info(
835835
) -> ApiResponse[PatchTrackingSettingResponse]:
836836
"""Update Tracking Setting
837837
838-
Update the tracking setting with the given account ID.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `tracking-settings:write`
838+
Update the UTM tracking setting with the given account ID. More information about UTM tracking settings can be found [here](https://help.klaviyo.com/hc/en-us/articles/115005247808).<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `tracking-settings:write`
839839
840840
:param id: The id of the tracking setting (account ID). (required)
841841
:type id: str
@@ -917,7 +917,7 @@ def update_tracking_setting_without_preload_content(
917917
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,) -> RESTResponseType:
918918
"""Update Tracking Setting
919919
920-
Update the tracking setting with the given account ID.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `tracking-settings:write`
920+
Update the UTM tracking setting with the given account ID. More information about UTM tracking settings can be found [here](https://help.klaviyo.com/hc/en-us/articles/115005247808).<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `tracking-settings:write`
921921
922922
:param id: The id of the tracking setting (account ID). (required)
923923
:type id: str

src/openapi_client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def __init__(
8989
self.default_headers[header_name] = header_value
9090
self.cookie = cookie
9191
# Set default User-Agent.
92-
self.user_agent = 'klaviyo-api-python/19.0.1'
92+
self.user_agent = 'klaviyo-api-python/19.0.2'
9393
self.client_side_validation = configuration.client_side_validation
9494

9595
self.options=options

src/openapi_client/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def to_debug_report(self):
406406
"OS: {env}\n"\
407407
"Python Version: {pyversion}\n"\
408408
"Version of the API: 2025-04-15\n"\
409-
"SDK Package Version: 19.0.1".\
409+
"SDK Package Version: 19.0.2".\
410410
format(env=sys.platform, pyversion=sys.version)
411411

412412
def get_host_settings(self):

0 commit comments

Comments
 (0)