posterly-mcp-server 0.40.0 → 0.43.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.
@@ -33,6 +33,22 @@ declare const instagramSettingsSchema: z.ZodObject<{
33
33
  }>]>, "many">>;
34
34
  first_comment: z.ZodOptional<z.ZodString>;
35
35
  media_alt_texts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36
+ media_accessibility: z.ZodOptional<z.ZodArray<z.ZodObject<{
37
+ index: z.ZodNumber;
38
+ asset_id: z.ZodOptional<z.ZodString>;
39
+ source_url: z.ZodOptional<z.ZodString>;
40
+ alt_text: z.ZodString;
41
+ }, "strip", z.ZodTypeAny, {
42
+ index: number;
43
+ alt_text: string;
44
+ asset_id?: string | undefined;
45
+ source_url?: string | undefined;
46
+ }, {
47
+ index: number;
48
+ alt_text: string;
49
+ asset_id?: string | undefined;
50
+ source_url?: string | undefined;
51
+ }>, "many">>;
36
52
  reel_cover_url: z.ZodOptional<z.ZodString>;
37
53
  reel_cover_method: z.ZodOptional<z.ZodString>;
38
54
  reel_thumb_offset: z.ZodOptional<z.ZodNumber>;
@@ -58,6 +74,12 @@ declare const instagramSettingsSchema: z.ZodObject<{
58
74
  })[] | undefined;
59
75
  first_comment?: string | undefined;
60
76
  media_alt_texts?: Record<string, string> | undefined;
77
+ media_accessibility?: {
78
+ index: number;
79
+ alt_text: string;
80
+ asset_id?: string | undefined;
81
+ source_url?: string | undefined;
82
+ }[] | undefined;
61
83
  is_ai_generated?: boolean | undefined;
62
84
  audio_id?: string | undefined;
63
85
  }, {
@@ -80,6 +102,12 @@ declare const instagramSettingsSchema: z.ZodObject<{
80
102
  })[] | undefined;
81
103
  first_comment?: string | undefined;
82
104
  media_alt_texts?: Record<string, string> | undefined;
105
+ media_accessibility?: {
106
+ index: number;
107
+ alt_text: string;
108
+ asset_id?: string | undefined;
109
+ source_url?: string | undefined;
110
+ }[] | undefined;
83
111
  is_ai_generated?: boolean | undefined;
84
112
  audio_id?: string | undefined;
85
113
  }>;
