Skip to content

Commit 0642511

Browse files
chore: regenerate from OpenAPI spec
- Auto-generated SDK updates - Version: v0.0.130
1 parent 6d77074 commit 0642511

823 files changed

Lines changed: 1499 additions & 953 deletions

File tree

Some content is hidden

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Zernio API
44

55
- API version: 1.0.1
66

7-
- Build date: 2026-04-09T14:42:45.727853060Z[Etc/UTC]
7+
- Build date: 2026-04-10T09:29:13.193747949Z[Etc/UTC]
88

99
- Generator version: 7.19.0
1010

api/openapi.yaml

Lines changed: 151 additions & 40 deletions
Large diffs are not rendered by default.

docs/AccountWithFollowerStats.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,17 @@
88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
1010
|**id** | **String** | | [optional] |
11-
|**platform** | **String** | | [optional] |
11+
|**platform** | [**PlatformEnum**](#PlatformEnum) | | [optional] |
1212
|**profileId** | [**SocialAccountProfileId**](SocialAccountProfileId.md) | | [optional] |
1313
|**username** | **String** | | [optional] |
1414
|**displayName** | **String** | | [optional] |
1515
|**profileUrl** | **String** | Full profile URL for the connected account on its platform. | [optional] |
1616
|**isActive** | **Boolean** | | [optional] |
1717
|**followersCount** | **BigDecimal** | Follower count (only included if user has analytics add-on) | [optional] |
1818
|**followersLastUpdated** | **OffsetDateTime** | Last time follower count was updated (only included if user has analytics add-on) | [optional] |
19-
|**adsStatus** | [**AdsStatusEnum**](#AdsStatusEnum) | Ads connection status for this account. - `connected`: Ads are ready to use (same-token platforms like Meta/LinkedIn, or separate ads token is present). - `not_connected`: Platform supports ads but requires a separate ads OAuth. Use `GET /v1/connect/{platform}/ads` to connect. - `not_available`: Platform does not support ads (e.g., YouTube, Reddit, Bluesky). | [optional] |
19+
|**parentAccountId** | **String** | Reference to the parent posting SocialAccount. Set for ads accounts that share or derive from a posting account's OAuth token. null for standalone ads (Google Ads) and all posting accounts. | [optional] |
20+
|**enabled** | **Boolean** | Whether the user explicitly activated this account. false means the account was created as a side effect (e.g., posting account auto-created when user connected ads first). Posting UI and scheduler ignore accounts with enabled: false. | [optional] |
21+
|**adsStatus** | [**AdsStatusEnum**](#AdsStatusEnum) | **Deprecated.** With the new ads account model, ads accounts are separate SocialAccount documents. Check for accounts with ads platform values (metaads, linkedinads, pinterestads, tiktokads, xads, googleads) instead. Legacy behavior: - `connected`: Ads are ready to use (same-token platforms like Meta/LinkedIn, or separate ads token is present). - `not_connected`: Platform supports ads but requires a separate ads OAuth. Use `GET /v1/connect/{platform}/ads` to connect. - `not_available`: Platform does not support ads (e.g., YouTube, Reddit, Bluesky). | [optional] |
2022
|**metadata** | **Object** | Platform-specific metadata. Fields vary by platform. For WhatsApp accounts, includes: - `qualityRating`: Phone number quality rating from Meta (`GREEN`, `YELLOW`, `RED`, or `UNKNOWN`) - `nameStatus`: Display name review status (`APPROVED`, `PENDING_REVIEW`, `DECLINED`, or `NONE`). Messages cannot be sent until the display name is approved by Meta. - `messagingLimitTier`: Maximum unique business-initiated conversations per 24h rolling window (`TIER_250`, `TIER_1K`, `TIER_10K`, `TIER_100K`, or `TIER_UNLIMITED`). Scales automatically as quality rating improves. - `verifiedName`: Meta-verified business display name - `displayPhoneNumber`: Formatted phone number (e.g., \"+1 555-123-4567\") - `wabaId`: WhatsApp Business Account ID - `phoneNumberId`: Meta phone number ID | [optional] |
2123
|**profilePicture** | **String** | | [optional] |
2224
|**currentFollowers** | **BigDecimal** | Current follower count | [optional] |
@@ -28,6 +30,33 @@
2830

2931

3032

33+
## Enum: PlatformEnum
34+
35+
| Name | Value |
36+
|---- | -----|
37+
| TIKTOK | "tiktok" |
38+
| INSTAGRAM | "instagram" |
39+
| FACEBOOK | "facebook" |
40+
| YOUTUBE | "youtube" |
41+
| LINKEDIN | "linkedin" |
42+
| TWITTER | "twitter" |
43+
| THREADS | "threads" |
44+
| PINTEREST | "pinterest" |
45+
| REDDIT | "reddit" |
46+
| BLUESKY | "bluesky" |
47+
| GOOGLEBUSINESS | "googlebusiness" |
48+
| TELEGRAM | "telegram" |
49+
| SNAPCHAT | "snapchat" |
50+
| WHATSAPP | "whatsapp" |
51+
| LINKEDINADS | "linkedinads" |
52+
| METAADS | "metaads" |
53+
| PINTERESTADS | "pinterestads" |
54+
| TIKTOKADS | "tiktokads" |
55+
| XADS | "xads" |
56+
| GOOGLEADS | "googleads" |
57+
58+
59+
3160
## Enum: AdsStatusEnum
3261

3362
| Name | Value |

docs/AccountsApi.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ ApiResponse<[**DeleteAccountGroup200Response**](DeleteAccountGroup200Response.md
177177
178178
Disconnect ads from an account
179179

180-
Disconnects ads from a social account without removing the posting connection. **Same-token platforms** (metaads, linkedinads, pinterestads): Sets an &#x60;adsOptOut&#x60; flag. The posting account and OAuth token are preserved. Reconnecting ads clears the flag. **Separate-token platforms** (tiktokads, xads): Clears the ads-specific metadata (marketing API tokens). The posting account stays intact. **Standalone platforms** (googleads): Do not use this endpoint. Use &#x60;DELETE /v1/accounts/{accountId}&#x60; instead, since Google Ads accounts are standalone.
180+
**Deprecated.** Ads accounts are now standalone SocialAccount documents. Use &#x60;DELETE /v1/accounts/{accountId}&#x60; instead, passing the ads account&#39;s own ID. This endpoint is kept for backward compatibility. It soft-deletes the ads SocialAccount identified by &#x60;accountId&#x60; (which must be an ads account, not a posting account). The parent posting account is left untouched.
181181

182182
### Example
183183

@@ -200,7 +200,7 @@ public class Example {
200200
bearerAuth.setBearerToken("BEARER TOKEN");
201201

202202
AccountsApi apiInstance = new AccountsApi(defaultClient);
203-
String accountId = "accountId_example"; // String | The SocialAccount ID (parent posting account for same-token/separate-token platforms)
203+
String accountId = "accountId_example"; // String | The ads SocialAccount ID to disconnect
204204
DisconnectAdsRequest disconnectAdsRequest = new DisconnectAdsRequest(); // DisconnectAdsRequest |
205205
try {
206206
DeleteAccountGroup200Response result = apiInstance.disconnectAds(accountId, disconnectAdsRequest);
@@ -221,8 +221,8 @@ public class Example {
221221

222222
| Name | Type | Description | Notes |
223223
|------------- | ------------- | ------------- | -------------|
224-
| **accountId** | **String**| The SocialAccount ID (parent posting account for same-token/separate-token platforms) | |
225-
| **disconnectAdsRequest** | [**DisconnectAdsRequest**](DisconnectAdsRequest.md)| | |
224+
| **accountId** | **String**| The ads SocialAccount ID to disconnect | |
225+
| **disconnectAdsRequest** | [**DisconnectAdsRequest**](DisconnectAdsRequest.md)| | [optional] |
226226

227227
### Return type
228228

@@ -252,7 +252,7 @@ public class Example {
252252
253253
Disconnect ads from an account
254254

255-
Disconnects ads from a social account without removing the posting connection. **Same-token platforms** (metaads, linkedinads, pinterestads): Sets an &#x60;adsOptOut&#x60; flag. The posting account and OAuth token are preserved. Reconnecting ads clears the flag. **Separate-token platforms** (tiktokads, xads): Clears the ads-specific metadata (marketing API tokens). The posting account stays intact. **Standalone platforms** (googleads): Do not use this endpoint. Use &#x60;DELETE /v1/accounts/{accountId}&#x60; instead, since Google Ads accounts are standalone.
255+
**Deprecated.** Ads accounts are now standalone SocialAccount documents. Use &#x60;DELETE /v1/accounts/{accountId}&#x60; instead, passing the ads account&#39;s own ID. This endpoint is kept for backward compatibility. It soft-deletes the ads SocialAccount identified by &#x60;accountId&#x60; (which must be an ads account, not a posting account). The parent posting account is left untouched.
256256

257257
### Example
258258

@@ -276,7 +276,7 @@ public class Example {
276276
bearerAuth.setBearerToken("BEARER TOKEN");
277277

278278
AccountsApi apiInstance = new AccountsApi(defaultClient);
279-
String accountId = "accountId_example"; // String | The SocialAccount ID (parent posting account for same-token/separate-token platforms)
279+
String accountId = "accountId_example"; // String | The ads SocialAccount ID to disconnect
280280
DisconnectAdsRequest disconnectAdsRequest = new DisconnectAdsRequest(); // DisconnectAdsRequest |
281281
try {
282282
ApiResponse<DeleteAccountGroup200Response> response = apiInstance.disconnectAdsWithHttpInfo(accountId, disconnectAdsRequest);
@@ -299,8 +299,8 @@ public class Example {
299299

300300
| Name | Type | Description | Notes |
301301
|------------- | ------------- | ------------- | -------------|
302-
| **accountId** | **String**| The SocialAccount ID (parent posting account for same-token/separate-token platforms) | |
303-
| **disconnectAdsRequest** | [**DisconnectAdsRequest**](DisconnectAdsRequest.md)| | |
302+
| **accountId** | **String**| The ads SocialAccount ID to disconnect | |
303+
| **disconnectAdsRequest** | [**DisconnectAdsRequest**](DisconnectAdsRequest.md)| | [optional] |
304304

305305
### Return type
306306

docs/ConnectApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ ApiResponse<[**CompleteTelegramConnect200Response**](CompleteTelegramConnect200R
227227
228228
Connect ads for a platform
229229

230-
Unified ads connection endpoint. Handles all platforms through a single route: **Same-token platforms** (facebook, instagram, linkedin, pinterest): If a posting account already exists, returns &#x60;alreadyConnected: true&#x60; immediately (no extra OAuth needed). If not, starts the normal OAuth flow, and the resulting account supports both posting and ads. **Separate-token platforms** (tiktok, twitter): Requires an existing posting account (&#x60;accountId&#x60; param). If ads are already connected, returns &#x60;alreadyConnected: true&#x60;. Otherwise, starts the platform-specific marketing API OAuth flow. **Ads-only platforms** (googleads): If a Google Ads account exists, returns &#x60;alreadyConnected: true&#x60;. Otherwise, starts the Google Ads OAuth flow. Use the &#x60;adsStatus&#x60; field from &#x60;GET /v1/accounts&#x60; to check which accounts need ads connection.
230+
Unified ads connection endpoint. Creates a dedicated ads SocialAccount for the specified platform. **Same-token platforms** (facebook, instagram, linkedin, pinterest): Creates an ads SocialAccount (&#x60;metaads&#x60;, &#x60;linkedinads&#x60;, &#x60;pinterestads&#x60;) with a copied OAuth token from the parent posting account. If the ads account already exists, returns &#x60;alreadyConnected: true&#x60;. No extra OAuth needed. **Separate-token platforms** (tiktok, twitter): Starts the platform-specific marketing API OAuth flow and creates an ads SocialAccount (&#x60;tiktokads&#x60;, &#x60;xads&#x60;) with its own token. Requires an existing posting account (&#x60;accountId&#x60; param). If the ads account already exists, returns &#x60;alreadyConnected: true&#x60;. **Standalone platforms** (googleads): Starts the Google Ads OAuth flow and creates a standalone ads SocialAccount (&#x60;googleads&#x60;) with no parent. If the account already exists, returns &#x60;alreadyConnected: true&#x60;. Ads accounts appear as regular SocialAccount documents with ads platform values (e.g., &#x60;metaads&#x60;, &#x60;tiktokads&#x60;) in &#x60;GET /v1/accounts&#x60;.
231231

232232
### Example
233233

@@ -252,7 +252,7 @@ public class Example {
252252
ConnectApi apiInstance = new ConnectApi(defaultClient);
253253
String platform = "facebook"; // String | Platform to connect ads for. Only platforms with ads support are accepted.
254254
String profileId = "profileId_example"; // String | Your Zernio profile ID
255-
String accountId = "accountId_example"; // String | Existing SocialAccount ID. Required for separate-token platforms (tiktok, twitter). Ignored for same-token and ads-only platforms.
255+
String accountId = "accountId_example"; // String | Existing SocialAccount ID. Required for separate-token platforms (tiktok, twitter). Ignored for same-token and standalone platforms.
256256
URI redirectUrl = new URI(); // URI | Custom redirect URL after OAuth completes (same-token platforms only)
257257
Boolean headless = false; // Boolean | Enable headless mode (same-token platforms only)
258258
try {
@@ -276,7 +276,7 @@ public class Example {
276276
|------------- | ------------- | ------------- | -------------|
277277
| **platform** | **String**| Platform to connect ads for. Only platforms with ads support are accepted. | [enum: facebook, instagram, linkedin, tiktok, twitter, pinterest, googleads] |
278278
| **profileId** | **String**| Your Zernio profile ID | |
279-
| **accountId** | **String**| Existing SocialAccount ID. Required for separate-token platforms (tiktok, twitter). Ignored for same-token and ads-only platforms. | [optional] |
279+
| **accountId** | **String**| Existing SocialAccount ID. Required for separate-token platforms (tiktok, twitter). Ignored for same-token and standalone platforms. | [optional] |
280280
| **redirectUrl** | **URI**| Custom redirect URL after OAuth completes (same-token platforms only) | [optional] |
281281
| **headless** | **Boolean**| Enable headless mode (same-token platforms only) | [optional] [default to false] |
282282

@@ -309,7 +309,7 @@ public class Example {
309309
310310
Connect ads for a platform
311311

312-
Unified ads connection endpoint. Handles all platforms through a single route: **Same-token platforms** (facebook, instagram, linkedin, pinterest): If a posting account already exists, returns &#x60;alreadyConnected: true&#x60; immediately (no extra OAuth needed). If not, starts the normal OAuth flow, and the resulting account supports both posting and ads. **Separate-token platforms** (tiktok, twitter): Requires an existing posting account (&#x60;accountId&#x60; param). If ads are already connected, returns &#x60;alreadyConnected: true&#x60;. Otherwise, starts the platform-specific marketing API OAuth flow. **Ads-only platforms** (googleads): If a Google Ads account exists, returns &#x60;alreadyConnected: true&#x60;. Otherwise, starts the Google Ads OAuth flow. Use the &#x60;adsStatus&#x60; field from &#x60;GET /v1/accounts&#x60; to check which accounts need ads connection.
312+
Unified ads connection endpoint. Creates a dedicated ads SocialAccount for the specified platform. **Same-token platforms** (facebook, instagram, linkedin, pinterest): Creates an ads SocialAccount (&#x60;metaads&#x60;, &#x60;linkedinads&#x60;, &#x60;pinterestads&#x60;) with a copied OAuth token from the parent posting account. If the ads account already exists, returns &#x60;alreadyConnected: true&#x60;. No extra OAuth needed. **Separate-token platforms** (tiktok, twitter): Starts the platform-specific marketing API OAuth flow and creates an ads SocialAccount (&#x60;tiktokads&#x60;, &#x60;xads&#x60;) with its own token. Requires an existing posting account (&#x60;accountId&#x60; param). If the ads account already exists, returns &#x60;alreadyConnected: true&#x60;. **Standalone platforms** (googleads): Starts the Google Ads OAuth flow and creates a standalone ads SocialAccount (&#x60;googleads&#x60;) with no parent. If the account already exists, returns &#x60;alreadyConnected: true&#x60;. Ads accounts appear as regular SocialAccount documents with ads platform values (e.g., &#x60;metaads&#x60;, &#x60;tiktokads&#x60;) in &#x60;GET /v1/accounts&#x60;.
313313

314314
### Example
315315

@@ -335,7 +335,7 @@ public class Example {
335335
ConnectApi apiInstance = new ConnectApi(defaultClient);
336336
String platform = "facebook"; // String | Platform to connect ads for. Only platforms with ads support are accepted.
337337
String profileId = "profileId_example"; // String | Your Zernio profile ID
338-
String accountId = "accountId_example"; // String | Existing SocialAccount ID. Required for separate-token platforms (tiktok, twitter). Ignored for same-token and ads-only platforms.
338+
String accountId = "accountId_example"; // String | Existing SocialAccount ID. Required for separate-token platforms (tiktok, twitter). Ignored for same-token and standalone platforms.
339339
URI redirectUrl = new URI(); // URI | Custom redirect URL after OAuth completes (same-token platforms only)
340340
Boolean headless = false; // Boolean | Enable headless mode (same-token platforms only)
341341
try {
@@ -361,7 +361,7 @@ public class Example {
361361
|------------- | ------------- | ------------- | -------------|
362362
| **platform** | **String**| Platform to connect ads for. Only platforms with ads support are accepted. | [enum: facebook, instagram, linkedin, tiktok, twitter, pinterest, googleads] |
363363
| **profileId** | **String**| Your Zernio profile ID | |
364-
| **accountId** | **String**| Existing SocialAccount ID. Required for separate-token platforms (tiktok, twitter). Ignored for same-token and ads-only platforms. | [optional] |
364+
| **accountId** | **String**| Existing SocialAccount ID. Required for separate-token platforms (tiktok, twitter). Ignored for same-token and standalone platforms. | [optional] |
365365
| **redirectUrl** | **URI**| Custom redirect URL after OAuth completes (same-token platforms only) | [optional] |
366366
| **headless** | **Boolean**| Enable headless mode (same-token platforms only) | [optional] [default to false] |
367367

docs/DisconnectAdsRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
10-
|**adsPlatform** | [**AdsPlatformEnum**](#AdsPlatformEnum) | The ads platform to disconnect | |
10+
|**adsPlatform** | [**AdsPlatformEnum**](#AdsPlatformEnum) | The ads platform (optional, used for logging only) | [optional] |
1111

1212

1313

0 commit comments

Comments
 (0)