Skip to content

Commit c0ea471

Browse files
klaviyo-sdkklaviyo-sdkben-horgan-klaviyo
authored
v13.0.0 (#69)
* version 13.0.0 * Update CHANGELOG.md --------- Co-authored-by: klaviyo-sdk <[email protected]> Co-authored-by: Ben Horgan <[email protected]>
1 parent 3fd7b7a commit c0ea471

35 files changed

+372
-105
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ 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+
## [13.0.0] - 2024-07-15
11+
### Fixed
12+
- **Breaking**
13+
- Fixed types in several DTO classes
14+
15+
1016
## [12.0.0] - 2024-07-15
1117
### Added
1218
- Added several method aliases based on previous operation IDs

README.md

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

3-
- SDK version: 12.0.0
3+
- SDK version: 13.0.0
44
- API revision: 2024-07-15
55

66
## Table of Contents

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 = "12.0.0"
3+
version = "13.0.0"
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 = 12.0.0
3+
version = 13.0.0
44
author = Klaviyo Developers
55
author_email = [email protected]
66
description = Klaviyo Python SDK

src/openapi_client/__init__.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
""" # noqa: E501
1616

1717

18-
__version__ = "12.0.0"
18+
__version__ = "13.0.0"
1919

2020
# import apis into sdk package
2121
from openapi_client.api.accounts_api import AccountsApi
@@ -467,6 +467,7 @@
467467
from openapi_client.models.get_form_version_form_relationship_response import GetFormVersionFormRelationshipResponse
468468
from openapi_client.models.get_form_version_form_relationship_response_data import GetFormVersionFormRelationshipResponseData
469469
from openapi_client.models.get_form_version_response import GetFormVersionResponse
470+
from openapi_client.models.get_form_version_response_collection import GetFormVersionResponseCollection
470471
from openapi_client.models.get_image_response import GetImageResponse
471472
from openapi_client.models.get_image_response_collection import GetImageResponseCollection
472473
from openapi_client.models.get_import_error_response_collection import GetImportErrorResponseCollection
@@ -485,11 +486,11 @@
485486
from openapi_client.models.get_list_retrieve_response_compound_document import GetListRetrieveResponseCompoundDocument
486487
from openapi_client.models.get_list_retrieve_response_compound_document_data import GetListRetrieveResponseCompoundDocumentData
487488
from openapi_client.models.get_list_tag_relationship_list_response_collection import GetListTagRelationshipListResponseCollection
488-
from openapi_client.models.get_metric_response_collection import GetMetricResponseCollection
489+
from openapi_client.models.get_metric_response import GetMetricResponse
489490
from openapi_client.models.get_metric_response_collection_compound_document import GetMetricResponseCollectionCompoundDocument
490-
from openapi_client.models.get_metric_response_collection_data_inner import GetMetricResponseCollectionDataInner
491-
from openapi_client.models.get_metric_response_collection_data_inner_all_of_relationships import GetMetricResponseCollectionDataInnerAllOfRelationships
492491
from openapi_client.models.get_metric_response_compound_document import GetMetricResponseCompoundDocument
492+
from openapi_client.models.get_metric_response_data import GetMetricResponseData
493+
from openapi_client.models.get_metric_response_data_all_of_relationships import GetMetricResponseDataAllOfRelationships
493494
from openapi_client.models.get_profile_import_job_list_relationships_response_collection import GetProfileImportJobListRelationshipsResponseCollection
494495
from openapi_client.models.get_profile_import_job_profile_relationships_response_collection import GetProfileImportJobProfileRelationshipsResponseCollection
495496
from openapi_client.models.get_profile_import_job_response_collection_compound_document import GetProfileImportJobResponseCollectionCompoundDocument
@@ -500,17 +501,18 @@
500501
from openapi_client.models.get_profile_import_job_response_collection_compound_document_data_inner_all_of_relationships_lists_data_inner import GetProfileImportJobResponseCollectionCompoundDocumentDataInnerAllOfRelationshipsListsDataInner
501502
from openapi_client.models.get_profile_import_job_response_compound_document import GetProfileImportJobResponseCompoundDocument
502503
from openapi_client.models.get_profile_list_relationships_response_collection import GetProfileListRelationshipsResponseCollection
504+
from openapi_client.models.get_profile_response import GetProfileResponse
503505
from openapi_client.models.get_profile_response_collection import GetProfileResponseCollection
504506
from openapi_client.models.get_profile_response_collection_compound_document import GetProfileResponseCollectionCompoundDocument
505-
from openapi_client.models.get_profile_response_collection_data_inner import GetProfileResponseCollectionDataInner
506-
from openapi_client.models.get_profile_response_collection_data_inner_all_of_relationships import GetProfileResponseCollectionDataInnerAllOfRelationships
507507
from openapi_client.models.get_profile_response_compound_document import GetProfileResponseCompoundDocument
508508
from openapi_client.models.get_profile_response_compound_document_data import GetProfileResponseCompoundDocumentData
509509
from openapi_client.models.get_profile_response_compound_document_data_all_of_relationships import GetProfileResponseCompoundDocumentDataAllOfRelationships
510510
from openapi_client.models.get_profile_response_compound_document_data_all_of_relationships_lists import GetProfileResponseCompoundDocumentDataAllOfRelationshipsLists
511511
from openapi_client.models.get_profile_response_compound_document_data_all_of_relationships_lists_data_inner import GetProfileResponseCompoundDocumentDataAllOfRelationshipsListsDataInner
512512
from openapi_client.models.get_profile_response_compound_document_data_all_of_relationships_segments import GetProfileResponseCompoundDocumentDataAllOfRelationshipsSegments
513513
from openapi_client.models.get_profile_response_compound_document_data_all_of_relationships_segments_data_inner import GetProfileResponseCompoundDocumentDataAllOfRelationshipsSegmentsDataInner
514+
from openapi_client.models.get_profile_response_data import GetProfileResponseData
515+
from openapi_client.models.get_profile_response_data_all_of_relationships import GetProfileResponseDataAllOfRelationships
514516
from openapi_client.models.get_profile_segment_relationships_response_collection import GetProfileSegmentRelationshipsResponseCollection
515517
from openapi_client.models.get_segment_list_response_collection_compound_document import GetSegmentListResponseCollectionCompoundDocument
516518
from openapi_client.models.get_segment_list_response_collection_compound_document_data_inner import GetSegmentListResponseCollectionCompoundDocumentDataInner

src/openapi_client/api/coupons_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3858,7 +3858,7 @@ def get_coupon_for_coupon_code(
38583858
_headers: Optional[Dict[StrictStr, Any]] = None,
38593859
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
38603860
options: Dict[str, Any] = {},
3861-
) -> Union[GetCouponResponseCollection, Dict[str, object]]:
3861+
) -> Union[GetCouponResponse, Dict[str, object]]:
38623862
"""Get Coupon For Coupon Code
38633863
38643864
Get the coupon associated with a given coupon code ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `coupons:read`
@@ -3899,7 +3899,7 @@ def get_coupon_for_coupon_code(
38993899
)
39003900

39013901
_response_types_map: Dict[str, Optional[str]] = {
3902-
'200': "GetCouponResponseCollection",
3902+
'200': "GetCouponResponse",
39033903
'4XX': "GetAccounts4XXResponse",
39043904
'5XX': "GetAccounts4XXResponse",
39053905
}
@@ -3947,7 +3947,7 @@ def get_coupon_for_coupon_code_with_http_info(
39473947
_headers: Optional[Dict[StrictStr, Any]] = None,
39483948
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
39493949
options: Dict[str, Any] = {},
3950-
) -> ApiResponse[GetCouponResponseCollection]:
3950+
) -> ApiResponse[GetCouponResponse]:
39513951
"""Get Coupon For Coupon Code
39523952
39533953
Get the coupon associated with a given coupon code ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `coupons:read`
@@ -3988,7 +3988,7 @@ def get_coupon_for_coupon_code_with_http_info(
39883988
)
39893989

39903990
_response_types_map: Dict[str, Optional[str]] = {
3991-
'200': "GetCouponResponseCollection",
3991+
'200': "GetCouponResponse",
39923992
'4XX': "GetAccounts4XXResponse",
39933993
'5XX': "GetAccounts4XXResponse",
39943994
}
@@ -4073,7 +4073,7 @@ def get_coupon_for_coupon_code_without_preload_content(
40734073
)
40744074

40754075
_response_types_map: Dict[str, Optional[str]] = {
4076-
'200': "GetCouponResponseCollection",
4076+
'200': "GetCouponResponse",
40774077
'4XX': "GetAccounts4XXResponse",
40784078
'5XX': "GetAccounts4XXResponse",
40794079
}

src/openapi_client/api/events_api.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
from openapi_client.models.get_event_profiles_relationship_list_response import GetEventProfilesRelationshipListResponse
3131
from openapi_client.models.get_event_response_collection_compound_document import GetEventResponseCollectionCompoundDocument
3232
from openapi_client.models.get_event_response_compound_document import GetEventResponseCompoundDocument
33-
from openapi_client.models.get_metric_response_collection import GetMetricResponseCollection
34-
from openapi_client.models.get_profile_response_collection import GetProfileResponseCollection
33+
from openapi_client.models.get_metric_response import GetMetricResponse
34+
from openapi_client.models.get_profile_response import GetProfileResponse
3535

3636
from openapi_client.api_client import ApiClient, RequestSerialized
3737
from openapi_client.api_response import ApiResponse
@@ -1113,7 +1113,7 @@ def get_event_metric(
11131113
_headers: Optional[Dict[StrictStr, Any]] = None,
11141114
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
11151115
options: Dict[str, Any] = {},
1116-
) -> Union[GetMetricResponseCollection, Dict[str, object]]:
1116+
) -> Union[GetMetricResponse, Dict[str, object]]:
11171117
"""Get Event Metric
11181118
11191119
Get the metric for an event with the given event ID.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `events:read` `metrics:read`
@@ -1154,7 +1154,7 @@ def get_event_metric(
11541154
)
11551155

