posterly-mcp-server 0.26.0 → 0.27.0

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.
@@ -105,15 +105,15 @@ export declare const createPostsBatchTool: {
105
105
  allows_multiple_answers: z.ZodOptional<z.ZodBoolean>;
106
106
  }, "strip", z.ZodTypeAny, {
107
107
  options: string[];
108
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
108
109
  duration_minutes?: number | undefined;
109
110
  question?: string | undefined;
110
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
111
111
  allows_multiple_answers?: boolean | undefined;
112
112
  }, {
113
113
  options: string[];
114
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
114
115
  duration_minutes?: number | undefined;
115
116
  question?: string | undefined;
116
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
117
117
  allows_multiple_answers?: boolean | undefined;
118
118
  }>>;
119
119
  reply_control: z.ZodOptional<z.ZodEnum<["everyone", "accounts_you_follow", "mentioned_only", "followers_only", "parent_post_author_only"]>>;
@@ -182,15 +182,15 @@ export declare const createPostsBatchTool: {
182
182
  allows_multiple_answers: z.ZodOptional<z.ZodBoolean>;
183
183
  }, "strip", z.ZodTypeAny, {
184
184
  options: string[];
185
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
185
186
  duration_minutes?: number | undefined;
186
187
  question?: string | undefined;
187
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
188
188
  allows_multiple_answers?: boolean | undefined;
189
189
  }, {
190
190
  options: string[];
191
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
191
192
  duration_minutes?: number | undefined;
192
193
  question?: string | undefined;
193
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
194
194
  allows_multiple_answers?: boolean | undefined;
195
195
  }>>;
196
196
  reply_control: z.ZodOptional<z.ZodEnum<["everyone", "accounts_you_follow", "mentioned_only", "followers_only", "parent_post_author_only"]>>;
@@ -259,15 +259,15 @@ export declare const createPostsBatchTool: {
259
259
  allows_multiple_answers: z.ZodOptional<z.ZodBoolean>;
260
260
  }, "strip", z.ZodTypeAny, {
261
261
  options: string[];
262
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
262
263
  duration_minutes?: number | undefined;
263
264
  question?: string | undefined;
264
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
265
265
  allows_multiple_answers?: boolean | undefined;
266
266
  }, {
267
267
  options: string[];
268
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
268
269
  duration_minutes?: number | undefined;
269
270
  question?: string | undefined;
270
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
271
271
  allows_multiple_answers?: boolean | undefined;
272
272
  }>>;
273
273
  reply_control: z.ZodOptional<z.ZodEnum<["everyone", "accounts_you_follow", "mentioned_only", "followers_only", "parent_post_author_only"]>>;
@@ -369,15 +369,15 @@ export declare const createPostsBatchTool: {
369
369
  allows_multiple_answers: z.ZodOptional<z.ZodBoolean>;
370
370
  }, "strip", z.ZodTypeAny, {
371
371
  options: string[];
372
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
372
373
  duration_minutes?: number | undefined;
373
374
  question?: string | undefined;
374
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
375
375
  allows_multiple_answers?: boolean | undefined;
376
376
  }, {
377
377
  options: string[];
378
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
378
379
  duration_minutes?: number | undefined;
379
380
  question?: string | undefined;
380
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
381
381
  allows_multiple_answers?: boolean | undefined;
382
382
  }>>;
383
383
  reply_control: z.ZodOptional<z.ZodEnum<["everyone", "accounts_you_follow", "mentioned_only", "followers_only", "parent_post_author_only"]>>;
@@ -478,15 +478,15 @@ export declare const createPostsBatchTool: {
478
478
  allows_multiple_answers: z.ZodOptional<z.ZodBoolean>;
479
479
  }, "strip", z.ZodTypeAny, {
480
480
  options: string[];
481
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
481
482
  duration_minutes?: number | undefined;
482
483
  question?: string | undefined;
483
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
484
484
  allows_multiple_answers?: boolean | undefined;
485
485
  }, {
486
486
  options: string[];
487
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
487
488
  duration_minutes?: number | undefined;
488
489
  question?: string | undefined;
489
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
490
490
  allows_multiple_answers?: boolean | undefined;
491
491
  }>>;