@@ -88,6 +116,22 @@ declare const platformSettingsSchema: z.ZodObject<{
88
116
  post_type: z.ZodOptional<z.ZodString>;
89
117
  content_type: z.ZodOptional<z.ZodString>;
90
118
  media_alt_texts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
119
+ media_accessibility: z.ZodOptional<z.ZodArray<z.ZodObject<{
120
+ index: z.ZodNumber;
121
+ asset_id: z.ZodOptional<z.ZodString>;
122
+ source_url: z.ZodOptional<z.ZodString>;
123
+ alt_text: z.ZodString;
124
+ }, "strip", z.ZodTypeAny, {
125
+ index: number;
126
+ alt_text: string;
127
+ asset_id?: string | undefined;
128
+ source_url?: string | undefined;
129
+ }, {
130
+ index: number;
131
+ alt_text: string;
132
+ asset_id?: string | undefined;
133
+ source_url?: string | undefined;
134
+ }>, "many">>;
91
135
  reel_cover_url: z.ZodOptional<z.ZodString>;
92
136
  reel_cover_method: z.ZodOptional<z.ZodString>;
93
137
  reel_thumb_offset: z.ZodOptional<z.ZodNumber>;
@@ -195,6 +239,22 @@ declare const platformSettingsSchema: z.ZodObject<{
195
239
  post_type: z.ZodOptional<z.ZodString>;
196
240
  content_type: z.ZodOptional<z.ZodString>;
197
241
  media_alt_texts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
242
+ media_accessibility: z.ZodOptional<z.ZodArray<z.ZodObject<{
243
+ index: z.ZodNumber;
244
+ asset_id: z.ZodOptional<z.ZodString>;
245
+ source_url: z.ZodOptional<z.ZodString>;
246
+ alt_text: z.ZodString;
247
+ }, "strip", z.ZodTypeAny, {
248
+ index: number;
249
+ alt_text: string;
250
+ asset_id?: string | undefined;
251
+ source_url?: string | undefined;
252
+ }, {
253
+ index: number;
254
+ alt_text: string;
255
+ asset_id?: string | undefined;
256
+ source_url?: string | undefined;
257
+ }>, "many">>;
198
258
  reel_cover_url: z.ZodOptional<z.ZodString>;
199
259
  reel_cover_method: z.ZodOptional<z.ZodString>;
200
260
  reel_thumb_offset: z.ZodOptional<z.ZodNumber>;
@@ -302,6 +362,22 @@ declare const platformSettingsSchema: z.ZodObject<{
302
362
  post_type: z.ZodOptional<z.ZodString>;
303
363
  content_type: z.ZodOptional<z.ZodString>;
304
364
  media_alt_texts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
365
+ media_accessibility: z.ZodOptional<z.ZodArray<z.ZodObject<{
366
+ index: z.ZodNumber;
367
+ asset_id: z.ZodOptional<z.ZodString>;
368
+ source_url: z.ZodOptional<z.ZodString>;
369
+ alt_text: z.ZodString;
370
+ }, "strip", z.ZodTypeAny, {
371
+ index: number;
372
+ alt_text: string;
373
+ asset_id?: string | undefined;
374
+ source_url?: string | undefined;
375
+ }, {
376
+ index: number;
377
+ alt_text: string;
378
+ asset_id?: string | undefined;
379
+ source_url?: string | undefined;
380
+ }>, "many">>;
305
381
  reel_cover_url: z.ZodOptional<z.ZodString>;
306
382
  reel_cover_method: z.ZodOptional<z.ZodString>;
307
383
  reel_thumb_offset: z.ZodOptional<z.ZodNumber>;
@@ -451,6 +527,22 @@ export declare const updatePostTool: {
451
527
  }>]>, "many">>;
452
528
  first_comment: z.ZodOptional<z.ZodString>;
453
529
  media_alt_texts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
530
+ media_accessibility: z.ZodOptional<z.ZodArray<z.ZodObject<{
531
+ index: z.ZodNumber;
532
+ asset_id: z.ZodOptional<z.ZodString>;
533
+ source_url: z.ZodOptional<z.ZodString>;
534
+ alt_text: z.ZodString;
535
+ }, "strip", z.ZodTypeAny, {
536
+ index: number;
537
+ alt_text: string;
538
+ asset_id?: string | undefined;
539
+ source_url?: string | undefined;
540
+ }, {
541
+ index: number;
542
+ alt_text: string;
543
+ asset_id?: string | undefined;
544
+ source_url?: string | undefined;
545
+ }>, "many">>;
454
546
  reel_cover_url: z.ZodOptional<z.ZodString>;
455
547
  reel_cover_method: z.ZodOptional<z.ZodString>;
456
548
  reel_thumb_offset: z.ZodOptional<z.ZodNumber>;
@@ -476,6 +568,12 @@ export declare const updatePostTool: {
476
568
  })[] | undefined;
477
569
  first_comment?: string | undefined;
478
570
  media_alt_texts?: Record<string, string> | undefined;
571
+ media_accessibility?: {
572
+ index: number;
573
+ alt_text: string;
574
+ asset_id?: string | undefined;
575
+ source_url?: string | undefined;
576
+ }[] | undefined;
479
577
  is_ai_generated?: boolean | undefined;
480
578
  audio_id?: string | undefined;
481
579
  }, {
@@ -498,6 +596,12 @@ export declare const updatePostTool: {
498
596
  })[] | undefined;
499
597
  first_comment?: string | undefined;
500
598
  media_alt_texts?: Record<string, string> | undefined;
599
+ media_accessibility?: {
600
+ index: number;
601
+ alt_text: string;
602
+ asset_id?: string | undefined;
603
+ source_url?: string | undefined;
604
+ }[] | undefined;
501
605
  is_ai_generated?: boolean | undefined;
502
606
  audio_id?: string | undefined;
503
607
  }>>;
