posterly-mcp-server 0.46.0 → 0.47.1
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/README.md +4 -3
- package/dist/lib/api-client.d.ts +28 -1
- package/dist/lib/api-client.js +12 -2
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/tools/create-post.d.ts +882 -6
- package/dist/tools/create-post.js +49 -1
- package/dist/tools/create-posts-batch.d.ts +318 -4
- package/dist/tools/delete-post.d.ts +4 -0
- package/dist/tools/delete-post.js +10 -5
- package/dist/tools/list-analytics.js +4 -1
- package/dist/tools/list-posts.d.ts +4 -0
- package/dist/tools/list-posts.js +5 -1
- package/dist/tools/update-post.d.ts +414 -2
- package/dist/tools/update-post.js +63 -1
- package/dist/tools/validate-post.d.ts +480 -4
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/lib/api-client.ts +41 -2
- package/src/lib/version.ts +1 -1
- package/src/tools/create-post.ts +47 -1
- package/src/tools/delete-post.ts +16 -7
- package/src/tools/list-analytics.ts +4 -1
- package/src/tools/list-posts.ts +6 -1
- package/src/tools/update-post.ts +82 -1
- package/tool-registry.json +40 -0
|
@@ -10,6 +10,7 @@ export declare const listPostsTool: {
|
|
|
10
10
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
11
11
|
workspace_id: z.ZodOptional<z.ZodString>;
|
|
12
12
|
approval_status: z.ZodOptional<z.ZodEnum<["none", "pending_client", "approved", "changes_requested", "rejected"]>>;
|
|
13
|
+
approval_waiting_on: z.ZodOptional<z.ZodEnum<["client", "team"]>>;
|
|
13
14
|
brand_id: z.ZodOptional<z.ZodString>;
|
|
14
15
|
}, "strip", z.ZodTypeAny, {
|
|
15
16
|
platform?: "instagram" | "instagram-standalone" | "facebook" | "tiktok" | "twitter" | "threads" | "linkedin" | "youtube" | "pinterest" | "google_business" | "x" | "telegram" | "bluesky" | "discord" | "wordpress" | "devto" | "hashnode" | "lemmy" | "slack" | "mastodon" | "gmb" | "google-business" | "google_business_profile" | undefined;
|
|
@@ -18,6 +19,7 @@ export declare const listPostsTool: {
|
|
|
18
19
|
account_id?: string | undefined;
|
|
19
20
|
limit?: number | undefined;
|
|
20
21
|
approval_status?: "none" | "pending_client" | "approved" | "changes_requested" | "rejected" | undefined;
|
|
22
|
+
approval_waiting_on?: "client" | "team" | undefined;
|
|
21
23
|
brand_id?: string | undefined;
|
|
22
24
|
}, {
|
|
23
25
|
platform?: "instagram" | "instagram-standalone" | "facebook" | "tiktok" | "twitter" | "threads" | "linkedin" | "youtube" | "pinterest" | "google_business" | "x" | "telegram" | "bluesky" | "discord" | "wordpress" | "devto" | "hashnode" | "lemmy" | "slack" | "mastodon" | "gmb" | "google-business" | "google_business_profile" | undefined;
|
|
@@ -26,6 +28,7 @@ export declare const listPostsTool: {
|
|
|
26
28
|
account_id?: string | undefined;
|
|
27
29
|
limit?: number | undefined;
|
|
28
30
|
approval_status?: "none" | "pending_client" | "approved" | "changes_requested" | "rejected" | undefined;
|
|
31
|
+
approval_waiting_on?: "client" | "team" | undefined;
|
|
29
32
|
brand_id?: string | undefined;
|
|
30
33
|
}>;
|
|
31
34
|
execute(client: PosterlyClient, input: {
|
|
@@ -35,6 +38,7 @@ export declare const listPostsTool: {
|
|
|
35
38
|
limit?: number;
|
|
36
39
|
workspace_id?: string;
|
|
37
40
|
approval_status?: string;
|
|
41
|
+
approval_waiting_on?: "client" | "team";
|
|
38
42
|
brand_id?: string;
|
|
39
43
|
}): Promise<string>;
|
|
40
44
|
};
|
package/dist/tools/list-posts.js
CHANGED
|
@@ -3,7 +3,7 @@ import { dashboardUrlForPostList, formatLocalDateTime, truncateText } from '../l
|
|
|
3
3
|
import { SUPPORTED_PLATFORM_INPUTS, SUPPORTED_PLATFORM_IDS } from '../generated/platform-manifest.js';
|
|
4
4
|
export const listPostsTool = {
|
|
5
5
|
name: 'list_posts',
|
|
6
|
-
description: 'List upcoming or recent posts. Filter by status (scheduled, published, failed, draft), platform, account_id, workspace_id, approval_status, or brand_id. Returns posts in your workspaces, teammates\' too, per your role there (brand-locked seats only see their assigned brands). If workspace_id is omitted, this searches every workspace you belong to.',
|
|
6
|
+
description: 'List upcoming or recent posts. Filter by status (scheduled, published, failed, draft), platform, account_id, workspace_id, approval_status, approval_waiting_on, or brand_id. approval_waiting_on=client is the same queue as approval_status=pending_client. Each post includes approval.pending_client_approval. Returns posts in your workspaces, teammates\' too, per your role there (brand-locked seats only see their assigned brands). If workspace_id is omitted, this searches every workspace you belong to.',
|
|
7
7
|
inputSchema: z.object({
|
|
8
8
|
status: z
|
|
9
9
|
.string()
|
|
@@ -31,6 +31,10 @@ export const listPostsTool = {
|
|
|
31
31
|
.enum(['none', 'pending_client', 'approved', 'changes_requested', 'rejected'])
|
|
32
32
|
.optional()
|
|
33
33
|
.describe('Filter by client review approval status. pending_client means the post is waiting on the client.'),
|
|
34
|
+
approval_waiting_on: z
|
|
35
|
+
.enum(['client', 'team'])
|
|
36
|
+
.optional()
|
|
37
|
+
.describe('client: approval_status pending_client. team: changes_requested or rejected. Conflicts with a non-overlapping approval_status.'),
|
|
34
38
|
brand_id: z
|
|
35
39
|
.string()
|
|
36
40
|
.optional()
|
|
@@ -55,6 +55,76 @@ declare const instagramSettingsSchema: z.ZodObject<{
|
|
|
55
55
|
reel_thumb_offset: z.ZodOptional<z.ZodNumber>;
|
|
56
56
|
is_ai_generated: z.ZodOptional<z.ZodBoolean>;
|
|
57
57
|
audio_id: z.ZodOptional<z.ZodString>;
|
|
58
|
+
caption_addon: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
59
|
+
type: z.ZodOptional<z.ZodEnum<["none", "poll", "comment_prompt"]>>;
|
|
60
|
+
kind: z.ZodOptional<z.ZodEnum<["none", "poll", "comment_prompt"]>>;
|
|
61
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
62
|
+
extended_duration: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
+
poll_attachment: z.ZodOptional<z.ZodObject<{
|
|
64
|
+
option_a: z.ZodOptional<z.ZodString>;
|
|
65
|
+
option_b: z.ZodOptional<z.ZodString>;
|
|
66
|
+
option_c: z.ZodOptional<z.ZodString>;
|
|
67
|
+
option_d: z.ZodOptional<z.ZodString>;
|
|
68
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
options?: string[] | undefined;
|
|
71
|
+
option_a?: string | undefined;
|
|
72
|
+
option_b?: string | undefined;
|
|
73
|
+
option_c?: string | undefined;
|
|
74
|
+
option_d?: string | undefined;
|
|
75
|
+
}, {
|
|
76
|
+
options?: string[] | undefined;
|
|
77
|
+
option_a?: string | undefined;
|
|
78
|
+
option_b?: string | undefined;
|
|
79
|
+
option_c?: string | undefined;
|
|
80
|
+
option_d?: string | undefined;
|
|
81
|
+
}>>;
|
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
|
83
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
84
|
+
options?: string[] | undefined;
|
|
85
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
86
|
+
extended_duration?: boolean | undefined;
|
|
87
|
+
poll_attachment?: {
|
|
88
|
+
options?: string[] | undefined;
|
|
89
|
+
option_a?: string | undefined;
|
|
90
|
+
option_b?: string | undefined;
|
|
91
|
+
option_c?: string | undefined;
|
|
92
|
+
option_d?: string | undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
}, {
|
|
95
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
96
|
+
options?: string[] | undefined;
|
|
97
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
98
|
+
extended_duration?: boolean | undefined;
|
|
99
|
+
poll_attachment?: {
|
|
100
|
+
options?: string[] | undefined;
|
|
101
|
+
option_a?: string | undefined;
|
|
102
|
+
option_b?: string | undefined;
|
|
103
|
+
option_c?: string | undefined;
|
|
104
|
+
option_d?: string | undefined;
|
|
105
|
+
} | undefined;
|
|
106
|
+
}>, z.ZodNull]>>;
|
|
107
|
+
poll_attachment: z.ZodOptional<z.ZodObject<{
|
|
108
|
+
option_a: z.ZodOptional<z.ZodString>;
|
|
109
|
+
option_b: z.ZodOptional<z.ZodString>;
|
|
110
|
+
option_c: z.ZodOptional<z.ZodString>;
|
|
111
|
+
option_d: z.ZodOptional<z.ZodString>;
|
|
112
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
options?: string[] | undefined;
|
|
115
|
+
option_a?: string | undefined;
|
|
116
|
+
option_b?: string | undefined;
|
|
117
|
+
option_c?: string | undefined;
|
|
118
|
+
option_d?: string | undefined;
|
|
119
|
+
}, {
|
|
120
|
+
options?: string[] | undefined;
|
|
121
|
+
option_a?: string | undefined;
|
|
122
|
+
option_b?: string | undefined;
|
|
123
|
+
option_c?: string | undefined;
|
|
124
|
+
option_d?: string | undefined;
|
|
125
|
+
}>>;
|
|
126
|
+
is_comment_prompt_used: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
+
is_poll_duration_extended: z.ZodOptional<z.ZodBoolean>;
|
|
58
128
|
}, "strip", z.ZodTypeAny, {
|
|
59
129
|
post_type?: "post" | "feed" | "story" | "reel" | "carousel" | undefined;
|
|
60
130
|
reel_cover_url?: string | undefined;
|
|
@@ -83,6 +153,28 @@ declare const instagramSettingsSchema: z.ZodObject<{
|
|
|
83
153
|
}[] | undefined;
|
|
84
154
|
is_ai_generated?: boolean | undefined;
|
|
85
155
|
audio_id?: string | undefined;
|
|
156
|
+
poll_attachment?: {
|
|
157
|
+
options?: string[] | undefined;
|
|
158
|
+
option_a?: string | undefined;
|
|
159
|
+
option_b?: string | undefined;
|
|
160
|
+
option_c?: string | undefined;
|
|
161
|
+
option_d?: string | undefined;
|
|
162
|
+
} | undefined;
|
|
163
|
+
caption_addon?: {
|
|
164
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
165
|
+
options?: string[] | undefined;
|
|
166
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
167
|
+
extended_duration?: boolean | undefined;
|
|
168
|
+
poll_attachment?: {
|
|
169
|
+
options?: string[] | undefined;
|
|
170
|
+
option_a?: string | undefined;
|
|
171
|
+
option_b?: string | undefined;
|
|
172
|
+
option_c?: string | undefined;
|
|
173
|
+
option_d?: string | undefined;
|
|
174
|
+
} | undefined;
|
|
175
|
+
} | null | undefined;
|
|
176
|
+
is_comment_prompt_used?: boolean | undefined;
|
|
177
|
+
is_poll_duration_extended?: boolean | undefined;
|
|
86
178
|
}, {
|
|
87
179
|
post_type?: "post" | "feed" | "story" | "reel" | "carousel" | undefined;
|
|
88
180
|
reel_cover_url?: string | undefined;
|
|
@@ -111,6 +203,28 @@ declare const instagramSettingsSchema: z.ZodObject<{
|
|
|
111
203
|
}[] | undefined;
|
|
112
204
|
is_ai_generated?: boolean | undefined;
|
|
113
205
|
audio_id?: string | undefined;
|
|
206
|
+
poll_attachment?: {
|
|
207
|
+
options?: string[] | undefined;
|
|
208
|
+
option_a?: string | undefined;
|
|
209
|
+
option_b?: string | undefined;
|
|
210
|
+
option_c?: string | undefined;
|
|
211
|
+
option_d?: string | undefined;
|
|
212
|
+
} | undefined;
|
|
213
|
+
caption_addon?: {
|
|
214
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
215
|
+
options?: string[] | undefined;
|
|
216
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
217
|
+
extended_duration?: boolean | undefined;
|
|
218
|
+
poll_attachment?: {
|
|
219
|
+
options?: string[] | undefined;
|
|
220
|
+
option_a?: string | undefined;
|
|
221
|
+
option_b?: string | undefined;
|
|
222
|
+
option_c?: string | undefined;
|
|
223
|
+
option_d?: string | undefined;
|
|
224
|
+
} | undefined;
|
|
225
|
+
} | null | undefined;
|
|
226
|
+
is_comment_prompt_used?: boolean | undefined;
|
|
227
|
+
is_poll_duration_extended?: boolean | undefined;
|
|
114
228
|
}>;
|
|
115
229
|
declare const platformSettingsSchema: z.ZodObject<{
|
|
116
230
|
__type: z.ZodOptional<z.ZodString>;
|
|
@@ -234,6 +348,22 @@ declare const platformSettingsSchema: z.ZodObject<{
|
|
|
234
348
|
paid_partnership: z.ZodOptional<z.ZodBoolean>;
|
|
235
349
|
is_ai_generated: z.ZodOptional<z.ZodBoolean>;
|
|
236
350
|
audio_id: z.ZodOptional<z.ZodString>;
|
|
351
|
+
caption_addon: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
352
|
+
type: z.ZodOptional<z.ZodEnum<["none", "poll", "comment_prompt"]>>;
|
|
353
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
354
|
+
extended_duration: z.ZodOptional<z.ZodBoolean>;
|
|
355
|
+
}, "strip", z.ZodTypeAny, {
|
|
356
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
357
|
+
options?: string[] | undefined;
|
|
358
|
+
extended_duration?: boolean | undefined;
|
|
359
|
+
}, {
|
|
360
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
361
|
+
options?: string[] | undefined;
|
|
362
|
+
extended_duration?: boolean | undefined;
|
|
363
|
+
}>, z.ZodNull]>>;
|
|
364
|
+
poll_attachment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
365
|
+
is_comment_prompt_used: z.ZodOptional<z.ZodBoolean>;
|
|
366
|
+
is_poll_duration_extended: z.ZodOptional<z.ZodBoolean>;
|
|
237
367
|
ai_generated: z.ZodOptional<z.ZodBoolean>;
|
|
238
368
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
239
369
|
__type: z.ZodOptional<z.ZodString>;
|
|
@@ -357,6 +487,22 @@ declare const platformSettingsSchema: z.ZodObject<{
|
|
|
357
487
|
paid_partnership: z.ZodOptional<z.ZodBoolean>;
|
|
358
488
|
is_ai_generated: z.ZodOptional<z.ZodBoolean>;
|
|
359
489
|
audio_id: z.ZodOptional<z.ZodString>;
|
|
490
|
+
caption_addon: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
491
|
+
type: z.ZodOptional<z.ZodEnum<["none", "poll", "comment_prompt"]>>;
|
|
492
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
493
|
+
extended_duration: z.ZodOptional<z.ZodBoolean>;
|
|
494
|
+
}, "strip", z.ZodTypeAny, {
|
|
495
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
496
|
+
options?: string[] | undefined;
|
|
497
|
+
extended_duration?: boolean | undefined;
|
|
498
|
+
}, {
|
|
499
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
500
|
+
options?: string[] | undefined;
|
|
501
|
+
extended_duration?: boolean | undefined;
|
|
502
|
+
}>, z.ZodNull]>>;
|
|
503
|
+
poll_attachment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
504
|
+
is_comment_prompt_used: z.ZodOptional<z.ZodBoolean>;
|
|
505
|
+
is_poll_duration_extended: z.ZodOptional<z.ZodBoolean>;
|
|
360
506
|
ai_generated: z.ZodOptional<z.ZodBoolean>;
|
|
361
507
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
362
508
|
__type: z.ZodOptional<z.ZodString>;
|
|
@@ -480,6 +626,22 @@ declare const platformSettingsSchema: z.ZodObject<{
|
|
|
480
626
|
paid_partnership: z.ZodOptional<z.ZodBoolean>;
|
|
481
627
|
is_ai_generated: z.ZodOptional<z.ZodBoolean>;
|
|
482
628
|
audio_id: z.ZodOptional<z.ZodString>;
|
|
629
|
+
caption_addon: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
630
|
+
type: z.ZodOptional<z.ZodEnum<["none", "poll", "comment_prompt"]>>;
|
|
631
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
632
|
+
extended_duration: z.ZodOptional<z.ZodBoolean>;
|
|
633
|
+
}, "strip", z.ZodTypeAny, {
|
|
634
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
635
|
+
options?: string[] | undefined;
|
|
636
|
+
extended_duration?: boolean | undefined;
|
|
637
|
+
}, {
|
|
638
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
639
|
+
options?: string[] | undefined;
|
|
640
|
+
extended_duration?: boolean | undefined;
|
|
641
|
+
}>, z.ZodNull]>>;
|
|
642
|
+
poll_attachment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
643
|
+
is_comment_prompt_used: z.ZodOptional<z.ZodBoolean>;
|
|
644
|
+
is_poll_duration_extended: z.ZodOptional<z.ZodBoolean>;
|
|
483
645
|
ai_generated: z.ZodOptional<z.ZodBoolean>;
|
|
484
646
|
}, z.ZodTypeAny, "passthrough">>;
|
|
485
647
|
type EditInput = {
|
|
@@ -497,6 +659,9 @@ type UpdatePostInput = EditInput & {
|
|
|
497
659
|
status?: 'scheduled' | 'paused' | 'draft';
|
|
498
660
|
release_id?: string;
|
|
499
661
|
group_id?: string;
|
|
662
|
+
approval_action?: 'request' | 'approve' | 'request_changes' | 'reject';
|
|
663
|
+
approval_axis?: 'asset' | 'caption';
|
|
664
|
+
approval_note?: string;
|
|
500
665
|
};
|
|
501
666
|
export declare const updatePostTool: {
|
|
502
667
|
name: string;
|
|
@@ -565,6 +730,76 @@ export declare const updatePostTool: {
|
|
|
565
730
|
reel_thumb_offset: z.ZodOptional<z.ZodNumber>;
|
|
566
731
|
is_ai_generated: z.ZodOptional<z.ZodBoolean>;
|
|
567
732
|
audio_id: z.ZodOptional<z.ZodString>;
|
|
733
|
+
caption_addon: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
734
|
+
type: z.ZodOptional<z.ZodEnum<["none", "poll", "comment_prompt"]>>;
|
|
735
|
+
kind: z.ZodOptional<z.ZodEnum<["none", "poll", "comment_prompt"]>>;
|
|
736
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
737
|
+
extended_duration: z.ZodOptional<z.ZodBoolean>;
|
|
738
|
+
poll_attachment: z.ZodOptional<z.ZodObject<{
|
|
739
|
+
option_a: z.ZodOptional<z.ZodString>;
|
|
740
|
+
option_b: z.ZodOptional<z.ZodString>;
|
|
741
|
+
option_c: z.ZodOptional<z.ZodString>;
|
|
742
|
+
option_d: z.ZodOptional<z.ZodString>;
|
|
743
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
744
|
+
}, "strip", z.ZodTypeAny, {
|
|
745
|
+
options?: string[] | undefined;
|
|
746
|
+
option_a?: string | undefined;
|
|
747
|
+
option_b?: string | undefined;
|
|
748
|
+
option_c?: string | undefined;
|
|
749
|
+
option_d?: string | undefined;
|
|
750
|
+
}, {
|
|
751
|
+
options?: string[] | undefined;
|
|
752
|
+
option_a?: string | undefined;
|
|
753
|
+
option_b?: string | undefined;
|
|
754
|
+
option_c?: string | undefined;
|
|
755
|
+
option_d?: string | undefined;
|
|
756
|
+
}>>;
|
|
757
|
+
}, "strip", z.ZodTypeAny, {
|
|
758
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
759
|
+
options?: string[] | undefined;
|
|
760
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
761
|
+
extended_duration?: boolean | undefined;
|
|
762
|
+
poll_attachment?: {
|
|
763
|
+
options?: string[] | undefined;
|
|
764
|
+
option_a?: string | undefined;
|
|
765
|
+
option_b?: string | undefined;
|
|
766
|
+
option_c?: string | undefined;
|
|
767
|
+
option_d?: string | undefined;
|
|
768
|
+
} | undefined;
|
|
769
|
+
}, {
|
|
770
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
771
|
+
options?: string[] | undefined;
|
|
772
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
773
|
+
extended_duration?: boolean | undefined;
|
|
774
|
+
poll_attachment?: {
|
|
775
|
+
options?: string[] | undefined;
|
|
776
|
+
option_a?: string | undefined;
|
|
777
|
+
option_b?: string | undefined;
|
|
778
|
+
option_c?: string | undefined;
|
|
779
|
+
option_d?: string | undefined;
|
|
780
|
+
} | undefined;
|
|
781
|
+
}>, z.ZodNull]>>;
|
|
782
|
+
poll_attachment: z.ZodOptional<z.ZodObject<{
|
|
783
|
+
option_a: z.ZodOptional<z.ZodString>;
|
|
784
|
+
option_b: z.ZodOptional<z.ZodString>;
|
|
785
|
+
option_c: z.ZodOptional<z.ZodString>;
|
|
786
|
+
option_d: z.ZodOptional<z.ZodString>;
|
|
787
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
788
|
+
}, "strip", z.ZodTypeAny, {
|
|
789
|
+
options?: string[] | undefined;
|
|
790
|
+
option_a?: string | undefined;
|
|
791
|
+
option_b?: string | undefined;
|
|
792
|
+
option_c?: string | undefined;
|
|
793
|
+
option_d?: string | undefined;
|
|
794
|
+
}, {
|
|
795
|
+
options?: string[] | undefined;
|
|
796
|
+
option_a?: string | undefined;
|
|
797
|
+
option_b?: string | undefined;
|
|
798
|
+
option_c?: string | undefined;
|
|
799
|
+
option_d?: string | undefined;
|
|
800
|
+
}>>;
|
|
801
|
+
is_comment_prompt_used: z.ZodOptional<z.ZodBoolean>;
|
|
802
|
+
is_poll_duration_extended: z.ZodOptional<z.ZodBoolean>;
|
|
568
803
|
}, "strip", z.ZodTypeAny, {
|
|
569
804
|
post_type?: "post" | "feed" | "story" | "reel" | "carousel" | undefined;
|
|
570
805
|
reel_cover_url?: string | undefined;
|
|
@@ -593,6 +828,28 @@ export declare const updatePostTool: {
|
|
|
593
828
|
}[] | undefined;
|
|
594
829
|
is_ai_generated?: boolean | undefined;
|
|
595
830
|
audio_id?: string | undefined;
|
|
831
|
+
poll_attachment?: {
|
|
832
|
+
options?: string[] | undefined;
|
|
833
|
+
option_a?: string | undefined;
|
|
834
|
+
option_b?: string | undefined;
|
|
835
|
+
option_c?: string | undefined;
|
|
836
|
+
option_d?: string | undefined;
|
|
837
|
+
} | undefined;
|
|
838
|
+
caption_addon?: {
|
|
839
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
840
|
+
options?: string[] | undefined;
|
|
841
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
842
|
+
extended_duration?: boolean | undefined;
|
|
843
|
+
poll_attachment?: {
|
|
844
|
+
options?: string[] | undefined;
|
|
845
|
+
option_a?: string | undefined;
|
|
846
|
+
option_b?: string | undefined;
|
|
847
|
+
option_c?: string | undefined;
|
|
848
|
+
option_d?: string | undefined;
|
|
849
|
+
} | undefined;
|
|
850
|
+
} | null | undefined;
|
|
851
|
+
is_comment_prompt_used?: boolean | undefined;
|
|
852
|
+
is_poll_duration_extended?: boolean | undefined;
|
|
596
853
|
}, {
|
|
597
854
|
post_type?: "post" | "feed" | "story" | "reel" | "carousel" | undefined;
|
|
598
855
|
reel_cover_url?: string | undefined;
|
|
@@ -621,6 +878,28 @@ export declare const updatePostTool: {
|
|
|
621
878
|
}[] | undefined;
|
|
622
879
|
is_ai_generated?: boolean | undefined;
|
|
623
880
|
audio_id?: string | undefined;
|
|
881
|
+
poll_attachment?: {
|
|
882
|
+
options?: string[] | undefined;
|
|
883
|
+
option_a?: string | undefined;
|
|
884
|
+
option_b?: string | undefined;
|
|
885
|
+
option_c?: string | undefined;
|
|
886
|
+
option_d?: string | undefined;
|
|
887
|
+
} | undefined;
|
|
888
|
+
caption_addon?: {
|
|
889
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
890
|
+
options?: string[] | undefined;
|
|
891
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
892
|
+
extended_duration?: boolean | undefined;
|
|
893
|
+
poll_attachment?: {
|
|
894
|
+
options?: string[] | undefined;
|
|
895
|
+
option_a?: string | undefined;
|
|
896
|
+
option_b?: string | undefined;
|
|
897
|
+
option_c?: string | undefined;
|
|
898
|
+
option_d?: string | undefined;
|
|
899
|
+
} | undefined;
|
|
900
|
+
} | null | undefined;
|
|
901
|
+
is_comment_prompt_used?: boolean | undefined;
|
|
902
|
+
is_poll_duration_extended?: boolean | undefined;
|
|
624
903
|
}>>;
|
|
625
904
|
platform_settings: z.ZodOptional<z.ZodObject<{
|
|
626
905
|
__type: z.ZodOptional<z.ZodString>;
|
|
@@ -744,6 +1023,22 @@ export declare const updatePostTool: {
|
|
|
744
1023
|
paid_partnership: z.ZodOptional<z.ZodBoolean>;
|
|
745
1024
|
is_ai_generated: z.ZodOptional<z.ZodBoolean>;
|
|
746
1025
|
audio_id: z.ZodOptional<z.ZodString>;
|
|
1026
|
+
caption_addon: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1027
|
+
type: z.ZodOptional<z.ZodEnum<["none", "poll", "comment_prompt"]>>;
|
|
1028
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1029
|
+
extended_duration: z.ZodOptional<z.ZodBoolean>;
|
|
1030
|
+
}, "strip", z.ZodTypeAny, {
|
|
1031
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1032
|
+
options?: string[] | undefined;
|
|
1033
|
+
extended_duration?: boolean | undefined;
|
|
1034
|
+
}, {
|
|
1035
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1036
|
+
options?: string[] | undefined;
|
|
1037
|
+
extended_duration?: boolean | undefined;
|
|
1038
|
+
}>, z.ZodNull]>>;
|
|
1039
|
+
poll_attachment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1040
|
+
is_comment_prompt_used: z.ZodOptional<z.ZodBoolean>;
|
|
1041
|
+
is_poll_duration_extended: z.ZodOptional<z.ZodBoolean>;
|
|
747
1042
|
ai_generated: z.ZodOptional<z.ZodBoolean>;
|
|
748
1043
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
749
1044
|
__type: z.ZodOptional<z.ZodString>;
|
|
@@ -867,6 +1162,22 @@ export declare const updatePostTool: {
|
|
|
867
1162
|
paid_partnership: z.ZodOptional<z.ZodBoolean>;
|
|
868
1163
|
is_ai_generated: z.ZodOptional<z.ZodBoolean>;
|
|
869
1164
|
audio_id: z.ZodOptional<z.ZodString>;
|
|
1165
|
+
caption_addon: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1166
|
+
type: z.ZodOptional<z.ZodEnum<["none", "poll", "comment_prompt"]>>;
|
|
1167
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1168
|
+
extended_duration: z.ZodOptional<z.ZodBoolean>;
|
|
1169
|
+
}, "strip", z.ZodTypeAny, {
|
|
1170
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1171
|
+
options?: string[] | undefined;
|
|
1172
|
+
extended_duration?: boolean | undefined;
|
|
1173
|
+
}, {
|
|
1174
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1175
|
+
options?: string[] | undefined;
|
|
1176
|
+
extended_duration?: boolean | undefined;
|
|
1177
|
+
}>, z.ZodNull]>>;
|
|
1178
|
+
poll_attachment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1179
|
+
is_comment_prompt_used: z.ZodOptional<z.ZodBoolean>;
|
|
1180
|
+
is_poll_duration_extended: z.ZodOptional<z.ZodBoolean>;
|
|
870
1181
|
ai_generated: z.ZodOptional<z.ZodBoolean>;
|
|
871
1182
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
872
1183
|
__type: z.ZodOptional<z.ZodString>;
|
|
@@ -990,16 +1301,36 @@ export declare const updatePostTool: {
|
|
|
990
1301
|
paid_partnership: z.ZodOptional<z.ZodBoolean>;
|
|
991
1302
|
is_ai_generated: z.ZodOptional<z.ZodBoolean>;
|
|
992
1303
|
audio_id: z.ZodOptional<z.ZodString>;
|
|
1304
|
+
caption_addon: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1305
|
+
type: z.ZodOptional<z.ZodEnum<["none", "poll", "comment_prompt"]>>;
|
|
1306
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1307
|
+
extended_duration: z.ZodOptional<z.ZodBoolean>;
|
|
1308
|
+
}, "strip", z.ZodTypeAny, {
|
|
1309
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1310
|
+
options?: string[] | undefined;
|
|
1311
|
+
extended_duration?: boolean | undefined;
|
|
1312
|
+
}, {
|
|
1313
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1314
|
+
options?: string[] | undefined;
|
|
1315
|
+
extended_duration?: boolean | undefined;
|
|
1316
|
+
}>, z.ZodNull]>>;
|
|
1317
|
+
poll_attachment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1318
|
+
is_comment_prompt_used: z.ZodOptional<z.ZodBoolean>;
|
|
1319
|
+
is_poll_duration_extended: z.ZodOptional<z.ZodBoolean>;
|
|
993
1320
|
ai_generated: z.ZodOptional<z.ZodBoolean>;
|
|
994
1321
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
995
1322
|
status: z.ZodOptional<z.ZodEnum<["scheduled", "paused", "draft"]>>;
|
|
996
1323
|
release_id: z.ZodOptional<z.ZodString>;
|
|
997
1324
|
group_id: z.ZodOptional<z.ZodString>;
|
|
1325
|
+
approval_action: z.ZodOptional<z.ZodEnum<["request", "approve", "request_changes", "reject"]>>;
|
|
1326
|
+
approval_axis: z.ZodOptional<z.ZodEnum<["asset", "caption"]>>;
|
|
1327
|
+
approval_note: z.ZodOptional<z.ZodString>;
|
|
998
1328
|
confirm: z.ZodLiteral<true>;
|
|
999
1329
|
}, "strip", z.ZodTypeAny, {
|
|
1000
1330
|
confirm: true;
|
|
1001
1331
|
post_id: number;
|
|
1002
1332
|
status?: "scheduled" | "paused" | "draft" | undefined;
|
|
1333
|
+
caption?: string | undefined;
|
|
1003
1334
|
scheduled_at?: string | undefined;
|
|
1004
1335
|
media_url?: string | undefined;
|
|
1005
1336
|
media_urls?: string[] | undefined;
|
|
@@ -1007,7 +1338,6 @@ export declare const updatePostTool: {
|
|
|
1007
1338
|
reel_cover_url?: string | undefined;
|
|
1008
1339
|
reel_cover_method?: string | undefined;
|
|
1009
1340
|
reel_thumb_offset?: number | undefined;
|
|
1010
|
-
caption?: string | undefined;
|
|
1011
1341
|
instagram_settings?: {
|
|
1012
1342
|
post_type?: "post" | "feed" | "story" | "reel" | "carousel" | undefined;
|
|
1013
1343
|
reel_cover_url?: string | undefined;
|
|
@@ -1036,6 +1366,28 @@ export declare const updatePostTool: {
|
|
|
1036
1366
|
}[] | undefined;
|
|
1037
1367
|
is_ai_generated?: boolean | undefined;
|
|
1038
1368
|
audio_id?: string | undefined;
|
|
1369
|
+
poll_attachment?: {
|
|
1370
|
+
options?: string[] | undefined;
|
|
1371
|
+
option_a?: string | undefined;
|
|
1372
|
+
option_b?: string | undefined;
|
|
1373
|
+
option_c?: string | undefined;
|
|
1374
|
+
option_d?: string | undefined;
|
|
1375
|
+
} | undefined;
|
|
1376
|
+
caption_addon?: {
|
|
1377
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1378
|
+
options?: string[] | undefined;
|
|
1379
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1380
|
+
extended_duration?: boolean | undefined;
|
|
1381
|
+
poll_attachment?: {
|
|
1382
|
+
options?: string[] | undefined;
|
|
1383
|
+
option_a?: string | undefined;
|
|
1384
|
+
option_b?: string | undefined;
|
|
1385
|
+
option_c?: string | undefined;
|
|
1386
|
+
option_d?: string | undefined;
|
|
1387
|
+
} | undefined;
|
|
1388
|
+
} | null | undefined;
|
|
1389
|
+
is_comment_prompt_used?: boolean | undefined;
|
|
1390
|
+
is_poll_duration_extended?: boolean | undefined;
|
|
1039
1391
|
} | undefined;
|
|
1040
1392
|
platform_settings?: z.objectOutputType<{
|
|
1041
1393
|
__type: z.ZodOptional<z.ZodString>;
|
|
@@ -1159,14 +1511,34 @@ export declare const updatePostTool: {
|
|
|
1159
1511
|
paid_partnership: z.ZodOptional<z.ZodBoolean>;
|
|
1160
1512
|
is_ai_generated: z.ZodOptional<z.ZodBoolean>;
|
|
1161
1513
|
audio_id: z.ZodOptional<z.ZodString>;
|
|
1514
|
+
caption_addon: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1515
|
+
type: z.ZodOptional<z.ZodEnum<["none", "poll", "comment_prompt"]>>;
|
|
1516
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1517
|
+
extended_duration: z.ZodOptional<z.ZodBoolean>;
|
|
1518
|
+
}, "strip", z.ZodTypeAny, {
|
|
1519
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1520
|
+
options?: string[] | undefined;
|
|
1521
|
+
extended_duration?: boolean | undefined;
|
|
1522
|
+
}, {
|
|
1523
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1524
|
+
options?: string[] | undefined;
|
|
1525
|
+
extended_duration?: boolean | undefined;
|
|
1526
|
+
}>, z.ZodNull]>>;
|
|
1527
|
+
poll_attachment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1528
|
+
is_comment_prompt_used: z.ZodOptional<z.ZodBoolean>;
|
|
1529
|
+
is_poll_duration_extended: z.ZodOptional<z.ZodBoolean>;
|
|
1162
1530
|
ai_generated: z.ZodOptional<z.ZodBoolean>;
|
|
1163
1531
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1164
1532
|
release_id?: string | undefined;
|
|
1165
1533
|
group_id?: string | undefined;
|
|
1534
|
+
approval_action?: "request" | "approve" | "request_changes" | "reject" | undefined;
|
|
1535
|
+
approval_axis?: "asset" | "caption" | undefined;
|
|
1536
|
+
approval_note?: string | undefined;
|
|
1166
1537
|
}, {
|
|
1167
1538
|
confirm: true;
|
|
1168
1539
|
post_id: number;
|
|
1169
1540
|
status?: "scheduled" | "paused" | "draft" | undefined;
|
|
1541
|
+
caption?: string | undefined;
|
|
1170
1542
|
scheduled_at?: string | undefined;
|
|
1171
1543
|
media_url?: string | undefined;
|
|
1172
1544
|
media_urls?: string[] | undefined;
|
|
@@ -1174,7 +1546,6 @@ export declare const updatePostTool: {
|
|
|
1174
1546
|
reel_cover_url?: string | undefined;
|
|
1175
1547
|
reel_cover_method?: string | undefined;
|
|
1176
1548
|
reel_thumb_offset?: number | undefined;
|
|
1177
|
-
caption?: string | undefined;
|
|
1178
1549
|
instagram_settings?: {
|
|
1179
1550
|
post_type?: "post" | "feed" | "story" | "reel" | "carousel" | undefined;
|
|
1180
1551
|
reel_cover_url?: string | undefined;
|
|
@@ -1203,6 +1574,28 @@ export declare const updatePostTool: {
|
|
|
1203
1574
|
}[] | undefined;
|
|
1204
1575
|
is_ai_generated?: boolean | undefined;
|
|
1205
1576
|
audio_id?: string | undefined;
|
|
1577
|
+
poll_attachment?: {
|
|
1578
|
+
options?: string[] | undefined;
|
|
1579
|
+
option_a?: string | undefined;
|
|
1580
|
+
option_b?: string | undefined;
|
|
1581
|
+
option_c?: string | undefined;
|
|
1582
|
+
option_d?: string | undefined;
|
|
1583
|
+
} | undefined;
|
|
1584
|
+
caption_addon?: {
|
|
1585
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1586
|
+
options?: string[] | undefined;
|
|
1587
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1588
|
+
extended_duration?: boolean | undefined;
|
|
1589
|
+
poll_attachment?: {
|
|
1590
|
+
options?: string[] | undefined;
|
|
1591
|
+
option_a?: string | undefined;
|
|
1592
|
+
option_b?: string | undefined;
|
|
1593
|
+
option_c?: string | undefined;
|
|
1594
|
+
option_d?: string | undefined;
|
|
1595
|
+
} | undefined;
|
|
1596
|
+
} | null | undefined;
|
|
1597
|
+
is_comment_prompt_used?: boolean | undefined;
|
|
1598
|
+
is_poll_duration_extended?: boolean | undefined;
|
|
1206
1599
|
} | undefined;
|
|
1207
1600
|
platform_settings?: z.objectInputType<{
|
|
1208
1601
|
__type: z.ZodOptional<z.ZodString>;
|
|
@@ -1326,10 +1719,29 @@ export declare const updatePostTool: {
|
|
|
1326
1719
|
paid_partnership: z.ZodOptional<z.ZodBoolean>;
|
|
1327
1720
|
is_ai_generated: z.ZodOptional<z.ZodBoolean>;
|
|
1328
1721
|
audio_id: z.ZodOptional<z.ZodString>;
|
|
1722
|
+
caption_addon: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1723
|
+
type: z.ZodOptional<z.ZodEnum<["none", "poll", "comment_prompt"]>>;
|
|
1724
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1725
|
+
extended_duration: z.ZodOptional<z.ZodBoolean>;
|
|
1726
|
+
}, "strip", z.ZodTypeAny, {
|
|
1727
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1728
|
+
options?: string[] | undefined;
|
|
1729
|
+
extended_duration?: boolean | undefined;
|
|
1730
|
+
}, {
|
|
1731
|
+
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1732
|
+
options?: string[] | undefined;
|
|
1733
|
+
extended_duration?: boolean | undefined;
|
|
1734
|
+
}>, z.ZodNull]>>;
|
|
1735
|
+
poll_attachment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1736
|
+
is_comment_prompt_used: z.ZodOptional<z.ZodBoolean>;
|
|
1737
|
+
is_poll_duration_extended: z.ZodOptional<z.ZodBoolean>;
|
|
1329
1738
|
ai_generated: z.ZodOptional<z.ZodBoolean>;
|
|
1330
1739
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1331
1740
|
release_id?: string | undefined;
|
|
1332
1741
|
group_id?: string | undefined;
|
|
1742
|
+
approval_action?: "request" | "approve" | "request_changes" | "reject" | undefined;
|
|
1743
|
+
approval_axis?: "asset" | "caption" | undefined;
|
|
1744
|
+
approval_note?: string | undefined;
|
|
1333
1745
|
}>;
|
|
1334
1746
|
/** The old tools' exact input schemas, for alias calls (see alias-transport.ts). */
|
|
1335
1747
|
legacySchemas: {
|