492
492
  reply_control: z.ZodOptional<z.ZodEnum<["everyone", "accounts_you_follow", "mentioned_only", "followers_only", "parent_post_author_only"]>>;
@@ -591,15 +591,15 @@ export declare const createPostsBatchTool: {
591
591
  allows_multiple_answers: z.ZodOptional<z.ZodBoolean>;
592
592
  }, "strip", z.ZodTypeAny, {
593
593
  options: string[];
594
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
594
595
  duration_minutes?: number | undefined;
595
596
  question?: string | undefined;
596
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
597
597
  allows_multiple_answers?: boolean | undefined;
598
598
  }, {
599
599
  options: string[];
600
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
600
601
  duration_minutes?: number | undefined;
601
602
  question?: string | undefined;
602
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
603
603
  allows_multiple_answers?: boolean | undefined;
604
604
  }>>;
605
605
  reply_control: z.ZodOptional<z.ZodEnum<["everyone", "accounts_you_follow", "mentioned_only", "followers_only", "parent_post_author_only"]>>;
@@ -703,15 +703,15 @@ export declare const createPostsBatchTool: {
703
703
  allows_multiple_answers: z.ZodOptional<z.ZodBoolean>;
704
704
  }, "strip", z.ZodTypeAny, {
705
705
  options: string[];
706
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
706
707
  duration_minutes?: number | undefined;
707
708
  question?: string | undefined;
708
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
709
709
  allows_multiple_answers?: boolean | undefined;
710
710
  }, {
711
711
  options: string[];
712
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
712
713
  duration_minutes?: number | undefined;
713
714
  question?: string | undefined;
714
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
715
715
  allows_multiple_answers?: boolean | undefined;
716
716
  }>>;
717
717
  reply_control: z.ZodOptional<z.ZodEnum<["everyone", "accounts_you_follow", "mentioned_only", "followers_only", "parent_post_author_only"]>>;