@@ -506,6 +610,22 @@ export declare const updatePostTool: {
506
610
  post_type: z.ZodOptional<z.ZodString>;
507
611
  content_type: z.ZodOptional<z.ZodString>;
508
612
  media_alt_texts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
613
+ media_accessibility: z.ZodOptional<z.ZodArray<z.ZodObject<{
614
+ index: z.ZodNumber;
615
+ asset_id: z.ZodOptional<z.ZodString>;
616
+ source_url: z.ZodOptional<z.ZodString>;
617
+ alt_text: z.ZodString;
618
+ }, "strip", z.ZodTypeAny, {
619
+ index: number;
620
+ alt_text: string;
621
+ asset_id?: string | undefined;
622
+ source_url?: string | undefined;
623
+ }, {
624
+ index: number;
625
+ alt_text: string;
626
+ asset_id?: string | undefined;
627
+ source_url?: string | undefined;
628
+ }>, "many">>;
509
629
  reel_cover_url: z.ZodOptional<z.ZodString>;
510
630
  reel_cover_method: z.ZodOptional<z.ZodString>;
511
631
  reel_thumb_offset: z.ZodOptional<z.ZodNumber>;
@@ -613,6 +733,22 @@ export declare const updatePostTool: {
613
733
  post_type: z.ZodOptional<z.ZodString>;
614
734
  content_type: z.ZodOptional<z.ZodString>;
615
735
  media_alt_texts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
736
+ media_accessibility: z.ZodOptional<z.ZodArray<z.ZodObject<{
737
+ index: z.ZodNumber;
738
+ asset_id: z.ZodOptional<z.ZodString>;
739
+ source_url: z.ZodOptional<z.ZodString>;
740
+ alt_text: z.ZodString;
741
+ }, "strip", z.ZodTypeAny, {
742
+ index: number;
743
+ alt_text: string;
744
+ asset_id?: string | undefined;
745
+ source_url?: string | undefined;
746
+ }, {
747
+ index: number;
748
+ alt_text: string;
749
+ asset_id?: string | undefined;
750
+ source_url?: string | undefined;
751
+ }>, "many">>;
616
752
  reel_cover_url: z.ZodOptional<z.ZodString>;
617
753
  reel_cover_method: z.ZodOptional<z.ZodString>;
618
754
  reel_thumb_offset: z.ZodOptional<z.ZodNumber>;
@@ -720,6 +856,22 @@ export declare const updatePostTool: {
720
856
  post_type: z.ZodOptional<z.ZodString>;
721
857
  content_type: z.ZodOptional<z.ZodString>;
722
858
  media_alt_texts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
859
+ media_accessibility: z.ZodOptional<z.ZodArray<z.ZodObject<{
860
+ index: z.ZodNumber;
861
+ asset_id: z.ZodOptional<z.ZodString>;
862
+ source_url: z.ZodOptional<z.ZodString>;
863
+ alt_text: z.ZodString;
864
+ }, "strip", z.ZodTypeAny, {
865
+ index: number;
866
+ alt_text: string;
867
+ asset_id?: string | undefined;
868
+ source_url?: string | undefined;
869
+ }, {
870
+ index: number;
871
+ alt_text: string;
872
+ asset_id?: string | undefined;
873
+ source_url?: string | undefined;
874
+ }>, "many">>;
723
875
  reel_cover_url: z.ZodOptional<z.ZodString>;
724
876
  reel_cover_method: z.ZodOptional<z.ZodString>;
725
877
  reel_thumb_offset: z.ZodOptional<z.ZodNumber>;
@@ -855,6 +1007,12 @@ export declare const updatePostTool: {
855
1007
  })[] | undefined;
856
1008
  first_comment?: string | undefined;
857
1009
  media_alt_texts?: Record<string, string> | undefined;
1010
+ media_accessibility?: {
1011
+ index: number;
1012
+ alt_text: string;
1013
+ asset_id?: string | undefined;
1014
+ source_url?: string | undefined;
1015
+ }[] | undefined;
858
1016
  is_ai_generated?: boolean | undefined;
859
1017
  audio_id?: string | undefined;
860
1018
  } | undefined;
@@ -863,6 +1021,22 @@ export declare const updatePostTool: {
863
1021
  post_type: z.ZodOptional<z.ZodString>;
864
1022
  content_type: z.ZodOptional<z.ZodString>;
865
1023
  media_alt_texts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1024
+ media_accessibility: z.ZodOptional<z.ZodArray<z.ZodObject<{
1025
+ index: z.ZodNumber;
1026
+ asset_id: z.ZodOptional<z.ZodString>;
1027
+ source_url: z.ZodOptional<z.ZodString>;
1028
+ alt_text: z.ZodString;
1029
+ }, "strip", z.ZodTypeAny, {
1030
+ index: number;
1031
+ alt_text: string;
1032
+ asset_id?: string | undefined;
1033
+ source_url?: string | undefined;
1034
+ }, {
1035
+ index: number;
1036
+ alt_text: string;
1037
+ asset_id?: string | undefined;
1038
+ source_url?: string | undefined;
1039
+ }>, "many">>;
866
1040
  reel_cover_url: z.ZodOptional<z.ZodString>;
867
1041
  reel_cover_method: z.ZodOptional<z.ZodString>;
868
1042
  reel_thumb_offset: z.ZodOptional<z.ZodNumber>;
@@ -997,6 +1171,12 @@ export declare const updatePostTool: {
997
1171
  })[] | undefined;
998
1172
  first_comment?: string | undefined;
999
1173
  media_alt_texts?: Record<string, string> | undefined;
1174
+ media_accessibility?: {
1175
+ index: number;
1176
+ alt_text: string;
1177
+ asset_id?: string | undefined;
1178
+ source_url?: string | undefined;
1179
+ }[] | undefined;
1000
1180
  is_ai_generated?: boolean | undefined;
1001
1181
  audio_id?: string | undefined;
1002
1182
  } | undefined;
