Skip to content

Commit f972143

Browse files
chore: regenerate from OpenAPI spec
- Auto-generated SDK updates - Version: v0.0.141
1 parent 8cada5d commit f972143

784 files changed

Lines changed: 2887 additions & 15624 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.

.openapi-generator/FILES

Lines changed: 6 additions & 132 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 3 additions & 119 deletions
Large diffs are not rendered by default.

api/openapi.yaml

Lines changed: 124 additions & 3425 deletions
Large diffs are not rendered by default.

docs/AccountWithFollowerStats.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
|**followersLastUpdated** | **OffsetDateTime** | Last time follower count was updated (only included if user has analytics add-on) | [optional] |
1919
|**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] |
2020
|**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] |
2221
|**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] |
2322
|**profilePicture** | **String** | | [optional] |
2423
|**currentFollowers** | **BigDecimal** | Current follower count | [optional] |
@@ -58,13 +57,3 @@
5857

5958

6059

61-
## Enum: AdsStatusEnum
62-
63-
| Name | Value |
64-
|---- | -----|
65-
| CONNECTED | "connected" |
66-
| NOT_CONNECTED | "not_connected" |
67-
| NOT_AVAILABLE | "not_available" |
68-
69-
70-

docs/AccountsApi.md

Lines changed: 0 additions & 156 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ All URIs are relative to *https://zernio.com/api*
66
|------------- | ------------- | -------------|
77
| [**deleteAccount**](AccountsApi.md#deleteAccount) | **DELETE** /v1/accounts/{accountId} | Disconnect account |
88
| [**deleteAccountWithHttpInfo**](AccountsApi.md#deleteAccountWithHttpInfo) | **DELETE** /v1/accounts/{accountId} | Disconnect account |
9-
| [**disconnectAds**](AccountsApi.md#disconnectAds) | **POST** /v1/accounts/{accountId}/disconnect-ads | Disconnect ads from an account |
10-
| [**disconnectAdsWithHttpInfo**](AccountsApi.md#disconnectAdsWithHttpInfo) | **POST** /v1/accounts/{accountId}/disconnect-ads | Disconnect ads from an account |
119
| [**getAccountHealth**](AccountsApi.md#getAccountHealth) | **GET** /v1/accounts/{accountId}/health | Check account health |
1210
| [**getAccountHealthWithHttpInfo**](AccountsApi.md#getAccountHealthWithHttpInfo) | **GET** /v1/accounts/{accountId}/health | Check account health |
1311
| [**getAllAccountsHealth**](AccountsApi.md#getAllAccountsHealth) | **GET** /v1/accounts/health | Check accounts health |
@@ -171,160 +169,6 @@ ApiResponse<[**DeleteAccountGroup200Response**](DeleteAccountGroup200Response.md
171169
| **404** | Resource not found | - |
172170

173171

174-
## disconnectAds
175-
176-
> DeleteAccountGroup200Response disconnectAds(accountId, disconnectAdsRequest)
177-
178-
Disconnect ads from an account
179-
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.
181-
182-
### Example
183-
184-
```java
185-
// Import classes:
186-
import dev.zernio.ApiClient;
187-
import dev.zernio.ApiException;
188-
import dev.zernio.Configuration;
189-
import dev.zernio.auth.*;
190-
import dev.zernio.models.*;
191-
import dev.zernio.api.AccountsApi;
192-
193-
public class Example {
194-
public static void main(String[] args) {
195-
ApiClient defaultClient = Configuration.getDefaultApiClient();
196-
defaultClient.setBasePath("https://zernio.com/api");
197-
198-
// Configure HTTP bearer authorization: bearerAuth
199-
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
200-
bearerAuth.setBearerToken("BEARER TOKEN");
201-
202-
AccountsApi apiInstance = new AccountsApi(defaultClient);
203-
String accountId = "accountId_example"; // String | The ads SocialAccount ID to disconnect
204-
DisconnectAdsRequest disconnectAdsRequest = new DisconnectAdsRequest(); // DisconnectAdsRequest |
205-
try {
206-
DeleteAccountGroup200Response result = apiInstance.disconnectAds(accountId, disconnectAdsRequest);
207-
System.out.println(result);
208-
} catch (ApiException e) {
209-
System.err.println("Exception when calling AccountsApi#disconnectAds");
210-
System.err.println("Status code: " + e.getCode());
211-
System.err.println("Reason: " + e.getResponseBody());
212-
System.err.println("Response headers: " + e.getResponseHeaders());
213-
e.printStackTrace();
214-
}
215-
}
216-
}
217-
```
218-
219-
### Parameters
220-
221-
222-
| Name | Type | Description | Notes |
223-
|------------- | ------------- | ------------- | -------------|
224-
| **accountId** | **String**| The ads SocialAccount ID to disconnect | |
225-
| **disconnectAdsRequest** | [**DisconnectAdsRequest**](DisconnectAdsRequest.md)| | [optional] |
226-
227-
### Return type
228-
229-
[**DeleteAccountGroup200Response**](DeleteAccountGroup200Response.md)
230-
231-
232-
### Authorization
233-
234-
[bearerAuth](../README.md#bearerAuth)
235-
236-
### HTTP request headers
237-
238-
- **Content-Type**: application/json
239-
- **Accept**: application/json
240-
241-
### HTTP response details
242-
| Status code | Description | Response headers |
243-
|-------------|-------------|------------------|
244-
| **200** | Ads disconnected | - |
245-
| **400** | Invalid ads platform | - |
246-
| **401** | Unauthorized | - |
247-
| **404** | Resource not found | - |
248-
249-
## disconnectAdsWithHttpInfo
250-
251-
> ApiResponse<DeleteAccountGroup200Response> disconnectAds disconnectAdsWithHttpInfo(accountId, disconnectAdsRequest)
252-
253-
Disconnect ads from an account
254-
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.
256-
257-
### Example
258-
259-
```java
260-
// Import classes:
261-
import dev.zernio.ApiClient;
262-
import dev.zernio.ApiException;
263-
import dev.zernio.ApiResponse;
264-
import dev.zernio.Configuration;
265-
import dev.zernio.auth.*;
266-
import dev.zernio.models.*;
267-
import dev.zernio.api.AccountsApi;
268-
269-
public class Example {
270-
public static void main(String[] args) {
271-
ApiClient defaultClient = Configuration.getDefaultApiClient();
272-
defaultClient.setBasePath("https://zernio.com/api");
273-
274-
// Configure HTTP bearer authorization: bearerAuth
275-
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
276-
bearerAuth.setBearerToken("BEARER TOKEN");
277-
278-
AccountsApi apiInstance = new AccountsApi(defaultClient);
279-
String accountId = "accountId_example"; // String | The ads SocialAccount ID to disconnect
280-
DisconnectAdsRequest disconnectAdsRequest = new DisconnectAdsRequest(); // DisconnectAdsRequest |
281-
try {
282-
ApiResponse<DeleteAccountGroup200Response> response = apiInstance.disconnectAdsWithHttpInfo(accountId, disconnectAdsRequest);
283-
System.out.println("Status code: " + response.getStatusCode());
284-
System.out.println("Response headers: " + response.getHeaders());
285-
System.out.println("Response body: " + response.getData());
286-
} catch (ApiException e) {
287-
System.err.println("Exception when calling AccountsApi#disconnectAds");
288-
System.err.println("Status code: " + e.getCode());
289-
System.err.println("Response headers: " + e.getResponseHeaders());
290-
System.err.println("Reason: " + e.getResponseBody());
291-
e.printStackTrace();
292-
}
293-
}
294-
}
295-
```
296-
297-
### Parameters
298-
299-
300-
| Name | Type | Description | Notes |
301-
|------------- | ------------- | ------------- | -------------|
302-
| **accountId** | **String**| The ads SocialAccount ID to disconnect | |
303-
| **disconnectAdsRequest** | [**DisconnectAdsRequest**](DisconnectAdsRequest.md)| | [optional] |
304-
305-
### Return type
306-
307-
ApiResponse<[**DeleteAccountGroup200Response**](DeleteAccountGroup200Response.md)>
308-
309-
310-
### Authorization
311-
312-
[bearerAuth](../README.md#bearerAuth)
313-
314-
### HTTP request headers
315-
316-
- **Content-Type**: application/json
317-
- **Accept**: application/json
318-
319-
### HTTP response details
320-
| Status code | Description | Response headers |
321-
|-------------|-------------|------------------|
322-
| **200** | Ads disconnected | - |
323-
| **400** | Invalid ads platform | - |
324-
| **401** | Unauthorized | - |
325-
| **404** | Resource not found | - |
326-
327-
328172
## getAccountHealth
329173

330174
> GetAccountHealth200Response getAccountHealth(accountId)

docs/GetBroadcast200ResponseBroadcast.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
|**platform** | **String** | | [optional] |
1414
|**accountId** | **String** | | [optional] |
1515
|**message** | [**GetBroadcast200ResponseBroadcastMessage**](GetBroadcast200ResponseBroadcastMessage.md) | | [optional] |
16-
|**template** | [**GetWhatsAppBroadcasts200ResponseBroadcastsInnerTemplate**](GetWhatsAppBroadcasts200ResponseBroadcastsInnerTemplate.md) | | [optional] |
16+
|**template** | [**GetBroadcast200ResponseBroadcastTemplate**](GetBroadcast200ResponseBroadcastTemplate.md) | | [optional] |
1717
|**segmentFilters** | [**ListContacts200ResponseFilters**](ListContacts200ResponseFilters.md) | | [optional] |
1818
|**status** | [**StatusEnum**](#StatusEnum) | | [optional] |
1919
|**scheduledAt** | **OffsetDateTime** | | [optional] |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
3+
# GetBroadcast200ResponseBroadcastTemplate
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**name** | **String** | | [optional] |
11+
|**language** | **String** | | [optional] |
12+
13+
14+

docs/ListBroadcastRecipients200Response.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
|------------ | ------------- | ------------- | -------------|
1010
|**success** | **Boolean** | | [optional] |
1111
|**recipients** | [**List&lt;ListBroadcastRecipients200ResponseRecipientsInner&gt;**](ListBroadcastRecipients200ResponseRecipientsInner.md) | | [optional] |
12-
|**pagination** | [**GetWhatsAppContacts200ResponsePagination**](GetWhatsAppContacts200ResponsePagination.md) | | [optional] |
12+
|**pagination** | [**ListContacts200ResponsePagination**](ListContacts200ResponsePagination.md) | | [optional] |
1313

1414

1515

docs/ListBroadcasts200Response.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
|------------ | ------------- | ------------- | -------------|
1010
|**success** | **Boolean** | | [optional] |
1111
|**broadcasts** | [**List&lt;ListBroadcasts200ResponseBroadcastsInner&gt;**](ListBroadcasts200ResponseBroadcastsInner.md) | | [optional] |
12-
|**pagination** | [**GetWhatsAppContacts200ResponsePagination**](GetWhatsAppContacts200ResponsePagination.md) | | [optional] |
12+
|**pagination** | [**ListContacts200ResponsePagination**](ListContacts200ResponsePagination.md) | | [optional] |
1313

1414

1515

docs/ListCommentAutomationLogs200Response.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
|------------ | ------------- | ------------- | -------------|
1010
|**success** | **Boolean** | | [optional] |
1111
|**logs** | [**List&lt;GetCommentAutomation200ResponseLogsInner&gt;**](GetCommentAutomation200ResponseLogsInner.md) | | [optional] |
12-
|**pagination** | [**GetWhatsAppContacts200ResponsePagination**](GetWhatsAppContacts200ResponsePagination.md) | | [optional] |
12+
|**pagination** | [**ListContacts200ResponsePagination**](ListContacts200ResponsePagination.md) | | [optional] |
1313

1414

1515

0 commit comments

Comments
 (0)