posterly-mcp-server 0.52.1 → 0.53.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 +11 -5
- package/dist/index.js +2 -0
- package/dist/lib/api-client.d.ts +123 -2
- package/dist/lib/api-client.js +22 -6
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/tools/create-post.d.ts +22 -22
- package/dist/tools/create-posts-batch.d.ts +8 -8
- package/dist/tools/create-signed-upload.d.ts +4 -0
- package/dist/tools/create-signed-upload.js +27 -3
- package/dist/tools/downgrade-subscription.js +3 -3
- package/dist/tools/get-subscription.js +69 -5
- package/dist/tools/manage-extra-account.d.ts +48 -0
- package/dist/tools/manage-extra-account.js +161 -0
- package/dist/tools/manage-workspace-member.d.ts +2 -2
- package/dist/tools/update-post.d.ts +10 -10
- package/dist/tools/validate-post.d.ts +12 -12
- package/package.json +1 -1
- package/server.json +2 -2
- package/tool-annotations.json +6 -2
- package/tool-registry.json +41 -1
package/README.md
CHANGED
|
@@ -123,7 +123,7 @@ Add the same server definition to your Cursor MCP settings:
|
|
|
123
123
|
|
|
124
124
|
## Available tools
|
|
125
125
|
|
|
126
|
-
`posterly-mcp-server@0.
|
|
126
|
+
`posterly-mcp-server@0.53.1` exposes 65 tools covering 101 actions. The hosted HTTP endpoint exposes the same catalog minus the three signup tools: 62 tools covering 98 actions.
|
|
127
127
|
|
|
128
128
|
Many tools pick what to do with one parameter: `view` (reads), `action` (writes), or `type`. A few pick their mode from which parameters you pass (for example `update_post` with `status` changes the status instead of editing). Every tool description names all of its views and actions.
|
|
129
129
|
|
|
@@ -373,16 +373,22 @@ API keys, OAuth clients, webhooks, workspace members, and the publishing pause.
|
|
|
373
373
|
|
|
374
374
|
### Billing (`billing`)
|
|
375
375
|
|
|
376
|
-
Subscription changes.
|
|
376
|
+
Subscription changes and Agency extra accounts.
|
|
377
377
|
|
|
378
378
|
| Tool | What it does |
|
|
379
379
|
| --- | --- |
|
|
380
|
-
| `get_subscription` | Subscription |
|
|
380
|
+
| `get_subscription` | Subscription, plans above yours with prices, extra accounts (Agency owners) and the exact next steps |
|
|
381
381
|
| `cancel_subscription` | Cancel subscription |
|
|
382
382
|
| `pause_subscription` | Pause subscription |
|
|
383
383
|
| `resume_subscription` | Resume subscription |
|
|
384
384
|
| `downgrade_subscription` | Downgrade subscription |
|
|
385
385
|
|
|
386
|
+
**`manage_extra_account`**: Buy or remove extra accounts
|
|
387
|
+
|
|
388
|
+
| Action | What it does |
|
|
389
|
+
| --- | --- |
|
|
390
|
+
| `set` | Set extra accounts: quote the exact charge, then buy, raise, lower, or remove them after `confirm: true` with the `preview_id` (preview then confirm) |
|
|
391
|
+
|
|
386
392
|
### Signup (`signup`)
|
|
387
393
|
|
|
388
394
|
Pre-auth signup for brand-new users. Local npm package only; always on.
|
|
@@ -492,7 +498,7 @@ This package uses the posterly API/MCP add-on:
|
|
|
492
498
|
- user-created API keys per plan: Starter 1, Pro 2, Power 3, Agency 4
|
|
493
499
|
- works across all 18 supported platforms: Instagram, Facebook, TikTok, X, LinkedIn, YouTube, Pinterest, Threads, Google Business, Telegram, Bluesky, Discord, Slack, Mastodon, Dev.to, Hashnode, WordPress, and Lemmy
|
|
494
500
|
|
|
495
|
-
Each API call counts as one request, so use `create_posts_batch` when you need to schedule multiple posts in one confirmed operation.
|
|
501
|
+
Each API call counts as one request, so use `create_posts_batch` when you need to schedule multiple posts in one confirmed operation. A batch signed upload (`create_signed_upload` with `files`) counts one point per file against the media upload limit.
|
|
496
502
|
|
|
497
503
|
Details: [poster.ly/dashboard/api](https://www.poster.ly/dashboard/api)
|
|
498
504
|
|
|
@@ -537,6 +543,6 @@ The package reads:
|
|
|
537
543
|
|
|
538
544
|
The optional directory profile provides 52 tools over HTTP or 55 tools over local stdio for social publishing, existing-media uploads, analytics, and inbox work. AI image and video generation, generation-job helpers, billing mutations, and legacy tool aliases are unavailable in this profile. Text caption suggestions and read-only subscription information remain available. Tool descriptions are functional summaries; input schemas retain their validation constraints.
|
|
539
545
|
|
|
540
|
-
Hosted endpoint: `https://www.poster.ly/api/mcp?profile=claude`. For local stdio, set `POSTERLY_DIRECTORY_PROFILE=claude` alongside the existing API key. The default catalogs remain
|
|
546
|
+
Hosted endpoint: `https://www.poster.ly/api/mcp?profile=claude`. For local stdio, set `POSTERLY_DIRECTORY_PROFILE=claude` alongside the existing API key. The default catalogs remain 62 hosted tools and 65 local tools. This profile does not grant authorization, bypass scopes, or change the existing preview and confirmation checks.
|
|
541
547
|
|
|
542
548
|
Directory approval remains Anthropic's decision. This profile addresses the generation and financial-transaction restrictions in the [Anthropic Software Directory Policy](https://support.claude.com/en/articles/13145358-anthropic-software-directory-policy).
|
package/dist/index.js
CHANGED
|
@@ -30,6 +30,7 @@ import { cancelSubscriptionTool } from './tools/cancel-subscription.js';
|
|
|
30
30
|
import { pauseSubscriptionTool } from './tools/pause-subscription.js';
|
|
31
31
|
import { resumeSubscriptionTool } from './tools/resume-subscription.js';
|
|
32
32
|
import { downgradeSubscriptionTool } from './tools/downgrade-subscription.js';
|
|
33
|
+
import { manageExtraAccountTool } from './tools/manage-extra-account.js';
|
|
33
34
|
import { listOAuthClientsTool } from './tools/list-oauth-clients.js';
|
|
34
35
|
import { manageOAuthClientTool } from './tools/manage-oauth-client.js';
|
|
35
36
|
import { listPlatformsTool } from './tools/list-platforms.js';
|
|
@@ -100,6 +101,7 @@ const STDIO_TOOLS = [
|
|
|
100
101
|
pauseSubscriptionTool,
|
|
101
102
|
resumeSubscriptionTool,
|
|
102
103
|
downgradeSubscriptionTool,
|
|
104
|
+
manageExtraAccountTool,
|
|
103
105
|
listOAuthClientsTool,
|
|
104
106
|
manageOAuthClientTool,
|
|
105
107
|
listPlatformsTool,
|
package/dist/lib/api-client.d.ts
CHANGED
|
@@ -600,6 +600,34 @@ export type SubscriptionSummary = {
|
|
|
600
600
|
paused_at: string | null;
|
|
601
601
|
pause_resumes_at: string | null;
|
|
602
602
|
stripe_subscription_id: string | null;
|
|
603
|
+
/** Connected accounts for the workspace this caller is acting in. */
|
|
604
|
+
accounts?: {
|
|
605
|
+
workspace_id: string | null;
|
|
606
|
+
used: number;
|
|
607
|
+
limit: number;
|
|
608
|
+
} | null;
|
|
609
|
+
/** The plans above this user's, with real prices, limits and credits. */
|
|
610
|
+
upgrade_options?: SubscriptionUpgradeOption[];
|
|
611
|
+
/** What to do next for this user's tier and status. */
|
|
612
|
+
next_steps?: SubscriptionNextStep[];
|
|
613
|
+
/** Where plan changes are made (no tool upgrades a plan). */
|
|
614
|
+
billing_url?: string;
|
|
615
|
+
/** Agency workspace owners only. Same body as GET /subscription/extra-accounts. */
|
|
616
|
+
extra_accounts?: ExtraAccountsStateResponse;
|
|
617
|
+
};
|
|
618
|
+
export type SubscriptionUpgradeOption = {
|
|
619
|
+
tier: SubscriptionTierName;
|
|
620
|
+
name: string;
|
|
621
|
+
monthly_price: number;
|
|
622
|
+
yearly_price: number;
|
|
623
|
+
max_accounts: number;
|
|
624
|
+
included_credits: number;
|
|
625
|
+
};
|
|
626
|
+
export type SubscriptionNextStep = {
|
|
627
|
+
id: string;
|
|
628
|
+
text: string;
|
|
629
|
+
tool?: string;
|
|
630
|
+
params?: Record<string, unknown>;
|
|
603
631
|
};
|
|
604
632
|
export type SubscriptionSummaryResponse = {
|
|
605
633
|
subscription: SubscriptionSummary;
|
|
@@ -646,6 +674,83 @@ export type DowngradeSubscriptionResponse = {
|
|
|
646
674
|
success: true;
|
|
647
675
|
tier: SubscriptionTierName;
|
|
648
676
|
};
|
|
677
|
+
export type ExtraAccountsPaymentPending = {
|
|
678
|
+
hosted_invoice_url: string | null;
|
|
679
|
+
requested_extra_accounts: number;
|
|
680
|
+
amount_due_cents: number | null;
|
|
681
|
+
expires_at: string | null;
|
|
682
|
+
};
|
|
683
|
+
export type ExtraAccountsStateResponse = {
|
|
684
|
+
eligible: boolean;
|
|
685
|
+
code: string | null;
|
|
686
|
+
reason: string | null;
|
|
687
|
+
trialing: boolean;
|
|
688
|
+
interval: 'month' | 'year' | null;
|
|
689
|
+
included_accounts: number;
|
|
690
|
+
admin_granted_accounts: number;
|
|
691
|
+
paid_extra_accounts: number;
|
|
692
|
+
account_limit: number;
|
|
693
|
+
accounts_in_use: number;
|
|
694
|
+
highest_accounts_in_use: number;
|
|
695
|
+
min_paid_extra_accounts: number;
|
|
696
|
+
min_purchase: number;
|
|
697
|
+
price_per_account_cents: number | null;
|
|
698
|
+
price_per_account: string | null;
|
|
699
|
+
recurring_cents: number | null;
|
|
700
|
+
payment_pending: ExtraAccountsPaymentPending | null;
|
|
701
|
+
};
|
|
702
|
+
export type ExtraAccountsQuote = {
|
|
703
|
+
kind: 'none' | 'increase' | 'decrease' | 'remove';
|
|
704
|
+
current_extra_accounts: number;
|
|
705
|
+
new_extra_accounts: number;
|
|
706
|
+
change: number;
|
|
707
|
+
included_accounts: number;
|
|
708
|
+
account_limit_after: number;
|
|
709
|
+
accounts_in_use: number;
|
|
710
|
+
interval: 'month' | 'year';
|
|
711
|
+
trialing: boolean;
|
|
712
|
+
price_per_account_cents: number;
|
|
713
|
+
current_recurring_cents: number;
|
|
714
|
+
new_recurring_cents: number;
|
|
715
|
+
new_recurring: string;
|
|
716
|
+
charge_today_cents: number;
|
|
717
|
+
charge_today: string;
|
|
718
|
+
currency: string;
|
|
719
|
+
};
|
|
720
|
+
export type ExtraAccountsQuoteResponse = {
|
|
721
|
+
dry_run: true;
|
|
722
|
+
quote: ExtraAccountsQuote;
|
|
723
|
+
};
|
|
724
|
+
export type ExtraAccountsAppliedResponse = {
|
|
725
|
+
applied: true;
|
|
726
|
+
status: 'applied' | 'unchanged';
|
|
727
|
+
kind: ExtraAccountsQuote['kind'];
|
|
728
|
+
previous_extra_accounts: number;
|
|
729
|
+
extra_accounts: number;
|
|
730
|
+
included_accounts: number;
|
|
731
|
+
account_limit: number;
|
|
732
|
+
accounts_in_use: number;
|
|
733
|
+
interval: 'month' | 'year';
|
|
734
|
+
price_per_account_cents: number;
|
|
735
|
+
recurring_cents: number;
|
|
736
|
+
};
|
|
737
|
+
export type ExtraAccountsPaymentRequiredResponse = {
|
|
738
|
+
applied: false;
|
|
739
|
+
status: 'payment_required';
|
|
740
|
+
payment_required: true;
|
|
741
|
+
message: string;
|
|
742
|
+
hosted_invoice_url: string | null;
|
|
743
|
+
payment_pending: ExtraAccountsPaymentPending;
|
|
744
|
+
kind: ExtraAccountsQuote['kind'];
|
|
745
|
+
previous_extra_accounts: number;
|
|
746
|
+
requested_extra_accounts: number;
|
|
747
|
+
included_accounts: number;
|
|
748
|
+
account_limit_after_payment: number;
|
|
749
|
+
interval: 'month' | 'year';
|
|
750
|
+
price_per_account_cents: number;
|
|
751
|
+
recurring_cents: number;
|
|
752
|
+
};
|
|
753
|
+
export type ExtraAccountsChangeResponse = ExtraAccountsAppliedResponse | ExtraAccountsPaymentRequiredResponse;
|
|
649
754
|
export type AskSupportResponse = {
|
|
650
755
|
success: boolean;
|
|
651
756
|
workspace_id: string;
|
|
@@ -1254,6 +1359,7 @@ export type SignedUploadBatchSlot = {
|
|
|
1254
1359
|
max_size: number;
|
|
1255
1360
|
headers?: Record<string, string>;
|
|
1256
1361
|
provider?: string;
|
|
1362
|
+
content_type_pinned?: boolean;
|
|
1257
1363
|
} | {
|
|
1258
1364
|
index: number;
|
|
1259
1365
|
filename: string;
|
|
@@ -1340,6 +1446,20 @@ export declare class PosterlyClient {
|
|
|
1340
1446
|
downgradeSubscription(data: {
|
|
1341
1447
|
tier?: SubscriptionTierName;
|
|
1342
1448
|
}): Promise<DowngradeSubscriptionResponse>;
|
|
1449
|
+
/** Exact price of a change; charges nothing. */
|
|
1450
|
+
quoteExtraAccounts(data: {
|
|
1451
|
+
extra_accounts: number;
|
|
1452
|
+
workspace_id?: string;
|
|
1453
|
+
}): Promise<ExtraAccountsQuoteResponse>;
|
|
1454
|
+
/** Applies the change and charges the saved card. Only call after a quote was shown and approved. */
|
|
1455
|
+
setExtraAccounts(data: {
|
|
1456
|
+
extra_accounts: number;
|
|
1457
|
+
request_id?: string;
|
|
1458
|
+
workspace_id?: string;
|
|
1459
|
+
/** What the quote was based on; the API answers 409 quote_stale when the live values differ. */
|
|
1460
|
+
expected_current_extra_accounts?: number;
|
|
1461
|
+
expected_interval?: 'month' | 'year';
|
|
1462
|
+
}): Promise<ExtraAccountsChangeResponse>;
|
|
1343
1463
|
listAccounts(params?: {
|
|
1344
1464
|
workspace_id?: string;
|
|
1345
1465
|
}): Promise<Account[]>;
|
|
@@ -1703,18 +1823,19 @@ export declare class PosterlyClient {
|
|
|
1703
1823
|
getXPostingQuota(params?: {
|
|
1704
1824
|
workspace_id?: string;
|
|
1705
1825
|
}): Promise<XPostingQuotaResponse>;
|
|
1706
|
-
getSignedUploadUrl(filename: string, contentType: string, size: number, workspaceId?: string): Promise<{
|
|
1826
|
+
getSignedUploadUrl(filename: string, contentType: string, size: number, workspaceId?: string, pinContentType?: boolean): Promise<{
|
|
1707
1827
|
upload_url: string;
|
|
1708
1828
|
token: string;
|
|
1709
1829
|
path: string;
|
|
1710
1830
|
public_url: string;
|
|
1711
1831
|
headers?: Record<string, string>;
|
|
1832
|
+
content_type_pinned?: boolean;
|
|
1712
1833
|
}>;
|
|
1713
1834
|
getSignedUploadUrls(files: Array<{
|
|
1714
1835
|
filename: string;
|
|
1715
1836
|
content_type: string;
|
|
1716
1837
|
size: number;
|
|
1717
|
-
}>, workspaceId?: string): Promise<SignedUploadBatchResponse>;
|
|
1838
|
+
}>, workspaceId?: string, pinContentType?: boolean): Promise<SignedUploadBatchResponse>;
|
|
1718
1839
|
createMediaDrop(input?: {
|
|
1719
1840
|
filename?: string;
|
|
1720
1841
|
maxFiles?: number;
|
package/dist/lib/api-client.js
CHANGED
|
@@ -264,6 +264,14 @@ export class PosterlyClient {
|
|
|
264
264
|
async downgradeSubscription(data) {
|
|
265
265
|
return this.request('POST', '/subscription/downgrade', data);
|
|
266
266
|
}
|
|
267
|
+
/** Exact price of a change; charges nothing. */
|
|
268
|
+
async quoteExtraAccounts(data) {
|
|
269
|
+
return this.request('POST', '/subscription/extra-accounts', { ...data, dry_run: true });
|
|
270
|
+
}
|
|
271
|
+
/** Applies the change and charges the saved card. Only call after a quote was shown and approved. */
|
|
272
|
+
async setExtraAccounts(data) {
|
|
273
|
+
return this.request('POST', '/subscription/extra-accounts', data);
|
|
274
|
+
}
|
|
267
275
|
async listAccounts(params) {
|
|
268
276
|
const searchParams = new URLSearchParams();
|
|
269
277
|
if (params?.workspace_id)
|
|
@@ -665,18 +673,20 @@ export class PosterlyClient {
|
|
|
665
673
|
const qs = searchParams.toString();
|
|
666
674
|
return this.request('GET', `/x-posting/quota${qs ? `?${qs}` : ''}`);
|
|
667
675
|
}
|
|
668
|
-
async getSignedUploadUrl(filename, contentType, size, workspaceId) {
|
|
676
|
+
async getSignedUploadUrl(filename, contentType, size, workspaceId, pinContentType) {
|
|
669
677
|
return this.request('POST', '/media/signed-upload', {
|
|
670
678
|
filename,
|
|
671
679
|
content_type: contentType,
|
|
672
680
|
size,
|
|
673
681
|
...(workspaceId ? { workspace_id: workspaceId } : {}),
|
|
682
|
+
...(pinContentType ? { pin_content_type: true } : {}),
|
|
674
683
|
});
|
|
675
684
|
}
|
|
676
|
-
async getSignedUploadUrls(files, workspaceId) {
|
|
685
|
+
async getSignedUploadUrls(files, workspaceId, pinContentType) {
|
|
677
686
|
return this.request('POST', '/media/signed-upload', {
|
|
678
687
|
files,
|
|
679
688
|
...(workspaceId ? { workspace_id: workspaceId } : {}),
|
|
689
|
+
...(pinContentType ? { pin_content_type: true } : {}),
|
|
680
690
|
});
|
|
681
691
|
}
|
|
682
692
|
async createMediaDrop(input) {
|
|
@@ -715,12 +725,18 @@ export class PosterlyClient {
|
|
|
715
725
|
if (fileBuffer.length > SIZE_THRESHOLD) {
|
|
716
726
|
// Large file: PUT to the object-storage signed URL (not a Vercel relay).
|
|
717
727
|
const signed = await this.getSignedUploadUrl(input.filename, contentType, fileBuffer.length, input.workspaceId);
|
|
728
|
+
// Send the returned headers verbatim. The storage URL can be signed for
|
|
729
|
+
// that exact Content-Type (pinned uploads answer 403 otherwise), and
|
|
730
|
+
// header names are case-insensitive: adding our own 'Content-Type' next
|
|
731
|
+
// to the returned 'content-type' would send both, joined as
|
|
732
|
+
// "video/mp4, video/mp4". Only fall back to our type if none came back.
|
|
733
|
+
const returnedHeaders = signed.headers || {};
|
|
734
|
+
const hasReturnedContentType = Object.keys(returnedHeaders).some((name) => name.toLowerCase() === 'content-type');
|
|
718
735
|
const uploadRes = await fetch(signed.upload_url, {
|
|
719
736
|
method: 'PUT',
|
|
720
|
-
headers:
|
|
721
|
-
|
|
722
|
-
...
|
|
723
|
-
},
|
|
737
|
+
headers: hasReturnedContentType
|
|
738
|
+
? returnedHeaders
|
|
739
|
+
: { 'Content-Type': contentType, ...returnedHeaders },
|
|
724
740
|
body: new Uint8Array(fileBuffer),
|
|
725
741
|
});
|
|
726
742
|
if (!uploadRes.ok) {
|
package/dist/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const POSTERLY_MCP_VERSION = "0.
|
|
1
|
+
export declare const POSTERLY_MCP_VERSION = "0.53.1";
|
package/dist/lib/version.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
// tool set (minus the intentional pre-auth signup tools that only this stdio
|
|
6
6
|
// package exposes). `npm run check:mcp-parity` enforces both the version match
|
|
7
7
|
// and the tool-list match, and runs in the pre-commit hook.
|
|
8
|
-
export const POSTERLY_MCP_VERSION = '0.
|
|
8
|
+
export const POSTERLY_MCP_VERSION = '0.53.1';
|
|
@@ -78,9 +78,9 @@ export declare const instagramSettingsSchema: z.ZodObject<{
|
|
|
78
78
|
option_d?: string | undefined;
|
|
79
79
|
}>>;
|
|
80
80
|
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
81
82
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
82
83
|
options?: string[] | undefined;
|
|
83
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
84
84
|
extended_duration?: boolean | undefined;
|
|
85
85
|
poll_attachment?: {
|
|
86
86
|
options?: string[] | undefined;
|
|
@@ -90,9 +90,9 @@ export declare const instagramSettingsSchema: z.ZodObject<{
|
|
|
90
90
|
option_d?: string | undefined;
|
|
91
91
|
} | undefined;
|
|
92
92
|
}, {
|
|
93
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
93
94
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
94
95
|
options?: string[] | undefined;
|
|
95
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
96
96
|
extended_duration?: boolean | undefined;
|
|
97
97
|
poll_attachment?: {
|
|
98
98
|
options?: string[] | undefined;
|
|
@@ -158,9 +158,9 @@ export declare const instagramSettingsSchema: z.ZodObject<{
|
|
|
158
158
|
option_d?: string | undefined;
|
|
159
159
|
} | undefined;
|
|
160
160
|
caption_addon?: {
|
|
161
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
161
162
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
162
163
|
options?: string[] | undefined;
|
|
163
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
164
164
|
extended_duration?: boolean | undefined;
|
|
165
165
|
poll_attachment?: {
|
|
166
166
|
options?: string[] | undefined;
|
|
@@ -207,9 +207,9 @@ export declare const instagramSettingsSchema: z.ZodObject<{
|
|
|
207
207
|
option_d?: string | undefined;
|
|
208
208
|
} | undefined;
|
|
209
209
|
caption_addon?: {
|
|
210
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
210
211
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
211
212
|
options?: string[] | undefined;
|
|
212
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
213
213
|
extended_duration?: boolean | undefined;
|
|
214
214
|
poll_attachment?: {
|
|
215
215
|
options?: string[] | undefined;
|
|
@@ -758,9 +758,9 @@ export declare const createPostPayloadInputSchema: z.ZodObject<{
|
|
|
758
758
|
option_d?: string | undefined;
|
|
759
759
|
}>>;
|
|
760
760
|
}, "strip", z.ZodTypeAny, {
|
|
761
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
761
762
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
762
763
|
options?: string[] | undefined;
|
|
763
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
764
764
|
extended_duration?: boolean | undefined;
|
|
765
765
|
poll_attachment?: {
|
|
766
766
|
options?: string[] | undefined;
|
|
@@ -770,9 +770,9 @@ export declare const createPostPayloadInputSchema: z.ZodObject<{
|
|
|
770
770
|
option_d?: string | undefined;
|
|
771
771
|
} | undefined;
|
|
772
772
|
}, {
|
|
773
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
773
774
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
774
775
|
options?: string[] | undefined;
|
|
775
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
776
776
|
extended_duration?: boolean | undefined;
|
|
777
777
|
poll_attachment?: {
|
|
778
778
|
options?: string[] | undefined;
|
|
@@ -838,9 +838,9 @@ export declare const createPostPayloadInputSchema: z.ZodObject<{
|
|
|
838
838
|
option_d?: string | undefined;
|
|
839
839
|
} | undefined;
|
|
840
840
|
caption_addon?: {
|
|
841
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
841
842
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
842
843
|
options?: string[] | undefined;
|
|
843
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
844
844
|
extended_duration?: boolean | undefined;
|
|
845
845
|
poll_attachment?: {
|
|
846
846
|
options?: string[] | undefined;
|
|
@@ -887,9 +887,9 @@ export declare const createPostPayloadInputSchema: z.ZodObject<{
|
|
|
887
887
|
option_d?: string | undefined;
|
|
888
888
|
} | undefined;
|
|
889
889
|
caption_addon?: {
|
|
890
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
890
891
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
891
892
|
options?: string[] | undefined;
|
|
892
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
893
893
|
extended_duration?: boolean | undefined;
|
|
894
894
|
poll_attachment?: {
|
|
895
895
|
options?: string[] | undefined;
|
|
@@ -1397,9 +1397,9 @@ export declare const createPostPayloadInputSchema: z.ZodObject<{
|
|
|
1397
1397
|
option_d?: string | undefined;
|
|
1398
1398
|
} | undefined;
|
|
1399
1399
|
caption_addon?: {
|
|
1400
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1400
1401
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1401
1402
|
options?: string[] | undefined;
|
|
1402
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1403
1403
|
extended_duration?: boolean | undefined;
|
|
1404
1404
|
poll_attachment?: {
|
|
1405
1405
|
options?: string[] | undefined;
|
|
@@ -1608,9 +1608,9 @@ export declare const createPostPayloadInputSchema: z.ZodObject<{
|
|
|
1608
1608
|
option_d?: string | undefined;
|
|
1609
1609
|
} | undefined;
|
|
1610
1610
|
caption_addon?: {
|
|
1611
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1611
1612
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1612
1613
|
options?: string[] | undefined;
|
|
1613
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1614
1614
|
extended_duration?: boolean | undefined;
|
|
1615
1615
|
poll_attachment?: {
|
|
1616
1616
|
options?: string[] | undefined;
|
|
@@ -1862,9 +1862,9 @@ export declare const createPostInputSchema: z.ZodObject<{
|
|
|
1862
1862
|
option_d?: string | undefined;
|
|
1863
1863
|
}>>;
|
|
1864
1864
|
}, "strip", z.ZodTypeAny, {
|
|
1865
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1865
1866
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1866
1867
|
options?: string[] | undefined;
|
|
1867
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1868
1868
|
extended_duration?: boolean | undefined;
|
|
1869
1869
|
poll_attachment?: {
|
|
1870
1870
|
options?: string[] | undefined;
|
|
@@ -1874,9 +1874,9 @@ export declare const createPostInputSchema: z.ZodObject<{
|
|
|
1874
1874
|
option_d?: string | undefined;
|
|
1875
1875
|
} | undefined;
|
|
1876
1876
|
}, {
|
|
1877
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1877
1878
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1878
1879
|
options?: string[] | undefined;
|
|
1879
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1880
1880
|
extended_duration?: boolean | undefined;
|
|
1881
1881
|
poll_attachment?: {
|
|
1882
1882
|
options?: string[] | undefined;
|
|
@@ -1942,9 +1942,9 @@ export declare const createPostInputSchema: z.ZodObject<{
|
|
|
1942
1942
|
option_d?: string | undefined;
|
|
1943
1943
|
} | undefined;
|
|
1944
1944
|
caption_addon?: {
|
|
1945
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1945
1946
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1946
1947
|
options?: string[] | undefined;
|
|
1947
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1948
1948
|
extended_duration?: boolean | undefined;
|
|
1949
1949
|
poll_attachment?: {
|
|
1950
1950
|
options?: string[] | undefined;
|
|
@@ -1991,9 +1991,9 @@ export declare const createPostInputSchema: z.ZodObject<{
|
|
|
1991
1991
|
option_d?: string | undefined;
|
|
1992
1992
|
} | undefined;
|
|
1993
1993
|
caption_addon?: {
|
|
1994
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1994
1995
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1995
1996
|
options?: string[] | undefined;
|
|
1996
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1997
1997
|
extended_duration?: boolean | undefined;
|
|
1998
1998
|
poll_attachment?: {
|
|
1999
1999
|
options?: string[] | undefined;
|
|
@@ -2504,9 +2504,9 @@ export declare const createPostInputSchema: z.ZodObject<{
|
|
|
2504
2504
|
option_d?: string | undefined;
|
|
2505
2505
|
} | undefined;
|
|
2506
2506
|
caption_addon?: {
|
|
2507
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
2507
2508
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
2508
2509
|
options?: string[] | undefined;
|
|
2509
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
2510
2510
|
extended_duration?: boolean | undefined;
|
|
2511
2511
|
poll_attachment?: {
|
|
2512
2512
|
options?: string[] | undefined;
|
|
@@ -2716,9 +2716,9 @@ export declare const createPostInputSchema: z.ZodObject<{
|
|
|
2716
2716
|
option_d?: string | undefined;
|
|
2717
2717
|
} | undefined;
|
|
2718
2718
|
caption_addon?: {
|
|
2719
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
2719
2720
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
2720
2721
|
options?: string[] | undefined;
|
|
2721
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
2722
2722
|
extended_duration?: boolean | undefined;
|
|
2723
2723
|
poll_attachment?: {
|
|
2724
2724
|
options?: string[] | undefined;
|
|
@@ -2999,9 +2999,9 @@ export declare const createPostTool: {
|
|
|
2999
2999
|
option_d?: string | undefined;
|
|
3000
3000
|
}>>;
|
|
3001
3001
|
}, "strip", z.ZodTypeAny, {
|
|
3002
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
3002
3003
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
3003
3004
|
options?: string[] | undefined;
|
|
3004
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
3005
3005
|
extended_duration?: boolean | undefined;
|
|
3006
3006
|
poll_attachment?: {
|
|
3007
3007
|
options?: string[] | undefined;
|
|
@@ -3011,9 +3011,9 @@ export declare const createPostTool: {
|
|
|
3011
3011
|
option_d?: string | undefined;
|
|
3012
3012
|
} | undefined;
|
|
3013
3013
|
}, {
|
|
3014
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
3014
3015
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
3015
3016
|
options?: string[] | undefined;
|
|
3016
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
3017
3017
|
extended_duration?: boolean | undefined;
|
|
3018
3018
|
poll_attachment?: {
|
|
3019
3019
|
options?: string[] | undefined;
|
|
@@ -3079,9 +3079,9 @@ export declare const createPostTool: {
|
|
|
3079
3079
|
option_d?: string | undefined;
|
|
3080
3080
|
} | undefined;
|
|
3081
3081
|
caption_addon?: {
|
|
3082
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
3082
3083
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
3083
3084
|
options?: string[] | undefined;
|
|
3084
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
3085
3085
|
extended_duration?: boolean | undefined;
|
|
3086
3086
|
poll_attachment?: {
|
|
3087
3087
|
options?: string[] | undefined;
|
|
@@ -3128,9 +3128,9 @@ export declare const createPostTool: {
|
|
|
3128
3128
|
option_d?: string | undefined;
|
|
3129
3129
|
} | undefined;
|
|
3130
3130
|
caption_addon?: {
|
|
3131
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
3131
3132
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
3132
3133
|
options?: string[] | undefined;
|
|
3133
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
3134
3134
|
extended_duration?: boolean | undefined;
|
|
3135
3135
|
poll_attachment?: {
|
|
3136
3136
|
options?: string[] | undefined;
|
|
@@ -3641,9 +3641,9 @@ export declare const createPostTool: {
|
|
|
3641
3641
|
option_d?: string | undefined;
|
|
3642
3642
|
} | undefined;
|
|
3643
3643
|
caption_addon?: {
|
|
3644
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
3644
3645
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
3645
3646
|
options?: string[] | undefined;
|
|
3646
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
3647
3647
|
extended_duration?: boolean | undefined;
|
|
3648
3648
|
poll_attachment?: {
|
|
3649
3649
|
options?: string[] | undefined;
|
|
@@ -3853,9 +3853,9 @@ export declare const createPostTool: {
|
|
|
3853
3853
|
option_d?: string | undefined;
|
|
3854
3854
|
} | undefined;
|
|
3855
3855
|
caption_addon?: {
|
|
3856
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
3856
3857
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
3857
3858
|
options?: string[] | undefined;
|
|
3858
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
3859
3859
|
extended_duration?: boolean | undefined;
|
|
3860
3860
|
poll_attachment?: {
|
|
3861
3861
|
options?: string[] | undefined;
|
|
@@ -93,9 +93,9 @@ export declare const createPostsBatchTool: {
|
|
|
93
93
|
option_d?: string | undefined;
|
|
94
94
|
}>>;
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
96
97
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
97
98
|
options?: string[] | undefined;
|
|
98
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
99
99
|
extended_duration?: boolean | undefined;
|
|
100
100
|
poll_attachment?: {
|
|
101
101
|
options?: string[] | undefined;
|
|
@@ -105,9 +105,9 @@ export declare const createPostsBatchTool: {
|
|
|
105
105
|
option_d?: string | undefined;
|
|
106
106
|
} | undefined;
|
|
107
107
|
}, {
|
|
108
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
108
109
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
109
110
|
options?: string[] | undefined;
|
|
110
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
111
111
|
extended_duration?: boolean | undefined;
|
|
112
112
|
poll_attachment?: {
|
|
113
113
|
options?: string[] | undefined;
|
|
@@ -173,9 +173,9 @@ export declare const createPostsBatchTool: {
|
|
|
173
173
|
option_d?: string | undefined;
|
|
174
174
|
} | undefined;
|
|
175
175
|
caption_addon?: {
|
|
176
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
176
177
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
177
178
|
options?: string[] | undefined;
|
|
178
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
179
179
|
extended_duration?: boolean | undefined;
|
|
180
180
|
poll_attachment?: {
|
|
181
181
|
options?: string[] | undefined;
|
|
@@ -222,9 +222,9 @@ export declare const createPostsBatchTool: {
|
|
|
222
222
|
option_d?: string | undefined;
|
|
223
223
|
} | undefined;
|
|
224
224
|
caption_addon?: {
|
|
225
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
225
226
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
226
227
|
options?: string[] | undefined;
|
|
227
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
228
228
|
extended_duration?: boolean | undefined;
|
|
229
229
|
poll_attachment?: {
|
|
230
230
|
options?: string[] | undefined;
|
|
@@ -732,9 +732,9 @@ export declare const createPostsBatchTool: {
|
|
|
732
732
|
option_d?: string | undefined;
|
|
733
733
|
} | undefined;
|
|
734
734
|
caption_addon?: {
|
|
735
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
735
736
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
736
737
|
options?: string[] | undefined;
|
|
737
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
738
738
|
extended_duration?: boolean | undefined;
|
|
739
739
|
poll_attachment?: {
|
|
740
740
|
options?: string[] | undefined;
|
|
@@ -943,9 +943,9 @@ export declare const createPostsBatchTool: {
|
|
|
943
943
|
option_d?: string | undefined;
|
|
944
944
|
} | undefined;
|
|
945
945
|
caption_addon?: {
|
|
946
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
946
947
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
947
948
|
options?: string[] | undefined;
|
|
948
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
949
949
|
extended_duration?: boolean | undefined;
|
|
950
950
|
poll_attachment?: {
|
|
951
951
|
options?: string[] | undefined;
|
|
@@ -1158,9 +1158,9 @@ export declare const createPostsBatchTool: {
|
|
|
1158
1158
|
option_d?: string | undefined;
|
|
1159
1159
|
} | undefined;
|
|
1160
1160
|
caption_addon?: {
|
|
1161
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1161
1162
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1162
1163
|
options?: string[] | undefined;
|
|
1163
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1164
1164
|
extended_duration?: boolean | undefined;
|
|
1165
1165
|
poll_attachment?: {
|
|
1166
1166
|
options?: string[] | undefined;
|
|
@@ -1372,9 +1372,9 @@ export declare const createPostsBatchTool: {
|
|
|
1372
1372
|
option_d?: string | undefined;
|
|
1373
1373
|
} | undefined;
|
|
1374
1374
|
caption_addon?: {
|
|
1375
|
+
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1375
1376
|
type?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1376
1377
|
options?: string[] | undefined;
|
|
1377
|
-
kind?: "none" | "poll" | "comment_prompt" | undefined;
|
|
1378
1378
|
extended_duration?: boolean | undefined;
|
|
1379
1379
|
poll_attachment?: {
|
|
1380
1380
|
options?: string[] | undefined;
|
|
@@ -10,6 +10,7 @@ type SignedUploadInput = {
|
|
|
10
10
|
size: number;
|
|
11
11
|
}>;
|
|
12
12
|
workspace_id?: string;
|
|
13
|
+
pin_content_type?: boolean;
|
|
13
14
|
};
|
|
14
15
|
export declare function formatSignedUploadBatch(batch: SignedUploadBatchResponse, requested: Array<{
|
|
15
16
|
content_type: string;
|
|
@@ -34,9 +35,11 @@ export declare const createSignedUploadTool: {
|
|
|
34
35
|
content_type: string;
|
|
35
36
|
size: number;
|
|
36
37
|
}>, "many">>;
|
|
38
|
+
pin_content_type: z.ZodOptional<z.ZodBoolean>;
|
|
37
39
|
workspace_id: z.ZodOptional<z.ZodString>;
|
|
38
40
|
}, "strip", z.ZodTypeAny, {
|
|
39
41
|
workspace_id?: string | undefined;
|
|
42
|
+
pin_content_type?: boolean | undefined;
|
|
40
43
|
filename?: string | undefined;
|
|
41
44
|
content_type?: string | undefined;
|
|
42
45
|
size?: number | undefined;
|
|
@@ -47,6 +50,7 @@ export declare const createSignedUploadTool: {
|
|
|
47
50
|
}[] | undefined;
|
|
48
51
|
}, {
|
|
49
52
|
workspace_id?: string | undefined;
|
|
53
|
+
pin_content_type?: boolean | undefined;
|
|
50
54
|
filename?: string | undefined;
|
|
51
55
|
content_type?: string | undefined;
|
|
52
56
|
size?: number | undefined;
|