@@ -1005,6 +1185,22 @@ export declare const updatePostTool: {
1005
1185
  post_type: z.ZodOptional<z.ZodString>;
1006
1186
  content_type: z.ZodOptional<z.ZodString>;
1007
1187
  media_alt_texts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1188
+ media_accessibility: z.ZodOptional<z.ZodArray<z.ZodObject<{
1189
+ index: z.ZodNumber;
1190
+ asset_id: z.ZodOptional<z.ZodString>;
1191
+ source_url: z.ZodOptional<z.ZodString>;
1192
+ alt_text: z.ZodString;
1193
+ }, "strip", z.ZodTypeAny, {
1194
+ index: number;
1195
+ alt_text: string;
1196
+ asset_id?: string | undefined;
1197
+ source_url?: string | undefined;
1198
+ }, {
1199
+ index: number;
1200
+ alt_text: string;
1201
+ asset_id?: string | undefined;
1202
+ source_url?: string | undefined;
1203
+ }>, "many">>;
1008
1204
  reel_cover_url: z.ZodOptional<z.ZodString>;
1009
1205
  reel_cover_method: z.ZodOptional<z.ZodString>;
1010
1206
  reel_thumb_offset: z.ZodOptional<z.ZodNumber>;
@@ -1,5 +1,11 @@
1
1
  import { z } from 'zod';
2
2
  import { code, formatDateTime, mdKeyValue, mdQuote, mdSection, mdTitle, statusLabel } from '../lib/format.js';
3
+ const mediaAccessibilitySchema = z.array(z.object({
4
+ index: z.number().int().nonnegative(),
5
+ asset_id: z.string().optional(),
6
+ source_url: z.string().url().optional(),
7
+ alt_text: z.string(),
8
+ })).describe('Preferred ordered media alt text. Identity follows index/asset_id through platform media preparation; media_alt_texts remains the legacy URL-map form.');
3
9
  const instagramSettingsSchema = z.object({
4
10
  __type: z.enum(['instagram', 'instagram-standalone']).optional(),
5
11
  post_type: z.enum(['post', 'feed', 'story', 'reel', 'carousel']).optional(),
@@ -16,6 +22,7 @@ const instagramSettingsSchema = z.object({
16
22
  .describe('Native clickable media tags, not caption @mentions. Supported by eligible direct Instagram and Meta-linked connections; feed images, Reels/video, and Stories. Tags apply to each carousel item and the first Story in a Story Series.'),
17
23
  first_comment: z.string().optional(),
18
24
  media_alt_texts: z.record(z.string(), z.string()).optional(),
25
+ media_accessibility: mediaAccessibilitySchema.optional(),
19
26
  reel_cover_url: z.string().optional(),
20
27
  reel_cover_method: z.string().optional(),
21
28
  reel_thumb_offset: z.number().nonnegative().optional(),
@@ -27,6 +34,7 @@ const platformSettingsSchema = z.object({
27
34
  post_type: z.string().optional(),
28
35
  content_type: z.string().optional(),
29
36
  media_alt_texts: z.record(z.string(), z.string()).optional(),
37
+ media_accessibility: mediaAccessibilitySchema.optional(),
30
38
  reel_cover_url: z.string().optional(),
31
39
  reel_cover_method: z.string().optional(),
32
40
  reel_thumb_offset: z.number().nonnegative().optional(),