11561156
_response_types_map: Dict[str, Optional[str]] = {
1157-
'200': "GetMetricResponseCollection",
1157+
'200': "GetMetricResponse",
11581158
'4XX': "GetAccounts4XXResponse",
11591159
'5XX': "GetAccounts4XXResponse",
11601160
}
@@ -1199,7 +1199,7 @@ def get_event_metric_with_http_info(
11991199
_headers: Optional[Dict[StrictStr, Any]] = None,
12001200
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
12011201
options: Dict[str, Any] = {},
1202-
) -> ApiResponse[GetMetricResponseCollection]:
1202+
) -> ApiResponse[GetMetricResponse]:
12031203
"""Get Event Metric
12041204
12051205
Get the metric for an event with the given event ID.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `events:read` `metrics:read`
@@ -1240,7 +1240,7 @@ def get_event_metric_with_http_info(
12401240
)
12411241

12421242
_response_types_map: Dict[str, Optional[str]] = {
1243-
'200': "GetMetricResponseCollection",
1243+
'200': "GetMetricResponse",
12441244
'4XX': "GetAccounts4XXResponse",
12451245
'5XX': "GetAccounts4XXResponse",
12461246
}
@@ -1322,7 +1322,7 @@ def get_event_metric_without_preload_content(
13221322
)
13231323

13241324
_response_types_map: Dict[str, Optional[str]] = {
1325-
'200': "GetMetricResponseCollection",
1325+
'200': "GetMetricResponse",
13261326
'4XX': "GetAccounts4XXResponse",
13271327
'5XX': "GetAccounts4XXResponse",
13281328
}
@@ -1442,7 +1442,7 @@ def get_event_profile(
14421442
_headers: Optional[Dict[StrictStr, Any]] = None,
14431443
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
14441444
options: Dict[str, Any] = {},
1445-
) -> Union[GetProfileResponseCollection, Dict[str, object]]:
1445+
) -> Union[GetProfileResponse, Dict[str, object]]:
14461446
"""Get Event Profile
14471447
14481448
Get the profile associated with an event with the given event ID.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `events:read` `profiles:read`
@@ -1486,7 +1486,7 @@ def get_event_profile(
14861486
)
14871487

