ampost 0.0.0-stage → 0.1.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.
Files changed (45) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +198 -2
  3. package/dist/cjs/client.d.ts +62 -0
  4. package/dist/cjs/client.js +206 -0
  5. package/dist/cjs/core.d.ts +45 -0
  6. package/dist/cjs/core.js +9 -0
  7. package/dist/cjs/errors.d.ts +68 -0
  8. package/dist/cjs/errors.js +153 -0
  9. package/dist/cjs/generated/resources.d.ts +854 -0
  10. package/dist/cjs/generated/resources.js +668 -0
  11. package/dist/cjs/generated/schema.d.ts +5674 -0
  12. package/dist/cjs/generated/schema.js +3 -0
  13. package/dist/cjs/generated/types.d.ts +199 -0
  14. package/dist/cjs/generated/types.js +3 -0
  15. package/dist/cjs/index.d.ts +11 -0
  16. package/dist/cjs/index.js +29 -0
  17. package/dist/cjs/media.d.ts +42 -0
  18. package/dist/cjs/media.js +114 -0
  19. package/dist/cjs/package.json +3 -0
  20. package/dist/cjs/pagination.d.ts +27 -0
  21. package/dist/cjs/pagination.js +58 -0
  22. package/dist/cjs/version.d.ts +2 -0
  23. package/dist/cjs/version.js +5 -0
  24. package/dist/esm/client.d.ts +62 -0
  25. package/dist/esm/client.js +199 -0
  26. package/dist/esm/core.d.ts +45 -0
  27. package/dist/esm/core.js +6 -0
  28. package/dist/esm/errors.d.ts +68 -0
  29. package/dist/esm/errors.js +135 -0
  30. package/dist/esm/generated/resources.d.ts +854 -0
  31. package/dist/esm/generated/resources.js +655 -0
  32. package/dist/esm/generated/schema.d.ts +5674 -0
  33. package/dist/esm/generated/schema.js +2 -0
  34. package/dist/esm/generated/types.d.ts +199 -0
  35. package/dist/esm/generated/types.js +2 -0
  36. package/dist/esm/index.d.ts +11 -0
  37. package/dist/esm/index.js +6 -0
  38. package/dist/esm/media.d.ts +42 -0
  39. package/dist/esm/media.js +109 -0
  40. package/dist/esm/package.json +3 -0
  41. package/dist/esm/pagination.d.ts +27 -0
  42. package/dist/esm/pagination.js +54 -0
  43. package/dist/esm/version.d.ts +2 -0
  44. package/dist/esm/version.js +2 -0
  45. package/package.json +70 -4