@@ -12,15 +12,15 @@ export declare const replyGoogleBusinessReviewTool: {
12
12
  confirm: z.ZodLiteral<true>;
13
13
  }, "strip", z.ZodTypeAny, {
14
14
  confirm: true;
15
- review_name: string;
16
15
  comment: string;
16
+ review_name: string;
17
17
  workspace_id?: string | undefined;
18
18
  account_id?: number | undefined;
19
19
  location_id?: string | undefined;
20
20
  }, {
21
21
  confirm: true;
22
- review_name: string;
23
22
  comment: string;
23
+ review_name: string;
24
24
  workspace_id?: string | undefined;
25
25
  account_id?: number | undefined;
26
26
  location_id?: string | undefined;
@@ -0,0 +1,108 @@
1
+ import { z } from 'zod';
2
+ import type { PosterlyClient } from '../lib/api-client.js';
3
+ export declare const submitAgentFeedbackInputSchema: z.ZodObject<{
4
+ source: z.ZodEnum<["mcp", "cli", "rest", "skill"]>;
5
+ tool: z.ZodString;
6
+ outcome: z.ZodEnum<["success", "error", "abandoned"]>;
7
+ error_code: z.ZodOptional<z.ZodString>;
8
+ client: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
9
+ comment: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
10
+ context: z.ZodOptional<z.ZodObject<{
11
+ request_id: z.ZodOptional<z.ZodString>;
12
+ http_status: z.ZodOptional<z.ZodNumber>;
13
+ latency_ms: z.ZodOptional<z.ZodNumber>;
14
+ attempt: z.ZodOptional<z.ZodNumber>;
15
+ }, "strict", z.ZodTypeAny, {
16
+ request_id?: string | undefined;
17
+ http_status?: number | undefined;
18
+ latency_ms?: number | undefined;
19
+ attempt?: number | undefined;
20
+ }, {
21
+ request_id?: string | undefined;
22
+ http_status?: number | undefined;
23
+ latency_ms?: number | undefined;
24
+ attempt?: number | undefined;
25
+ }>>;
26
+ }, "strict", z.ZodTypeAny, {
27
+ source: "mcp" | "cli" | "rest" | "skill";
28
+ tool: string;
29
+ outcome: "success" | "error" | "abandoned";
30
+ error_code?: string | undefined;
31
+ client?: string | undefined;
32
+ comment?: string | undefined;
33
+ context?: {
34
+ request_id?: string | undefined;
35
+ http_status?: number | undefined;
36
+ latency_ms?: number | undefined;
37
+ attempt?: number | undefined;
38
+ } | undefined;
39
+ }, {
40
+ source: "mcp" | "cli" | "rest" | "skill";
41
+ tool: string;
42
+ outcome: "success" | "error" | "abandoned";
43
+ error_code?: string | undefined;
44
+ client?: string | undefined;
45
+ comment?: string | undefined;
46
+ context?: {
47
+ request_id?: string | undefined;
48
+ http_status?: number | undefined;
49
+ latency_ms?: number | undefined;
50
+ attempt?: number | undefined;
51
+ } | undefined;
52
+ }>;
53
+ export type SubmitAgentFeedbackInput = z.infer<typeof submitAgentFeedbackInputSchema>;
54
+ export declare const submitAgentFeedbackTool: {
55
+ name: string;
56
+ description: string;
57
+ inputSchema: z.ZodObject<{
58
+ source: z.ZodEnum<["mcp", "cli", "rest", "skill"]>;
59
+ tool: z.ZodString;
60
+ outcome: z.ZodEnum<["success", "error", "abandoned"]>;
61
+ error_code: z.ZodOptional<z.ZodString>;
62
+ client: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
63
+ comment: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
64
+ context: z.ZodOptional<z.ZodObject<{
65
+ request_id: z.ZodOptional<z.ZodString>;
66
+ http_status: z.ZodOptional<z.ZodNumber>;
67
+ latency_ms: z.ZodOptional<z.ZodNumber>;
68
+ attempt: z.ZodOptional<z.ZodNumber>;
69
+ }, "strict", z.ZodTypeAny, {
70
+ request_id?: string | undefined;
71
+ http_status?: number | undefined;
72
+ latency_ms?: number | undefined;
73
+ attempt?: number | undefined;
74
+ }, {
75
+ request_id?: string | undefined;
76
+ http_status?: number | undefined;
77
+ latency_ms?: number | undefined;
78
+ attempt?: number | undefined;
79
+ }>>;
80
+ }, "strict", z.ZodTypeAny, {
81
+ source: "mcp" | "cli" | "rest" | "skill";
82
+ tool: string;
83
+ outcome: "success" | "error" | "abandoned";
84
+ error_code?: string | undefined;
85
+ client?: string | undefined;
86
+ comment?: string | undefined;
87
+ context?: {
88
+ request_id?: string | undefined;
89
+ http_status?: number | undefined;
90
+ latency_ms?: number | undefined;
91
+ attempt?: number | undefined;
92
+ } | undefined;
93
+ }, {
94
+ source: "mcp" | "cli" | "rest" | "skill";
95
+ tool: string;
96
+ outcome: "success" | "error" | "abandoned";
97
+ error_code?: string | undefined;
98
+ client?: string | undefined;
99
+ comment?: string | undefined;
100
+ context?: {
101
+ request_id?: string | undefined;
102
+ http_status?: number | undefined;
103
+ latency_ms?: number | undefined;
104
+ attempt?: number | undefined;
105
+ } | undefined;
106
+ }>;
107
+ execute(client: PosterlyClient, input: SubmitAgentFeedbackInput): Promise<string>;
108
+ };
@@ -0,0 +1,32 @@
1
+ import { z } from 'zod';
2
+ const tokenSchema = z.string().regex(/^[a-z0-9][a-z0-9_.:-]{0,63}$/);
3
+ const printableSchema = (maxLength) => z.string().trim().min(1).max(maxLength).refine((value) => !/[\u0000-\u001f\u007f]/.test(value), 'Control characters are not allowed');
4
+ export const submitAgentFeedbackInputSchema = z.object({
5
+ source: z.enum(['mcp', 'cli', 'rest', 'skill']),
6
+ tool: tokenSchema,
7
+ outcome: z.enum(['success', 'error', 'abandoned']),
8
+ error_code: tokenSchema.optional(),
9
+ client: printableSchema(80).optional(),
10
+ comment: printableSchema(1000)
11
+ .refine((value) => !/(?:pst_(?:live|test)_|sk-[a-z0-9_-]{12,})/i.test(value), 'Comments must not contain secrets')
12
+ .optional(),
13
+ context: z.object({
14
+ request_id: z.string().regex(/^[a-zA-Z0-9_.:-]{8,80}$/).optional(),
15
+ http_status: z.number().int().min(100).max(599).optional(),
16
+ latency_ms: z.number().int().min(0).max(300000).optional(),
17
+ attempt: z.number().int().min(1).max(20).optional(),
18
+ }).strict().optional(),
19
+ }).strict();
20
+ export const submitAgentFeedbackTool = {
21
+ name: 'submit_agent_feedback',
22
+ description: 'Submit bounded private operational telemetry after a concrete posterly workflow outcome. This does not alter product content but writes a private feedback event. Never include API keys, prompts, captions, media URLs, personal data, or fabricated outcomes.',
23
+ inputSchema: submitAgentFeedbackInputSchema,
24
+ async execute(client, input) {
25
+ const result = await client.submitAgentFeedback(input);
26
+ return [
27
+ 'Agent feedback accepted.',
28
+ `• Feedback ID: ${result.feedback_id}`,
29
+ `• Request ID: ${result.request_id}`,
30
+ ].join('\n');
31
+ },
32
+ };
@@ -13,7 +13,7 @@ export const triggerPlatformHelperTool = {
13
13
  .enum(SUPPORTED_PLATFORM_INPUTS)
14
14
  .optional()
15
15
  .describe(`Platform hint when no account_id is supplied. Supported: ${SUPPORTED_PLATFORM_IDS.join(', ')}.`),
16
- params: z.record(z.unknown()).optional(),
16
+ params: z.record(z.string(), z.unknown()).optional(),
17
17
  }),
