@usenadia/node 0.3.0 → 0.5.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.
package/dist/index.d.mts CHANGED
@@ -332,6 +332,18 @@ type ApiErrorDto = {
332
332
  * Human-readable reason.
333
333
  */
334
334
  msg: string;
335
+ /**
336
+ * Machine-readable reason, when there is one: role_refused when the caller's role does not allow the call.
337
+ */
338
+ code?: string;
339
+ /**
340
+ * With role_refused: the action of the team's roles the call needs (posts.write, channels, alerts…).
341
+ */
342
+ action?: string;
343
+ /**
344
+ * With role_refused: the caller's role (OWNER, ADMIN, PUBLISHER, CREATOR, CLIENT).
345
+ */
346
+ role?: string;
335
347
  };
336
348
  type MediaResponseDto = {
337
349
  /**
@@ -409,7 +421,7 @@ type UploadSessionDto = {
409
421
  */
410
422
  uploadId: string;
411
423
  /**
412
- * Where the bytes go: in parts, each part to `<uploadUrl>/<n>`; otherwise the whole file, once. No `Authorization` header: the URL is the credential.
424
+ * Where the bytes go: each part to `<uploadUrl>/<n>`. No `Authorization` header: the URL is the credential.
413
425
  */
414
426
  uploadUrl: string;
415
427
  /**
@@ -423,7 +435,7 @@ type UploadSessionDto = {
423
435
  [key: string]: string;
424
436
  };
425
437
  /**
426
- * 24 hours after the call in parts, 15 minutes for a single PUT.
438
+ * 24 hours after the call: the URL and the parts sent with it are kept until then.
427
439
  */
428
440
  expiresAt: string;
429
441
  /**
@@ -435,13 +447,13 @@ type UploadSessionDto = {
435
447
  */
436
448
  curl: string;
437
449
  /**
438
- * In parts only: the size of a part in bytes (20 MB; the last one is smaller).
450
+ * The size of a part in bytes (20 MB; the last one is smaller).
439
451
  */
440
- partSize?: number;
452
+ partSize: number;
441
453
  /**
442
- * In parts only: how many parts. Absent = a single PUT.
454
+ * How many parts: part `n` goes to `<uploadUrl>/<n>`, `n` from 1 to `parts`.
443
455
  */
444
- parts?: number;
456
+ parts: number;
445
457
  };
446
458
  type ConfirmedUploadDto = {
447
459
  /**
@@ -574,9 +586,9 @@ type PostDto = {
574
586
  */
575
587
  content: string;
576
588
  /**
577
- * Scheduled publication time (UTC).
589
+ * Scheduled publication time (UTC). Null for a draft that has no date yet (never in `GET /posts`, listed by `GET /posts/drafts`).
578
590
  */
579
- publishDate: string;
591
+ publishDate: string | null;
580
592
  state: 'QUEUE' | 'PUBLISHED' | 'ERROR' | 'DRAFT' | 'SENT_UNCONFIRMED';
581
593
  /**
582
594
  * URL of the published post, once published.
@@ -591,9 +603,9 @@ type PostDto = {
591
603
  */
592
604
  intervalInDays?: number | null;
593
605
  /**
594
- * Where the post came from.
606
+ * Where the post came from: `WEB` (the app), `API`, `CLI`, `MCP`, `AUTOPOST`, `UNKNOWN` (an old post), or `IMPORT`: a publication made outside UseNadia (in the platform's own app, or before the channel was connected), brought into the calendar at its real time. An import is a published post like the others: it is read, deleted (on its platform too, where UseNadia can) and changed the same way.
595
607
  */
596
- creationMethod?: 'API' | 'CLI' | 'UI' | 'MCP';
608
+ creationMethod?: 'UNKNOWN' | 'WEB' | 'MCP' | 'API' | 'AUTOPOST' | 'CLI' | 'IMPORT';
597
609
  tags?: Array<PostTagDto>;
598
610
  integration?: PostIntegrationSummaryDto;
599
611
  /**
@@ -608,6 +620,48 @@ type PostDto = {
608
620
  * The publication the post is in: the posts of one content on several channels share it (unlike `group`, which is one post and its thread on one channel). Null for a post saved before publications and not caught up yet.
609
621
  */
610
622
  publication?: string | null;
623
+ /**
624
+ * The post's approval, when it was sent for one (a Content Creator's post waits for a member who can approve). Left out for a post never sent for an approval.
625
+ */
626
+ approval?: PostApprovalDto;
627
+ /**
628
+ * Id of the member who wrote the post: in the app (or with its agent), or through an OAuth connection he authorized. Null when no member did: written with the organization's API key or a workspace key, by an automation, imported from the platform, or saved before authors were kept. Returned by the list of posts and by `getPost`.
629
+ */
630
+ createdBy?: string | null;
631
+ };
632
+ type PostApprovalDto = {
633
+ /**
634
+ * PENDING: the post waits (a draft, it does not go out); APPROVED: it went to the queue at its date; REJECTED: refused, a draft again, with `note`.
635
+ */
636
+ state: 'PENDING' | 'APPROVED' | 'REJECTED';
637
+ /**
638
+ * The note left with a refusal; null else.
639
+ */
640
+ note: string | null;
641
+ /**
642
+ * Who sent it for the approval (name, or e-mail without a name).
643
+ */
644
+ author: string;
645
+ /**
646
+ * When it was sent for the approval.
647
+ */
648
+ requestedAt: string | null;
649
+ /**
650
+ * When it was approved or refused; null while it waits.
651
+ */
652
+ answeredAt: string | null;
653
+ /**
654
+ * Who approved or refused it (empty while it waits).
655
+ */
656
+ answeredBy: string;
657
+ /**
658
+ * Who it waits for, or who answered last: `team`, a member who can approve; `client`, one of the workspace's client reviewers (its workspace asks for the client's sign-off, `clientApproval`). A post the team approved that waits for the client is PENDING with `client`.
659
+ */
660
+ stage: 'team' | 'client';
661
+ /**
662
+ * The client reviewer who approved or refused it (empty otherwise).
663
+ */
664
+ reviewer: string;
611
665
  };
