@zernio/node 0.2.308 → 0.2.309
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +11 -6
- package/dist/index.d.ts +11 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +4 -0
- package/src/generated/types.gen.ts +11 -6
package/dist/index.d.mts
CHANGED
|
@@ -4403,7 +4403,7 @@ type Webhook = {
|
|
|
4403
4403
|
/**
|
|
4404
4404
|
* Events subscribed to
|
|
4405
4405
|
*/
|
|
4406
|
-
events?: Array<('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' | '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')>;
|
|
4406
|
+
events?: Array<('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' | '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')>;
|
|
4407
4407
|
/**
|
|
4408
4408
|
* Whether webhook delivery is enabled
|
|
4409
4409
|
*/
|
|
@@ -5672,7 +5672,9 @@ type WebhookPayloadPost = {
|
|
|
5672
5672
|
type event18 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled';
|
|
5673
5673
|
/**
|
|
5674
5674
|
* Webhook payload for the per-platform terminal events
|
|
5675
|
-
* `post.platform.published` and `post.platform.failed
|
|
5675
|
+
* `post.platform.published` and `post.platform.failed`, and for
|
|
5676
|
+
* `post.tiktok.url_resolved` (same shape, fired when a published
|
|
5677
|
+
* TikTok post's public URL is backfilled). Terminal events fire once
|
|
5676
5678
|
* per platform target inside a post as that platform reaches a
|
|
5677
5679
|
* terminal state (published or permanent failure). The `post`
|
|
5678
5680
|
* envelope mirrors the shape of `WebhookPayloadPost` so consumers
|
|
@@ -5686,7 +5688,7 @@ type WebhookPayloadPostPlatform = {
|
|
|
5686
5688
|
* Stable webhook event ID.
|
|
5687
5689
|
*/
|
|
5688
5690
|
id: string;
|
|
5689
|
-
event: 'post.platform.published' | 'post.platform.failed';
|
|
5691
|
+
event: 'post.platform.published' | 'post.platform.failed' | 'post.tiktok.url_resolved';
|
|
5690
5692
|
post: {
|
|
5691
5693
|
id: string;
|
|
5692
5694
|
content: string;
|
|
@@ -5747,7 +5749,7 @@ type WebhookPayloadPostPlatform = {
|
|
|
5747
5749
|
};
|
|
5748
5750
|
timestamp: string;
|
|
5749
5751
|
};
|
|
5750
|
-
type event19 = 'post.platform.published' | 'post.platform.failed';
|
|
5752
|
+
type event19 = 'post.platform.published' | 'post.platform.failed' | 'post.tiktok.url_resolved';
|
|
5751
5753
|
/**
|
|
5752
5754
|
* Webhook payload for reaction received events (WhatsApp, Telegram)
|
|
5753
5755
|
*/
|
|
@@ -8163,6 +8165,9 @@ type UpdatePostData = {
|
|
|
8163
8165
|
}>;
|
|
8164
8166
|
scheduledFor?: string;
|
|
8165
8167
|
publishNow?: boolean;
|
|
8168
|
+
/**
|
|
8169
|
+
* When omitted, the post keeps its current draft status. Send `false` to promote a draft to scheduled (combined with `scheduledFor`, `publishNow`, or a queue).
|
|
8170
|
+
*/
|
|
8166
8171
|
isDraft?: boolean;
|
|
8167
8172
|
timezone?: string;
|
|
8168
8173
|
visibility?: 'public' | 'private' | 'unlisted';
|
|
@@ -12384,7 +12389,7 @@ type CreateWebhookSettingsData = {
|
|
|
12384
12389
|
/**
|
|
12385
12390
|
* Events to subscribe to (at least one required)
|
|
12386
12391
|
*/
|
|
12387
|
-
events: Array<('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' | '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')>;
|
|
12392
|
+
events: Array<('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' | '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')>;
|
|
12388
12393
|
/**
|
|
12389
12394
|
* Enable or disable webhook delivery. Defaults to `true` when omitted.
|
|
12390
12395
|
*/
|
|
@@ -12425,7 +12430,7 @@ type UpdateWebhookSettingsData = {
|
|
|
12425
12430
|
/**
|
|
12426
12431
|
* Events to subscribe to. Must contain at least one event if provided.
|
|
12427
12432
|
*/
|
|
12428
|
-
events?: Array<('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' | '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')>;
|
|
12433
|
+
events?: Array<('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' | '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')>;
|
|
12429
12434
|
/**
|
|
12430
12435
|
* Enable or disable webhook delivery
|
|
12431
12436
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -4403,7 +4403,7 @@ type Webhook = {
|
|
|
4403
4403
|
/**
|
|
4404
4404
|
* Events subscribed to
|
|
4405
4405
|
*/
|
|
4406
|
-
events?: Array<('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' | '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')>;
|
|
4406
|
+
events?: Array<('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' | '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')>;
|
|
4407
4407
|
/**
|
|
4408
4408
|
* Whether webhook delivery is enabled
|
|
4409
4409
|
*/
|
|
@@ -5672,7 +5672,9 @@ type WebhookPayloadPost = {
|
|
|
5672
5672
|
type event18 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled';
|
|
5673
5673
|
/**
|
|
5674
5674
|
* Webhook payload for the per-platform terminal events
|
|
5675
|
-
* `post.platform.published` and `post.platform.failed
|
|
5675
|
+
* `post.platform.published` and `post.platform.failed`, and for
|
|
5676
|
+
* `post.tiktok.url_resolved` (same shape, fired when a published
|
|
5677
|
+
* TikTok post's public URL is backfilled). Terminal events fire once
|
|
5676
5678
|
* per platform target inside a post as that platform reaches a
|
|
5677
5679
|
* terminal state (published or permanent failure). The `post`
|
|
5678
5680
|
* envelope mirrors the shape of `WebhookPayloadPost` so consumers
|
|
@@ -5686,7 +5688,7 @@ type WebhookPayloadPostPlatform = {
|
|
|
5686
5688
|
* Stable webhook event ID.
|
|
5687
5689
|
*/
|
|
5688
5690
|
id: string;
|
|
5689
|
-
event: 'post.platform.published' | 'post.platform.failed';
|
|
5691
|
+
event: 'post.platform.published' | 'post.platform.failed' | 'post.tiktok.url_resolved';
|
|
5690
5692
|
post: {
|
|
5691
5693
|
id: string;
|
|
5692
5694
|
content: string;
|
|
@@ -5747,7 +5749,7 @@ type WebhookPayloadPostPlatform = {
|
|
|
5747
5749
|
};
|
|
5748
5750
|
timestamp: string;
|
|
5749
5751
|
};
|
|
5750
|
-
type event19 = 'post.platform.published' | 'post.platform.failed';
|
|
5752
|
+
type event19 = 'post.platform.published' | 'post.platform.failed' | 'post.tiktok.url_resolved';
|
|
5751
5753
|
/**
|
|
5752
5754
|
* Webhook payload for reaction received events (WhatsApp, Telegram)
|
|
5753
5755
|
*/
|
|
@@ -8163,6 +8165,9 @@ type UpdatePostData = {
|
|
|
8163
8165
|
}>;
|
|
8164
8166
|
scheduledFor?: string;
|
|
8165
8167
|
publishNow?: boolean;
|
|
8168
|
+
/**
|
|
8169
|
+
* When omitted, the post keeps its current draft status. Send `false` to promote a draft to scheduled (combined with `scheduledFor`, `publishNow`, or a queue).
|
|
8170
|
+
*/
|
|
8166
8171
|
isDraft?: boolean;
|
|
8167
8172
|
timezone?: string;
|
|
8168
8173
|
visibility?: 'public' | 'private' | 'unlisted';
|
|
@@ -12384,7 +12389,7 @@ type CreateWebhookSettingsData = {
|
|
|
12384
12389
|
/**
|
|
12385
12390
|
* Events to subscribe to (at least one required)
|
|
12386
12391
|
*/
|
|
12387
|
-
events: Array<('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' | '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')>;
|
|
12392
|
+
events: Array<('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' | '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')>;
|
|
12388
12393
|
/**
|
|
12389
12394
|
* Enable or disable webhook delivery. Defaults to `true` when omitted.
|
|
12390
12395
|
*/
|
|
@@ -12425,7 +12430,7 @@ type UpdateWebhookSettingsData = {
|
|
|
12425
12430
|
/**
|
|
12426
12431
|
* Events to subscribe to. Must contain at least one event if provided.
|
|
12427
12432
|
*/
|
|
12428
|
-
events?: Array<('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' | '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')>;
|
|
12433
|
+
events?: Array<('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' | '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')>;
|
|
12429
12434
|
/**
|
|
12430
12435
|
* Enable or disable webhook delivery
|
|
12431
12436
|
*/
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.309",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.309",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -730,6 +730,10 @@ export const getPost = <ThrowOnError extends boolean = false>(options: OptionsLe
|
|
|
730
730
|
* Update an existing post. Draft, scheduled, failed, partial, and cancelled posts can be edited.
|
|
731
731
|
* Published posts can only have their recycling config updated.
|
|
732
732
|
*
|
|
733
|
+
* To promote a draft to scheduled, send `isDraft: false` together with `scheduledFor` (or `publishNow: true`,
|
|
734
|
+
* or `queuedFromProfile`). If `isDraft` is omitted the post keeps its current draft status, so sending only
|
|
735
|
+
* `scheduledFor` to a draft returns 200 but the post remains a draft.
|
|
736
|
+
*
|
|
733
737
|
*/
|
|
734
738
|
export const updatePost = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdatePostData, ThrowOnError>) => {
|
|
735
739
|
return (options?.client ?? client).put<UpdatePostResponse, UpdatePostError, ThrowOnError>({
|
|
@@ -3788,7 +3788,7 @@ export type Webhook = {
|
|
|
3788
3788
|
/**
|
|
3789
3789
|
* Events subscribed to
|
|
3790
3790
|
*/
|
|
3791
|
-
events?: Array<('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' | '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')>;
|
|
3791
|
+
events?: Array<('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' | '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')>;
|
|
3792
3792
|
/**
|
|
3793
3793
|
* Whether webhook delivery is enabled
|
|
3794
3794
|
*/
|
|
@@ -5107,7 +5107,9 @@ export type event18 = 'post.scheduled' | 'post.published' | 'post.failed' | 'pos
|
|
|
5107
5107
|
|
|
5108
5108
|
/**
|
|
5109
5109
|
* Webhook payload for the per-platform terminal events
|
|
5110
|
-
* `post.platform.published` and `post.platform.failed
|
|
5110
|
+
* `post.platform.published` and `post.platform.failed`, and for
|
|
5111
|
+
* `post.tiktok.url_resolved` (same shape, fired when a published
|
|
5112
|
+
* TikTok post's public URL is backfilled). Terminal events fire once
|
|
5111
5113
|
* per platform target inside a post as that platform reaches a
|
|
5112
5114
|
* terminal state (published or permanent failure). The `post`
|
|
5113
5115
|
* envelope mirrors the shape of `WebhookPayloadPost` so consumers
|
|
@@ -5121,7 +5123,7 @@ export type WebhookPayloadPostPlatform = {
|
|
|
5121
5123
|
* Stable webhook event ID.
|
|
5122
5124
|
*/
|
|
5123
5125
|
id: string;
|
|
5124
|
-
event: 'post.platform.published' | 'post.platform.failed';
|
|
5126
|
+
event: 'post.platform.published' | 'post.platform.failed' | 'post.tiktok.url_resolved';
|
|
5125
5127
|
post: {
|
|
5126
5128
|
id: string;
|
|
5127
5129
|
content: string;
|
|
@@ -5183,7 +5185,7 @@ export type WebhookPayloadPostPlatform = {
|
|
|
5183
5185
|
timestamp: string;
|
|
5184
5186
|
};
|
|
5185
5187
|
|
|
5186
|
-
export type event19 = 'post.platform.published' | 'post.platform.failed';
|
|
5188
|
+
export type event19 = 'post.platform.published' | 'post.platform.failed' | 'post.tiktok.url_resolved';
|
|
5187
5189
|
|
|
5188
5190
|
/**
|
|
5189
5191
|
* Webhook payload for reaction received events (WhatsApp, Telegram)
|
|
@@ -7761,6 +7763,9 @@ export type UpdatePostData = {
|
|
|
7761
7763
|
}>;
|
|
7762
7764
|
scheduledFor?: string;
|
|
7763
7765
|
publishNow?: boolean;
|
|
7766
|
+
/**
|
|
7767
|
+
* When omitted, the post keeps its current draft status. Send `false` to promote a draft to scheduled (combined with `scheduledFor`, `publishNow`, or a queue).
|
|
7768
|
+
*/
|
|
7764
7769
|
isDraft?: boolean;
|
|
7765
7770
|
timezone?: string;
|
|
7766
7771
|
visibility?: 'public' | 'private' | 'unlisted';
|
|
@@ -12321,7 +12326,7 @@ export type CreateWebhookSettingsData = {
|
|
|
12321
12326
|
/**
|
|
12322
12327
|
* Events to subscribe to (at least one required)
|
|
12323
12328
|
*/
|
|
12324
|
-
events: Array<('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' | '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')>;
|
|
12329
|
+
events: Array<('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' | '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')>;
|
|
12325
12330
|
/**
|
|
12326
12331
|
* Enable or disable webhook delivery. Defaults to `true` when omitted.
|
|
12327
12332
|
*/
|
|
@@ -12365,7 +12370,7 @@ export type UpdateWebhookSettingsData = {
|
|
|
12365
12370
|
/**
|
|
12366
12371
|
* Events to subscribe to. Must contain at least one event if provided.
|
|
12367
12372
|
*/
|
|
12368
|
-
events?: Array<('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' | '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')>;
|
|
12373
|
+
events?: Array<('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' | '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')>;
|
|
12369
12374
|
/**
|
|
12370
12375
|
* Enable or disable webhook delivery
|
|
12371
12376
|
*/
|