14881488
_response_types_map: Dict[str, Optional[str]] = {
1489-
'200': "GetProfileResponseCollection",
1489+
'200': "GetProfileResponse",
14901490
'4XX': "GetAccounts4XXResponse",
14911491
'5XX': "GetAccounts4XXResponse",
14921492
}
@@ -1532,7 +1532,7 @@ def get_event_profile_with_http_info(
15321532
_headers: Optional[Dict[StrictStr, Any]] = None,
15331533
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
15341534
options: Dict[str, Any] = {},
1535-
) -> ApiResponse[GetProfileResponseCollection]:
1535+
) -> ApiResponse[GetProfileResponse]:
15361536
"""Get Event Profile
15371537
15381538
Get the profile associated with an event with the given event ID.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `events:read` `profiles:read`
@@ -1576,7 +1576,7 @@ def get_event_profile_with_http_info(
15761576
)
15771577

15781578
_response_types_map: Dict[str, Optional[str]] = {
1579-
'200': "GetProfileResponseCollection",
1579+
'200': "GetProfileResponse",
15801580
'4XX': "GetAccounts4XXResponse",
15811581
'5XX': "GetAccounts4XXResponse",
15821582
}
@@ -1662,7 +1662,7 @@ def get_event_profile_without_preload_content(
16621662
)
16631663

16641664
_response_types_map: Dict[str, Optional[str]] = {
1665-
'200': "GetProfileResponseCollection",
1665+
'200': "GetProfileResponse",
16661666
'4XX': "GetAccounts4XXResponse",
16671667
'5XX': "GetAccounts4XXResponse",
16681668
}

src/openapi_client/api/forms_api.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
from openapi_client.models.get_form_response_compound_document import GetFormResponseCompoundDocument
3131
from openapi_client.models.get_form_version_form_relationship_response import GetFormVersionFormRelationshipResponse
3232
from openapi_client.models.get_form_version_response import GetFormVersionResponse
33+
from openapi_client.models.get_form_version_response_collection import GetFormVersionResponseCollection
3334

3435
from openapi_client.api_client import ApiClient, RequestSerialized
3536
from openapi_client.api_response import ApiResponse
@@ -2141,7 +2142,7 @@ def get_versions_for_form(
21412142
_headers: Optional[Dict[StrictStr, Any]] = None,
21422143
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
21432144
options: Dict[str, Any] = {},
2144-
) -> Union[GetFormVersionResponse, Dict[str, object]]:
2145+
) -> Union[GetFormVersionResponseCollection, Dict[str, object]]:
21452146
"""Get Versions for Form
21462147
21472148
Get the form versions for the given form.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `forms:read`
@@ -2194,7 +2195,7 @@ def get_versions_for_form(
21942195
)
21952196