612
666
  type PostListDto = {
613
667
  posts: Array<PostDto>;
@@ -622,21 +676,72 @@ type PostMediaDto = {
622
676
  */
623
677
  path: string;
624
678
  /**
625
- * The cover of a video, as UseNadia serves it: on Instagram, the image a reel shows in the profile grid. Null without one, and always null for an image.
679
+ * The cover of a video, as UseNadia serves it: the image it is published with on the channels that read one. Null without one, and always null for an image.
626
680
  */
627
681
  thumbnail: string | null;
682
+ /**
683
+ * The moment of a video used as its cover, in milliseconds. Null without one, and always null for an image.
684
+ */
685
+ thumbnailTimestamp: number | null;
628
686
  };
629
687
  type PostDetailDto = PostDto & {
630
688
  /**
631
689
  * The media of the post, in order, each with its cover.
632
690
  */
633
691
  media: Array<PostMediaDto>;
692
+ /**
693
+ * The settings of the post as they are stored: the platform's own (as `createPost` takes them) and the comment → DM automation (`automationFlowId`, `automationKeywords`, `automationVariables`). `{}` when it has none.
694
+ */
695
+ settings: {
696
+ [key: string]: unknown;
697
+ };
698
+ /**
699
+ * The comments under the post (the next posts of a thread on X, Threads, Bluesky), in order; `[]` when none. Replace them with `setPostThread`.
700
+ */
701
+ thread: Array<PostThreadCommentDto>;
702
+ };
703
+ type PostThreadCommentDto = {
704
+ /**
705
+ * The id of the comment (a post of the thread).
706
+ */
707
+ id: string;
708
+ /**
709
+ * Its text, as stored (HTML).
710
+ */
711
+ content: string;
712
+ /**
713
+ * Its media, in order.
714
+ */
715
+ media: Array<PostMediaDto>;
634
716
  };
717
+ /**
718
+ * Give `thumbnail`, `thumbnailTimestamp`, or both.
719
+ */
635
720
  type SetPostCoverDto = {
636
721
  /**
637
- * The new cover of the post's video: the URL of a JPEG (ideally 1080x1920, 8 MB at most). `null` takes the cover off: Instagram then uses the frame chosen in the composer, or the first one.
722
+ * The new cover of the post's video: the URL of a picture (JPEG, PNG, WebP, AVIF, HEIC or the first frame of a GIF; ideally 1080x1920, 20 MB at most, between 1:4 and 4:1, 100 pixels at least on each side), kept by UseNadia as a JPEG of 2 MB and 1920 pixels at most, which every channel takes. Given without `thumbnailTimestamp`, it takes the moment off (the image wins). `null` takes the cover off: the channel then uses `thumbnailTimestamp`, or the first frame. Left out, the image does not move.
638
723
  */
639
- thumbnail: string | null;
724
+ thumbnail?: string | null;
725
+ /**
726
+ * The new moment of the video used as its cover, in milliseconds from its start; `null` takes it off. It is the only cover TikTok takes through the classic connection (Direct Post); Instagram, TikTok (Business API) and Pinterest read it when the video has no `thumbnail`. Other channels ignore it. Left out, the moment does not move, unless a new `thumbnail` is given (the image wins: the moment is taken off).
727
+ */
728
+ thumbnailTimestamp?: number | null;
729
+ };
730
+ type SetPostThreadCommentDto = {
731
+ /**
732
+ * The text of the comment, as the `content` of a post in `createPost`; may be empty when it has an image.
733
+ */
734
+ content: string;
735
+ /**
736
+ * Its images (id and path of a media, as in `createPost`); left out or `[]` for none. Instagram and LinkedIn take none.
737
+ */
738
+ image?: Array<MediaDto>;
739
+ };
740
+ type SetPostThreadDto = {
741
+ /**
742
+ * The whole thread, in order: it replaces the comments the post has. `[]` takes them all off.
743
+ */
744
+ thread: Array<SetPostThreadCommentDto>;
640
745
  };
641
746
  type Tags = {
642
747
  value: string;
@@ -650,9 +755,13 @@ type MediaDto = {
650
755
  path: string;
651
756
  alt?: string;
652
757
  /**
653
- * The cover of a video: the URL of a JPEG (ideally 1080x1920, 8 MB at most). On Instagram a Reel is published with it as its cover, the image in the profile grid, instead of a frame of the video. Any public URL, a signed one included: UseNadia keeps its own copy when the post is scheduled and stores that URL. A cover that cannot be downloaded, or is not a JPEG, refuses the post with a 400 naming it.
758
+ * The cover of a video: the URL of a picture (JPEG, PNG, WebP, AVIF, HEIC or the first frame of a GIF; ideally 1080x1920, 20 MB at most, between 1:4 and 4:1, 100 pixels at least on each side), kept by UseNadia as a JPEG of 2 MB and 1920 pixels at most, which every channel takes, shown instead of a frame of the video. Read as the cover by Instagram, TikTok (Business API), LinkedIn (profile and page), Telegram, Pinterest, Mastodon and Facebook (Page video, not reels or stories); TikTok through the classic connection reads only `thumbnailTimestamp`; YouTube uses the `thumbnail` setting of its post; Threads, Bluesky, X, Discord and Google Business Profile take no cover. Any public URL, a signed one included: UseNadia keeps its own copy when the post is scheduled and stores that URL. A cover that cannot be downloaded or read as a picture, or out of those bounds, refuses the post of its channel with a 400 naming it.
654
759
  */
655
760
  thumbnail?: string;
761
+ /**
762
+ * The moment of the video used as its cover, in milliseconds from its start. It is the only cover TikTok takes through the classic connection (Direct Post); Instagram, TikTok (Business API) and Pinterest read it when the video has no `thumbnail`. Other channels ignore it. Given with `thumbnail`, the two are one cover: the frame and its moment.
763
+ */
764
+ thumbnailTimestamp?: number | null;
656
765
  };
657
766
  type PostContent = {
658
767
  content: string;
@@ -665,6 +774,9 @@ type Post = {
665
774
  integration: Integration;
666
775
  value: Array<PostContent>;
667
776
  group?: string;
777
+ /**
778
+ * The channel's settings: `__type` is the provider identifier, the other fields are listed for each channel by GET /public/v1/integrations/{id}/settings. On an Instagram post or story (or a Facebook Page post or reel), a comment → DM automation is set up before publication with `automationFlowId` (a template id from GET /public/v1/automation-flows), `automationKeywords` (the trigger words) and `automationVariables` (one value per `{variable}` of the template): Nadia poses it by itself the moment the post goes live. A post already scheduled gets it with PUT /public/v1/posts/{id}/automation.
779
+ */
668
780
  settings: {
669
781
  [key: string]: unknown;
670
782
  };
@@ -678,7 +790,10 @@ type PublicCreatePostDto = {
678
790
  order?: string;
679
791
  shortLink: boolean;
680
792
  inter?: number;
681
- date: string;
793
+ /**
794
+ * When the post goes out (ISO 8601). Required, except for a `draft`: a draft sent without `date`, or with a `date` already past, has no date (`publishDate` null); a `date` to come places it. It is in no calendar (`GET /posts` leaves it out) and is listed by `GET /posts/drafts` until it is placed: send the post again with its ids, `type: schedule` (or `now`) and a `date`. `PUT /posts/{id}/status` to `schedule` refuses a draft that has no date.
795
+ */
796
+ date?: string;
682
797
  tags: Array<Tags>;
683
798
  posts: Array<Post>;
684
799
  /**
@@ -704,6 +819,10 @@ type CreatePostResultItemDto = {
704
819
  */
705
820
  publication: string;
706
821
  mediaTagged?: MediaTaggedDto;
822
+ /**
823
+ * The post waits for an approval: its author's role cannot publish (a Content Creator, through its connector). Approve it with POST /public/v1/posts/{id}/approve
824
+ */
825
+ approval?: 'PENDING';
707
826
  };
708
827
  type DeletedIdDto = {
709
828
  /**
@@ -711,6 +830,42 @@ type DeletedIdDto = {
711
830
  */
712
831
  id: string;
713
832
  };
833
+ type DeletedPostDto = {
834
+ /**
835
+ * Id of the deleted post, or the group for a group.
836
+ */
837
+ id: string;
838
+ /**
839
+ * What the deletion did to each post of the group (one per channel).
840
+ */
841
+ posts: Array<{
842
+ postId: string;
843
+ /**
844
+ * The channel's name.
845
+ */
846
+ channel?: string;
847
+ /**
848
+ * The platform, e.g. LinkedIn.
849
+ */
850
+ platform: string;
851
+ /**
852
+ * The post's state before the deletion.
853
+ */
854
+ state: string;
855
+ /**
856
+ * `cancelled`: not published yet, it never goes out. `removedFromNadiaOnly`: already out, only its copy in UseNadia is removed, the post stays online on the platform. `deletedOnPlatform`: already out, deleted at its platform for good (asked with `deleteOnPlatform=true`) and removed from UseNadia.
857
+ */
858
+ outcome: 'cancelled' | 'removedFromNadiaOnly' | 'deletedOnPlatform';
859
+ /**
860
+ * The post is out and stays online on the platform.
861
+ */
862
+ stillOnline: boolean;
863
+ /**
864
+ * The post is live on a platform where UseNadia can delete it too (with `deleteOnPlatform=true`).
865
+ */
866
+ deletableOnPlatform: boolean;
867
+ }>;
868
+ };
714
869
  type IsConnectedDto = {
715
870
  /**
716
871
  * Always true — the route exists to validate an API key.
@@ -754,6 +909,10 @@ type WorkspaceDto = {
754
909
  * What the workspace is about — brand, audience, tone — as written in the app (up to 2000 characters). Read it before writing for this workspace.
755
910
  */
756
911
  about: string | null;
912
+ /**
913
+ * Client sign-off: when `true`, a post approved by the team waits for one of the workspace's client reviewers before it goes out (its `approval.stage` is `client`).
914
+ */
915
+ clientApproval: boolean;
757
916
  /**
758
917
  * Set when the workspace has no time zone (null otherwise): a time without offset given for its channels is then read in UTC by the MCP tools. Ask the user for their time zone and set it with `updateWorkspace`.
759
918
  */
@@ -761,11 +920,11 @@ type WorkspaceDto = {
761
920
  };
762
921
  type SubscriptionDto = {
763
922
  /**
764
- * The plan; FREE: no active subscription.
923
+ * The plan; FREE: no active subscription; GRATUIT: the Free plan every sign-up gets (2 channels, for life).
765
924
  */
766
- tier: 'FREE' | 'SOLO' | 'EQUIPE' | 'AGENCE' | 'STARTER_ULTIME' | 'ULTIME' | 'VCORP';
925
+ tier: 'FREE' | 'GRATUIT' | 'SOLO' | 'EQUIPE' | 'AGENCE' | 'STARTER_ULTIME' | 'ULTIME' | 'OPERATEUR_FREE' | 'VCORP';
767
926
  /**
768
- * The plan's name as the app shows it in English (Free, Solo, Team, Agency, Starter ultime, Upgrade Ultime, Vcorp).
927
+ * The plan's name as the app shows it in English (Free, Solo, Team, Agency, Starter ultime, Upgrade Ultime, Vcorp; Free for both FREE and GRATUIT).
769
928
  */
770
929
  name: string;
771
930
  /**
@@ -805,7 +964,7 @@ type SubscriptionDto = {
805
964
  */
806
965
  channels: {
807
966
  /**
808
- * Channels connected.
967
+ * Channels connected (a connection left before its Page, channel or listing was chosen is not one).
809
968
  */
810
969
  connected: number;
811
970
  /**
@@ -879,7 +1038,7 @@ type SubscriptionDto = {
879
1038
  */
880
1039
  manageUrl: string | null;
881
1040
  /**
882
- * What will be charged and what was, read from Stripe (plan 86): the next invoice, the last payment, Stripe's state. Cached a few minutes.
1041
+ * What will be charged and what was, read from Stripe: the next invoice, the last payment, Stripe's state. Cached a few minutes.
883
1042
  */
884
1043
  billing: {
885
1044
  /**
@@ -994,6 +1153,44 @@ type SubscriptionDto = {
994
1153
  nextRetryAt: string | null;
995
1154
  } | null;
996
1155
  };
1156
+ /**
1157
+ * The organization's X credits (plan 101): bought at the price X charges, Stripe's fees included, they pay for the posts with a link past the month's inclusion of each X account ($0.20 each). Shared by all the organization's X accounts; they never expire.
1158
+ */
1159
+ xCredits: {
1160
+ /**
1161
+ * The balance in micro-dollars of X credit (1 $ = 1,000,000). Can be under zero after a refund of credits already spent.
1162
+ */
1163
+ balanceMicros: number;
1164
+ /**
1165
+ * The balance in dollars of X credit (0.4 = $0.40).
1166
+ */
1167
+ balance: number;
1168
+ /**
1169
+ * What a post with a link past the inclusion costs, in dollars (0.2).
1170
+ */
1171
+ linkPostCost: number;
1172
+ /**
1173
+ * Posts with a link the balance pays for.
1174
+ */
1175
+ linkPostsCovered: number;
1176
+ /**
1177
+ * Posts with a link included per month and per X account, before the credits are spent.
1178
+ */
1179
+ includedLinkPostsPerMonth: number;
1180
+ /**
1181
+ * The packs to buy, each a Stripe payment link for this organization.
1182
+ */
1183
+ packs: Array<{
1184
+ /**
1185
+ * The X credit the pack gives, in dollars.
1186
+ */
1187
+ credit: number;
1188
+ /**
1189
+ * The Stripe payment link, for this organization.
1190
+ */
1191
+ url: string;
1192
+ }>;
1193
+ };
997
1194
  };
998
1195
  type GroupDto = {
999
1196
  /**
@@ -1140,6 +1337,10 @@ type ChangePostStatusDto = {
1140
1337
  type PostStatusDto = {
1141
1338
  id: string;
1142
1339
  state: 'QUEUE' | 'PUBLISHED' | 'ERROR' | 'DRAFT';
1340
+ /**
1341
+ * status = schedule by a role that cannot publish (a Content Creator, through its connector): the post waits for an approval instead
1342
+ */
1343
+ approval?: 'PENDING';
1143
1344
  };
1144
1345
  type UpdateReleaseIdDto = {
1145
1346
  /**
@@ -1165,17 +1366,23 @@ type AnalyticsMetricDto = {
1165
1366
  data: Array<AnalyticsPointDto>;
1166
1367
  percentageChange?: number;
1167
1368
  };
1369
+ /**
1370
+ * One collection pass of the account. A number the platform does not give for that channel is null.
1371
+ */
1168
1372
  type AccountHistoryItemDto = {
1169
- integrationId: string;
1170
1373
  /**
1171
1374
  * Collection timestamp.
1172
1375
  */
1173
- at: string;
1376
+ takenAt: string;
1377
+ followers: number | null;
1378
+ following: number | null;
1379
+ totalLikes: number | null;
1174
1380
  /**
1175
- * Metric name as the provider names it.
1381
+ * Number of videos on the account.
1176
1382
  */
1177
- metric: string;
1178
- value: number;
1383
+ videos: number | null;
1384
+ views: number | null;
1385
+ reach: number | null;
1179
1386
  };
1180
1387
  type HistoryPageDto = {
1181
1388
  items: Array<AccountHistoryItemDto>;
@@ -1194,20 +1401,50 @@ type HistoryPageDto = {
1194
1401
  */
1195
1402
  to: string;
1196
1403
  };
1404
+ /**
1405
+ * One reading of one video. A number the platform does not give is null.
1406
+ */
1407
+ type VideoHistoryItemDto = {
1408
+ /**
1409
+ * Provider video id.
1410
+ */
1411
+ videoId: string;
1412
+ /**
1413
+ * Collection timestamp.
1414
+ */
1415
+ takenAt: string;
1416
+ publishedAt: string | null;
1417
+ views: number | null;
1418
+ likes: number | null;
1419
+ comments: number | null;
1420
+ shares: number | null;
1421
+ saves: number | null;
1422
+ reach: number | null;
1423
+ avgWatchTime: number | null;
1424
+ totalInteractions: number | null;
1425
+ };
1197
1426
  type VideoIdentityDto = {
1198
1427
  /**
1199
1428
  * Provider video id — the key used in `items`.
1200
1429
  */
1201
1430
  videoId: string;
1202
- title?: string | null;
1203
- cover?: string | null;
1431
+ title: string | null;
1432
+ description: string | null;
1433
+ coverUrl: string | null;
1434
+ shareUrl: string | null;
1204
1435
  /**
1205
1436
  * Duration in seconds.
1206
1437
  */
1207
- duration?: number | null;
1438
+ duration: number | null;
1439
+ publishedAt: string | null;
1440
+ skipRate: number | null;
1441
+ /**
1442
+ * When the collector last read this video's identity.
1443
+ */
1444
+ refreshedAt: string;
1208
1445
  };
1209
1446
  type VideoHistoryPageDto = {
1210
- items: Array<AccountHistoryItemDto>;
1447
+ items: Array<VideoHistoryItemDto>;
1211
1448
  /**
1212
1449
  * Total rows in the window, before limit/offset.
1213
1450
  */
@@ -1451,7 +1688,7 @@ type InboxThreadDto = {
1451
1688
  type AutomationFlowIssueDto = {
1452
1689
  level: 'error' | 'warning';
1453
1690
  /**
1454
- * A code of flow.validate.ts (`empty_text`, `button_title_too_long`, `window_closed`…).
1691
+ * A validation code (`empty_text`, `button_title_too_long`, `window_closed`…).
1455
1692
  */
1456
1693
  code: string;
1457
1694
  /**
@@ -1484,7 +1721,7 @@ type AutomationFlowResponseDto = {
1484
1721
  */
1485
1722
  status: 'DRAFT' | 'ACTIVE' | 'PAUSED' | 'ARCHIVED';
1486
1723
  /**
1487
- * The tree (FlowDefinition of automation-flow/flow.types.ts): nodes, edges, variables. A template carries no trigger word and no variable value — those belong to a pose.
1724
+ * The tree of the automation: nodes, edges, variables. A node's type is trigger, message, wait_reply, delay, condition, switch, action or goto; an edge goes from a node's output (port) to the next node. A switch ({"type": "switch", "cases": [{"id", "tag"}]}, 10 tags at most) has one output per tag, case:<id> in the list's order, then else: the run leaves by the first tag the person carries. A template carries no trigger word and no variable value — those belong to a pose.
1488
1725
  */
1489
1726
  definition: {
1490
1727
  [key: string]: unknown;
@@ -1585,6 +1822,9 @@ type EmailSentDto = {
1585
1822
  type AutomationFlowDto = {
1586
1823
  name: string;
1587
1824
  integrationId?: string | null;
1825
+ /**
1826
+ * The tree of steps, in the shape AutomationFlowResponseDto.definition describes (switch included).
1827
+ */
1588
1828
  definition: {
1589
1829
  [key: string]: unknown;
1590
1830
  };
@@ -1592,6 +1832,9 @@ type AutomationFlowDto = {
1592
1832
  type UpdateAutomationFlowDto = {
1593
1833
  name?: string;
1594
1834
  integrationId?: string | null;
1835
+ /**
1836
+ * The tree of steps, in the shape AutomationFlowResponseDto.definition describes (switch included).
1837
+ */
1595
1838
  definition?: {
1596
1839
  [key: string]: unknown;
1597
1840
  };
@@ -1661,7 +1904,7 @@ type AutomationFlowPoseResponseDto = {
1661
1904
  */
1662
1905
  postId?: string | null;
1663
1906
  /**
1664
- * The Instagram publication watched: a post id, or a story id.
1907
+ * The publication watched: an Instagram post or story id, a Facebook Page post id, or a TikTok video id.
1665
1908
  */
1666
1909
  mediaId: string;
1667
1910
  source: 'post_comment' | 'story_reply';
@@ -1984,7 +2227,10 @@ type ContentPostDto = {
1984
2227
  id: string;
1985
2228
  integrationId: string;
1986
2229
  state: 'QUEUE' | 'PUBLISHED' | 'ERROR' | 'DRAFT' | 'SENT_UNCONFIRMED';
1987
- publishDate: string;
2230
+ /**
2231
+ * Null for a draft that has no date yet.
2232
+ */
2233
+ publishDate: string | null;
1988
2234
  releaseURL?: string | null;
1989
2235
  };
1990
2236
  type ContentListItemDto = {
@@ -2565,7 +2811,10 @@ type PostAutomationResponseDto = {
2565
2811
  * story: answered by story replies; post: by comments
2566
2812
  */
2567
2813
  kind: 'post' | 'story';
2568
- publishDate: string;
2814
+ /**
2815
+ * Null for a draft that has no date yet.
2816
+ */
2817
+ publishDate: string | null;
2569
2818
  /**
2570
2819
  * The template posed at publication, null when none
2571
2820
  */
@@ -2801,6 +3050,10 @@ type UpdateWorkspaceDto = {
2801
3050
  * Channels to move into this workspace: each leaves its former workspace. An id that is not one of your channels is ignored.
2802
3051
  */
2803
3052
  integrationIds?: Array<string>;
3053
+ /**
3054
+ * Client sign-off: `true`, a post approved by the team then waits for one of the workspace's client reviewers (who approve from their own link, without an account) before it goes out. Turned off, what waited for the client waits for the team again.
3055
+ */
3056
+ clientApproval?: boolean;
2804
3057
  };
2805
3058
  type WorkspaceDeletedDto = {
2806
3059
  /**
@@ -2881,6 +3134,174 @@ type ContentWorkspacesDto = {
2881
3134
  */
2882
3135
  workspaces: Array<string>;
2883
3136
  };
3137
+ type ApiKeyWorkspaceDto = {
3138
+ /**
3139
+ * Workspace id.
3140
+ */
3141
+ id: string;
3142
+ /**
3143
+ * Workspace name.
3144
+ */
3145
+ name: string;
3146
+ };
3147
+ /**
3148
+ * A key limited to some workspaces, as listed: never its value.
3149
+ */
3150
+ type ApiKeyDto = {
3151
+ /**
3152
+ * Id of the key — what the other routes take in their path. It never changes, a rotation included.
3153
+ */
3154
+ id: string;
3155
+ /**
3156
+ * Who or what uses the key.
3157
+ */
3158
+ name: string;
3159
+ /**
3160
+ * The first characters of the key (`nws_` and four more), to recognise it. The full value is never returned again.
3161
+ */
3162
+ start: string;
3163
+ /**
3164
+ * The workspaces the key reaches, at least one.
3165
+ */
3166
+ workspaces: Array<ApiKeyWorkspaceDto>;
3167
+ createdAt: string;
3168
+ /**
3169
+ * When the key was last used (written at most once an hour), or null. A rotation sets it back to null.
3170
+ */
3171
+ lastUsedAt: string | null;
3172
+ };
3173
+ /**
3174
+ * A key limited to some workspaces, just created or rotated: its value, once.
3175
+ */
3176
+ type ApiKeyCreatedDto = {
3177
+ /**
3178
+ * Id of the key — what the other routes take in their path. It never changes, a rotation included.
3179
+ */
3180
+ id: string;
3181
+ /**
3182
+ * Who or what uses the key.
3183
+ */
3184
+ name: string;
3185
+ /**
3186
+ * The first characters of the key (`nws_` and four more), to recognise it. The full value is never returned again.
3187
+ */
3188
+ start: string;
3189
+ /**
3190
+ * The workspaces the key reaches, at least one.
3191
+ */
3192
+ workspaces: Array<ApiKeyWorkspaceDto>;
3193
+ createdAt: string;
3194
+ /**
3195
+ * When the key was last used (written at most once an hour), or null. A rotation sets it back to null.
3196
+ */
3197
+ lastUsedAt: string | null;
3198
+ /**
3199
+ * The key itself (`nws_…`), to send in the `Authorization` header. **Returned only here** — store it now: no other call gives it back.
3200
+ */
3201
+ key: string;
3202
+ };
3203
+ type CreateApiKeyDto = {
3204
+ /**
3205
+ * Who or what uses the key (a person you serve, a tool).
3206
+ */
3207
+ name: string;
3208
+ /**
3209
+ * Ids of the workspaces the key reaches, one or more, each of your organization.
3210
+ */
3211
+ workspaceIds: Array<string>;
3212
+ };
3213
+ /**
3214
+ * Only the fields sent change; at least one of them.
3215
+ */
3216
+ type UpdateApiKeyDto = {
3217
+ /**
3218
+ * Who or what uses the key.
3219
+ */
3220
+ name?: string;
3221
+ /**
3222
+ * The new set of workspaces the key reaches, one or more, each of your organization: it replaces the former one.
3223
+ */
3224
+ workspaceIds?: Array<string>;
3225
+ };
3226
+ /**
3227
+ * Why a request on the API keys was refused.
3228
+ */
3229
+ type ApiKeyErrorDto = {
3230
+ statusCode: number;
3231
+ message: string | Array<string>;
3232
+ error?: string;
3233
+ };
3234
+ type PostAnswerResultDto = {
3235
+ id: string;
3236
+ /**
3237
+ * QUEUE once approved (it goes out at its date), DRAFT once refused
3238
+ */
3239
+ state: 'QUEUE' | 'DRAFT';
3240
+ approval: 'APPROVED' | 'REJECTED';
3241
+ /**
3242
+ * Null for a draft that has no date yet.
3243
+ */
3244
+ publishDate: string | null;
3245
+ };
3246
+ type ApprovePostDto = {
3247
+ /**
3248
+ * A new date (ISO 8601), required when the post's date is past
3249
+ */
3250
+ date?: string;
3251
+ };
3252
+ type RefusePostDto = {
3253
+ /**
3254
+ * Why, read by the post's author
3255
+ */
3256
+ note?: string;
3257
+ };
3258
+ type AwaitingPostDto = {
3259
+ id: string;
3260
+ group: string;
3261
+ /**
3262
+ * Null for a draft that has no date yet.
3263
+ */
3264
+ publishDate: string | null;
3265
+ content: string;
3266
+ /**
3267
+ * The name (or e-mail) of who sent it for approval
3268
+ */
3269
+ author: string;
3270
+ requestedAt: string | null;
3271
+ /**
3272
+ * Who it waits for: `team`, a member who can approve; `client`, one of the workspace's client reviewers (from their own link). A post that waits for the client is not approved by the team: only refused, or approved by a member with the Client role.
3273
+ */
3274
+ stage: 'team' | 'client';
3275
+ integration: {
3276
+ id: string;
3277
+ name: string;
3278
+ picture: string | null;
3279
+ providerIdentifier: string;
3280
+ workspaceId: string | null;
3281
+ };
3282
+ };
3283
+ type AwaitingPostsDto = {
3284
+ posts: Array<AwaitingPostDto>;
3285
+ };
3286
+ type CommentPublicationDto = {
3287
+ /**
3288
+ * The comment, plain text. The platform's own limit applies (TikTok: 150 characters).
3289
+ */
3290
+ message: string;
3291
+ };
3292
+ /**
3293
+ * The comment as the platform gave it.
3294
+ */
3295
+ type CommentPublicationResultDto = {
3296
+ /**
3297
+ * The id of the new comment, given by the platform.
3298
+ */
3299
+ id: string;
3300
+ /**
3301
+ * Its address, when the platform gives one (empty otherwise).
3302
+ */
3303
+ url: string;
3304
+ };
2884
3305
  type UploadFileData = {
2885
3306
  body: {
2886
3307
  file: Blob | File;
@@ -2898,6 +3319,10 @@ type UploadFileErrors = {
2898
3319
  * Missing or invalid API key (`Authorization` header).
2899
3320
  */
2900
3321
  401: ApiErrorDto;
3322
+ /**
3323
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
3324
+ */
3325
+ 403: ApiErrorDto;
2901
3326
  /**
2902
3327
  * The channel, post or record named in the path does not belong to your organisation.
2903
3328
  */
@@ -2931,6 +3356,10 @@ type UploadFromUrlErrors = {
2931
3356
  * Missing or invalid API key (`Authorization` header).
2932
3357
  */
2933
3358
  401: ApiErrorDto;
3359
+ /**
3360
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
3361
+ */
3362
+ 403: ApiErrorDto;
2934
3363
  /**
2935
3364
  * The channel, post or record named in the path does not belong to your organisation.
2936
3365
  */
@@ -2962,6 +3391,10 @@ type GetUploadFromUrlErrors = {
2962
3391
  * Missing or invalid API key (`Authorization` header).
2963
3392
  */
2964
3393
  401: ApiErrorDto;
3394
+ /**
3395
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
3396
+ */
3397
+ 403: ApiErrorDto;
2965
3398
  /**
2966
3399
  * `IMPORT_NOT_FOUND`: no import with this id in your organization (or older than a day).
2967
3400
  */
@@ -2991,7 +3424,11 @@ type CreateUploadErrors = {
2991
3424
  */
2992
3425
  401: ApiErrorDto;
2993
3426
  /**
2994
- * `FILE_TOO_LARGE`: over the server's limit (`NADIA_DIRECT_UPLOAD_MAX_BYTES`, 500 MB by default).
3427
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
3428
+ */
3429
+ 403: ApiErrorDto;
3430
+ /**
3431
+ * `FILE_TOO_LARGE`: over the server's size limit (500 MB).
2995
3432
  */
2996
3433
  413: UploadErrorDto;
2997
3434
  /**
@@ -2999,13 +3436,9 @@ type CreateUploadErrors = {
2999
3436
  */
3000
3437
  415: UploadErrorDto;
3001
3438
  /**
3002
- * `TOO_MANY_PENDING_UPLOADS` or `PENDING_UPLOADS_TOO_LARGE` (50 uploads waiting, 10 GB declared, per organisation; 10 and 2 GB on a server that takes a single PUT), or the hourly budget of uploads.
3439
+ * `TOO_MANY_PENDING_UPLOADS` or `PENDING_UPLOADS_TOO_LARGE` (50 uploads waiting, 10 GB declared, per organisation), or the hourly budget of uploads.
3003
3440
  */
3004
3441
  429: UploadErrorDto;
3005
- /**
3006
- * `SERVER_STORAGE_FULL` (a server that takes a single PUT only): retry later.
3007
- */
3008
- 507: UploadErrorDto;
3009
3442
  };
3010
3443
  type CreateUploadError = CreateUploadErrors[keyof CreateUploadErrors];
3011
3444
  type CreateUploadResponses = {
@@ -3033,11 +3466,15 @@ type ConfirmUploadErrors = {
3033
3466
  */
3034
3467
  401: ApiErrorDto;
3035
3468
  /**
3036
- * `UPLOAD_NOT_FOUND` (unknown `uploadId`, another organisation's, or expired), or `FILE_NOT_UPLOADED` (single PUT: nothing received yet).
3469
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
3470
+ */
3471
+ 403: ApiErrorDto;
3472
+ /**
3473
+ * `UPLOAD_NOT_FOUND` (unknown `uploadId`, another organisation's, or expired).
3037
3474
  */
3038
3475
  404: UploadErrorDto;
3039
3476
  /**
3040
- * `UPLOAD_INCOMPLETE` (parts missing: `missingParts`), `UPLOAD_IN_PROGRESS` or `CONFIRM_IN_PROGRESS` (call again in a few seconds).
3477
+ * `UPLOAD_INCOMPLETE` (parts missing: `missingParts`), or `CONFIRM_IN_PROGRESS` (call again in a few seconds).
3041
3478
  */
3042
3479
  409: UploadErrorDto;
3043
3480
  /**
@@ -3082,6 +3519,10 @@ type SetMediaWorkspacesErrors = {
3082
3519
  * Missing or invalid API key (`Authorization` header), or no running subscription.
3083
3520
  */
3084
3521
  401: ApiErrorDto;
3522
+ /**
3523
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
3524
+ */
3525
+ 403: ApiErrorDto;
3085
3526
  /**
3086
3527
  * No media of your organisation has this id.
3087
3528
  */
@@ -3109,6 +3550,10 @@ type FindSlotErrors = {
3109
3550
  * Missing or invalid API key (`Authorization` header).
3110
3551
  */
3111
3552
  401: ApiErrorDto;
3553
+ /**
3554
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
3555
+ */
3556
+ 403: ApiErrorDto;
3112
3557
  /**
3113
3558
  * The channel, post or record named in the path does not belong to your organisation.
3114
3559
  */
@@ -3136,6 +3581,10 @@ type GetPostingTimesErrors = {
3136
3581
  * Missing or invalid API key (`Authorization` header).
3137
3582
  */
3138
3583
  401: ApiErrorDto;
3584
+ /**
3585
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
3586
+ */
3587
+ 403: ApiErrorDto;
3139
3588
  404: ApiErrorDto;
3140
3589
  };
3141
3590
  type GetPostingTimesError = GetPostingTimesErrors[keyof GetPostingTimesErrors];
@@ -3160,6 +3609,10 @@ type SetPostingTimesErrors = {
3160
3609
  * Missing or invalid API key (`Authorization` header).
3161
3610
  */
3162
3611
  401: ApiErrorDto;
3612
+ /**
3613
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
3614
+ */
3615
+ 403: ApiErrorDto;
3163
3616
  404: ApiErrorDto;
3164
3617
  };
3165
3618
  type SetPostingTimesError = SetPostingTimesErrors[keyof SetPostingTimesErrors];
@@ -3202,6 +3655,10 @@ type ListPostsErrors = {
3202
3655
  * Missing or invalid API key (`Authorization` header).
3203
3656
  */
3204
3657
  401: ApiErrorDto;
3658
+ /**
3659
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
3660
+ */
3661
+ 403: ApiErrorDto;
3205
3662
  /**
3206
3663
  * The channel, post or record named in the path does not belong to your organisation.
3207
3664
  */
@@ -3227,6 +3684,10 @@ type CreatePostErrors = {
3227
3684
  * Missing or invalid API key (`Authorization` header).
3228
3685
  */
3229
3686
  401: ApiErrorDto;
3687
+ /**
3688
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
3689
+ */
3690
+ 403: ApiErrorDto;
3230
3691
  /**
3231
3692
  * The channel, post or record named in the path does not belong to your organisation.
3232
3693
  */
@@ -3242,7 +3703,12 @@ type DeletePostData = {
3242
3703
  path: {
3243
3704
  id: string;
3244
3705
  };
3245
- query?: never;
3706
+ query?: {
3707
+ /**
3708
+ * `true` also deletes each published post of the group at its platform, for good, where UseNadia can (LinkedIn, X, Google Business Profile, Bluesky, Discord, Telegram; not a story). Anything else, or absent: UseNadia's copy only, the post stays online. A refusal by a platform deletes nothing, in UseNadia either (400, `msg` says why).
3709
+ */
3710
+ deleteOnPlatform?: 'true' | 'false';
3711
+ };
3246
3712
  url: '/public/v1/posts/{id}';
3247
3713
  };
3248
3714
  type DeletePostErrors = {
@@ -3254,6 +3720,10 @@ type DeletePostErrors = {
3254
3720
  * Missing or invalid API key (`Authorization` header).
3255
3721
  */
3256
3722
  401: ApiErrorDto;
3723
+ /**
3724
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
3725
+ */
3726
+ 403: ApiErrorDto;
3257
3727
  /**
3258
3728
  * The channel, post or record named in the path does not belong to your organisation.
3259
3729
  */
@@ -3261,7 +3731,10 @@ type DeletePostErrors = {
3261
3731
  };
3262
3732
  type DeletePostError = DeletePostErrors[keyof DeletePostErrors];
3263
3733
  type DeletePostResponses = {
3264
- 200: DeletedIdDto;
3734
+ /**
3735
+ * Deleted. `posts` says, per post, whether it was cancelled, deleted at its platform too, or only removed from UseNadia (still online on the platform).
3736
+ */
3737
+ 200: DeletedPostDto;
3265
3738
  };
3266
3739
  type DeletePostResponse = DeletePostResponses[keyof DeletePostResponses];
3267
3740
  type GetPostData = {
@@ -3277,6 +3750,10 @@ type GetPostErrors = {
3277
3750
  * Missing or invalid API key (`Authorization` header).
3278
3751
  */
3279
3752
  401: ApiErrorDto;
3753
+ /**
3754
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
3755
+ */
3756
+ 403: ApiErrorDto;
3280
3757
  /**
3281
3758
  * The channel, post or record named in the path does not belong to your organisation.
3282
3759
  */
@@ -3292,7 +3769,12 @@ type DeletePostGroupData = {
3292
3769
  path: {
3293
3770
  group: string;
3294
3771
  };
3295
- query?: never;
3772
+ query?: {
3773
+ /**
3774
+ * `true` also deletes each published post of the group at its platform, for good, where UseNadia can (LinkedIn, X, Google Business Profile, Bluesky, Discord, Telegram; not a story). Anything else, or absent: UseNadia's copy only, the post stays online. A refusal by a platform deletes nothing, in UseNadia either (400, `msg` says why).
3775
+ */
3776
+ deleteOnPlatform?: 'true' | 'false';
3777
+ };
3296
3778
  url: '/public/v1/posts/group/{group}';
3297
3779
  };
3298
3780
  type DeletePostGroupErrors = {
@@ -3304,6 +3786,10 @@ type DeletePostGroupErrors = {
3304
3786
  * Missing or invalid API key (`Authorization` header).
3305
3787
  */
3306
3788
  401: ApiErrorDto;
3789
+ /**
3790
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
3791
+ */
3792
+ 403: ApiErrorDto;
3307
3793
  /**
3308
3794
  * The channel, post or record named in the path does not belong to your organisation.
3309
3795
  */
@@ -3311,7 +3797,10 @@ type DeletePostGroupErrors = {
3311
3797
  };
3312
3798
  type DeletePostGroupError = DeletePostGroupErrors[keyof DeletePostGroupErrors];
3313
3799
  type DeletePostGroupResponses = {
3314
- 200: DeletedIdDto;
3800
+ /**
3801
+ * Deleted. `posts` says, per post, whether it was cancelled, deleted at its platform too, or only removed from UseNadia (still online on the platform).
3802
+ */
3803
+ 200: DeletedPostDto;
3315
3804
  };
3316
3805
  type DeletePostGroupResponse = DeletePostGroupResponses[keyof DeletePostGroupResponses];
3317
3806
  type CheckConnectionData = {
@@ -3354,6 +3843,10 @@ type ListWorkspacesErrors = {
3354
3843
  * Missing or invalid API key (`Authorization` header).
3355
3844
  */
3356
3845
  401: ApiErrorDto;
3846
+ /**
3847
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
3848
+ */
3849
+ 403: ApiErrorDto;
3357
3850
  /**
3358
3851
  * The channel, post or record named in the path does not belong to your organisation.
3359
3852
  */
@@ -3383,6 +3876,10 @@ type CreateWorkspaceErrors = {
3383
3876
  * Your plan's number of workspaces is reached (`used`, `quota`).
3384
3877
  */
3385
3878
  402: WorkspaceErrorDto;
3879
+ /**
3880
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
3881
+ */
3882
+ 403: ApiErrorDto;
3386
3883
  /**
3387
3884
  * A workspace already has this name.
3388
3885
  */
@@ -3429,6 +3926,10 @@ type ListGroupsErrors = {
3429
3926
  * Missing or invalid API key (`Authorization` header).
3430
3927
  */
3431
3928
  401: ApiErrorDto;
3929
+ /**
3930
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
3931
+ */
3932
+ 403: ApiErrorDto;
3432
3933
  /**
3433
3934
  * The channel, post or record named in the path does not belong to your organisation.
3434
3935
  */
@@ -3465,6 +3966,10 @@ type ListChannelsErrors = {
3465
3966
  * Missing or invalid API key (`Authorization` header).
3466
3967
  */
3467
3968
  401: ApiErrorDto;
3969
+ /**
3970
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
3971
+ */
3972
+ 403: ApiErrorDto;
3468
3973
  /**
3469
3974
  * The channel, post or record named in the path does not belong to your organisation.
3470
3975
  */
@@ -3481,13 +3986,30 @@ type StartChannelConnectionData = {
3481
3986
  integration: string;
3482
3987
  };
3483
3988
  query?: {
3989
+ /**
3990
+ * Reconnects an existing channel: its account id on the platform. A key limited to some workspaces names a live channel of one of its workspaces (404 otherwise). A reconnection never moves its channel: `workspace` is then ignored.
3991
+ */
3484
3992
  refresh?: string;
3993
+ /**
3994
+ * The workspace the new channel goes into (an id from `listWorkspaces`), for a partner that keeps one workspace per person it serves. It must be a workspace of the organization (404 otherwise). Without it: the organization's first workspace, or, with a key limited to some workspaces, its only workspace (400 when it has several). An account that is already a channel of the organization moves into it.
3995
+ */
3996
+ workspace?: string;
3997
+ /**
3998
+ * Deprecated alias of `workspace`.
3999
+ *
4000
+ * @deprecated
4001
+ */
4002
+ group?: string;
4003
+ /**
4004
+ * Where the person is sent back once the connection is over, success or failure, from UseNadia's return page (no UseNadia account needed). An absolute `https` URL (`http` only for `localhost`), without credentials, of at most 2048 characters (400 otherwise). Added to its query: `added=<provider>` and one `integration=<id>` per channel added, or `error=<code>` (`cancelled`, `not_in_plan`, `account_in_use`, `waitlist`, `refused`, `failed`, `page_failed`, `channel_limit`). Not checked against a list of domains: the URL is given only to the holder of the key.
4005
+ */
4006
+ redirectUrl?: string;
3485
4007
  };
3486
4008
  url: '/public/v1/social/{integration}';
3487
4009
  };
3488
4010
  type StartChannelConnectionErrors = {
3489
4011
  /**
3490
- * The request was rejected — `msg` says why.
4012
+ * The request was rejected — `msg` says why: unknown identifier (`Integration not allowed`), a `redirectUrl` that is not an https URL, or a key limited to several workspaces without `workspace`.
3491
4013
  */
3492
4014
  400: ApiErrorDto;
3493
4015
  /**
@@ -3499,7 +4021,11 @@ type StartChannelConnectionErrors = {
3499
4021
  */
3500
4022
  402: ApiErrorDto;
3501
4023
  /**
3502
- * The channel, post or record named in the path does not belong to your organisation.
4024
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4025
+ */
4026
+ 403: ApiErrorDto;
4027
+ /**
4028
+ * The `workspace` is not one of your organisation's (or of your key's workspaces), or `refresh` names no channel your key reaches — `msg` says which.
3503
4029
  */
3504
4030
  404: ApiErrorDto;
3505
4031
  };
@@ -3552,6 +4078,10 @@ type DeleteChannelErrors = {
3552
4078
  * Missing or invalid API key (`Authorization` header).
3553
4079
  */
3554
4080
  401: ApiErrorDto;
4081
+ /**
4082
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4083
+ */
4084
+ 403: ApiErrorDto;
3555
4085
  /**
3556
4086
  * The channel, post or record named in the path does not belong to your organisation.
3557
4087
  */
@@ -3579,6 +4109,10 @@ type GetChannelSettingsErrors = {
3579
4109
  * Missing or invalid API key (`Authorization` header).
3580
4110
  */
3581
4111
  401: ApiErrorDto;
4112
+ /**
4113
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4114
+ */
4115
+ 403: ApiErrorDto;
3582
4116
  /**
3583
4117
  * The channel, post or record named in the path does not belong to your organisation.
3584
4118
  */
@@ -3606,6 +4140,10 @@ type ListMissingMediaErrors = {
3606
4140
  * Missing or invalid API key (`Authorization` header).
3607
4141
  */
3608
4142
  401: ApiErrorDto;
4143
+ /**
4144
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4145
+ */
4146
+ 403: ApiErrorDto;
3609
4147
  /**
3610
4148
  * The channel, post or record named in the path does not belong to your organisation.
3611
4149
  */
@@ -3633,6 +4171,10 @@ type ChangePostStatusErrors = {
3633
4171
  * Missing or invalid API key (`Authorization` header).
3634
4172
  */
3635
4173
  401: ApiErrorDto;
4174
+ /**
4175
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4176
+ */
4177
+ 403: ApiErrorDto;
3636
4178
  /**
3637
4179
  * The channel, post or record named in the path does not belong to your organisation.
3638
4180
  */
@@ -3643,6 +4185,150 @@ type ChangePostStatusResponses = {
3643
4185
  200: PostStatusDto;
3644
4186
  };
3645
4187
  type ChangePostStatusResponse = ChangePostStatusResponses[keyof ChangePostStatusResponses];
4188
+ type ListPostsAwaitingApprovalData = {
4189
+ body?: never;
4190
+ path?: never;
4191
+ query?: {
4192
+ /**
4193
+ * Only the posts of this workspace's channels
4194
+ */
4195
+ workspace?: string;
4196
+ };
4197
+ url: '/public/v1/posts/approvals';
4198
+ };
4199
+ type ListPostsAwaitingApprovalErrors = {
4200
+ /**
4201
+ * The request was rejected — `msg` says why.
4202
+ */
4203
+ 400: ApiErrorDto;
4204
+ /**
4205
+ * Missing or invalid API key (`Authorization` header).
4206
+ */
4207
+ 401: ApiErrorDto;
4208
+ /**
4209
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4210
+ */
4211
+ 403: ApiErrorDto;
4212
+ };
4213
+ type ListPostsAwaitingApprovalError = ListPostsAwaitingApprovalErrors[keyof ListPostsAwaitingApprovalErrors];
4214
+ type ListPostsAwaitingApprovalResponses = {
4215
+ /**
4216
+ * The posts that wait for an approval, soonest first (200 at most).
4217
+ */
4218
+ 200: AwaitingPostsDto;
4219
+ };
4220
+ type ListPostsAwaitingApprovalResponse = ListPostsAwaitingApprovalResponses[keyof ListPostsAwaitingApprovalResponses];
4221
+ type ListUndatedDraftsData = {
4222
+ body?: never;
4223
+ path?: never;
4224
+ query?: {
4225
+ /**
4226
+ * Deprecated alias of `workspace` (public API).
4227
+ *
4228
+ * @deprecated
4229
+ */
4230
+ customer?: string;
4231
+ /**
4232
+ * Deprecated alias of `workspace`.
4233
+ *
4234
+ * @deprecated
4235
+ */
4236
+ group?: string;
4237
+ /**
4238
+ * Only the drafts of the channels of this workspace (an id from `listWorkspaces`).
4239
+ */
4240
+ workspace?: string;
4241
+ /**
4242
+ * Only the drafts of this channel.
4243
+ */
4244
+ integration?: string;
4245
+ };
4246
+ url: '/public/v1/posts/drafts';
4247
+ };
4248
+ type ListUndatedDraftsErrors = {
4249
+ /**
4250
+ * The request was rejected — `msg` says why.
4251
+ */
4252
+ 400: ApiErrorDto;
4253
+ /**
4254
+ * Missing or invalid API key (`Authorization` header).
4255
+ */
4256
+ 401: ApiErrorDto;
4257
+ /**
4258
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4259
+ */
4260
+ 403: ApiErrorDto;
4261
+ };
4262
+ type ListUndatedDraftsError = ListUndatedDraftsErrors[keyof ListUndatedDraftsErrors];
4263
+ type ListUndatedDraftsResponses = {
4264
+ /**
4265
+ * The drafts without a date, oldest written first (500 at most), in the shape of `GET /posts` (`publishDate` null).
4266
+ */
4267
+ 200: PostListDto;
4268
+ };
4269
+ type ListUndatedDraftsResponse = ListUndatedDraftsResponses[keyof ListUndatedDraftsResponses];
4270
+ type ApprovePostData = {
4271
+ body?: ApprovePostDto;
4272
+ path: {
4273
+ id: string;
4274
+ };
4275
+ query?: never;
4276
+ url: '/public/v1/posts/{id}/approve';
4277
+ };
4278
+ type ApprovePostErrors = {
4279
+ /**
4280
+ * The post does not wait for an approval (answered already, or never sent for one), or its date is past — `message` says why.
4281
+ */
4282
+ 400: ApiErrorDto;
4283
+ /**
4284
+ * Missing or invalid API key (`Authorization` header).
4285
+ */
4286
+ 401: ApiErrorDto;
4287
+ /**
4288
+ * The caller's role cannot approve posts (a Content Creator). Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4289
+ */
4290
+ 403: ApiErrorDto;
4291
+ /**
4292
+ * The channel, post or record named in the path does not belong to your organisation.
4293
+ */
4294
+ 404: ApiErrorDto;
4295
+ };
4296
+ type ApprovePostError = ApprovePostErrors[keyof ApprovePostErrors];
4297
+ type ApprovePostResponses = {
4298
+ 200: PostAnswerResultDto;
4299
+ };
4300
+ type ApprovePostResponse = ApprovePostResponses[keyof ApprovePostResponses];
4301
+ type RefusePostData = {
4302
+ body?: RefusePostDto;
4303
+ path: {
4304
+ id: string;
4305
+ };
4306
+ query?: never;
4307
+ url: '/public/v1/posts/{id}/refuse';
4308
+ };
4309
+ type RefusePostErrors = {
4310
+ /**
4311
+ * The post does not wait for an approval (answered already, or never sent for one), or its date is past — `message` says why.
4312
+ */
4313
+ 400: ApiErrorDto;
4314
+ /**
4315
+ * Missing or invalid API key (`Authorization` header).
4316
+ */
4317
+ 401: ApiErrorDto;
4318
+ /**
4319
+ * The caller's role cannot approve posts (a Content Creator). Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4320
+ */
4321
+ 403: ApiErrorDto;
4322
+ /**
4323
+ * The channel, post or record named in the path does not belong to your organisation.
4324
+ */
4325
+ 404: ApiErrorDto;
4326
+ };
4327
+ type RefusePostError = RefusePostErrors[keyof RefusePostErrors];
4328
+ type RefusePostResponses = {
4329
+ 200: PostAnswerResultDto;
4330
+ };
4331
+ type RefusePostResponse = RefusePostResponses[keyof RefusePostResponses];
3646
4332
  type RemovePostAutomationData = {
3647
4333
  body?: never;
3648
4334
  path: {
@@ -3653,13 +4339,17 @@ type RemovePostAutomationData = {
3653
4339
  };
3654
4340
  type RemovePostAutomationErrors = {
3655
4341
  /**
3656
- * The request was rejected — `message` says why (the post is already published, is not an Instagram or Facebook Page post, or the pose has a hole).
4342
+ * The request was rejected — `message` says why (the post is already published, is not an Instagram, Facebook Page, TikTok (`tiktok-business`) or Threads post, or the pose has a hole).
3657
4343
  */
3658
4344
  400: ApiErrorDto;
3659
4345
  /**
3660
4346
  * Missing or invalid API key (`Authorization` header).
3661
4347
  */
3662
4348
  401: ApiErrorDto;
4349
+ /**
4350
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4351
+ */
4352
+ 403: ApiErrorDto;
3663
4353
  /**
3664
4354
  * The post or the template does not belong to your organisation.
3665
4355
  */
@@ -3680,13 +4370,17 @@ type GetPostAutomationData = {
3680
4370
  };
3681
4371
  type GetPostAutomationErrors = {
3682
4372
  /**
3683
- * The request was rejected — `message` says why (the post is already published, is not an Instagram or Facebook Page post, or the pose has a hole).
4373
+ * The request was rejected — `message` says why (the post is already published, is not an Instagram, Facebook Page, TikTok (`tiktok-business`) or Threads post, or the pose has a hole).
3684
4374
  */
3685
4375
  400: ApiErrorDto;
3686
4376
  /**
3687
4377
  * Missing or invalid API key (`Authorization` header).
3688
4378
  */
3689
4379
  401: ApiErrorDto;
4380
+ /**
4381
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4382
+ */
4383
+ 403: ApiErrorDto;
3690
4384
  /**
3691
4385
  * The post or the template does not belong to your organisation.
3692
4386
  */
@@ -3707,13 +4401,17 @@ type SetPostAutomationData = {
3707
4401
  };
3708
4402
  type SetPostAutomationErrors = {
3709
4403
  /**
3710
- * The request was rejected — `message` says why (the post is already published, is not an Instagram or Facebook Page post, or the pose has a hole).
4404
+ * The request was rejected — `message` says why (the post is already published, is not an Instagram, Facebook Page, TikTok (`tiktok-business`) or Threads post, or the pose has a hole).
3711
4405
  */
3712
4406
  400: ApiErrorDto;
3713
4407
  /**
3714
4408
  * Missing or invalid API key (`Authorization` header).
3715
4409
  */
3716
4410
  401: ApiErrorDto;
4411
+ /**
4412
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4413
+ */
4414
+ 403: ApiErrorDto;
3717
4415
  /**
3718
4416
  * The post or the template does not belong to your organisation.
3719
4417
  */
@@ -3741,6 +4439,10 @@ type SetPostReleaseIdErrors = {
3741
4439
  * Missing or invalid API key (`Authorization` header).
3742
4440
  */
3743
4441
  401: ApiErrorDto;
4442
+ /**
4443
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4444
+ */
4445
+ 403: ApiErrorDto;
3744
4446
  /**
3745
4447
  * The channel, post or record named in the path does not belong to your organisation.
3746
4448
  */
@@ -3768,6 +4470,10 @@ type SetPostCoverErrors = {
3768
4470
  * Missing or invalid API key (`Authorization` header).
3769
4471
  */
3770
4472
  401: ApiErrorDto;
4473
+ /**
4474
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4475
+ */
4476
+ 403: ApiErrorDto;
3771
4477
  /**
3772
4478
  * The channel, post or record named in the path does not belong to your organisation.
3773
4479
  */
@@ -3778,6 +4484,37 @@ type SetPostCoverResponses = {
3778
4484
  200: PostDetailDto;
3779
4485
  };
3780
4486
  type SetPostCoverResponse = SetPostCoverResponses[keyof SetPostCoverResponses];
4487
+ type SetPostThreadData = {
4488
+ body: SetPostThreadDto;
4489
+ path: {
4490
+ id: string;
4491
+ };
4492
+ query?: never;
4493
+ url: '/public/v1/posts/{id}/thread';
4494
+ };
4495
+ type SetPostThreadErrors = {
4496
+ /**
4497
+ * The request was rejected — `msg` says why.
4498
+ */
4499
+ 400: ApiErrorDto;
4500
+ /**
4501
+ * Missing or invalid API key (`Authorization` header).
4502
+ */
4503
+ 401: ApiErrorDto;
4504
+ /**
4505
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4506
+ */
4507
+ 403: ApiErrorDto;
4508
+ /**
4509
+ * The channel, post or record named in the path does not belong to your organisation.
4510
+ */
4511
+ 404: ApiErrorDto;
4512
+ };
4513
+ type SetPostThreadError = SetPostThreadErrors[keyof SetPostThreadErrors];
4514
+ type SetPostThreadResponses = {
4515
+ 200: PostDetailDto;
4516
+ };
4517
+ type SetPostThreadResponse = SetPostThreadResponses[keyof SetPostThreadResponses];
3781
4518
  type SetPostPublicationData = {
3782
4519
  body: SetPostPublicationDto;
3783
4520
  path: {
@@ -3795,6 +4532,10 @@ type SetPostPublicationErrors = {
3795
4532
  * Missing or invalid API key (`Authorization` header).
3796
4533
  */
3797
4534
  401: ApiErrorDto;
4535
+ /**
4536
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4537
+ */
4538
+ 403: ApiErrorDto;
3798
4539
  /**
3799
4540
  * The channel, post or record named in the path does not belong to your organisation.
3800
4541
  */
@@ -3824,6 +4565,10 @@ type GetChannelAnalyticsErrors = {
3824
4565
  * Missing or invalid API key (`Authorization` header).
3825
4566
  */
3826
4567
  401: ApiErrorDto;
4568
+ /**
4569
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4570
+ */
4571
+ 403: ApiErrorDto;
3827
4572
  /**
3828
4573
  * The channel, post or record named in the path does not belong to your organisation.
3829
4574
  */
@@ -3854,6 +4599,10 @@ type ListVideoPerformanceErrors = {
3854
4599
  * Missing or invalid API key (`Authorization` header).
3855
4600
  */
3856
4601
  401: ApiErrorDto;
4602
+ /**
4603
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4604
+ */
4605
+ 403: ApiErrorDto;
3857
4606
  /**
3858
4607
  * The channel, post or record named in the path does not belong to your organisation.
3859
4608
  */
@@ -3892,6 +4641,10 @@ type GetAccountHistoryErrors = {
3892
4641
  * Missing or invalid API key (`Authorization` header).
3893
4642
  */
3894
4643
  401: ApiErrorDto;
4644
+ /**
4645
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4646
+ */
4647
+ 403: ApiErrorDto;
3895
4648
  /**
3896
4649
  * The channel, post or record named in the path does not belong to your organisation.
3897
4650
  */
@@ -3925,6 +4678,10 @@ type GetVideoHistoryErrors = {
3925
4678
  * Missing or invalid API key (`Authorization` header).
3926
4679
  */
3927
4680
  401: ApiErrorDto;
4681
+ /**
4682
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4683
+ */
4684
+ 403: ApiErrorDto;
3928
4685
  /**
3929
4686
  * The channel, post or record named in the path does not belong to your organisation.
3930
4687
  */
@@ -3959,6 +4716,10 @@ type GetViewsPerDayErrors = {
3959
4716
  * Missing or invalid API key (`Authorization` header).
3960
4717
  */
3961
4718
  401: ApiErrorDto;
4719
+ /**
4720
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4721
+ */
4722
+ 403: ApiErrorDto;
3962
4723
  /**
3963
4724
  * The channel, post or record named in the path does not belong to your organisation.
3964
4725
  */
@@ -3988,6 +4749,10 @@ type GetPostAnalyticsErrors = {
3988
4749
  * Missing or invalid API key (`Authorization` header).
3989
4750
  */
3990
4751
  401: ApiErrorDto;
4752
+ /**
4753
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4754
+ */
4755
+ 403: ApiErrorDto;
3991
4756
  /**
3992
4757
  * The channel, post or record named in the path does not belong to your organisation.
3993
4758
  */
@@ -4020,6 +4785,10 @@ type RunChannelToolErrors = {
4020
4785
  * Missing or invalid API key (`Authorization` header).
4021
4786
  */
4022
4787
  401: ApiErrorDto;
4788
+ /**
4789
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4790
+ */
4791
+ 403: ApiErrorDto;
4023
4792
  /**
4024
4793
  * The channel, post or record named in the path does not belong to your organisation.
4025
4794
  */
@@ -4047,6 +4816,10 @@ type ListChannelMediaErrors = {
4047
4816
  * Missing or invalid API key (`Authorization` header).
4048
4817
  */
4049
4818
  401: ApiErrorDto;
4819
+ /**
4820
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4821
+ */
4822
+ 403: ApiErrorDto;
4050
4823
  /**
4051
4824
  * The channel, post or record named in the path does not belong to your organisation.
4052
4825
  */
@@ -4074,6 +4847,10 @@ type ListChannelStoriesErrors = {
4074
4847
  * Missing or invalid API key (`Authorization` header).
4075
4848
  */
4076
4849
  401: ApiErrorDto;
4850
+ /**
4851
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4852
+ */
4853
+ 403: ApiErrorDto;
4077
4854
  /**
4078
4855
  * The channel, post or record named in the path does not belong to your organisation.
4079
4856
  */
@@ -4102,6 +4879,10 @@ type ListMediaCommentsErrors = {
4102
4879
  * Missing or invalid API key (`Authorization` header).
4103
4880
  */
4104
4881
  401: ApiErrorDto;
4882
+ /**
4883
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4884
+ */
4885
+ 403: ApiErrorDto;
4105
4886
  /**
4106
4887
  * The channel, post or record named in the path does not belong to your organisation.
4107
4888
  */
@@ -4112,6 +4893,38 @@ type ListMediaCommentsResponses = {
4112
4893
  200: Array<InstagramCommentDto>;
4113
4894
  };
4114
4895
  type ListMediaCommentsResponse = ListMediaCommentsResponses[keyof ListMediaCommentsResponses];
4896
+ type CommentPublicationData = {
4897
+ body: CommentPublicationDto;
4898
+ path: {
4899
+ integrationId: string;
4900
+ mediaId: string;
4901
+ };
4902
+ query?: never;
4903
+ url: '/public/v1/inbox/comments/{integrationId}/{mediaId}';
4904
+ };
4905
+ type CommentPublicationErrors = {
4906
+ /**
4907
+ * The request was rejected — `msg` says why.
4908
+ */
4909
+ 400: ApiErrorDto;
4910
+ /**
4911
+ * Missing or invalid API key (`Authorization` header).
4912
+ */
4913
+ 401: ApiErrorDto;
4914
+ /**
4915
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4916
+ */
4917
+ 403: ApiErrorDto;
4918
+ /**
4919
+ * The channel, post or record named in the path does not belong to your organisation.
4920
+ */
4921
+ 404: ApiErrorDto;
4922
+ };
4923
+ type CommentPublicationError = CommentPublicationErrors[keyof CommentPublicationErrors];
4924
+ type CommentPublicationResponses = {
4925
+ 201: CommentPublicationResultDto;
4926
+ };
4927
+ type CommentPublicationResponse = CommentPublicationResponses[keyof CommentPublicationResponses];
4115
4928
  type ReplyToCommentData = {
4116
4929
  body: ReplyToCommentDto;
4117
4930
  path: {
@@ -4129,6 +4942,10 @@ type ReplyToCommentErrors = {
4129
4942
  * Missing or invalid API key (`Authorization` header).
4130
4943
  */
4131
4944
  401: ApiErrorDto;
4945
+ /**
4946
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4947
+ */
4948
+ 403: ApiErrorDto;
4132
4949
  /**
4133
4950
  * The channel, post or record named in the path does not belong to your organisation.
4134
4951
  */
@@ -4157,6 +4974,10 @@ type HideCommentErrors = {
4157
4974
  * Missing or invalid API key (`Authorization` header).
4158
4975
  */
4159
4976
  401: ApiErrorDto;
4977
+ /**
4978
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
4979
+ */
4980
+ 403: ApiErrorDto;
4160
4981
  /**
4161
4982
  * The channel, post or record named in the path does not belong to your organisation.
4162
4983
  */
@@ -4185,6 +5006,10 @@ type DeleteCommentErrors = {
4185
5006
  * Missing or invalid API key (`Authorization` header).
4186
5007
  */
4187
5008
  401: ApiErrorDto;
5009
+ /**
5010
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5011
+ */
5012
+ 403: ApiErrorDto;
4188
5013
  /**
4189
5014
  * The channel, post or record named in the path does not belong to your organisation.
4190
5015
  */
@@ -4225,6 +5050,10 @@ type ListConversationsErrors = {
4225
5050
  * Missing or invalid API key (`Authorization` header).
4226
5051
  */
4227
5052
  401: ApiErrorDto;
5053
+ /**
5054
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5055
+ */
5056
+ 403: ApiErrorDto;
4228
5057
  /**
4229
5058
  * The channel, post or record named in the path does not belong to your organisation.
4230
5059
  */
@@ -4252,6 +5081,10 @@ type SendDirectMessageErrors = {
4252
5081
  * Missing or invalid API key (`Authorization` header).
4253
5082
  */
4254
5083
  401: ApiErrorDto;
5084
+ /**
5085
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5086
+ */
5087
+ 403: ApiErrorDto;
4255
5088
  /**
4256
5089
  * The channel, post or record named in the path does not belong to your organisation.
4257
5090
  */
@@ -4279,6 +5112,10 @@ type PollInboxErrors = {
4279
5112
  * Missing or invalid API key (`Authorization` header).
4280
5113
  */
4281
5114
  401: ApiErrorDto;
5115
+ /**
5116
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5117
+ */
5118
+ 403: ApiErrorDto;
4282
5119
  /**
4283
5120
  * The channel, post or record named in the path does not belong to your organisation.
4284
5121
  */
@@ -4306,6 +5143,10 @@ type SubscribeInboxWebhookErrors = {
4306
5143
  * Missing or invalid API key (`Authorization` header).
4307
5144
  */
4308
5145
  401: ApiErrorDto;
5146
+ /**
5147
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5148
+ */
5149
+ 403: ApiErrorDto;
4309
5150
  /**
4310
5151
  * The channel, post or record named in the path does not belong to your organisation.
4311
5152
  */
@@ -4343,6 +5184,10 @@ type GetConversationErrors = {
4343
5184
  * Missing or invalid API key (`Authorization` header).
4344
5185
  */
4345
5186
  401: ApiErrorDto;
5187
+ /**
5188
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5189
+ */
5190
+ 403: ApiErrorDto;
4346
5191
  /**
4347
5192
  * The channel, post or record named in the path does not belong to your organisation.
4348
5193
  */
@@ -4368,6 +5213,10 @@ type ListAutomationFlowsErrors = {
4368
5213
  * Missing or invalid API key (`Authorization` header).
4369
5214
  */
4370
5215
  401: ApiErrorDto;
5216
+ /**
5217
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5218
+ */
5219
+ 403: ApiErrorDto;
4371
5220
  /**
4372
5221
  * The template, pose or channel named in the path does not belong to your organisation.
4373
5222
  */
@@ -4393,6 +5242,10 @@ type CreateAutomationFlowErrors = {
4393
5242
  * Missing or invalid API key (`Authorization` header).
4394
5243
  */
4395
5244
  401: ApiErrorDto;
5245
+ /**
5246
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5247
+ */
5248
+ 403: ApiErrorDto;
4396
5249
  /**
4397
5250
  * The template, pose or channel named in the path does not belong to your organisation.
4398
5251
  */
@@ -4418,6 +5271,10 @@ type PreviewAutomationEmailErrors = {
4418
5271
  * Missing or invalid API key (`Authorization` header).
4419
5272
  */
4420
5273
  401: ApiErrorDto;
5274
+ /**
5275
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5276
+ */
5277
+ 403: ApiErrorDto;
4421
5278
  /**
4422
5279
  * The template, pose or channel named in the path does not belong to your organisation.
4423
5280
  */
@@ -4443,6 +5300,10 @@ type SendAutomationTestEmailErrors = {
4443
5300
  * Missing or invalid API key (`Authorization` header).
4444
5301
  */
4445
5302
  401: ApiErrorDto;
5303
+ /**
5304
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5305
+ */
5306
+ 403: ApiErrorDto;
4446
5307
  /**
4447
5308
  * The template, pose or channel named in the path does not belong to your organisation.
4448
5309
  */
@@ -4470,6 +5331,10 @@ type DeleteAutomationFlowErrors = {
4470
5331
  * Missing or invalid API key (`Authorization` header).
4471
5332
  */
4472
5333
  401: ApiErrorDto;
5334
+ /**
5335
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5336
+ */
5337
+ 403: ApiErrorDto;
4473
5338
  /**
4474
5339
  * The template, pose or channel named in the path does not belong to your organisation.
4475
5340
  */
@@ -4497,6 +5362,10 @@ type GetAutomationFlowErrors = {
4497
5362
  * Missing or invalid API key (`Authorization` header).
4498
5363
  */
4499
5364
  401: ApiErrorDto;
5365
+ /**
5366
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5367
+ */
5368
+ 403: ApiErrorDto;
4500
5369
  /**
4501
5370
  * The template, pose or channel named in the path does not belong to your organisation.
4502
5371
  */
@@ -4524,6 +5393,10 @@ type UpdateAutomationFlowErrors = {
4524
5393
  * Missing or invalid API key (`Authorization` header).
4525
5394
  */
4526
5395
  401: ApiErrorDto;
5396
+ /**
5397
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5398
+ */
5399
+ 403: ApiErrorDto;
4527
5400
  /**
4528
5401
  * The template, pose or channel named in the path does not belong to your organisation.
4529
5402
  */
@@ -4551,6 +5424,10 @@ type SetAutomationFlowStatusErrors = {
4551
5424
  * Missing or invalid API key (`Authorization` header).
4552
5425
  */
4553
5426
  401: ApiErrorDto;
5427
+ /**
5428
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5429
+ */
5430
+ 403: ApiErrorDto;
4554
5431
  /**
4555
5432
  * The template, pose or channel named in the path does not belong to your organisation.
4556
5433
  */
@@ -4578,6 +5455,10 @@ type ListAutomationFlowPosesErrors = {
4578
5455
  * Missing or invalid API key (`Authorization` header).
4579
5456
  */
4580
5457
  401: ApiErrorDto;
5458
+ /**
5459
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5460
+ */
5461
+ 403: ApiErrorDto;
4581
5462
  /**
4582
5463
  * The template, pose or channel named in the path does not belong to your organisation.
4583
5464
  */
@@ -4605,6 +5486,10 @@ type PoseAutomationFlowErrors = {
4605
5486
  * Missing or invalid API key (`Authorization` header).
4606
5487
  */
4607
5488
  401: ApiErrorDto;
5489
+ /**
5490
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5491
+ */
5492
+ 403: ApiErrorDto;
4608
5493
  /**
4609
5494
  * The template, pose or channel named in the path does not belong to your organisation.
4610
5495
  */
@@ -4643,6 +5528,10 @@ type ListChannelAutomationPosesErrors = {
4643
5528
  * Missing or invalid API key (`Authorization` header).
4644
5529
  */
4645
5530
  401: ApiErrorDto;
5531
+ /**
5532
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5533
+ */
5534
+ 403: ApiErrorDto;
4646
5535
  /**
4647
5536
  * The template, pose or channel named in the path does not belong to your organisation.
4648
5537
  */
@@ -4670,6 +5559,10 @@ type DeleteAutomationPoseErrors = {
4670
5559
  * Missing or invalid API key (`Authorization` header).
4671
5560
  */
4672
5561
  401: ApiErrorDto;
5562
+ /**
5563
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5564
+ */
5565
+ 403: ApiErrorDto;
4673
5566
  /**
4674
5567
  * The template, pose or channel named in the path does not belong to your organisation.
4675
5568
  */
@@ -4697,6 +5590,10 @@ type GetAutomationPoseErrors = {
4697
5590
  * Missing or invalid API key (`Authorization` header).
4698
5591
  */
4699
5592
  401: ApiErrorDto;
5593
+ /**
5594
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5595
+ */
5596
+ 403: ApiErrorDto;
4700
5597
  /**
4701
5598
  * The template, pose or channel named in the path does not belong to your organisation.
4702
5599
  */
@@ -4724,6 +5621,10 @@ type UpdateAutomationPoseErrors = {
4724
5621
  * Missing or invalid API key (`Authorization` header).
4725
5622
  */
4726
5623
  401: ApiErrorDto;
5624
+ /**
5625
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5626
+ */
5627
+ 403: ApiErrorDto;
4727
5628
  /**
4728
5629
  * The template, pose or channel named in the path does not belong to your organisation.
4729
5630
  */
@@ -4753,6 +5654,10 @@ type ListAutomationPoseRunsErrors = {
4753
5654
  * Missing or invalid API key (`Authorization` header).
4754
5655
  */
4755
5656
  401: ApiErrorDto;
5657
+ /**
5658
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5659
+ */
5660
+ 403: ApiErrorDto;
4756
5661
  /**
4757
5662
  * The template, pose or channel named in the path does not belong to your organisation.
4758
5663
  */
@@ -4780,6 +5685,10 @@ type PollAutomationPoseErrors = {
4780
5685
  * Missing or invalid API key (`Authorization` header).
4781
5686
  */
4782
5687
  401: ApiErrorDto;
5688
+ /**
5689
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5690
+ */
5691
+ 403: ApiErrorDto;
4783
5692
  /**
4784
5693
  * The template, pose or channel named in the path does not belong to your organisation.
4785
5694
  */
@@ -4807,6 +5716,10 @@ type ReplayAutomationPoseErrors = {
4807
5716
  * Missing or invalid API key (`Authorization` header).
4808
5717
  */
4809
5718
  401: ApiErrorDto;
5719
+ /**
5720
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5721
+ */
5722
+ 403: ApiErrorDto;
4810
5723
  /**
4811
5724
  * The template, pose or channel named in the path does not belong to your organisation.
4812
5725
  */
@@ -4834,6 +5747,10 @@ type PreviewAutomationPoseCatchUpErrors = {
4834
5747
  * Missing or invalid API key (`Authorization` header).
4835
5748
  */
4836
5749
  401: ApiErrorDto;
5750
+ /**
5751
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5752
+ */
5753
+ 403: ApiErrorDto;
4837
5754
  /**
4838
5755
  * The template, pose or channel named in the path does not belong to your organisation.
4839
5756
  */
@@ -4861,6 +5778,10 @@ type CatchUpAutomationPoseErrors = {
4861
5778
  * Missing or invalid API key (`Authorization` header).
4862
5779
  */
4863
5780
  401: ApiErrorDto;
5781
+ /**
5782
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5783
+ */
5784
+ 403: ApiErrorDto;
4864
5785
  /**
4865
5786
  * The template, pose or channel named in the path does not belong to your organisation.
4866
5787
  */
@@ -4886,6 +5807,10 @@ type ListWebhookEventsErrors = {
4886
5807
  * Missing or invalid API key (`Authorization` header).
4887
5808
  */
4888
5809
  401: ApiErrorDto;
5810
+ /**
5811
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5812
+ */
5813
+ 403: ApiErrorDto;
4889
5814
  /**
4890
5815
  * The channel, post or record named in the path does not belong to your organisation.
4891
5816
  */
@@ -4911,6 +5836,10 @@ type ListWebhooksErrors = {
4911
5836
  * Missing or invalid API key (`Authorization` header).
4912
5837
  */
4913
5838
  401: ApiErrorDto;
5839
+ /**
5840
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5841
+ */
5842
+ 403: ApiErrorDto;
4914
5843
  /**
4915
5844
  * The channel, post or record named in the path does not belong to your organisation.
4916
5845
  */
@@ -4936,6 +5865,10 @@ type CreateWebhookErrors = {
4936
5865
  * Missing or invalid API key (`Authorization` header).
4937
5866
  */
4938
5867
  401: ApiErrorDto;
5868
+ /**
5869
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5870
+ */
5871
+ 403: ApiErrorDto;
4939
5872
  /**
4940
5873
  * The channel, post or record named in the path does not belong to your organisation.
4941
5874
  */
@@ -4963,6 +5896,10 @@ type DeleteWebhookErrors = {
4963
5896
  * Missing or invalid API key (`Authorization` header).
4964
5897
  */
4965
5898
  401: ApiErrorDto;
5899
+ /**
5900
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5901
+ */
5902
+ 403: ApiErrorDto;
4966
5903
  /**
4967
5904
  * The channel, post or record named in the path does not belong to your organisation.
4968
5905
  */
@@ -4990,6 +5927,10 @@ type GetWebhookErrors = {
4990
5927
  * Missing or invalid API key (`Authorization` header).
4991
5928
  */
4992
5929
  401: ApiErrorDto;
5930
+ /**
5931
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5932
+ */
5933
+ 403: ApiErrorDto;
4993
5934
  /**
4994
5935
  * The channel, post or record named in the path does not belong to your organisation.
4995
5936
  */
@@ -5017,6 +5958,10 @@ type TestWebhookErrors = {
5017
5958
  * Missing or invalid API key (`Authorization` header).
5018
5959
  */
5019
5960
  401: ApiErrorDto;
5961
+ /**
5962
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5963
+ */
5964
+ 403: ApiErrorDto;
5020
5965
  /**
5021
5966
  * The channel, post or record named in the path does not belong to your organisation.
5022
5967
  */
@@ -5063,6 +6008,10 @@ type ListContentsErrors = {
5063
6008
  * Missing or invalid API key (`Authorization` header).
5064
6009
  */
5065
6010
  401: ApiErrorDto;
6011
+ /**
6012
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6013
+ */
6014
+ 403: ApiErrorDto;
5066
6015
  /**
5067
6016
  * The card named in the path does not belong to your organisation.
5068
6017
  */
@@ -5088,6 +6037,10 @@ type CreateContentErrors = {
5088
6037
  * Missing or invalid API key (`Authorization` header).
5089
6038
  */
5090
6039
  401: ApiErrorDto;
6040
+ /**
6041
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6042
+ */
6043
+ 403: ApiErrorDto;
5091
6044
  /**
5092
6045
  * The card named in the path does not belong to your organisation.
5093
6046
  */
@@ -5117,6 +6070,10 @@ type GetContentsPerformanceErrors = {
5117
6070
  * Missing or invalid API key (`Authorization` header).
5118
6071
  */
5119
6072
  401: ApiErrorDto;
6073
+ /**
6074
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6075
+ */
6076
+ 403: ApiErrorDto;
5120
6077
  /**
5121
6078
  * The card named in the path does not belong to your organisation.
5122
6079
  */
@@ -5146,6 +6103,10 @@ type DeleteContentErrors = {
5146
6103
  * Missing or invalid API key (`Authorization` header).
5147
6104
  */
5148
6105
  401: ApiErrorDto;
6106
+ /**
6107
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6108
+ */
6109
+ 403: ApiErrorDto;
5149
6110
  /**
5150
6111
  * The card named in the path does not belong to your organisation.
5151
6112
  */
@@ -5173,6 +6134,10 @@ type GetContentErrors = {
5173
6134
  * Missing or invalid API key (`Authorization` header).
5174
6135
  */
5175
6136
  401: ApiErrorDto;
6137
+ /**
6138
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6139
+ */
6140
+ 403: ApiErrorDto;
5176
6141
  /**
5177
6142
  * The card named in the path does not belong to your organisation.
5178
6143
  */
@@ -5200,6 +6165,10 @@ type UpdateContentErrors = {
5200
6165
  * Missing or invalid API key (`Authorization` header).
5201
6166
  */
5202
6167
  401: ApiErrorDto;
6168
+ /**
6169
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6170
+ */
6171
+ 403: ApiErrorDto;
5203
6172
  /**
5204
6173
  * The card named in the path does not belong to your organisation.
5205
6174
  */
@@ -5225,6 +6194,10 @@ type UpsertContentErrors = {
5225
6194
  * Missing or invalid API key (`Authorization` header).
5226
6195
  */
5227
6196
  401: ApiErrorDto;
6197
+ /**
6198
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6199
+ */
6200
+ 403: ApiErrorDto;
5228
6201
  /**
5229
6202
  * The card named in the path does not belong to your organisation.
5230
6203
  */
@@ -5254,6 +6227,10 @@ type CreateContentFromLinkErrors = {
5254
6227
  * Missing or invalid API key (`Authorization` header).
5255
6228
  */
5256
6229
  401: ApiErrorDto;
6230
+ /**
6231
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6232
+ */
6233
+ 403: ApiErrorDto;
5257
6234
  /**
5258
6235
  * A key limited to some workspaces sent a video that is already a card of your organisation outside its workspaces (a card is never copied).
5259
6236
  */
@@ -5296,6 +6273,10 @@ type MoveContentErrors = {
5296
6273
  * Missing or invalid API key (`Authorization` header).
5297
6274
  */
5298
6275
  401: ApiErrorDto;
6276
+ /**
6277
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6278
+ */
6279
+ 403: ApiErrorDto;
5299
6280
  /**
5300
6281
  * The card named in the path does not belong to your organisation.
5301
6282
  */
@@ -5323,6 +6304,10 @@ type LinkContentPostErrors = {
5323
6304
  * Missing or invalid API key (`Authorization` header).
5324
6305
  */
5325
6306
  401: ApiErrorDto;
6307
+ /**
6308
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6309
+ */
6310
+ 403: ApiErrorDto;
5326
6311
  /**
5327
6312
  * The card named in the path does not belong to your organisation.
5328
6313
  */
@@ -5350,6 +6335,10 @@ type SetContentWorkspacesErrors = {
5350
6335
  * Missing or invalid API key (`Authorization` header), or no running subscription.
5351
6336
  */
5352
6337
  401: ApiErrorDto;
6338
+ /**
6339
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6340
+ */
6341
+ 403: ApiErrorDto;
5353
6342
  /**
5354
6343
  * No card of your organisation has this id.
5355
6344
  */
@@ -5397,6 +6386,10 @@ type SearchHooksErrors = {
5397
6386
  * Missing or invalid API key (`Authorization` header).
5398
6387
  */
5399
6388
  401: ApiErrorDto;
6389
+ /**
6390
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6391
+ */
6392
+ 403: ApiErrorDto;
5400
6393
  /**
5401
6394
  * The daily hooks quota of the organization is reached: `msg` gives the quota, the offer, the renewal at 00:00 UTC and the offer above. `Retry-After` = seconds until then.
5402
6395
  */
@@ -5440,6 +6433,10 @@ type GetHookFormsErrors = {
5440
6433
  * Missing or invalid API key (`Authorization` header).
5441
6434
  */
5442
6435
  401: ApiErrorDto;
6436
+ /**
6437
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6438
+ */
6439
+ 403: ApiErrorDto;
5443
6440
  /**
5444
6441
  * The daily hooks quota of the organization is reached: `msg` gives the quota, the offer, the renewal at 00:00 UTC and the offer above. `Retry-After` = seconds until then.
5445
6442
  */
@@ -5467,6 +6464,10 @@ type ListHookFamiliesErrors = {
5467
6464
  * Missing or invalid API key (`Authorization` header).
5468
6465
  */
5469
6466
  401: ApiErrorDto;
6467
+ /**
6468
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6469
+ */
6470
+ 403: ApiErrorDto;
5470
6471
  };
5471
6472
  type ListHookFamiliesError = ListHookFamiliesErrors[keyof ListHookFamiliesErrors];
5472
6473
  type ListHookFamiliesResponses = {
@@ -5506,6 +6507,10 @@ type ListMusicErrors = {
5506
6507
  * Missing or invalid API key (`Authorization` header).
5507
6508
  */
5508
6509
  401: ApiErrorDto;
6510
+ /**
6511
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6512
+ */
6513
+ 403: ApiErrorDto;
5509
6514
  };
5510
6515
  type ListMusicError = ListMusicErrors[keyof ListMusicErrors];
5511
6516
  type ListMusicResponses = {
@@ -5527,6 +6532,10 @@ type ListMusicPillarsErrors = {
5527
6532
  * Missing or invalid API key (`Authorization` header).
5528
6533
  */
5529
6534
  401: ApiErrorDto;
6535
+ /**
6536
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6537
+ */
6538
+ 403: ApiErrorDto;
5530
6539
  };
5531
6540
  type ListMusicPillarsError = ListMusicPillarsErrors[keyof ListMusicPillarsErrors];
5532
6541
  type ListMusicPillarsResponses = {
@@ -5550,6 +6559,10 @@ type GetMusicTrackErrors = {
5550
6559
  * Missing or invalid API key (`Authorization` header).
5551
6560
  */
5552
6561
  401: ApiErrorDto;
6562
+ /**
6563
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6564
+ */
6565
+ 403: ApiErrorDto;
5553
6566
  404: ApiErrorDto;
5554
6567
  };
5555
6568
  type GetMusicTrackError = GetMusicTrackErrors[keyof GetMusicTrackErrors];
@@ -5573,7 +6586,7 @@ type ImportMusicErrors = {
5573
6586
  */
5574
6587
  401: ApiErrorDto;
5575
6588
  /**
5576
- * The catalogue is global: only a super admin writes it.
6589
+ * The catalogue is global: only a super admin writes it. Or: Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
5577
6590
  */
5578
6591
  403: ApiErrorDto;
5579
6592
  };
@@ -5601,6 +6614,9 @@ type UploadMusicFileErrors = {
5601
6614
  * Missing or invalid API key (`Authorization` header).
5602
6615
  */
5603
6616
  401: ApiErrorDto;
6617
+ /**
6618
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6619
+ */
5604
6620
  403: ApiErrorDto;
5605
6621
  /**
5606
6622
  * Import the track before its file.
@@ -5629,6 +6645,10 @@ type DeleteWorkspaceErrors = {
5629
6645
  * Missing or invalid API key (`Authorization` header), or no running subscription.
5630
6646
  */
5631
6647
  401: ApiErrorDto;
6648
+ /**
6649
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6650
+ */
6651
+ 403: ApiErrorDto;
5632
6652
  /**
5633
6653
  * No workspace of your organisation has this id.
5634
6654
  */
@@ -5656,6 +6676,10 @@ type UpdateWorkspaceErrors = {
5656
6676
  * Missing or invalid API key (`Authorization` header), or no running subscription.
5657
6677
  */
5658
6678
  401: ApiErrorDto;
6679
+ /**
6680
+ * Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6681
+ */
6682
+ 403: ApiErrorDto;
5659
6683
  /**
5660
6684
  * No workspace of your organisation has this id.
5661
6685
  */
@@ -5670,6 +6694,149 @@ type UpdateWorkspaceResponses = {
5670
6694
  200: WorkspaceDto;
5671
6695
  };
5672
6696
  type UpdateWorkspaceResponse = UpdateWorkspaceResponses[keyof UpdateWorkspaceResponses];
6697
+ type ListApiKeysData = {
6698
+ body?: never;
6699
+ path?: never;
6700
+ query?: never;
6701
+ url: '/public/v1/api-keys';
6702
+ };
6703
+ type ListApiKeysErrors = {
6704
+ /**
6705
+ * The request was rejected: the body is not JSON, or a field is invalid (`message` says which).
6706
+ */
6707
+ 400: ApiKeyErrorDto;
6708
+ /**
6709
+ * Missing or invalid API key (`Authorization` header), or no running subscription.
6710
+ */
6711
+ 401: ApiErrorDto;
6712
+ /**
6713
+ * A key limited to some workspaces (`nws_…`) or an OAuth token (`pos_…`): only the organization's API key manages API keys. Or: Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6714
+ */
6715
+ 403: ApiErrorDto;
6716
+ };
6717
+ type ListApiKeysError = ListApiKeysErrors[keyof ListApiKeysErrors];
6718
+ type ListApiKeysResponses = {
6719
+ 200: Array<ApiKeyDto>;
6720
+ };
6721
+ type ListApiKeysResponse = ListApiKeysResponses[keyof ListApiKeysResponses];
6722
+ type CreateApiKeyData = {
6723
+ body: CreateApiKeyDto;
6724
+ path?: never;
6725
+ query?: never;
6726
+ url: '/public/v1/api-keys';
6727
+ };
6728
+ type CreateApiKeyErrors = {
6729
+ /**
6730
+ * The body is invalid: `name` (1 to 100 characters) or `workspaceIds` (one or more workspaces of your organization); `message` says which.
6731
+ */
6732
+ 400: ApiKeyErrorDto;
6733
+ /**
6734
+ * Missing or invalid API key (`Authorization` header), or no running subscription.
6735
+ */
6736
+ 401: ApiErrorDto;
6737
+ /**
6738
+ * A key limited to some workspaces (`nws_…`) or an OAuth token (`pos_…`): only the organization's API key manages API keys. Or: Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6739
+ */
6740
+ 403: ApiErrorDto;
6741
+ };
6742
+ type CreateApiKeyError = CreateApiKeyErrors[keyof CreateApiKeyErrors];
6743
+ type CreateApiKeyResponses = {
6744
+ 201: ApiKeyCreatedDto;
6745
+ };
6746
+ type CreateApiKeyResponse = CreateApiKeyResponses[keyof CreateApiKeyResponses];
6747
+ type RevokeApiKeyData = {
6748
+ body?: never;
6749
+ path: {
6750
+ id: string;
6751
+ };
6752
+ query?: never;
6753
+ url: '/public/v1/api-keys/{id}';
6754
+ };
6755
+ type RevokeApiKeyErrors = {
6756
+ /**
6757
+ * The request was rejected: the body is not JSON, or a field is invalid (`message` says which).
6758
+ */
6759
+ 400: ApiKeyErrorDto;
6760
+ /**
6761
+ * Missing or invalid API key (`Authorization` header), or no running subscription.
6762
+ */
6763
+ 401: ApiErrorDto;
6764
+ /**
6765
+ * A key limited to some workspaces (`nws_…`) or an OAuth token (`pos_…`): only the organization's API key manages API keys. Or: Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6766
+ */
6767
+ 403: ApiErrorDto;
6768
+ /**
6769
+ * No live key of your organization has this id (`API key not found`): unknown, revoked, or another organization's.
6770
+ */
6771
+ 404: ApiKeyErrorDto;
6772
+ };
6773
+ type RevokeApiKeyError = RevokeApiKeyErrors[keyof RevokeApiKeyErrors];
6774
+ type RevokeApiKeyResponses = {
6775
+ 200: SuccessDto;
6776
+ };
6777
+ type RevokeApiKeyResponse = RevokeApiKeyResponses[keyof RevokeApiKeyResponses];
6778
+ type UpdateApiKeyData = {
6779
+ body: UpdateApiKeyDto;
6780
+ path: {
6781
+ id: string;
6782
+ };
6783
+ query?: never;
6784
+ url: '/public/v1/api-keys/{id}';
6785
+ };
6786
+ type UpdateApiKeyErrors = {
6787
+ /**
6788
+ * Nothing to change, or a field is invalid: `name` (1 to 100 characters), `workspaceIds` (one or more workspaces of your organization); `message` says which.
6789
+ */
6790
+ 400: ApiKeyErrorDto;
6791
+ /**
6792
+ * Missing or invalid API key (`Authorization` header), or no running subscription.
6793
+ */
6794
+ 401: ApiErrorDto;
6795
+ /**
6796
+ * A key limited to some workspaces (`nws_…`) or an OAuth token (`pos_…`): only the organization's API key manages API keys. Or: Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6797
+ */
6798
+ 403: ApiErrorDto;
6799
+ /**
6800
+ * No live key of your organization has this id (`API key not found`): unknown, revoked, or another organization's.
6801
+ */
6802
+ 404: ApiKeyErrorDto;
6803
+ };
6804
+ type UpdateApiKeyError = UpdateApiKeyErrors[keyof UpdateApiKeyErrors];
6805
+ type UpdateApiKeyResponses = {
6806
+ 200: ApiKeyDto;
6807
+ };
6808
+ type UpdateApiKeyResponse = UpdateApiKeyResponses[keyof UpdateApiKeyResponses];
6809
+ type RotateApiKeyData = {
6810
+ body?: never;
6811
+ path: {
6812
+ id: string;
6813
+ };
6814
+ query?: never;
6815
+ url: '/public/v1/api-keys/{id}/rotate';
6816
+ };
6817
+ type RotateApiKeyErrors = {
6818
+ /**
6819
+ * The request was rejected: the body is not JSON, or a field is invalid (`message` says which).
6820
+ */
6821
+ 400: ApiKeyErrorDto;
6822
+ /**
6823
+ * Missing or invalid API key (`Authorization` header), or no running subscription.
6824
+ */
6825
+ 401: ApiErrorDto;
6826
+ /**
6827
+ * A key limited to some workspaces (`nws_…`) or an OAuth token (`pos_…`): only the organization's API key manages API keys. Or: Your role does not allow this (`code` role_refused): a connector (`pos_…` token) acts with the role of the member who authorized it; `msg` names the role and what it may not do, `action` and `role` say which.
6828
+ */
6829
+ 403: ApiErrorDto;
6830
+ /**
6831
+ * No live key of your organization has this id (`API key not found`): unknown, revoked, or another organization's.
6832
+ */
6833
+ 404: ApiKeyErrorDto;
6834
+ };
6835
+ type RotateApiKeyError = RotateApiKeyErrors[keyof RotateApiKeyErrors];
6836
+ type RotateApiKeyResponses = {
6837
+ 201: ApiKeyCreatedDto;
6838
+ };
6839
+ type RotateApiKeyResponse = RotateApiKeyResponses[keyof RotateApiKeyResponses];
5673
6840
 
5674
6841
  declare const client: Client;
5675
6842
 
@@ -5707,7 +6874,7 @@ declare const getUploadFromUrl: <ThrowOnError extends boolean = false>(options:
5707
6874
  /**
5708
6875
  * Open an upload of a file from your disk
5709
6876
  *
5710
- * Open an upload of a file from your disk, then send its bytes where the answer says and confirm it (`POST /public/v1/uploads/{uploadId}/confirm`). The bytes never go through the API: on UseNadia's cloud they go in parts of 20 MB straight to the storage (`partSize` and `parts` in the answer: each part a `PUT` of its raw bytes to `<uploadUrl>/<n>`, `n` from 1 to `parts`, with its exact `Content-Length`; a part cut by the network is sent again, a part sent twice changes nothing; the upload lives 24 hours). A server that does not take parts (self-hosted) answers a single `PUT` of the whole file to `uploadUrl`, with the `headers` given, within 15 minutes. `curl` is a shell command that does the sending (macOS or Linux). The same as the MCP tool `createUploadUrl`. Accepted types: MP4, JPEG, PNG, WebP, GIF; 500 MB at most by default.
6877
+ * Open an upload of a file from your disk, then send its bytes where the answer says and confirm it (`POST /public/v1/uploads/{uploadId}/confirm`). The bytes never go through the API: they go in parts of 20 MB straight to the storage (`partSize` and `parts` in the answer: each part a `PUT` of its raw bytes to `<uploadUrl>/<n>`, `n` from 1 to `parts`, with its exact `Content-Length`; a part cut by the network is sent again, a part sent twice changes nothing; the upload lives 24 hours). `curl` is a shell command that does the sending (macOS or Linux). The same as the MCP tool `createUploadUrl`. Accepted types: MP4, JPEG, PNG, WebP, GIF; 500 MB at most by default.
5711
6878
  */
5712
6879
  declare const createUpload: <ThrowOnError extends boolean = false>(options: Options<CreateUploadData, ThrowOnError>) => RequestResult<CreateUploadResponses, CreateUploadErrors, ThrowOnError>;
5713
6880
  /**
@@ -5743,17 +6910,21 @@ declare const listPosts: <ThrowOnError extends boolean = false>(options: Options
5743
6910
  */
5744
6911
  declare const createPost: <ThrowOnError extends boolean = false>(options: Options<CreatePostData, ThrowOnError>) => RequestResult<CreatePostResponses, CreatePostErrors, ThrowOnError>;
5745
6912
  /**
5746
- * Delete a post and everything published with it
6913
+ * Delete a post and everything scheduled with it
6914
+ *
6915
+ * Deleting is three different things. A post not published yet (scheduled, draft, failed) is cancelled: it never goes out. A post already published only leaves UseNadia by default: it stays online on the platform. With `deleteOnPlatform=true`, a published post is also deleted at its platform, for good, where UseNadia can (`deletableOnPlatform`; Threads, YouTube, Instagram and TikTok cannot today). `posts` says which happened, per post of the group.
5747
6916
  */
5748
6917
  declare const deletePost: <ThrowOnError extends boolean = false>(options: Options<DeletePostData, ThrowOnError>) => RequestResult<DeletePostResponses, DeletePostErrors, ThrowOnError>;
5749
6918
  /**
5750
- * Read one post, with its media and the cover of its video
6919
+ * Read one post, with its media, its settings and its thread
5751
6920
  *
5752
- * The post as `listPosts` gives it, plus `media`: each media of the post, in order, with the cover of a video (`thumbnail`, the URL UseNadia serves it from; null without one). Change the cover with `setPostCover`.
6921
+ * The post as `listPosts` gives it, plus `media`: each media of the post, in order, with the cover of a video (`thumbnail`, the URL UseNadia serves it from, and `thumbnailTimestamp`, the moment of the video used as its cover, in milliseconds; each null without one); `settings`: the settings of the post as they are stored (the platform's own, and a comment → DM automation: `automationFlowId`, `automationKeywords`, `automationVariables`), what an `update` of `createPost` must carry again; and `thread`: the comments under the post, in order. Change the cover with `setPostCover`, the thread with `setPostThread`.
5753
6922
  */
5754
6923
  declare const getPost: <ThrowOnError extends boolean = false>(options: Options<GetPostData, ThrowOnError>) => RequestResult<GetPostResponses, GetPostErrors, ThrowOnError>;
5755
6924
  /**
5756
6925
  * Delete a publication group
6926
+ *
6927
+ * Deleting is three different things. A post not published yet (scheduled, draft, failed) is cancelled: it never goes out. A post already published only leaves UseNadia by default: it stays online on the platform. With `deleteOnPlatform=true`, a published post is also deleted at its platform, for good, where UseNadia can (`deletableOnPlatform`; Threads, YouTube, Instagram and TikTok cannot today). `posts` says which happened, per post of the group.
5757
6928
  */
5758
6929
  declare const deletePostGroup: <ThrowOnError extends boolean = false>(options: Options<DeletePostGroupData, ThrowOnError>) => RequestResult<DeletePostGroupResponses, DeletePostGroupErrors, ThrowOnError>;
5759
6930
  /**
@@ -5790,6 +6961,8 @@ declare const listChannels: <ThrowOnError extends boolean = false>(options?: Opt
5790
6961
  * Start connecting a channel — returns the URL to open
5791
6962
  *
5792
6963
  * Returns the URL that opens the platform's consent screen for this channel. A channel your plan does not include answers `402` with `This channel is not included in your plan`, as in the app (today: X on the Starter ultime).
6964
+ *
6965
+ * A partner connecting the channels of the people it serves (one workspace each) names the workspace with `workspace` and the address the person comes back to with `redirectUrl`: both are kept with the URL's state for its hour, the channel lands in that workspace and the person is sent back there, success or failure.
5793
6966
  */
5794
6967
  declare const startChannelConnection: <ThrowOnError extends boolean = false>(options: Options<StartChannelConnectionData, ThrowOnError>) => RequestResult<StartChannelConnectionResponses, StartChannelConnectionErrors, ThrowOnError>;
5795
6968
  /**
@@ -5814,6 +6987,30 @@ declare const listMissingMedia: <ThrowOnError extends boolean = false>(options:
5814
6987
  * Change a post's status
5815
6988
  */
5816
6989
  declare const changePostStatus: <ThrowOnError extends boolean = false>(options: Options<ChangePostStatusData, ThrowOnError>) => RequestResult<ChangePostStatusResponses, ChangePostStatusErrors, ThrowOnError>;
6990
+ /**
6991
+ * List the posts waiting for approval
6992
+ *
6993
+ * The posts of a Content Creator wait for an approval before they go out. An Owner, an Admin, a Publisher or a Client approves or refuses them.
6994
+ */
6995
+ declare const listPostsAwaitingApproval: <ThrowOnError extends boolean = false>(options?: Options<ListPostsAwaitingApprovalData, ThrowOnError>) => RequestResult<ListPostsAwaitingApprovalResponses, ListPostsAwaitingApprovalErrors, ThrowOnError>;
6996
+ /**
6997
+ * List the drafts that have no date
6998
+ *
6999
+ * A draft created without `date` (or with a `date` already past) has no date: it is in no calendar until it is placed. This lists them; place one by sending it again (`POST /posts` with its ids, `type: schedule` or `now`, and a `date`).
7000
+ */
7001
+ declare const listUndatedDrafts: <ThrowOnError extends boolean = false>(options?: Options<ListUndatedDraftsData, ThrowOnError>) => RequestResult<ListUndatedDraftsResponses, ListUndatedDraftsErrors, ThrowOnError>;
7002
+ /**
7003
+ * Approve a post
7004
+ *
7005
+ * The post enters the queue and goes out at its date (or at `date`). A post whose date is past is refused (400, `code` `date_passed`) until a new `date` is given.
7006
+ */
7007
+ declare const approvePost: <ThrowOnError extends boolean = false>(options: Options<ApprovePostData, ThrowOnError>) => RequestResult<ApprovePostResponses, ApprovePostErrors, ThrowOnError>;
7008
+ /**
7009
+ * Refuse a post
7010
+ *
7011
+ * The post goes back to its author as a draft, with the note.
7012
+ */
7013
+ declare const refusePost: <ThrowOnError extends boolean = false>(options: Options<RefusePostData, ThrowOnError>) => RequestResult<RefusePostResponses, RefusePostErrors, ThrowOnError>;
5817
7014
  /**
5818
7015
  * Take the automation off a post not yet published
5819
7016
  */
@@ -5825,7 +7022,7 @@ declare const getPostAutomation: <ThrowOnError extends boolean = false>(options:
5825
7022
  /**
5826
7023
  * Put an automation on a scheduled post
5827
7024
  *
5828
- * Put an automation template on an Instagram post or story, or a Facebook Page post or reel (no story), that is scheduled but not published yet, or replace the one it carries. It is checked as at scheduling, and at publication it is posed exactly as if `settings.automationFlowId`, `automationKeywords` and `automationVariables` had been passed to POST /public/v1/posts. Once the post is live, pose the template on the publication instead (POST /public/v1/automation-flows/{id}/poses).
7025
+ * Put an automation template on an Instagram post or story, a Facebook Page post or reel (no story), or a TikTok (`tiktok-business`) or Threads post, that is scheduled but not published yet, or replace the one it carries. On TikTok and Threads, which have no DM, the template runs as its public reply alone: a comment (a reply on Threads) with one of the words gets the template's TikTok or Threads reply under it, every DM step is skipped; a template whose public reply is off is refused there. It is checked as at scheduling, and at publication it is posed exactly as if `settings.automationFlowId`, `automationKeywords` and `automationVariables` had been passed to POST /public/v1/posts. Once the post is live, pose the template on the publication instead (POST /public/v1/automation-flows/{id}/poses).
5829
7026
  */
5830
7027
  declare const setPostAutomation: <ThrowOnError extends boolean = false>(options: Options<SetPostAutomationData, ThrowOnError>) => RequestResult<SetPostAutomationResponses, SetPostAutomationErrors, ThrowOnError>;
5831
7028
  /**
@@ -5835,9 +7032,15 @@ declare const setPostReleaseId: <ThrowOnError extends boolean = false>(options:
5835
7032
  /**
5836
7033
  * Put, replace or take off the cover of a post's video, before it is published
5837
7034
  *
5838
- * The cover goes on the post's video (its first `.mp4`): on Instagram, a reel is published with it as its cover, the image in the profile grid. It can change at any time until the post leaves for the platform (a draft, a scheduled post, or one that failed). Nothing else of the post moves: text, date, media and `link` stay. The image is kept by UseNadia as at scheduling (any public URL, a signed one included; a JPEG, 8 MB at most). Refused with a `400` that says why: a YouTube post (YouTube does not use a cover: the thumbnail of a video is the `thumbnail` setting of its post), a post already published or sent to the platform (Instagram does not change the cover of a published reel), a post without a video, a cover that cannot be downloaded or is not a JPEG.
7035
+ * The cover goes on the post's video (its first `.mp4`): an image (`thumbnail`), a moment of the video (`thumbnailTimestamp`), or both; a field left out does not move, except that the image wins: a `thumbnail` given without `thumbnailTimestamp` takes the moment off (TikTok through the classic connection then takes the first frame), and the two given together are one cover, a frame and its moment. Read as the cover by Instagram, TikTok (Business API), LinkedIn (profile and page), Telegram, Pinterest, Mastodon and Facebook (Page video, not reels or stories); TikTok through the classic connection reads only `thumbnailTimestamp`; YouTube uses the `thumbnail` setting of its post; Threads, Bluesky, X, Discord and Google Business Profile take no cover. It can change at any time until the post leaves for the platform (a draft, a scheduled post, or one that failed). Nothing else of the post moves: text, date, media and `link` stay. The image is a picture (JPEG, PNG, WebP, AVIF, HEIC or the first frame of a GIF; ideally 1080x1920, 20 MB at most, between 1:4 and 4:1, 100 pixels at least on each side), kept by UseNadia as a JPEG of 2 MB and 1920 pixels at most, which every channel takes, as at scheduling (any public URL, a signed one included). Refused with a `400` that says why: a YouTube post (YouTube does not use a cover: the thumbnail of a video is the `thumbnail` setting of its post), a post already published or sent to the platform (a platform does not change the cover of a published video), a post without a video, a cover that cannot be downloaded or read as a picture, or out of those bounds, a moment that is no number of milliseconds.
5839
7036
  */
5840
7037
  declare const setPostCover: <ThrowOnError extends boolean = false>(options: Options<SetPostCoverData, ThrowOnError>) => RequestResult<SetPostCoverResponses, SetPostCoverErrors, ThrowOnError>;
7038
+ /**
7039
+ * Replace the comments under a post (its thread), before it is published
7040
+ *
7041
+ * The thread of a post is what goes out with it, in order: on Instagram, Facebook and LinkedIn (profile and page) the comments under the post (the first comment, then the next ones), on X, Threads, Bluesky, Mastodon, Discord and Telegram the next posts of the thread. `thread` is the whole thread as it must be: the comments it gives replace those the post has, in order (a comment kept at its place keeps its id), the ones past the end are added, those past the new end deleted; `[]` takes them all off. Nothing else of the post moves: its id, text, media, `settings` (a comment → DM automation among them), date, `link`, publication and approval stay, and it goes out at its date with the new thread. Each comment is `{"content": "…", "image": [{"id": "…", "path": "…"}]}`, as an item of `value` in `createPost` (HTML content, sanitized the same way): a text, an image, or both; Instagram and LinkedIn comments are text only (an image is refused), Facebook publishes the first image of a comment. A comment is as long as a post of its platform at most (`maxLength` of the platform's rules: Threads 500, X 280 or 4,000 with Premium, Instagram 2,200, LinkedIn 3,000, Bluesky 300…). It can change until the post leaves for the platform (a draft, a scheduled post, or one that failed before going out): a published post, one sent to the platform, a comment's id (pass the post's), or a channel that publishes no comment (YouTube, Pinterest, Google Business Profile, TikTok through its classic connection) are refused with a 400 whose `msg` says why. On TikTok through its Business API the thread is one comment, text only, 150 characters at most, posted by the account and pinned once TikTok has published the post. A member whose posts wait for an approval (Content Creator) changes the thread of a draft only (403 `role_refused`). Read the thread with `getPost` (`thread`).
7042
+ */
7043
+ declare const setPostThread: <ThrowOnError extends boolean = false>(options: Options<SetPostThreadData, ThrowOnError>) => RequestResult<SetPostThreadResponses, SetPostThreadErrors, ThrowOnError>;
5841
7044
  /**
5842
7045
  * Group a post with the same content on other channels, or separate it
5843
7046
  *
@@ -5886,6 +7089,12 @@ declare const listChannelStories: <ThrowOnError extends boolean = false>(options
5886
7089
  * Comments under a post
5887
7090
  */
5888
7091
  declare const listMediaComments: <ThrowOnError extends boolean = false>(options: Options<ListMediaCommentsData, ThrowOnError>) => RequestResult<ListMediaCommentsResponses, ListMediaCommentsErrors, ThrowOnError>;
7092
+ /**
7093
+ * Comment under a post
7094
+ *
7095
+ * A new comment under a publication already live on the channel, written by the account. `mediaId` is the publication's id at the platform: the `releaseId` of a post read with `GET /public/v1/posts`, or the `id` of `GET /public/v1/inbox/media/{integrationId}`. Instagram, Facebook Page, LinkedIn, Threads, X, Bluesky, TikTok (`tiktok-business`), Discord, Telegram and Mastodon; on X, Threads, Bluesky, Mastodon, Discord and Telegram the comment is a reply to the post. Refused with a 400 saying why on a TikTok channel connected the classic way (reconnect it as TikTok Business), YouTube (not yet), Pinterest and Google Business Profile (no comments). Public at once. To schedule a first comment with a post not out yet, write the post's thread (`PUT /public/v1/posts/{id}/thread`).
7096
+ */
7097
+ declare const commentPublication: <ThrowOnError extends boolean = false>(options: Options<CommentPublicationData, ThrowOnError>) => RequestResult<CommentPublicationResponses, CommentPublicationErrors, ThrowOnError>;
5889
7098
  /**
5890
7099
  * Reply publicly to a comment
5891
7100
  */
@@ -6132,6 +7341,26 @@ declare const deleteWorkspace: <ThrowOnError extends boolean = false>(options: O
6132
7341
  * Edit a workspace, or move channels into it
6133
7342
  */
6134
7343
  declare const updateWorkspace: <ThrowOnError extends boolean = false>(options: Options<UpdateWorkspaceData, ThrowOnError>) => RequestResult<UpdateWorkspaceResponses, UpdateWorkspaceErrors, ThrowOnError>;
7344
+ /**
7345
+ * List the keys limited to some workspaces (nws_…), newest first — never their value, only its start
7346
+ */
7347
+ declare const listApiKeys: <ThrowOnError extends boolean = false>(options?: Options<ListApiKeysData, ThrowOnError>) => RequestResult<ListApiKeysResponses, ListApiKeysErrors, ThrowOnError>;
7348
+ /**
7349
+ * Create a key limited to some workspaces — its value is returned in this answer only
7350
+ */
7351
+ declare const createApiKey: <ThrowOnError extends boolean = false>(options: Options<CreateApiKeyData, ThrowOnError>) => RequestResult<CreateApiKeyResponses, CreateApiKeyErrors, ThrowOnError>;
7352
+ /**
7353
+ * Revoke a key limited to some workspaces — from now on it answers as an unknown key
7354
+ */
7355
+ declare const revokeApiKey: <ThrowOnError extends boolean = false>(options: Options<RevokeApiKeyData, ThrowOnError>) => RequestResult<RevokeApiKeyResponses, RevokeApiKeyErrors, ThrowOnError>;
7356
+ /**
7357
+ * Rename a key limited to some workspaces, or change its workspaces — its value does not change
7358
+ */
7359
+ declare const updateApiKey: <ThrowOnError extends boolean = false>(options: Options<UpdateApiKeyData, ThrowOnError>) => RequestResult<UpdateApiKeyResponses, UpdateApiKeyErrors, ThrowOnError>;
7360
+ /**
7361
+ * Give a key limited to some workspaces a new value — returned in this answer only; the old value stops working at once
7362
+ */
7363
+ declare const rotateApiKey: <ThrowOnError extends boolean = false>(options: Options<RotateApiKeyData, ThrowOnError>) => RequestResult<RotateApiKeyResponses, RotateApiKeyErrors, ThrowOnError>;
6135
7364
 
6136
7365
  /** Body of {@link Nadia.post}: the spec's own shape (`group`, `value[].id`
6137
7366
  * and `value[].delay` are optional there since 2026-10-21). */
@@ -6150,6 +7379,37 @@ declare class NadiaError extends Error {
6150
7379
  */
6151
7380
  get isTransient(): boolean;
6152
7381
  }
7382
+ /** What a `428` says the action will do: `action` (e.g. `post.delete`), `request`, and more per action. */
7383
+ type ConfirmationPreview = {
7384
+ action?: string;
7385
+ request?: string;
7386
+ [key: string]: unknown;
7387
+ };
7388
+ /**
7389
+ * Thrown on a `428`: the action waits for a yes (Settings › API & MCP, the
7390
+ * same columns as the MCP) and **nothing was done**. Show {@link preview} to
7391
+ * the user; once they said yes, {@link confirm} sends the same request again
7392
+ * with {@link confirmationToken} (single use, 15 minutes).
7393
+ *
7394
+ * try {
7395
+ * await nadia.deletePost(id);
7396
+ * } catch (err) {
7397
+ * if (!(err instanceof NadiaConfirmationRequired)) throw err;
7398
+ * console.log(err.preview);
7399
+ * if (await askUser('Delete?')) await err.confirm();
7400
+ * }
7401
+ *
7402
+ * `new Nadia(key, { autoConfirm: true })` skips the question: every `428` is
7403
+ * confirmed at once — only for a program that already has the user's yes.
7404
+ */
7405
+ declare class NadiaConfirmationRequired extends NadiaError {
7406
+ readonly preview: ConfirmationPreview;
7407
+ readonly confirmationToken: string;
7408
+ private readonly replay;
7409
+ constructor(body: unknown, replay: (token: string) => Promise<unknown>);
7410
+ /** Sends the same request again with the token: the action runs. Resolves to its answer. */
7411
+ confirm<T = unknown>(): Promise<T>;
7412
+ }
6153
7413
  interface NadiaOptions {
6154
7414
  /** Defaults to `https://app.usenadia.com/api`. */
6155
7415
  baseUrl?: string;
@@ -6166,6 +7426,13 @@ interface NadiaOptions {
6166
7426
  intervalMs?: number;
6167
7427
  timeoutMs?: number;
6168
7428
  };
7429
+ /**
7430
+ * An action that waits for a yes answers `428` (Settings › API & MCP):
7431
+ * by default the SDK throws {@link NadiaConfirmationRequired}. `true`
7432
+ * sends the same request again with its token at once, so the action runs.
7433
+ * Only for a program that already has the user's yes. Default `false`.
7434
+ */
7435
+ autoConfirm?: boolean;
6169
7436
  }
6170
7437
  /** Shape every generated operation resolves to. */
6171
7438
  type GeneratedResult<T> = {
@@ -6203,6 +7470,7 @@ declare class Nadia {
6203
7470
  /** For the bytes of an upload, which go to the upload host, not the API. */
6204
7471
  private readonly fetchImpl;
6205
7472
  private readonly importPoll;
7473
+ private readonly autoConfirm;
6206
7474
  constructor(apiKey: string, options?: string | NadiaOptions);
6207
7475
  /**
6208
7476
  * Runs a generated operation, turns a non-2xx into a `NadiaError`, and
@@ -6210,6 +7478,8 @@ declare class Nadia {
6210
7478
  * the whole point of the facade.
6211
7479
  */
6212
7480
  private call;
7481
+ /** A fetch that sends each request with `?confirmationToken=<token>`. */
7482
+ private withToken;
6213
7483
  /** Schedule, publish or draft a post on one or more channels. */
6214
7484
  post(body: CreatePostBody): Promise<CreatePostResultItemDto[]>;
6215
7485
  /** List posts in a date range. */
@@ -6223,8 +7493,8 @@ declare class Nadia {
6223
7493
  * time, a part cut by the network sent again, and the parts the confirm
6224
7494
  * says are missing sent again before confirming once more. A server that
6225
7495
  * does not take parts answers a single PUT, which is done instead; a
6226
- * server without that route (older, or self-hosted on an older release)
6227
- * and any other type (HEIC… which the server converts to JPEG) go through
7496
+ * server without that route (an older release) and any other type
7497
+ * (HEIC… which the server converts to JPEG) go through
6228
7498
  * `POST /public/v1/upload`, the whole file in one request, as before. A
6229
7499
  * MOV or an M4V is refused there (`415`): convert it to MP4 first.
6230
7500
  *
@@ -6263,8 +7533,14 @@ declare class Nadia {
6263
7533
  private put;
6264
7534
  /** List your connected channels. */
6265
7535
  integrations(): Promise<IntegrationListItemDto[]>;
6266
- /** Delete a post and everything published with it. */
6267
- deletePost(id: string): Promise<DeletedIdDto>;
7536
+ /**
7537
+ * Delete a post and everything published with it. Waits for a yes by
7538
+ * default: throws {@link NadiaConfirmationRequired} unless `autoConfirm`,
7539
+ * or unless the token of that 428 is passed here.
7540
+ */
7541
+ deletePost(id: string, options?: {
7542
+ confirmationToken?: string;
7543
+ }): Promise<DeletedPostDto>;
6268
7544
  /** Check that the API key is valid. Throws `NadiaError` with status 401 if not. */
6269
7545
  isConnected(): Promise<boolean>;
6270
7546
  /** Next free slot in a channel's schedule. */
@@ -6300,8 +7576,10 @@ declare class Nadia {
6300
7576
  * the first of them goes live.
6301
7577
  */
6302
7578
  linkContentPost(id: string, postGroup: string): Promise<OkDto>;
6303
- /** Delete a card. */
6304
- deleteContent(id: string): Promise<ContentDto>;
7579
+ /** Delete a card. Waits for a yes by default, like {@link Nadia.deletePost}. */
7580
+ deleteContent(id: string, options?: {
7581
+ confirmationToken?: string;
7582
+ }): Promise<ContentDto>;
6305
7583
  /** The numbers of the published cards, keyed by card id. */
6306
7584
  contentsPerformance(): Promise<{
6307
7585
  [key: string]: ContentPerformanceDto;
@@ -6382,4 +7660,4 @@ declare function parseWebhook<T = unknown>(options: {
6382
7660
  now?: number;
6383
7661
  }): WebhookDelivery<T>;
6384
7662
 
6385
- export { type AccountHistoryItemDto, type AnalyticsMetricDto, type AnalyticsPointDto, type ApiErrorDto, type AutomationFlowCatchUpCommentDto, type AutomationFlowCatchUpPreviewDto, type AutomationFlowCatchUpResultDto, type AutomationFlowCountsDto, type AutomationFlowDto, type AutomationFlowIssueDto, type AutomationFlowPollResultDto, type AutomationFlowPoseResponseDto, type AutomationFlowReplayResultDto, type AutomationFlowResponseDto, type AutomationFlowRunResponseDto, type AutomationFlowStatusDto, type AutomationPoseCountsDto, type AutomationPoseFlowDto, type AutomationPoseMediaDto, type AutomationPoseWaitingAtDto, type CatchUpAutomationPoseData, type CatchUpAutomationPoseError, type CatchUpAutomationPoseErrors, type CatchUpAutomationPoseResponse, type CatchUpAutomationPoseResponses, type ChangePostStatusData, type ChangePostStatusDto, type ChangePostStatusError, type ChangePostStatusErrors, type ChangePostStatusResponse, type ChangePostStatusResponses, type CheckConnectionData, type CheckConnectionError, type CheckConnectionErrors, type CheckConnectionResponse, type CheckConnectionResponses, type ClientOptions, type CommentReplyResultDto, type ConfirmUploadData, type ConfirmUploadError, type ConfirmUploadErrors, type ConfirmUploadResponse, type ConfirmUploadResponses, type ConfirmedUploadDto, type ContentChannelPerformanceDto, type ContentDto, type ContentFromLinkDto, type ContentListItemDto, type ContentPerformanceDto, type ContentPostDto, type ContentSourceDto, type ContentSourceTranscriptDto, type ContentSourceTranscriptSegmentDto, type ContentStage, type ContentUpsertDto, type ContentWorkspacesDto, type CreateAutomationFlowData, type CreateAutomationFlowError, type CreateAutomationFlowErrors, type CreateAutomationFlowResponse, type CreateAutomationFlowResponses, type CreateContentData, type CreateContentDto, type CreateContentError, type CreateContentErrors, type CreateContentFromLinkData, type CreateContentFromLinkDto, type CreateContentFromLinkError, type CreateContentFromLinkErrors, type CreateContentFromLinkResponse, type CreateContentFromLinkResponses, type CreateContentResponse, type CreateContentResponses, type CreatePostBody, type CreatePostData, type CreatePostError, type CreatePostErrors, type CreatePostResponse, type CreatePostResponses, type CreatePostResultItemDto, type CreatePublicWebhookDto, type CreateUploadData, type CreateUploadDto, type CreateUploadError, type CreateUploadErrors, type CreateUploadResponse, type CreateUploadResponses, type CreateWebhookData, type CreateWebhookError, type CreateWebhookErrors, type CreateWebhookResponse, type CreateWebhookResponses, type CreateWorkspaceData, type CreateWorkspaceDto, type CreateWorkspaceError, type CreateWorkspaceErrors, type CreateWorkspaceResponse, type CreateWorkspaceResponses, DEFAULT_BASE_URL, type DeleteAutomationFlowData, type DeleteAutomationFlowError, type DeleteAutomationFlowErrors, type DeleteAutomationFlowResponse, type DeleteAutomationFlowResponses, type DeleteAutomationPoseData, type DeleteAutomationPoseError, type DeleteAutomationPoseErrors, type DeleteAutomationPoseResponse, type DeleteAutomationPoseResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteCommentData, type DeleteCommentError, type DeleteCommentErrors, type DeleteCommentResponse, type DeleteCommentResponses, type DeleteContentData, type DeleteContentError, type DeleteContentErrors, type DeleteContentResponse, type DeleteContentResponses, type DeletePostData, type DeletePostError, type DeletePostErrors, type DeletePostGroupData, type DeletePostGroupError, type DeletePostGroupErrors, type DeletePostGroupResponse, type DeletePostGroupResponses, type DeletePostResponse, type DeletePostResponses, type DeleteWebhookData, type DeleteWebhookError, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type DeleteWorkspaceData, type DeleteWorkspaceError, type DeleteWorkspaceErrors, type DeleteWorkspaceResponse, type DeleteWorkspaceResponses, type DeletedIdDto, type DirectMessageResultDto, type EmailPreviewDto, type EmailPreviewDtoResponse, type EmailSentDto, type EmailTestDto, type FindSlotData, type FindSlotDto, type FindSlotError, type FindSlotErrors, type FindSlotResponse, type FindSlotResponses, type GetAccountHistoryData, type GetAccountHistoryError, type GetAccountHistoryErrors, type GetAccountHistoryResponse, type GetAccountHistoryResponses, type GetAutomationFlowData, type GetAutomationFlowError, type GetAutomationFlowErrors, type GetAutomationFlowResponse, type GetAutomationFlowResponses, type GetAutomationPoseData, type GetAutomationPoseError, type GetAutomationPoseErrors, type GetAutomationPoseResponse, type GetAutomationPoseResponses, type GetChannelAnalyticsData, type GetChannelAnalyticsError, type GetChannelAnalyticsErrors, type GetChannelAnalyticsResponse, type GetChannelAnalyticsResponses, type GetChannelSettingsData, type GetChannelSettingsError, type GetChannelSettingsErrors, type GetChannelSettingsResponse, type GetChannelSettingsResponses, type GetContentData, type GetContentError, type GetContentErrors, type GetContentResponse, type GetContentResponses, type GetContentsPerformanceData, type GetContentsPerformanceError, type GetContentsPerformanceErrors, type GetContentsPerformanceResponse, type GetContentsPerformanceResponses, type GetConversationData, type GetConversationError, type GetConversationErrors, type GetConversationResponse, type GetConversationResponses, type GetHookFormsData, type GetHookFormsError, type GetHookFormsErrors, type GetHookFormsResponse, type GetHookFormsResponses, type GetMusicTrackData, type GetMusicTrackError, type GetMusicTrackErrors, type GetMusicTrackResponse, type GetMusicTrackResponses, type GetPostAnalyticsData, type GetPostAnalyticsError, type GetPostAnalyticsErrors, type GetPostAnalyticsResponse, type GetPostAnalyticsResponses, type GetPostAutomationData, type GetPostAutomationError, type GetPostAutomationErrors, type GetPostAutomationResponse, type GetPostAutomationResponses, type GetPostData, type GetPostError, type GetPostErrors, type GetPostResponse, type GetPostResponses, type GetPostingTimesData, type GetPostingTimesError, type GetPostingTimesErrors, type GetPostingTimesResponse, type GetPostingTimesResponses, type GetSubscriptionData, type GetSubscriptionError, type GetSubscriptionErrors, type GetSubscriptionResponse, type GetSubscriptionResponses, type GetUploadFromUrlData, type GetUploadFromUrlError, type GetUploadFromUrlErrors, type GetUploadFromUrlResponse, type GetUploadFromUrlResponses, type GetVideoHistoryData, type GetVideoHistoryError, type GetVideoHistoryErrors, type GetVideoHistoryResponse, type GetVideoHistoryResponses, type GetViewsPerDayData, type GetViewsPerDayError, type GetViewsPerDayErrors, type GetViewsPerDayResponse, type GetViewsPerDayResponses, type GetWebhookData, type GetWebhookError, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type GroupDto, type HideCommentData, type HideCommentDto, type HideCommentError, type HideCommentErrors, type HideCommentResponse, type HideCommentResponses, type HistoryPageDto, type HookDto, type HookFamilyDto, type HookFormDto, type HooksSearchResultDto, type ImportMusicData, type ImportMusicError, type ImportMusicErrors, type ImportMusicResponse, type ImportMusicResponses, type InboxConversationDto, type InboxPollResultDto, type InboxTagDto, type InboxThreadDto, type InstagramCommentAuthorDto, type InstagramCommentDto, type InstagramMediaDto, type Integration, type IntegrationListItemDto, type IntegrationSettingsDto, type IntegrationSettingsOutputDto, type IntegrationToolDto, type IntegrationToolParamDto, type IntegrationTriggerDto, type IntegrationTriggerResultDto, type IntegrationValidateTimeDto, type IsConnectedDto, type LinkContentPostData, type LinkContentPostDto, type LinkContentPostError, type LinkContentPostErrors, type LinkContentPostResponse, type LinkContentPostResponses, type ListAutomationFlowPosesData, type ListAutomationFlowPosesError, type ListAutomationFlowPosesErrors, type ListAutomationFlowPosesResponse, type ListAutomationFlowPosesResponses, type ListAutomationFlowsData, type ListAutomationFlowsError, type ListAutomationFlowsErrors, type ListAutomationFlowsResponse, type ListAutomationFlowsResponses, type ListAutomationPoseRunsData, type ListAutomationPoseRunsError, type ListAutomationPoseRunsErrors, type ListAutomationPoseRunsResponse, type ListAutomationPoseRunsResponses, type ListChannelAutomationPosesData, type ListChannelAutomationPosesError, type ListChannelAutomationPosesErrors, type ListChannelAutomationPosesResponse, type ListChannelAutomationPosesResponses, type ListChannelMediaData, type ListChannelMediaError, type ListChannelMediaErrors, type ListChannelMediaResponse, type ListChannelMediaResponses, type ListChannelStoriesData, type ListChannelStoriesError, type ListChannelStoriesErrors, type ListChannelStoriesResponse, type ListChannelStoriesResponses, type ListChannelsData, type ListChannelsError, type ListChannelsErrors, type ListChannelsResponse, type ListChannelsResponses, type ListContentsData, type ListContentsError, type ListContentsErrors, type ListContentsResponse, type ListContentsResponses, type ListConversationsData, type ListConversationsError, type ListConversationsErrors, type ListConversationsResponse, type ListConversationsResponses, type ListGroupsData, type ListGroupsError, type ListGroupsErrors, type ListGroupsResponse, type ListGroupsResponses, type ListHookFamiliesData, type ListHookFamiliesError, type ListHookFamiliesErrors, type ListHookFamiliesResponse, type ListHookFamiliesResponses, type ListMediaCommentsData, type ListMediaCommentsError, type ListMediaCommentsErrors, type ListMediaCommentsResponse, type ListMediaCommentsResponses, type ListMissingMediaData, type ListMissingMediaError, type ListMissingMediaErrors, type ListMissingMediaResponse, type ListMissingMediaResponses, type ListMusicData, type ListMusicError, type ListMusicErrors, type ListMusicPillarsData, type ListMusicPillarsError, type ListMusicPillarsErrors, type ListMusicPillarsResponse, type ListMusicPillarsResponses, type ListMusicResponse, type ListMusicResponses, type ListNotificationsData, type ListNotificationsError, type ListNotificationsErrors, type ListNotificationsResponse, type ListNotificationsResponses, type ListPostsData, type ListPostsError, type ListPostsErrors, type ListPostsResponse, type ListPostsResponses, type ListVideoPerformanceData, type ListVideoPerformanceError, type ListVideoPerformanceErrors, type ListVideoPerformanceResponse, type ListVideoPerformanceResponses, type ListWebhookEventsData, type ListWebhookEventsError, type ListWebhookEventsErrors, type ListWebhookEventsResponse, type ListWebhookEventsResponses, type ListWebhooksData, type ListWebhooksError, type ListWebhooksErrors, type ListWebhooksResponse, type ListWebhooksResponses, type ListWorkspacesData, type ListWorkspacesError, type ListWorkspacesErrors, type ListWorkspacesResponse, type ListWorkspacesResponses, type MediaDto, type MediaResponseDto, type MediaTaggedDto, type MediaWorkspacesDto, type MissingContentItemDto, type MoveContentData, type MoveContentDto, type MoveContentError, type MoveContentErrors, type MoveContentResponse, type MoveContentResponses, type MusicImportDto, type MusicImportItemDto, type MusicImportResultDto, type MusicListResultDto, type MusicPillarDto, type MusicTrackDto, Nadia, NadiaError, type NadiaOptions, NadiaWebhookError, type NotificationDto, type NotificationsPageDto, type OkDto, type Options, type PollAutomationPoseData, type PollAutomationPoseError, type PollAutomationPoseErrors, type PollAutomationPoseResponse, type PollAutomationPoseResponses, type PollInboxData, type PollInboxError, type PollInboxErrors, type PollInboxResponse, type PollInboxResponses, type PoseAutomationFlowData, type PoseAutomationFlowDto, type PoseAutomationFlowError, type PoseAutomationFlowErrors, type PoseAutomationFlowResponse, type PoseAutomationFlowResponses, type Post, type PostAutomationDto, type PostAutomationResponseDto, type PostContent, type PostDetailDto, type PostDto, type PostIntegrationSummaryDto, type PostLinkClicksDto, type PostLinkClicksSourceDto, type PostListDto, type PostMediaDto, type PostPublicationDto, type PostStatusDto, type PostTagDto, type PostingTimeItemDto, type PostingTimesDto, type PostingTimesResultDto, type PreviewAutomationEmailData, type PreviewAutomationEmailError, type PreviewAutomationEmailErrors, type PreviewAutomationEmailResponse, type PreviewAutomationEmailResponses, type PreviewAutomationPoseCatchUpData, type PreviewAutomationPoseCatchUpError, type PreviewAutomationPoseCatchUpErrors, type PreviewAutomationPoseCatchUpResponse, type PreviewAutomationPoseCatchUpResponses, type PublicCreatePostDto, type RemovePostAutomationData, type RemovePostAutomationError, type RemovePostAutomationErrors, type RemovePostAutomationResponse, type RemovePostAutomationResponses, type ReplayAutomationPoseData, type ReplayAutomationPoseError, type ReplayAutomationPoseErrors, type ReplayAutomationPoseResponse, type ReplayAutomationPoseResponses, type ReplayPoseDto, type ReplyToCommentData, type ReplyToCommentDto, type ReplyToCommentError, type ReplyToCommentErrors, type ReplyToCommentResponse, type ReplyToCommentResponses, type RunChannelToolData, type RunChannelToolError, type RunChannelToolErrors, type RunChannelToolResponse, type RunChannelToolResponses, type SearchHooksData, type SearchHooksError, type SearchHooksErrors, type SearchHooksResponse, type SearchHooksResponses, type SendAutomationTestEmailData, type SendAutomationTestEmailError, type SendAutomationTestEmailErrors, type SendAutomationTestEmailResponse, type SendAutomationTestEmailResponses, type SendDirectMessageData, type SendDirectMessageError, type SendDirectMessageErrors, type SendDirectMessageResponse, type SendDirectMessageResponses, type SendMessageDto, type SetAutomationFlowStatusData, type SetAutomationFlowStatusError, type SetAutomationFlowStatusErrors, type SetAutomationFlowStatusResponse, type SetAutomationFlowStatusResponses, type SetContentWorkspacesData, type SetContentWorkspacesDto, type SetContentWorkspacesError, type SetContentWorkspacesErrors, type SetContentWorkspacesResponse, type SetContentWorkspacesResponses, type SetMediaWorkspacesData, type SetMediaWorkspacesDto, type SetMediaWorkspacesError, type SetMediaWorkspacesErrors, type SetMediaWorkspacesResponse, type SetMediaWorkspacesResponses, type SetPostAutomationData, type SetPostAutomationError, type SetPostAutomationErrors, type SetPostAutomationResponse, type SetPostAutomationResponses, type SetPostCoverData, type SetPostCoverDto, type SetPostCoverError, type SetPostCoverErrors, type SetPostCoverResponse, type SetPostCoverResponses, type SetPostPublicationData, type SetPostPublicationDto, type SetPostPublicationError, type SetPostPublicationErrors, type SetPostPublicationResponse, type SetPostPublicationResponses, type SetPostReleaseIdData, type SetPostReleaseIdError, type SetPostReleaseIdErrors, type SetPostReleaseIdResponse, type SetPostReleaseIdResponses, type SetPostingTimesData, type SetPostingTimesError, type SetPostingTimesErrors, type SetPostingTimesResponse, type SetPostingTimesResponses, type SocialAuthUrlDto, type StartChannelConnectionData, type StartChannelConnectionError, type StartChannelConnectionErrors, type StartChannelConnectionResponse, type StartChannelConnectionResponses, type SubscribeInboxWebhookData, type SubscribeInboxWebhookError, type SubscribeInboxWebhookErrors, type SubscribeInboxWebhookResponse, type SubscribeInboxWebhookResponses, type SubscriptionDto, type SuccessDto, type Tags, type TestWebhookData, type TestWebhookDto, type TestWebhookError, type TestWebhookErrors, type TestWebhookResponse, type TestWebhookResponses, type UpdateAutomationFlowData, type UpdateAutomationFlowDto, type UpdateAutomationFlowError, type UpdateAutomationFlowErrors, type UpdateAutomationFlowPoseDto, type UpdateAutomationFlowResponse, type UpdateAutomationFlowResponses, type UpdateAutomationPoseData, type UpdateAutomationPoseError, type UpdateAutomationPoseErrors, type UpdateAutomationPoseResponse, type UpdateAutomationPoseResponses, type UpdateContentData, type UpdateContentDto, type UpdateContentError, type UpdateContentErrors, type UpdateContentResponse, type UpdateContentResponses, type UpdateReleaseIdDto, type UpdateWorkspaceData, type UpdateWorkspaceDto, type UpdateWorkspaceError, type UpdateWorkspaceErrors, type UpdateWorkspaceResponse, type UpdateWorkspaceResponses, type UploadDto, type UploadErrorDto, type UploadFileData, type UploadFileError, type UploadFileErrors, type UploadFileResponse, type UploadFileResponses, type UploadFromUrlData, type UploadFromUrlError, type UploadFromUrlErrors, type UploadFromUrlResponse, type UploadFromUrlResponses, type UploadMusicFileData, type UploadMusicFileError, type UploadMusicFileErrors, type UploadMusicFileResponse, type UploadMusicFileResponses, type UploadSessionDto, type UploadedMedia, type UpsertContentData, type UpsertContentDto, type UpsertContentError, type UpsertContentErrors, type UpsertContentResponse, type UpsertContentResponses, type UrlImportDto, type UrlImportErrorDto, type VerifyWebhookOptions, type VideoHistoryPageDto, type VideoIdentityDto, type ViewsPerDayDto, type ViewsPerDayItemDto, type WebhookCreatedDto, type WebhookDelivery, type WebhookDto, type WebhookEventDto, type WebhookEventListDto, type WebhookTestResultDto, type WebhooksIntegrationDto, type WorkspaceDeletedDto, type WorkspaceDto, type WorkspaceErrorDto, type WorkspaceRefDto, catchUpAutomationPose, changePostStatus, checkConnection, confirmUpload, createAutomationFlow, createContent, createContentFromLink, createPost, createUpload, createWebhook, createWorkspace, Nadia as default, deleteAutomationFlow, deleteAutomationPose, deleteChannel, deleteComment, deleteContent, deletePost, deletePostGroup, deleteWebhook, deleteWorkspace, findSlot, getAccountHistory, getAutomationFlow, getAutomationPose, getChannelAnalytics, getChannelSettings, getContent, getContentsPerformance, getConversation, getHookForms, getMusicTrack, getPost, getPostAnalytics, getPostAutomation, getPostingTimes, getSubscription, getUploadFromUrl, getVideoHistory, getViewsPerDay, getWebhook, hideComment, importMusic, linkContentPost, listAutomationFlowPoses, listAutomationFlows, listAutomationPoseRuns, listChannelAutomationPoses, listChannelMedia, listChannelStories, listChannels, listContents, listConversations, listGroups, listHookFamilies, listMediaComments, listMissingMedia, listMusic, listMusicPillars, listNotifications, listPosts, listVideoPerformance, listWebhookEvents, listWebhooks, listWorkspaces, moveContent, parseWebhook, pollAutomationPose, pollInbox, poseAutomationFlow, previewAutomationEmail, previewAutomationPoseCatchUp, removePostAutomation, replayAutomationPose, replyToComment, runChannelTool, searchHooks, sendAutomationTestEmail, sendDirectMessage, setAutomationFlowStatus, setContentWorkspaces, setMediaWorkspaces, setPostAutomation, setPostCover, setPostPublication, setPostReleaseId, setPostingTimes, startChannelConnection, subscribeInboxWebhook, testWebhook, updateAutomationFlow, updateAutomationPose, updateContent, updateWorkspace, uploadContentType, uploadFile, uploadFromUrl, uploadMusicFile, upsertContent, verifyWebhookSignature };
7663
+ export { type AccountHistoryItemDto, type AnalyticsMetricDto, type AnalyticsPointDto, type ApiErrorDto, type ApiKeyCreatedDto, type ApiKeyDto, type ApiKeyErrorDto, type ApiKeyWorkspaceDto, type ApprovePostData, type ApprovePostDto, type ApprovePostError, type ApprovePostErrors, type ApprovePostResponse, type ApprovePostResponses, type AutomationFlowCatchUpCommentDto, type AutomationFlowCatchUpPreviewDto, type AutomationFlowCatchUpResultDto, type AutomationFlowCountsDto, type AutomationFlowDto, type AutomationFlowIssueDto, type AutomationFlowPollResultDto, type AutomationFlowPoseResponseDto, type AutomationFlowReplayResultDto, type AutomationFlowResponseDto, type AutomationFlowRunResponseDto, type AutomationFlowStatusDto, type AutomationPoseCountsDto, type AutomationPoseFlowDto, type AutomationPoseMediaDto, type AutomationPoseWaitingAtDto, type AwaitingPostDto, type AwaitingPostsDto, type CatchUpAutomationPoseData, type CatchUpAutomationPoseError, type CatchUpAutomationPoseErrors, type CatchUpAutomationPoseResponse, type CatchUpAutomationPoseResponses, type ChangePostStatusData, type ChangePostStatusDto, type ChangePostStatusError, type ChangePostStatusErrors, type ChangePostStatusResponse, type ChangePostStatusResponses, type CheckConnectionData, type CheckConnectionError, type CheckConnectionErrors, type CheckConnectionResponse, type CheckConnectionResponses, type ClientOptions, type CommentPublicationData, type CommentPublicationDto, type CommentPublicationError, type CommentPublicationErrors, type CommentPublicationResponse, type CommentPublicationResponses, type CommentPublicationResultDto, type CommentReplyResultDto, type ConfirmUploadData, type ConfirmUploadError, type ConfirmUploadErrors, type ConfirmUploadResponse, type ConfirmUploadResponses, type ConfirmationPreview, type ConfirmedUploadDto, type ContentChannelPerformanceDto, type ContentDto, type ContentFromLinkDto, type ContentListItemDto, type ContentPerformanceDto, type ContentPostDto, type ContentSourceDto, type ContentSourceTranscriptDto, type ContentSourceTranscriptSegmentDto, type ContentStage, type ContentUpsertDto, type ContentWorkspacesDto, type CreateApiKeyData, type CreateApiKeyDto, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateAutomationFlowData, type CreateAutomationFlowError, type CreateAutomationFlowErrors, type CreateAutomationFlowResponse, type CreateAutomationFlowResponses, type CreateContentData, type CreateContentDto, type CreateContentError, type CreateContentErrors, type CreateContentFromLinkData, type CreateContentFromLinkDto, type CreateContentFromLinkError, type CreateContentFromLinkErrors, type CreateContentFromLinkResponse, type CreateContentFromLinkResponses, type CreateContentResponse, type CreateContentResponses, type CreatePostBody, type CreatePostData, type CreatePostError, type CreatePostErrors, type CreatePostResponse, type CreatePostResponses, type CreatePostResultItemDto, type CreatePublicWebhookDto, type CreateUploadData, type CreateUploadDto, type CreateUploadError, type CreateUploadErrors, type CreateUploadResponse, type CreateUploadResponses, type CreateWebhookData, type CreateWebhookError, type CreateWebhookErrors, type CreateWebhookResponse, type CreateWebhookResponses, type CreateWorkspaceData, type CreateWorkspaceDto, type CreateWorkspaceError, type CreateWorkspaceErrors, type CreateWorkspaceResponse, type CreateWorkspaceResponses, DEFAULT_BASE_URL, type DeleteAutomationFlowData, type DeleteAutomationFlowError, type DeleteAutomationFlowErrors, type DeleteAutomationFlowResponse, type DeleteAutomationFlowResponses, type DeleteAutomationPoseData, type DeleteAutomationPoseError, type DeleteAutomationPoseErrors, type DeleteAutomationPoseResponse, type DeleteAutomationPoseResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteCommentData, type DeleteCommentError, type DeleteCommentErrors, type DeleteCommentResponse, type DeleteCommentResponses, type DeleteContentData, type DeleteContentError, type DeleteContentErrors, type DeleteContentResponse, type DeleteContentResponses, type DeletePostData, type DeletePostError, type DeletePostErrors, type DeletePostGroupData, type DeletePostGroupError, type DeletePostGroupErrors, type DeletePostGroupResponse, type DeletePostGroupResponses, type DeletePostResponse, type DeletePostResponses, type DeleteWebhookData, type DeleteWebhookError, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type DeleteWorkspaceData, type DeleteWorkspaceError, type DeleteWorkspaceErrors, type DeleteWorkspaceResponse, type DeleteWorkspaceResponses, type DeletedIdDto, type DeletedPostDto, type DirectMessageResultDto, type EmailPreviewDto, type EmailPreviewDtoResponse, type EmailSentDto, type EmailTestDto, type FindSlotData, type FindSlotDto, type FindSlotError, type FindSlotErrors, type FindSlotResponse, type FindSlotResponses, type GetAccountHistoryData, type GetAccountHistoryError, type GetAccountHistoryErrors, type GetAccountHistoryResponse, type GetAccountHistoryResponses, type GetAutomationFlowData, type GetAutomationFlowError, type GetAutomationFlowErrors, type GetAutomationFlowResponse, type GetAutomationFlowResponses, type GetAutomationPoseData, type GetAutomationPoseError, type GetAutomationPoseErrors, type GetAutomationPoseResponse, type GetAutomationPoseResponses, type GetChannelAnalyticsData, type GetChannelAnalyticsError, type GetChannelAnalyticsErrors, type GetChannelAnalyticsResponse, type GetChannelAnalyticsResponses, type GetChannelSettingsData, type GetChannelSettingsError, type GetChannelSettingsErrors, type GetChannelSettingsResponse, type GetChannelSettingsResponses, type GetContentData, type GetContentError, type GetContentErrors, type GetContentResponse, type GetContentResponses, type GetContentsPerformanceData, type GetContentsPerformanceError, type GetContentsPerformanceErrors, type GetContentsPerformanceResponse, type GetContentsPerformanceResponses, type GetConversationData, type GetConversationError, type GetConversationErrors, type GetConversationResponse, type GetConversationResponses, type GetHookFormsData, type GetHookFormsError, type GetHookFormsErrors, type GetHookFormsResponse, type GetHookFormsResponses, type GetMusicTrackData, type GetMusicTrackError, type GetMusicTrackErrors, type GetMusicTrackResponse, type GetMusicTrackResponses, type GetPostAnalyticsData, type GetPostAnalyticsError, type GetPostAnalyticsErrors, type GetPostAnalyticsResponse, type GetPostAnalyticsResponses, type GetPostAutomationData, type GetPostAutomationError, type GetPostAutomationErrors, type GetPostAutomationResponse, type GetPostAutomationResponses, type GetPostData, type GetPostError, type GetPostErrors, type GetPostResponse, type GetPostResponses, type GetPostingTimesData, type GetPostingTimesError, type GetPostingTimesErrors, type GetPostingTimesResponse, type GetPostingTimesResponses, type GetSubscriptionData, type GetSubscriptionError, type GetSubscriptionErrors, type GetSubscriptionResponse, type GetSubscriptionResponses, type GetUploadFromUrlData, type GetUploadFromUrlError, type GetUploadFromUrlErrors, type GetUploadFromUrlResponse, type GetUploadFromUrlResponses, type GetVideoHistoryData, type GetVideoHistoryError, type GetVideoHistoryErrors, type GetVideoHistoryResponse, type GetVideoHistoryResponses, type GetViewsPerDayData, type GetViewsPerDayError, type GetViewsPerDayErrors, type GetViewsPerDayResponse, type GetViewsPerDayResponses, type GetWebhookData, type GetWebhookError, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type GroupDto, type HideCommentData, type HideCommentDto, type HideCommentError, type HideCommentErrors, type HideCommentResponse, type HideCommentResponses, type HistoryPageDto, type HookDto, type HookFamilyDto, type HookFormDto, type HooksSearchResultDto, type ImportMusicData, type ImportMusicError, type ImportMusicErrors, type ImportMusicResponse, type ImportMusicResponses, type InboxConversationDto, type InboxPollResultDto, type InboxTagDto, type InboxThreadDto, type InstagramCommentAuthorDto, type InstagramCommentDto, type InstagramMediaDto, type Integration, type IntegrationListItemDto, type IntegrationSettingsDto, type IntegrationSettingsOutputDto, type IntegrationToolDto, type IntegrationToolParamDto, type IntegrationTriggerDto, type IntegrationTriggerResultDto, type IntegrationValidateTimeDto, type IsConnectedDto, type LinkContentPostData, type LinkContentPostDto, type LinkContentPostError, type LinkContentPostErrors, type LinkContentPostResponse, type LinkContentPostResponses, type ListApiKeysData, type ListApiKeysError, type ListApiKeysErrors, type ListApiKeysResponse, type ListApiKeysResponses, type ListAutomationFlowPosesData, type ListAutomationFlowPosesError, type ListAutomationFlowPosesErrors, type ListAutomationFlowPosesResponse, type ListAutomationFlowPosesResponses, type ListAutomationFlowsData, type ListAutomationFlowsError, type ListAutomationFlowsErrors, type ListAutomationFlowsResponse, type ListAutomationFlowsResponses, type ListAutomationPoseRunsData, type ListAutomationPoseRunsError, type ListAutomationPoseRunsErrors, type ListAutomationPoseRunsResponse, type ListAutomationPoseRunsResponses, type ListChannelAutomationPosesData, type ListChannelAutomationPosesError, type ListChannelAutomationPosesErrors, type ListChannelAutomationPosesResponse, type ListChannelAutomationPosesResponses, type ListChannelMediaData, type ListChannelMediaError, type ListChannelMediaErrors, type ListChannelMediaResponse, type ListChannelMediaResponses, type ListChannelStoriesData, type ListChannelStoriesError, type ListChannelStoriesErrors, type ListChannelStoriesResponse, type ListChannelStoriesResponses, type ListChannelsData, type ListChannelsError, type ListChannelsErrors, type ListChannelsResponse, type ListChannelsResponses, type ListContentsData, type ListContentsError, type ListContentsErrors, type ListContentsResponse, type ListContentsResponses, type ListConversationsData, type ListConversationsError, type ListConversationsErrors, type ListConversationsResponse, type ListConversationsResponses, type ListGroupsData, type ListGroupsError, type ListGroupsErrors, type ListGroupsResponse, type ListGroupsResponses, type ListHookFamiliesData, type ListHookFamiliesError, type ListHookFamiliesErrors, type ListHookFamiliesResponse, type ListHookFamiliesResponses, type ListMediaCommentsData, type ListMediaCommentsError, type ListMediaCommentsErrors, type ListMediaCommentsResponse, type ListMediaCommentsResponses, type ListMissingMediaData, type ListMissingMediaError, type ListMissingMediaErrors, type ListMissingMediaResponse, type ListMissingMediaResponses, type ListMusicData, type ListMusicError, type ListMusicErrors, type ListMusicPillarsData, type ListMusicPillarsError, type ListMusicPillarsErrors, type ListMusicPillarsResponse, type ListMusicPillarsResponses, type ListMusicResponse, type ListMusicResponses, type ListNotificationsData, type ListNotificationsError, type ListNotificationsErrors, type ListNotificationsResponse, type ListNotificationsResponses, type ListPostsAwaitingApprovalData, type ListPostsAwaitingApprovalError, type ListPostsAwaitingApprovalErrors, type ListPostsAwaitingApprovalResponse, type ListPostsAwaitingApprovalResponses, type ListPostsData, type ListPostsError, type ListPostsErrors, type ListPostsResponse, type ListPostsResponses, type ListUndatedDraftsData, type ListUndatedDraftsError, type ListUndatedDraftsErrors, type ListUndatedDraftsResponse, type ListUndatedDraftsResponses, type ListVideoPerformanceData, type ListVideoPerformanceError, type ListVideoPerformanceErrors, type ListVideoPerformanceResponse, type ListVideoPerformanceResponses, type ListWebhookEventsData, type ListWebhookEventsError, type ListWebhookEventsErrors, type ListWebhookEventsResponse, type ListWebhookEventsResponses, type ListWebhooksData, type ListWebhooksError, type ListWebhooksErrors, type ListWebhooksResponse, type ListWebhooksResponses, type ListWorkspacesData, type ListWorkspacesError, type ListWorkspacesErrors, type ListWorkspacesResponse, type ListWorkspacesResponses, type MediaDto, type MediaResponseDto, type MediaTaggedDto, type MediaWorkspacesDto, type MissingContentItemDto, type MoveContentData, type MoveContentDto, type MoveContentError, type MoveContentErrors, type MoveContentResponse, type MoveContentResponses, type MusicImportDto, type MusicImportItemDto, type MusicImportResultDto, type MusicListResultDto, type MusicPillarDto, type MusicTrackDto, Nadia, NadiaConfirmationRequired, NadiaError, type NadiaOptions, NadiaWebhookError, type NotificationDto, type NotificationsPageDto, type OkDto, type Options, type PollAutomationPoseData, type PollAutomationPoseError, type PollAutomationPoseErrors, type PollAutomationPoseResponse, type PollAutomationPoseResponses, type PollInboxData, type PollInboxError, type PollInboxErrors, type PollInboxResponse, type PollInboxResponses, type PoseAutomationFlowData, type PoseAutomationFlowDto, type PoseAutomationFlowError, type PoseAutomationFlowErrors, type PoseAutomationFlowResponse, type PoseAutomationFlowResponses, type Post, type PostAnswerResultDto, type PostApprovalDto, type PostAutomationDto, type PostAutomationResponseDto, type PostContent, type PostDetailDto, type PostDto, type PostIntegrationSummaryDto, type PostLinkClicksDto, type PostLinkClicksSourceDto, type PostListDto, type PostMediaDto, type PostPublicationDto, type PostStatusDto, type PostTagDto, type PostThreadCommentDto, type PostingTimeItemDto, type PostingTimesDto, type PostingTimesResultDto, type PreviewAutomationEmailData, type PreviewAutomationEmailError, type PreviewAutomationEmailErrors, type PreviewAutomationEmailResponse, type PreviewAutomationEmailResponses, type PreviewAutomationPoseCatchUpData, type PreviewAutomationPoseCatchUpError, type PreviewAutomationPoseCatchUpErrors, type PreviewAutomationPoseCatchUpResponse, type PreviewAutomationPoseCatchUpResponses, type PublicCreatePostDto, type RefusePostData, type RefusePostDto, type RefusePostError, type RefusePostErrors, type RefusePostResponse, type RefusePostResponses, type RemovePostAutomationData, type RemovePostAutomationError, type RemovePostAutomationErrors, type RemovePostAutomationResponse, type RemovePostAutomationResponses, type ReplayAutomationPoseData, type ReplayAutomationPoseError, type ReplayAutomationPoseErrors, type ReplayAutomationPoseResponse, type ReplayAutomationPoseResponses, type ReplayPoseDto, type ReplyToCommentData, type ReplyToCommentDto, type ReplyToCommentError, type ReplyToCommentErrors, type ReplyToCommentResponse, type ReplyToCommentResponses, type RevokeApiKeyData, type RevokeApiKeyError, type RevokeApiKeyErrors, type RevokeApiKeyResponse, type RevokeApiKeyResponses, type RotateApiKeyData, type RotateApiKeyError, type RotateApiKeyErrors, type RotateApiKeyResponse, type RotateApiKeyResponses, type RunChannelToolData, type RunChannelToolError, type RunChannelToolErrors, type RunChannelToolResponse, type RunChannelToolResponses, type SearchHooksData, type SearchHooksError, type SearchHooksErrors, type SearchHooksResponse, type SearchHooksResponses, type SendAutomationTestEmailData, type SendAutomationTestEmailError, type SendAutomationTestEmailErrors, type SendAutomationTestEmailResponse, type SendAutomationTestEmailResponses, type SendDirectMessageData, type SendDirectMessageError, type SendDirectMessageErrors, type SendDirectMessageResponse, type SendDirectMessageResponses, type SendMessageDto, type SetAutomationFlowStatusData, type SetAutomationFlowStatusError, type SetAutomationFlowStatusErrors, type SetAutomationFlowStatusResponse, type SetAutomationFlowStatusResponses, type SetContentWorkspacesData, type SetContentWorkspacesDto, type SetContentWorkspacesError, type SetContentWorkspacesErrors, type SetContentWorkspacesResponse, type SetContentWorkspacesResponses, type SetMediaWorkspacesData, type SetMediaWorkspacesDto, type SetMediaWorkspacesError, type SetMediaWorkspacesErrors, type SetMediaWorkspacesResponse, type SetMediaWorkspacesResponses, type SetPostAutomationData, type SetPostAutomationError, type SetPostAutomationErrors, type SetPostAutomationResponse, type SetPostAutomationResponses, type SetPostCoverData, type SetPostCoverDto, type SetPostCoverError, type SetPostCoverErrors, type SetPostCoverResponse, type SetPostCoverResponses, type SetPostPublicationData, type SetPostPublicationDto, type SetPostPublicationError, type SetPostPublicationErrors, type SetPostPublicationResponse, type SetPostPublicationResponses, type SetPostReleaseIdData, type SetPostReleaseIdError, type SetPostReleaseIdErrors, type SetPostReleaseIdResponse, type SetPostReleaseIdResponses, type SetPostThreadCommentDto, type SetPostThreadData, type SetPostThreadDto, type SetPostThreadError, type SetPostThreadErrors, type SetPostThreadResponse, type SetPostThreadResponses, type SetPostingTimesData, type SetPostingTimesError, type SetPostingTimesErrors, type SetPostingTimesResponse, type SetPostingTimesResponses, type SocialAuthUrlDto, type StartChannelConnectionData, type StartChannelConnectionError, type StartChannelConnectionErrors, type StartChannelConnectionResponse, type StartChannelConnectionResponses, type SubscribeInboxWebhookData, type SubscribeInboxWebhookError, type SubscribeInboxWebhookErrors, type SubscribeInboxWebhookResponse, type SubscribeInboxWebhookResponses, type SubscriptionDto, type SuccessDto, type Tags, type TestWebhookData, type TestWebhookDto, type TestWebhookError, type TestWebhookErrors, type TestWebhookResponse, type TestWebhookResponses, type UpdateApiKeyData, type UpdateApiKeyDto, type UpdateApiKeyError, type UpdateApiKeyErrors, type UpdateApiKeyResponse, type UpdateApiKeyResponses, type UpdateAutomationFlowData, type UpdateAutomationFlowDto, type UpdateAutomationFlowError, type UpdateAutomationFlowErrors, type UpdateAutomationFlowPoseDto, type UpdateAutomationFlowResponse, type UpdateAutomationFlowResponses, type UpdateAutomationPoseData, type UpdateAutomationPoseError, type UpdateAutomationPoseErrors, type UpdateAutomationPoseResponse, type UpdateAutomationPoseResponses, type UpdateContentData, type UpdateContentDto, type UpdateContentError, type UpdateContentErrors, type UpdateContentResponse, type UpdateContentResponses, type UpdateReleaseIdDto, type UpdateWorkspaceData, type UpdateWorkspaceDto, type UpdateWorkspaceError, type UpdateWorkspaceErrors, type UpdateWorkspaceResponse, type UpdateWorkspaceResponses, type UploadDto, type UploadErrorDto, type UploadFileData, type UploadFileError, type UploadFileErrors, type UploadFileResponse, type UploadFileResponses, type UploadFromUrlData, type UploadFromUrlError, type UploadFromUrlErrors, type UploadFromUrlResponse, type UploadFromUrlResponses, type UploadMusicFileData, type UploadMusicFileError, type UploadMusicFileErrors, type UploadMusicFileResponse, type UploadMusicFileResponses, type UploadSessionDto, type UploadedMedia, type UpsertContentData, type UpsertContentDto, type UpsertContentError, type UpsertContentErrors, type UpsertContentResponse, type UpsertContentResponses, type UrlImportDto, type UrlImportErrorDto, type VerifyWebhookOptions, type VideoHistoryItemDto, type VideoHistoryPageDto, type VideoIdentityDto, type ViewsPerDayDto, type ViewsPerDayItemDto, type WebhookCreatedDto, type WebhookDelivery, type WebhookDto, type WebhookEventDto, type WebhookEventListDto, type WebhookTestResultDto, type WebhooksIntegrationDto, type WorkspaceDeletedDto, type WorkspaceDto, type WorkspaceErrorDto, type WorkspaceRefDto, approvePost, catchUpAutomationPose, changePostStatus, checkConnection, commentPublication, confirmUpload, createApiKey, createAutomationFlow, createContent, createContentFromLink, createPost, createUpload, createWebhook, createWorkspace, Nadia as default, deleteAutomationFlow, deleteAutomationPose, deleteChannel, deleteComment, deleteContent, deletePost, deletePostGroup, deleteWebhook, deleteWorkspace, findSlot, getAccountHistory, getAutomationFlow, getAutomationPose, getChannelAnalytics, getChannelSettings, getContent, getContentsPerformance, getConversation, getHookForms, getMusicTrack, getPost, getPostAnalytics, getPostAutomation, getPostingTimes, getSubscription, getUploadFromUrl, getVideoHistory, getViewsPerDay, getWebhook, hideComment, importMusic, linkContentPost, listApiKeys, listAutomationFlowPoses, listAutomationFlows, listAutomationPoseRuns, listChannelAutomationPoses, listChannelMedia, listChannelStories, listChannels, listContents, listConversations, listGroups, listHookFamilies, listMediaComments, listMissingMedia, listMusic, listMusicPillars, listNotifications, listPosts, listPostsAwaitingApproval, listUndatedDrafts, listVideoPerformance, listWebhookEvents, listWebhooks, listWorkspaces, moveContent, parseWebhook, pollAutomationPose, pollInbox, poseAutomationFlow, previewAutomationEmail, previewAutomationPoseCatchUp, refusePost, removePostAutomation, replayAutomationPose, replyToComment, revokeApiKey, rotateApiKey, runChannelTool, searchHooks, sendAutomationTestEmail, sendDirectMessage, setAutomationFlowStatus, setContentWorkspaces, setMediaWorkspaces, setPostAutomation, setPostCover, setPostPublication, setPostReleaseId, setPostThread, setPostingTimes, startChannelConnection, subscribeInboxWebhook, testWebhook, updateApiKey, updateAutomationFlow, updateAutomationPose, updateContent, updateWorkspace, uploadContentType, uploadFile, uploadFromUrl, uploadMusicFile, upsertContent, verifyWebhookSignature };