@usenadia/node 0.1.1 → 0.3.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
@@ -362,12 +362,171 @@ type MediaResponseDto = {
362
362
  type UploadDto = {
363
363
  url: string;
364
364
  };
365
+ type UrlImportErrorDto = {
366
+ /**
367
+ * The HTTP status the import would have answered at once.
368
+ */
369
+ statusCode: number;
370
+ /**
371
+ * Human-readable reason, the same as the immediate answer's `msg`.
372
+ */
373
+ msg: string;
374
+ };
375
+ type UrlImportDto = {
376
+ /**
377
+ * Import id: what `GET /public/v1/upload-from-url/{importId}` reads.
378
+ */
379
+ id: string;
380
+ /**
381
+ * `running` (read again in a few seconds), `done` (`media` is set) or `failed` (`error` is set).
382
+ */
383
+ status: 'running' | 'done' | 'failed';
384
+ /**
385
+ * The media, once `done`.
386
+ */
387
+ media: MediaResponseDto | null;
388
+ /**
389
+ * Why it failed, once `failed`.
390
+ */
391
+ error: UrlImportErrorDto | null;
392
+ createdAt: string;
393
+ finishedAt: string | null;
394
+ };
395
+ type CreateUploadDto = {
396
+ /**
397
+ * Name or path of the file on your disk; its base name becomes the media name. Used in the `curl` command of the answer.
398
+ */
399
+ filename: string;
400
+ contentType: 'video/mp4' | 'image/jpeg' | 'image/png' | 'image/webp' | 'image/gif';
401
+ /**
402
+ * Exact size of the file, in bytes.
403
+ */
404
+ size: number;
405
+ };
406
+ type UploadSessionDto = {
407
+ /**
408
+ * What `POST /public/v1/uploads/{uploadId}/confirm` takes.
409
+ */
410
+ uploadId: string;
411
+ /**
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.
413
+ */
414
+ uploadUrl: string;
415
+ /**
416
+ * Always `PUT`.
417
+ */
418
+ method: string;
419
+ /**
420
+ * Headers to send with the bytes.
421
+ */
422
+ headers: {
423
+ [key: string]: string;
424
+ };
425
+ /**
426
+ * 24 hours after the call in parts, 15 minutes for a single PUT.
427
+ */
428
+ expiresAt: string;
429
+ /**
430
+ * The server's size limit, in bytes.
431
+ */
432
+ maxSize: number;
433
+ /**
434
+ * A shell command (macOS or Linux: `sh`, `curl`, `dd`) that sends the file, to run where the file is.
435
+ */
436
+ curl: string;
437
+ /**
438
+ * In parts only: the size of a part in bytes (20 MB; the last one is smaller).
439
+ */
440
+ partSize?: number;
441
+ /**
442
+ * In parts only: how many parts. Absent = a single PUT.
443
+ */
444
+ parts?: number;
445
+ };
446
+ type ConfirmedUploadDto = {
447
+ /**
448
+ * Media id, what a post takes as `image[].id`.
449
+ */
450
+ id: string;
451
+ /**
452
+ * Public URL of the file, what a post takes as `image[].path`.
453
+ */
454
+ path: string;
455
+ /**
456
+ * The declared type, checked on the bytes.
457
+ */
458
+ contentType: string;
459
+ /**
460
+ * Bytes stored.
461
+ */
462
+ size: number;
463
+ /**
464
+ * Seconds for a video, `null` for an image.
465
+ */
466
+ duration: number | null;
467
+ /**
468
+ * Width as displayed (the rotation of a phone video applied).
469
+ */
470
+ width: number;
471
+ /**
472
+ * Height as displayed.
473
+ */
474
+ height: number;
475
+ /**
476
+ * Picture codec (`h264`, `hevc`, `png`…).
477
+ */
478
+ codec: string;
479
+ };
480
+ type UploadErrorDto = {
481
+ statusCode: number;
482
+ /**
483
+ * Starts with a code (`UPLOAD_INCOMPLETE: …`), then what to do.
484
+ */
485
+ message: string;
486
+ /**
487
+ * With `UPLOAD_INCOMPLETE` only: the numbers of the parts that have not arrived.
488
+ */
489
+ missingParts?: Array<number>;
490
+ };
365
491
  type FindSlotDto = {
366
492
  /**
367
493
  * Next free slot for the channel.
368
494
  */
369
495
  date: string;
370
496
  };
497
+ type PostingTimeItemDto = {
498
+ /**
499
+ * Minutes after midnight UTC.
500
+ */
501
+ time: number;
502
+ /**
503
+ * UTC weekdays, 0 = Sunday … 6 = Saturday. Absent = every day.
504
+ */
505
+ days?: Array<number>;
506
+ };
507
+ type PostingTimesResultDto = {
508
+ /**
509
+ * The channel.
510
+ */
511
+ integrationId: string;
512
+ /**
513
+ * Its posting slots, one per time.
514
+ */
515
+ times: Array<PostingTimeItemDto>;
516
+ };
517
+ type IntegrationValidateTimeDto = {
518
+ /**
519
+ * Minutes after midnight UTC (18:30 UTC = 1110).
520
+ */
521
+ time: number;
522
+ /**
523
+ * UTC weekdays the slot fires on, 0 = Sunday … 6 = Saturday. Absent = every day.
524
+ */
525
+ days?: Array<number>;
526
+ };
527
+ type PostingTimesDto = {
528
+ times: Array<IntegrationValidateTimeDto>;
529
+ };
371
530
  type PostTagDto = {
372
531
  /**
373
532
  * The tag record (`name`, `color`…).
@@ -382,6 +541,28 @@ type PostIntegrationSummaryDto = {
382
541
  providerIdentifier: string;
383
542
  picture: string | null;
384
543
  };
544
+ type PostLinkClicksSourceDto = {
545
+ /**
546
+ * The `src` the link carried (`<link>?src=newsletter`), a short lowercase slug.
547
+ */
548
+ source: string;
549
+ clicks: number;
550
+ };
551
+ type PostLinkClicksDto = {
552
+ total: number;
553
+ /**
554
+ * Clicks sent to the post, once published.
555
+ */
556
+ toPost: number;
557
+ /**
558
+ * Clicks sent to the channel's profile: before the publication, or after a deletion.
559
+ */
560
+ toProfile: number;
561
+ /**
562
+ * Clicks by `src`, most clicked first; clicks without one are only in the totals.
563
+ */
564
+ sources: Array<PostLinkClicksSourceDto>;
565
+ };
385
566
  type PostDto = {
386
567
  id: string;
387
568
  /**
@@ -415,10 +596,48 @@ type PostDto = {
415
596
  creationMethod?: 'API' | 'CLI' | 'UI' | 'MCP';
416
597
  tags?: Array<PostTagDto>;
417
598
  integration?: PostIntegrationSummaryDto;
599
+ /**
600
+ * Short link of the post (`<base>/s/<code>`), known as soon as the post is saved: it leads to the channel's profile until the post is published, then to the post, and stays on the last publication. Null for a post saved before short links, or on a platform whose profile address Nadia cannot build.
601
+ */
602
+ link?: string | null;
603
+ /**
604
+ * Clicks on `link`, link previews (bots) left out. Null when `link` is null.
605
+ */
606
+ linkClicks?: PostLinkClicksDto | null;
607
+ /**
608
+ * 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
+ */
610
+ publication?: string | null;
418
611
  };
419
612
  type PostListDto = {
420
613
  posts: Array<PostDto>;
421
614
  };
615
+ type PostMediaDto = {
616
+ /**
617
+ * Media id; null for a media given by URL only.
618
+ */
619
+ id: string | null;
620
+ /**
621
+ * Public URL of the media.
622
+ */
623
+ path: string;
624
+ /**
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.
626
+ */
627
+ thumbnail: string | null;
628
+ };
629
+ type PostDetailDto = PostDto & {
630
+ /**
631
+ * The media of the post, in order, each with its cover.
632
+ */
633
+ media: Array<PostMediaDto>;
634
+ };
635
+ type SetPostCoverDto = {
636
+ /**
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.
638
+ */
639
+ thumbnail: string | null;
640
+ };
422
641
  type Tags = {
423
642
  value: string;
424
643
  label: string;
@@ -430,6 +649,9 @@ type MediaDto = {
430
649
  id: string;
431
650
  path: string;
432
651
  alt?: string;
652
+ /**
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.
654
+ */
433
655
  thumbnail?: string;
434
656
  };
435
657
  type PostContent = {
@@ -459,6 +681,10 @@ type PublicCreatePostDto = {
459
681
  date: string;
460
682
  tags: Array<Tags>;
461
683
  posts: Array<Post>;
684
+ /**
685
+ * The publication these posts join: the `publication` of a post written before (the answer of this route, or `GET /posts`). Leave it out and the posts of the request are one publication, with one post per channel; a second post on the same channel starts another. Refused with a `400` when no live post of your organisation is in it.
686
+ */
687
+ publication?: string;
462
688
  };
463
689
  type CreatePostResultItemDto = {
464
690
  /**
@@ -469,6 +695,15 @@ type CreatePostResultItemDto = {
469
695
  * Channel it was created for.
470
696
  */
471
697
  integration: string;
698
+ /**
699
+ * Short link of the post (`<base>/s/<code>`), known as soon as the post is saved: it leads to the channel's profile until the post is published, then to the post, and stays on the last publication. Null for a post saved before short links, or on a platform whose profile address Nadia cannot build.
700
+ */
701
+ link?: string | null;
702
+ /**
703
+ * The publication the post is in: the same for the posts of one content on several channels. Pass it as `publication` on a later request to schedule the same content on another channel.
704
+ */
705
+ publication: string;
706
+ mediaTagged?: MediaTaggedDto;
472
707
  };
473
708
  type DeletedIdDto = {
474
709
  /**
@@ -482,13 +717,301 @@ type IsConnectedDto = {
482
717
  */
483
718
  connected: boolean;
484
719
  };
720
+ type WorkspaceDto = {
721
+ /**
722
+ * Workspace id — what `listChannels` takes as `?workspace=`.
723
+ */
724
+ id: string;
725
+ /**
726
+ * Workspace name, as shown in the app.
727
+ */
728
+ name: string;
729
+ /**
730
+ * Ids of the channels in this workspace. A channel belongs to exactly one workspace.
731
+ */
732
+ channels: Array<string>;
733
+ /**
734
+ * Whose workspace it is: your own, your business, or a client of yours.
735
+ */
736
+ type: 'PERSONAL' | 'BUSINESS' | 'CLIENT';
737
+ /**
738
+ * URL of the workspace logo, or null.
739
+ */
740
+ logo: string | null;
741
+ /**
742
+ * Website of the brand, or null.
743
+ */
744
+ website: string | null;
745
+ /**
746
+ * Country of the audience, ISO 3166-1 alpha-2 (`MT`), or null.
747
+ */
748
+ country: string | null;
749
+ /**
750
+ * Time zone of the workspace, IANA (`Europe/Malta`), or null.
751
+ */
752
+ timezone: string | null;
753
+ /**
754
+ * 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
+ */
756
+ about: string | null;
757
+ /**
758
+ * 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
+ */
760
+ timezoneNotice: string | null;
761
+ };
762
+ type SubscriptionDto = {
763
+ /**
764
+ * The plan; FREE: no active subscription.
765
+ */
766
+ tier: 'FREE' | 'SOLO' | 'EQUIPE' | 'AGENCE' | 'STARTER_ULTIME' | 'ULTIME' | 'VCORP';
767
+ /**
768
+ * The plan's name as the app shows it in English (Free, Solo, Team, Agency, Starter ultime, Upgrade Ultime, Vcorp).
769
+ */
770
+ name: string;
771
+ /**
772
+ * A free trial runs: the first charge comes at `trialEndsAt`.
773
+ */
774
+ trial: boolean;
775
+ /**
776
+ * End of the free trial; null without one.
777
+ */
778
+ trialEndsAt: string | null;
779
+ /**
780
+ * Billing period; null when the plan is offered or there is none.
781
+ */
782
+ period: 'MONTHLY' | 'YEARLY';
783
+ /**
784
+ * The plan is offered (an invitation, a trial offered by mail, Starter ultime): nothing is billed for it.
785
+ */
786
+ offered: boolean;
787
+ /**
788
+ * Offered with no end date.
789
+ */
790
+ lifetime: boolean;
791
+ /**
792
+ * When the offered plan ends (the organization is then without a subscription); null otherwise.
793
+ */
794
+ offeredUntil: string | null;
795
+ /**
796
+ * When a cancelled subscription stops; null when none is planned.
797
+ */
798
+ cancelAt: string | null;
799
+ /**
800
+ * A paid subscription runs and renews at the end of its period (not offered, not cancelled).
801
+ */
802
+ renews: boolean;
803
+ /**
804
+ * Connected channels against the channels included.
805
+ */
806
+ channels: {
807
+ /**
808
+ * Channels connected.
809
+ */
810
+ connected: number;
811
+ /**
812
+ * Channels the plan includes, paid plus offered; null: no limit.
813
+ */
814
+ included: number | null;
815
+ /**
816
+ * Channels of the subscription itself; null: no limit or no subscription.
817
+ */
818
+ paid: number | null;
819
+ /**
820
+ * Channels offered by hand on top of the plan.
821
+ */
822
+ offered: number;
823
+ /**
824
+ * Connected channels to reconnect.
825
+ */
826
+ needingRefresh: number;
827
+ };
828
+ members: {
829
+ /**
830
+ * Members of the organization.
831
+ */
832
+ count: number;
833
+ /**
834
+ * The plan lets the organization invite members.
835
+ */
836
+ teamMembers: boolean;
837
+ };
838
+ /**
839
+ * Outgoing webhooks.
840
+ */
841
+ webhooks: {
842
+ /**
843
+ * How many the organization has.
844
+ */
845
+ count: number;
846
+ /**
847
+ * How many the plan includes; null: no limit.
848
+ */
849
+ included: number | null;
850
+ };
851
+ /**
852
+ * Workspaces.
853
+ */
854
+ workspaces: {
855
+ /**
856
+ * How many the organization has.
857
+ */
858
+ count: number;
859
+ /**
860
+ * How many the plan includes; null: no limit.
861
+ */
862
+ included: number | null;
863
+ };
864
+ /**
865
+ * The hooks quota, the trial's while a trial runs.
866
+ */
867
+ hooks: {
868
+ /**
869
+ * Hooks returned per call at most.
870
+ */
871
+ perCall: number;
872
+ /**
873
+ * Hooks a day at most (renewed at 00:00 UTC); null: no daily limit.
874
+ */
875
+ perDay: number | null;
876
+ };
877
+ /**
878
+ * The subscription page in the app; null without a subscription.
879
+ */
880
+ manageUrl: string | null;
881
+ /**
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.
883
+ */
884
+ billing: {
885
+ /**
886
+ * Stripe could be read, or nothing is billed anyway. False: the amounts are unavailable (see notice), never work them out.
887
+ */
888
+ available: boolean;
889
+ /**
890
+ * Why the amounts are unavailable: not_configured (this server does not read Stripe) or stripe_error (Stripe did not answer); null when available.
891
+ */
892
+ unavailable: 'not_configured' | 'stripe_error';
893
+ /**
894
+ * The unavailability in a sentence, for the agent; null when available.
895
+ */
896
+ notice: string | null;
897
+ /**
898
+ * Something will be charged at nextInvoice.date. False: nothing will be (see noChargeReason). Null: not known (Stripe unavailable).
899
+ */
900
+ willCharge: boolean | null;
901
+ /**
902
+ * Why nothing will be charged: free (no subscription), vcorp, lifetime or offered (an offered plan), manual (a plan set by hand, nothing at Stripe), canceled (cancelled: it stops at cancelAt), no_upcoming_invoice, nothing_due (a 100 % discount).
903
+ */
904
+ noChargeReason: 'free' | 'vcorp' | 'lifetime' | 'offered' | 'manual' | 'canceled' | 'no_upcoming_invoice' | 'nothing_due';
905
+ /**
906
+ * The Stripe subscription's status: trialing, active, past_due (a payment failed, Stripe retries), unpaid, canceled, incomplete, paused; null without one or when Stripe is unavailable.
907
+ */
908
+ status: string | null;
909
+ /**
910
+ * Stripe cancels the subscription at the end of its period.
911
+ */
912
+ cancelAtPeriodEnd: boolean;
913
+ /**
914
+ * When Stripe ends the subscription (UTC); null when no end is planned at Stripe.
915
+ */
916
+ cancelAt: string | null;
917
+ /**
918
+ * Stripe's preview of the next invoice; null when none will come or Stripe is unavailable. Amounts are in the currency (22.42, not cents).
919
+ */
920
+ nextInvoice: {
921
+ /**
922
+ * When the invoice is issued and charged (UTC); during a trial, its end.
923
+ */
924
+ date: string;
925
+ /**
926
+ * ISO currency, upper case (EUR).
927
+ */
928
+ currency: string;
929
+ /**
930
+ * Before discounts and tax.
931
+ */
932
+ subtotal: number;
933
+ /**
934
+ * Total with tax (TTC), after discounts.
935
+ */
936
+ total: number;
937
+ /**
938
+ * Total without tax (HT), after discounts.
939
+ */
940
+ totalExcludingTax: number;
941
+ /**
942
+ * The tax: total minus totalExcludingTax.
943
+ */
944
+ tax: number;
945
+ /**
946
+ * What will actually be charged (the total less any customer credit).
947
+ */
948
+ amountDue: number;
949
+ /**
950
+ * The discounts applied (coupon, promotion code).
951
+ */
952
+ discounts: Array<{
953
+ /**
954
+ * The discount, in the currency.
955
+ */
956
+ amount: number;
957
+ /**
958
+ * The Stripe coupon's id.
959
+ */
960
+ coupon: string | null;
961
+ /**
962
+ * The promotion code the customer entered (SOLO19, LAUNCH...).
963
+ */
964
+ promotionCode: string | null;
965
+ /**
966
+ * When the discount stops applying; null: it applies to every invoice (forever).
967
+ */
968
+ endsAt: string | null;
969
+ }>;
970
+ } | null;
971
+ /**
972
+ * The last invoice that asked for money (a trial's 0 invoice is not one); null: none yet, or Stripe unavailable.
973
+ */
974
+ lastPayment: {
975
+ /**
976
+ * When it was paid; for an unpaid one, when it was issued (UTC).
977
+ */
978
+ date: string;
979
+ /**
980
+ * Paid, or still due, in the currency.
981
+ */
982
+ amount: number;
983
+ /**
984
+ * ISO currency, upper case.
985
+ */
986
+ currency: string;
987
+ /**
988
+ * paid; failed (the charge was refused, Stripe may retry at nextRetryAt); pending (not tried yet).
989
+ */
990
+ status: 'paid' | 'failed' | 'pending';
991
+ /**
992
+ * When Stripe tries the charge again; null if it will not.
993
+ */
994
+ nextRetryAt: string | null;
995
+ } | null;
996
+ };
997
+ };
485
998
  type GroupDto = {
486
999
  /**
487
- * Group (customer) id.
1000
+ * Workspace id (formerly a group).
1001
+ */
1002
+ id: string;
1003
+ /**
1004
+ * Workspace name, as shown in the app.
1005
+ */
1006
+ name: string;
1007
+ };
1008
+ type WorkspaceRefDto = {
1009
+ /**
1010
+ * Workspace id.
488
1011
  */
489
1012
  id: string;
490
1013
  /**
491
- * Group name, as shown in the app.
1014
+ * Workspace name, as shown in the app.
492
1015
  */
493
1016
  name: string;
494
1017
  };
@@ -518,9 +1041,15 @@ type IntegrationListItemDto = {
518
1041
  */
519
1042
  profile: string | null;
520
1043
  /**
521
- * Group the channel belongs to, when it belongs to one.
1044
+ * Workspace the channel belongs to (every channel belongs to exactly one).
522
1045
  */
523
- customer?: GroupDto;
1046
+ workspace: WorkspaceRefDto;
1047
+ /**
1048
+ * Deprecated: same value as `workspace`, kept for the published SDKs.
1049
+ *
1050
+ * @deprecated
1051
+ */
1052
+ customer?: WorkspaceRefDto;
524
1053
  };
525
1054
  type SocialAuthUrlDto = {
526
1055
  /**
@@ -553,55 +1082,15 @@ type NotificationsPageDto = {
553
1082
  */
554
1083
  hasMore: boolean;
555
1084
  };
556
- type VideoDto = {
1085
+ type IntegrationToolParamDto = {
1086
+ /**
1087
+ * Key to send in `data`.
1088
+ */
1089
+ key: string;
557
1090
  type: string;
558
- output: 'vertical' | 'horizontal';
559
- customParams: {
560
- [key: string]: unknown;
561
- };
1091
+ description: string;
562
1092
  };
563
- type GeneratedVideoDto = {
564
- /**
565
- * Media id — what you pass as `image[].id` when creating a post.
566
- */
567
- id: string;
568
- /**
569
- * Stored file name.
570
- */
571
- name: string;
572
- /**
573
- * Name of the file as it was sent, when known.
574
- */
575
- originalName: string | null;
576
- /**
577
- * Public URL of the file — what you pass as `image[].path` when creating a post.
578
- */
579
- path: string;
580
- /**
581
- * Thumbnail URL, when one was generated.
582
- */
583
- thumbnail: string | null;
584
- /**
585
- * Alt text, when one was set.
586
- */
587
- alt: string | null;
588
- };
589
- type VideoFunctionDto = {
590
- identifier: string;
591
- functionName: string;
592
- params?: {
593
- [key: string]: unknown;
594
- };
595
- };
596
- type IntegrationToolParamDto = {
597
- /**
598
- * Key to send in `data`.
599
- */
600
- key: string;
601
- type: string;
602
- description: string;
603
- };
604
- type IntegrationToolDto = {
1093
+ type IntegrationToolDto = {
605
1094
  /**
606
1095
  * Method to call on POST /integration-trigger/{id}.
607
1096
  */
@@ -659,8 +1148,14 @@ type UpdateReleaseIdDto = {
659
1148
  releaseId: string;
660
1149
  };
661
1150
  type AnalyticsPointDto = {
1151
+ /**
1152
+ * The day of the point, `YYYY-MM-DD`, as the channel's platform gives it.
1153
+ */
662
1154
  date: string;
663
- total: string;
1155
+ /**
1156
+ * The value: a number for Instagram and Pinterest (read as the platform gives it), a string for the other channels.
1157
+ */
1158
+ total: number | string;
664
1159
  };
665
1160
  type AnalyticsMetricDto = {
666
1161
  /**
@@ -750,11 +1245,9 @@ type IntegrationTriggerDto = {
750
1245
  };
751
1246
  type IntegrationTriggerResultDto = {
752
1247
  /**
753
- * Raw provider answer — its shape depends on the tool called.
1248
+ * Raw provider answer — its shape depends on the tool called: an object, or an array (a search tool such as Instagram's `audioSearch` returns its results).
754
1249
  */
755
- output: {
756
- [key: string]: unknown;
757
- };
1250
+ output: unknown;
758
1251
  };
759
1252
  type InstagramMediaDto = {
760
1253
  /**
@@ -768,6 +1261,9 @@ type InstagramMediaDto = {
768
1261
  media_type?: string;
769
1262
  media_url?: string;
770
1263
  permalink?: string;
1264
+ /**
1265
+ * As Instagram gives it, e.g. `2026-10-30T09:00:00+0000` (the offset without a colon).
1266
+ */
771
1267
  timestamp?: string;
772
1268
  comments_count?: number;
773
1269
  like_count?: number;
@@ -782,6 +1278,9 @@ type InstagramCommentAuthorDto = {
782
1278
  type InstagramCommentDto = {
783
1279
  id: string;
784
1280
  text: string;
1281
+ /**
1282
+ * As Instagram gives it, e.g. `2026-10-30T09:00:00+0000` (the offset without a colon).
1283
+ */
785
1284
  timestamp: string;
786
1285
  from: InstagramCommentAuthorDto;
787
1286
  /**
@@ -800,13 +1299,50 @@ type ReplyToCommentDto = {
800
1299
  type SuccessDto = {
801
1300
  success: boolean;
802
1301
  };
1302
+ /**
1303
+ * The platform's answer, as it gives it.
1304
+ */
1305
+ type CommentReplyResultDto = {
1306
+ /**
1307
+ * The id of the reply, given by the platform.
1308
+ */
1309
+ id?: string;
1310
+ };
1311
+ /**
1312
+ * The platform's answer, as it gives it.
1313
+ */
1314
+ type DirectMessageResultDto = {
1315
+ /**
1316
+ * The person the message went to.
1317
+ */
1318
+ recipient_id?: string;
1319
+ /**
1320
+ * The id of the message, given by the platform.
1321
+ */
1322
+ message_id?: string;
1323
+ };
803
1324
  type HideCommentDto = {
804
1325
  hide: boolean;
805
1326
  };
806
1327
  type InboxConversationDto = {
1328
+ /**
1329
+ * Opens the conversation (`getConversation`): Instagram's conversation id, or the person's id while Instagram has not named the thread yet.
1330
+ */
807
1331
  id: string;
808
1332
  /**
809
- * Box the conversation sits in (`category`) and its sort timestamp (`sortAt`).
1333
+ * Instagram's conversation id, null until Instagram named the thread.
1334
+ */
1335
+ conversationId?: string | null;
1336
+ /**
1337
+ * The person's Instagram id: the `recipientId` of `sendDirectMessage`.
1338
+ */
1339
+ personId?: string;
1340
+ /**
1341
+ * Newest activity of the thread.
1342
+ */
1343
+ updated_time?: string;
1344
+ /**
1345
+ * Box the conversation sits in (`category`, `label`, `dismissed`), its sort timestamp (`sortAt`) and when Instagram stops accepting an answer (`replyWindowClosesAt`).
810
1346
  */
811
1347
  inbox?: {
812
1348
  [key: string]: unknown;
@@ -818,13 +1354,21 @@ type InboxConversationDto = {
818
1354
  [key: string]: unknown;
819
1355
  };
820
1356
  /**
821
- * Meta shape: `{ data: [ message ] }`, most recent first.
1357
+ * Meta shape: `{ data: [ message ] }` — the newest message of the thread, for a preview.
822
1358
  */
823
1359
  messages?: {
824
1360
  [key: string]: unknown;
825
1361
  };
1362
+ /**
1363
+ * This row's place in the list: pass the last row's `cursor` as `after` for the next page.
1364
+ */
1365
+ cursor?: string;
826
1366
  };
827
1367
  type SendMessageDto = {
1368
+ /**
1369
+ * Quote a message of the conversation, as Instagram's « Reply » does: the Meta id of the quoted message (the `id` of a message of `getConversation`), ours or the person's.
1370
+ */
1371
+ replyTo?: string;
828
1372
  recipientId: string;
829
1373
  text: string;
830
1374
  linkUrl?: string;
@@ -840,15 +1384,69 @@ type InboxPollResultDto = {
840
1384
  */
841
1385
  handled: number;
842
1386
  };
843
- type InboxParticipantDto = {
844
- id: string;
845
- username?: string;
1387
+ type InboxTagDto = {
1388
+ /**
1389
+ * `automation`: a template the person went through and the word that started it. `tag`: a label an `add_tag` step left on them.
1390
+ */
1391
+ kind: 'automation' | 'tag';
1392
+ /**
1393
+ * `automation` only: the template's id.
1394
+ */
1395
+ automationId?: string;
1396
+ /**
1397
+ * `automation` only: the template's name.
1398
+ */
1399
+ automation?: string;
1400
+ /**
1401
+ * `automation` only: the word the person wrote; empty for a story reply where any reply counts.
1402
+ */
1403
+ keyword?: string;
1404
+ /**
1405
+ * `tag` only: the label.
1406
+ */
1407
+ value?: string;
1408
+ /**
1409
+ * How many runs carry it.
1410
+ */
1411
+ count: number;
1412
+ /**
1413
+ * The most recent of them.
1414
+ */
1415
+ lastAt: string;
846
1416
  };
847
- type InboxMessageDto = {
1417
+ type InboxThreadDto = {
1418
+ /**
1419
+ * Instagram's conversation id, or the person's id while Instagram has not named the thread.
1420
+ */
848
1421
  id: string;
849
- message: string;
850
- created_time: string;
851
- from?: InboxParticipantDto;
1422
+ conversationId?: string | null;
1423
+ /**
1424
+ * The person's Instagram id: the `recipientId` of `sendDirectMessage`.
1425
+ */
1426
+ personId?: string;
1427
+ updated_time?: string;
1428
+ /**
1429
+ * Meta shape: `{ data: [ { id, username } ] }`.
1430
+ */
1431
+ participants?: {
1432
+ [key: string]: unknown;
1433
+ };
1434
+ /**
1435
+ * Meta shape: `{ data: [ message ], paging?: { before } }`, newest first. `paging.before` is there when older messages remain: pass it as `before`. A message an automation sent or consumed (the keyword, a button tap, the email) carries `automated: true`.
1436
+ */
1437
+ messages?: {
1438
+ [key: string]: unknown;
1439
+ };
1440
+ /**
1441
+ * Same as on `listConversations`.
1442
+ */
1443
+ inbox?: {
1444
+ [key: string]: unknown;
1445
+ };
1446
+ /**
1447
+ * What the automations know of the person, most recent first: the templates they went through, word by word, and the labels those left.
1448
+ */
1449
+ tags?: Array<InboxTagDto>;
852
1450
  };
853
1451
  type AutomationFlowIssueDto = {
854
1452
  level: 'error' | 'warning';
@@ -882,9 +1480,9 @@ type AutomationFlowResponseDto = {
882
1480
  */
883
1481
  integrationId?: string | null;
884
1482
  /**
885
- * The switch of every pose of the template.
1483
+ * The switch of every pose of the template. ARCHIVED keeps answering on the publications it is posed on, like ACTIVE, but cannot be posed again nor edited; it is reached from ACTIVE only and unarchived back to ACTIVE.
886
1484
  */
887
- status: 'DRAFT' | 'ACTIVE' | 'PAUSED';
1485
+ status: 'DRAFT' | 'ACTIVE' | 'PAUSED' | 'ARCHIVED';
888
1486
  /**
889
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.
890
1488
  */
@@ -900,17 +1498,36 @@ type AutomationFlowResponseDto = {
900
1498
  updatedAt: string;
901
1499
  };
902
1500
  type EmailPreviewDto = {
903
- brevoTemplateId: number;
1501
+ /**
1502
+ * The tool, by its identifier (`brevo`, `resend`): the step's `provider`.
1503
+ * Required unless the deprecated `brevoTemplateId` is given.
1504
+ */
1505
+ provider?: string;
1506
+ /**
1507
+ * The template, as the tool names it: the step's `templateId`. Required
1508
+ * unless the deprecated `brevoTemplateId` is given.
1509
+ */
1510
+ templateId?: string;
1511
+ /**
1512
+ * Deprecated: `provider: "brevo"` with `templateId`. Still accepted, read as
1513
+ * exactly that.
1514
+ *
1515
+ * @deprecated
1516
+ */
1517
+ brevoTemplateId?: number;
904
1518
  dmLinkUrl?: string | null;
905
1519
  resourceName?: string | null;
906
1520
  keyword?: string | null;
907
1521
  username?: string | null;
908
1522
  };
909
1523
  type EmailPreviewDtoResponse = {
910
- templateId: number;
1524
+ /**
1525
+ * The template's id in the tool, as a string (Brevo's numeric ids included).
1526
+ */
1527
+ templateId: string;
911
1528
  templateName: string;
912
1529
  /**
913
- * Whether Brevo has the template active.
1530
+ * Whether the tool would send the template (active in Brevo, published in Resend).
914
1531
  */
915
1532
  active: boolean;
916
1533
  /**
@@ -918,7 +1535,7 @@ type EmailPreviewDtoResponse = {
918
1535
  */
919
1536
  subject: string;
920
1537
  /**
921
- * Brevo sender (name, email).
1538
+ * The template's sender (name, email).
922
1539
  */
923
1540
  sender: {
924
1541
  [key: string]: unknown;
@@ -928,14 +1545,30 @@ type EmailPreviewDtoResponse = {
928
1545
  */
929
1546
  html: string;
930
1547
  /**
931
- * The params the template was rendered with (LINK, RESOURCE, KEYWORD, USERNAME).
1548
+ * The variables the template was rendered with (LINK, RESOURCE, KEYWORD, USERNAME).
932
1549
  */
933
1550
  params: {
934
1551
  [key: string]: unknown;
935
1552
  };
936
1553
  };
937
1554
  type EmailTestDto = {
938
- brevoTemplateId: number;
1555
+ /**
1556
+ * The tool, by its identifier (`brevo`, `resend`): the step's `provider`.
1557
+ * Required unless the deprecated `brevoTemplateId` is given.
1558
+ */
1559
+ provider?: string;
1560
+ /**
1561
+ * The template, as the tool names it: the step's `templateId`. Required
1562
+ * unless the deprecated `brevoTemplateId` is given.
1563
+ */
1564
+ templateId?: string;
1565
+ /**
1566
+ * Deprecated: `provider: "brevo"` with `templateId`. Still accepted, read as
1567
+ * exactly that.
1568
+ *
1569
+ * @deprecated
1570
+ */
1571
+ brevoTemplateId?: number;
939
1572
  dmLinkUrl?: string | null;
940
1573
  resourceName?: string | null;
941
1574
  keyword?: string | null;
@@ -964,12 +1597,26 @@ type UpdateAutomationFlowDto = {
964
1597
  };
965
1598
  };
966
1599
  type AutomationFlowStatusDto = {
967
- status: 'DRAFT' | 'ACTIVE' | 'PAUSED';
1600
+ status: 'DRAFT' | 'ACTIVE' | 'PAUSED' | 'ARCHIVED';
968
1601
  };
969
1602
  type AutomationPoseFlowDto = {
970
1603
  id: string;
971
1604
  name: string;
972
- status: 'DRAFT' | 'ACTIVE' | 'PAUSED';
1605
+ status: 'DRAFT' | 'ACTIVE' | 'PAUSED' | 'ARCHIVED';
1606
+ };
1607
+ type AutomationPoseWaitingAtDto = {
1608
+ /**
1609
+ * Waiting on the first DM: its button never tapped. Nothing more can be sent: Meta allows one private reply per comment.
1610
+ */
1611
+ firstMessage: number;
1612
+ /**
1613
+ * Waiting on a step that asks for the email: they answered the first DM, and gave no address yet.
1614
+ */
1615
+ email: number;
1616
+ /**
1617
+ * Waiting anywhere else: a later button, a delay.
1618
+ */
1619
+ other: number;
973
1620
  };
974
1621
  type AutomationPoseCountsDto = {
975
1622
  runs: number;
@@ -977,6 +1624,33 @@ type AutomationPoseCountsDto = {
977
1624
  done: number;
978
1625
  failed: number;
979
1626
  emails: number;
1627
+ /**
1628
+ * People who wrote again after what started it (the comment, or the story reply): a tap on a button, a text, a question. Out of `runs`.
1629
+ */
1630
+ replied: number;
1631
+ /**
1632
+ * People who clicked at least one link they were sent (through the click hop), link previews left out. Out of `runs`.
1633
+ */
1634
+ clicked: number;
1635
+ /**
1636
+ * Where the `waiting` people wait, read on the step each run is parked on.
1637
+ */
1638
+ waitingAt: AutomationPoseWaitingAtDto;
1639
+ };
1640
+ type AutomationPoseMediaDto = {
1641
+ /**
1642
+ * Cover of the publication, as the analytics collector last read it (an Instagram CDN URL, which expires).
1643
+ */
1644
+ coverUrl?: string | null;
1645
+ /**
1646
+ * Its caption, in full.
1647
+ */
1648
+ caption?: string | null;
1649
+ publishedAt?: string | null;
1650
+ /**
1651
+ * Its Instagram permalink.
1652
+ */
1653
+ url?: string | null;
980
1654
  };
981
1655
  type AutomationFlowPoseResponseDto = {
982
1656
  id: string;
@@ -1005,11 +1679,19 @@ type AutomationFlowPoseResponseDto = {
1005
1679
  * The pause of this pose alone.
1006
1680
  */
1007
1681
  active: boolean;
1682
+ /**
1683
+ * What this pose lacks or makes wrong against its template as it stands: a variable with no value since the template changed (`variable_without_value`, params.variable), no trigger word (`no_keywords`), a `{bouton}` over 20 characters… A pose with an error does not run: fix it with PUT /automation-flow-poses/{id}. The template’s own faults are on the template.
1684
+ */
1685
+ issues: Array<AutomationFlowIssueDto>;
1008
1686
  flow?: AutomationPoseFlowDto;
1009
1687
  /**
1010
1688
  * Present on list routes.
1011
1689
  */
1012
1690
  counts?: AutomationPoseCountsDto;
1691
+ /**
1692
+ * Present on list routes: the publication as the analytics collector knows it. Null on a story (never collected), a post not collected yet, or one deleted on Instagram.
1693
+ */
1694
+ media?: AutomationPoseMediaDto | null;
1013
1695
  createdAt: string;
1014
1696
  updatedAt: string;
1015
1697
  };
@@ -1061,6 +1743,18 @@ type AutomationFlowRunResponseDto = {
1061
1743
  createdAt: string;
1062
1744
  updatedAt: string;
1063
1745
  completedAt?: string | null;
1746
+ /**
1747
+ * First click on a link the run sent (through the click hop), link previews left out. Null: never clicked.
1748
+ */
1749
+ clickedAt?: string | null;
1750
+ /**
1751
+ * Clicks on the links the run sent, link previews left out.
1752
+ */
1753
+ clicks: number;
1754
+ /**
1755
+ * The codes of the links the run sent (one per distinct link, oldest first). The site the person reaches gets it as utm_content: the way to find the person of a visit, or of a sign-up, back.
1756
+ */
1757
+ codes?: Array<string>;
1064
1758
  };
1065
1759
  type AutomationFlowPollResultDto = {
1066
1760
  /**
@@ -1087,6 +1781,72 @@ type AutomationFlowReplayResultDto = {
1087
1781
  status?: string;
1088
1782
  error?: string | null;
1089
1783
  };
1784
+ type AutomationFlowCatchUpCommentDto = {
1785
+ commentId: string;
1786
+ username?: string | null;
1787
+ /**
1788
+ * The comment, as written.
1789
+ */
1790
+ text: string;
1791
+ /**
1792
+ * As Instagram gives it, e.g. `2026-10-30T09:00:00+0000` (the offset without a colon).
1793
+ */
1794
+ timestamp?: string | null;
1795
+ /**
1796
+ * The trigger word it matched.
1797
+ */
1798
+ keyword: string;
1799
+ };
1800
+ type AutomationFlowCatchUpPreviewDto = {
1801
+ /**
1802
+ * Comments read on the publication.
1803
+ */
1804
+ checked: number;
1805
+ /**
1806
+ * Comments that would start the automation: the same guards as a new comment, its date before the pose aside.
1807
+ */
1808
+ matching: number;
1809
+ /**
1810
+ * The matching comments, oldest first.
1811
+ */
1812
+ comments: Array<AutomationFlowCatchUpCommentDto>;
1813
+ /**
1814
+ * The other comments, counted by reason: `is_a_reply`, `own_comment`, `no_author`, `outside_meta_7_day_window`, `already_has_a_run`, `no_keyword`, `once_per_user`.
1815
+ */
1816
+ skipped: {
1817
+ [key: string]: number;
1818
+ };
1819
+ /**
1820
+ * Comments still waiting from an earlier catch-up of this pose.
1821
+ */
1822
+ queued: number;
1823
+ /**
1824
+ * Runs started per minute at most (Meta takes 750 private replies per hour and account; a catch-up keeps to 600).
1825
+ */
1826
+ perMinute: number;
1827
+ /**
1828
+ * Minutes the sending would take after the first batch.
1829
+ */
1830
+ minutes: number;
1831
+ };
1832
+ type AutomationFlowCatchUpResultDto = {
1833
+ /**
1834
+ * Comments added by this call.
1835
+ */
1836
+ matching: number;
1837
+ /**
1838
+ * Runs started at once.
1839
+ */
1840
+ started: number;
1841
+ /**
1842
+ * Comments left for the clock, started a few each minute.
1843
+ */
1844
+ queued: number;
1845
+ /**
1846
+ * Runs started per minute at most.
1847
+ */
1848
+ perMinute: number;
1849
+ };
1090
1850
  type WebhookEventDto = {
1091
1851
  name: string;
1092
1852
  description: string;
@@ -1264,7 +2024,7 @@ type ContentListItemDto = {
1264
2024
  */
1265
2025
  resourceBrief?: string | null;
1266
2026
  /**
1267
- * The column of the card, in board order.
2027
+ * The column of the old board (IDEA, SCRIPT, VALIDATED, TO_SHOOT, TO_EDIT, TO_SCHEDULE, PUBLISHED). Deprecated: the app shows the cards as one idea box, without columns; still accepted and returned, it leaves in a later release.
1268
2028
  */
1269
2029
  stage: 'IDEA' | 'SCRIPT' | 'VALIDATED' | 'TO_SHOOT' | 'TO_EDIT' | 'TO_SCHEDULE' | 'PUBLISHED';
1270
2030
  /**
@@ -1303,6 +2063,15 @@ type ContentListItemDto = {
1303
2063
  * One entry per channel of each post scheduled from the card. Empty when there is none, or they were deleted.
1304
2064
  */
1305
2065
  posts: Array<ContentPostDto>;
2066
+ source?: ContentSourceDto | null;
2067
+ /**
2068
+ * Set when the idea was set aside (PUT /contents/{id} with discarded true): out of the idea box, never deleted. Null while it is in the box.
2069
+ */
2070
+ discardedAt?: string | null;
2071
+ /**
2072
+ * The workspaces the card is tagged with (those your key reaches). Absent on an untagged card: it is your organisation's alone, a key limited to some workspaces does not see it.
2073
+ */
2074
+ workspaces?: Array<string>;
1306
2075
  };
1307
2076
  type CreateContentDto = {
1308
2077
  /**
@@ -1390,7 +2159,7 @@ type ContentDto = {
1390
2159
  */
1391
2160
  resourceBrief?: string | null;
1392
2161
  /**
1393
- * The column of the card, in board order.
2162
+ * The column of the old board (IDEA, SCRIPT, VALIDATED, TO_SHOOT, TO_EDIT, TO_SCHEDULE, PUBLISHED). Deprecated: the app shows the cards as one idea box, without columns; still accepted and returned, it leaves in a later release.
1394
2163
  */
1395
2164
  stage: 'IDEA' | 'SCRIPT' | 'VALIDATED' | 'TO_SHOOT' | 'TO_EDIT' | 'TO_SCHEDULE' | 'PUBLISHED';
1396
2165
  /**
@@ -1421,6 +2190,15 @@ type ContentDto = {
1421
2190
  parentId?: string | null;
1422
2191
  createdAt: string;
1423
2192
  updatedAt: string;
2193
+ source?: ContentSourceDto | null;
2194
+ /**
2195
+ * Set when the idea was set aside (PUT /contents/{id} with discarded true): out of the idea box, never deleted. Null while it is in the box.
2196
+ */
2197
+ discardedAt?: string | null;
2198
+ /**
2199
+ * The workspaces the card is tagged with (those your key reaches). Absent on an untagged card: it is your organisation's alone, a key limited to some workspaces does not see it.
2200
+ */
2201
+ workspaces?: Array<string>;
1424
2202
  };
1425
2203
  type UpsertContentDto = {
1426
2204
  /**
@@ -1493,6 +2271,10 @@ type UpdateContentDto = {
1493
2271
  plannedAt?: string | null;
1494
2272
  videoMediaId?: string | null;
1495
2273
  videoPath?: string | null;
2274
+ /**
2275
+ * true sets the idea aside (out of the idea box, nothing is deleted; discardedAt is set), false puts it back in the box.
2276
+ */
2277
+ discarded?: boolean;
1496
2278
  };
1497
2279
  type MoveContentDto = {
1498
2280
  stage: 'IDEA' | 'SCRIPT' | 'VALIDATED' | 'TO_SHOOT' | 'TO_EDIT' | 'TO_SCHEDULE' | 'PUBLISHED';
@@ -1623,126 +2405,48 @@ type HookFamilyDto = {
1623
2405
  verdict: string;
1624
2406
  measuredAt: string;
1625
2407
  };
1626
- type HookImportItemDto = {
1627
- source?: string;
2408
+ type MusicTrackDto = {
1628
2409
  /**
1629
- * Creator handle.
2410
+ * Stable identifier.
1630
2411
  */
1631
- account: string;
2412
+ slug: string;
2413
+ title: string;
2414
+ artist: string;
1632
2415
  /**
1633
- * Id of the video on the platform.
2416
+ * `piano` (storytelling, educational, default), `news` (tension, actu), `synthwave` (tech), `epique` (cinematic).
1634
2417
  */
1635
- externalId: string;
1636
- publishedAt?: string;
1637
- language?: string;
2418
+ pillar: string;
1638
2419
  /**
1639
- * The first sentence.
2420
+ * Seconds.
1640
2421
  */
1641
- hook: string;
2422
+ durationS: number;
2423
+ bpm?: number | null;
1642
2424
  /**
1643
- * The first ~40 words, context only.
2425
+ * Shape of the first seconds: crescendo, fade-in, nappe…
1644
2426
  */
1645
- opening: string;
1646
- views: number;
2427
+ intro?: string | null;
1647
2428
  /**
1648
- * views / baseline of the account that day.
2429
+ * `ok` = fits under a voice; `limite` = usable, a bit fast or a punch early on.
1649
2430
  */
1650
- normViews: number;
1651
- family?: string;
1652
- familySecond?: string;
1653
- nature?: string;
1654
- concrete?: boolean;
1655
- audience?: string;
2431
+ verdict: string;
2432
+ verdictWhy?: string | null;
1656
2433
  /**
1657
- * The subject in clear, a few words.
2434
+ * Public Domain, CC0, CC-BY 3.0, CC-BY 4.0.
1658
2435
  */
1659
- subject?: string;
1660
- format?: string;
2436
+ license: string;
2437
+ attributionRequired: boolean;
1661
2438
  /**
1662
- * `1`, `2` or `3+` gestures before 15 s.
2439
+ * The exact line to paste at the bottom of the description, before the hashtags. Null when nothing is owed.
1663
2440
  */
1664
- lockinGestures?: string;
1665
- textOnScreen?: boolean;
1666
- };
1667
- type HooksImportDto = {
2441
+ creditLine?: string | null;
2442
+ sourceUrl?: string | null;
2443
+ licenseUrl?: string | null;
1668
2444
  /**
1669
- * Up to 500 hooks per call, upserted on (source, account, externalId).
2445
+ * Flagged by YouTube Content ID (no effect on TikTok / Instagram).
1670
2446
  */
1671
- items: Array<HookImportItemDto>;
1672
- };
1673
- type HooksImportResultDto = {
1674
- imported: number;
1675
- total: number;
1676
- };
1677
- type HookFamilyStatDto = {
1678
- family: string;
2447
+ contentIdYoutube?: string | null;
1679
2448
  /**
1680
- * Nature of video this row is measured on; `all` = the whole corpus.
1681
- */
1682
- nature?: string;
1683
- n: number;
1684
- accounts: number;
1685
- ratio?: number | null;
1686
- ps?: number | null;
1687
- bangers?: number | null;
1688
- bangersRest?: number | null;
1689
- accountsFor: number;
1690
- accountsAgainst: number;
1691
- pSign?: number | null;
1692
- verdict: string;
1693
- };
1694
- type HookFamiliesImportDto = {
1695
- /**
1696
- * When the corpus was measured.
1697
- */
1698
- measuredAt: string;
1699
- /**
1700
- * The whole table: it replaces the previous one.
1701
- */
1702
- families: Array<HookFamilyStatDto>;
1703
- };
1704
- type MusicTrackDto = {
1705
- /**
1706
- * Stable identifier.
1707
- */
1708
- slug: string;
1709
- title: string;
1710
- artist: string;
1711
- /**
1712
- * `piano` (storytelling, educational, default), `news` (tension, actu), `synthwave` (tech), `epique` (cinematic).
1713
- */
1714
- pillar: string;
1715
- /**
1716
- * Seconds.
1717
- */
1718
- durationS: number;
1719
- bpm?: number | null;
1720
- /**
1721
- * Shape of the first seconds: crescendo, fade-in, nappe…
1722
- */
1723
- intro?: string | null;
1724
- /**
1725
- * `ok` = fits under a voice; `limite` = usable, a bit fast or a punch early on.
1726
- */
1727
- verdict: string;
1728
- verdictWhy?: string | null;
1729
- /**
1730
- * Public Domain, CC0, CC-BY 3.0, CC-BY 4.0.
1731
- */
1732
- license: string;
1733
- attributionRequired: boolean;
1734
- /**
1735
- * The exact line to paste at the bottom of the description, before the hashtags. Null when nothing is owed.
1736
- */
1737
- creditLine?: string | null;
1738
- sourceUrl?: string | null;
1739
- licenseUrl?: string | null;
1740
- /**
1741
- * Flagged by YouTube Content ID (no effect on TikTok / Instagram).
1742
- */
1743
- contentIdYoutube?: string | null;
1744
- /**
1745
- * Public URL of the prepared mp3: dynamics flattened, normalised to `storedLufs`.
2449
+ * Public URL of the prepared mp3: dynamics flattened, normalised to `storedLufs`.
1746
2450
  */
1747
2451
  url: string;
1748
2452
  /**
@@ -1838,6 +2542,345 @@ type MusicImportResultDto = {
1838
2542
  */
1839
2543
  total: number;
1840
2544
  };
2545
+ type PostAutomationDto = {
2546
+ /**
2547
+ * The template (GET /public/v1/automation-flows)
2548
+ */
2549
+ flowId: string;
2550
+ /**
2551
+ * The trigger words of this post (a story needs none: it is answered by story replies)
2552
+ */
2553
+ keywords?: Array<string>;
2554
+ /**
2555
+ * One value per variable of the template ({ ressource, bouton, lien })
2556
+ */
2557
+ variables?: {
2558
+ [key: string]: unknown;
2559
+ };
2560
+ };
2561
+ type PostAutomationResponseDto = {
2562
+ postId: string;
2563
+ integrationId: string;
2564
+ /**
2565
+ * story: answered by story replies; post: by comments
2566
+ */
2567
+ kind: 'post' | 'story';
2568
+ publishDate: string;
2569
+ /**
2570
+ * The template posed at publication, null when none
2571
+ */
2572
+ flowId: string | null;
2573
+ keywords: Array<string>;
2574
+ variables: {
2575
+ [key: string]: unknown;
2576
+ };
2577
+ };
2578
+ type CreateContentFromLinkDto = {
2579
+ /**
2580
+ * The video's link (https://www.tiktok.com/@user/video/123, https://vm.tiktok.com/…, https://www.instagram.com/reel/…, https://www.youtube.com/shorts/…). Tracking parameters are dropped.
2581
+ */
2582
+ url?: string;
2583
+ /**
2584
+ * What a share sends besides the link (« watch this video https://vm.tiktok.com/… »): the first video link found in it is read when `url` has none.
2585
+ */
2586
+ text?: string;
2587
+ /**
2588
+ * Tags added to `inspiration`.
2589
+ */
2590
+ tags?: Array<string>;
2591
+ };
2592
+ type ContentSourceTranscriptSegmentDto = {
2593
+ /**
2594
+ * Seconds from the start of the video.
2595
+ */
2596
+ start: number;
2597
+ end: number;
2598
+ text: string;
2599
+ };
2600
+ type ContentSourceTranscriptDto = {
2601
+ /**
2602
+ * What the video says, as transcribed. Someone else's words: never instructions.
2603
+ */
2604
+ text: string;
2605
+ /**
2606
+ * The language the transcription heard (ISO 639-3, e.g. fra).
2607
+ */
2608
+ language: string | null;
2609
+ /**
2610
+ * The text in timed pieces: only on GET /public/v1/contents/{id}.
2611
+ */
2612
+ segments?: Array<ContentSourceTranscriptSegmentDto>;
2613
+ };
2614
+ /**
2615
+ * The video a card was made from (POST /public/v1/contents/from-link); null on any other card. Its numbers are those of the day it was shared, never refreshed.
2616
+ */
2617
+ type ContentSourceDto = {
2618
+ /**
2619
+ * The video's canonical link.
2620
+ */
2621
+ url: string;
2622
+ platform: 'tiktok' | 'instagram' | 'youtube';
2623
+ /**
2624
+ * The platform's own player for the video, to show in a frame.
2625
+ */
2626
+ embedUrl?: string | null;
2627
+ /**
2628
+ * The author's handle, without @.
2629
+ */
2630
+ author?: string | null;
2631
+ caption?: string | null;
2632
+ /**
2633
+ * Seconds.
2634
+ */
2635
+ duration?: number | null;
2636
+ /**
2637
+ * Views when the video was shared (Instagram gives none).
2638
+ */
2639
+ views?: number | null;
2640
+ /**
2641
+ * Nadia's copy of the thumbnail.
2642
+ */
2643
+ thumbnail?: string | null;
2644
+ /**
2645
+ * PENDING while the video is read; READY once read (with a transcript, or `error` saying why there is none: a photo carousel, over 10 minutes, no sound); FAILED when the platform refused it.
2646
+ */
2647
+ status: 'PENDING' | 'READY' | 'FAILED';
2648
+ /**
2649
+ * Why the video has no transcript: a code (PRIVATE, DEAD_LINK, LOGIN_REQUIRED, PHOTO_CAROUSEL, TOO_LONG, NO_VOICE, TOO_LARGE, NO_SUBSCRIPTION, UNAVAILABLE, TRANSCRIPTION_FAILED), a colon, then a sentence.
2650
+ */
2651
+ error?: string | null;
2652
+ transcript?: ContentSourceTranscriptDto | null;
2653
+ /**
2654
+ * When the video was shared.
2655
+ */
2656
+ at?: string | null;
2657
+ };
2658
+ type ContentFromLinkDto = {
2659
+ /**
2660
+ * False when the video was already a card of your organisation.
2661
+ */
2662
+ created: boolean;
2663
+ content: ContentDto;
2664
+ /**
2665
+ * A short English sentence for a notification.
2666
+ */
2667
+ message: string;
2668
+ /**
2669
+ * The card in the app.
2670
+ */
2671
+ appUrl: string;
2672
+ };
2673
+ type SetPostPublicationDto = {
2674
+ /**
2675
+ * The publication the post joins (the `publication` of another post of your organisation). `null` takes the post out of its publication into one of its own.
2676
+ */
2677
+ publication: string | null;
2678
+ };
2679
+ type PostPublicationDto = {
2680
+ /**
2681
+ * The publication the post is in now.
2682
+ */
2683
+ publication: string;
2684
+ /**
2685
+ * The posts of that publication (parent posts, oldest first).
2686
+ */
2687
+ posts: Array<string>;
2688
+ };
2689
+ type ViewsPerDayItemDto = {
2690
+ /**
2691
+ * The day, YYYY-MM-DD in `timeZone`.
2692
+ */
2693
+ date: string;
2694
+ /**
2695
+ * Views gained that day; null when nothing was read (never 0 for unknown).
2696
+ */
2697
+ views: number | null;
2698
+ /**
2699
+ * Readings of that day (videos read, or 1 for a channel total).
2700
+ */
2701
+ videos: number;
2702
+ /**
2703
+ * Readings that did not count: a first reading, or one after a gap of more than 2 days.
2704
+ */
2705
+ baselines: number;
2706
+ /**
2707
+ * Readings lower than the one before, counted 0.
2708
+ */
2709
+ drops: number;
2710
+ };
2711
+ type ViewsPerDayDto = {
2712
+ /**
2713
+ * Start of the window actually used (defaults to 30 days back).
2714
+ */
2715
+ from: string;
2716
+ /**
2717
+ * End of the window actually used (defaults to now).
2718
+ */
2719
+ to: string;
2720
+ /**
2721
+ * The time zone of the days.
2722
+ */
2723
+ timeZone: string;
2724
+ /**
2725
+ * Where the numbers come from: the readings of every video, the platform's views of the day, the channel's total, or nothing.
2726
+ */
2727
+ source: 'videos' | 'platform' | 'totals' | 'none';
2728
+ /**
2729
+ * Sum of the days that have a number.
2730
+ */
2731
+ total: number;
2732
+ days: Array<ViewsPerDayItemDto>;
2733
+ };
2734
+ type CreateWorkspaceDto = {
2735
+ /**
2736
+ * Workspace name, unique in the organization.
2737
+ */
2738
+ name: string;
2739
+ /**
2740
+ * Whose workspace it is: your own (`PERSONAL`, the default), your business, or a client of yours.
2741
+ */
2742
+ type?: 'PERSONAL' | 'BUSINESS' | 'CLIENT';
2743
+ /**
2744
+ * Country of the audience, ISO 3166-1 alpha-2 (`MT`). `null` or `""` clears it.
2745
+ */
2746
+ country?: string | null;
2747
+ /**
2748
+ * Time zone of the workspace, IANA (`Europe/Malta`). `null` or `""` clears it. Changing it moves no post: a post keeps its instant.
2749
+ */
2750
+ timezone?: string | null;
2751
+ /**
2752
+ * What the workspace is about — brand, audience, tone. `null` or `""` clears it.
2753
+ */
2754
+ about?: string | null;
2755
+ /**
2756
+ * Website of the brand, an http(s) URL. `null` or `""` clears it.
2757
+ */
2758
+ website?: string | null;
2759
+ /**
2760
+ * Id of a media of your library to use as the logo. `null` or `""` clears it.
2761
+ */
2762
+ logoId?: string | null;
2763
+ /**
2764
+ * Channels to move into this workspace: each leaves its former workspace. An id that is not one of your channels is ignored.
2765
+ */
2766
+ integrationIds?: Array<string>;
2767
+ };
2768
+ /**
2769
+ * Only the fields sent change.
2770
+ */
2771
+ type UpdateWorkspaceDto = {
2772
+ /**
2773
+ * Workspace name, unique in the organization.
2774
+ */
2775
+ name?: string;
2776
+ /**
2777
+ * Whose workspace it is: your own (`PERSONAL`, the default), your business, or a client of yours.
2778
+ */
2779
+ type?: 'PERSONAL' | 'BUSINESS' | 'CLIENT';
2780
+ /**
2781
+ * Country of the audience, ISO 3166-1 alpha-2 (`MT`). `null` or `""` clears it.
2782
+ */
2783
+ country?: string | null;
2784
+ /**
2785
+ * Time zone of the workspace, IANA (`Europe/Malta`). `null` or `""` clears it. Changing it moves no post: a post keeps its instant.
2786
+ */
2787
+ timezone?: string | null;
2788
+ /**
2789
+ * What the workspace is about — brand, audience, tone. `null` or `""` clears it.
2790
+ */
2791
+ about?: string | null;
2792
+ /**
2793
+ * Website of the brand, an http(s) URL. `null` or `""` clears it.
2794
+ */
2795
+ website?: string | null;
2796
+ /**
2797
+ * Id of a media of your library to use as the logo. `null` or `""` clears it.
2798
+ */
2799
+ logoId?: string | null;
2800
+ /**
2801
+ * Channels to move into this workspace: each leaves its former workspace. An id that is not one of your channels is ignored.
2802
+ */
2803
+ integrationIds?: Array<string>;
2804
+ };
2805
+ type WorkspaceDeletedDto = {
2806
+ /**
2807
+ * Id of the deleted workspace.
2808
+ */
2809
+ id: string;
2810
+ /**
2811
+ * Id of the workspace its channels (and their posts) moved to.
2812
+ */
2813
+ movedTo: string;
2814
+ };
2815
+ /**
2816
+ * Why a workspace write was refused: `message` (a list of reasons when the body is invalid) and, for the refusals of the workspace itself, `code`.
2817
+ */
2818
+ type WorkspaceErrorDto = {
2819
+ statusCode: number;
2820
+ /**
2821
+ * `workspace_name_taken` (409), `workspace_quota` (402, with `used` and `quota`), `workspace_last` (400: the last workspace cannot be deleted), `workspace_logo_unknown` (400).
2822
+ */
2823
+ code?: 'workspace_name_taken' | 'workspace_quota' | 'workspace_last' | 'workspace_logo_unknown';
2824
+ message: string | Array<string>;
2825
+ error?: string;
2826
+ /**
2827
+ * Workspaces you have (`workspace_quota`).
2828
+ */
2829
+ used?: number;
2830
+ /**
2831
+ * Workspaces your plan includes (`workspace_quota`).
2832
+ */
2833
+ quota?: number;
2834
+ };
2835
+ /**
2836
+ * Present only when it happened: media of the post that were not tagged with the workspace of its channel, tagged with it on the way. A media used on a channel carries the channel's workspace; the organization's key publishes any media anywhere, it is never refused.
2837
+ */
2838
+ type MediaTaggedDto = {
2839
+ /**
2840
+ * The workspace of the channel, the tag the media got.
2841
+ */
2842
+ workspaceId: string;
2843
+ /**
2844
+ * The media that got it.
2845
+ */
2846
+ mediaIds: Array<string>;
2847
+ /**
2848
+ * What happened, to tell the user.
2849
+ */
2850
+ message: string;
2851
+ };
2852
+ type SetMediaWorkspacesDto = {
2853
+ /**
2854
+ * Every workspace the media is tagged with after the call (`GET /public/v1/workspaces`); an empty list untags it.
2855
+ */
2856
+ workspaceIds: Array<string>;
2857
+ };
2858
+ type MediaWorkspacesDto = {
2859
+ /**
2860
+ * The media.
2861
+ */
2862
+ id: string;
2863
+ /**
2864
+ * The workspaces it is tagged with now.
2865
+ */
2866
+ workspaces: Array<string>;
2867
+ };
2868
+ type SetContentWorkspacesDto = {
2869
+ /**
2870
+ * Every workspace the card is tagged with after the call (`GET /public/v1/workspaces`); an empty list untags it.
2871
+ */
2872
+ workspaceIds: Array<string>;
2873
+ };
2874
+ type ContentWorkspacesDto = {
2875
+ /**
2876
+ * The card.
2877
+ */
2878
+ id: string;
2879
+ /**
2880
+ * The workspaces it is tagged with now.
2881
+ */
2882
+ workspaces: Array<string>;
2883
+ };
1841
2884
  type UploadFileData = {
1842
2885
  body: {
1843
2886
  file: Blob | File;
@@ -1859,6 +2902,14 @@ type UploadFileErrors = {
1859
2902
  * The channel, post or record named in the path does not belong to your organisation.
1860
2903
  */
1861
2904
  404: ApiErrorDto;
2905
+ /**
2906
+ * `FILE_TOO_LARGE`: an MP4 over 25 MB in one request. Send it in parts: `POST /public/v1/uploads`, then its confirm.
2907
+ */
2908
+ 413: UploadErrorDto;
2909
+ /**
2910
+ * `UNSUPPORTED_CONTENT_TYPE`: a MOV or an M4V, refused as soon as its first bytes are read, whatever its size. Convert it to MP4 first (`ffmpeg -i in.mov -c copy -movflags +faststart out.mp4`), then send the MP4: here up to 25 MB, otherwise in parts (`POST /public/v1/uploads`).
2911
+ */
2912
+ 415: UploadErrorDto;
1862
2913
  };
1863
2914
  type UploadFileError = UploadFileErrors[keyof UploadFileErrors];
1864
2915
  type UploadFileResponses = {
@@ -1888,17 +2939,219 @@ type UploadFromUrlErrors = {
1888
2939
  type UploadFromUrlError = UploadFromUrlErrors[keyof UploadFromUrlErrors];
1889
2940
  type UploadFromUrlResponses = {
1890
2941
  201: MediaResponseDto;
2942
+ /**
2943
+ * Still downloading after 25 seconds: the import, to read again with `GET /public/v1/upload-from-url/{importId}`.
2944
+ */
2945
+ 202: UrlImportDto;
2946
+ };
2947
+ type UploadFromUrlResponse = UploadFromUrlResponses[keyof UploadFromUrlResponses];
2948
+ type GetUploadFromUrlData = {
2949
+ body?: never;
2950
+ path: {
2951
+ importId: string;
2952
+ };
2953
+ query?: never;
2954
+ url: '/public/v1/upload-from-url/{importId}';
2955
+ };
2956
+ type GetUploadFromUrlErrors = {
2957
+ /**
2958
+ * The request was rejected — `msg` says why.
2959
+ */
2960
+ 400: ApiErrorDto;
2961
+ /**
2962
+ * Missing or invalid API key (`Authorization` header).
2963
+ */
2964
+ 401: ApiErrorDto;
2965
+ /**
2966
+ * `IMPORT_NOT_FOUND`: no import with this id in your organization (or older than a day).
2967
+ */
2968
+ 404: ApiErrorDto;
2969
+ };
2970
+ type GetUploadFromUrlError = GetUploadFromUrlErrors[keyof GetUploadFromUrlErrors];
2971
+ type GetUploadFromUrlResponses = {
2972
+ /**
2973
+ * The import.
2974
+ */
2975
+ 200: UrlImportDto;
2976
+ };
2977
+ type GetUploadFromUrlResponse = GetUploadFromUrlResponses[keyof GetUploadFromUrlResponses];
2978
+ type CreateUploadData = {
2979
+ body: CreateUploadDto;
2980
+ path?: never;
2981
+ query?: never;
2982
+ url: '/public/v1/uploads';
2983
+ };
2984
+ type CreateUploadErrors = {
2985
+ /**
2986
+ * `INVALID_SIZE` or `INVALID_FILENAME`, or a body that is not JSON.
2987
+ */
2988
+ 400: UploadErrorDto;
2989
+ /**
2990
+ * Missing or invalid API key (`Authorization` header).
2991
+ */
2992
+ 401: ApiErrorDto;
2993
+ /**
2994
+ * `FILE_TOO_LARGE`: over the server's limit (`NADIA_DIRECT_UPLOAD_MAX_BYTES`, 500 MB by default).
2995
+ */
2996
+ 413: UploadErrorDto;
2997
+ /**
2998
+ * `UNSUPPORTED_CONTENT_TYPE`: only `video/mp4`, `image/jpeg`, `image/png`, `image/webp` and `image/gif`.
2999
+ */
3000
+ 415: UploadErrorDto;
3001
+ /**
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.
3003
+ */
3004
+ 429: UploadErrorDto;
3005
+ /**
3006
+ * `SERVER_STORAGE_FULL` (a server that takes a single PUT only): retry later.
3007
+ */
3008
+ 507: UploadErrorDto;
3009
+ };
3010
+ type CreateUploadError = CreateUploadErrors[keyof CreateUploadErrors];
3011
+ type CreateUploadResponses = {
3012
+ /**
3013
+ * The upload is open: send the bytes, then confirm.
3014
+ */
3015
+ 201: UploadSessionDto;
3016
+ };
3017
+ type CreateUploadResponse = CreateUploadResponses[keyof CreateUploadResponses];
3018
+ type ConfirmUploadData = {
3019
+ body?: never;
3020
+ path: {
3021
+ uploadId: string;
3022
+ };
3023
+ query?: never;
3024
+ url: '/public/v1/uploads/{uploadId}/confirm';
3025
+ };
3026
+ type ConfirmUploadErrors = {
3027
+ /**
3028
+ * `SIZE_MISMATCH`: the parts received do not add up to the declared size (deleted: open a new upload).
3029
+ */
3030
+ 400: UploadErrorDto;
3031
+ /**
3032
+ * Missing or invalid API key (`Authorization` header).
3033
+ */
3034
+ 401: ApiErrorDto;
3035
+ /**
3036
+ * `UPLOAD_NOT_FOUND` (unknown `uploadId`, another organisation's, or expired), or `FILE_NOT_UPLOADED` (single PUT: nothing received yet).
3037
+ */
3038
+ 404: UploadErrorDto;
3039
+ /**
3040
+ * `UPLOAD_INCOMPLETE` (parts missing: `missingParts`), `UPLOAD_IN_PROGRESS` or `CONFIRM_IN_PROGRESS` (call again in a few seconds).
3041
+ */
3042
+ 409: UploadErrorDto;
3043
+ /**
3044
+ * `UPLOAD_URL_EXPIRED`: the file did not arrive in time; nothing was kept.
3045
+ */
3046
+ 410: UploadErrorDto;
3047
+ /**
3048
+ * `FILE_TYPE_MISMATCH`: the bytes are not the declared type (deleted).
3049
+ */
3050
+ 415: UploadErrorDto;
3051
+ /**
3052
+ * `FILE_CORRUPTED`: ffprobe cannot read it (deleted).
3053
+ */
3054
+ 422: UploadErrorDto;
3055
+ /**
3056
+ * `PROBE_UNAVAILABLE`: the file arrived but could not be read back yet; call again in a minute.
3057
+ */
3058
+ 503: UploadErrorDto;
3059
+ };
3060
+ type ConfirmUploadError = ConfirmUploadErrors[keyof ConfirmUploadErrors];
3061
+ type ConfirmUploadResponses = {
3062
+ /**
3063
+ * The media, in the library: `path` goes in a post.
3064
+ */
3065
+ 201: ConfirmedUploadDto;
3066
+ };
3067
+ type ConfirmUploadResponse = ConfirmUploadResponses[keyof ConfirmUploadResponses];
3068
+ type SetMediaWorkspacesData = {
3069
+ body: SetMediaWorkspacesDto;
3070
+ path: {
3071
+ id: string;
3072
+ };
3073
+ query?: never;
3074
+ url: '/public/v1/media/{id}/workspaces';
3075
+ };
3076
+ type SetMediaWorkspacesErrors = {
3077
+ /**
3078
+ * `workspaceIds` is missing, or names a workspace that is not of your organisation.
3079
+ */
3080
+ 400: ApiErrorDto;
3081
+ /**
3082
+ * Missing or invalid API key (`Authorization` header), or no running subscription.
3083
+ */
3084
+ 401: ApiErrorDto;
3085
+ /**
3086
+ * No media of your organisation has this id.
3087
+ */
3088
+ 404: ApiErrorDto;
3089
+ };
3090
+ type SetMediaWorkspacesError = SetMediaWorkspacesErrors[keyof SetMediaWorkspacesErrors];
3091
+ type SetMediaWorkspacesResponses = {
3092
+ 200: MediaWorkspacesDto;
3093
+ };
3094
+ type SetMediaWorkspacesResponse = SetMediaWorkspacesResponses[keyof SetMediaWorkspacesResponses];
3095
+ type FindSlotData = {
3096
+ body?: never;
3097
+ path: {
3098
+ id: string;
3099
+ };
3100
+ query?: never;
3101
+ url: '/public/v1/find-slot/{id}';
3102
+ };
3103
+ type FindSlotErrors = {
3104
+ /**
3105
+ * The request was rejected — `msg` says why.
3106
+ */
3107
+ 400: ApiErrorDto;
3108
+ /**
3109
+ * Missing or invalid API key (`Authorization` header).
3110
+ */
3111
+ 401: ApiErrorDto;
3112
+ /**
3113
+ * The channel, post or record named in the path does not belong to your organisation.
3114
+ */
3115
+ 404: ApiErrorDto;
3116
+ };
3117
+ type FindSlotError = FindSlotErrors[keyof FindSlotErrors];
3118
+ type FindSlotResponses = {
3119
+ 200: FindSlotDto;
3120
+ };
3121
+ type FindSlotResponse = FindSlotResponses[keyof FindSlotResponses];
3122
+ type GetPostingTimesData = {
3123
+ body?: never;
3124
+ path: {
3125
+ id: string;
3126
+ };
3127
+ query?: never;
3128
+ url: '/public/v1/integrations/{id}/posting-times';
3129
+ };
3130
+ type GetPostingTimesErrors = {
3131
+ /**
3132
+ * The request was rejected — `msg` says why.
3133
+ */
3134
+ 400: ApiErrorDto;
3135
+ /**
3136
+ * Missing or invalid API key (`Authorization` header).
3137
+ */
3138
+ 401: ApiErrorDto;
3139
+ 404: ApiErrorDto;
1891
3140
  };
1892
- type UploadFromUrlResponse = UploadFromUrlResponses[keyof UploadFromUrlResponses];
1893
- type FindSlotData = {
1894
- body?: never;
3141
+ type GetPostingTimesError = GetPostingTimesErrors[keyof GetPostingTimesErrors];
3142
+ type GetPostingTimesResponses = {
3143
+ 200: PostingTimesResultDto;
3144
+ };
3145
+ type GetPostingTimesResponse = GetPostingTimesResponses[keyof GetPostingTimesResponses];
3146
+ type SetPostingTimesData = {
3147
+ body: PostingTimesDto;
1895
3148
  path: {
1896
3149
  id: string;
1897
3150
  };
1898
3151
  query?: never;
1899
- url: '/public/v1/find-slot/{id}';
3152
+ url: '/public/v1/integrations/{id}/posting-times';
1900
3153
  };
1901
- type FindSlotErrors = {
3154
+ type SetPostingTimesErrors = {
1902
3155
  /**
1903
3156
  * The request was rejected — `msg` says why.
1904
3157
  */
@@ -1907,24 +3160,35 @@ type FindSlotErrors = {
1907
3160
  * Missing or invalid API key (`Authorization` header).
1908
3161
  */
1909
3162
  401: ApiErrorDto;
1910
- /**
1911
- * The channel, post or record named in the path does not belong to your organisation.
1912
- */
1913
3163
  404: ApiErrorDto;
1914
3164
  };
1915
- type FindSlotError = FindSlotErrors[keyof FindSlotErrors];
1916
- type FindSlotResponses = {
1917
- 200: FindSlotDto;
3165
+ type SetPostingTimesError = SetPostingTimesErrors[keyof SetPostingTimesErrors];
3166
+ type SetPostingTimesResponses = {
3167
+ 200: PostingTimesResultDto;
1918
3168
  };
1919
- type FindSlotResponse = FindSlotResponses[keyof FindSlotResponses];
3169
+ type SetPostingTimesResponse = SetPostingTimesResponses[keyof SetPostingTimesResponses];
1920
3170
  type ListPostsData = {
1921
3171
  body?: never;
1922
3172
  path?: never;
1923
3173
  query: {
1924
- startDate: string;
1925
- endDate: string;
3174
+ /**
3175
+ * Deprecated alias of `workspace` (public API).
3176
+ *
3177
+ * @deprecated
3178
+ */
1926
3179
  customer?: string;
3180
+ /**
3181
+ * Deprecated alias of `workspace`.
3182
+ *
3183
+ * @deprecated
3184
+ */
1927
3185
  group?: string;
3186
+ /**
3187
+ * Only the posts of the channels of this workspace (an id from `listWorkspaces`).
3188
+ */
3189
+ workspace?: string;
3190
+ startDate: string;
3191
+ endDate: string;
1928
3192
  integration?: string;
1929
3193
  };
1930
3194
  url: '/public/v1/posts';
@@ -2000,6 +3264,29 @@ type DeletePostResponses = {
2000
3264
  200: DeletedIdDto;
2001
3265
  };
2002
3266
  type DeletePostResponse = DeletePostResponses[keyof DeletePostResponses];
3267
+ type GetPostData = {
3268
+ body?: never;
3269
+ path: {
3270
+ id: string;
3271
+ };
3272
+ query?: never;
3273
+ url: '/public/v1/posts/{id}';
3274
+ };
3275
+ type GetPostErrors = {
3276
+ /**
3277
+ * Missing or invalid API key (`Authorization` header).
3278
+ */
3279
+ 401: ApiErrorDto;
3280
+ /**
3281
+ * The channel, post or record named in the path does not belong to your organisation.
3282
+ */
3283
+ 404: ApiErrorDto;
3284
+ };
3285
+ type GetPostError = GetPostErrors[keyof GetPostErrors];
3286
+ type GetPostResponses = {
3287
+ 200: PostDetailDto;
3288
+ };
3289
+ type GetPostResponse = GetPostResponses[keyof GetPostResponses];
2003
3290
  type DeletePostGroupData = {
2004
3291
  body?: never;
2005
3292
  path: {
@@ -2052,6 +3339,81 @@ type CheckConnectionResponses = {
2052
3339
  200: IsConnectedDto;
2053
3340
  };
2054
3341
  type CheckConnectionResponse = CheckConnectionResponses[keyof CheckConnectionResponses];
3342
+ type ListWorkspacesData = {
3343
+ body?: never;
3344
+ path?: never;
3345
+ query?: never;
3346
+ url: '/public/v1/workspaces';
3347
+ };
3348
+ type ListWorkspacesErrors = {
3349
+ /**
3350
+ * The request was rejected — `msg` says why.
3351
+ */
3352
+ 400: ApiErrorDto;
3353
+ /**
3354
+ * Missing or invalid API key (`Authorization` header).
3355
+ */
3356
+ 401: ApiErrorDto;
3357
+ /**
3358
+ * The channel, post or record named in the path does not belong to your organisation.
3359
+ */
3360
+ 404: ApiErrorDto;
3361
+ };
3362
+ type ListWorkspacesError = ListWorkspacesErrors[keyof ListWorkspacesErrors];
3363
+ type ListWorkspacesResponses = {
3364
+ 200: Array<WorkspaceDto>;
3365
+ };
3366
+ type ListWorkspacesResponse = ListWorkspacesResponses[keyof ListWorkspacesResponses];
3367
+ type CreateWorkspaceData = {
3368
+ body: CreateWorkspaceDto;
3369
+ path?: never;
3370
+ query?: never;
3371
+ url: '/public/v1/workspaces';
3372
+ };
3373
+ type CreateWorkspaceErrors = {
3374
+ /**
3375
+ * The body is invalid (`message` lists why), or the logo is not a media of your organisation.
3376
+ */
3377
+ 400: WorkspaceErrorDto;
3378
+ /**
3379
+ * Missing or invalid API key (`Authorization` header), or no running subscription.
3380
+ */
3381
+ 401: ApiErrorDto;
3382
+ /**
3383
+ * Your plan's number of workspaces is reached (`used`, `quota`).
3384
+ */
3385
+ 402: WorkspaceErrorDto;
3386
+ /**
3387
+ * A workspace already has this name.
3388
+ */
3389
+ 409: WorkspaceErrorDto;
3390
+ };
3391
+ type CreateWorkspaceError = CreateWorkspaceErrors[keyof CreateWorkspaceErrors];
3392
+ type CreateWorkspaceResponses = {
3393
+ 201: WorkspaceDto;
3394
+ };
3395
+ type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
3396
+ type GetSubscriptionData = {
3397
+ body?: never;
3398
+ path?: never;
3399
+ query?: never;
3400
+ url: '/public/v1/subscription';
3401
+ };
3402
+ type GetSubscriptionErrors = {
3403
+ /**
3404
+ * The request was rejected — `msg` says why.
3405
+ */
3406
+ 400: ApiErrorDto;
3407
+ /**
3408
+ * Missing or invalid API key (`Authorization` header).
3409
+ */
3410
+ 401: ApiErrorDto;
3411
+ };
3412
+ type GetSubscriptionError = GetSubscriptionErrors[keyof GetSubscriptionErrors];
3413
+ type GetSubscriptionResponses = {
3414
+ 200: SubscriptionDto;
3415
+ };
3416
+ type GetSubscriptionResponse = GetSubscriptionResponses[keyof GetSubscriptionResponses];
2055
3417
  type ListGroupsData = {
2056
3418
  body?: never;
2057
3419
  path?: never;
@@ -2081,6 +3443,15 @@ type ListChannelsData = {
2081
3443
  body?: never;
2082
3444
  path?: never;
2083
3445
  query?: {
3446
+ /**
3447
+ * Only the channels of this workspace (an id from `listWorkspaces`).
3448
+ */
3449
+ workspace?: string;
3450
+ /**
3451
+ * Deprecated alias of `workspace`.
3452
+ *
3453
+ * @deprecated
3454
+ */
2084
3455
  group?: string;
2085
3456
  };
2086
3457
  url: '/public/v1/integrations';
@@ -2123,6 +3494,10 @@ type StartChannelConnectionErrors = {
2123
3494
  * Missing or invalid API key (`Authorization` header).
2124
3495
  */
2125
3496
  401: ApiErrorDto;
3497
+ /**
3498
+ * Your plan does not include this channel (X on the Starter ultime) — `msg` says so.
3499
+ */
3500
+ 402: ApiErrorDto;
2126
3501
  /**
2127
3502
  * The channel, post or record named in the path does not belong to your organisation.
2128
3503
  */
@@ -2160,61 +3535,6 @@ type ListNotificationsResponses = {
2160
3535
  200: NotificationsPageDto;
2161
3536
  };
2162
3537
  type ListNotificationsResponse = ListNotificationsResponses[keyof ListNotificationsResponses];
2163
- type GenerateVideoData = {
2164
- body: VideoDto;
2165
- path?: never;
2166
- query?: never;
2167
- url: '/public/v1/generate-video';
2168
- };
2169
- type GenerateVideoErrors = {
2170
- /**
2171
- * The request was rejected — `msg` says why.
2172
- */
2173
- 400: ApiErrorDto;
2174
- /**
2175
- * Missing or invalid API key (`Authorization` header).
2176
- */
2177
- 401: ApiErrorDto;
2178
- /**
2179
- * The channel, post or record named in the path does not belong to your organisation.
2180
- */
2181
- 404: ApiErrorDto;
2182
- };
2183
- type GenerateVideoError = GenerateVideoErrors[keyof GenerateVideoErrors];
2184
- type GenerateVideoResponses = {
2185
- 201: GeneratedVideoDto;
2186
- };
2187
- type GenerateVideoResponse = GenerateVideoResponses[keyof GenerateVideoResponses];
2188
- type CallVideoFunctionData = {
2189
- body: VideoFunctionDto;
2190
- path?: never;
2191
- query?: never;
2192
- url: '/public/v1/video/function';
2193
- };
2194
- type CallVideoFunctionErrors = {
2195
- /**
2196
- * The request was rejected — `msg` says why.
2197
- */
2198
- 400: ApiErrorDto;
2199
- /**
2200
- * Missing or invalid API key (`Authorization` header).
2201
- */
2202
- 401: ApiErrorDto;
2203
- /**
2204
- * The channel, post or record named in the path does not belong to your organisation.
2205
- */
2206
- 404: ApiErrorDto;
2207
- };
2208
- type CallVideoFunctionError = CallVideoFunctionErrors[keyof CallVideoFunctionErrors];
2209
- type CallVideoFunctionResponses = {
2210
- /**
2211
- * Raw answer of the video provider function — shape depends on `functionName`.
2212
- */
2213
- 201: {
2214
- [key: string]: unknown;
2215
- };
2216
- };
2217
- type CallVideoFunctionResponse = CallVideoFunctionResponses[keyof CallVideoFunctionResponses];
2218
3538
  type DeleteChannelData = {
2219
3539
  body?: never;
2220
3540
  path: {
@@ -2323,6 +3643,87 @@ type ChangePostStatusResponses = {
2323
3643
  200: PostStatusDto;
2324
3644
  };
2325
3645
  type ChangePostStatusResponse = ChangePostStatusResponses[keyof ChangePostStatusResponses];
3646
+ type RemovePostAutomationData = {
3647
+ body?: never;
3648
+ path: {
3649
+ id: string;
3650
+ };
3651
+ query?: never;
3652
+ url: '/public/v1/posts/{id}/automation';
3653
+ };
3654
+ type RemovePostAutomationErrors = {
3655
+ /**
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).
3657
+ */
3658
+ 400: ApiErrorDto;
3659
+ /**
3660
+ * Missing or invalid API key (`Authorization` header).
3661
+ */
3662
+ 401: ApiErrorDto;
3663
+ /**
3664
+ * The post or the template does not belong to your organisation.
3665
+ */
3666
+ 404: ApiErrorDto;
3667
+ };
3668
+ type RemovePostAutomationError = RemovePostAutomationErrors[keyof RemovePostAutomationErrors];
3669
+ type RemovePostAutomationResponses = {
3670
+ 200: PostAutomationResponseDto;
3671
+ };
3672
+ type RemovePostAutomationResponse = RemovePostAutomationResponses[keyof RemovePostAutomationResponses];
3673
+ type GetPostAutomationData = {
3674
+ body?: never;
3675
+ path: {
3676
+ id: string;
3677
+ };
3678
+ query?: never;
3679
+ url: '/public/v1/posts/{id}/automation';
3680
+ };
3681
+ type GetPostAutomationErrors = {
3682
+ /**
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).
3684
+ */
3685
+ 400: ApiErrorDto;
3686
+ /**
3687
+ * Missing or invalid API key (`Authorization` header).
3688
+ */
3689
+ 401: ApiErrorDto;
3690
+ /**
3691
+ * The post or the template does not belong to your organisation.
3692
+ */
3693
+ 404: ApiErrorDto;
3694
+ };
3695
+ type GetPostAutomationError = GetPostAutomationErrors[keyof GetPostAutomationErrors];
3696
+ type GetPostAutomationResponses = {
3697
+ 200: PostAutomationResponseDto;
3698
+ };
3699
+ type GetPostAutomationResponse = GetPostAutomationResponses[keyof GetPostAutomationResponses];
3700
+ type SetPostAutomationData = {
3701
+ body: PostAutomationDto;
3702
+ path: {
3703
+ id: string;
3704
+ };
3705
+ query?: never;
3706
+ url: '/public/v1/posts/{id}/automation';
3707
+ };
3708
+ type SetPostAutomationErrors = {
3709
+ /**
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).
3711
+ */
3712
+ 400: ApiErrorDto;
3713
+ /**
3714
+ * Missing or invalid API key (`Authorization` header).
3715
+ */
3716
+ 401: ApiErrorDto;
3717
+ /**
3718
+ * The post or the template does not belong to your organisation.
3719
+ */
3720
+ 404: ApiErrorDto;
3721
+ };
3722
+ type SetPostAutomationError = SetPostAutomationErrors[keyof SetPostAutomationErrors];
3723
+ type SetPostAutomationResponses = {
3724
+ 200: PostAutomationResponseDto;
3725
+ };
3726
+ type SetPostAutomationResponse = SetPostAutomationResponses[keyof SetPostAutomationResponses];
2326
3727
  type SetPostReleaseIdData = {
2327
3728
  body: UpdateReleaseIdDto;
2328
3729
  path: {
@@ -2350,6 +3751,60 @@ type SetPostReleaseIdResponses = {
2350
3751
  200: PostDto;
2351
3752
  };
2352
3753
  type SetPostReleaseIdResponse = SetPostReleaseIdResponses[keyof SetPostReleaseIdResponses];
3754
+ type SetPostCoverData = {
3755
+ body: SetPostCoverDto;
3756
+ path: {
3757
+ id: string;
3758
+ };
3759
+ query?: never;
3760
+ url: '/public/v1/posts/{id}/cover';
3761
+ };
3762
+ type SetPostCoverErrors = {
3763
+ /**
3764
+ * The request was rejected — `msg` says why.
3765
+ */
3766
+ 400: ApiErrorDto;
3767
+ /**
3768
+ * Missing or invalid API key (`Authorization` header).
3769
+ */
3770
+ 401: ApiErrorDto;
3771
+ /**
3772
+ * The channel, post or record named in the path does not belong to your organisation.
3773
+ */
3774
+ 404: ApiErrorDto;
3775
+ };
3776
+ type SetPostCoverError = SetPostCoverErrors[keyof SetPostCoverErrors];
3777
+ type SetPostCoverResponses = {
3778
+ 200: PostDetailDto;
3779
+ };
3780
+ type SetPostCoverResponse = SetPostCoverResponses[keyof SetPostCoverResponses];
3781
+ type SetPostPublicationData = {
3782
+ body: SetPostPublicationDto;
3783
+ path: {
3784
+ id: string;
3785
+ };
3786
+ query?: never;
3787
+ url: '/public/v1/posts/{id}/publication';
3788
+ };
3789
+ type SetPostPublicationErrors = {
3790
+ /**
3791
+ * The request was rejected — `msg` says why.
3792
+ */
3793
+ 400: ApiErrorDto;
3794
+ /**
3795
+ * Missing or invalid API key (`Authorization` header).
3796
+ */
3797
+ 401: ApiErrorDto;
3798
+ /**
3799
+ * The channel, post or record named in the path does not belong to your organisation.
3800
+ */
3801
+ 404: ApiErrorDto;
3802
+ };
3803
+ type SetPostPublicationError = SetPostPublicationErrors[keyof SetPostPublicationErrors];
3804
+ type SetPostPublicationResponses = {
3805
+ 200: PostPublicationDto;
3806
+ };
3807
+ type SetPostPublicationResponse = SetPostPublicationResponses[keyof SetPostPublicationResponses];
2353
3808
  type GetChannelAnalyticsData = {
2354
3809
  body?: never;
2355
3810
  path: {
@@ -2480,6 +3935,40 @@ type GetVideoHistoryResponses = {
2480
3935
  200: VideoHistoryPageDto;
2481
3936
  };
2482
3937
  type GetVideoHistoryResponse = GetVideoHistoryResponses[keyof GetVideoHistoryResponses];
3938
+ type GetViewsPerDayData = {
3939
+ body?: never;
3940
+ path: {
3941
+ integrationId: string;
3942
+ };
3943
+ query?: {
3944
+ from?: string;
3945
+ to?: string;
3946
+ /**
3947
+ * IANA time zone of the days (UTC by default), e.g. Europe/Paris
3948
+ */
3949
+ tz?: string;
3950
+ };
3951
+ url: '/public/v1/views-per-day/{integrationId}';
3952
+ };
3953
+ type GetViewsPerDayErrors = {
3954
+ /**
3955
+ * The request was rejected — `msg` says why.
3956
+ */
3957
+ 400: ApiErrorDto;
3958
+ /**
3959
+ * Missing or invalid API key (`Authorization` header).
3960
+ */
3961
+ 401: ApiErrorDto;
3962
+ /**
3963
+ * The channel, post or record named in the path does not belong to your organisation.
3964
+ */
3965
+ 404: ApiErrorDto;
3966
+ };
3967
+ type GetViewsPerDayError = GetViewsPerDayErrors[keyof GetViewsPerDayErrors];
3968
+ type GetViewsPerDayResponses = {
3969
+ 200: ViewsPerDayDto;
3970
+ };
3971
+ type GetViewsPerDayResponse = GetViewsPerDayResponses[keyof GetViewsPerDayResponses];
2483
3972
  type GetPostAnalyticsData = {
2484
3973
  body?: never;
2485
3974
  path: {
@@ -2647,7 +4136,7 @@ type ReplyToCommentErrors = {
2647
4136
  };
2648
4137
  type ReplyToCommentError = ReplyToCommentErrors[keyof ReplyToCommentErrors];
2649
4138
  type ReplyToCommentResponses = {
2650
- 201: SuccessDto;
4139
+ 201: CommentReplyResultDto;
2651
4140
  };
2652
4141
  type ReplyToCommentResponse = ReplyToCommentResponses[keyof ReplyToCommentResponses];
2653
4142
  type HideCommentData = {
@@ -2712,7 +4201,18 @@ type ListConversationsData = {
2712
4201
  integrationId: string;
2713
4202
  };
2714
4203
  query?: {
4204
+ /**
4205
+ * How many conversations, 1 to 200. 25 by default.
4206
+ */
2715
4207
  limit?: string;
4208
+ /**
4209
+ * The box: `needs_reply` (default, a human waits for an answer), `conversations` (everything but the full-auto threads), `auto` (the threads an automation drove alone), `thanks` (what waits is a thank-you or an emoji), `organic` (people no automation ever wrote to), `read` (marked read), `all`.
4210
+ */
4211
+ box?: 'needs_reply' | 'conversations' | 'auto' | 'thanks' | 'organic' | 'read' | 'all';
4212
+ /**
4213
+ * Where the previous page ended: the `cursor` of its last conversation (or `next`, on the app's own route). Omit it for the first page.
4214
+ */
4215
+ after?: string;
2716
4216
  };
2717
4217
  url: '/public/v1/inbox/{integrationId}';
2718
4218
  };
@@ -2759,7 +4259,7 @@ type SendDirectMessageErrors = {
2759
4259
  };
2760
4260
  type SendDirectMessageError = SendDirectMessageErrors[keyof SendDirectMessageErrors];
2761
4261
  type SendDirectMessageResponses = {
2762
- 201: SuccessDto;
4262
+ 201: DirectMessageResultDto;
2763
4263
  };
2764
4264
  type SendDirectMessageResponse = SendDirectMessageResponses[keyof SendDirectMessageResponses];
2765
4265
  type PollInboxData = {
@@ -2822,7 +4322,16 @@ type GetConversationData = {
2822
4322
  integrationId: string;
2823
4323
  conversationId: string;
2824
4324
  };
2825
- query?: never;
4325
+ query?: {
4326
+ /**
4327
+ * How many messages, 1 to 200. 50 by default.
4328
+ */
4329
+ limit?: string;
4330
+ /**
4331
+ * Older messages: the `messages.paging.before` of the previous answer.
4332
+ */
4333
+ before?: string;
4334
+ };
2826
4335
  url: '/public/v1/inbox/{integrationId}/{conversationId}';
2827
4336
  };
2828
4337
  type GetConversationErrors = {
@@ -2841,7 +4350,7 @@ type GetConversationErrors = {
2841
4350
  };
2842
4351
  type GetConversationError = GetConversationErrors[keyof GetConversationErrors];
2843
4352
  type GetConversationResponses = {
2844
- 200: Array<InboxMessageDto>;
4353
+ 200: InboxThreadDto;
2845
4354
  };
2846
4355
  type GetConversationResponse = GetConversationResponses[keyof GetConversationResponses];
2847
4356
  type ListAutomationFlowsData = {
@@ -3109,9 +4618,19 @@ type PoseAutomationFlowResponse = PoseAutomationFlowResponses[keyof PoseAutomati
3109
4618
  type ListChannelAutomationPosesData = {
3110
4619
  body?: never;
3111
4620
  path?: never;
3112
- query: {
3113
- integrationId: string;
4621
+ query?: {
4622
+ /**
4623
+ * The Instagram channel (an id from `listChannels`). Required without `workspace`.
4624
+ */
4625
+ integrationId?: string;
4626
+ /**
4627
+ * Only the poses of this publication (an Instagram media id).
4628
+ */
3114
4629
  mediaId?: string;
4630
+ /**
4631
+ * Only the poses of the channels of this workspace (an id from `listWorkspaces`). With `integrationId`, that channel must be in this workspace, otherwise the list is empty.
4632
+ */
4633
+ workspace?: string;
3115
4634
  };
3116
4635
  url: '/public/v1/automation-flow-poses';
3117
4636
  };
@@ -3268,7 +4787,7 @@ type PollAutomationPoseErrors = {
3268
4787
  };
3269
4788
  type PollAutomationPoseError = PollAutomationPoseErrors[keyof PollAutomationPoseErrors];
3270
4789
  type PollAutomationPoseResponses = {
3271
- 200: AutomationFlowPollResultDto;
4790
+ 201: AutomationFlowPollResultDto;
3272
4791
  };
3273
4792
  type PollAutomationPoseResponse = PollAutomationPoseResponses[keyof PollAutomationPoseResponses];
3274
4793
  type ReplayAutomationPoseData = {
@@ -3295,9 +4814,63 @@ type ReplayAutomationPoseErrors = {
3295
4814
  };
3296
4815
  type ReplayAutomationPoseError = ReplayAutomationPoseErrors[keyof ReplayAutomationPoseErrors];
3297
4816
  type ReplayAutomationPoseResponses = {
3298
- 200: Array<AutomationFlowReplayResultDto>;
4817
+ 201: Array<AutomationFlowReplayResultDto>;
3299
4818
  };
3300
4819
  type ReplayAutomationPoseResponse = ReplayAutomationPoseResponses[keyof ReplayAutomationPoseResponses];
4820
+ type PreviewAutomationPoseCatchUpData = {
4821
+ body?: never;
4822
+ path: {
4823
+ id: string;
4824
+ };
4825
+ query?: never;
4826
+ url: '/public/v1/automation-flow-poses/{id}/catch-up';
4827
+ };
4828
+ type PreviewAutomationPoseCatchUpErrors = {
4829
+ /**
4830
+ * The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
4831
+ */
4832
+ 400: ApiErrorDto;
4833
+ /**
4834
+ * Missing or invalid API key (`Authorization` header).
4835
+ */
4836
+ 401: ApiErrorDto;
4837
+ /**
4838
+ * The template, pose or channel named in the path does not belong to your organisation.
4839
+ */
4840
+ 404: ApiErrorDto;
4841
+ };
4842
+ type PreviewAutomationPoseCatchUpError = PreviewAutomationPoseCatchUpErrors[keyof PreviewAutomationPoseCatchUpErrors];
4843
+ type PreviewAutomationPoseCatchUpResponses = {
4844
+ 200: AutomationFlowCatchUpPreviewDto;
4845
+ };
4846
+ type PreviewAutomationPoseCatchUpResponse = PreviewAutomationPoseCatchUpResponses[keyof PreviewAutomationPoseCatchUpResponses];
4847
+ type CatchUpAutomationPoseData = {
4848
+ body?: never;
4849
+ path: {
4850
+ id: string;
4851
+ };
4852
+ query?: never;
4853
+ url: '/public/v1/automation-flow-poses/{id}/catch-up';
4854
+ };
4855
+ type CatchUpAutomationPoseErrors = {
4856
+ /**
4857
+ * The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
4858
+ */
4859
+ 400: ApiErrorDto;
4860
+ /**
4861
+ * Missing or invalid API key (`Authorization` header).
4862
+ */
4863
+ 401: ApiErrorDto;
4864
+ /**
4865
+ * The template, pose or channel named in the path does not belong to your organisation.
4866
+ */
4867
+ 404: ApiErrorDto;
4868
+ };
4869
+ type CatchUpAutomationPoseError = CatchUpAutomationPoseErrors[keyof CatchUpAutomationPoseErrors];
4870
+ type CatchUpAutomationPoseResponses = {
4871
+ 201: AutomationFlowCatchUpResultDto;
4872
+ };
4873
+ type CatchUpAutomationPoseResponse = CatchUpAutomationPoseResponses[keyof CatchUpAutomationPoseResponses];
3301
4874
  type ListWebhookEventsData = {
3302
4875
  body?: never;
3303
4876
  path?: never;
@@ -3470,6 +5043,10 @@ type ListContentsData = {
3470
5043
  * The card with this external id.
3471
5044
  */
3472
5045
  externalId?: string;
5046
+ /**
5047
+ * Cards tagged with this workspace (`GET /public/v1/workspaces`).
5048
+ */
5049
+ workspace?: string;
3473
5050
  /**
3474
5051
  * Comma-separated fields to return, e.g. `id,title,stage` (the id always comes back). Omitted: every field, scripts included.
3475
5052
  */
@@ -3652,12 +5229,56 @@ type UpsertContentErrors = {
3652
5229
  * The card named in the path does not belong to your organisation.
3653
5230
  */
3654
5231
  404: ApiErrorDto;
5232
+ /**
5233
+ * A key limited to some workspaces sent the `externalId` of a card outside its workspaces.
5234
+ */
5235
+ 409: ApiErrorDto;
3655
5236
  };
3656
5237
  type UpsertContentError = UpsertContentErrors[keyof UpsertContentErrors];
3657
5238
  type UpsertContentResponses = {
3658
5239
  201: ContentUpsertDto;
3659
5240
  };
3660
5241
  type UpsertContentResponse = UpsertContentResponses[keyof UpsertContentResponses];
5242
+ type CreateContentFromLinkData = {
5243
+ body: CreateContentFromLinkDto;
5244
+ path?: never;
5245
+ query?: never;
5246
+ url: '/public/v1/contents/from-link';
5247
+ };
5248
+ type CreateContentFromLinkErrors = {
5249
+ /**
5250
+ * No TikTok, Instagram or YouTube video link in `url` nor in `text`, or the body is invalid.
5251
+ */
5252
+ 400: ApiErrorDto;
5253
+ /**
5254
+ * Missing or invalid API key (`Authorization` header).
5255
+ */
5256
+ 401: ApiErrorDto;
5257
+ /**
5258
+ * 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
+ */
5260
+ 409: ApiErrorDto;
5261
+ /**
5262
+ * Over the budget of videos sent from a link (30 per hour per organisation by default).
5263
+ */
5264
+ 429: ApiErrorDto;
5265
+ /**
5266
+ * The video could not be handed to the background work: nothing was kept, send the link again in a minute.
5267
+ */
5268
+ 503: ApiErrorDto;
5269
+ };
5270
+ type CreateContentFromLinkError = CreateContentFromLinkErrors[keyof CreateContentFromLinkErrors];
5271
+ type CreateContentFromLinkResponses = {
5272
+ /**
5273
+ * The video was already a card of your organisation: that card, `created: false`.
5274
+ */
5275
+ 200: ContentFromLinkDto;
5276
+ /**
5277
+ * The card is created; the video is being read (`content.source.status` PENDING).
5278
+ */
5279
+ 202: ContentFromLinkDto;
5280
+ };
5281
+ type CreateContentFromLinkResponse = CreateContentFromLinkResponses[keyof CreateContentFromLinkResponses];
3661
5282
  type MoveContentData = {
3662
5283
  body: MoveContentDto;
3663
5284
  path: {
@@ -3712,6 +5333,33 @@ type LinkContentPostResponses = {
3712
5333
  200: OkDto;
3713
5334
  };
3714
5335
  type LinkContentPostResponse = LinkContentPostResponses[keyof LinkContentPostResponses];
5336
+ type SetContentWorkspacesData = {
5337
+ body: SetContentWorkspacesDto;
5338
+ path: {
5339
+ id: string;
5340
+ };
5341
+ query?: never;
5342
+ url: '/public/v1/contents/{id}/workspaces';
5343
+ };
5344
+ type SetContentWorkspacesErrors = {
5345
+ /**
5346
+ * `workspaceIds` is missing, or names a workspace that is not of your organisation.
5347
+ */
5348
+ 400: ApiErrorDto;
5349
+ /**
5350
+ * Missing or invalid API key (`Authorization` header), or no running subscription.
5351
+ */
5352
+ 401: ApiErrorDto;
5353
+ /**
5354
+ * No card of your organisation has this id.
5355
+ */
5356
+ 404: ApiErrorDto;
5357
+ };
5358
+ type SetContentWorkspacesError = SetContentWorkspacesErrors[keyof SetContentWorkspacesErrors];
5359
+ type SetContentWorkspacesResponses = {
5360
+ 200: ContentWorkspacesDto;
5361
+ };
5362
+ type SetContentWorkspacesResponse = SetContentWorkspacesResponses[keyof SetContentWorkspacesResponses];
3715
5363
  type SearchHooksData = {
3716
5364
  body?: never;
3717
5365
  path?: never;
@@ -3749,6 +5397,10 @@ type SearchHooksErrors = {
3749
5397
  * Missing or invalid API key (`Authorization` header).
3750
5398
  */
3751
5399
  401: ApiErrorDto;
5400
+ /**
5401
+ * 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
+ */
5403
+ 429: ApiErrorDto;
3752
5404
  };
3753
5405
  type SearchHooksError = SearchHooksErrors[keyof SearchHooksErrors];
3754
5406
  type SearchHooksResponses = {
@@ -3788,6 +5440,10 @@ type GetHookFormsErrors = {
3788
5440
  * Missing or invalid API key (`Authorization` header).
3789
5441
  */
3790
5442
  401: ApiErrorDto;
5443
+ /**
5444
+ * 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
+ */
5446
+ 429: ApiErrorDto;
3791
5447
  };
3792
5448
  type GetHookFormsError = GetHookFormsErrors[keyof GetHookFormsErrors];
3793
5449
  type GetHookFormsResponses = {
@@ -3817,48 +5473,6 @@ type ListHookFamiliesResponses = {
3817
5473
  200: Array<HookFamilyDto>;
3818
5474
  };
3819
5475
  type ListHookFamiliesResponse = ListHookFamiliesResponses[keyof ListHookFamiliesResponses];
3820
- type ReplaceHookFamiliesData = {
3821
- body: HookFamiliesImportDto;
3822
- path?: never;
3823
- query?: never;
3824
- url: '/public/v1/hooks/families';
3825
- };
3826
- type ReplaceHookFamiliesErrors = {
3827
- /**
3828
- * The request was rejected — `msg` says why.
3829
- */
3830
- 400: ApiErrorDto;
3831
- /**
3832
- * Missing or invalid API key (`Authorization` header).
3833
- */
3834
- 401: ApiErrorDto;
3835
- };
3836
- type ReplaceHookFamiliesError = ReplaceHookFamiliesErrors[keyof ReplaceHookFamiliesErrors];
3837
- type ReplaceHookFamiliesResponses = {
3838
- 200: Array<HookFamilyDto>;
3839
- };
3840
- type ReplaceHookFamiliesResponse = ReplaceHookFamiliesResponses[keyof ReplaceHookFamiliesResponses];
3841
- type ImportHooksData = {
3842
- body: HooksImportDto;
3843
- path?: never;
3844
- query?: never;
3845
- url: '/public/v1/hooks/import';
3846
- };
3847
- type ImportHooksErrors = {
3848
- /**
3849
- * The request was rejected — `msg` says why.
3850
- */
3851
- 400: ApiErrorDto;
3852
- /**
3853
- * Missing or invalid API key (`Authorization` header).
3854
- */
3855
- 401: ApiErrorDto;
3856
- };
3857
- type ImportHooksError = ImportHooksErrors[keyof ImportHooksErrors];
3858
- type ImportHooksResponses = {
3859
- 200: HooksImportResultDto;
3860
- };
3861
- type ImportHooksResponse = ImportHooksResponses[keyof ImportHooksResponses];
3862
5476
  type ListMusicData = {
3863
5477
  body?: never;
3864
5478
  path?: never;
@@ -3998,6 +5612,64 @@ type UploadMusicFileResponses = {
3998
5612
  200: MusicTrackDto;
3999
5613
  };
4000
5614
  type UploadMusicFileResponse = UploadMusicFileResponses[keyof UploadMusicFileResponses];
5615
+ type DeleteWorkspaceData = {
5616
+ body?: never;
5617
+ path: {
5618
+ id: string;
5619
+ };
5620
+ query?: never;
5621
+ url: '/public/v1/workspaces/{id}';
5622
+ };
5623
+ type DeleteWorkspaceErrors = {
5624
+ /**
5625
+ * The last workspace of an organisation cannot be deleted.
5626
+ */
5627
+ 400: WorkspaceErrorDto;
5628
+ /**
5629
+ * Missing or invalid API key (`Authorization` header), or no running subscription.
5630
+ */
5631
+ 401: ApiErrorDto;
5632
+ /**
5633
+ * No workspace of your organisation has this id.
5634
+ */
5635
+ 404: WorkspaceErrorDto;
5636
+ };
5637
+ type DeleteWorkspaceError = DeleteWorkspaceErrors[keyof DeleteWorkspaceErrors];
5638
+ type DeleteWorkspaceResponses = {
5639
+ 200: WorkspaceDeletedDto;
5640
+ };
5641
+ type DeleteWorkspaceResponse = DeleteWorkspaceResponses[keyof DeleteWorkspaceResponses];
5642
+ type UpdateWorkspaceData = {
5643
+ body: UpdateWorkspaceDto;
5644
+ path: {
5645
+ id: string;
5646
+ };
5647
+ query?: never;
5648
+ url: '/public/v1/workspaces/{id}';
5649
+ };
5650
+ type UpdateWorkspaceErrors = {
5651
+ /**
5652
+ * The body is invalid (`message` lists why), or the logo is not a media of your organisation.
5653
+ */
5654
+ 400: WorkspaceErrorDto;
5655
+ /**
5656
+ * Missing or invalid API key (`Authorization` header), or no running subscription.
5657
+ */
5658
+ 401: ApiErrorDto;
5659
+ /**
5660
+ * No workspace of your organisation has this id.
5661
+ */
5662
+ 404: WorkspaceErrorDto;
5663
+ /**
5664
+ * Another workspace already has this name.
5665
+ */
5666
+ 409: WorkspaceErrorDto;
5667
+ };
5668
+ type UpdateWorkspaceError = UpdateWorkspaceErrors[keyof UpdateWorkspaceErrors];
5669
+ type UpdateWorkspaceResponses = {
5670
+ 200: WorkspaceDto;
5671
+ };
5672
+ type UpdateWorkspaceResponse = UpdateWorkspaceResponses[keyof UpdateWorkspaceResponses];
4001
5673
 
4002
5674
  declare const client: Client;
4003
5675
 
@@ -4016,16 +5688,52 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
4016
5688
  };
4017
5689
  /**
4018
5690
  * Upload a file and get a URL usable in a post
5691
+ *
5692
+ * The whole file in one request: an MP4 up to 25 MB, an image up to 10 MB (a HEIC or HEIF photo is converted to JPEG). A MOV or an M4V is refused (`415`): convert it to MP4 first. A larger MP4 goes in parts (`POST /public/v1/uploads`).
4019
5693
  */
4020
5694
  declare const uploadFile: <ThrowOnError extends boolean = false>(options: Options<UploadFileData, ThrowOnError>) => RequestResult<UploadFileResponses, UploadFileErrors, ThrowOnError>;
4021
5695
  /**
4022
5696
  * Import a file from a URL into your media library
5697
+ *
5698
+ * Download a public HTTPS file into your media library. When the import is done within 25 seconds, the answer is `201` and the media, as always. A longer import (a big video, a slow host) answers `202` with the import (`id`, `status: "running"`): it goes on without the connection, and `GET /public/v1/upload-from-url/{importId}` reads it again until `status` is `done` (the `media`) or `failed` (the `error` the call would have answered). The same URL sent again while it runs, or within ten minutes after it succeeded, answers the same import: one download, one media. The MCP tool `uploadFromUrlTool` waits for the end itself.
4023
5699
  */
4024
5700
  declare const uploadFromUrl: <ThrowOnError extends boolean = false>(options: Options<UploadFromUrlData, ThrowOnError>) => RequestResult<UploadFromUrlResponses, UploadFromUrlErrors, ThrowOnError>;
5701
+ /**
5702
+ * Read an import from a URL
5703
+ *
5704
+ * Read again an import from a URL answered `202` by `POST /public/v1/upload-from-url`: `running` (read again in a few seconds), `done` with its `media`, or `failed` with its `error` (`statusCode` and `msg`, the answer the call would have given: send the URL again to retry). An import is kept a day.
5705
+ */
5706
+ declare const getUploadFromUrl: <ThrowOnError extends boolean = false>(options: Options<GetUploadFromUrlData, ThrowOnError>) => RequestResult<GetUploadFromUrlResponses, GetUploadFromUrlErrors, ThrowOnError>;
5707
+ /**
5708
+ * Open an upload of a file from your disk
5709
+ *
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.
5711
+ */
5712
+ declare const createUpload: <ThrowOnError extends boolean = false>(options: Options<CreateUploadData, ThrowOnError>) => RequestResult<CreateUploadResponses, CreateUploadErrors, ThrowOnError>;
5713
+ /**
5714
+ * Finish an upload and add the file to the media library
5715
+ *
5716
+ * Finish an upload opened by `POST /public/v1/uploads`, once its bytes are sent: checks that the whole file arrived with the declared size, that the bytes are the declared type, and for a video that ffprobe can read it; then adds the file to the media library. When parts are missing, answers `409 UPLOAD_INCOMPLETE` with their numbers in `missingParts`: send those again, then confirm again. Safe to call again: a confirmed upload answers the same media. The same as the MCP tool `confirmUpload`.
5717
+ */
5718
+ declare const confirmUpload: <ThrowOnError extends boolean = false>(options: Options<ConfirmUploadData, ThrowOnError>) => RequestResult<ConfirmUploadResponses, ConfirmUploadErrors, ThrowOnError>;
5719
+ /**
5720
+ * Tag a media with workspaces
5721
+ *
5722
+ * The whole set of workspaces a media of your library is tagged with (its id comes back from an upload). A media is never copied: when it serves two workspaces, it carries both tags. An untagged media is the organization's alone: the organization's key and the app see it, a key limited to some workspaces does not. A limited key only adds or takes off its own workspaces; the media's other tags stay. Publishing a media on a channel of another workspace tags it on the way (`mediaTagged` in the answer of `POST /public/v1/posts`).
5723
+ */
5724
+ declare const setMediaWorkspaces: <ThrowOnError extends boolean = false>(options: Options<SetMediaWorkspacesData, ThrowOnError>) => RequestResult<SetMediaWorkspacesResponses, SetMediaWorkspacesErrors, ThrowOnError>;
4025
5725
  /**
4026
5726
  * Next free slot in the channel's schedule
4027
5727
  */
4028
5728
  declare const findSlot: <ThrowOnError extends boolean = false>(options: Options<FindSlotData, ThrowOnError>) => RequestResult<FindSlotResponses, FindSlotErrors, ThrowOnError>;
5729
+ /**
5730
+ * The posting slots of a channel (time and weekdays, UTC)
5731
+ */
5732
+ declare const getPostingTimes: <ThrowOnError extends boolean = false>(options: Options<GetPostingTimesData, ThrowOnError>) => RequestResult<GetPostingTimesResponses, GetPostingTimesErrors, ThrowOnError>;
5733
+ /**
5734
+ * Replace the posting slots of a channel. Posts already scheduled do not move
5735
+ */
5736
+ declare const setPostingTimes: <ThrowOnError extends boolean = false>(options: Options<SetPostingTimesData, ThrowOnError>) => RequestResult<SetPostingTimesResponses, SetPostingTimesErrors, ThrowOnError>;
4029
5737
  /**
4030
5738
  * List posts in a date range
4031
5739
  */
@@ -4038,6 +5746,12 @@ declare const createPost: <ThrowOnError extends boolean = false>(options: Option
4038
5746
  * Delete a post and everything published with it
4039
5747
  */
4040
5748
  declare const deletePost: <ThrowOnError extends boolean = false>(options: Options<DeletePostData, ThrowOnError>) => RequestResult<DeletePostResponses, DeletePostErrors, ThrowOnError>;
5749
+ /**
5750
+ * Read one post, with its media and the cover of its video
5751
+ *
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`.
5753
+ */
5754
+ declare const getPost: <ThrowOnError extends boolean = false>(options: Options<GetPostData, ThrowOnError>) => RequestResult<GetPostResponses, GetPostErrors, ThrowOnError>;
4041
5755
  /**
4042
5756
  * Delete a publication group
4043
5757
  */
@@ -4047,7 +5761,25 @@ declare const deletePostGroup: <ThrowOnError extends boolean = false>(options: O
4047
5761
  */
4048
5762
  declare const checkConnection: <ThrowOnError extends boolean = false>(options?: Options<CheckConnectionData, ThrowOnError>) => RequestResult<CheckConnectionResponses, CheckConnectionErrors, ThrowOnError>;
4049
5763
  /**
4050
- * List your groups
5764
+ * List your workspaces
5765
+ */
5766
+ declare const listWorkspaces: <ThrowOnError extends boolean = false>(options?: Options<ListWorkspacesData, ThrowOnError>) => RequestResult<ListWorkspacesResponses, ListWorkspacesErrors, ThrowOnError>;
5767
+ /**
5768
+ * Create a workspace — same fields and refusals as in the app
5769
+ */
5770
+ declare const createWorkspace: <ThrowOnError extends boolean = false>(options: Options<CreateWorkspaceData, ThrowOnError>) => RequestResult<CreateWorkspaceResponses, CreateWorkspaceErrors, ThrowOnError>;
5771
+ /**
5772
+ * Read your subscription
5773
+ *
5774
+ * The plan, its trial and dates, and what is used against what is included. Behind the paid gate like every route: an organization without an active subscription is refused. `billing` says what will be charged and when, read from Stripe (next invoice, last payment, Stripe's status), or that the amounts are unavailable.
5775
+ */
5776
+ declare const getSubscription: <ThrowOnError extends boolean = false>(options?: Options<GetSubscriptionData, ThrowOnError>) => RequestResult<GetSubscriptionResponses, GetSubscriptionErrors, ThrowOnError>;
5777
+ /**
5778
+ * Deprecated: use listWorkspaces
5779
+ *
5780
+ * Lists your workspaces as `{ id, name }`. Kept for the published SDKs; use `GET /public/v1/workspaces`.
5781
+ *
5782
+ * @deprecated
4051
5783
  */
4052
5784
  declare const listGroups: <ThrowOnError extends boolean = false>(options?: Options<ListGroupsData, ThrowOnError>) => RequestResult<ListGroupsResponses, ListGroupsErrors, ThrowOnError>;
4053
5785
  /**
@@ -4056,20 +5788,14 @@ declare const listGroups: <ThrowOnError extends boolean = false>(options?: Optio
4056
5788
  declare const listChannels: <ThrowOnError extends boolean = false>(options?: Options<ListChannelsData, ThrowOnError>) => RequestResult<ListChannelsResponses, ListChannelsErrors, ThrowOnError>;
4057
5789
  /**
4058
5790
  * Start connecting a channel — returns the URL to open
5791
+ *
5792
+ * 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).
4059
5793
  */
4060
5794
  declare const startChannelConnection: <ThrowOnError extends boolean = false>(options: Options<StartChannelConnectionData, ThrowOnError>) => RequestResult<StartChannelConnectionResponses, StartChannelConnectionErrors, ThrowOnError>;
4061
5795
  /**
4062
5796
  * List your notifications, paginated
4063
5797
  */
4064
5798
  declare const listNotifications: <ThrowOnError extends boolean = false>(options?: Options<ListNotificationsData, ThrowOnError>) => RequestResult<ListNotificationsResponses, ListNotificationsErrors, ThrowOnError>;
4065
- /**
4066
- * Generate a video
4067
- */
4068
- declare const generateVideo: <ThrowOnError extends boolean = false>(options: Options<GenerateVideoData, ThrowOnError>) => RequestResult<GenerateVideoResponses, GenerateVideoErrors, ThrowOnError>;
4069
- /**
4070
- * Call a function of a video provider
4071
- */
4072
- declare const callVideoFunction: <ThrowOnError extends boolean = false>(options: Options<CallVideoFunctionData, ThrowOnError>) => RequestResult<CallVideoFunctionResponses, CallVideoFunctionErrors, ThrowOnError>;
4073
5799
  /**
4074
5800
  * Disconnect a channel and delete its posts
4075
5801
  */
@@ -4088,10 +5814,36 @@ declare const listMissingMedia: <ThrowOnError extends boolean = false>(options:
4088
5814
  * Change a post's status
4089
5815
  */
4090
5816
  declare const changePostStatus: <ThrowOnError extends boolean = false>(options: Options<ChangePostStatusData, ThrowOnError>) => RequestResult<ChangePostStatusResponses, ChangePostStatusErrors, ThrowOnError>;
5817
+ /**
5818
+ * Take the automation off a post not yet published
5819
+ */
5820
+ declare const removePostAutomation: <ThrowOnError extends boolean = false>(options: Options<RemovePostAutomationData, ThrowOnError>) => RequestResult<RemovePostAutomationResponses, RemovePostAutomationErrors, ThrowOnError>;
5821
+ /**
5822
+ * Read the automation a post not yet published carries
5823
+ */
5824
+ declare const getPostAutomation: <ThrowOnError extends boolean = false>(options: Options<GetPostAutomationData, ThrowOnError>) => RequestResult<GetPostAutomationResponses, GetPostAutomationErrors, ThrowOnError>;
5825
+ /**
5826
+ * Put an automation on a scheduled post
5827
+ *
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).
5829
+ */
5830
+ declare const setPostAutomation: <ThrowOnError extends boolean = false>(options: Options<SetPostAutomationData, ThrowOnError>) => RequestResult<SetPostAutomationResponses, SetPostAutomationErrors, ThrowOnError>;
4091
5831
  /**
4092
5832
  * Record the provider post id against a post
4093
5833
  */
4094
5834
  declare const setPostReleaseId: <ThrowOnError extends boolean = false>(options: Options<SetPostReleaseIdData, ThrowOnError>) => RequestResult<SetPostReleaseIdResponses, SetPostReleaseIdErrors, ThrowOnError>;
5835
+ /**
5836
+ * Put, replace or take off the cover of a post's video, before it is published
5837
+ *
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.
5839
+ */
5840
+ declare const setPostCover: <ThrowOnError extends boolean = false>(options: Options<SetPostCoverData, ThrowOnError>) => RequestResult<SetPostCoverResponses, SetPostCoverErrors, ThrowOnError>;
5841
+ /**
5842
+ * Group a post with the same content on other channels, or separate it
5843
+ *
5844
+ * A publication is one content on one or more channels: the posts that share `publication`. Posts written in one request are one publication from the start; this route moves a post (with its thread) into another publication, or out of its own. Nothing else of the post changes, published or not. Refused with a `400` when the publication has no live post in your organisation, `404` for an unknown post.
5845
+ */
5846
+ declare const setPostPublication: <ThrowOnError extends boolean = false>(options: Options<SetPostPublicationData, ThrowOnError>) => RequestResult<SetPostPublicationResponses, SetPostPublicationErrors, ThrowOnError>;
4095
5847
  /**
4096
5848
  * Account metrics, read live from the provider
4097
5849
  */
@@ -4108,6 +5860,12 @@ declare const getAccountHistory: <ThrowOnError extends boolean = false>(options:
4108
5860
  * Stored per-video time series
4109
5861
  */
4110
5862
  declare const getVideoHistory: <ThrowOnError extends boolean = false>(options: Options<GetVideoHistoryData, ThrowOnError>) => RequestResult<GetVideoHistoryResponses, GetVideoHistoryErrors, ThrowOnError>;
5863
+ /**
5864
+ * Views gained each day, every video counted
5865
+ *
5866
+ * The views the channel gained each day of the window, every video counted, old ones included. TikTok and Instagram: the day-to-day difference of every collected video's views (a first reading, unless the video came out that day or the day before, and a reading after a gap of more than 2 days are no gain, counted in `baselines`; a lower reading counts 0, counted in `drops`). Facebook Page, Threads and YouTube: the platform's views of the day (YouTube Analytics, two or three days late: its last days are `null`; only when it gives no day at all, the day-to-day difference of the channel's total views, `source` = `totals`). X and LinkedIn: nothing (`source` = `none`). A day nothing was read has `views: null`, never 0.
5867
+ */
5868
+ declare const getViewsPerDay: <ThrowOnError extends boolean = false>(options: Options<GetViewsPerDayData, ThrowOnError>) => RequestResult<GetViewsPerDayResponses, GetViewsPerDayErrors, ThrowOnError>;
4111
5869
  /**
4112
5870
  * Metrics of one published post
4113
5871
  */
@@ -4142,6 +5900,8 @@ declare const hideComment: <ThrowOnError extends boolean = false>(options: Optio
4142
5900
  declare const deleteComment: <ThrowOnError extends boolean = false>(options: Options<DeleteCommentData, ThrowOnError>) => RequestResult<DeleteCommentResponses, DeleteCommentErrors, ThrowOnError>;
4143
5901
  /**
4144
5902
  * Direct message conversations of a channel
5903
+ *
5904
+ * One page of a box of the inbox (`box`, `needs_reply` by default), what waits for a human first, newest first inside. For the next page, pass the `cursor` of the last conversation as `after`; fewer rows than `limit` means it was the last page.
4145
5905
  */
4146
5906
  declare const listConversations: <ThrowOnError extends boolean = false>(options: Options<ListConversationsData, ThrowOnError>) => RequestResult<ListConversationsResponses, ListConversationsErrors, ThrowOnError>;
4147
5907
  /**
@@ -4158,6 +5918,8 @@ declare const pollInbox: <ThrowOnError extends boolean = false>(options: Options
4158
5918
  declare const subscribeInboxWebhook: <ThrowOnError extends boolean = false>(options: Options<SubscribeInboxWebhookData, ThrowOnError>) => RequestResult<SubscribeInboxWebhookResponses, SubscribeInboxWebhookErrors, ThrowOnError>;
4159
5919
  /**
4160
5920
  * Messages of one conversation
5921
+ *
5922
+ * By the conversation `id` of `listConversations` (Meta's conversation id, or the person's id while Instagram has not named the thread). Messages newest first, `limit` at a time; `messages.paging.before` is there when older ones remain.
4161
5923
  */
4162
5924
  declare const getConversation: <ThrowOnError extends boolean = false>(options: Options<GetConversationData, ThrowOnError>) => RequestResult<GetConversationResponses, GetConversationErrors, ThrowOnError>;
4163
5925
  /**
@@ -4169,11 +5931,11 @@ declare const listAutomationFlows: <ThrowOnError extends boolean = false>(option
4169
5931
  */
4170
5932
  declare const createAutomationFlow: <ThrowOnError extends boolean = false>(options: Options<CreateAutomationFlowData, ThrowOnError>) => RequestResult<CreateAutomationFlowResponses, CreateAutomationFlowErrors, ThrowOnError>;
4171
5933
  /**
4172
- * Render a Brevo step's email without sending it
5934
+ * Render the email of a « Forward the email » step without sending it
4173
5935
  */
4174
5936
  declare const previewAutomationEmail: <ThrowOnError extends boolean = false>(options: Options<PreviewAutomationEmailData, ThrowOnError>) => RequestResult<PreviewAutomationEmailResponses, PreviewAutomationEmailErrors, ThrowOnError>;
4175
5937
  /**
4176
- * Send a Brevo step's email to one address
5938
+ * Send the email of a « Forward the email » step to one address
4177
5939
  */
4178
5940
  declare const sendAutomationTestEmail: <ThrowOnError extends boolean = false>(options: Options<SendAutomationTestEmailData, ThrowOnError>) => RequestResult<SendAutomationTestEmailResponses, SendAutomationTestEmailErrors, ThrowOnError>;
4179
5941
  /**
@@ -4189,7 +5951,7 @@ declare const getAutomationFlow: <ThrowOnError extends boolean = false>(options:
4189
5951
  */
4190
5952
  declare const updateAutomationFlow: <ThrowOnError extends boolean = false>(options: Options<UpdateAutomationFlowData, ThrowOnError>) => RequestResult<UpdateAutomationFlowResponses, UpdateAutomationFlowErrors, ThrowOnError>;
4191
5953
  /**
4192
- * Activate or pause a template (ACTIVE is refused while it has errors)
5954
+ * Activate, pause, archive or unarchive a template (ACTIVE is refused while it has errors; ARCHIVED only from ACTIVE)
4193
5955
  */
4194
5956
  declare const setAutomationFlowStatus: <ThrowOnError extends boolean = false>(options: Options<SetAutomationFlowStatusData, ThrowOnError>) => RequestResult<SetAutomationFlowStatusResponses, SetAutomationFlowStatusErrors, ThrowOnError>;
4195
5957
  /**
@@ -4201,9 +5963,9 @@ declare const listAutomationFlowPoses: <ThrowOnError extends boolean = false>(op
4201
5963
  */
4202
5964
  declare const poseAutomationFlow: <ThrowOnError extends boolean = false>(options: Options<PoseAutomationFlowData, ThrowOnError>) => RequestResult<PoseAutomationFlowResponses, PoseAutomationFlowErrors, ThrowOnError>;
4203
5965
  /**
4204
- * The poses of a channel (one publication, or all)
5966
+ * The poses of a channel (one publication, or all) or of every channel of a workspace
4205
5967
  */
4206
- declare const listChannelAutomationPoses: <ThrowOnError extends boolean = false>(options: Options<ListChannelAutomationPosesData, ThrowOnError>) => RequestResult<ListChannelAutomationPosesResponses, ListChannelAutomationPosesErrors, ThrowOnError>;
5968
+ declare const listChannelAutomationPoses: <ThrowOnError extends boolean = false>(options?: Options<ListChannelAutomationPosesData, ThrowOnError>) => RequestResult<ListChannelAutomationPosesResponses, ListChannelAutomationPosesErrors, ThrowOnError>;
4207
5969
  /**
4208
5970
  * Remove a pose from its publication
4209
5971
  */
@@ -4228,6 +5990,14 @@ declare const pollAutomationPose: <ThrowOnError extends boolean = false>(options
4228
5990
  * Replay the automation on named comments, whatever their date
4229
5991
  */
4230
5992
  declare const replayAutomationPose: <ThrowOnError extends boolean = false>(options: Options<ReplayAutomationPoseData, ThrowOnError>) => RequestResult<ReplayAutomationPoseResponses, ReplayAutomationPoseErrors, ThrowOnError>;
5993
+ /**
5994
+ * Preview a catch-up: the comments already on the publication that would start the automation, sending nothing
5995
+ */
5996
+ declare const previewAutomationPoseCatchUp: <ThrowOnError extends boolean = false>(options: Options<PreviewAutomationPoseCatchUpData, ThrowOnError>) => RequestResult<PreviewAutomationPoseCatchUpResponses, PreviewAutomationPoseCatchUpErrors, ThrowOnError>;
5997
+ /**
5998
+ * Catch up the comments already on the publication: each matching comment starts the automation, a few per minute
5999
+ */
6000
+ declare const catchUpAutomationPose: <ThrowOnError extends boolean = false>(options: Options<CatchUpAutomationPoseData, ThrowOnError>) => RequestResult<CatchUpAutomationPoseResponses, CatchUpAutomationPoseErrors, ThrowOnError>;
4231
6001
  /**
4232
6002
  * The event catalogue a webhook can subscribe to
4233
6003
  */
@@ -4257,11 +6027,13 @@ declare const testWebhook: <ThrowOnError extends boolean = false>(options: Optio
4257
6027
  /**
4258
6028
  * List the cards of the board
4259
6029
  *
4260
- * Filters combine. With `fields`, each card carries only the fields asked for (plus its id).
6030
+ * Filters combine. With `fields`, each card carries only the fields asked for (plus its id). A key limited to some workspaces lists the cards tagged with one of them and tied to no channel or post of another workspace.
4261
6031
  */
4262
6032
  declare const listContents: <ThrowOnError extends boolean = false>(options?: Options<ListContentsData, ThrowOnError>) => RequestResult<ListContentsResponses, ListContentsErrors, ThrowOnError>;
4263
6033
  /**
4264
6034
  * Create a card
6035
+ *
6036
+ * A card created by a key limited to some workspaces is tagged with them; by the organisation's key, it is not tagged.
4265
6037
  */
4266
6038
  declare const createContent: <ThrowOnError extends boolean = false>(options: Options<CreateContentData, ThrowOnError>) => RequestResult<CreateContentResponses, CreateContentErrors, ThrowOnError>;
4267
6039
  /**
@@ -4270,6 +6042,8 @@ declare const createContent: <ThrowOnError extends boolean = false>(options: Opt
4270
6042
  declare const getContentsPerformance: <ThrowOnError extends boolean = false>(options?: Options<GetContentsPerformanceData, ThrowOnError>) => RequestResult<GetContentsPerformanceResponses, GetContentsPerformanceErrors, ThrowOnError>;
4271
6043
  /**
4272
6044
  * Delete a card
6045
+ *
6046
+ * A key limited to some workspaces deleting a card that also carries other workspaces only takes its own workspaces off: the card stays for the others and comes back without `deletedAt`.
4273
6047
  */
4274
6048
  declare const deleteContent: <ThrowOnError extends boolean = false>(options: Options<DeleteContentData, ThrowOnError>) => RequestResult<DeleteContentResponses, DeleteContentErrors, ThrowOnError>;
4275
6049
  /**
@@ -4286,6 +6060,12 @@ declare const updateContent: <ThrowOnError extends boolean = false>(options: Opt
4286
6060
  * The card holding `externalId` is updated with the fields sent (its column is left alone: use /move); without one, a card is created. Re-running an import never duplicates.
4287
6061
  */
4288
6062
  declare const upsertContent: <ThrowOnError extends boolean = false>(options: Options<UpsertContentData, ThrowOnError>) => RequestResult<UpsertContentResponses, UpsertContentErrors, ThrowOnError>;
6063
+ /**
6064
+ * Turn a shared video link into an idea card
6065
+ *
6066
+ * Send the link of a TikTok, Instagram or YouTube video (or the text a share gives, with the link in it): it becomes a card in IDEA, first of the column, tagged `inspiration`, its `source` PENDING. Nadia then reads the video in the background (its author, caption, duration, views, a copy of its thumbnail, its transcript); the video itself is never kept. `source.status` turns READY, or FAILED with `source.error` saying why (a private video, a dead short link, a platform that refuses our servers: YouTube today). The same video sent again answers 200 with its card, and nothing is read again.
6067
+ */
6068
+ declare const createContentFromLink: <ThrowOnError extends boolean = false>(options: Options<CreateContentFromLinkData, ThrowOnError>) => RequestResult<CreateContentFromLinkResponses, CreateContentFromLinkErrors, ThrowOnError>;
4289
6069
  /**
4290
6070
  * Move a card to another column
4291
6071
  */
@@ -4296,6 +6076,12 @@ declare const moveContent: <ThrowOnError extends boolean = false>(options: Optio
4296
6076
  * Pass the `group` of a post created with POST /public/v1/posts. A card holds several posts (e.g. a TikTok draft and an Instagram post): each call adds one. A card behind "To schedule" jumps there; it moves to PUBLISHED when the first of its posts goes live.
4297
6077
  */
4298
6078
  declare const linkContentPost: <ThrowOnError extends boolean = false>(options: Options<LinkContentPostData, ThrowOnError>) => RequestResult<LinkContentPostResponses, LinkContentPostErrors, ThrowOnError>;
6079
+ /**
6080
+ * Tag a card with workspaces
6081
+ *
6082
+ * The whole set of workspaces a card of the idea box is tagged with. A card is never copied: when it serves two workspaces, it carries both tags. An untagged card is the organization's alone: the organization's key and the app see it, a key limited to some workspaces does not. A limited key only adds or takes off its own workspaces; the card's other tags stay. A card created by a limited key is tagged with its workspaces.
6083
+ */
6084
+ declare const setContentWorkspaces: <ThrowOnError extends boolean = false>(options: Options<SetContentWorkspacesData, ThrowOnError>) => RequestResult<SetContentWorkspacesResponses, SetContentWorkspacesErrors, ThrowOnError>;
4299
6085
  /**
4300
6086
  * Search real hooks that worked
4301
6087
  *
@@ -4314,14 +6100,6 @@ declare const getHookForms: <ThrowOnError extends boolean = false>(options?: Opt
4314
6100
  * From the studies corpus: views vs the rest, probability of superiority, share of bangers, and in how many accounts the family beats the rest of the same account. Only a `PROUVÉ` family is a rule. `nature` gives the table measured on one nature of video (`tuto_methode`…), default the whole corpus.
4315
6101
  */
4316
6102
  declare const listHookFamilies: <ThrowOnError extends boolean = false>(options?: Options<ListHookFamiliesData, ThrowOnError>) => RequestResult<ListHookFamiliesResponses, ListHookFamiliesErrors, ThrowOnError>;
4317
- /**
4318
- * Replace the family table
4319
- */
4320
- declare const replaceHookFamilies: <ThrowOnError extends boolean = false>(options: Options<ReplaceHookFamiliesData, ThrowOnError>) => RequestResult<ReplaceHookFamiliesResponses, ReplaceHookFamiliesErrors, ThrowOnError>;
4321
- /**
4322
- * Import hooks (upsert on source, account, externalId)
4323
- */
4324
- declare const importHooks: <ThrowOnError extends boolean = false>(options: Options<ImportHooksData, ThrowOnError>) => RequestResult<ImportHooksResponses, ImportHooksErrors, ThrowOnError>;
4325
6103
  /**
4326
6104
  * Royalty-free music for a video
4327
6105
  *
@@ -4346,6 +6124,14 @@ declare const importMusic: <ThrowOnError extends boolean = false>(options: Optio
4346
6124
  * Upload the prepared mp3 of a track — super admin only
4347
6125
  */
4348
6126
  declare const uploadMusicFile: <ThrowOnError extends boolean = false>(options: Options<UploadMusicFileData, ThrowOnError>) => RequestResult<UploadMusicFileResponses, UploadMusicFileErrors, ThrowOnError>;
6127
+ /**
6128
+ * Delete a workspace — its channels and their posts move to the first other one
6129
+ */
6130
+ declare const deleteWorkspace: <ThrowOnError extends boolean = false>(options: Options<DeleteWorkspaceData, ThrowOnError>) => RequestResult<DeleteWorkspaceResponses, DeleteWorkspaceErrors, ThrowOnError>;
6131
+ /**
6132
+ * Edit a workspace, or move channels into it
6133
+ */
6134
+ declare const updateWorkspace: <ThrowOnError extends boolean = false>(options: Options<UpdateWorkspaceData, ThrowOnError>) => RequestResult<UpdateWorkspaceResponses, UpdateWorkspaceErrors, ThrowOnError>;
4349
6135
 
4350
6136
  /** Body of {@link Nadia.post}: the spec's own shape (`group`, `value[].id`
4351
6137
  * and `value[].delay` are optional there since 2026-10-21). */
@@ -4371,6 +6157,15 @@ interface NadiaOptions {
4371
6157
  retries?: number;
4372
6158
  /** Swap in a custom fetch (tests, proxies, instrumentation). */
4373
6159
  fetch?: typeof fetch;
6160
+ /**
6161
+ * How {@link Nadia.uploadFromUrl} reads a long import again: every
6162
+ * `intervalMs` (default 3000), for `timeoutMs` at most (default 15 min:
6163
+ * the server gives a download 10 minutes).
6164
+ */
6165
+ importPoll?: {
6166
+ intervalMs?: number;
6167
+ timeoutMs?: number;
6168
+ };
4374
6169
  }
4375
6170
  /** Shape every generated operation resolves to. */
4376
6171
  type GeneratedResult<T> = {
@@ -4379,9 +6174,35 @@ type GeneratedResult<T> = {
4379
6174
  request?: Request;
4380
6175
  response?: Response;
4381
6176
  };
6177
+ /** What {@link Nadia.upload} resolves to: `id` and `path` go in a post. */
6178
+ interface UploadedMedia {
6179
+ id: string;
6180
+ path: string;
6181
+ /** In parts or single PUT: the checked type, bytes, seconds (null for an image), size as displayed, codec. */
6182
+ contentType?: string;
6183
+ size?: number;
6184
+ duration?: number | null;
6185
+ width?: number;
6186
+ height?: number;
6187
+ codec?: string;
6188
+ /** Through `POST /public/v1/upload`: the library row's other fields. */
6189
+ name?: string;
6190
+ originalName?: string | null;
6191
+ thumbnail?: string | null;
6192
+ alt?: string | null;
6193
+ }
6194
+ /**
6195
+ * The type a file of this name is sent in parts as (`video/mp4`,
6196
+ * `image/jpeg`…), or `undefined` when {@link Nadia.upload} sends it whole
6197
+ * through `POST /public/v1/upload` (HEIC, MOV, AVIF…).
6198
+ */
6199
+ declare const uploadContentType: (filename: string) => string | undefined;
4382
6200
  declare class Nadia {
4383
6201
  private readonly client;
4384
6202
  private readonly retries;
6203
+ /** For the bytes of an upload, which go to the upload host, not the API. */
6204
+ private readonly fetchImpl;
6205
+ private readonly importPoll;
4385
6206
  constructor(apiKey: string, options?: string | NadiaOptions);
4386
6207
  /**
4387
6208
  * Runs a generated operation, turns a non-2xx into a `NadiaError`, and
@@ -4393,8 +6214,53 @@ declare class Nadia {
4393
6214
  post(body: CreatePostBody): Promise<CreatePostResultItemDto[]>;
4394
6215
  /** List posts in a date range. */
4395
6216
  postList(query?: Record<string, unknown>): Promise<PostListDto>;
4396
- /** Upload a file and get a URL usable in a post. */
4397
- upload(file: Blob | File, filename?: string): Promise<MediaResponseDto>;
6217
+ /**
6218
+ * Upload a file and get a URL usable in a post: a path on disk, or a
6219
+ * `Blob` / `File` with its name.
6220
+ *
6221
+ * An MP4, JPEG, PNG, WebP or GIF goes in parts of 20 MB straight to the
6222
+ * storage (`POST /public/v1/uploads`, then its confirm): four parts at a
6223
+ * time, a part cut by the network sent again, and the parts the confirm
6224
+ * says are missing sent again before confirming once more. A server that
6225
+ * 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
6228
+ * `POST /public/v1/upload`, the whole file in one request, as before. A
6229
+ * MOV or an M4V is refused there (`415`): convert it to MP4 first.
6230
+ *
6231
+ * Resolves to the media: `id` and `path` always (what a post takes),
6232
+ * plus `size`, `duration`, `width`, `height`, `codec` when it went in
6233
+ * parts or in a single PUT.
6234
+ */
6235
+ upload(file: string | Blob | File, filename?: string): Promise<UploadedMedia>;
6236
+ /**
6237
+ * Import a file from a public HTTPS URL into the media library
6238
+ * (`POST /public/v1/upload-from-url`): the path of the URL ends in `.png`,
6239
+ * `.jpg`, `.jpeg`, `.gif`, `.webp` or `.mp4`.
6240
+ *
6241
+ * A long import (not done within 25 s) is answered `202` by the server and
6242
+ * goes on there; it is read again here (`GET
6243
+ * /public/v1/upload-from-url/{importId}`) until it ends. Resolves to the
6244
+ * media either way; a failed import throws the `NadiaError` the server
6245
+ * would have answered at once (its status and `msg`).
6246
+ */
6247
+ uploadFromUrl(url: string): Promise<UploadedMedia>;
6248
+ /**
6249
+ * The end of an import from a URL: the media at once (`201`), or an import
6250
+ * (`202`) read again every few seconds until it is done or failed.
6251
+ */
6252
+ private importEnd;
6253
+ /** The whole file in one multipart request: `POST /public/v1/upload`. */
6254
+ private uploadWhole;
6255
+ /** Each part to `<uploadUrl>/<n>`, a few at a time, each retried. */
6256
+ private sendParts;
6257
+ /** The single PUT of a server that takes no parts. */
6258
+ private sendWhole;
6259
+ /**
6260
+ * A PUT of raw bytes, without the API key (the URL is the credential):
6261
+ * three tries on a network error, a 5xx or a 429, none on anything else.
6262
+ */
6263
+ private put;
4398
6264
  /** List your connected channels. */
4399
6265
  integrations(): Promise<IntegrationListItemDto[]>;
4400
6266
  /** Delete a post and everything published with it. */
@@ -4516,4 +6382,4 @@ declare function parseWebhook<T = unknown>(options: {
4516
6382
  now?: number;
4517
6383
  }): WebhookDelivery<T>;
4518
6384
 
4519
- export { type AccountHistoryItemDto, type AnalyticsMetricDto, type AnalyticsPointDto, type ApiErrorDto, type AutomationFlowCountsDto, type AutomationFlowDto, type AutomationFlowIssueDto, type AutomationFlowPollResultDto, type AutomationFlowPoseResponseDto, type AutomationFlowReplayResultDto, type AutomationFlowResponseDto, type AutomationFlowRunResponseDto, type AutomationFlowStatusDto, type AutomationPoseCountsDto, type AutomationPoseFlowDto, type CallVideoFunctionData, type CallVideoFunctionError, type CallVideoFunctionErrors, type CallVideoFunctionResponse, type CallVideoFunctionResponses, 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 ContentChannelPerformanceDto, type ContentDto, type ContentListItemDto, type ContentPerformanceDto, type ContentPostDto, type ContentStage, type ContentUpsertDto, type CreateAutomationFlowData, type CreateAutomationFlowError, type CreateAutomationFlowErrors, type CreateAutomationFlowResponse, type CreateAutomationFlowResponses, type CreateContentData, type CreateContentDto, type CreateContentError, type CreateContentErrors, type CreateContentResponse, type CreateContentResponses, type CreatePostBody, type CreatePostData, type CreatePostError, type CreatePostErrors, type CreatePostResponse, type CreatePostResponses, type CreatePostResultItemDto, type CreatePublicWebhookDto, type CreateWebhookData, type CreateWebhookError, type CreateWebhookErrors, type CreateWebhookResponse, type CreateWebhookResponses, 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 DeletedIdDto, type EmailPreviewDto, type EmailPreviewDtoResponse, type EmailSentDto, type EmailTestDto, type FindSlotData, type FindSlotDto, type FindSlotError, type FindSlotErrors, type FindSlotResponse, type FindSlotResponses, type GenerateVideoData, type GenerateVideoError, type GenerateVideoErrors, type GenerateVideoResponse, type GenerateVideoResponses, type GeneratedVideoDto, 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 GetVideoHistoryData, type GetVideoHistoryError, type GetVideoHistoryErrors, type GetVideoHistoryResponse, type GetVideoHistoryResponses, 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 HookFamiliesImportDto, type HookFamilyDto, type HookFamilyStatDto, type HookFormDto, type HookImportItemDto, type HooksImportDto, type HooksImportResultDto, type HooksSearchResultDto, type ImportHooksData, type ImportHooksError, type ImportHooksErrors, type ImportHooksResponse, type ImportHooksResponses, type ImportMusicData, type ImportMusicError, type ImportMusicErrors, type ImportMusicResponse, type ImportMusicResponses, type InboxConversationDto, type InboxMessageDto, type InboxParticipantDto, type InboxPollResultDto, type InstagramCommentAuthorDto, type InstagramCommentDto, type InstagramMediaDto, type Integration, type IntegrationListItemDto, type IntegrationSettingsDto, type IntegrationSettingsOutputDto, type IntegrationToolDto, type IntegrationToolParamDto, type IntegrationTriggerDto, type IntegrationTriggerResultDto, 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 MediaDto, type MediaResponseDto, 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 PostContent, type PostDto, type PostIntegrationSummaryDto, type PostListDto, type PostStatusDto, type PostTagDto, type PreviewAutomationEmailData, type PreviewAutomationEmailError, type PreviewAutomationEmailErrors, type PreviewAutomationEmailResponse, type PreviewAutomationEmailResponses, type PublicCreatePostDto, type ReplaceHookFamiliesData, type ReplaceHookFamiliesError, type ReplaceHookFamiliesErrors, type ReplaceHookFamiliesResponse, type ReplaceHookFamiliesResponses, 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 SetPostReleaseIdData, type SetPostReleaseIdError, type SetPostReleaseIdErrors, type SetPostReleaseIdResponse, type SetPostReleaseIdResponses, type SocialAuthUrlDto, type StartChannelConnectionData, type StartChannelConnectionError, type StartChannelConnectionErrors, type StartChannelConnectionResponse, type StartChannelConnectionResponses, type SubscribeInboxWebhookData, type SubscribeInboxWebhookError, type SubscribeInboxWebhookErrors, type SubscribeInboxWebhookResponse, type SubscribeInboxWebhookResponses, 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 UploadDto, 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 UpsertContentData, type UpsertContentDto, type UpsertContentError, type UpsertContentErrors, type UpsertContentResponse, type UpsertContentResponses, type VerifyWebhookOptions, type VideoDto, type VideoFunctionDto, type VideoHistoryPageDto, type VideoIdentityDto, type WebhookCreatedDto, type WebhookDelivery, type WebhookDto, type WebhookEventDto, type WebhookEventListDto, type WebhookTestResultDto, type WebhooksIntegrationDto, callVideoFunction, changePostStatus, checkConnection, createAutomationFlow, createContent, createPost, createWebhook, Nadia as default, deleteAutomationFlow, deleteAutomationPose, deleteChannel, deleteComment, deleteContent, deletePost, deletePostGroup, deleteWebhook, findSlot, generateVideo, getAccountHistory, getAutomationFlow, getAutomationPose, getChannelAnalytics, getChannelSettings, getContent, getContentsPerformance, getConversation, getHookForms, getMusicTrack, getPostAnalytics, getVideoHistory, getWebhook, hideComment, importHooks, importMusic, linkContentPost, listAutomationFlowPoses, listAutomationFlows, listAutomationPoseRuns, listChannelAutomationPoses, listChannelMedia, listChannelStories, listChannels, listContents, listConversations, listGroups, listHookFamilies, listMediaComments, listMissingMedia, listMusic, listMusicPillars, listNotifications, listPosts, listVideoPerformance, listWebhookEvents, listWebhooks, moveContent, parseWebhook, pollAutomationPose, pollInbox, poseAutomationFlow, previewAutomationEmail, replaceHookFamilies, replayAutomationPose, replyToComment, runChannelTool, searchHooks, sendAutomationTestEmail, sendDirectMessage, setAutomationFlowStatus, setPostReleaseId, startChannelConnection, subscribeInboxWebhook, testWebhook, updateAutomationFlow, updateAutomationPose, updateContent, uploadFile, uploadFromUrl, uploadMusicFile, upsertContent, verifyWebhookSignature };
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 };