Skip to content

Commit af16c7a

Browse files
chore: regenerate from OpenAPI spec
- Auto-generated SDK updates - Version: 1.3.119
1 parent 13b0b0e commit af16c7a

6 files changed

Lines changed: 28 additions & 23 deletions

File tree

‎openapi.yaml‎

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2984,6 +2984,7 @@ components:
29842984
createdAt: { type: string, format: date-time }
29852985
SocialAccount:
29862986
type: object
2987+
required: [_id, platform, profileId, isActive]
29872988
properties:
29882989
_id: { type: string }
29892990
platform:
@@ -8580,6 +8581,7 @@ paths:
85808581
application/json:
85818582
schema:
85828583
type: object
8584+
required: [accounts, hasAnalyticsAccess]
85838585
properties:
85848586
accounts:
85858587
type: array
@@ -19818,7 +19820,8 @@ paths:
1981819820
description: |
1981919821
Returns a paginated list of ads with metrics computed over an optional date range.
1982019822
Use source=all to include externally-synced ads from platform ad managers.
19821-
If no date range is provided, defaults to the last 90 days. Date range is capped at 90 days max.
19823+
If no date range is provided, defaults to the last 90 days. Date range is capped at 730 days max.
19824+
Ranges older than 90 days trigger a one-time on-demand fetch from the platform when scoped to a specific accountId, then serve from cache on subsequent requests.
1982219825
security:
1982319826
- bearerAuth: []
1982419827
parameters:
@@ -19831,8 +19834,8 @@ paths:
1983119834
- { name: adAccountId, in: query, schema: { type: string }, description: "Platform ad account ID (e.g. act_123 for Meta). Mirrors the same filter on /v1/ads/campaigns and /v1/ads/tree." }
1983219835
- { name: profileId, in: query, schema: { type: string }, description: Profile ID }
1983319836
- { name: campaignId, in: query, schema: { type: string }, description: Platform campaign ID (filter ads within a campaign) }
19834-
- { name: fromDate, in: query, schema: { type: string, format: date }, description: "Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago." }
19835-
- { name: toDate, in: query, schema: { type: string, format: date }, description: "End of metrics date range (YYYY-MM-DD). Defaults to today. Max 90-day range." }
19837+
- { name: fromDate, in: query, schema: { type: string, format: date }, description: "Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch when scoped to a specific accountId." }
19838+
- { name: toDate, in: query, schema: { type: string, format: date }, description: "End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range." }
1983619839
responses:
1983719840
'200':
1983819841
description: Paginated ads
@@ -20271,7 +20274,8 @@ paths:
2027120274
Metrics are computed over an optional date range, then rolled up from ad level to ad set
2027220275
and campaign levels. Pagination is at the campaign level. Ads without a campaign or ad set
2027320276
ID are grouped into synthetic "Ungrouped" buckets.
20274-
If no date range is provided, defaults to the last 90 days. Date range is capped at 90 days max.
20277+
If no date range is provided, defaults to the last 90 days. Date range is capped at 730 days max.
20278+
Ranges older than 90 days trigger a one-time on-demand fetch from the platform when scoped to a specific accountId, then serve from cache on subsequent requests.
2027520279
security:
2027620280
- bearerAuth: []
2027720281
parameters:
@@ -20283,8 +20287,8 @@ paths:
2028320287
- { name: adAccountId, in: query, schema: { type: string }, description: Platform ad account ID }
2028420288
- { name: accountId, in: query, schema: { type: string }, description: Social account ID }
2028520289
- { name: profileId, in: query, schema: { type: string }, description: Profile ID }
20286-
- { name: fromDate, in: query, schema: { type: string, format: date }, description: "Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago." }
20287-
- { name: toDate, in: query, schema: { type: string, format: date }, description: "End of metrics date range (YYYY-MM-DD). Defaults to today. Max 90-day range." }
20290+
- { name: fromDate, in: query, schema: { type: string, format: date }, description: "Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch when scoped to a specific accountId." }
20291+
- { name: toDate, in: query, schema: { type: string, format: date }, description: "End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range." }
2028820292
responses:
2028920293
'200':
2029020294
description: Nested campaign tree with pagination
@@ -20434,13 +20438,14 @@ paths:
2043420438
description: |
2043520439
Returns detailed performance analytics for an ad. Includes summary metrics, a daily timeline
2043620440
over the requested date range, and optional demographic breakdowns (Meta and TikTok only).
20437-
If no date range is provided, defaults to the last 90 days. Date range is capped at 90 days max.
20441+
If no date range is provided, defaults to the last 90 days. Date range is capped at 730 days max.
20442+
Ranges older than 90 days trigger a one-time on-demand fetch from the platform, then serve from cache on subsequent requests.
2043820443
security:
2043920444
- bearerAuth: []
2044020445
parameters:
2044120446
- { name: adId, in: path, required: true, schema: { type: string } }
20442-
- { name: fromDate, in: query, schema: { type: string, format: date }, description: "Start of date range (YYYY-MM-DD). Defaults to 90 days ago." }
20443-
- { name: toDate, in: query, schema: { type: string, format: date }, description: "End of date range (YYYY-MM-DD). Defaults to today. Max 90-day range." }
20447+
- { name: fromDate, in: query, schema: { type: string, format: date }, description: "Start of date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch." }
20448+
- { name: toDate, in: query, schema: { type: string, format: date }, description: "End of date range (YYYY-MM-DD). Defaults to today. Max 730-day range." }
2044420449
- name: breakdowns
2044520450
in: query
2044620451
schema: { type: string }

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "zernio-sdk"
3-
version = "1.3.118"
3+
version = "1.3.119"
44
description = "The official Python library for the Zernio API"
55
readme = "README.md"
66
requires-python = ">=3.10"