18
18
  async execute(client, input) {
19
19
  const result = await client.triggerPlatformHelper(input);
@@ -90,15 +90,15 @@ declare const platformSettingsSchema: z.ZodObject<{
90
90
  allows_multiple_answers: z.ZodOptional<z.ZodBoolean>;
91
91
  }, "strip", z.ZodTypeAny, {
92
92
  options: string[];
93
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
93
94
  duration_minutes?: number | undefined;
94
95
  question?: string | undefined;
95
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
96
96
  allows_multiple_answers?: boolean | undefined;
97
97
  }, {
98
98
  options: string[];
99
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
99
100
  duration_minutes?: number | undefined;
100
101
  question?: string | undefined;
101
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
102
102
  allows_multiple_answers?: boolean | undefined;
103
103
  }>>;
104
104
  reply_control: z.ZodOptional<z.ZodEnum<["everyone", "accounts_you_follow", "mentioned_only", "followers_only", "parent_post_author_only"]>>;
@@ -166,15 +166,15 @@ declare const platformSettingsSchema: z.ZodObject<{
166
166
  allows_multiple_answers: z.ZodOptional<z.ZodBoolean>;
167
167
  }, "strip", z.ZodTypeAny, {
168
168
  options: string[];
169
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
169
170
  duration_minutes?: number | undefined;
170
171
  question?: string | undefined;
171
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
172
172
  allows_multiple_answers?: boolean | undefined;
173
173
  }, {
174
174
  options: string[];
175
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
175
176
  duration_minutes?: number | undefined;
176
177
  question?: string | undefined;
177
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
178
178
  allows_multiple_answers?: boolean | undefined;
179
179
  }>>;
180
180
  reply_control: z.ZodOptional<z.ZodEnum<["everyone", "accounts_you_follow", "mentioned_only", "followers_only", "parent_post_author_only"]>>;
@@ -242,15 +242,15 @@ declare const platformSettingsSchema: z.ZodObject<{
242
242
  allows_multiple_answers: z.ZodOptional<z.ZodBoolean>;
243
243
  }, "strip", z.ZodTypeAny, {
244
244
  options: string[];
245
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
245
246
  duration_minutes?: number | undefined;
246
247
  question?: string | undefined;
247
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
248
248
  allows_multiple_answers?: boolean | undefined;
249
249
  }, {
250
250
  options: string[];
251
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
251
252
  duration_minutes?: number | undefined;
252
253
  question?: string | undefined;
253
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
254
254
  allows_multiple_answers?: boolean | undefined;
255
255
  }>>;
256
256
  reply_control: z.ZodOptional<z.ZodEnum<["everyone", "accounts_you_follow", "mentioned_only", "followers_only", "parent_post_author_only"]>>;
@@ -403,15 +403,15 @@ export declare const updatePostTool: {
403
403
  allows_multiple_answers: z.ZodOptional<z.ZodBoolean>;
404
404
  }, "strip", z.ZodTypeAny, {
405
405
  options: string[];
406
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
406
407
  duration_minutes?: number | undefined;
407
408
  question?: string | undefined;
408
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
409
409
  allows_multiple_answers?: boolean | undefined;
410
410
  }, {
411
411
  options: string[];
412
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
412
413
  duration_minutes?: number | undefined;
413
414
  question?: string | undefined;
414
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
415
415
  allows_multiple_answers?: boolean | undefined;
416
416
  }>>;
417
417
  reply_control: z.ZodOptional<z.ZodEnum<["everyone", "accounts_you_follow", "mentioned_only", "followers_only", "parent_post_author_only"]>>;
@@ -479,15 +479,15 @@ export declare const updatePostTool: {
479
479
  allows_multiple_answers: z.ZodOptional<z.ZodBoolean>;
480
480
  }, "strip", z.ZodTypeAny, {
481
481
  options: string[];
482
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
482
483
  duration_minutes?: number | undefined;
483
484
  question?: string | undefined;
484
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
485
485
  allows_multiple_answers?: boolean | undefined;
486
486
  }, {
487
487
  options: string[];
488
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
488
489
  duration_minutes?: number | undefined;
489
490
  question?: string | undefined;
490
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
491
491
  allows_multiple_answers?: boolean | undefined;
492
492
  }>>;
493
493
  reply_control: z.ZodOptional<z.ZodEnum<["everyone", "accounts_you_follow", "mentioned_only", "followers_only", "parent_post_author_only"]>>;
@@ -555,15 +555,15 @@ export declare const updatePostTool: {
555
555
  allows_multiple_answers: z.ZodOptional<z.ZodBoolean>;
556
556
  }, "strip", z.ZodTypeAny, {
557
557
  options: string[];
558
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
558
559
  duration_minutes?: number | undefined;
559
560
  question?: string | undefined;
560
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
561
561
  allows_multiple_answers?: boolean | undefined;
562
562
  }, {
563
563
  options: string[];
564
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
564
565
  duration_minutes?: number | undefined;
565
566
  question?: string | undefined;
566
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
567
567
  allows_multiple_answers?: boolean | undefined;
568
568
  }>>;
569
569
  reply_control: z.ZodOptional<z.ZodEnum<["everyone", "accounts_you_follow", "mentioned_only", "followers_only", "parent_post_author_only"]>>;
@@ -661,15 +661,15 @@ export declare const updatePostTool: {
661
661
  allows_multiple_answers: z.ZodOptional<z.ZodBoolean>;
662
662
  }, "strip", z.ZodTypeAny, {
663
663
  options: string[];
664
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
664
665
  duration_minutes?: number | undefined;
665
666
  question?: string | undefined;
666
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
667
667
  allows_multiple_answers?: boolean | undefined;
668
668
  }, {
669
669
  options: string[];
670
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
670
671
  duration_minutes?: number | undefined;
671
672
  question?: string | undefined;
672
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
673
673
  allows_multiple_answers?: boolean | undefined;
674
674
  }>>;
675
675
  reply_control: z.ZodOptional<z.ZodEnum<["everyone", "accounts_you_follow", "mentioned_only", "followers_only", "parent_post_author_only"]>>;
@@ -766,15 +766,15 @@ export declare const updatePostTool: {
766
766
  allows_multiple_answers: z.ZodOptional<z.ZodBoolean>;
767
767
  }, "strip", z.ZodTypeAny, {
768
768
  options: string[];
769
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
769
770
  duration_minutes?: number | undefined;
770
771
  question?: string | undefined;
771
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
772
772
  allows_multiple_answers?: boolean | undefined;
773
773
  }, {
774
774
  options: string[];
775
+ duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
775
776
  duration_minutes?: number | undefined;
776
777
  question?: string | undefined;
777
- duration?: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | undefined;
778
778
  allows_multiple_answers?: boolean | undefined;
779
779
  }>>;
780
780
  reply_control: z.ZodOptional<z.ZodEnum<["everyone", "accounts_you_follow", "mentioned_only", "followers_only", "parent_post_author_only"]>>;
@@ -12,7 +12,7 @@ const instagramSettingsSchema = z.object({
12
12
  .array(z.union([z.string(), z.object({ username: z.string().optional(), label: z.string().optional(), handle: z.string().optional() })]))
13
13
  .optional(),
14
14
  first_comment: z.string().optional(),
15
- media_alt_texts: z.record(z.string()).optional(),
15
+ media_alt_texts: z.record(z.string(), z.string()).optional(),
16
16
  reel_cover_url: z.string().optional(),
17
17
  reel_thumb_offset: z.number().nonnegative().optional(),
18
18
  });
@@ -20,7 +20,7 @@ const platformSettingsSchema = z.object({
20
20
  __type: z.string().optional(),
21
21
  post_type: z.string().optional(),
22
22
  content_type: z.string().optional(),
23
- media_alt_texts: z.record(z.string()).optional(),
23
+ media_alt_texts: z.record(z.string(), z.string()).optional(),
24
24
  reel_cover_url: z.string().optional(),
25
25
  reel_thumb_offset: z.number().nonnegative().optional(),
26
26
  reply_settings: z.enum(['everyone', 'following', 'mentionedUsers', 'subscribers', 'verified']).optional(),
@@ -28,11 +28,11 @@ const platformSettingsSchema = z.object({
28
28
  reply_control: z.enum(['everyone', 'accounts_you_follow', 'mentioned_only', 'followers_only', 'parent_post_author_only']).optional(),
29
29
  topic_tag: z.string().optional(),
30
30
  share_to_instagram: z.boolean().optional(), // Threads: also share the published post to the linked Instagram account as a Story
31
- text_attachment: z.record(z.unknown()).optional(),
31
+ text_attachment: z.record(z.string(), z.unknown()).optional(),
32
32
  text_format_preset_id: z.string().optional(),
33
33
  document_title: z.string().optional(),
34
34
  document_filename: z.string().optional(),
35
- mentions: z.array(z.record(z.unknown())).optional(),
35
+ mentions: z.array(z.record(z.string(), z.unknown())).optional(),
36
36
  thumbnail_url: z.string().optional(),
37
37
  thumbnail_method: z.string().optional(),
38
38
  privacy_level: z.string().optional(),
@@ -54,9 +54,9 @@ const platformSettingsSchema = z.object({
54
54
  cover_image_url: z.string().optional(),
55
55
  video_cover_url: z.string().optional(),
56
56
  cover_image_method: z.enum(['upload', 'frame', 'api']).optional(),
57
- event: z.record(z.unknown()).optional(),
58
- offer: z.record(z.unknown()).optional(),
59
- cta: z.record(z.unknown()).optional(),
57
+ event: z.record(z.string(), z.unknown()).optional(),
58
+ offer: z.record(z.string(), z.unknown()).optional(),
59
+ cta: z.record(z.string(), z.unknown()).optional(),
60
60
  notify_subscribers: z.boolean().optional(),
61
61
  add_shorts_hashtag: z.boolean().optional(),
62
62
  buttons: z.array(z.object({ text: z.string(), url: z.string() })).optional(),