21962197
_response_types_map: Dict[str, Optional[str]] = {
2197-
'200': "GetFormVersionResponse",
2198+
'200': "GetFormVersionResponseCollection",
21982199
'4XX': "GetAccounts4XXResponse",
21992200
'5XX': "GetAccounts4XXResponse",
22002201
}
@@ -2246,7 +2247,7 @@ def get_versions_for_form_with_http_info(
22462247
_headers: Optional[Dict[StrictStr, Any]] = None,
22472248
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
22482249
options: Dict[str, Any] = {},
2249-
) -> ApiResponse[GetFormVersionResponse]:
2250+
) -> ApiResponse[GetFormVersionResponseCollection]:
22502251
"""Get Versions for Form
22512252
22522253
Get the form versions for the given form.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `forms:read`
@@ -2299,7 +2300,7 @@ def get_versions_for_form_with_http_info(
22992300
)
23002301

23012302
_response_types_map: Dict[str, Optional[str]] = {
2302-
'200': "GetFormVersionResponse",
2303+
'200': "GetFormVersionResponseCollection",
23032304
'4XX': "GetAccounts4XXResponse",
23042305
'5XX': "GetAccounts4XXResponse",
23052306
}
@@ -2400,7 +2401,7 @@ def get_versions_for_form_without_preload_content(
24002401
)
24012402

24022403
_response_types_map: Dict[str, Optional[str]] = {
2403-
'200': "GetFormVersionResponse",
2404+
'200': "GetFormVersionResponseCollection",
24042405
'4XX': "GetAccounts4XXResponse",
24052406
'5XX': "GetAccounts4XXResponse",
24062407
}

src/openapi_client/api/lists_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def create_list(
7676
) -> Union[PostListCreateResponse, Dict[str, object]]:
7777
"""Create List
7878
79-
Create a new list.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m`<br>Daily: `100/d` **Scopes:** `lists:write`
79+
Create a new list.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m`<br>Daily: `150/d` **Scopes:** `lists:write`
8080
8181
:param list_create_query: (required)
8282
:type list_create_query: ListCreateQuery
@@ -158,7 +158,7 @@ def create_list_with_http_info(
158158
) -> ApiResponse[PostListCreateResponse]:
159159
"""Create List
160160
161-
Create a new list.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m`<br>Daily: `100/d` **Scopes:** `lists:write`
161+
Create a new list.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m`<br>Daily: `150/d` **Scopes:** `lists:write`
162162
163163
:param list_create_query: (required)
164164
:type list_create_query: ListCreateQuery
@@ -236,7 +236,7 @@ def create_list_without_preload_content(
236236
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,) -> RESTResponseType:
237237
"""Create List
238238
239-
Create a new list.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m`<br>Daily: `100/d` **Scopes:** `lists:write`
239+
Create a new list.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m`<br>Daily: `150/d` **Scopes:** `lists:write`
240240
241241
:param list_create_query: (required)
242242
:type list_create_query: ListCreateQuery

src/openapi_client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'klaviyo-api-python/12.0.0'
93+
self.user_agent = 'klaviyo-api-python/13.0.0'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
self.options=options

0 commit comments

Comments
 (0)