‎src/late/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
Visibility,
4343
)
4444

45-
__version__ = "1.3.118"
45+
__version__ = "1.3.119"
4646

4747
__all__ = [
4848
# Client

‎src/late/mcp/generated_tools.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,8 +1171,8 @@ def ad_campaigns_get_ad_tree(
11711171
ad_account_id: Platform ad account ID
11721172
account_id: Social account ID
11731173
profile_id: Profile ID
1174-
from_date: Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago.
1175-
to_date: End of metrics date range (YYYY-MM-DD). Defaults to today. Max 90-day range."""
1174+
from_date: Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch when scoped to a specific accountId.
1175+
to_date: End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range."""
11761176
client = _get_client()
11771177
try:
11781178
response = client.ad_campaigns.get_ad_tree(
@@ -1219,8 +1219,8 @@ def ads_list_ads(
12191219
ad_account_id: Platform ad account ID (e.g. act_123 for Meta). Mirrors the same filter on /v1/ads/campaigns and /v1/ads/tree.
12201220
profile_id: Profile ID
12211221
campaign_id: Platform campaign ID (filter ads within a campaign)
1222-
from_date: Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago.
1223-
to_date: End of metrics date range (YYYY-MM-DD). Defaults to today. Max 90-day range."""
1222+
from_date: Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch when scoped to a specific accountId.
1223+
to_date: End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range."""
12241224
client = _get_client()
12251225
try:
12261226
response = client.ads.list_ads(
@@ -1313,8 +1313,8 @@ def ads_get_ad_analytics(
13131313
13141314
Args:
13151315
ad_id: (required)
1316-
from_date: Start of date range (YYYY-MM-DD). Defaults to 90 days ago.
1317-
to_date: End of date range (YYYY-MM-DD). Defaults to today. Max 90-day range.
1316+
from_date: Start of date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch.
1317+
to_date: End of date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
13181318
breakdowns: Comma-separated breakdown dimensions. Meta: age, gender, country, publisher_platform, device_platform, region. TikTok: gender, age, country_code, platform, ac, language."""
13191319
client = _get_client()
13201320
try:

‎src/late/models/_generated/models.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: openapi.yaml
3-
# timestamp: 2026-05-05T07:13:26+00:00
3+
# timestamp: 2026-05-06T13:44:11+00:00
44

55
from __future__ import annotations
66

@@ -2885,9 +2885,9 @@ class Platform7(Enum):
28852885

28862886

28872887
class SocialAccount(BaseModel):
2888-
field_id: Annotated[str | None, Field(alias="_id")] = None
2889-
platform: Platform7 | None = None
2890-
profileId: str | Profile | None = None
2888+
field_id: Annotated[str, Field(alias="_id")]
2889+
platform: Platform7
2890+
profileId: str | Profile
28912891
username: str | None = None
28922892
displayName: str | None = None
28932893
profilePicture: str | None = None
@@ -2898,7 +2898,7 @@ class SocialAccount(BaseModel):
28982898
"""
28992899
Full profile URL for the connected account on its platform.
29002900
"""
2901-
isActive: bool | None = None
2901+
isActive: bool
29022902
followersCount: float | None = None
29032903
"""
29042904
Follower count (only included if user has analytics add-on)

‎uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)