@@ -0,0 +1,668 @@
1
+ "use strict";
2
+ // Generated by scripts/generate.mjs from openapi.json. Do not edit by hand: run `npm run generate`.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.OPERATIONS = exports.AmpostResources = exports.Feedback = exports.Docs = exports.Webhooks = exports.Analytics = exports.PlatformSets = exports.Accounts = exports.Media = exports.Posts = exports.Platforms = void 0;
5
+ const core_js_1 = require("../core.js");
6
+ /** `platforms` operations. */
7
+ class Platforms {
8
+ transport;
9
+ constructor(transport) {
10
+ this.transport = transport;
11
+ }
12
+ /**
13
+ * List platforms and their capabilities
14
+ *
15
+ * List every supported platform with its rules: text length, link support, scheduling, unpublish (delete a published post), editPublished (edit a published post's text), firstComment (comment posted after publish, and its length), thread (follow-up posts, and how many), media types, counts, sizes and required metadata, placements by media shape, and the JSON Schema of its `options`. `availability` is `coming_soon` for a platform that is listed but not open to every account yet: for those accounts, connecting it, posting to it and reading its posts or analytics return 403 PLATFORM_COMING_SOON. Read this instead of hardcoding platform differences, and check a post against these rules and its accounts with posts_validate before posts_create.
16
+ *
17
+ * MCP tool: `platforms_list`. Key scope: `posts:read`.
18
+ *
19
+ * `GET /api/platforms`
20
+ * Await it for one page, or iterate it with `for await` to walk every item across pages.
21
+ */
22
+ list(query, options) {
23
+ return this.transport.paginate({ method: "GET", path: "/api/platforms", query }, options);
24
+ }
25
+ }
26
+ exports.Platforms = Platforms;
27
+ /** `posts` operations. */
28
+ class Posts {
29
+ transport;
30
+ constructor(transport) {
31
+ this.transport = transport;
32
+ }
33
+ /**
34
+ * List posts
35
+ *
36
+ * List your posts, newest first, optionally filtered by status, platform, platform set (posts with an account in it) or text.
37
+ *
38
+ * MCP tool: `posts_list`. Key scope: `posts:read`.
39
+ *
40
+ * `GET /api/posts`
41
+ * Await it for one page, or iterate it with `for await` to walk every item across pages.
42
+ */
43
+ list(query, options) {
44
+ return this.transport.paginate({ method: "GET", path: "/api/posts", query }, options);
45
+ }
46
+ /**
47
+ * Create, schedule or publish a post
48
+ *
49
+ * Create a post for one or more platforms. `targets` lists platform sets, each with its platforms; omit `platformSetId` for your default set. List several sets to reach several accounts of the same platform in one post (each set holds one account per platform); `platformPosts` then has one entry per account. Without `scheduledFor` it is a draft; set `publishNow` to publish it right away, or `scheduledFor` to publish later. `media` items are public URLs with a required `type` (REST also accepts multipart file uploads up to 4 MB per request; for larger files or files on the user's device use media_upload_create). Use `options.<platform>` for per-platform text and settings. `firstComment` is posted as a comment (a reply on X, Threads and Bluesky) on each new post right after it publishes; a failed comment leaves the post published with `platformPosts[].firstComment.status` failed. `thread` adds follow-up posts on X, Bluesky and Threads, each a reply to the one before (results in `platformPosts[].thread`). Call platforms_list (GET /api/platforms) for each platform's limits, placements and options.
50
+ *
51
+ * MCP tool: `posts_create`. Key scope: `posts:write`.
52
+ *
53
+ * `POST /api/posts`
54
+ * Sends an `Idempotency-Key` (yours, or a generated one kept across retries).
55
+ */
56
+ create(body, options) {
57
+ return this.transport.request({ method: "POST", path: "/api/posts", body, idempotent: true }, options);
58
+ }
59
+ /**
60
+ * Check a post without creating it
61
+ *
62
+ * Check a posts_create request without creating, counting or publishing anything: same input, same checks and error codes. `valid` is true when posts_create would accept it and, with `publishNow`, every account would publish. `errors` holds the post's own problems (content, schedule, plan features, the 30-day post quota, for publishNow the hourly publish limit); `targets` has one entry per platform of each target with its own `valid`, `errors` (platform set, the platform's rules for text, media, placement and options, a Pinterest `boardId` the account cannot pin to, the account it publishes through, its health, and for publishNow the per-account quota), `warnings` (`ALT_TEXT_NOT_SENT` for alt text the platform leaves out, `BOARD_NOT_CHECKED` when Pinterest did not answer the `options.pinterest.boardId` check, account issues to fix before a scheduled post publishes, a login that expires soon; account health issues carry the `accounts_get` health codes) and `mediaConversion` (what Ampost would convert on that platform, per media item). Each platform reports its first rule error, like posts_create. A request that does not fit the schema answers 400 `VALIDATION_FAILED` like posts_create. Takes no post quota, publish limit or X units.
63
+ *
64
+ * MCP tool: `posts_validate`. Key scope: `posts:read`.
65
+ *
66
+ * `POST /api/posts/validate`
67
+ */
68
+ validate(body, options) {
69
+ return this.transport.request({ method: "POST", path: "/api/posts/validate", body }, options);
70
+ }
71
+ /**
72
+ * Import posts from CSV
73
+ *
74
+ * Create many posts from a CSV file: one post per row, each checked like posts_create. Columns: `text`, `platforms` (space-separated, with an optional `platformSetId`) or `accountIds`, `scheduledFor` or `useQueue` (neither: a draft), `linkUrl`, `media` (space-separated public URLs; `.mp4`, `.m4v`, `.mov` and `.webm` are videos, the rest images) and `text_<platform>` for per-platform text. The dashboard's CSV export has the same columns, so an exported file imports again (its read-only columns are skipped). Send `dryRun: true` first: it checks every row without creating anything. A bad row does not stop the others; `rows[]` gives each row's `status` (`valid`, `created` or `error`) and `errors` with the column. Unknown columns are skipped with a warning. Plans import at most 50 (Free), 1,000 (Pro), 2,500 (Max) or 5,000 (Scale) rows per request. An import and a dry run each take one token per row from the hourly `importPosts` limit (two runs of the plan's largest file an hour, e.g. a dry run and its import); a file with more rows than are left fails with 429 `RATE_LIMITED` and creates nothing. Send an idempotency key with the import: a retry with the same key and file returns the first result and creates nothing new. REST also accepts multipart with the file in a part named `file`.
75
+ *
76
+ * MCP tool: `posts_import_csv`. Key scope: `posts:write`.
77
+ *
78
+ * `POST /api/posts/bulk`
79
+ * Sends an `Idempotency-Key` (yours, or a generated one kept across retries).
80
+ */
81
+ importCsv(body, options) {
82
+ return this.transport.request({ method: "POST", path: "/api/posts/bulk", body, idempotent: true }, options);
83
+ }
84
+ /**
85
+ * Get a post
86
+ *
87
+ * Get one post with its result per account (`platformPosts`).
88
+ *
89
+ * MCP tool: `posts_get`. Key scope: `posts:read`.
90
+ *
91
+ * `GET /api/posts/{postId}`
92
+ */
93
+ get(postId, options) {
94
+ return this.transport.request({ method: "GET", path: `/api/posts/${(0, core_js_1.encodePathParam)(postId)}` }, options);
95
+ }
96
+ /**
97
+ * Update a post
98
+ *
99
+ * Change a draft or scheduled post. Send only the fields to change; `media` and `targets` replace the whole list (accounts the post keeps keep their results). `options` is merged per platform: each `options.<platform>` you send replaces that platform's options as a whole, `null` removes them, and other platforms keep theirs. Set `scheduledFor` to null to turn a scheduled post back into a draft. To change the text of a published post, use posts_edit_published.
100
+ *
101
+ * MCP tool: `posts_update`. Key scope: `posts:write`.
102
+ *
103
+ * `PATCH /api/posts/{postId}`
104
+ */
105
+ update(postId, body, options) {
106
+ return this.transport.request({ method: "PATCH", path: `/api/posts/${(0, core_js_1.encodePathParam)(postId)}`, body }, options);
107
+ }
108
+ /**
109
+ * Delete a post
110
+ *
111
+ * Discard a post that has not been published, including a scheduled one. The post stays readable with status `discarded`, and its media in Ampost storage is deleted. To take a published post down from the platforms, use posts_unpublish.
112
+ *
113
+ * MCP tool: `posts_delete`. Key scope: `posts:write`.
114
+ *
115
+ * `DELETE /api/posts/{postId}`
116
+ */
117
+ delete(postId, options) {
118
+ return this.transport.request({ method: "DELETE", path: `/api/posts/${(0, core_js_1.encodePathParam)(postId)}` }, options);
119
+ }
120
+ /**
121
+ * Publish a post now
122
+ *
123
+ * Publish a draft or scheduled post to all its accounts now. Check `platformPosts` for each account's result; an account with a video may stay `processing` (the platform is still processing it) for a few minutes before it is `published`.
124
+ *
125
+ * MCP tool: `posts_publish`. Key scope: `posts:write`.
126
+ *
127
+ * `POST /api/posts/{postId}/publish`
128
+ * Sends an `Idempotency-Key` (yours, or a generated one kept across retries).
129
+ */
130
+ publish(postId, options) {
131
+ return this.transport.request({ method: "POST", path: `/api/posts/${(0, core_js_1.encodePathParam)(postId)}/publish`, idempotent: true }, options);
132
+ }
133
+ /**
134
+ * Unpublish a post
135
+ *
136
+ * Take a published post down from the platforms: every account where it is published, or only the given `accountIds` (from `platformPosts[].accountId`). Each account's result is in `platformPosts`: `deleted`, or still `published` with `notice` saying why (`UNPUBLISH_NOT_SUPPORTED` on Instagram and TikTok, which have no delete API; the platform's own refusal otherwise, such as Telegram's 48-hour limit for bots). The post becomes `deleted` once no account has it; it stays readable in Ampost. YouTube deletes count in the channel's daily budget of edits and deletes (10, 3 on Free; `notice` `RATE_LIMITED` past it). Call platforms_list for `unpublish.supported` per platform. Deleting from X costs X units like a post.
137
+ *
138
+ * MCP tool: `posts_unpublish`. Key scope: `posts:write`.
139
+ *
140
+ * `POST /api/posts/{postId}/unpublish`
141
+ */
142
+ unpublish(postId, body, options) {
143
+ return this.transport.request({ method: "POST", path: `/api/posts/${(0, core_js_1.encodePathParam)(postId)}/unpublish`, body }, options);
144
+ }
145
+ /**
146
+ * Edit a published post's text
147
+ *
148
+ * Replace the text of a published post on the platforms: every account where it is published, or only the given `accountIds` (from `platformPosts[].accountId`). Text only; media and links stay. Each account's result is in `platformPosts`: an edited account's `text` holds the new text, and an account the platform refused keeps its text with `notice` (`EDIT_NOT_SUPPORTED` on Instagram, Threads, TikTok, Bluesky and X, and on Facebook stories; the platform's own refusal otherwise). Facebook edits only posts Ampost published; a Telegram caption under media stays limited to 1024 characters. YouTube and Pinterest replace the video or Pin description. YouTube edits and deletes share a budget of 10 a day per channel (3 on Free); past it the account gets `notice` `RATE_LIMITED`. Call platforms_list for `editPublished.supported` per platform. To change a draft or scheduled post, use posts_update.
149
+ *
150
+ * MCP tool: `posts_edit_published`. Key scope: `posts:write`.
151
+ *
152
+ * `POST /api/posts/{postId}/edit-published`
153
+ */
154
+ editPublished(postId, body, options) {
155
+ return this.transport.request({ method: "POST", path: `/api/posts/${(0, core_js_1.encodePathParam)(postId)}/edit-published`, body }, options);
156
+ }
157
+ /**
158
+ * Retry failed accounts
159
+ *
160
+ * Publish again to the accounts that failed, or only to the given `accountIds` (from `platformPosts[].accountId`). Ampost already retries retryable failures (rate limits, timeouts, platform errors) by itself, up to 5 attempts with backoff; an account waiting for that shows `pending` with `nextAttemptAt`. Call this for an account that is `failed`, after fixing the cause. It starts `attempts` again from 0. A published account whose first comment failed (`platformPosts[].firstComment.status` failed) posts only the comment again, without publishing the post twice or counting it again. An account whose thread stopped at a failed item continues the thread from that item, without publishing the post or the earlier items again.
161
+ *
162
+ * MCP tool: `posts_retry`. Key scope: `posts:write`.
163
+ *
164
+ * `POST /api/posts/{postId}/retry`
165
+ * Sends an `Idempotency-Key` (yours, or a generated one kept across retries).
166
+ */
167
+ retry(postId, body, options) {
168
+ return this.transport.request({ method: "POST", path: `/api/posts/${(0, core_js_1.encodePathParam)(postId)}/retry`, body, idempotent: true }, options);
169
+ }
170
+ }
171
+ exports.Posts = Posts;
172
+ /** `media` operations. */
173
+ class Media {
174
+ transport;
175
+ constructor(transport) {
176
+ this.transport = transport;
177
+ }
178
+ /**
179
+ * Start a media upload
180
+ *
181
+ * Get a way to upload a local file for a post. Media in posts_create must be a public URL; use this when the user has the file on their device or you have the file itself. Returns `uploadPageUrl`, an Ampost page where the user uploads files in a browser (in MCP, a client that supports URL elicitation asks the user to open it itself and leaves `uploadPageUrl` out), and `uploadUrl` + `method` + `headers` to PUT one file directly. Both stop accepting files after 60 minutes. Then poll media_upload_status; when it is completed, its `files` are `media[]` items for posts_create. Files that no post uses are deleted 24 hours after the upload was created (by the daily cleanup).
182
+ *
183
+ * MCP tool: `media_upload_create`. Key scope: `media:write`.
184
+ *
185
+ * `POST /api/media/uploads`
186
+ */
187
+ createUpload(body, options) {
188
+ return this.transport.request({ method: "POST", path: "/api/media/uploads", body }, options);
189
+ }
190
+ /**
191
+ * Get a media upload
192
+ *
193
+ * Read a media upload: `pending` until files arrive, `completed` with `files`, `failed` with `error` (the direct upload's content was not the type it was sent as), or `expired`. Poll every 3-5 seconds after media_upload_create. Each item in `files` is a `media[]` item (`url`, `type`, `mimeType`, `sizeBytes`, `width`, `height`, `durationSeconds`): pass them to posts_create unchanged.
194
+ *
195
+ * MCP tool: `media_upload_status`. Key scope: `media:write`.
196
+ *
197
+ * `GET /api/media/uploads/{uploadId}`
198
+ */
199
+ getUpload(uploadId, options) {
200
+ return this.transport.request({ method: "GET", path: `/api/media/uploads/${(0, core_js_1.encodePathParam)(uploadId)}` }, options);
201
+ }
202
+ }
203
+ exports.Media = Media;
204
+ /** `accounts` operations. */
205
+ class Accounts {
206
+ transport;
207
+ constructor(transport) {
208
+ this.transport = transport;
209
+ }
210
+ /**
211
+ * List social accounts
212
+ *
213
+ * List your social accounts, optionally only one platform or one platform set. `status` defaults to `active`, the accounts that can publish; pass `revoked` for disconnected accounts or `all` for both. The `active` total for a set equals that set's `accountCount` in platform_sets_list. `health` says whether each account can publish (`canPost`), whether only a reconnect helps (`needsReconnect`), and why (`issues[]` with codes such as `TOKEN_EXPIRED` or `MISSING_SCOPE:w_member_social`). Fix with accounts_connect and the account's id as `accountId`. `platformMetadata` has public per-platform details, such as the TikTok creator's allowed privacy levels.
214
+ *
215
+ * MCP tool: `accounts_list`. Key scope: `accounts:read`.
216
+ *
217
+ * `GET /api/accounts`
218
+ * Await it for one page, or iterate it with `for await` to walk every item across pages.
219
+ */
220
+ list(query, options) {
221
+ return this.transport.paginate({ method: "GET", path: "/api/accounts", query }, options);
222
+ }
223
+ /**
224
+ * Get a connected account
225
+ *
226
+ * Get one social account by id, including revoked ones (`status: revoked`). `health`: `canPost`, `needsReconnect` and `issues[]` (codes such as `ACCOUNT_REVOKED`, `TOKEN_EXPIRED`, `MISSING_SCOPE:<scope>`, each with a message to relay). When `needsReconnect` is true, call accounts_connect with `accountId` set to this id; the account keeps its id. `platformMetadata` has public per-platform details.
227
+ *
228
+ * MCP tool: `accounts_get`. Key scope: `accounts:read`.
229
+ *
230
+ * `GET /api/accounts/{accountId}`
231
+ */
232
+ get(accountId, options) {
233
+ return this.transport.request({ method: "GET", path: `/api/accounts/${(0, core_js_1.encodePathParam)(accountId)}` }, options);
234
+ }
235
+ /**
236
+ * Disconnect an account
237
+ *
238
+ * Disconnect a social account: Ampost revokes its access at the platform where the platform allows it, deletes the stored tokens and sets `status: revoked`. Scheduled posts for the account will fail. The account keeps its id and can be reconnected later with accounts_connect and `accountId`. `providerRevoked` says whether the platform confirmed the revoke; when false, `providerAccessSettings` says where the user removes Ampost in the platform's settings. Instagram and Threads have no revoke endpoint, so they always return `providerRevoked: false`. Calling it again on a disconnected account returns the account unchanged with `providerRevoked: false`.
239
+ *
240
+ * MCP tool: `accounts_disconnect`. Key scope: `accounts:write`.
241
+ *
242
+ * `DELETE /api/accounts/{accountId}`
243
+ */
244
+ disconnect(accountId, options) {
245
+ return this.transport.request({ method: "DELETE", path: `/api/accounts/${(0, core_js_1.encodePathParam)(accountId)}` }, options);
246
+ }
247
+ /**
248
+ * Turn X analytics on or off
249
+ *
250
+ * Opt an X account in to analytics, or out again. Every X read is billed, so X analytics are off until the account opts in, and the reads count against the plan's 30-day X units like publishing (Max and Scale). When on, Ampost reads the metrics of the posts it published to the account during their first 29 days (daily for 3 days, then weekly) and the follower count once a day; three post reads or one follower read cost one X unit. The sync pauses when the units run out and resumes when they reset. Other platforms need no opt-in (`analytics.optInRequired` is false) and return 400. A plan without X returns 403 UPGRADE_REQUIRED. Returns the account with its `analytics` state.
251
+ *
252
+ * MCP tool: `accounts_set_analytics`. Key scope: `accounts:write`.
253
+ *
254
+ * `PATCH /api/accounts/{accountId}/analytics`
255
+ */
256
+ setAnalytics(accountId, body, options) {
257
+ return this.transport.request({ method: "PATCH", path: `/api/accounts/${(0, core_js_1.encodePathParam)(accountId)}/analytics`, body }, options);
258
+ }
259
+ /**
260
+ * List a Pinterest account's boards
261
+ *
262
+ * List the boards of an active Pinterest account (up to 250), read from Pinterest (the same list is reused for up to a minute; a board made with accounts_set_board shows at once). `defaultBoardId` is the board Pins go to when a post sets no `options.pinterest.boardId`; it is `null` until one is picked, and the account then has the `BOARD_NOT_SELECTED` health warning. Ask the user which board to use and call accounts_set_board. An account with a single board gets it as the default at connect. Other platforms return 400.
263
+ *
264
+ * MCP tool: `accounts_list_boards`. Key scope: `accounts:read`.
265
+ *
266
+ * `GET /api/accounts/{accountId}/boards`
267
+ */
268
+ listBoards(accountId, options) {
269
+ return this.transport.request({ method: "GET", path: `/api/accounts/${(0, core_js_1.encodePathParam)(accountId)}/boards` }, options);
270
+ }
271
+ /**
272
+ * Pick a Pinterest account's default board
273
+ *
274
+ * Set the board Pins go to when a post sets no `options.pinterest.boardId`: pass `boardId` (from accounts_list_boards), or `newBoardName` to create a public board and use it. Ampost checks the board with Pinterest first. The choice survives a reconnect. Returns the account; `platformMetadata.boardId` and `boardName` show the default. Other platforms return 400.
275
+ *
276
+ * MCP tool: `accounts_set_board`. Key scope: `accounts:write`.
277
+ *
278
+ * `PATCH /api/accounts/{accountId}/board`
279
+ */
280
+ setBoard(accountId, body, options) {
281
+ return this.transport.request({ method: "PATCH", path: `/api/accounts/${(0, core_js_1.encodePathParam)(accountId)}/board`, body }, options);
282
+ }
283
+ /**
284
+ * Connect a social account
285
+ *
286
+ * Create a short-lived Ampost-hosted link that connects one social account to a platform set. The user opens `connectUrl` in a browser and authorizes there; consent cannot happen in chat. In MCP, a client that supports URL elicitation asks the user to open the page itself, and the result then has no `connectUrl`. Then poll the connection request until it is connected, failed or expired. To reconnect an existing account (a revoked one, or an active one whose `health.needsReconnect` is true), pass its id as `accountId`; `platform` may then be omitted. For a new connection, `expectedUsername` or `expectedPlatformAccountId` makes sure the user signs in to the right account. If the user signs in to another account, the request fails with ACCOUNT_MISMATCH and nothing changes. A new request replaces the pending one for the same platform and set, also one the user opened but did not finish (it fails with SUPERSEDED), so call this again when the user lost or closed the page. A coming-soon platform (`availability: coming_soon` in platforms_list) returns 403 PLATFORM_COMING_SOON for accounts it is not open to yet, reconnects included.
287
+ *
288
+ * MCP tool: `accounts_connect`. Key scope: `accounts:write`.
289
+ *
290
+ * `POST /api/accounts/connect`
291
+ * Sends an `Idempotency-Key` (yours, or a generated one kept across retries).
292
+ */
293
+ connect(body, options) {
294
+ return this.transport.request({ method: "POST", path: "/api/accounts/connect", body, idempotent: true }, options);
295
+ }
296
+ /**
297
+ * Get a connection request
298
+ *
299
+ * Read the status of an account connection request: pending, awaiting_selection, connected, failed or expired. Poll every 2-5 seconds. When connected, `accountId` is the account's id (a reconnected account keeps its id). When failed or expired, `error.message` says why and what the user should do next; relay it as is. `ACCOUNT_MISMATCH` means the user signed in to another account than `accountId` or the expected one; nothing was changed. `SOCIAL_ACCOUNT_IN_USE` means a Free workspace tried to connect a social account another Ampost workspace has (or had in the last 30 days); a paid plan can connect it. `SUPERSEDED` means a newer request for this platform replaced this one: poll the newer request instead. `USER_CANCELLED` means the user cancelled or declined consent.
300
+ *
301
+ * MCP tool: `accounts_connect_status`. Key scope: `accounts:read`.
302
+ *
303
+ * `GET /api/accounts/connect/{connectRequestId}`
304
+ */
305
+ getConnectRequest(connectRequestId, options) {
306
+ return this.transport.request({ method: "GET", path: `/api/accounts/connect/${(0, core_js_1.encodePathParam)(connectRequestId)}` }, options);
307
+ }
308
+ }
309
+ exports.Accounts = Accounts;
310
+ /** `platform-sets` operations. */
311
+ class PlatformSets {
312
+ transport;
313
+ constructor(transport) {
314
+ this.transport = transport;
315
+ }
316
+ /**
317
+ * List platform sets
318
+ *
319
+ * List your platform sets with their active account counts, default set first. `accountCount` counts only active accounts, the same ones accounts_list returns by default; revoked accounts are not counted. A platform set groups at most one account per platform; every post targets one set.
320
+ *
321
+ * MCP tool: `platform_sets_list`. Key scope: `accounts:read`.
322
+ *
323
+ * `GET /api/platform-sets`
324
+ * Await it for one page, or iterate it with `for await` to walk every item across pages.
325
+ */
326
+ list(query, options) {
327
+ return this.transport.paginate({ method: "GET", path: "/api/platform-sets", query }, options);
328
+ }
329
+ /**
330
+ * Create a platform set
331
+ *
332
+ * Create an empty platform set. You can have at most 20 sets.
333
+ *
334
+ * MCP tool: `platform_sets_create`. Key scope: `accounts:write`.
335
+ *
336
+ * `POST /api/platform-sets`
337
+ * Sends an `Idempotency-Key` (yours, or a generated one kept across retries).
338
+ */
339
+ create(body, options) {
340
+ return this.transport.request({ method: "POST", path: "/api/platform-sets", body, idempotent: true }, options);
341
+ }
342
+ /**
343
+ * Get a platform set
344
+ *
345
+ * Get one platform set with its active account count (revoked accounts are not counted).
346
+ *
347
+ * MCP tool: `platform_sets_get`. Key scope: `accounts:read`.
348
+ *
349
+ * `GET /api/platform-sets/{platformSetId}`
350
+ */
351
+ get(platformSetId, options) {
352
+ return this.transport.request({ method: "GET", path: `/api/platform-sets/${(0, core_js_1.encodePathParam)(platformSetId)}` }, options);
353
+ }
354
+ /**
355
+ * Rename a platform set
356
+ *
357
+ * Rename a platform set, including the default set.
358
+ *
359
+ * MCP tool: `platform_sets_update`. Key scope: `accounts:write`.
360
+ *
361
+ * `PATCH /api/platform-sets/{platformSetId}`
362
+ */
363
+ update(platformSetId, body, options) {
364
+ return this.transport.request({ method: "PATCH", path: `/api/platform-sets/${(0, core_js_1.encodePathParam)(platformSetId)}`, body }, options);
365
+ }
366
+ /**
367
+ * Delete a platform set
368
+ *
369
+ * Delete a platform set and revoke its active accounts. Its disconnected accounts and its posts are kept without a set; reconnect an account with accounts_connect and its accountId to put it in another set. Your last remaining set cannot be deleted (409 LAST_PLATFORM_SET). 409 PLATFORM_SET_IN_USE means an account was connected to the set during the delete: retry.
370
+ *
371
+ * MCP tool: `platform_sets_delete`. Key scope: `accounts:write`.
372
+ *
373
+ * `DELETE /api/platform-sets/{platformSetId}`
374
+ */
375
+ delete(platformSetId, options) {
376
+ return this.transport.request({ method: "DELETE", path: `/api/platform-sets/${(0, core_js_1.encodePathParam)(platformSetId)}` }, options);
377
+ }
378
+ /**
379
+ * Get a posting queue
380
+ *
381
+ * Get the posting queue of a platform set. A set without a saved queue answers with no slots in UTC. Each platform set has one queue: weekly slots (weekday and HH:MM) in an IANA time zone, which follow its daylight saving changes. posts_create with `useQueue: true` schedules the post in the set's next free slot. A slot is taken while a queued post is scheduled at its time; rescheduling, publishing or deleting the post frees it.
382
+ *
383
+ * MCP tool: `queue_get`. Key scope: `posts:read`.
384
+ *
385
+ * `GET /api/platform-sets/{platformSetId}/queue`
386
+ */
387
+ getQueue(platformSetId, options) {
388
+ return this.transport.request({ method: "GET", path: `/api/platform-sets/${(0, core_js_1.encodePathParam)(platformSetId)}/queue` }, options);
389
+ }
390
+ /**
391
+ * Update a posting queue
392
+ *
393
+ * Set the time zone or the weekly slots of a platform set's queue; `slots` replaces the whole list. Queues need the Pro plan or above (403 UPGRADE_REQUIRED). Posts already in the queue keep their time. Each platform set has one queue: weekly slots (weekday and HH:MM) in an IANA time zone, which follow its daylight saving changes. posts_create with `useQueue: true` schedules the post in the set's next free slot. A slot is taken while a queued post is scheduled at its time; rescheduling, publishing or deleting the post frees it.
394
+ *
395
+ * MCP tool: `queue_update`. Key scope: `posts:write`.
396
+ *
397
+ * `PATCH /api/platform-sets/{platformSetId}/queue`
398
+ */
399
+ updateQueue(platformSetId, body, options) {
400
+ return this.transport.request({ method: "PATCH", path: `/api/platform-sets/${(0, core_js_1.encodePathParam)(platformSetId)}/queue`, body }, options);
401
+ }
402
+ /**
403
+ * Preview queue slots
404
+ *
405
+ * The queue's next slot times from now on, each with the queued post holding it (`postId`, null when free). With `filter: free` the first slot is where posts_create with `useQueue` puts the next post. Each platform set has one queue: weekly slots (weekday and HH:MM) in an IANA time zone, which follow its daylight saving changes. posts_create with `useQueue: true` schedules the post in the set's next free slot. A slot is taken while a queued post is scheduled at its time; rescheduling, publishing or deleting the post frees it.
406
+ *
407
+ * MCP tool: `queue_slots`. Key scope: `posts:read`.
408
+ *
409
+ * `GET /api/platform-sets/{platformSetId}/queue/slots`
410
+ */
411
+ getQueueSlots(platformSetId, query, options) {
412
+ return this.transport.request({ method: "GET", path: `/api/platform-sets/${(0, core_js_1.encodePathParam)(platformSetId)}/queue/slots`, query }, options);
413
+ }
414
+ }
415
+ exports.PlatformSets = PlatformSets;
416
+ /** `analytics` operations. */
417
+ class Analytics {
418
+ transport;
419
+ constructor(transport) {
420
+ this.transport = transport;
421
+ }
422
+ /**
423
+ * Post analytics
424
+ *
425
+ * Metrics of your published posts, newest first: one `platformPosts` entry per account the post went to, with views, reach, likes, comments, shares and saves (null when the platform does not report one). Pass `postId` for one post. `analyticsStatus` says why an entry has no metrics. Analytics cover Facebook Pages, Instagram, Threads, TikTok, Bluesky, YouTube and Pinterest accounts (on YouTube and Pinterest only posts published through Ampost; LinkedIn once its API access is approved), X accounts that opted in with accounts_set_analytics (Max and Scale; only posts published through Ampost), and Telegram followers (no post metrics). Discord has no analytics: asking for it fails with 422 `ANALYTICS_NOT_AVAILABLE_ON_PLATFORM`. When none of the matching accounts has analytics enabled the call fails with 403 `ANALYTICS_NOT_ENABLED` (its `details.accounts` say why per account). Ampost reads analytics in the background and serves the stored numbers: each account about hourly (daily on the Free plan), a post's metrics hourly in its first 48 hours, every 6 hours up to 14 days and daily up to 90 days. X posts are read daily in their first 3 days and weekly up to 29 days, which costs the plan's X units. Meta itself can lag 24-48 hours. `syncedAt` says when each number was read.
426
+ *
427
+ * MCP tool: `analytics_posts`. Key scope: `analytics:read`.
428
+ *
429
+ * `GET /api/analytics/posts`
430
+ * Await it for one page, or iterate it with `for await` to walk every item across pages.
431
+ */
432
+ listPosts(query, options) {
433
+ return this.transport.paginate({ method: "GET", path: "/api/analytics/posts", query }, options);
434
+ }
435
+ /**
436
+ * Analytics overview
437
+ *
438
+ * Per account and in total, for posts published between `from` and `to` (UTC days, default the last 30): post count, summed views, reach, likes, comments, shares and saves, followers and their change, and sync state. These are the dashboard's numbers. `unavailableAccounts` lists matching accounts without analytics and why. Analytics cover Facebook Pages, Instagram, Threads, TikTok, Bluesky, YouTube and Pinterest accounts (on YouTube and Pinterest only posts published through Ampost; LinkedIn once its API access is approved), X accounts that opted in with accounts_set_analytics (Max and Scale; only posts published through Ampost), and Telegram followers (no post metrics). Discord has no analytics: asking for it fails with 422 `ANALYTICS_NOT_AVAILABLE_ON_PLATFORM`. When none of the matching accounts has analytics enabled the call fails with 403 `ANALYTICS_NOT_ENABLED` (its `details.accounts` say why per account). Ampost reads analytics in the background and serves the stored numbers: each account about hourly (daily on the Free plan), a post's metrics hourly in its first 48 hours, every 6 hours up to 14 days and daily up to 90 days. X posts are read daily in their first 3 days and weekly up to 29 days, which costs the plan's X units. Meta itself can lag 24-48 hours. `syncedAt` says when each number was read.
439
+ *
440
+ * MCP tool: `analytics_overview`. Key scope: `analytics:read`.
441
+ *
442
+ * `GET /api/analytics/overview`
443
+ */
444
+ getOverview(query, options) {
445
+ return this.transport.request({ method: "GET", path: "/api/analytics/overview", query }, options);
446
+ }
447
+ /**
448
+ * Follower history
449
+ *
450
+ * Follower count per account with one daily snapshot per day between `from` and `to` (UTC days, default the last 30). History starts when Ampost first read the account; a day without a snapshot is missing. Analytics cover Facebook Pages, Instagram, Threads, TikTok, Bluesky, YouTube and Pinterest accounts (on YouTube and Pinterest only posts published through Ampost; LinkedIn once its API access is approved), X accounts that opted in with accounts_set_analytics (Max and Scale; only posts published through Ampost), and Telegram followers (no post metrics). Discord has no analytics: asking for it fails with 422 `ANALYTICS_NOT_AVAILABLE_ON_PLATFORM`. When none of the matching accounts has analytics enabled the call fails with 403 `ANALYTICS_NOT_ENABLED` (its `details.accounts` say why per account). Ampost reads analytics in the background and serves the stored numbers: each account about hourly (daily on the Free plan), a post's metrics hourly in its first 48 hours, every 6 hours up to 14 days and daily up to 90 days. X posts are read daily in their first 3 days and weekly up to 29 days, which costs the plan's X units. Meta itself can lag 24-48 hours. `syncedAt` says when each number was read.
451
+ *
452
+ * MCP tool: `analytics_followers`. Key scope: `analytics:read`.
453
+ *
454
+ * `GET /api/analytics/followers`
455
+ * Await it for one page, or iterate it with `for await` to walk every item across pages.
456
+ */
457
+ listFollowers(query, options) {
458
+ return this.transport.paginate({ method: "GET", path: "/api/analytics/followers", query }, options);
459
+ }
460
+ }
461
+ exports.Analytics = Analytics;
462
+ /** `webhooks` operations. */
463
+ class Webhooks {
464
+ transport;
465
+ constructor(transport) {
466
+ this.transport = transport;
467
+ }
468
+ /**
469
+ * List webhooks
470
+ *
471
+ * List your webhooks, oldest first. Secrets show only as `secretPreview`. Webhooks see every platform set, so keys restricted to some sets get 403 PLATFORM_SET_NOT_ALLOWED.
472
+ *
473
+ * MCP tool: `webhooks_list`. Key scope: `webhooks:write`.
474
+ *
475
+ * `GET /api/webhooks/endpoints`
476
+ * Await it for one page, or iterate it with `for await` to walk every item across pages.
477
+ */
478
+ list(query, options) {
479
+ return this.transport.paginate({ method: "GET", path: "/api/webhooks/endpoints", query }, options);
480
+ }
481
+ /**
482
+ * Create a webhook
483
+ *
484
+ * Send events to an https URL. Ampost POSTs each event as JSON, signed with the webhook's secret (`Ampost-Signature`), and retries a failed delivery 7 times (1 min, 5 min, 30 min, 2 h, 6 h, 12 h and 24 h). After 5 deliveries in a row fail all retries the webhook is turned off. At most 10 webhooks. The response is the only one with the full `secret`: store it now. Revoking the key or app that created the webhook turns it off. Events: post.scheduled, post.unscheduled, post.discarded, post.published, post.partial, post.failed, post.platform.published, post.platform.failed, post.platform.deleted, post.platform.edited, account.connected, account.disconnected, account.needs_reconnect, analytics.synced. Webhooks see every platform set, so keys restricted to some sets get 403 PLATFORM_SET_NOT_ALLOWED.
485
+ *
486
+ * MCP tool: `webhooks_create`. Key scope: `webhooks:write`.
487
+ *
488
+ * `POST /api/webhooks/endpoints`
489
+ * Sends an `Idempotency-Key` (yours, or a generated one kept across retries).
490
+ */
491
+ create(body, options) {
492
+ return this.transport.request({ method: "POST", path: "/api/webhooks/endpoints", body, idempotent: true }, options);
493
+ }
494
+ /**
495
+ * Get a webhook
496
+ *
497
+ * Get one webhook with its status and failure count. The secret shows only as `secretPreview`. Webhooks see every platform set, so keys restricted to some sets get 403 PLATFORM_SET_NOT_ALLOWED.
498
+ *
499
+ * MCP tool: `webhooks_get`. Key scope: `webhooks:write`.
500
+ *
501
+ * `GET /api/webhooks/endpoints/{webhookId}`
502
+ */
503
+ get(webhookId, options) {
504
+ return this.transport.request({ method: "GET", path: `/api/webhooks/endpoints/${(0, core_js_1.encodePathParam)(webhookId)}` }, options);
505
+ }
506
+ /**
507
+ * Update a webhook
508
+ *
509
+ * Change a webhook's URL, events or description, turn it on or off, or rotate its secret (the response then has the new `secret`, the only time it is shown). While a webhook is off no events are queued for it. Turning it back on resets its failure count; events it missed are not sent, so resend the ones you need with webhooks_redeliver. A webhook turned off because its key or app was revoked (`disabledReason: "key_revoked"`) can only be turned on in the dashboard. Changing the URL or rotating the secret ties the webhook to the calling key or app.
510
+ *
511
+ * MCP tool: `webhooks_update`. Key scope: `webhooks:write`.
512
+ *
513
+ * `PATCH /api/webhooks/endpoints/{webhookId}`
514
+ */
515
+ update(webhookId, body, options) {
516
+ return this.transport.request({ method: "PATCH", path: `/api/webhooks/endpoints/${(0, core_js_1.encodePathParam)(webhookId)}`, body }, options);
517
+ }
518
+ /**
519
+ * Delete a webhook
520
+ *
521
+ * Delete a webhook and its delivery log. Pending deliveries are not sent.
522
+ *
523
+ * MCP tool: `webhooks_delete`. Key scope: `webhooks:write`.
524
+ *
525
+ * `DELETE /api/webhooks/endpoints/{webhookId}`
526
+ */
527
+ delete(webhookId, options) {
528
+ return this.transport.request({ method: "DELETE", path: `/api/webhooks/endpoints/${(0, core_js_1.encodePathParam)(webhookId)}` }, options);
529
+ }
530
+ /**
531
+ * Send a test event
532
+ *
533
+ * Send a signed `webhook.test` event to the webhook now, also when it is turned off, and return the delivery with your URL's response. One attempt, no retries.
534
+ *
535
+ * MCP tool: `webhooks_test`. Key scope: `webhooks:write`.
536
+ *
537
+ * `POST /api/webhooks/endpoints/{webhookId}/test`
538
+ */
539
+ test(webhookId, options) {
540
+ return this.transport.request({ method: "POST", path: `/api/webhooks/endpoints/${(0, core_js_1.encodePathParam)(webhookId)}/test` }, options);
541
+ }
542
+ /**
543
+ * List webhook deliveries
544
+ *
545
+ * The webhook's delivery log, newest first: each event sent, its status, attempts, and the last response code and body. Kept for 30 days.
546
+ *
547
+ * MCP tool: `webhooks_deliveries_list`. Key scope: `webhooks:write`.
548
+ *
549
+ * `GET /api/webhooks/endpoints/{webhookId}/deliveries`
550
+ * Await it for one page, or iterate it with `for await` to walk every item across pages.
551
+ */
552
+ listDeliveries(webhookId, query, options) {
553
+ return this.transport.paginate({ method: "GET", path: `/api/webhooks/endpoints/${(0, core_js_1.encodePathParam)(webhookId)}/deliveries`, query }, options);
554
+ }
555
+ /**
556
+ * Redeliver an event
557
+ *
558
+ * Send a past delivery's event again now, with the same event id and body, as a new delivery (one attempt, also when the webhook is turned off). Returns the new delivery with your URL's response.
559
+ *
560
+ * MCP tool: `webhooks_redeliver`. Key scope: `webhooks:write`.
561
+ *
562
+ * `POST /api/webhooks/endpoints/{webhookId}/deliveries/{deliveryId}/redeliver`
563
+ */
564
+ redeliver(webhookId, deliveryId, options) {
565
+ return this.transport.request({ method: "POST", path: `/api/webhooks/endpoints/${(0, core_js_1.encodePathParam)(webhookId)}/deliveries/${(0, core_js_1.encodePathParam)(deliveryId)}/redeliver` }, options);
566
+ }
567
+ }
568
+ exports.Webhooks = Webhooks;
569
+ /** `docs` operations. */
570
+ class Docs {
571
+ transport;
572
+ constructor(transport) {
573
+ this.transport = transport;
574
+ }
575
+ /**
576
+ * Search the docs
577
+ *
578
+ * Search the Ampost docs (`/docs`, `/docs/mcp` and `/llms-full.txt`) for a question such as "schedule a post to instagram". Returns the best matching sections, each with its title, a short excerpt and its URL. Any valid key may call it, and it is not counted toward the plan's 30-day API requests.
579
+ *
580
+ * MCP tool: `docs_search`. Key scope: none (any key).
581
+ *
582
+ * `GET /api/docs/search`
583
+ */
584
+ search(query, options) {
585
+ return this.transport.request({ method: "GET", path: "/api/docs/search", query }, options);
586
+ }
587
+ }
588
+ exports.Docs = Docs;
589
+ /** `feedback` operations. */
590
+ class Feedback {
591
+ transport;
592
+ constructor(transport) {
593
+ this.transport = transport;
594
+ }
595
+ /**
596
+ * Report a bug or suggest a change
597
+ *
598
+ * Send the Ampost team a bug report or a suggestion. When an Ampost call fails in a way you can't explain or fix, report it with the `request` you sent (method, path or tool, body) and the `error` you got (status, code, message, `X-Request-Id`). Ampost adds the user's plan and connected accounts with their health. Fields named like secrets and Ampost keys in strings are removed; don't send credentials. Any valid key may call it, at most 10 reports an hour and 20 a day (5 a day with a screenshot); it is not counted toward the plan's 30-day API requests.
599
+ *
600
+ * MCP tool: `feedback_submit`. Key scope: none (any key).
601
+ *
602
+ * `POST /api/feedback`
603
+ * Sends an `Idempotency-Key` (yours, or a generated one kept across retries).
604
+ */
605
+ submit(body, options) {
606
+ return this.transport.request({ method: "POST", path: "/api/feedback", body, idempotent: true }, options);
607
+ }
608
+ }
609
+ exports.Feedback = Feedback;
610
+ /** Every resource of the API, one property per tag. `Ampost` extends this. */
611
+ class AmpostResources {
612
+ platforms = new Platforms(this);
613
+ posts = new Posts(this);
614
+ media = new Media(this);
615
+ accounts = new Accounts(this);
616
+ platformSets = new PlatformSets(this);
617
+ analytics = new Analytics(this);
618
+ webhooks = new Webhooks(this);
619
+ docs = new Docs(this);
620
+ feedback = new Feedback(this);
621
+ }
622
+ exports.AmpostResources = AmpostResources;
623
+ /** Every operation, for tests and tooling. */
624
+ exports.OPERATIONS = [
625
+ { operationId: "platforms_list", resource: "platforms", method: "list", httpMethod: "GET", path: "/api/platforms", idempotent: false, paginated: true },
626
+ { operationId: "posts_list", resource: "posts", method: "list", httpMethod: "GET", path: "/api/posts", idempotent: false, paginated: true },
627
+ { operationId: "posts_create", resource: "posts", method: "create", httpMethod: "POST", path: "/api/posts", idempotent: true, paginated: false },
628
+ { operationId: "posts_validate", resource: "posts", method: "validate", httpMethod: "POST", path: "/api/posts/validate", idempotent: false, paginated: false },
629
+ { operationId: "posts_import_csv", resource: "posts", method: "importCsv", httpMethod: "POST", path: "/api/posts/bulk", idempotent: true, paginated: false },
630
+ { operationId: "posts_get", resource: "posts", method: "get", httpMethod: "GET", path: "/api/posts/{postId}", idempotent: false, paginated: false },
631
+ { operationId: "posts_update", resource: "posts", method: "update", httpMethod: "PATCH", path: "/api/posts/{postId}", idempotent: false, paginated: false },
632
+ { operationId: "posts_delete", resource: "posts", method: "delete", httpMethod: "DELETE", path: "/api/posts/{postId}", idempotent: false, paginated: false },
633
+ { operationId: "posts_publish", resource: "posts", method: "publish", httpMethod: "POST", path: "/api/posts/{postId}/publish", idempotent: true, paginated: false },
634
+ { operationId: "posts_unpublish", resource: "posts", method: "unpublish", httpMethod: "POST", path: "/api/posts/{postId}/unpublish", idempotent: false, paginated: false },
635
+ { operationId: "posts_edit_published", resource: "posts", method: "editPublished", httpMethod: "POST", path: "/api/posts/{postId}/edit-published", idempotent: false, paginated: false },
636
+ { operationId: "posts_retry", resource: "posts", method: "retry", httpMethod: "POST", path: "/api/posts/{postId}/retry", idempotent: true, paginated: false },
637
+ { operationId: "media_upload_create", resource: "media", method: "createUpload", httpMethod: "POST", path: "/api/media/uploads", idempotent: false, paginated: false },
638
+ { operationId: "media_upload_status", resource: "media", method: "getUpload", httpMethod: "GET", path: "/api/media/uploads/{uploadId}", idempotent: false, paginated: false },
639
+ { operationId: "accounts_list", resource: "accounts", method: "list", httpMethod: "GET", path: "/api/accounts", idempotent: false, paginated: true },
640
+ { operationId: "accounts_get", resource: "accounts", method: "get", httpMethod: "GET", path: "/api/accounts/{accountId}", idempotent: false, paginated: false },
641
+ { operationId: "accounts_disconnect", resource: "accounts", method: "disconnect", httpMethod: "DELETE", path: "/api/accounts/{accountId}", idempotent: false, paginated: false },
642
+ { operationId: "accounts_set_analytics", resource: "accounts", method: "setAnalytics", httpMethod: "PATCH", path: "/api/accounts/{accountId}/analytics", idempotent: false, paginated: false },
643
+ { operationId: "accounts_list_boards", resource: "accounts", method: "listBoards", httpMethod: "GET", path: "/api/accounts/{accountId}/boards", idempotent: false, paginated: false },
644
+ { operationId: "accounts_set_board", resource: "accounts", method: "setBoard", httpMethod: "PATCH", path: "/api/accounts/{accountId}/board", idempotent: false, paginated: false },
645
+ { operationId: "accounts_connect", resource: "accounts", method: "connect", httpMethod: "POST", path: "/api/accounts/connect", idempotent: true, paginated: false },
646
+ { operationId: "accounts_connect_status", resource: "accounts", method: "getConnectRequest", httpMethod: "GET", path: "/api/accounts/connect/{connectRequestId}", idempotent: false, paginated: false },
647
+ { operationId: "platform_sets_list", resource: "platformSets", method: "list", httpMethod: "GET", path: "/api/platform-sets", idempotent: false, paginated: true },
648
+ { operationId: "platform_sets_create", resource: "platformSets", method: "create", httpMethod: "POST", path: "/api/platform-sets", idempotent: true, paginated: false },
649
+ { operationId: "platform_sets_get", resource: "platformSets", method: "get", httpMethod: "GET", path: "/api/platform-sets/{platformSetId}", idempotent: false, paginated: false },
650
+ { operationId: "platform_sets_update", resource: "platformSets", method: "update", httpMethod: "PATCH", path: "/api/platform-sets/{platformSetId}", idempotent: false, paginated: false },
651
+ { operationId: "platform_sets_delete", resource: "platformSets", method: "delete", httpMethod: "DELETE", path: "/api/platform-sets/{platformSetId}", idempotent: false, paginated: false },
652
+ { operationId: "queue_get", resource: "platformSets", method: "getQueue", httpMethod: "GET", path: "/api/platform-sets/{platformSetId}/queue", idempotent: false, paginated: false },
653
+ { operationId: "queue_update", resource: "platformSets", method: "updateQueue", httpMethod: "PATCH", path: "/api/platform-sets/{platformSetId}/queue", idempotent: false, paginated: false },
654
+ { operationId: "queue_slots", resource: "platformSets", method: "getQueueSlots", httpMethod: "GET", path: "/api/platform-sets/{platformSetId}/queue/slots", idempotent: false, paginated: false },
655
+ { operationId: "analytics_posts", resource: "analytics", method: "listPosts", httpMethod: "GET", path: "/api/analytics/posts", idempotent: false, paginated: true },
656
+ { operationId: "analytics_overview", resource: "analytics", method: "getOverview", httpMethod: "GET", path: "/api/analytics/overview", idempotent: false, paginated: false },
657
+ { operationId: "analytics_followers", resource: "analytics", method: "listFollowers", httpMethod: "GET", path: "/api/analytics/followers", idempotent: false, paginated: true },
658
+ { operationId: "webhooks_list", resource: "webhooks", method: "list", httpMethod: "GET", path: "/api/webhooks/endpoints", idempotent: false, paginated: true },
659
+ { operationId: "webhooks_create", resource: "webhooks", method: "create", httpMethod: "POST", path: "/api/webhooks/endpoints", idempotent: true, paginated: false },
660
+ { operationId: "webhooks_get", resource: "webhooks", method: "get", httpMethod: "GET", path: "/api/webhooks/endpoints/{webhookId}", idempotent: false, paginated: false },
661
+ { operationId: "webhooks_update", resource: "webhooks", method: "update", httpMethod: "PATCH", path: "/api/webhooks/endpoints/{webhookId}", idempotent: false, paginated: false },
662
+ { operationId: "webhooks_delete", resource: "webhooks", method: "delete", httpMethod: "DELETE", path: "/api/webhooks/endpoints/{webhookId}", idempotent: false, paginated: false },
663
+ { operationId: "webhooks_test", resource: "webhooks", method: "test", httpMethod: "POST", path: "/api/webhooks/endpoints/{webhookId}/test", idempotent: false, paginated: false },
664
+ { operationId: "webhooks_deliveries_list", resource: "webhooks", method: "listDeliveries", httpMethod: "GET", path: "/api/webhooks/endpoints/{webhookId}/deliveries", idempotent: false, paginated: true },
665
+ { operationId: "webhooks_redeliver", resource: "webhooks", method: "redeliver", httpMethod: "POST", path: "/api/webhooks/endpoints/{webhookId}/deliveries/{deliveryId}/redeliver", idempotent: false, paginated: false },
666
+ { operationId: "docs_search", resource: "docs", method: "search", httpMethod: "GET", path: "/api/docs/search", idempotent: false, paginated: false },
667
+ { operationId: "feedback_submit", resource: "feedback", method: "submit", httpMethod: "POST", path: "/api/feedback", idempotent: true, paginated: false },
668
+ ];