Skip to content

Commit ed3f2f7

Browse files
chore: regenerate from OpenAPI spec
- Auto-generated SDK updates - Version: v0.0.426
1 parent 994eead commit ed3f2f7

1,280 files changed

Lines changed: 1603 additions & 1292 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.4
66

7-
- Build date: 2026-07-03T22:41:22.130788373Z[Etc/UTC]
7+
- Build date: 2026-07-04T13:49:24.644347969Z[Etc/UTC]
88

99
- Generator version: 7.19.0
1010

‎api/openapi.yaml‎

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ tags:
215215
name: Tracking Tags
216216
- description: |
217217
Configure webhooks for real-time notifications. Webhooks can be created from the dashboard (Settings → Webhooks) or via this API.
218-
Events: post.scheduled, post.published, post.failed, post.partial, post.cancelled, post.recycled, post.platform.published, post.platform.failed, post.external.created, post.external.updated, post.external.deleted, account.connected, account.disconnected, account.ads.initial_sync_completed, message.received, message.sent, message.edited, message.deleted, message.delivered, message.read, message.failed, reaction.received, comment.received, review.new, review.updated, lead.received, ad.status_changed, whatsapp.template.status_updated, whatsapp.number.activated, whatsapp.number.declined, whatsapp.number.action_required, whatsapp.number.verification_required, whatsapp.number.suspended, whatsapp.number.reactivated, whatsapp.number.released, whatsapp.number.kyc_submitted, webhook.test.
218+
Events: post.scheduled, post.published, post.failed, post.partial, post.cancelled, post.recycled, post.platform.published, post.platform.failed, post.tiktok.url_resolved, post.external.created, post.external.updated, post.external.deleted, account.connected, account.disconnected, account.ads.initial_sync_completed, message.received, message.sent, message.edited, message.deleted, message.delivered, message.read, message.failed, reaction.received, comment.received, review.new, review.updated, lead.received, ad.status_changed, whatsapp.template.status_updated, whatsapp.number.activated, whatsapp.number.declined, whatsapp.number.action_required, whatsapp.number.verification_required, whatsapp.number.suspended, whatsapp.number.reactivated, whatsapp.number.released, whatsapp.number.kyc_submitted, webhook.test.
219219
Security: optional HMAC-SHA256 signature in X-Zernio-Signature header. Configure a secret key to enable verification. Custom headers supported.
220220
name: Webhooks
221221
- description: |
@@ -4705,6 +4705,10 @@ paths:
47054705
description: |
47064706
Update an existing post. Draft, scheduled, failed, partial, and cancelled posts can be edited.
47074707
Published posts can only have their recycling config updated.
4708+
4709+
To promote a draft to scheduled, send `isDraft: false` together with `scheduledFor` (or `publishNow: true`,
4710+
or `queuedFromProfile`). If `isDraft` is omitted the post keeps its current draft status, so sending only
4711+
`scheduledFor` to a draft returns 200 but the post remains a draft.
47084712
operationId: updatePost
47094713
parameters:
47104714
- explode: false
@@ -25111,6 +25115,7 @@ components:
2511125115
- post.recycled
2511225116
- post.platform.published
2511325117
- post.platform.failed
25118+
- post.tiktok.url_resolved
2511425119
- post.external.created
2511525120
- post.external.updated
2511625121
- post.external.deleted
@@ -25273,7 +25278,9 @@ components:
2527325278
WebhookPayloadPostPlatform:
2527425279
description: |
2527525280
Webhook payload for the per-platform terminal events
25276-
`post.platform.published` and `post.platform.failed`. Fires once
25281+
`post.platform.published` and `post.platform.failed`, and for
25282+
`post.tiktok.url_resolved` (same shape, fired when a published
25283+
TikTok post's public URL is backfilled). Terminal events fire once
2527725284
per platform target inside a post as that platform reaches a
2527825285
terminal state (published or permanent failure). The `post`
2527925286
envelope mirrors the shape of `WebhookPayloadPost` so consumers
@@ -25322,6 +25329,7 @@ components:
2532225329
enum:
2532325330
- post.platform.published
2532425331
- post.platform.failed
25332+
- post.tiktok.url_resolved
2532525333
type: string
2532625334
post:
2532725335
$ref: "#/components/schemas/WebhookPayloadPostPlatform_post"
@@ -35314,6 +35322,9 @@ components:
3531435322
default: false
3531535323
type: boolean
3531635324
isDraft:
35325+
description: "When omitted, the post keeps its current draft status. Send\
35326+
\ `false` to promote a draft to scheduled (combined with `scheduledFor`,\
35327+
\ `publishNow`, or a queue)."
3531735328
type: boolean
3531835329
timezone:
3531935330
type: string
@@ -42237,6 +42248,7 @@ components:
4223742248
- post.recycled
4223842249
- post.platform.published
4223942250
- post.platform.failed
42251+
- post.tiktok.url_resolved
4224042252
- post.external.created
4224142253
- post.external.updated
4224242254
- post.external.deleted
@@ -42323,6 +42335,7 @@ components:
4232342335
- post.recycled
4232442336
- post.platform.published
4232542337
- post.platform.failed
42338+
- post.tiktok.url_resolved
4232642339
- post.external.created
4232742340
- post.external.updated
4232842341
- post.external.deleted
@@ -62201,6 +62214,7 @@ x-documentation:
6220162214
- `post.recycled` - Post recycled (cloned and re-scheduled)
6220262215
- `post.platform.published` - A single platform target inside a post finished publishing successfully. Fires once per platform-account as it terminates, without waiting for other platforms on the same post. Use this for incremental UIs; use `post.published` for the post-level rollup.
6220362216
- `post.platform.failed` - A single platform target inside a post failed permanently. Temporary/retryable failures do NOT fire this event, only permanent ones, so retry loops stay quiet.
62217+
- `post.tiktok.url_resolved` - A published TikTok post's public URL became available. TikTok exposes the numeric video id asynchronously, so `post.published` / `post.platform.published` can carry an empty `publishedUrl` for TikTok; this event delivers the URL once resolved (at most once per platform target). Never fires for drafts or private posts, which have no public URL.
6220462218
- `post.external.created` - A native post authored outside Zernio (e.g. a Google Business Profile localPost created in the Google UI) was detected by our sync for the first time. Poll-driven (~hourly), not real-time. Payload carries `post.source: "external"`.
6220562219
- `post.external.updated` - A tracked native post's text or media changed on the platform. Edits are detected by comparing text/media structure and (where the platform exposes it) the platform's own edit timestamp; media-URL-only refreshes do not fire this.
6220662220
- `post.external.deleted` - A tracked native post was detected as removed from the platform. `post.deletedAt` carries the detection time. Coverage is bounded to the most recent posts the platform listing returns.

‎docs/CreateWebhookSettingsRequest.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
| POST_RECYCLED | "post.recycled" |
2929
| POST_PLATFORM_PUBLISHED | "post.platform.published" |
3030
| POST_PLATFORM_FAILED | "post.platform.failed" |
31+
| POST_TIKTOK_URL_RESOLVED | "post.tiktok.url_resolved" |
3132
| POST_EXTERNAL_CREATED | "post.external.created" |
3233
| POST_EXTERNAL_UPDATED | "post.external.updated" |
3334
| POST_EXTERNAL_DELETED | "post.external.deleted" |

‎docs/PostsApi.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ ApiResponse<[**UnpublishPost200Response**](UnpublishPost200Response.md)>
13171317
13181318
Update post
13191319

1320-
Update an existing post. Draft, scheduled, failed, partial, and cancelled posts can be edited. Published posts can only have their recycling config updated.
1320+
Update an existing post. Draft, scheduled, failed, partial, and cancelled posts can be edited. Published posts can only have their recycling config updated. To promote a draft to scheduled, send &#x60;isDraft: false&#x60; together with &#x60;scheduledFor&#x60; (or &#x60;publishNow: true&#x60;, or &#x60;queuedFromProfile&#x60;). If &#x60;isDraft&#x60; is omitted the post keeps its current draft status, so sending only &#x60;scheduledFor&#x60; to a draft returns 200 but the post remains a draft.
13211321

13221322
### Example
13231323

@@ -1394,7 +1394,7 @@ public class Example {
13941394
13951395
Update post
13961396

1397-
Update an existing post. Draft, scheduled, failed, partial, and cancelled posts can be edited. Published posts can only have their recycling config updated.
1397+
Update an existing post. Draft, scheduled, failed, partial, and cancelled posts can be edited. Published posts can only have their recycling config updated. To promote a draft to scheduled, send &#x60;isDraft: false&#x60; together with &#x60;scheduledFor&#x60; (or &#x60;publishNow: true&#x60;, or &#x60;queuedFromProfile&#x60;). If &#x60;isDraft&#x60; is omitted the post keeps its current draft status, so sending only &#x60;scheduledFor&#x60; to a draft returns 200 but the post remains a draft.
13981398

13991399
### Example
14001400

‎docs/UpdatePostRequest.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
|**platforms** | [**List&lt;UpdatePostRequestPlatformsInner&gt;**](UpdatePostRequestPlatformsInner.md) | Target platforms and accounts for this post. Each item must include platform and accountId. | [optional] |
1414
|**scheduledFor** | **OffsetDateTime** | | [optional] |
1515
|**publishNow** | **Boolean** | | [optional] |
16-
|**isDraft** | **Boolean** | | [optional] |
16+
|**isDraft** | **Boolean** | When omitted, the post keeps its current draft status. Send &#x60;false&#x60; to promote a draft to scheduled (combined with &#x60;scheduledFor&#x60;, &#x60;publishNow&#x60;, or a queue). | [optional] |
1717
|**timezone** | **String** | | [optional] |
1818
|**visibility** | [**VisibilityEnum**](#VisibilityEnum) | | [optional] |
1919
|**tags** | **List&lt;String&gt;** | | [optional] |

‎docs/UpdateWebhookSettingsRequest.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
| POST_RECYCLED | &quot;post.recycled&quot; |
3030
| POST_PLATFORM_PUBLISHED | &quot;post.platform.published&quot; |
3131
| POST_PLATFORM_FAILED | &quot;post.platform.failed&quot; |
32+
| POST_TIKTOK_URL_RESOLVED | &quot;post.tiktok.url_resolved&quot; |
3233
| POST_EXTERNAL_CREATED | &quot;post.external.created&quot; |
3334
| POST_EXTERNAL_UPDATED | &quot;post.external.updated&quot; |
3435
| POST_EXTERNAL_DELETED | &quot;post.external.deleted&quot; |

‎docs/Webhook.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Individual webhook configuration for receiving real-time notifications
3232
| POST_RECYCLED | &quot;post.recycled&quot; |
3333
| POST_PLATFORM_PUBLISHED | &quot;post.platform.published&quot; |
3434
| POST_PLATFORM_FAILED | &quot;post.platform.failed&quot; |
35+
| POST_TIKTOK_URL_RESOLVED | &quot;post.tiktok.url_resolved&quot; |
3536
| POST_EXTERNAL_CREATED | &quot;post.external.created&quot; |
3637
| POST_EXTERNAL_UPDATED | &quot;post.external.updated&quot; |
3738
| POST_EXTERNAL_DELETED | &quot;post.external.deleted&quot; |

‎docs/WebhookEventsApi.md‎

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ All URIs are relative to *https://zernio.com/api*
6262
| [**onPostRecycledWithHttpInfo**](WebhookEventsApi.md#onPostRecycledWithHttpInfo) | **POST** /post.recycled | Post recycled event |
6363
| [**onPostScheduled**](WebhookEventsApi.md#onPostScheduled) | **POST** /post.scheduled | Post scheduled event |
6464
| [**onPostScheduledWithHttpInfo**](WebhookEventsApi.md#onPostScheduledWithHttpInfo) | **POST** /post.scheduled | Post scheduled event |
65+
| [**onPostTikTokUrlResolved**](WebhookEventsApi.md#onPostTikTokUrlResolved) | **POST** /post.tiktok.url_resolved | TikTok post URL resolved event |
66+
| [**onPostTikTokUrlResolvedWithHttpInfo**](WebhookEventsApi.md#onPostTikTokUrlResolvedWithHttpInfo) | **POST** /post.tiktok.url_resolved | TikTok post URL resolved event |
6567
| [**onReactionReceived**](WebhookEventsApi.md#onReactionReceived) | **POST** /reaction.received | Reaction received event |
6668
| [**onReactionReceivedWithHttpInfo**](WebhookEventsApi.md#onReactionReceivedWithHttpInfo) | **POST** /reaction.received | Reaction received event |
6769
| [**onReviewNew**](WebhookEventsApi.md#onReviewNew) | **POST** /review.new | Review new event |
@@ -4209,6 +4211,148 @@ ApiResponse<Void>
42094211
| **200** | Webhook received successfully | - |
42104212

42114213

4214+
## onPostTikTokUrlResolved
4215+
4216+
> void onPostTikTokUrlResolved(webhookPayloadPostPlatform)
4217+
4218+
TikTok post URL resolved event
4219+
4220+
Fired when an already-published TikTok platform entry gets its public URL backfilled. TikTok exposes the numeric video id asynchronously (often minutes after PUBLISH_COMPLETE), so the terminal events can carry an empty &#x60;publishedUrl&#x60; for TikTok. This event delivers &#x60;platform.publishedUrl&#x60; and the resolved &#x60;platform.platformPostId&#x60; once available. At most once per platform target; never fires for drafts or private posts (no public URL exists). Payload shape is identical to &#x60;post.platform.published&#x60;.
4221+
4222+
### Example
4223+
4224+
```java
4225+
// Import classes:
4226+
import dev.zernio.ApiClient;
4227+
import dev.zernio.ApiException;
4228+
import dev.zernio.Configuration;
4229+
import dev.zernio.auth.*;
4230+
import dev.zernio.models.*;
4231+
import dev.zernio.api.WebhookEventsApi;
4232+
4233+
public class Example {
4234+
public static void main(String[] args) {
4235+
ApiClient defaultClient = Configuration.getDefaultApiClient();
4236+
defaultClient.setBasePath("https://zernio.com/api");
4237+
4238+
// Configure HTTP bearer authorization: bearerAuth
4239+
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
4240+
bearerAuth.setBearerToken("BEARER TOKEN");
4241+
4242+
WebhookEventsApi apiInstance = new WebhookEventsApi(defaultClient);
4243+
WebhookPayloadPostPlatform webhookPayloadPostPlatform = new WebhookPayloadPostPlatform(); // WebhookPayloadPostPlatform |
4244+
try {
4245+
apiInstance.onPostTikTokUrlResolved(webhookPayloadPostPlatform);
4246+
} catch (ApiException e) {
4247+
System.err.println("Exception when calling WebhookEventsApi#onPostTikTokUrlResolved");
4248+
System.err.println("Status code: " + e.getCode());
4249+
System.err.println("Reason: " + e.getResponseBody());
4250+
System.err.println("Response headers: " + e.getResponseHeaders());
4251+
e.printStackTrace();
4252+
}
4253+
}
4254+
}
4255+
```
4256+
4257+
### Parameters
4258+
4259+
4260+
| Name | Type | Description | Notes |
4261+
|------------- | ------------- | ------------- | -------------|
4262+
| **webhookPayloadPostPlatform** | [**WebhookPayloadPostPlatform**](WebhookPayloadPostPlatform.md)| | |
4263+
4264+
### Return type
4265+
4266+
4267+
null (empty response body)
4268+
4269+
### Authorization
4270+
4271+
[bearerAuth](../README.md#bearerAuth)
4272+
4273+
### HTTP request headers
4274+
4275+
- **Content-Type**: application/json
4276+
- **Accept**: Not defined
4277+
4278+
### HTTP response details
4279+
| Status code | Description | Response headers |
4280+
|-------------|-------------|------------------|
4281+
| **200** | Webhook received successfully | - |
4282+
4283+
## onPostTikTokUrlResolvedWithHttpInfo
4284+
4285+
> ApiResponse<Void> onPostTikTokUrlResolved onPostTikTokUrlResolvedWithHttpInfo(webhookPayloadPostPlatform)
4286+
4287+
TikTok post URL resolved event
4288+
4289+
Fired when an already-published TikTok platform entry gets its public URL backfilled. TikTok exposes the numeric video id asynchronously (often minutes after PUBLISH_COMPLETE), so the terminal events can carry an empty &#x60;publishedUrl&#x60; for TikTok. This event delivers &#x60;platform.publishedUrl&#x60; and the resolved &#x60;platform.platformPostId&#x60; once available. At most once per platform target; never fires for drafts or private posts (no public URL exists). Payload shape is identical to &#x60;post.platform.published&#x60;.
4290+
4291+
### Example
4292+
4293+
```java
4294+
// Import classes:
4295+
import dev.zernio.ApiClient;
4296+
import dev.zernio.ApiException;
4297+
import dev.zernio.ApiResponse;
4298+
import dev.zernio.Configuration;
4299+
import dev.zernio.auth.*;
4300+
import dev.zernio.models.*;
4301+
import dev.zernio.api.WebhookEventsApi;
4302+
4303+
public class Example {
4304+
public static void main(String[] args) {
4305+
ApiClient defaultClient = Configuration.getDefaultApiClient();
4306+
defaultClient.setBasePath("https://zernio.com/api");
4307+
4308+
// Configure HTTP bearer authorization: bearerAuth
4309+
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
4310+
bearerAuth.setBearerToken("BEARER TOKEN");
4311+
4312+
WebhookEventsApi apiInstance = new WebhookEventsApi(defaultClient);
4313+
WebhookPayloadPostPlatform webhookPayloadPostPlatform = new WebhookPayloadPostPlatform(); // WebhookPayloadPostPlatform |
4314+
try {
4315+
ApiResponse<Void> response = apiInstance.onPostTikTokUrlResolvedWithHttpInfo(webhookPayloadPostPlatform);
4316+
System.out.println("Status code: " + response.getStatusCode());
4317+
System.out.println("Response headers: " + response.getHeaders());
4318+
} catch (ApiException e) {
4319+
System.err.println("Exception when calling WebhookEventsApi#onPostTikTokUrlResolved");
4320+
System.err.println("Status code: " + e.getCode());
4321+
System.err.println("Response headers: " + e.getResponseHeaders());
4322+
System.err.println("Reason: " + e.getResponseBody());
4323+
e.printStackTrace();
4324+
}
4325+
}
4326+
}
4327+
```
4328+
4329+
### Parameters
4330+
4331+
4332+
| Name | Type | Description | Notes |
4333+
|------------- | ------------- | ------------- | -------------|
4334+
| **webhookPayloadPostPlatform** | [**WebhookPayloadPostPlatform**](WebhookPayloadPostPlatform.md)| | |
4335+
4336+
### Return type
4337+
4338+
4339+
ApiResponse<Void>
4340+
4341+
### Authorization
4342+
4343+
[bearerAuth](../README.md#bearerAuth)
4344+
4345+
### HTTP request headers
4346+
4347+
- **Content-Type**: application/json
4348+
- **Accept**: Not defined
4349+
4350+
### HTTP response details
4351+
| Status code | Description | Response headers |
4352+
|-------------|-------------|------------------|
4353+
| **200** | Webhook received successfully | - |
4354+
4355+
42124356
## onReactionReceived
42134357

42144358
> void onReactionReceived(webhookPayloadReaction)

‎docs/WebhookPayloadPostPlatform.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# WebhookPayloadPostPlatform
44

5-
Webhook payload for the per-platform terminal events `post.platform.published` and `post.platform.failed`. Fires once per platform target inside a post as that platform reaches a terminal state (published or permanent failure). The `post` envelope mirrors the shape of `WebhookPayloadPost` so consumers can reuse rendering logic; the `platform` block identifies which specific platform transitioned; the `account` block identifies the connected social account behind that platform-write.
5+
Webhook payload for the per-platform terminal events `post.platform.published` and `post.platform.failed`, and for `post.tiktok.url_resolved` (same shape, fired when a published TikTok post's public URL is backfilled). Terminal events fire once per platform target inside a post as that platform reaches a terminal state (published or permanent failure). The `post` envelope mirrors the shape of `WebhookPayloadPost` so consumers can reuse rendering logic; the `platform` block identifies which specific platform transitioned; the `account` block identifies the connected social account behind that platform-write.
66

77
## Properties
88

@@ -23,6 +23,7 @@ Webhook payload for the per-platform terminal events `post.platform.published` a
2323
|---- | -----|
2424
| POST_PLATFORM_PUBLISHED | &quot;post.platform.published&quot; |
2525
| POST_PLATFORM_FAILED | &quot;post.platform.failed&quot; |
26+
| POST_TIKTOK_URL_RESOLVED | &quot;post.tiktok.url_resolved&quot; |
2627

2728

2829

0 commit comments

Comments
 (0)