Skip to content

Commit e6336c0

Browse files
klaviyo-sdkklaviyo-sdk
andauthored
version 22.0.0 (#96)
Co-authored-by: klaviyo-sdk <klaviyo-sdk@klaviyo.com>
1 parent 3b0e08a commit e6336c0

File tree

52 files changed

+3663
-2865
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3663
-2865
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+
## [22.0.0] - revision 2026-01-15
11+
### Added
12+
- Added a new [single data source record create endpoint](https://github.com/klaviyo/klaviyo-api-python?tab=readme-ov-file#create-data-source-record) for one-at-a-time ingestion workloads
13+
### Changed
14+
- **Breaking:** removed `anonymous_id` from profile payloads
15+
1016
## [21.0.0] - revision 2025-10-15
1117
### Added
1218
#### Flow Actions API

README.md

Lines changed: 315 additions & 298 deletions
Large diffs are not rendered by default.

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 = "21.0.0"
3+
version = "22.0.0"
44
description = "Klaviyo API"
55
authors = ["Klaviyo Developer Experience Team <developers@klaviyo.com>"]
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 = 21.0.0
3+
version = 22.0.0
44
author = Klaviyo Developers
55
author_email = developers@klaviyo.com
66
description = Klaviyo Python SDK

src/klaviyo_api/wrapper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class KlaviyoAPI:
1919
options: Dict[str, Any] = field(default_factory=dict)
2020

2121

22-
_REVISION = "2025-10-15"
22+
_REVISION = "2026-01-15"
2323

2424
_STATUS_CODE_CONNECTION_RESET_BY_PEER = 104
2525
_STATUS_CODE_TOO_MANY_REQUESTS = 429
@@ -321,6 +321,8 @@ def Custom_Objects(self):
321321
Custom_Objects.bulk_create_data_source_records=self._page_cursor_update(self.retry_logic(Custom_Objects.bulk_create_data_source_records))
322322
Custom_Objects.create_data_source_record_bulk_create_job=self._page_cursor_update(self.retry_logic(Custom_Objects.create_data_source_record_bulk_create_job))
323323
Custom_Objects.create_data_source=self._page_cursor_update(self.retry_logic(Custom_Objects.create_data_source))
324+
Custom_Objects.create_data_source_record=self._page_cursor_update(self.retry_logic(Custom_Objects.create_data_source_record))
325+
Custom_Objects.create_data_source_record_create_job=self._page_cursor_update(self.retry_logic(Custom_Objects.create_data_source_record_create_job))
324326
Custom_Objects.delete_data_source=self._page_cursor_update(self.retry_logic(Custom_Objects.delete_data_source))
325327
Custom_Objects.get_data_source=self._page_cursor_update(self.retry_logic(Custom_Objects.get_data_source))
326328
Custom_Objects.get_data_sources=self._page_cursor_update(self.retry_logic(Custom_Objects.get_data_sources))

src/openapi_client/__init__.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "21.0.0"
17+
__version__ = "22.0.0"
1818

1919
from typing import TYPE_CHECKING
2020

@@ -285,6 +285,11 @@
285285
from openapi_client.models.data_source_record_bulk_create_job_create_query_resource_object_relationships_data_source import DataSourceRecordBulkCreateJobCreateQueryResourceObjectRelationshipsDataSource
286286
from openapi_client.models.data_source_record_bulk_create_job_create_query_resource_object_relationships_data_source_data import DataSourceRecordBulkCreateJobCreateQueryResourceObjectRelationshipsDataSourceData
287287
from openapi_client.models.data_source_record_bulk_create_job_enum import DataSourceRecordBulkCreateJobEnum
288+
from openapi_client.models.data_source_record_create_job_create_query import DataSourceRecordCreateJobCreateQuery
289+
from openapi_client.models.data_source_record_create_job_create_query_resource_object import DataSourceRecordCreateJobCreateQueryResourceObject
290+
from openapi_client.models.data_source_record_create_job_create_query_resource_object_attributes import DataSourceRecordCreateJobCreateQueryResourceObjectAttributes
291+
from openapi_client.models.data_source_record_create_job_create_query_resource_object_attributes_data_source_record import DataSourceRecordCreateJobCreateQueryResourceObjectAttributesDataSourceRecord
292+
from openapi_client.models.data_source_record_create_job_enum import DataSourceRecordCreateJobEnum
288293
from openapi_client.models.data_source_record_enum import DataSourceRecordEnum
289294
from openapi_client.models.data_source_record_resource_object import DataSourceRecordResourceObject
290295
from openapi_client.models.data_source_record_resource_object_attributes import DataSourceRecordResourceObjectAttributes
@@ -755,6 +760,7 @@
755760
from openapi_client.models.list_members_delete_query import ListMembersDeleteQuery
756761
from openapi_client.models.list_partial_update_query import ListPartialUpdateQuery
757762
from openapi_client.models.list_partial_update_query_resource_object import ListPartialUpdateQueryResourceObject
763+
from openapi_client.models.list_partial_update_query_resource_object_attributes import ListPartialUpdateQueryResourceObjectAttributes
758764
from openapi_client.models.list_response_object_resource import ListResponseObjectResource
759765
from openapi_client.models.list_retrieve_response_object_resource_attributes import ListRetrieveResponseObjectResourceAttributes
760766
from openapi_client.models.list_retrieve_response_object_resource_extended import ListRetrieveResponseObjectResourceExtended
@@ -988,7 +994,6 @@
988994
from openapi_client.models.profile_meta_patch_properties import ProfileMetaPatchProperties
989995
from openapi_client.models.profile_partial_update_query import ProfilePartialUpdateQuery
990996
from openapi_client.models.profile_partial_update_query_resource_object import ProfilePartialUpdateQueryResourceObject
991-
from openapi_client.models.profile_partial_update_query_resource_object_attributes import ProfilePartialUpdateQueryResourceObjectAttributes
992997
from openapi_client.models.profile_response_object_resource import ProfileResponseObjectResource
993998
from openapi_client.models.profile_response_object_resource_attributes import ProfileResponseObjectResourceAttributes
994999
from openapi_client.models.profile_response_object_resource_extended import ProfileResponseObjectResourceExtended
@@ -1482,6 +1487,11 @@
14821487
"DataSourceRecordBulkCreateJobCreateQueryResourceObjectRelationshipsDataSource": "openapi_client.models.data_source_record_bulk_create_job_create_query_resource_object_relationships_data_source",
14831488
"DataSourceRecordBulkCreateJobCreateQueryResourceObjectRelationshipsDataSourceData": "openapi_client.models.data_source_record_bulk_create_job_create_query_resource_object_relationships_data_source_data",
14841489
"DataSourceRecordBulkCreateJobEnum": "openapi_client.models.data_source_record_bulk_create_job_enum",
1490+
"DataSourceRecordCreateJobCreateQuery": "openapi_client.models.data_source_record_create_job_create_query",
1491+
"DataSourceRecordCreateJobCreateQueryResourceObject": "openapi_client.models.data_source_record_create_job_create_query_resource_object",
1492+
"DataSourceRecordCreateJobCreateQueryResourceObjectAttributes": "openapi_client.models.data_source_record_create_job_create_query_resource_object_attributes",
1493+
"DataSourceRecordCreateJobCreateQueryResourceObjectAttributesDataSourceRecord": "openapi_client.models.data_source_record_create_job_create_query_resource_object_attributes_data_source_record",
1494+
"DataSourceRecordCreateJobEnum": "openapi_client.models.data_source_record_create_job_enum",
14851495
"DataSourceRecordEnum": "openapi_client.models.data_source_record_enum",
14861496
"DataSourceRecordResourceObject": "openapi_client.models.data_source_record_resource_object",
14871497
"DataSourceRecordResourceObjectAttributes": "openapi_client.models.data_source_record_resource_object_attributes",
@@ -1952,6 +1962,7 @@
19521962
"ListMembersDeleteQuery": "openapi_client.models.list_members_delete_query",
19531963
"ListPartialUpdateQuery": "openapi_client.models.list_partial_update_query",
19541964
"ListPartialUpdateQueryResourceObject": "openapi_client.models.list_partial_update_query_resource_object",
1965+
"ListPartialUpdateQueryResourceObjectAttributes": "openapi_client.models.list_partial_update_query_resource_object_attributes",
19551966
"ListResponseObjectResource": "openapi_client.models.list_response_object_resource",
19561967
"ListRetrieveResponseObjectResourceAttributes": "openapi_client.models.list_retrieve_response_object_resource_attributes",
19571968
"ListRetrieveResponseObjectResourceExtended": "openapi_client.models.list_retrieve_response_object_resource_extended",
@@ -2185,7 +2196,6 @@
21852196
"ProfileMetaPatchProperties": "openapi_client.models.profile_meta_patch_properties",
21862197
"ProfilePartialUpdateQuery": "openapi_client.models.profile_partial_update_query",
21872198
"ProfilePartialUpdateQueryResourceObject": "openapi_client.models.profile_partial_update_query_resource_object",
2188-
"ProfilePartialUpdateQueryResourceObjectAttributes": "openapi_client.models.profile_partial_update_query_resource_object_attributes",
21892199
"ProfileResponseObjectResource": "openapi_client.models.profile_response_object_resource",
21902200
"ProfileResponseObjectResourceAttributes": "openapi_client.models.profile_response_object_resource_attributes",
21912201
"ProfileResponseObjectResourceExtended": "openapi_client.models.profile_response_object_resource_extended",

src/openapi_client/api/accounts_api.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(self, api_client=None) -> None:
4949
def get_account(
5050
self,
5151
id: Annotated[StrictStr, Field(description="The ID of the account")],
52-
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets")] = None,
52+
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2026-01-15/reference/api-overview#sparse-fieldsets")] = None,
5353
_request_timeout: Union[
5454
None,
5555
Annotated[StrictFloat, Field(gt=0)],
@@ -70,7 +70,7 @@ def get_account(
7070
7171
:param id: The ID of the account (required)
7272
:type id: str
73-
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets
73+
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2026-01-15/reference/api-overview#sparse-fieldsets
7474
:type fields_account: List[str]
7575
:param _request_timeout: timeout setting for this request. If one
7676
number provided, it will be total request
@@ -135,7 +135,7 @@ def get_account(
135135
def get_account_with_http_info(
136136
self,
137137
id: Annotated[StrictStr, Field(description="The ID of the account")],
138-
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets")] = None,
138+
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2026-01-15/reference/api-overview#sparse-fieldsets")] = None,
139139
_request_timeout: Union[
140140
None,
141141
Annotated[StrictFloat, Field(gt=0)],
@@ -156,7 +156,7 @@ def get_account_with_http_info(
156156
157157
:param id: The ID of the account (required)
158158
:type id: str
159-
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets
159+
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2026-01-15/reference/api-overview#sparse-fieldsets
160160
:type fields_account: List[str]
161161
:param _request_timeout: timeout setting for this request. If one
162162
number provided, it will be total request
@@ -219,7 +219,7 @@ def get_account_with_http_info(
219219
def get_account_without_preload_content(
220220
self,
221221
id: Annotated[StrictStr, Field(description="The ID of the account")],
222-
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets")] = None,
222+
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2026-01-15/reference/api-overview#sparse-fieldsets")] = None,
223223
_request_timeout: Union[
224224
None,
225225
Annotated[StrictFloat, Field(gt=0)],
@@ -238,7 +238,7 @@ def get_account_without_preload_content(
238238
239239
:param id: The ID of the account (required)
240240
:type id: str
241-
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets
241+
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2026-01-15/reference/api-overview#sparse-fieldsets
242242
:type fields_account: List[str]
243243
:param _request_timeout: timeout setting for this request. If one
244244
number provided, it will be total request
@@ -376,7 +376,7 @@ def _get_account_serialize(
376376
@validate_call
377377
def get_accounts(
378378
self,
379-
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets")] = None,
379+
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2026-01-15/reference/api-overview#sparse-fieldsets")] = None,
380380
_request_timeout: Union[
381381
None,
382382
Annotated[StrictFloat, Field(gt=0)],
@@ -395,7 +395,7 @@ def get_accounts(
395395
396396
Retrieve the account(s) associated with a given private API key. This will return 1 account object within the array. You can use this to retrieve account-specific data (contact information, timezone, currency, Public API key, etc.) or test if a Private API Key belongs to the correct account prior to performing subsequent actions with the API.<br><br>*Rate limits*:<br>Burst: `1/s`<br>Steady: `15/m` **Scopes:** `accounts:read`
397397
398-
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets
398+
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2026-01-15/reference/api-overview#sparse-fieldsets
399399
:type fields_account: List[str]
400400
:param _request_timeout: timeout setting for this request. If one
401401
number provided, it will be total request
@@ -458,7 +458,7 @@ def get_accounts(
458458
@validate_call
459459
def get_accounts_with_http_info(
460460
self,
461-
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets")] = None,
461+
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2026-01-15/reference/api-overview#sparse-fieldsets")] = None,
462462
_request_timeout: Union[
463463
None,
464464
Annotated[StrictFloat, Field(gt=0)],
@@ -477,7 +477,7 @@ def get_accounts_with_http_info(
477477
478478
Retrieve the account(s) associated with a given private API key. This will return 1 account object within the array. You can use this to retrieve account-specific data (contact information, timezone, currency, Public API key, etc.) or test if a Private API Key belongs to the correct account prior to performing subsequent actions with the API.<br><br>*Rate limits*:<br>Burst: `1/s`<br>Steady: `15/m` **Scopes:** `accounts:read`
479479
480-
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets
480+
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2026-01-15/reference/api-overview#sparse-fieldsets
481481
:type fields_account: List[str]
482482
:param _request_timeout: timeout setting for this request. If one
483483
number provided, it will be total request
@@ -538,7 +538,7 @@ def get_accounts_with_http_info(
538538
@validate_call
539539
def get_accounts_without_preload_content(
540540
self,
541-
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets")] = None,
541+
fields_account: Annotated[Optional[List[StrictStr]], Field(description="For more information please visit https://developers.klaviyo.com/en/v2026-01-15/reference/api-overview#sparse-fieldsets")] = None,
542542
_request_timeout: Union[
543543
None,
544544
Annotated[StrictFloat, Field(gt=0)],
@@ -555,7 +555,7 @@ def get_accounts_without_preload_content(
555555
556556
Retrieve the account(s) associated with a given private API key. This will return 1 account object within the array. You can use this to retrieve account-specific data (contact information, timezone, currency, Public API key, etc.) or test if a Private API Key belongs to the correct account prior to performing subsequent actions with the API.<br><br>*Rate limits*:<br>Burst: `1/s`<br>Steady: `15/m` **Scopes:** `accounts:read`
557557
558-
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2025-10-15/reference/api-overview#sparse-fieldsets
558+
:param fields_account: For more information please visit https://developers.klaviyo.com/en/v2026-01-15/reference/api-overview#sparse-fieldsets
559559
:type fields_account: List[str]
560560
:param _request_timeout: timeout setting for this request. If one
561561
number provided, it will be total request

0 commit comments

Comments
 (0)