@usenadia/node 0.1.0 → 0.2.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,141 @@ type MediaResponseDto = {
362
362
  type UploadDto = {
363
363
  url: string;
364
364
  };
365
+ type CreateUploadDto = {
366
+ /**
367
+ * Name or path of the file on your disk; its base name becomes the media name. Used in the `curl` command of the answer.
368
+ */
369
+ filename: string;
370
+ contentType: 'video/mp4' | 'image/jpeg' | 'image/png' | 'image/webp' | 'image/gif';
371
+ /**
372
+ * Exact size of the file, in bytes.
373
+ */
374
+ size: number;
375
+ };
376
+ type UploadSessionDto = {
377
+ /**
378
+ * What `POST /public/v1/uploads/{uploadId}/confirm` takes.
379
+ */
380
+ uploadId: string;
381
+ /**
382
+ * Where the bytes go: in parts, each part to `<uploadUrl>/<n>`; otherwise the whole file, once. No `Authorization` header: the URL is the credential.
383
+ */
384
+ uploadUrl: string;
385
+ /**
386
+ * Always `PUT`.
387
+ */
388
+ method: string;
389
+ /**
390
+ * Headers to send with the bytes.
391
+ */
392
+ headers: {
393
+ [key: string]: string;
394
+ };
395
+ /**
396
+ * 24 hours after the call in parts, 15 minutes for a single PUT.
397
+ */
398
+ expiresAt: string;
399
+ /**
400
+ * The server's size limit, in bytes.
401
+ */
402
+ maxSize: number;
403
+ /**
404
+ * A shell command (macOS or Linux: `sh`, `curl`, `dd`) that sends the file, to run where the file is.
405
+ */
406
+ curl: string;
407
+ /**
408
+ * In parts only: the size of a part in bytes (20 MB; the last one is smaller).
409
+ */
410
+ partSize?: number;
411
+ /**
412
+ * In parts only: how many parts. Absent = a single PUT.
413
+ */
414
+ parts?: number;
415
+ };
416
+ type ConfirmedUploadDto = {
417
+ /**
418
+ * Media id, what a post takes as `image[].id`.
419
+ */
420
+ id: string;
421
+ /**
422
+ * Public URL of the file, what a post takes as `image[].path`.
423
+ */
424
+ path: string;
425
+ /**
426
+ * The declared type, checked on the bytes.
427
+ */
428
+ contentType: string;
429
+ /**
430
+ * Bytes stored.
431
+ */
432
+ size: number;
433
+ /**
434
+ * Seconds for a video, `null` for an image.
435
+ */
436
+ duration: number | null;
437
+ /**
438
+ * Width as displayed (the rotation of a phone video applied).
439
+ */
440
+ width: number;
441
+ /**
442
+ * Height as displayed.
443
+ */
444
+ height: number;
445
+ /**
446
+ * Picture codec (`h264`, `hevc`, `png`…).
447
+ */
448
+ codec: string;
449
+ };
450
+ type UploadErrorDto = {
451
+ statusCode: number;
452
+ /**
453
+ * Starts with a code (`UPLOAD_INCOMPLETE: …`), then what to do.
454
+ */
455
+ message: string;
456
+ /**
457
+ * With `UPLOAD_INCOMPLETE` only: the numbers of the parts that have not arrived.
458
+ */
459
+ missingParts?: Array<number>;
460
+ };
365
461
  type FindSlotDto = {
366
462
  /**
367
463
  * Next free slot for the channel.
368
464
  */
369
465
  date: string;
370
466
  };
467
+ type PostingTimeItemDto = {
468
+ /**
469
+ * Minutes after midnight UTC.
470
+ */
471
+ time: number;
472
+ /**
473
+ * UTC weekdays, 0 = Sunday … 6 = Saturday. Absent = every day.
474
+ */
475
+ days?: Array<number>;
476
+ };
477
+ type PostingTimesResultDto = {
478
+ /**
479
+ * The channel.
480
+ */
481
+ integrationId: string;
482
+ /**
483
+ * Its posting slots, one per time.
484
+ */
485
+ times: Array<PostingTimeItemDto>;
486
+ };
487
+ type IntegrationValidateTimeDto = {
488
+ /**
489
+ * Minutes after midnight UTC (18:30 UTC = 1110).
490
+ */
491
+ time: number;
492
+ /**
493
+ * UTC weekdays the slot fires on, 0 = Sunday … 6 = Saturday. Absent = every day.
494
+ */
495
+ days?: Array<number>;
496
+ };
497
+ type PostingTimesDto = {
498
+ times: Array<IntegrationValidateTimeDto>;
499
+ };
371
500
  type PostTagDto = {
372
501
  /**
373
502
  * The tag record (`name`, `color`…).
@@ -382,6 +511,28 @@ type PostIntegrationSummaryDto = {
382
511
  providerIdentifier: string;
383
512
  picture: string | null;
384
513
  };
514
+ type PostLinkClicksSourceDto = {
515
+ /**
516
+ * The `src` the link carried (`<link>?src=newsletter`), a short lowercase slug.
517
+ */
518
+ source: string;
519
+ clicks: number;
520
+ };
521
+ type PostLinkClicksDto = {
522
+ total: number;
523
+ /**
524
+ * Clicks sent to the post, once published.
525
+ */
526
+ toPost: number;
527
+ /**
528
+ * Clicks sent to the channel's profile: before the publication, or after a deletion.
529
+ */
530
+ toProfile: number;
531
+ /**
532
+ * Clicks by `src`, most clicked first; clicks without one are only in the totals.
533
+ */
534
+ sources: Array<PostLinkClicksSourceDto>;
535
+ };
385
536
  type PostDto = {
386
537
  id: string;
387
538
  /**
@@ -415,10 +566,48 @@ type PostDto = {
415
566
  creationMethod?: 'API' | 'CLI' | 'UI' | 'MCP';
416
567
  tags?: Array<PostTagDto>;
417
568
  integration?: PostIntegrationSummaryDto;
569
+ /**
570
+ * 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.
571
+ */
572
+ link?: string | null;
573
+ /**
574
+ * Clicks on `link`, link previews (bots) left out. Null when `link` is null.
575
+ */
576
+ linkClicks?: PostLinkClicksDto | null;
577
+ /**
578
+ * 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.
579
+ */
580
+ publication?: string | null;
418
581
  };
419
582
  type PostListDto = {
420
583
  posts: Array<PostDto>;
421
584
  };
585
+ type PostMediaDto = {
586
+ /**
587
+ * Media id; null for a media given by URL only.
588
+ */
589
+ id: string | null;
590
+ /**
591
+ * Public URL of the media.
592
+ */
593
+ path: string;
594
+ /**
595
+ * 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.
596
+ */
597
+ thumbnail: string | null;
598
+ };
599
+ type PostDetailDto = PostDto & {
600
+ /**
601
+ * The media of the post, in order, each with its cover.
602
+ */
603
+ media: Array<PostMediaDto>;
604
+ };
605
+ type SetPostCoverDto = {
606
+ /**
607
+ * 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.
608
+ */
609
+ thumbnail: string | null;
610
+ };
422
611
  type Tags = {
423
612
  value: string;
424
613
  label: string;
@@ -430,19 +619,22 @@ type MediaDto = {
430
619
  id: string;
431
620
  path: string;
432
621
  alt?: string;
622
+ /**
623
+ * 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.
624
+ */
433
625
  thumbnail?: string;
434
626
  };
435
627
  type PostContent = {
436
628
  content: string;
437
- id: string;
438
- delay: number;
629
+ id?: string;
630
+ delay?: number;
439
631
  image: Array<MediaDto>;
440
632
  };
441
633
  type Post = {
442
634
  type?: string;
443
635
  integration: Integration;
444
636
  value: Array<PostContent>;
445
- group: string;
637
+ group?: string;
446
638
  settings: {
447
639
  [key: string]: unknown;
448
640
  };
@@ -459,6 +651,10 @@ type PublicCreatePostDto = {
459
651
  date: string;
460
652
  tags: Array<Tags>;
461
653
  posts: Array<Post>;
654
+ /**
655
+ * 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.
656
+ */
657
+ publication?: string;
462
658
  };
463
659
  type CreatePostResultItemDto = {
464
660
  /**
@@ -469,6 +665,14 @@ type CreatePostResultItemDto = {
469
665
  * Channel it was created for.
470
666
  */
471
667
  integration: string;
668
+ /**
669
+ * 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.
670
+ */
671
+ link?: string | null;
672
+ /**
673
+ * 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.
674
+ */
675
+ publication: string;
472
676
  };
473
677
  type DeletedIdDto = {
474
678
  /**
@@ -482,13 +686,301 @@ type IsConnectedDto = {
482
686
  */
483
687
  connected: boolean;
484
688
  };
689
+ type WorkspaceDto = {
690
+ /**
691
+ * Workspace id — what `listChannels` takes as `?workspace=`.
692
+ */
693
+ id: string;
694
+ /**
695
+ * Workspace name, as shown in the app.
696
+ */
697
+ name: string;
698
+ /**
699
+ * Ids of the channels in this workspace. A channel belongs to exactly one workspace.
700
+ */
701
+ channels: Array<string>;
702
+ /**
703
+ * Whose workspace it is: your own, your business, or a client of yours.
704
+ */
705
+ type: 'PERSONAL' | 'BUSINESS' | 'CLIENT';
706
+ /**
707
+ * URL of the workspace logo, or null.
708
+ */
709
+ logo: string | null;
710
+ /**
711
+ * Website of the brand, or null.
712
+ */
713
+ website: string | null;
714
+ /**
715
+ * Country of the audience, ISO 3166-1 alpha-2 (`MT`), or null.
716
+ */
717
+ country: string | null;
718
+ /**
719
+ * Time zone of the workspace, IANA (`Europe/Malta`), or null.
720
+ */
721
+ timezone: string | null;
722
+ /**
723
+ * What the workspace is about — brand, audience, tone — as written in the app (up to 2000 characters). Read it before writing for this workspace.
724
+ */
725
+ about: string | null;
726
+ /**
727
+ * 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`.
728
+ */
729
+ timezoneNotice: string | null;
730
+ };
731
+ type SubscriptionDto = {
732
+ /**
733
+ * The plan; FREE: no active subscription.
734
+ */
735
+ tier: 'FREE' | 'SOLO' | 'EQUIPE' | 'AGENCE' | 'STARTER_ULTIME' | 'ULTIME' | 'VCORP';
736
+ /**
737
+ * The plan's name as the app shows it in English (Free, Solo, Team, Agency, Starter ultime, Upgrade Ultime, Vcorp).
738
+ */
739
+ name: string;
740
+ /**
741
+ * A free trial runs: the first charge comes at `trialEndsAt`.
742
+ */
743
+ trial: boolean;
744
+ /**
745
+ * End of the free trial; null without one.
746
+ */
747
+ trialEndsAt: string | null;
748
+ /**
749
+ * Billing period; null when the plan is offered or there is none.
750
+ */
751
+ period: 'MONTHLY' | 'YEARLY';
752
+ /**
753
+ * The plan is offered (an invitation, a trial offered by mail, Starter ultime): nothing is billed for it.
754
+ */
755
+ offered: boolean;
756
+ /**
757
+ * Offered with no end date.
758
+ */
759
+ lifetime: boolean;
760
+ /**
761
+ * When the offered plan ends (the organization is then without a subscription); null otherwise.
762
+ */
763
+ offeredUntil: string | null;
764
+ /**
765
+ * When a cancelled subscription stops; null when none is planned.
766
+ */
767
+ cancelAt: string | null;
768
+ /**
769
+ * A paid subscription runs and renews at the end of its period (not offered, not cancelled).
770
+ */
771
+ renews: boolean;
772
+ /**
773
+ * Connected channels against the channels included.
774
+ */
775
+ channels: {
776
+ /**
777
+ * Channels connected.
778
+ */
779
+ connected: number;
780
+ /**
781
+ * Channels the plan includes, paid plus offered; null: no limit.
782
+ */
783
+ included: number | null;
784
+ /**
785
+ * Channels of the subscription itself; null: no limit or no subscription.
786
+ */
787
+ paid: number | null;
788
+ /**
789
+ * Channels offered by hand on top of the plan.
790
+ */
791
+ offered: number;
792
+ /**
793
+ * Connected channels to reconnect.
794
+ */
795
+ needingRefresh: number;
796
+ };
797
+ members: {
798
+ /**
799
+ * Members of the organization.
800
+ */
801
+ count: number;
802
+ /**
803
+ * The plan lets the organization invite members.
804
+ */
805
+ teamMembers: boolean;
806
+ };
807
+ /**
808
+ * Outgoing webhooks.
809
+ */
810
+ webhooks: {
811
+ /**
812
+ * How many the organization has.
813
+ */
814
+ count: number;
815
+ /**
816
+ * How many the plan includes; null: no limit.
817
+ */
818
+ included: number | null;
819
+ };
820
+ /**
821
+ * Workspaces.
822
+ */
823
+ workspaces: {
824
+ /**
825
+ * How many the organization has.
826
+ */
827
+ count: number;
828
+ /**
829
+ * How many the plan includes; null: no limit.
830
+ */
831
+ included: number | null;
832
+ };
833
+ /**
834
+ * The hooks quota, the trial's while a trial runs.
835
+ */
836
+ hooks: {
837
+ /**
838
+ * Hooks returned per call at most.
839
+ */
840
+ perCall: number;
841
+ /**
842
+ * Hooks a day at most (renewed at 00:00 UTC); null: no daily limit.
843
+ */
844
+ perDay: number | null;
845
+ };
846
+ /**
847
+ * The subscription page in the app; null without a subscription.
848
+ */
849
+ manageUrl: string | null;
850
+ /**
851
+ * 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.
852
+ */
853
+ billing: {
854
+ /**
855
+ * Stripe could be read, or nothing is billed anyway. False: the amounts are unavailable (see notice), never work them out.
856
+ */
857
+ available: boolean;
858
+ /**
859
+ * Why the amounts are unavailable: not_configured (this server does not read Stripe) or stripe_error (Stripe did not answer); null when available.
860
+ */
861
+ unavailable: 'not_configured' | 'stripe_error';
862
+ /**
863
+ * The unavailability in a sentence, for the agent; null when available.
864
+ */
865
+ notice: string | null;
866
+ /**
867
+ * Something will be charged at nextInvoice.date. False: nothing will be (see noChargeReason). Null: not known (Stripe unavailable).
868
+ */
869
+ willCharge: boolean | null;
870
+ /**
871
+ * 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).
872
+ */
873
+ noChargeReason: 'free' | 'vcorp' | 'lifetime' | 'offered' | 'manual' | 'canceled' | 'no_upcoming_invoice' | 'nothing_due';
874
+ /**
875
+ * 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.
876
+ */
877
+ status: string | null;
878
+ /**
879
+ * Stripe cancels the subscription at the end of its period.
880
+ */
881
+ cancelAtPeriodEnd: boolean;
882
+ /**
883
+ * When Stripe ends the subscription (UTC); null when no end is planned at Stripe.
884
+ */
885
+ cancelAt: string | null;
886
+ /**
887
+ * 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).
888
+ */
889
+ nextInvoice: {
890
+ /**
891
+ * When the invoice is issued and charged (UTC); during a trial, its end.
892
+ */
893
+ date: string;
894
+ /**
895
+ * ISO currency, upper case (EUR).
896
+ */
897
+ currency: string;
898
+ /**
899
+ * Before discounts and tax.
900
+ */
901
+ subtotal: number;
902
+ /**
903
+ * Total with tax (TTC), after discounts.
904
+ */
905
+ total: number;
906
+ /**
907
+ * Total without tax (HT), after discounts.
908
+ */
909
+ totalExcludingTax: number;
910
+ /**
911
+ * The tax: total minus totalExcludingTax.
912
+ */
913
+ tax: number;
914
+ /**
915
+ * What will actually be charged (the total less any customer credit).
916
+ */
917
+ amountDue: number;
918
+ /**
919
+ * The discounts applied (coupon, promotion code).
920
+ */
921
+ discounts: Array<{
922
+ /**
923
+ * The discount, in the currency.
924
+ */
925
+ amount: number;
926
+ /**
927
+ * The Stripe coupon's id.
928
+ */
929
+ coupon: string | null;
930
+ /**
931
+ * The promotion code the customer entered (SOLO19, LAUNCH...).
932
+ */
933
+ promotionCode: string | null;
934
+ /**
935
+ * When the discount stops applying; null: it applies to every invoice (forever).
936
+ */
937
+ endsAt: string | null;
938
+ }>;
939
+ } | null;
940
+ /**
941
+ * The last invoice that asked for money (a trial's 0 invoice is not one); null: none yet, or Stripe unavailable.
942
+ */
943
+ lastPayment: {
944
+ /**
945
+ * When it was paid; for an unpaid one, when it was issued (UTC).
946
+ */
947
+ date: string;
948
+ /**
949
+ * Paid, or still due, in the currency.
950
+ */
951
+ amount: number;
952
+ /**
953
+ * ISO currency, upper case.
954
+ */
955
+ currency: string;
956
+ /**
957
+ * paid; failed (the charge was refused, Stripe may retry at nextRetryAt); pending (not tried yet).
958
+ */
959
+ status: 'paid' | 'failed' | 'pending';
960
+ /**
961
+ * When Stripe tries the charge again; null if it will not.
962
+ */
963
+ nextRetryAt: string | null;
964
+ } | null;
965
+ };
966
+ };
485
967
  type GroupDto = {
486
968
  /**
487
- * Group (customer) id.
969
+ * Workspace id (formerly a group).
970
+ */
971
+ id: string;
972
+ /**
973
+ * Workspace name, as shown in the app.
974
+ */
975
+ name: string;
976
+ };
977
+ type WorkspaceRefDto = {
978
+ /**
979
+ * Workspace id.
488
980
  */
489
981
  id: string;
490
982
  /**
491
- * Group name, as shown in the app.
983
+ * Workspace name, as shown in the app.
492
984
  */
493
985
  name: string;
494
986
  };
@@ -518,9 +1010,15 @@ type IntegrationListItemDto = {
518
1010
  */
519
1011
  profile: string | null;
520
1012
  /**
521
- * Group the channel belongs to, when it belongs to one.
1013
+ * Workspace the channel belongs to (every channel belongs to exactly one).
1014
+ */
1015
+ workspace: WorkspaceRefDto;
1016
+ /**
1017
+ * Deprecated: same value as `workspace`, kept for the published SDKs.
1018
+ *
1019
+ * @deprecated
522
1020
  */
523
- customer?: GroupDto;
1021
+ customer?: WorkspaceRefDto;
524
1022
  };
525
1023
  type SocialAuthUrlDto = {
526
1024
  /**
@@ -553,69 +1051,29 @@ type NotificationsPageDto = {
553
1051
  */
554
1052
  hasMore: boolean;
555
1053
  };
556
- type VideoDto = {
1054
+ type IntegrationToolParamDto = {
1055
+ /**
1056
+ * Key to send in `data`.
1057
+ */
1058
+ key: string;
557
1059
  type: string;
558
- output: 'vertical' | 'horizontal';
559
- customParams: {
560
- [key: string]: unknown;
561
- };
1060
+ description: string;
562
1061
  };
563
- type GeneratedVideoDto = {
1062
+ type IntegrationToolDto = {
564
1063
  /**
565
- * Media id — what you pass as `image[].id` when creating a post.
1064
+ * Method to call on POST /integration-trigger/{id}.
566
1065
  */
567
- id: string;
1066
+ methodName: string;
568
1067
  /**
569
- * Stored file name.
1068
+ * What the tool does.
570
1069
  */
571
- name: string;
1070
+ description: string;
572
1071
  /**
573
- * Name of the file as it was sent, when known.
1072
+ * The keys `data` accepts.
574
1073
  */
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 = {
605
- /**
606
- * Method to call on POST /integration-trigger/{id}.
607
- */
608
- methodName: string;
609
- /**
610
- * What the tool does.
611
- */
612
- description: string;
613
- /**
614
- * The keys `data` accepts.
615
- */
616
- dataSchema: Array<IntegrationToolParamDto>;
617
- };
618
- type IntegrationSettingsOutputDto = {
1074
+ dataSchema: Array<IntegrationToolParamDto>;
1075
+ };
1076
+ type IntegrationSettingsOutputDto = {
619
1077
  /**
620
1078
  * Human-readable posting rules for the provider.
621
1079
  */
@@ -659,8 +1117,14 @@ type UpdateReleaseIdDto = {
659
1117
  releaseId: string;
660
1118
  };
661
1119
  type AnalyticsPointDto = {
1120
+ /**
1121
+ * The day of the point, `YYYY-MM-DD`, as the channel's platform gives it.
1122
+ */
662
1123
  date: string;
663
- total: string;
1124
+ /**
1125
+ * The value: a number for Instagram and Pinterest (read as the platform gives it), a string for the other channels.
1126
+ */
1127
+ total: number | string;
664
1128
  };
665
1129
  type AnalyticsMetricDto = {
666
1130
  /**
@@ -750,11 +1214,9 @@ type IntegrationTriggerDto = {
750
1214
  };
751
1215
  type IntegrationTriggerResultDto = {
752
1216
  /**
753
- * Raw provider answer — its shape depends on the tool called.
1217
+ * 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
1218
  */
755
- output: {
756
- [key: string]: unknown;
757
- };
1219
+ output: unknown;
758
1220
  };
759
1221
  type InstagramMediaDto = {
760
1222
  /**
@@ -768,6 +1230,9 @@ type InstagramMediaDto = {
768
1230
  media_type?: string;
769
1231
  media_url?: string;
770
1232
  permalink?: string;
1233
+ /**
1234
+ * As Instagram gives it, e.g. `2026-10-30T09:00:00+0000` (the offset without a colon).
1235
+ */
771
1236
  timestamp?: string;
772
1237
  comments_count?: number;
773
1238
  like_count?: number;
@@ -782,6 +1247,9 @@ type InstagramCommentAuthorDto = {
782
1247
  type InstagramCommentDto = {
783
1248
  id: string;
784
1249
  text: string;
1250
+ /**
1251
+ * As Instagram gives it, e.g. `2026-10-30T09:00:00+0000` (the offset without a colon).
1252
+ */
785
1253
  timestamp: string;
786
1254
  from: InstagramCommentAuthorDto;
787
1255
  /**
@@ -800,13 +1268,50 @@ type ReplyToCommentDto = {
800
1268
  type SuccessDto = {
801
1269
  success: boolean;
802
1270
  };
1271
+ /**
1272
+ * The platform's answer, as it gives it.
1273
+ */
1274
+ type CommentReplyResultDto = {
1275
+ /**
1276
+ * The id of the reply, given by the platform.
1277
+ */
1278
+ id?: string;
1279
+ };
1280
+ /**
1281
+ * The platform's answer, as it gives it.
1282
+ */
1283
+ type DirectMessageResultDto = {
1284
+ /**
1285
+ * The person the message went to.
1286
+ */
1287
+ recipient_id?: string;
1288
+ /**
1289
+ * The id of the message, given by the platform.
1290
+ */
1291
+ message_id?: string;
1292
+ };
803
1293
  type HideCommentDto = {
804
1294
  hide: boolean;
805
1295
  };
806
1296
  type InboxConversationDto = {
1297
+ /**
1298
+ * Opens the conversation (`getConversation`): Instagram's conversation id, or the person's id while Instagram has not named the thread yet.
1299
+ */
807
1300
  id: string;
808
1301
  /**
809
- * Box the conversation sits in (`category`) and its sort timestamp (`sortAt`).
1302
+ * Instagram's conversation id, null until Instagram named the thread.
1303
+ */
1304
+ conversationId?: string | null;
1305
+ /**
1306
+ * The person's Instagram id: the `recipientId` of `sendDirectMessage`.
1307
+ */
1308
+ personId?: string;
1309
+ /**
1310
+ * Newest activity of the thread.
1311
+ */
1312
+ updated_time?: string;
1313
+ /**
1314
+ * Box the conversation sits in (`category`, `label`, `dismissed`), its sort timestamp (`sortAt`) and when Instagram stops accepting an answer (`replyWindowClosesAt`).
810
1315
  */
811
1316
  inbox?: {
812
1317
  [key: string]: unknown;
@@ -818,13 +1323,21 @@ type InboxConversationDto = {
818
1323
  [key: string]: unknown;
819
1324
  };
820
1325
  /**
821
- * Meta shape: `{ data: [ message ] }`, most recent first.
1326
+ * Meta shape: `{ data: [ message ] }` — the newest message of the thread, for a preview.
822
1327
  */
823
1328
  messages?: {
824
1329
  [key: string]: unknown;
825
1330
  };
1331
+ /**
1332
+ * This row's place in the list: pass the last row's `cursor` as `after` for the next page.
1333
+ */
1334
+ cursor?: string;
826
1335
  };
827
1336
  type SendMessageDto = {
1337
+ /**
1338
+ * 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.
1339
+ */
1340
+ replyTo?: string;
828
1341
  recipientId: string;
829
1342
  text: string;
830
1343
  linkUrl?: string;
@@ -840,15 +1353,69 @@ type InboxPollResultDto = {
840
1353
  */
841
1354
  handled: number;
842
1355
  };
843
- type InboxParticipantDto = {
844
- id: string;
845
- username?: string;
1356
+ type InboxTagDto = {
1357
+ /**
1358
+ * `automation`: a template the person went through and the word that started it. `tag`: a label an `add_tag` step left on them.
1359
+ */
1360
+ kind: 'automation' | 'tag';
1361
+ /**
1362
+ * `automation` only: the template's id.
1363
+ */
1364
+ automationId?: string;
1365
+ /**
1366
+ * `automation` only: the template's name.
1367
+ */
1368
+ automation?: string;
1369
+ /**
1370
+ * `automation` only: the word the person wrote; empty for a story reply where any reply counts.
1371
+ */
1372
+ keyword?: string;
1373
+ /**
1374
+ * `tag` only: the label.
1375
+ */
1376
+ value?: string;
1377
+ /**
1378
+ * How many runs carry it.
1379
+ */
1380
+ count: number;
1381
+ /**
1382
+ * The most recent of them.
1383
+ */
1384
+ lastAt: string;
846
1385
  };
847
- type InboxMessageDto = {
1386
+ type InboxThreadDto = {
1387
+ /**
1388
+ * Instagram's conversation id, or the person's id while Instagram has not named the thread.
1389
+ */
848
1390
  id: string;
849
- message: string;
850
- created_time: string;
851
- from?: InboxParticipantDto;
1391
+ conversationId?: string | null;
1392
+ /**
1393
+ * The person's Instagram id: the `recipientId` of `sendDirectMessage`.
1394
+ */
1395
+ personId?: string;
1396
+ updated_time?: string;
1397
+ /**
1398
+ * Meta shape: `{ data: [ { id, username } ] }`.
1399
+ */
1400
+ participants?: {
1401
+ [key: string]: unknown;
1402
+ };
1403
+ /**
1404
+ * 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`.
1405
+ */
1406
+ messages?: {
1407
+ [key: string]: unknown;
1408
+ };
1409
+ /**
1410
+ * Same as on `listConversations`.
1411
+ */
1412
+ inbox?: {
1413
+ [key: string]: unknown;
1414
+ };
1415
+ /**
1416
+ * What the automations know of the person, most recent first: the templates they went through, word by word, and the labels those left.
1417
+ */
1418
+ tags?: Array<InboxTagDto>;
852
1419
  };
853
1420
  type AutomationFlowIssueDto = {
854
1421
  level: 'error' | 'warning';
@@ -882,9 +1449,9 @@ type AutomationFlowResponseDto = {
882
1449
  */
883
1450
  integrationId?: string | null;
884
1451
  /**
885
- * The switch of every pose of the template.
1452
+ * 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
1453
  */
887
- status: 'DRAFT' | 'ACTIVE' | 'PAUSED';
1454
+ status: 'DRAFT' | 'ACTIVE' | 'PAUSED' | 'ARCHIVED';
888
1455
  /**
889
1456
  * 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
1457
  */
@@ -900,17 +1467,36 @@ type AutomationFlowResponseDto = {
900
1467
  updatedAt: string;
901
1468
  };
902
1469
  type EmailPreviewDto = {
903
- brevoTemplateId: number;
1470
+ /**
1471
+ * The tool, by its identifier (`brevo`, `resend`): the step's `provider`.
1472
+ * Required unless the deprecated `brevoTemplateId` is given.
1473
+ */
1474
+ provider?: string;
1475
+ /**
1476
+ * The template, as the tool names it: the step's `templateId`. Required
1477
+ * unless the deprecated `brevoTemplateId` is given.
1478
+ */
1479
+ templateId?: string;
1480
+ /**
1481
+ * Deprecated: `provider: "brevo"` with `templateId`. Still accepted, read as
1482
+ * exactly that.
1483
+ *
1484
+ * @deprecated
1485
+ */
1486
+ brevoTemplateId?: number;
904
1487
  dmLinkUrl?: string | null;
905
1488
  resourceName?: string | null;
906
1489
  keyword?: string | null;
907
1490
  username?: string | null;
908
1491
  };
909
1492
  type EmailPreviewDtoResponse = {
910
- templateId: number;
1493
+ /**
1494
+ * The template's id in the tool, as a string (Brevo's numeric ids included).
1495
+ */
1496
+ templateId: string;
911
1497
  templateName: string;
912
1498
  /**
913
- * Whether Brevo has the template active.
1499
+ * Whether the tool would send the template (active in Brevo, published in Resend).
914
1500
  */
915
1501
  active: boolean;
916
1502
  /**
@@ -918,7 +1504,7 @@ type EmailPreviewDtoResponse = {
918
1504
  */
919
1505
  subject: string;
920
1506
  /**
921
- * Brevo sender (name, email).
1507
+ * The template's sender (name, email).
922
1508
  */
923
1509
  sender: {
924
1510
  [key: string]: unknown;
@@ -928,14 +1514,30 @@ type EmailPreviewDtoResponse = {
928
1514
  */
929
1515
  html: string;
930
1516
  /**
931
- * The params the template was rendered with (LINK, RESOURCE, KEYWORD, USERNAME).
1517
+ * The variables the template was rendered with (LINK, RESOURCE, KEYWORD, USERNAME).
932
1518
  */
933
1519
  params: {
934
1520
  [key: string]: unknown;
935
1521
  };
936
1522
  };
937
1523
  type EmailTestDto = {
938
- brevoTemplateId: number;
1524
+ /**
1525
+ * The tool, by its identifier (`brevo`, `resend`): the step's `provider`.
1526
+ * Required unless the deprecated `brevoTemplateId` is given.
1527
+ */
1528
+ provider?: string;
1529
+ /**
1530
+ * The template, as the tool names it: the step's `templateId`. Required
1531
+ * unless the deprecated `brevoTemplateId` is given.
1532
+ */
1533
+ templateId?: string;
1534
+ /**
1535
+ * Deprecated: `provider: "brevo"` with `templateId`. Still accepted, read as
1536
+ * exactly that.
1537
+ *
1538
+ * @deprecated
1539
+ */
1540
+ brevoTemplateId?: number;
939
1541
  dmLinkUrl?: string | null;
940
1542
  resourceName?: string | null;
941
1543
  keyword?: string | null;
@@ -964,12 +1566,26 @@ type UpdateAutomationFlowDto = {
964
1566
  };
965
1567
  };
966
1568
  type AutomationFlowStatusDto = {
967
- status: 'DRAFT' | 'ACTIVE' | 'PAUSED';
1569
+ status: 'DRAFT' | 'ACTIVE' | 'PAUSED' | 'ARCHIVED';
968
1570
  };
969
1571
  type AutomationPoseFlowDto = {
970
1572
  id: string;
971
1573
  name: string;
972
- status: 'DRAFT' | 'ACTIVE' | 'PAUSED';
1574
+ status: 'DRAFT' | 'ACTIVE' | 'PAUSED' | 'ARCHIVED';
1575
+ };
1576
+ type AutomationPoseWaitingAtDto = {
1577
+ /**
1578
+ * Waiting on the first DM: its button never tapped. Nothing more can be sent: Meta allows one private reply per comment.
1579
+ */
1580
+ firstMessage: number;
1581
+ /**
1582
+ * Waiting on a step that asks for the email: they answered the first DM, and gave no address yet.
1583
+ */
1584
+ email: number;
1585
+ /**
1586
+ * Waiting anywhere else: a later button, a delay.
1587
+ */
1588
+ other: number;
973
1589
  };
974
1590
  type AutomationPoseCountsDto = {
975
1591
  runs: number;
@@ -977,6 +1593,33 @@ type AutomationPoseCountsDto = {
977
1593
  done: number;
978
1594
  failed: number;
979
1595
  emails: number;
1596
+ /**
1597
+ * 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`.
1598
+ */
1599
+ replied: number;
1600
+ /**
1601
+ * People who clicked at least one link they were sent (through the click hop), link previews left out. Out of `runs`.
1602
+ */
1603
+ clicked: number;
1604
+ /**
1605
+ * Where the `waiting` people wait, read on the step each run is parked on.
1606
+ */
1607
+ waitingAt: AutomationPoseWaitingAtDto;
1608
+ };
1609
+ type AutomationPoseMediaDto = {
1610
+ /**
1611
+ * Cover of the publication, as the analytics collector last read it (an Instagram CDN URL, which expires).
1612
+ */
1613
+ coverUrl?: string | null;
1614
+ /**
1615
+ * Its caption, in full.
1616
+ */
1617
+ caption?: string | null;
1618
+ publishedAt?: string | null;
1619
+ /**
1620
+ * Its Instagram permalink.
1621
+ */
1622
+ url?: string | null;
980
1623
  };
981
1624
  type AutomationFlowPoseResponseDto = {
982
1625
  id: string;
@@ -1005,11 +1648,19 @@ type AutomationFlowPoseResponseDto = {
1005
1648
  * The pause of this pose alone.
1006
1649
  */
1007
1650
  active: boolean;
1651
+ /**
1652
+ * 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.
1653
+ */
1654
+ issues: Array<AutomationFlowIssueDto>;
1008
1655
  flow?: AutomationPoseFlowDto;
1009
1656
  /**
1010
1657
  * Present on list routes.
1011
1658
  */
1012
1659
  counts?: AutomationPoseCountsDto;
1660
+ /**
1661
+ * 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.
1662
+ */
1663
+ media?: AutomationPoseMediaDto | null;
1013
1664
  createdAt: string;
1014
1665
  updatedAt: string;
1015
1666
  };
@@ -1061,6 +1712,18 @@ type AutomationFlowRunResponseDto = {
1061
1712
  createdAt: string;
1062
1713
  updatedAt: string;
1063
1714
  completedAt?: string | null;
1715
+ /**
1716
+ * First click on a link the run sent (through the click hop), link previews left out. Null: never clicked.
1717
+ */
1718
+ clickedAt?: string | null;
1719
+ /**
1720
+ * Clicks on the links the run sent, link previews left out.
1721
+ */
1722
+ clicks: number;
1723
+ /**
1724
+ * 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.
1725
+ */
1726
+ codes?: Array<string>;
1064
1727
  };
1065
1728
  type AutomationFlowPollResultDto = {
1066
1729
  /**
@@ -1087,6 +1750,72 @@ type AutomationFlowReplayResultDto = {
1087
1750
  status?: string;
1088
1751
  error?: string | null;
1089
1752
  };
1753
+ type AutomationFlowCatchUpCommentDto = {
1754
+ commentId: string;
1755
+ username?: string | null;
1756
+ /**
1757
+ * The comment, as written.
1758
+ */
1759
+ text: string;
1760
+ /**
1761
+ * As Instagram gives it, e.g. `2026-10-30T09:00:00+0000` (the offset without a colon).
1762
+ */
1763
+ timestamp?: string | null;
1764
+ /**
1765
+ * The trigger word it matched.
1766
+ */
1767
+ keyword: string;
1768
+ };
1769
+ type AutomationFlowCatchUpPreviewDto = {
1770
+ /**
1771
+ * Comments read on the publication.
1772
+ */
1773
+ checked: number;
1774
+ /**
1775
+ * Comments that would start the automation: the same guards as a new comment, its date before the pose aside.
1776
+ */
1777
+ matching: number;
1778
+ /**
1779
+ * The matching comments, oldest first.
1780
+ */
1781
+ comments: Array<AutomationFlowCatchUpCommentDto>;
1782
+ /**
1783
+ * 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`.
1784
+ */
1785
+ skipped: {
1786
+ [key: string]: number;
1787
+ };
1788
+ /**
1789
+ * Comments still waiting from an earlier catch-up of this pose.
1790
+ */
1791
+ queued: number;
1792
+ /**
1793
+ * Runs started per minute at most (Meta takes 750 private replies per hour and account; a catch-up keeps to 600).
1794
+ */
1795
+ perMinute: number;
1796
+ /**
1797
+ * Minutes the sending would take after the first batch.
1798
+ */
1799
+ minutes: number;
1800
+ };
1801
+ type AutomationFlowCatchUpResultDto = {
1802
+ /**
1803
+ * Comments added by this call.
1804
+ */
1805
+ matching: number;
1806
+ /**
1807
+ * Runs started at once.
1808
+ */
1809
+ started: number;
1810
+ /**
1811
+ * Comments left for the clock, started a few each minute.
1812
+ */
1813
+ queued: number;
1814
+ /**
1815
+ * Runs started per minute at most.
1816
+ */
1817
+ perMinute: number;
1818
+ };
1090
1819
  type WebhookEventDto = {
1091
1820
  name: string;
1092
1821
  description: string;
@@ -1144,6 +1873,30 @@ type WebhookCreatedDto = {
1144
1873
  */
1145
1874
  secret?: string;
1146
1875
  };
1876
+ type TestWebhookDto = {
1877
+ /**
1878
+ * The event to simulate. Default: the first event the webhook subscribed to, or `post.published` when it receives every event.
1879
+ */
1880
+ event?: 'post.published' | 'comment.received' | 'dm.received' | 'automation.triggered' | 'automation.email_captured';
1881
+ };
1882
+ type WebhookTestResultDto = {
1883
+ /**
1884
+ * Whether the endpoint answered 2xx. One attempt, no retry, 10-second timeout.
1885
+ */
1886
+ delivered: boolean;
1887
+ /**
1888
+ * The HTTP status the endpoint answered; null when nothing answered (timeout, DNS, connection refused).
1889
+ */
1890
+ status: number | null;
1891
+ /**
1892
+ * The event simulated.
1893
+ */
1894
+ event: string;
1895
+ /**
1896
+ * The `id` of the envelope and the `X-Nadia-Delivery` header, to find it on the receiving side.
1897
+ */
1898
+ deliveryId: string;
1899
+ };
1147
1900
  type ContentChannelPerformanceDto = {
1148
1901
  integrationId: string;
1149
1902
  postId: string;
@@ -1240,7 +1993,7 @@ type ContentListItemDto = {
1240
1993
  */
1241
1994
  resourceBrief?: string | null;
1242
1995
  /**
1243
- * The column of the card, in board order.
1996
+ * 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.
1244
1997
  */
1245
1998
  stage: 'IDEA' | 'SCRIPT' | 'VALIDATED' | 'TO_SHOOT' | 'TO_EDIT' | 'TO_SCHEDULE' | 'PUBLISHED';
1246
1999
  /**
@@ -1279,6 +2032,11 @@ type ContentListItemDto = {
1279
2032
  * One entry per channel of each post scheduled from the card. Empty when there is none, or they were deleted.
1280
2033
  */
1281
2034
  posts: Array<ContentPostDto>;
2035
+ source?: ContentSourceDto | null;
2036
+ /**
2037
+ * 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.
2038
+ */
2039
+ discardedAt?: string | null;
1282
2040
  };
1283
2041
  type CreateContentDto = {
1284
2042
  /**
@@ -1366,7 +2124,7 @@ type ContentDto = {
1366
2124
  */
1367
2125
  resourceBrief?: string | null;
1368
2126
  /**
1369
- * The column of the card, in board order.
2127
+ * 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.
1370
2128
  */
1371
2129
  stage: 'IDEA' | 'SCRIPT' | 'VALIDATED' | 'TO_SHOOT' | 'TO_EDIT' | 'TO_SCHEDULE' | 'PUBLISHED';
1372
2130
  /**
@@ -1397,6 +2155,11 @@ type ContentDto = {
1397
2155
  parentId?: string | null;
1398
2156
  createdAt: string;
1399
2157
  updatedAt: string;
2158
+ source?: ContentSourceDto | null;
2159
+ /**
2160
+ * 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.
2161
+ */
2162
+ discardedAt?: string | null;
1400
2163
  };
1401
2164
  type UpsertContentDto = {
1402
2165
  /**
@@ -1469,6 +2232,10 @@ type UpdateContentDto = {
1469
2232
  plannedAt?: string | null;
1470
2233
  videoMediaId?: string | null;
1471
2234
  videoPath?: string | null;
2235
+ /**
2236
+ * true sets the idea aside (out of the idea box, nothing is deleted; discardedAt is set), false puts it back in the box.
2237
+ */
2238
+ discarded?: boolean;
1472
2239
  };
1473
2240
  type MoveContentDto = {
1474
2241
  stage: 'IDEA' | 'SCRIPT' | 'VALIDATED' | 'TO_SHOOT' | 'TO_EDIT' | 'TO_SCHEDULE' | 'PUBLISHED';
@@ -1599,122 +2366,44 @@ type HookFamilyDto = {
1599
2366
  verdict: string;
1600
2367
  measuredAt: string;
1601
2368
  };
1602
- type HookImportItemDto = {
1603
- source?: string;
2369
+ type MusicTrackDto = {
1604
2370
  /**
1605
- * Creator handle.
2371
+ * Stable identifier.
1606
2372
  */
1607
- account: string;
2373
+ slug: string;
2374
+ title: string;
2375
+ artist: string;
1608
2376
  /**
1609
- * Id of the video on the platform.
2377
+ * `piano` (storytelling, educational, default), `news` (tension, actu), `synthwave` (tech), `epique` (cinematic).
1610
2378
  */
1611
- externalId: string;
1612
- publishedAt?: string;
1613
- language?: string;
2379
+ pillar: string;
1614
2380
  /**
1615
- * The first sentence.
2381
+ * Seconds.
1616
2382
  */
1617
- hook: string;
2383
+ durationS: number;
2384
+ bpm?: number | null;
1618
2385
  /**
1619
- * The first ~40 words, context only.
2386
+ * Shape of the first seconds: crescendo, fade-in, nappe…
1620
2387
  */
1621
- opening: string;
1622
- views: number;
2388
+ intro?: string | null;
1623
2389
  /**
1624
- * views / baseline of the account that day.
2390
+ * `ok` = fits under a voice; `limite` = usable, a bit fast or a punch early on.
1625
2391
  */
1626
- normViews: number;
1627
- family?: string;
1628
- familySecond?: string;
1629
- nature?: string;
1630
- concrete?: boolean;
1631
- audience?: string;
2392
+ verdict: string;
2393
+ verdictWhy?: string | null;
1632
2394
  /**
1633
- * The subject in clear, a few words.
2395
+ * Public Domain, CC0, CC-BY 3.0, CC-BY 4.0.
1634
2396
  */
1635
- subject?: string;
1636
- format?: string;
2397
+ license: string;
2398
+ attributionRequired: boolean;
1637
2399
  /**
1638
- * `1`, `2` or `3+` gestures before 15 s.
2400
+ * The exact line to paste at the bottom of the description, before the hashtags. Null when nothing is owed.
1639
2401
  */
1640
- lockinGestures?: string;
1641
- textOnScreen?: boolean;
1642
- };
1643
- type HooksImportDto = {
2402
+ creditLine?: string | null;
2403
+ sourceUrl?: string | null;
2404
+ licenseUrl?: string | null;
1644
2405
  /**
1645
- * Up to 500 hooks per call, upserted on (source, account, externalId).
1646
- */
1647
- items: Array<HookImportItemDto>;
1648
- };
1649
- type HooksImportResultDto = {
1650
- imported: number;
1651
- total: number;
1652
- };
1653
- type HookFamilyStatDto = {
1654
- family: string;
1655
- /**
1656
- * Nature of video this row is measured on; `all` = the whole corpus.
1657
- */
1658
- nature?: string;
1659
- n: number;
1660
- accounts: number;
1661
- ratio?: number | null;
1662
- ps?: number | null;
1663
- bangers?: number | null;
1664
- bangersRest?: number | null;
1665
- accountsFor: number;
1666
- accountsAgainst: number;
1667
- pSign?: number | null;
1668
- verdict: string;
1669
- };
1670
- type HookFamiliesImportDto = {
1671
- /**
1672
- * When the corpus was measured.
1673
- */
1674
- measuredAt: string;
1675
- /**
1676
- * The whole table: it replaces the previous one.
1677
- */
1678
- families: Array<HookFamilyStatDto>;
1679
- };
1680
- type MusicTrackDto = {
1681
- /**
1682
- * Stable identifier.
1683
- */
1684
- slug: string;
1685
- title: string;
1686
- artist: string;
1687
- /**
1688
- * `piano` (storytelling, educational, default), `news` (tension, actu), `synthwave` (tech), `epique` (cinematic).
1689
- */
1690
- pillar: string;
1691
- /**
1692
- * Seconds.
1693
- */
1694
- durationS: number;
1695
- bpm?: number | null;
1696
- /**
1697
- * Shape of the first seconds: crescendo, fade-in, nappe…
1698
- */
1699
- intro?: string | null;
1700
- /**
1701
- * `ok` = fits under a voice; `limite` = usable, a bit fast or a punch early on.
1702
- */
1703
- verdict: string;
1704
- verdictWhy?: string | null;
1705
- /**
1706
- * Public Domain, CC0, CC-BY 3.0, CC-BY 4.0.
1707
- */
1708
- license: string;
1709
- attributionRequired: boolean;
1710
- /**
1711
- * The exact line to paste at the bottom of the description, before the hashtags. Null when nothing is owed.
1712
- */
1713
- creditLine?: string | null;
1714
- sourceUrl?: string | null;
1715
- licenseUrl?: string | null;
1716
- /**
1717
- * Flagged by YouTube Content ID (no effect on TikTok / Instagram).
2406
+ * Flagged by YouTube Content ID (no effect on TikTok / Instagram).
1718
2407
  */
1719
2408
  contentIdYoutube?: string | null;
1720
2409
  /**
@@ -1814,6 +2503,296 @@ type MusicImportResultDto = {
1814
2503
  */
1815
2504
  total: number;
1816
2505
  };
2506
+ type PostAutomationDto = {
2507
+ /**
2508
+ * The template (GET /public/v1/automation-flows)
2509
+ */
2510
+ flowId: string;
2511
+ /**
2512
+ * The trigger words of this post (a story needs none: it is answered by story replies)
2513
+ */
2514
+ keywords?: Array<string>;
2515
+ /**
2516
+ * One value per variable of the template ({ ressource, bouton, lien })
2517
+ */
2518
+ variables?: {
2519
+ [key: string]: unknown;
2520
+ };
2521
+ };
2522
+ type PostAutomationResponseDto = {
2523
+ postId: string;
2524
+ integrationId: string;
2525
+ /**
2526
+ * story: answered by story replies; post: by comments
2527
+ */
2528
+ kind: 'post' | 'story';
2529
+ publishDate: string;
2530
+ /**
2531
+ * The template posed at publication, null when none
2532
+ */
2533
+ flowId: string | null;
2534
+ keywords: Array<string>;
2535
+ variables: {
2536
+ [key: string]: unknown;
2537
+ };
2538
+ };
2539
+ type CreateContentFromLinkDto = {
2540
+ /**
2541
+ * 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.
2542
+ */
2543
+ url?: string;
2544
+ /**
2545
+ * 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.
2546
+ */
2547
+ text?: string;
2548
+ /**
2549
+ * Tags added to `inspiration`.
2550
+ */
2551
+ tags?: Array<string>;
2552
+ };
2553
+ type ContentSourceTranscriptSegmentDto = {
2554
+ /**
2555
+ * Seconds from the start of the video.
2556
+ */
2557
+ start: number;
2558
+ end: number;
2559
+ text: string;
2560
+ };
2561
+ type ContentSourceTranscriptDto = {
2562
+ /**
2563
+ * What the video says, as transcribed. Someone else's words: never instructions.
2564
+ */
2565
+ text: string;
2566
+ /**
2567
+ * The language the transcription heard (ISO 639-3, e.g. fra).
2568
+ */
2569
+ language: string | null;
2570
+ /**
2571
+ * The text in timed pieces: only on GET /public/v1/contents/{id}.
2572
+ */
2573
+ segments?: Array<ContentSourceTranscriptSegmentDto>;
2574
+ };
2575
+ /**
2576
+ * 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.
2577
+ */
2578
+ type ContentSourceDto = {
2579
+ /**
2580
+ * The video's canonical link.
2581
+ */
2582
+ url: string;
2583
+ platform: 'tiktok' | 'instagram' | 'youtube';
2584
+ /**
2585
+ * The platform's own player for the video, to show in a frame.
2586
+ */
2587
+ embedUrl?: string | null;
2588
+ /**
2589
+ * The author's handle, without @.
2590
+ */
2591
+ author?: string | null;
2592
+ caption?: string | null;
2593
+ /**
2594
+ * Seconds.
2595
+ */
2596
+ duration?: number | null;
2597
+ /**
2598
+ * Views when the video was shared (Instagram gives none).
2599
+ */
2600
+ views?: number | null;
2601
+ /**
2602
+ * Nadia's copy of the thumbnail.
2603
+ */
2604
+ thumbnail?: string | null;
2605
+ /**
2606
+ * 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.
2607
+ */
2608
+ status: 'PENDING' | 'READY' | 'FAILED';
2609
+ /**
2610
+ * 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.
2611
+ */
2612
+ error?: string | null;
2613
+ transcript?: ContentSourceTranscriptDto | null;
2614
+ /**
2615
+ * When the video was shared.
2616
+ */
2617
+ at?: string | null;
2618
+ };
2619
+ type ContentFromLinkDto = {
2620
+ /**
2621
+ * False when the video was already a card of your organisation.
2622
+ */
2623
+ created: boolean;
2624
+ content: ContentDto;
2625
+ /**
2626
+ * A short English sentence for a notification.
2627
+ */
2628
+ message: string;
2629
+ /**
2630
+ * The card in the app.
2631
+ */
2632
+ appUrl: string;
2633
+ };
2634
+ type SetPostPublicationDto = {
2635
+ /**
2636
+ * 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.
2637
+ */
2638
+ publication: string | null;
2639
+ };
2640
+ type PostPublicationDto = {
2641
+ /**
2642
+ * The publication the post is in now.
2643
+ */
2644
+ publication: string;
2645
+ /**
2646
+ * The posts of that publication (parent posts, oldest first).
2647
+ */
2648
+ posts: Array<string>;
2649
+ };
2650
+ type ViewsPerDayItemDto = {
2651
+ /**
2652
+ * The day, YYYY-MM-DD in `timeZone`.
2653
+ */
2654
+ date: string;
2655
+ /**
2656
+ * Views gained that day; null when nothing was read (never 0 for unknown).
2657
+ */
2658
+ views: number | null;
2659
+ /**
2660
+ * Readings of that day (videos read, or 1 for a channel total).
2661
+ */
2662
+ videos: number;
2663
+ /**
2664
+ * Readings that did not count: a first reading, or one after a gap of more than 2 days.
2665
+ */
2666
+ baselines: number;
2667
+ /**
2668
+ * Readings lower than the one before, counted 0.
2669
+ */
2670
+ drops: number;
2671
+ };
2672
+ type ViewsPerDayDto = {
2673
+ /**
2674
+ * Start of the window actually used (defaults to 30 days back).
2675
+ */
2676
+ from: string;
2677
+ /**
2678
+ * End of the window actually used (defaults to now).
2679
+ */
2680
+ to: string;
2681
+ /**
2682
+ * The time zone of the days.
2683
+ */
2684
+ timeZone: string;
2685
+ /**
2686
+ * Where the numbers come from: the readings of every video, the platform's views of the day, the channel's total, or nothing.
2687
+ */
2688
+ source: 'videos' | 'platform' | 'totals' | 'none';
2689
+ /**
2690
+ * Sum of the days that have a number.
2691
+ */
2692
+ total: number;
2693
+ days: Array<ViewsPerDayItemDto>;
2694
+ };
2695
+ type CreateWorkspaceDto = {
2696
+ /**
2697
+ * Workspace name, unique in the organization.
2698
+ */
2699
+ name: string;
2700
+ /**
2701
+ * Whose workspace it is: your own (`PERSONAL`, the default), your business, or a client of yours.
2702
+ */
2703
+ type?: 'PERSONAL' | 'BUSINESS' | 'CLIENT';
2704
+ /**
2705
+ * Country of the audience, ISO 3166-1 alpha-2 (`MT`). `null` or `""` clears it.
2706
+ */
2707
+ country?: string | null;
2708
+ /**
2709
+ * Time zone of the workspace, IANA (`Europe/Malta`). `null` or `""` clears it. Changing it moves no post: a post keeps its instant.
2710
+ */
2711
+ timezone?: string | null;
2712
+ /**
2713
+ * What the workspace is about — brand, audience, tone. `null` or `""` clears it.
2714
+ */
2715
+ about?: string | null;
2716
+ /**
2717
+ * Website of the brand, an http(s) URL. `null` or `""` clears it.
2718
+ */
2719
+ website?: string | null;
2720
+ /**
2721
+ * Id of a media of your library to use as the logo. `null` or `""` clears it.
2722
+ */
2723
+ logoId?: string | null;
2724
+ /**
2725
+ * Channels to move into this workspace: each leaves its former workspace. An id that is not one of your channels is ignored.
2726
+ */
2727
+ integrationIds?: Array<string>;
2728
+ };
2729
+ /**
2730
+ * Only the fields sent change.
2731
+ */
2732
+ type UpdateWorkspaceDto = {
2733
+ /**
2734
+ * Workspace name, unique in the organization.
2735
+ */
2736
+ name?: string;
2737
+ /**
2738
+ * Whose workspace it is: your own (`PERSONAL`, the default), your business, or a client of yours.
2739
+ */
2740
+ type?: 'PERSONAL' | 'BUSINESS' | 'CLIENT';
2741
+ /**
2742
+ * Country of the audience, ISO 3166-1 alpha-2 (`MT`). `null` or `""` clears it.
2743
+ */
2744
+ country?: string | null;
2745
+ /**
2746
+ * Time zone of the workspace, IANA (`Europe/Malta`). `null` or `""` clears it. Changing it moves no post: a post keeps its instant.
2747
+ */
2748
+ timezone?: string | null;
2749
+ /**
2750
+ * What the workspace is about — brand, audience, tone. `null` or `""` clears it.
2751
+ */
2752
+ about?: string | null;
2753
+ /**
2754
+ * Website of the brand, an http(s) URL. `null` or `""` clears it.
2755
+ */
2756
+ website?: string | null;
2757
+ /**
2758
+ * Id of a media of your library to use as the logo. `null` or `""` clears it.
2759
+ */
2760
+ logoId?: string | null;
2761
+ /**
2762
+ * Channels to move into this workspace: each leaves its former workspace. An id that is not one of your channels is ignored.
2763
+ */
2764
+ integrationIds?: Array<string>;
2765
+ };
2766
+ type WorkspaceDeletedDto = {
2767
+ /**
2768
+ * Id of the deleted workspace.
2769
+ */
2770
+ id: string;
2771
+ /**
2772
+ * Id of the workspace its channels (and their posts) moved to.
2773
+ */
2774
+ movedTo: string;
2775
+ };
2776
+ /**
2777
+ * 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`.
2778
+ */
2779
+ type WorkspaceErrorDto = {
2780
+ statusCode: number;
2781
+ /**
2782
+ * `workspace_name_taken` (409), `workspace_quota` (402, with `used` and `quota`), `workspace_last` (400: the last workspace cannot be deleted), `workspace_logo_unknown` (400).
2783
+ */
2784
+ code?: 'workspace_name_taken' | 'workspace_quota' | 'workspace_last' | 'workspace_logo_unknown';
2785
+ message: string | Array<string>;
2786
+ error?: string;
2787
+ /**
2788
+ * Workspaces you have (`workspace_quota`).
2789
+ */
2790
+ used?: number;
2791
+ /**
2792
+ * Workspaces your plan includes (`workspace_quota`).
2793
+ */
2794
+ quota?: number;
2795
+ };
1817
2796
  type UploadFileData = {
1818
2797
  body: {
1819
2798
  file: Blob | File;
@@ -1835,6 +2814,10 @@ type UploadFileErrors = {
1835
2814
  * The channel, post or record named in the path does not belong to your organisation.
1836
2815
  */
1837
2816
  404: ApiErrorDto;
2817
+ /**
2818
+ * `FILE_TOO_LARGE`: an MP4 over 25 MB in one request. Send it in parts: `POST /public/v1/uploads`, then its confirm.
2819
+ */
2820
+ 413: UploadErrorDto;
1838
2821
  };
1839
2822
  type UploadFileError = UploadFileErrors[keyof UploadFileErrors];
1840
2823
  type UploadFileResponses = {
@@ -1845,9 +2828,153 @@ type UploadFromUrlData = {
1845
2828
  body: UploadDto;
1846
2829
  path?: never;
1847
2830
  query?: never;
1848
- url: '/public/v1/upload-from-url';
2831
+ url: '/public/v1/upload-from-url';
2832
+ };
2833
+ type UploadFromUrlErrors = {
2834
+ /**
2835
+ * The request was rejected — `msg` says why.
2836
+ */
2837
+ 400: ApiErrorDto;
2838
+ /**
2839
+ * Missing or invalid API key (`Authorization` header).
2840
+ */
2841
+ 401: ApiErrorDto;
2842
+ /**
2843
+ * The channel, post or record named in the path does not belong to your organisation.
2844
+ */
2845
+ 404: ApiErrorDto;
2846
+ };
2847
+ type UploadFromUrlError = UploadFromUrlErrors[keyof UploadFromUrlErrors];
2848
+ type UploadFromUrlResponses = {
2849
+ 201: MediaResponseDto;
2850
+ };
2851
+ type UploadFromUrlResponse = UploadFromUrlResponses[keyof UploadFromUrlResponses];
2852
+ type CreateUploadData = {
2853
+ body: CreateUploadDto;
2854
+ path?: never;
2855
+ query?: never;
2856
+ url: '/public/v1/uploads';
2857
+ };
2858
+ type CreateUploadErrors = {
2859
+ /**
2860
+ * `INVALID_SIZE` or `INVALID_FILENAME`, or a body that is not JSON.
2861
+ */
2862
+ 400: UploadErrorDto;
2863
+ /**
2864
+ * Missing or invalid API key (`Authorization` header).
2865
+ */
2866
+ 401: ApiErrorDto;
2867
+ /**
2868
+ * `FILE_TOO_LARGE`: over the server's limit (`NADIA_DIRECT_UPLOAD_MAX_BYTES`, 500 MB by default).
2869
+ */
2870
+ 413: UploadErrorDto;
2871
+ /**
2872
+ * `UNSUPPORTED_CONTENT_TYPE`: only `video/mp4`, `image/jpeg`, `image/png`, `image/webp` and `image/gif`.
2873
+ */
2874
+ 415: UploadErrorDto;
2875
+ /**
2876
+ * `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.
2877
+ */
2878
+ 429: UploadErrorDto;
2879
+ /**
2880
+ * `SERVER_STORAGE_FULL` (a server that takes a single PUT only): retry later.
2881
+ */
2882
+ 507: UploadErrorDto;
2883
+ };
2884
+ type CreateUploadError = CreateUploadErrors[keyof CreateUploadErrors];
2885
+ type CreateUploadResponses = {
2886
+ /**
2887
+ * The upload is open: send the bytes, then confirm.
2888
+ */
2889
+ 201: UploadSessionDto;
2890
+ };
2891
+ type CreateUploadResponse = CreateUploadResponses[keyof CreateUploadResponses];
2892
+ type ConfirmUploadData = {
2893
+ body?: never;
2894
+ path: {
2895
+ uploadId: string;
2896
+ };
2897
+ query?: never;
2898
+ url: '/public/v1/uploads/{uploadId}/confirm';
2899
+ };
2900
+ type ConfirmUploadErrors = {
2901
+ /**
2902
+ * `SIZE_MISMATCH`: the parts received do not add up to the declared size (deleted: open a new upload).
2903
+ */
2904
+ 400: UploadErrorDto;
2905
+ /**
2906
+ * Missing or invalid API key (`Authorization` header).
2907
+ */
2908
+ 401: ApiErrorDto;
2909
+ /**
2910
+ * `UPLOAD_NOT_FOUND` (unknown `uploadId`, another organisation's, or expired), or `FILE_NOT_UPLOADED` (single PUT: nothing received yet).
2911
+ */
2912
+ 404: UploadErrorDto;
2913
+ /**
2914
+ * `UPLOAD_INCOMPLETE` (parts missing: `missingParts`), `UPLOAD_IN_PROGRESS` or `CONFIRM_IN_PROGRESS` (call again in a few seconds).
2915
+ */
2916
+ 409: UploadErrorDto;
2917
+ /**
2918
+ * `UPLOAD_URL_EXPIRED`: the file did not arrive in time; nothing was kept.
2919
+ */
2920
+ 410: UploadErrorDto;
2921
+ /**
2922
+ * `FILE_TYPE_MISMATCH`: the bytes are not the declared type (deleted).
2923
+ */
2924
+ 415: UploadErrorDto;
2925
+ /**
2926
+ * `FILE_CORRUPTED`: ffprobe cannot read it (deleted).
2927
+ */
2928
+ 422: UploadErrorDto;
2929
+ /**
2930
+ * `PROBE_UNAVAILABLE`: the file arrived but could not be read back yet; call again in a minute.
2931
+ */
2932
+ 503: UploadErrorDto;
2933
+ };
2934
+ type ConfirmUploadError = ConfirmUploadErrors[keyof ConfirmUploadErrors];
2935
+ type ConfirmUploadResponses = {
2936
+ /**
2937
+ * The media, in the library: `path` goes in a post.
2938
+ */
2939
+ 201: ConfirmedUploadDto;
2940
+ };
2941
+ type ConfirmUploadResponse = ConfirmUploadResponses[keyof ConfirmUploadResponses];
2942
+ type FindSlotData = {
2943
+ body?: never;
2944
+ path: {
2945
+ id: string;
2946
+ };
2947
+ query?: never;
2948
+ url: '/public/v1/find-slot/{id}';
2949
+ };
2950
+ type FindSlotErrors = {
2951
+ /**
2952
+ * The request was rejected — `msg` says why.
2953
+ */
2954
+ 400: ApiErrorDto;
2955
+ /**
2956
+ * Missing or invalid API key (`Authorization` header).
2957
+ */
2958
+ 401: ApiErrorDto;
2959
+ /**
2960
+ * The channel, post or record named in the path does not belong to your organisation.
2961
+ */
2962
+ 404: ApiErrorDto;
2963
+ };
2964
+ type FindSlotError = FindSlotErrors[keyof FindSlotErrors];
2965
+ type FindSlotResponses = {
2966
+ 200: FindSlotDto;
2967
+ };
2968
+ type FindSlotResponse = FindSlotResponses[keyof FindSlotResponses];
2969
+ type GetPostingTimesData = {
2970
+ body?: never;
2971
+ path: {
2972
+ id: string;
2973
+ };
2974
+ query?: never;
2975
+ url: '/public/v1/integrations/{id}/posting-times';
1849
2976
  };
1850
- type UploadFromUrlErrors = {
2977
+ type GetPostingTimesErrors = {
1851
2978
  /**
1852
2979
  * The request was rejected — `msg` says why.
1853
2980
  */
@@ -1856,25 +2983,22 @@ type UploadFromUrlErrors = {
1856
2983
  * Missing or invalid API key (`Authorization` header).
1857
2984
  */
1858
2985
  401: ApiErrorDto;
1859
- /**
1860
- * The channel, post or record named in the path does not belong to your organisation.
1861
- */
1862
2986
  404: ApiErrorDto;
1863
2987
  };
1864
- type UploadFromUrlError = UploadFromUrlErrors[keyof UploadFromUrlErrors];
1865
- type UploadFromUrlResponses = {
1866
- 201: MediaResponseDto;
2988
+ type GetPostingTimesError = GetPostingTimesErrors[keyof GetPostingTimesErrors];
2989
+ type GetPostingTimesResponses = {
2990
+ 200: PostingTimesResultDto;
1867
2991
  };
1868
- type UploadFromUrlResponse = UploadFromUrlResponses[keyof UploadFromUrlResponses];
1869
- type FindSlotData = {
1870
- body?: never;
2992
+ type GetPostingTimesResponse = GetPostingTimesResponses[keyof GetPostingTimesResponses];
2993
+ type SetPostingTimesData = {
2994
+ body: PostingTimesDto;
1871
2995
  path: {
1872
2996
  id: string;
1873
2997
  };
1874
2998
  query?: never;
1875
- url: '/public/v1/find-slot/{id}';
2999
+ url: '/public/v1/integrations/{id}/posting-times';
1876
3000
  };
1877
- type FindSlotErrors = {
3001
+ type SetPostingTimesErrors = {
1878
3002
  /**
1879
3003
  * The request was rejected — `msg` says why.
1880
3004
  */
@@ -1883,24 +3007,35 @@ type FindSlotErrors = {
1883
3007
  * Missing or invalid API key (`Authorization` header).
1884
3008
  */
1885
3009
  401: ApiErrorDto;
1886
- /**
1887
- * The channel, post or record named in the path does not belong to your organisation.
1888
- */
1889
3010
  404: ApiErrorDto;
1890
3011
  };
1891
- type FindSlotError = FindSlotErrors[keyof FindSlotErrors];
1892
- type FindSlotResponses = {
1893
- 200: FindSlotDto;
3012
+ type SetPostingTimesError = SetPostingTimesErrors[keyof SetPostingTimesErrors];
3013
+ type SetPostingTimesResponses = {
3014
+ 200: PostingTimesResultDto;
1894
3015
  };
1895
- type FindSlotResponse = FindSlotResponses[keyof FindSlotResponses];
3016
+ type SetPostingTimesResponse = SetPostingTimesResponses[keyof SetPostingTimesResponses];
1896
3017
  type ListPostsData = {
1897
3018
  body?: never;
1898
3019
  path?: never;
1899
3020
  query: {
1900
- startDate: string;
1901
- endDate: string;
3021
+ /**
3022
+ * Deprecated alias of `workspace` (public API).
3023
+ *
3024
+ * @deprecated
3025
+ */
1902
3026
  customer?: string;
3027
+ /**
3028
+ * Deprecated alias of `workspace`.
3029
+ *
3030
+ * @deprecated
3031
+ */
1903
3032
  group?: string;
3033
+ /**
3034
+ * Only the posts of the channels of this workspace (an id from `listWorkspaces`).
3035
+ */
3036
+ workspace?: string;
3037
+ startDate: string;
3038
+ endDate: string;
1904
3039
  integration?: string;
1905
3040
  };
1906
3041
  url: '/public/v1/posts';
@@ -1976,6 +3111,29 @@ type DeletePostResponses = {
1976
3111
  200: DeletedIdDto;
1977
3112
  };
1978
3113
  type DeletePostResponse = DeletePostResponses[keyof DeletePostResponses];
3114
+ type GetPostData = {
3115
+ body?: never;
3116
+ path: {
3117
+ id: string;
3118
+ };
3119
+ query?: never;
3120
+ url: '/public/v1/posts/{id}';
3121
+ };
3122
+ type GetPostErrors = {
3123
+ /**
3124
+ * Missing or invalid API key (`Authorization` header).
3125
+ */
3126
+ 401: ApiErrorDto;
3127
+ /**
3128
+ * The channel, post or record named in the path does not belong to your organisation.
3129
+ */
3130
+ 404: ApiErrorDto;
3131
+ };
3132
+ type GetPostError = GetPostErrors[keyof GetPostErrors];
3133
+ type GetPostResponses = {
3134
+ 200: PostDetailDto;
3135
+ };
3136
+ type GetPostResponse = GetPostResponses[keyof GetPostResponses];
1979
3137
  type DeletePostGroupData = {
1980
3138
  body?: never;
1981
3139
  path: {
@@ -2028,6 +3186,81 @@ type CheckConnectionResponses = {
2028
3186
  200: IsConnectedDto;
2029
3187
  };
2030
3188
  type CheckConnectionResponse = CheckConnectionResponses[keyof CheckConnectionResponses];
3189
+ type ListWorkspacesData = {
3190
+ body?: never;
3191
+ path?: never;
3192
+ query?: never;
3193
+ url: '/public/v1/workspaces';
3194
+ };
3195
+ type ListWorkspacesErrors = {
3196
+ /**
3197
+ * The request was rejected — `msg` says why.
3198
+ */
3199
+ 400: ApiErrorDto;
3200
+ /**
3201
+ * Missing or invalid API key (`Authorization` header).
3202
+ */
3203
+ 401: ApiErrorDto;
3204
+ /**
3205
+ * The channel, post or record named in the path does not belong to your organisation.
3206
+ */
3207
+ 404: ApiErrorDto;
3208
+ };
3209
+ type ListWorkspacesError = ListWorkspacesErrors[keyof ListWorkspacesErrors];
3210
+ type ListWorkspacesResponses = {
3211
+ 200: Array<WorkspaceDto>;
3212
+ };
3213
+ type ListWorkspacesResponse = ListWorkspacesResponses[keyof ListWorkspacesResponses];
3214
+ type CreateWorkspaceData = {
3215
+ body: CreateWorkspaceDto;
3216
+ path?: never;
3217
+ query?: never;
3218
+ url: '/public/v1/workspaces';
3219
+ };
3220
+ type CreateWorkspaceErrors = {
3221
+ /**
3222
+ * The body is invalid (`message` lists why), or the logo is not a media of your organisation.
3223
+ */
3224
+ 400: WorkspaceErrorDto;
3225
+ /**
3226
+ * Missing or invalid API key (`Authorization` header), or no running subscription.
3227
+ */
3228
+ 401: ApiErrorDto;
3229
+ /**
3230
+ * Your plan's number of workspaces is reached (`used`, `quota`).
3231
+ */
3232
+ 402: WorkspaceErrorDto;
3233
+ /**
3234
+ * A workspace already has this name.
3235
+ */
3236
+ 409: WorkspaceErrorDto;
3237
+ };
3238
+ type CreateWorkspaceError = CreateWorkspaceErrors[keyof CreateWorkspaceErrors];
3239
+ type CreateWorkspaceResponses = {
3240
+ 201: WorkspaceDto;
3241
+ };
3242
+ type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
3243
+ type GetSubscriptionData = {
3244
+ body?: never;
3245
+ path?: never;
3246
+ query?: never;
3247
+ url: '/public/v1/subscription';
3248
+ };
3249
+ type GetSubscriptionErrors = {
3250
+ /**
3251
+ * The request was rejected — `msg` says why.
3252
+ */
3253
+ 400: ApiErrorDto;
3254
+ /**
3255
+ * Missing or invalid API key (`Authorization` header).
3256
+ */
3257
+ 401: ApiErrorDto;
3258
+ };
3259
+ type GetSubscriptionError = GetSubscriptionErrors[keyof GetSubscriptionErrors];
3260
+ type GetSubscriptionResponses = {
3261
+ 200: SubscriptionDto;
3262
+ };
3263
+ type GetSubscriptionResponse = GetSubscriptionResponses[keyof GetSubscriptionResponses];
2031
3264
  type ListGroupsData = {
2032
3265
  body?: never;
2033
3266
  path?: never;
@@ -2057,6 +3290,15 @@ type ListChannelsData = {
2057
3290
  body?: never;
2058
3291
  path?: never;
2059
3292
  query?: {
3293
+ /**
3294
+ * Only the channels of this workspace (an id from `listWorkspaces`).
3295
+ */
3296
+ workspace?: string;
3297
+ /**
3298
+ * Deprecated alias of `workspace`.
3299
+ *
3300
+ * @deprecated
3301
+ */
2060
3302
  group?: string;
2061
3303
  };
2062
3304
  url: '/public/v1/integrations';
@@ -2099,6 +3341,10 @@ type StartChannelConnectionErrors = {
2099
3341
  * Missing or invalid API key (`Authorization` header).
2100
3342
  */
2101
3343
  401: ApiErrorDto;
3344
+ /**
3345
+ * Your plan does not include this channel (X on the Starter ultime) — `msg` says so.
3346
+ */
3347
+ 402: ApiErrorDto;
2102
3348
  /**
2103
3349
  * The channel, post or record named in the path does not belong to your organisation.
2104
3350
  */
@@ -2136,61 +3382,6 @@ type ListNotificationsResponses = {
2136
3382
  200: NotificationsPageDto;
2137
3383
  };
2138
3384
  type ListNotificationsResponse = ListNotificationsResponses[keyof ListNotificationsResponses];
2139
- type GenerateVideoData = {
2140
- body: VideoDto;
2141
- path?: never;
2142
- query?: never;
2143
- url: '/public/v1/generate-video';
2144
- };
2145
- type GenerateVideoErrors = {
2146
- /**
2147
- * The request was rejected — `msg` says why.
2148
- */
2149
- 400: ApiErrorDto;
2150
- /**
2151
- * Missing or invalid API key (`Authorization` header).
2152
- */
2153
- 401: ApiErrorDto;
2154
- /**
2155
- * The channel, post or record named in the path does not belong to your organisation.
2156
- */
2157
- 404: ApiErrorDto;
2158
- };
2159
- type GenerateVideoError = GenerateVideoErrors[keyof GenerateVideoErrors];
2160
- type GenerateVideoResponses = {
2161
- 201: GeneratedVideoDto;
2162
- };
2163
- type GenerateVideoResponse = GenerateVideoResponses[keyof GenerateVideoResponses];
2164
- type CallVideoFunctionData = {
2165
- body: VideoFunctionDto;
2166
- path?: never;
2167
- query?: never;
2168
- url: '/public/v1/video/function';
2169
- };
2170
- type CallVideoFunctionErrors = {
2171
- /**
2172
- * The request was rejected — `msg` says why.
2173
- */
2174
- 400: ApiErrorDto;
2175
- /**
2176
- * Missing or invalid API key (`Authorization` header).
2177
- */
2178
- 401: ApiErrorDto;
2179
- /**
2180
- * The channel, post or record named in the path does not belong to your organisation.
2181
- */
2182
- 404: ApiErrorDto;
2183
- };
2184
- type CallVideoFunctionError = CallVideoFunctionErrors[keyof CallVideoFunctionErrors];
2185
- type CallVideoFunctionResponses = {
2186
- /**
2187
- * Raw answer of the video provider function — shape depends on `functionName`.
2188
- */
2189
- 201: {
2190
- [key: string]: unknown;
2191
- };
2192
- };
2193
- type CallVideoFunctionResponse = CallVideoFunctionResponses[keyof CallVideoFunctionResponses];
2194
3385
  type DeleteChannelData = {
2195
3386
  body?: never;
2196
3387
  path: {
@@ -2299,6 +3490,87 @@ type ChangePostStatusResponses = {
2299
3490
  200: PostStatusDto;
2300
3491
  };
2301
3492
  type ChangePostStatusResponse = ChangePostStatusResponses[keyof ChangePostStatusResponses];
3493
+ type RemovePostAutomationData = {
3494
+ body?: never;
3495
+ path: {
3496
+ id: string;
3497
+ };
3498
+ query?: never;
3499
+ url: '/public/v1/posts/{id}/automation';
3500
+ };
3501
+ type RemovePostAutomationErrors = {
3502
+ /**
3503
+ * 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).
3504
+ */
3505
+ 400: ApiErrorDto;
3506
+ /**
3507
+ * Missing or invalid API key (`Authorization` header).
3508
+ */
3509
+ 401: ApiErrorDto;
3510
+ /**
3511
+ * The post or the template does not belong to your organisation.
3512
+ */
3513
+ 404: ApiErrorDto;
3514
+ };
3515
+ type RemovePostAutomationError = RemovePostAutomationErrors[keyof RemovePostAutomationErrors];
3516
+ type RemovePostAutomationResponses = {
3517
+ 200: PostAutomationResponseDto;
3518
+ };
3519
+ type RemovePostAutomationResponse = RemovePostAutomationResponses[keyof RemovePostAutomationResponses];
3520
+ type GetPostAutomationData = {
3521
+ body?: never;
3522
+ path: {
3523
+ id: string;
3524
+ };
3525
+ query?: never;
3526
+ url: '/public/v1/posts/{id}/automation';
3527
+ };
3528
+ type GetPostAutomationErrors = {
3529
+ /**
3530
+ * 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).
3531
+ */
3532
+ 400: ApiErrorDto;
3533
+ /**
3534
+ * Missing or invalid API key (`Authorization` header).
3535
+ */
3536
+ 401: ApiErrorDto;
3537
+ /**
3538
+ * The post or the template does not belong to your organisation.
3539
+ */
3540
+ 404: ApiErrorDto;
3541
+ };
3542
+ type GetPostAutomationError = GetPostAutomationErrors[keyof GetPostAutomationErrors];
3543
+ type GetPostAutomationResponses = {
3544
+ 200: PostAutomationResponseDto;
3545
+ };
3546
+ type GetPostAutomationResponse = GetPostAutomationResponses[keyof GetPostAutomationResponses];
3547
+ type SetPostAutomationData = {
3548
+ body: PostAutomationDto;
3549
+ path: {
3550
+ id: string;
3551
+ };
3552
+ query?: never;
3553
+ url: '/public/v1/posts/{id}/automation';
3554
+ };
3555
+ type SetPostAutomationErrors = {
3556
+ /**
3557
+ * 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).
3558
+ */
3559
+ 400: ApiErrorDto;
3560
+ /**
3561
+ * Missing or invalid API key (`Authorization` header).
3562
+ */
3563
+ 401: ApiErrorDto;
3564
+ /**
3565
+ * The post or the template does not belong to your organisation.
3566
+ */
3567
+ 404: ApiErrorDto;
3568
+ };
3569
+ type SetPostAutomationError = SetPostAutomationErrors[keyof SetPostAutomationErrors];
3570
+ type SetPostAutomationResponses = {
3571
+ 200: PostAutomationResponseDto;
3572
+ };
3573
+ type SetPostAutomationResponse = SetPostAutomationResponses[keyof SetPostAutomationResponses];
2302
3574
  type SetPostReleaseIdData = {
2303
3575
  body: UpdateReleaseIdDto;
2304
3576
  path: {
@@ -2326,6 +3598,60 @@ type SetPostReleaseIdResponses = {
2326
3598
  200: PostDto;
2327
3599
  };
2328
3600
  type SetPostReleaseIdResponse = SetPostReleaseIdResponses[keyof SetPostReleaseIdResponses];
3601
+ type SetPostCoverData = {
3602
+ body: SetPostCoverDto;
3603
+ path: {
3604
+ id: string;
3605
+ };
3606
+ query?: never;
3607
+ url: '/public/v1/posts/{id}/cover';
3608
+ };
3609
+ type SetPostCoverErrors = {
3610
+ /**
3611
+ * The request was rejected — `msg` says why.
3612
+ */
3613
+ 400: ApiErrorDto;
3614
+ /**
3615
+ * Missing or invalid API key (`Authorization` header).
3616
+ */
3617
+ 401: ApiErrorDto;
3618
+ /**
3619
+ * The channel, post or record named in the path does not belong to your organisation.
3620
+ */
3621
+ 404: ApiErrorDto;
3622
+ };
3623
+ type SetPostCoverError = SetPostCoverErrors[keyof SetPostCoverErrors];
3624
+ type SetPostCoverResponses = {
3625
+ 200: PostDetailDto;
3626
+ };
3627
+ type SetPostCoverResponse = SetPostCoverResponses[keyof SetPostCoverResponses];
3628
+ type SetPostPublicationData = {
3629
+ body: SetPostPublicationDto;
3630
+ path: {
3631
+ id: string;
3632
+ };
3633
+ query?: never;
3634
+ url: '/public/v1/posts/{id}/publication';
3635
+ };
3636
+ type SetPostPublicationErrors = {
3637
+ /**
3638
+ * The request was rejected — `msg` says why.
3639
+ */
3640
+ 400: ApiErrorDto;
3641
+ /**
3642
+ * Missing or invalid API key (`Authorization` header).
3643
+ */
3644
+ 401: ApiErrorDto;
3645
+ /**
3646
+ * The channel, post or record named in the path does not belong to your organisation.
3647
+ */
3648
+ 404: ApiErrorDto;
3649
+ };
3650
+ type SetPostPublicationError = SetPostPublicationErrors[keyof SetPostPublicationErrors];
3651
+ type SetPostPublicationResponses = {
3652
+ 200: PostPublicationDto;
3653
+ };
3654
+ type SetPostPublicationResponse = SetPostPublicationResponses[keyof SetPostPublicationResponses];
2329
3655
  type GetChannelAnalyticsData = {
2330
3656
  body?: never;
2331
3657
  path: {
@@ -2455,7 +3781,41 @@ type GetVideoHistoryError = GetVideoHistoryErrors[keyof GetVideoHistoryErrors];
2455
3781
  type GetVideoHistoryResponses = {
2456
3782
  200: VideoHistoryPageDto;
2457
3783
  };
2458
- type GetVideoHistoryResponse = GetVideoHistoryResponses[keyof GetVideoHistoryResponses];
3784
+ type GetVideoHistoryResponse = GetVideoHistoryResponses[keyof GetVideoHistoryResponses];
3785
+ type GetViewsPerDayData = {
3786
+ body?: never;
3787
+ path: {
3788
+ integrationId: string;
3789
+ };
3790
+ query?: {
3791
+ from?: string;
3792
+ to?: string;
3793
+ /**
3794
+ * IANA time zone of the days (UTC by default), e.g. Europe/Paris
3795
+ */
3796
+ tz?: string;
3797
+ };
3798
+ url: '/public/v1/views-per-day/{integrationId}';
3799
+ };
3800
+ type GetViewsPerDayErrors = {
3801
+ /**
3802
+ * The request was rejected — `msg` says why.
3803
+ */
3804
+ 400: ApiErrorDto;
3805
+ /**
3806
+ * Missing or invalid API key (`Authorization` header).
3807
+ */
3808
+ 401: ApiErrorDto;
3809
+ /**
3810
+ * The channel, post or record named in the path does not belong to your organisation.
3811
+ */
3812
+ 404: ApiErrorDto;
3813
+ };
3814
+ type GetViewsPerDayError = GetViewsPerDayErrors[keyof GetViewsPerDayErrors];
3815
+ type GetViewsPerDayResponses = {
3816
+ 200: ViewsPerDayDto;
3817
+ };
3818
+ type GetViewsPerDayResponse = GetViewsPerDayResponses[keyof GetViewsPerDayResponses];
2459
3819
  type GetPostAnalyticsData = {
2460
3820
  body?: never;
2461
3821
  path: {
@@ -2623,7 +3983,7 @@ type ReplyToCommentErrors = {
2623
3983
  };
2624
3984
  type ReplyToCommentError = ReplyToCommentErrors[keyof ReplyToCommentErrors];
2625
3985
  type ReplyToCommentResponses = {
2626
- 201: SuccessDto;
3986
+ 201: CommentReplyResultDto;
2627
3987
  };
2628
3988
  type ReplyToCommentResponse = ReplyToCommentResponses[keyof ReplyToCommentResponses];
2629
3989
  type HideCommentData = {
@@ -2688,7 +4048,18 @@ type ListConversationsData = {
2688
4048
  integrationId: string;
2689
4049
  };
2690
4050
  query?: {
4051
+ /**
4052
+ * How many conversations, 1 to 200. 25 by default.
4053
+ */
2691
4054
  limit?: string;
4055
+ /**
4056
+ * 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`.
4057
+ */
4058
+ box?: 'needs_reply' | 'conversations' | 'auto' | 'thanks' | 'organic' | 'read' | 'all';
4059
+ /**
4060
+ * 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.
4061
+ */
4062
+ after?: string;
2692
4063
  };
2693
4064
  url: '/public/v1/inbox/{integrationId}';
2694
4065
  };
@@ -2735,7 +4106,7 @@ type SendDirectMessageErrors = {
2735
4106
  };
2736
4107
  type SendDirectMessageError = SendDirectMessageErrors[keyof SendDirectMessageErrors];
2737
4108
  type SendDirectMessageResponses = {
2738
- 201: SuccessDto;
4109
+ 201: DirectMessageResultDto;
2739
4110
  };
2740
4111
  type SendDirectMessageResponse = SendDirectMessageResponses[keyof SendDirectMessageResponses];
2741
4112
  type PollInboxData = {
@@ -2798,7 +4169,16 @@ type GetConversationData = {
2798
4169
  integrationId: string;
2799
4170
  conversationId: string;
2800
4171
  };
2801
- query?: never;
4172
+ query?: {
4173
+ /**
4174
+ * How many messages, 1 to 200. 50 by default.
4175
+ */
4176
+ limit?: string;
4177
+ /**
4178
+ * Older messages: the `messages.paging.before` of the previous answer.
4179
+ */
4180
+ before?: string;
4181
+ };
2802
4182
  url: '/public/v1/inbox/{integrationId}/{conversationId}';
2803
4183
  };
2804
4184
  type GetConversationErrors = {
@@ -2817,7 +4197,7 @@ type GetConversationErrors = {
2817
4197
  };
2818
4198
  type GetConversationError = GetConversationErrors[keyof GetConversationErrors];
2819
4199
  type GetConversationResponses = {
2820
- 200: Array<InboxMessageDto>;
4200
+ 200: InboxThreadDto;
2821
4201
  };
2822
4202
  type GetConversationResponse = GetConversationResponses[keyof GetConversationResponses];
2823
4203
  type ListAutomationFlowsData = {
@@ -3085,9 +4465,19 @@ type PoseAutomationFlowResponse = PoseAutomationFlowResponses[keyof PoseAutomati
3085
4465
  type ListChannelAutomationPosesData = {
3086
4466
  body?: never;
3087
4467
  path?: never;
3088
- query: {
3089
- integrationId: string;
4468
+ query?: {
4469
+ /**
4470
+ * The Instagram channel (an id from `listChannels`). Required without `workspace`.
4471
+ */
4472
+ integrationId?: string;
4473
+ /**
4474
+ * Only the poses of this publication (an Instagram media id).
4475
+ */
3090
4476
  mediaId?: string;
4477
+ /**
4478
+ * 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.
4479
+ */
4480
+ workspace?: string;
3091
4481
  };
3092
4482
  url: '/public/v1/automation-flow-poses';
3093
4483
  };
@@ -3244,7 +4634,7 @@ type PollAutomationPoseErrors = {
3244
4634
  };
3245
4635
  type PollAutomationPoseError = PollAutomationPoseErrors[keyof PollAutomationPoseErrors];
3246
4636
  type PollAutomationPoseResponses = {
3247
- 200: AutomationFlowPollResultDto;
4637
+ 201: AutomationFlowPollResultDto;
3248
4638
  };
3249
4639
  type PollAutomationPoseResponse = PollAutomationPoseResponses[keyof PollAutomationPoseResponses];
3250
4640
  type ReplayAutomationPoseData = {
@@ -3271,9 +4661,63 @@ type ReplayAutomationPoseErrors = {
3271
4661
  };
3272
4662
  type ReplayAutomationPoseError = ReplayAutomationPoseErrors[keyof ReplayAutomationPoseErrors];
3273
4663
  type ReplayAutomationPoseResponses = {
3274
- 200: Array<AutomationFlowReplayResultDto>;
4664
+ 201: Array<AutomationFlowReplayResultDto>;
3275
4665
  };
3276
4666
  type ReplayAutomationPoseResponse = ReplayAutomationPoseResponses[keyof ReplayAutomationPoseResponses];
4667
+ type PreviewAutomationPoseCatchUpData = {
4668
+ body?: never;
4669
+ path: {
4670
+ id: string;
4671
+ };
4672
+ query?: never;
4673
+ url: '/public/v1/automation-flow-poses/{id}/catch-up';
4674
+ };
4675
+ type PreviewAutomationPoseCatchUpErrors = {
4676
+ /**
4677
+ * The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
4678
+ */
4679
+ 400: ApiErrorDto;
4680
+ /**
4681
+ * Missing or invalid API key (`Authorization` header).
4682
+ */
4683
+ 401: ApiErrorDto;
4684
+ /**
4685
+ * The template, pose or channel named in the path does not belong to your organisation.
4686
+ */
4687
+ 404: ApiErrorDto;
4688
+ };
4689
+ type PreviewAutomationPoseCatchUpError = PreviewAutomationPoseCatchUpErrors[keyof PreviewAutomationPoseCatchUpErrors];
4690
+ type PreviewAutomationPoseCatchUpResponses = {
4691
+ 200: AutomationFlowCatchUpPreviewDto;
4692
+ };
4693
+ type PreviewAutomationPoseCatchUpResponse = PreviewAutomationPoseCatchUpResponses[keyof PreviewAutomationPoseCatchUpResponses];
4694
+ type CatchUpAutomationPoseData = {
4695
+ body?: never;
4696
+ path: {
4697
+ id: string;
4698
+ };
4699
+ query?: never;
4700
+ url: '/public/v1/automation-flow-poses/{id}/catch-up';
4701
+ };
4702
+ type CatchUpAutomationPoseErrors = {
4703
+ /**
4704
+ * The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
4705
+ */
4706
+ 400: ApiErrorDto;
4707
+ /**
4708
+ * Missing or invalid API key (`Authorization` header).
4709
+ */
4710
+ 401: ApiErrorDto;
4711
+ /**
4712
+ * The template, pose or channel named in the path does not belong to your organisation.
4713
+ */
4714
+ 404: ApiErrorDto;
4715
+ };
4716
+ type CatchUpAutomationPoseError = CatchUpAutomationPoseErrors[keyof CatchUpAutomationPoseErrors];
4717
+ type CatchUpAutomationPoseResponses = {
4718
+ 201: AutomationFlowCatchUpResultDto;
4719
+ };
4720
+ type CatchUpAutomationPoseResponse = CatchUpAutomationPoseResponses[keyof CatchUpAutomationPoseResponses];
3277
4721
  type ListWebhookEventsData = {
3278
4722
  body?: never;
3279
4723
  path?: never;
@@ -3403,6 +4847,33 @@ type GetWebhookResponses = {
3403
4847
  200: WebhookDto;
3404
4848
  };
3405
4849
  type GetWebhookResponse = GetWebhookResponses[keyof GetWebhookResponses];
4850
+ type TestWebhookData = {
4851
+ body?: TestWebhookDto;
4852
+ path: {
4853
+ id: string;
4854
+ };
4855
+ query?: never;
4856
+ url: '/public/v1/webhooks/{id}/test';
4857
+ };
4858
+ type TestWebhookErrors = {
4859
+ /**
4860
+ * The request was rejected — `msg` says why.
4861
+ */
4862
+ 400: ApiErrorDto;
4863
+ /**
4864
+ * Missing or invalid API key (`Authorization` header).
4865
+ */
4866
+ 401: ApiErrorDto;
4867
+ /**
4868
+ * The channel, post or record named in the path does not belong to your organisation.
4869
+ */
4870
+ 404: ApiErrorDto;
4871
+ };
4872
+ type TestWebhookError = TestWebhookErrors[keyof TestWebhookErrors];
4873
+ type TestWebhookResponses = {
4874
+ 201: WebhookTestResultDto;
4875
+ };
4876
+ type TestWebhookResponse = TestWebhookResponses[keyof TestWebhookResponses];
3406
4877
  type ListContentsData = {
3407
4878
  body?: never;
3408
4879
  path?: never;
@@ -3607,6 +5078,42 @@ type UpsertContentResponses = {
3607
5078
  201: ContentUpsertDto;
3608
5079
  };
3609
5080
  type UpsertContentResponse = UpsertContentResponses[keyof UpsertContentResponses];
5081
+ type CreateContentFromLinkData = {
5082
+ body: CreateContentFromLinkDto;
5083
+ path?: never;
5084
+ query?: never;
5085
+ url: '/public/v1/contents/from-link';
5086
+ };
5087
+ type CreateContentFromLinkErrors = {
5088
+ /**
5089
+ * No TikTok, Instagram or YouTube video link in `url` nor in `text`, or the body is invalid.
5090
+ */
5091
+ 400: ApiErrorDto;
5092
+ /**
5093
+ * Missing or invalid API key (`Authorization` header).
5094
+ */
5095
+ 401: ApiErrorDto;
5096
+ /**
5097
+ * Over the budget of videos sent from a link (30 per hour per organisation by default).
5098
+ */
5099
+ 429: ApiErrorDto;
5100
+ /**
5101
+ * The video could not be handed to the background work: nothing was kept, send the link again in a minute.
5102
+ */
5103
+ 503: ApiErrorDto;
5104
+ };
5105
+ type CreateContentFromLinkError = CreateContentFromLinkErrors[keyof CreateContentFromLinkErrors];
5106
+ type CreateContentFromLinkResponses = {
5107
+ /**
5108
+ * The video was already a card of your organisation: that card, `created: false`.
5109
+ */
5110
+ 200: ContentFromLinkDto;
5111
+ /**
5112
+ * The card is created; the video is being read (`content.source.status` PENDING).
5113
+ */
5114
+ 202: ContentFromLinkDto;
5115
+ };
5116
+ type CreateContentFromLinkResponse = CreateContentFromLinkResponses[keyof CreateContentFromLinkResponses];
3610
5117
  type MoveContentData = {
3611
5118
  body: MoveContentDto;
3612
5119
  path: {
@@ -3698,6 +5205,10 @@ type SearchHooksErrors = {
3698
5205
  * Missing or invalid API key (`Authorization` header).
3699
5206
  */
3700
5207
  401: ApiErrorDto;
5208
+ /**
5209
+ * 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.
5210
+ */
5211
+ 429: ApiErrorDto;
3701
5212
  };
3702
5213
  type SearchHooksError = SearchHooksErrors[keyof SearchHooksErrors];
3703
5214
  type SearchHooksResponses = {
@@ -3737,6 +5248,10 @@ type GetHookFormsErrors = {
3737
5248
  * Missing or invalid API key (`Authorization` header).
3738
5249
  */
3739
5250
  401: ApiErrorDto;
5251
+ /**
5252
+ * 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.
5253
+ */
5254
+ 429: ApiErrorDto;
3740
5255
  };
3741
5256
  type GetHookFormsError = GetHookFormsErrors[keyof GetHookFormsErrors];
3742
5257
  type GetHookFormsResponses = {
@@ -3766,48 +5281,6 @@ type ListHookFamiliesResponses = {
3766
5281
  200: Array<HookFamilyDto>;
3767
5282
  };
3768
5283
  type ListHookFamiliesResponse = ListHookFamiliesResponses[keyof ListHookFamiliesResponses];
3769
- type ReplaceHookFamiliesData = {
3770
- body: HookFamiliesImportDto;
3771
- path?: never;
3772
- query?: never;
3773
- url: '/public/v1/hooks/families';
3774
- };
3775
- type ReplaceHookFamiliesErrors = {
3776
- /**
3777
- * The request was rejected — `msg` says why.
3778
- */
3779
- 400: ApiErrorDto;
3780
- /**
3781
- * Missing or invalid API key (`Authorization` header).
3782
- */
3783
- 401: ApiErrorDto;
3784
- };
3785
- type ReplaceHookFamiliesError = ReplaceHookFamiliesErrors[keyof ReplaceHookFamiliesErrors];
3786
- type ReplaceHookFamiliesResponses = {
3787
- 200: Array<HookFamilyDto>;
3788
- };
3789
- type ReplaceHookFamiliesResponse = ReplaceHookFamiliesResponses[keyof ReplaceHookFamiliesResponses];
3790
- type ImportHooksData = {
3791
- body: HooksImportDto;
3792
- path?: never;
3793
- query?: never;
3794
- url: '/public/v1/hooks/import';
3795
- };
3796
- type ImportHooksErrors = {
3797
- /**
3798
- * The request was rejected — `msg` says why.
3799
- */
3800
- 400: ApiErrorDto;
3801
- /**
3802
- * Missing or invalid API key (`Authorization` header).
3803
- */
3804
- 401: ApiErrorDto;
3805
- };
3806
- type ImportHooksError = ImportHooksErrors[keyof ImportHooksErrors];
3807
- type ImportHooksResponses = {
3808
- 200: HooksImportResultDto;
3809
- };
3810
- type ImportHooksResponse = ImportHooksResponses[keyof ImportHooksResponses];
3811
5284
  type ListMusicData = {
3812
5285
  body?: never;
3813
5286
  path?: never;
@@ -3947,6 +5420,64 @@ type UploadMusicFileResponses = {
3947
5420
  200: MusicTrackDto;
3948
5421
  };
3949
5422
  type UploadMusicFileResponse = UploadMusicFileResponses[keyof UploadMusicFileResponses];
5423
+ type DeleteWorkspaceData = {
5424
+ body?: never;
5425
+ path: {
5426
+ id: string;
5427
+ };
5428
+ query?: never;
5429
+ url: '/public/v1/workspaces/{id}';
5430
+ };
5431
+ type DeleteWorkspaceErrors = {
5432
+ /**
5433
+ * The last workspace of an organisation cannot be deleted.
5434
+ */
5435
+ 400: WorkspaceErrorDto;
5436
+ /**
5437
+ * Missing or invalid API key (`Authorization` header), or no running subscription.
5438
+ */
5439
+ 401: ApiErrorDto;
5440
+ /**
5441
+ * No workspace of your organisation has this id.
5442
+ */
5443
+ 404: WorkspaceErrorDto;
5444
+ };
5445
+ type DeleteWorkspaceError = DeleteWorkspaceErrors[keyof DeleteWorkspaceErrors];
5446
+ type DeleteWorkspaceResponses = {
5447
+ 200: WorkspaceDeletedDto;
5448
+ };
5449
+ type DeleteWorkspaceResponse = DeleteWorkspaceResponses[keyof DeleteWorkspaceResponses];
5450
+ type UpdateWorkspaceData = {
5451
+ body: UpdateWorkspaceDto;
5452
+ path: {
5453
+ id: string;
5454
+ };
5455
+ query?: never;
5456
+ url: '/public/v1/workspaces/{id}';
5457
+ };
5458
+ type UpdateWorkspaceErrors = {
5459
+ /**
5460
+ * The body is invalid (`message` lists why), or the logo is not a media of your organisation.
5461
+ */
5462
+ 400: WorkspaceErrorDto;
5463
+ /**
5464
+ * Missing or invalid API key (`Authorization` header), or no running subscription.
5465
+ */
5466
+ 401: ApiErrorDto;
5467
+ /**
5468
+ * No workspace of your organisation has this id.
5469
+ */
5470
+ 404: WorkspaceErrorDto;
5471
+ /**
5472
+ * Another workspace already has this name.
5473
+ */
5474
+ 409: WorkspaceErrorDto;
5475
+ };
5476
+ type UpdateWorkspaceError = UpdateWorkspaceErrors[keyof UpdateWorkspaceErrors];
5477
+ type UpdateWorkspaceResponses = {
5478
+ 200: WorkspaceDto;
5479
+ };
5480
+ type UpdateWorkspaceResponse = UpdateWorkspaceResponses[keyof UpdateWorkspaceResponses];
3950
5481
 
3951
5482
  declare const client: Client;
3952
5483
 
@@ -3965,16 +5496,38 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
3965
5496
  };
3966
5497
  /**
3967
5498
  * Upload a file and get a URL usable in a post
5499
+ *
5500
+ * The whole file in one request: an MP4 up to 25 MB, an image up to 10 MB, a MOV or M4V (converted to MP4) up to 1 GB. A larger MP4 goes in parts (`POST /public/v1/uploads`).
3968
5501
  */
3969
5502
  declare const uploadFile: <ThrowOnError extends boolean = false>(options: Options<UploadFileData, ThrowOnError>) => RequestResult<UploadFileResponses, UploadFileErrors, ThrowOnError>;
3970
5503
  /**
3971
5504
  * Import a file from a URL into your media library
3972
5505
  */
3973
5506
  declare const uploadFromUrl: <ThrowOnError extends boolean = false>(options: Options<UploadFromUrlData, ThrowOnError>) => RequestResult<UploadFromUrlResponses, UploadFromUrlErrors, ThrowOnError>;
5507
+ /**
5508
+ * Open an upload of a file from your disk
5509
+ *
5510
+ * 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.
5511
+ */
5512
+ declare const createUpload: <ThrowOnError extends boolean = false>(options: Options<CreateUploadData, ThrowOnError>) => RequestResult<CreateUploadResponses, CreateUploadErrors, ThrowOnError>;
5513
+ /**
5514
+ * Finish an upload and add the file to the media library
5515
+ *
5516
+ * 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`.
5517
+ */
5518
+ declare const confirmUpload: <ThrowOnError extends boolean = false>(options: Options<ConfirmUploadData, ThrowOnError>) => RequestResult<ConfirmUploadResponses, ConfirmUploadErrors, ThrowOnError>;
3974
5519
  /**
3975
5520
  * Next free slot in the channel's schedule
3976
5521
  */
3977
5522
  declare const findSlot: <ThrowOnError extends boolean = false>(options: Options<FindSlotData, ThrowOnError>) => RequestResult<FindSlotResponses, FindSlotErrors, ThrowOnError>;
5523
+ /**
5524
+ * The posting slots of a channel (time and weekdays, UTC)
5525
+ */
5526
+ declare const getPostingTimes: <ThrowOnError extends boolean = false>(options: Options<GetPostingTimesData, ThrowOnError>) => RequestResult<GetPostingTimesResponses, GetPostingTimesErrors, ThrowOnError>;
5527
+ /**
5528
+ * Replace the posting slots of a channel. Posts already scheduled do not move
5529
+ */
5530
+ declare const setPostingTimes: <ThrowOnError extends boolean = false>(options: Options<SetPostingTimesData, ThrowOnError>) => RequestResult<SetPostingTimesResponses, SetPostingTimesErrors, ThrowOnError>;
3978
5531
  /**
3979
5532
  * List posts in a date range
3980
5533
  */
@@ -3987,6 +5540,12 @@ declare const createPost: <ThrowOnError extends boolean = false>(options: Option
3987
5540
  * Delete a post and everything published with it
3988
5541
  */
3989
5542
  declare const deletePost: <ThrowOnError extends boolean = false>(options: Options<DeletePostData, ThrowOnError>) => RequestResult<DeletePostResponses, DeletePostErrors, ThrowOnError>;
5543
+ /**
5544
+ * Read one post, with its media and the cover of its video
5545
+ *
5546
+ * 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`.
5547
+ */
5548
+ declare const getPost: <ThrowOnError extends boolean = false>(options: Options<GetPostData, ThrowOnError>) => RequestResult<GetPostResponses, GetPostErrors, ThrowOnError>;
3990
5549
  /**
3991
5550
  * Delete a publication group
3992
5551
  */
@@ -3996,7 +5555,25 @@ declare const deletePostGroup: <ThrowOnError extends boolean = false>(options: O
3996
5555
  */
3997
5556
  declare const checkConnection: <ThrowOnError extends boolean = false>(options?: Options<CheckConnectionData, ThrowOnError>) => RequestResult<CheckConnectionResponses, CheckConnectionErrors, ThrowOnError>;
3998
5557
  /**
3999
- * List your groups
5558
+ * List your workspaces
5559
+ */
5560
+ declare const listWorkspaces: <ThrowOnError extends boolean = false>(options?: Options<ListWorkspacesData, ThrowOnError>) => RequestResult<ListWorkspacesResponses, ListWorkspacesErrors, ThrowOnError>;
5561
+ /**
5562
+ * Create a workspace — same fields and refusals as in the app
5563
+ */
5564
+ declare const createWorkspace: <ThrowOnError extends boolean = false>(options: Options<CreateWorkspaceData, ThrowOnError>) => RequestResult<CreateWorkspaceResponses, CreateWorkspaceErrors, ThrowOnError>;
5565
+ /**
5566
+ * Read your subscription
5567
+ *
5568
+ * 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.
5569
+ */
5570
+ declare const getSubscription: <ThrowOnError extends boolean = false>(options?: Options<GetSubscriptionData, ThrowOnError>) => RequestResult<GetSubscriptionResponses, GetSubscriptionErrors, ThrowOnError>;
5571
+ /**
5572
+ * Deprecated: use listWorkspaces
5573
+ *
5574
+ * Lists your workspaces as `{ id, name }`. Kept for the published SDKs; use `GET /public/v1/workspaces`.
5575
+ *
5576
+ * @deprecated
4000
5577
  */
4001
5578
  declare const listGroups: <ThrowOnError extends boolean = false>(options?: Options<ListGroupsData, ThrowOnError>) => RequestResult<ListGroupsResponses, ListGroupsErrors, ThrowOnError>;
4002
5579
  /**
@@ -4005,20 +5582,14 @@ declare const listGroups: <ThrowOnError extends boolean = false>(options?: Optio
4005
5582
  declare const listChannels: <ThrowOnError extends boolean = false>(options?: Options<ListChannelsData, ThrowOnError>) => RequestResult<ListChannelsResponses, ListChannelsErrors, ThrowOnError>;
4006
5583
  /**
4007
5584
  * Start connecting a channel — returns the URL to open
5585
+ *
5586
+ * 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).
4008
5587
  */
4009
5588
  declare const startChannelConnection: <ThrowOnError extends boolean = false>(options: Options<StartChannelConnectionData, ThrowOnError>) => RequestResult<StartChannelConnectionResponses, StartChannelConnectionErrors, ThrowOnError>;
4010
5589
  /**
4011
5590
  * List your notifications, paginated
4012
5591
  */
4013
5592
  declare const listNotifications: <ThrowOnError extends boolean = false>(options?: Options<ListNotificationsData, ThrowOnError>) => RequestResult<ListNotificationsResponses, ListNotificationsErrors, ThrowOnError>;
4014
- /**
4015
- * Generate a video
4016
- */
4017
- declare const generateVideo: <ThrowOnError extends boolean = false>(options: Options<GenerateVideoData, ThrowOnError>) => RequestResult<GenerateVideoResponses, GenerateVideoErrors, ThrowOnError>;
4018
- /**
4019
- * Call a function of a video provider
4020
- */
4021
- declare const callVideoFunction: <ThrowOnError extends boolean = false>(options: Options<CallVideoFunctionData, ThrowOnError>) => RequestResult<CallVideoFunctionResponses, CallVideoFunctionErrors, ThrowOnError>;
4022
5593
  /**
4023
5594
  * Disconnect a channel and delete its posts
4024
5595
  */
@@ -4037,10 +5608,36 @@ declare const listMissingMedia: <ThrowOnError extends boolean = false>(options:
4037
5608
  * Change a post's status
4038
5609
  */
4039
5610
  declare const changePostStatus: <ThrowOnError extends boolean = false>(options: Options<ChangePostStatusData, ThrowOnError>) => RequestResult<ChangePostStatusResponses, ChangePostStatusErrors, ThrowOnError>;
5611
+ /**
5612
+ * Take the automation off a post not yet published
5613
+ */
5614
+ declare const removePostAutomation: <ThrowOnError extends boolean = false>(options: Options<RemovePostAutomationData, ThrowOnError>) => RequestResult<RemovePostAutomationResponses, RemovePostAutomationErrors, ThrowOnError>;
5615
+ /**
5616
+ * Read the automation a post not yet published carries
5617
+ */
5618
+ declare const getPostAutomation: <ThrowOnError extends boolean = false>(options: Options<GetPostAutomationData, ThrowOnError>) => RequestResult<GetPostAutomationResponses, GetPostAutomationErrors, ThrowOnError>;
5619
+ /**
5620
+ * Put an automation on a scheduled post
5621
+ *
5622
+ * 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).
5623
+ */
5624
+ declare const setPostAutomation: <ThrowOnError extends boolean = false>(options: Options<SetPostAutomationData, ThrowOnError>) => RequestResult<SetPostAutomationResponses, SetPostAutomationErrors, ThrowOnError>;
4040
5625
  /**
4041
5626
  * Record the provider post id against a post
4042
5627
  */
4043
5628
  declare const setPostReleaseId: <ThrowOnError extends boolean = false>(options: Options<SetPostReleaseIdData, ThrowOnError>) => RequestResult<SetPostReleaseIdResponses, SetPostReleaseIdErrors, ThrowOnError>;
5629
+ /**
5630
+ * Put, replace or take off the cover of a post's video, before it is published
5631
+ *
5632
+ * 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.
5633
+ */
5634
+ declare const setPostCover: <ThrowOnError extends boolean = false>(options: Options<SetPostCoverData, ThrowOnError>) => RequestResult<SetPostCoverResponses, SetPostCoverErrors, ThrowOnError>;
5635
+ /**
5636
+ * Group a post with the same content on other channels, or separate it
5637
+ *
5638
+ * 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.
5639
+ */
5640
+ declare const setPostPublication: <ThrowOnError extends boolean = false>(options: Options<SetPostPublicationData, ThrowOnError>) => RequestResult<SetPostPublicationResponses, SetPostPublicationErrors, ThrowOnError>;
4044
5641
  /**
4045
5642
  * Account metrics, read live from the provider
4046
5643
  */
@@ -4057,6 +5654,12 @@ declare const getAccountHistory: <ThrowOnError extends boolean = false>(options:
4057
5654
  * Stored per-video time series
4058
5655
  */
4059
5656
  declare const getVideoHistory: <ThrowOnError extends boolean = false>(options: Options<GetVideoHistoryData, ThrowOnError>) => RequestResult<GetVideoHistoryResponses, GetVideoHistoryErrors, ThrowOnError>;
5657
+ /**
5658
+ * Views gained each day, every video counted
5659
+ *
5660
+ * 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.
5661
+ */
5662
+ declare const getViewsPerDay: <ThrowOnError extends boolean = false>(options: Options<GetViewsPerDayData, ThrowOnError>) => RequestResult<GetViewsPerDayResponses, GetViewsPerDayErrors, ThrowOnError>;
4060
5663
  /**
4061
5664
  * Metrics of one published post
4062
5665
  */
@@ -4091,6 +5694,8 @@ declare const hideComment: <ThrowOnError extends boolean = false>(options: Optio
4091
5694
  declare const deleteComment: <ThrowOnError extends boolean = false>(options: Options<DeleteCommentData, ThrowOnError>) => RequestResult<DeleteCommentResponses, DeleteCommentErrors, ThrowOnError>;
4092
5695
  /**
4093
5696
  * Direct message conversations of a channel
5697
+ *
5698
+ * 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.
4094
5699
  */
4095
5700
  declare const listConversations: <ThrowOnError extends boolean = false>(options: Options<ListConversationsData, ThrowOnError>) => RequestResult<ListConversationsResponses, ListConversationsErrors, ThrowOnError>;
4096
5701
  /**
@@ -4107,6 +5712,8 @@ declare const pollInbox: <ThrowOnError extends boolean = false>(options: Options
4107
5712
  declare const subscribeInboxWebhook: <ThrowOnError extends boolean = false>(options: Options<SubscribeInboxWebhookData, ThrowOnError>) => RequestResult<SubscribeInboxWebhookResponses, SubscribeInboxWebhookErrors, ThrowOnError>;
4108
5713
  /**
4109
5714
  * Messages of one conversation
5715
+ *
5716
+ * 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.
4110
5717
  */
4111
5718
  declare const getConversation: <ThrowOnError extends boolean = false>(options: Options<GetConversationData, ThrowOnError>) => RequestResult<GetConversationResponses, GetConversationErrors, ThrowOnError>;
4112
5719
  /**
@@ -4118,11 +5725,11 @@ declare const listAutomationFlows: <ThrowOnError extends boolean = false>(option
4118
5725
  */
4119
5726
  declare const createAutomationFlow: <ThrowOnError extends boolean = false>(options: Options<CreateAutomationFlowData, ThrowOnError>) => RequestResult<CreateAutomationFlowResponses, CreateAutomationFlowErrors, ThrowOnError>;
4120
5727
  /**
4121
- * Render a Brevo step's email without sending it
5728
+ * Render the email of a « Forward the email » step without sending it
4122
5729
  */
4123
5730
  declare const previewAutomationEmail: <ThrowOnError extends boolean = false>(options: Options<PreviewAutomationEmailData, ThrowOnError>) => RequestResult<PreviewAutomationEmailResponses, PreviewAutomationEmailErrors, ThrowOnError>;
4124
5731
  /**
4125
- * Send a Brevo step's email to one address
5732
+ * Send the email of a « Forward the email » step to one address
4126
5733
  */
4127
5734
  declare const sendAutomationTestEmail: <ThrowOnError extends boolean = false>(options: Options<SendAutomationTestEmailData, ThrowOnError>) => RequestResult<SendAutomationTestEmailResponses, SendAutomationTestEmailErrors, ThrowOnError>;
4128
5735
  /**
@@ -4138,7 +5745,7 @@ declare const getAutomationFlow: <ThrowOnError extends boolean = false>(options:
4138
5745
  */
4139
5746
  declare const updateAutomationFlow: <ThrowOnError extends boolean = false>(options: Options<UpdateAutomationFlowData, ThrowOnError>) => RequestResult<UpdateAutomationFlowResponses, UpdateAutomationFlowErrors, ThrowOnError>;
4140
5747
  /**
4141
- * Activate or pause a template (ACTIVE is refused while it has errors)
5748
+ * Activate, pause, archive or unarchive a template (ACTIVE is refused while it has errors; ARCHIVED only from ACTIVE)
4142
5749
  */
4143
5750
  declare const setAutomationFlowStatus: <ThrowOnError extends boolean = false>(options: Options<SetAutomationFlowStatusData, ThrowOnError>) => RequestResult<SetAutomationFlowStatusResponses, SetAutomationFlowStatusErrors, ThrowOnError>;
4144
5751
  /**
@@ -4150,9 +5757,9 @@ declare const listAutomationFlowPoses: <ThrowOnError extends boolean = false>(op
4150
5757
  */
4151
5758
  declare const poseAutomationFlow: <ThrowOnError extends boolean = false>(options: Options<PoseAutomationFlowData, ThrowOnError>) => RequestResult<PoseAutomationFlowResponses, PoseAutomationFlowErrors, ThrowOnError>;
4152
5759
  /**
4153
- * The poses of a channel (one publication, or all)
5760
+ * The poses of a channel (one publication, or all) or of every channel of a workspace
4154
5761
  */
4155
- declare const listChannelAutomationPoses: <ThrowOnError extends boolean = false>(options: Options<ListChannelAutomationPosesData, ThrowOnError>) => RequestResult<ListChannelAutomationPosesResponses, ListChannelAutomationPosesErrors, ThrowOnError>;
5762
+ declare const listChannelAutomationPoses: <ThrowOnError extends boolean = false>(options?: Options<ListChannelAutomationPosesData, ThrowOnError>) => RequestResult<ListChannelAutomationPosesResponses, ListChannelAutomationPosesErrors, ThrowOnError>;
4156
5763
  /**
4157
5764
  * Remove a pose from its publication
4158
5765
  */
@@ -4177,6 +5784,14 @@ declare const pollAutomationPose: <ThrowOnError extends boolean = false>(options
4177
5784
  * Replay the automation on named comments, whatever their date
4178
5785
  */
4179
5786
  declare const replayAutomationPose: <ThrowOnError extends boolean = false>(options: Options<ReplayAutomationPoseData, ThrowOnError>) => RequestResult<ReplayAutomationPoseResponses, ReplayAutomationPoseErrors, ThrowOnError>;
5787
+ /**
5788
+ * Preview a catch-up: the comments already on the publication that would start the automation, sending nothing
5789
+ */
5790
+ declare const previewAutomationPoseCatchUp: <ThrowOnError extends boolean = false>(options: Options<PreviewAutomationPoseCatchUpData, ThrowOnError>) => RequestResult<PreviewAutomationPoseCatchUpResponses, PreviewAutomationPoseCatchUpErrors, ThrowOnError>;
5791
+ /**
5792
+ * Catch up the comments already on the publication: each matching comment starts the automation, a few per minute
5793
+ */
5794
+ declare const catchUpAutomationPose: <ThrowOnError extends boolean = false>(options: Options<CatchUpAutomationPoseData, ThrowOnError>) => RequestResult<CatchUpAutomationPoseResponses, CatchUpAutomationPoseErrors, ThrowOnError>;
4180
5795
  /**
4181
5796
  * The event catalogue a webhook can subscribe to
4182
5797
  */
@@ -4197,6 +5812,12 @@ declare const deleteWebhook: <ThrowOnError extends boolean = false>(options: Opt
4197
5812
  * One webhook endpoint
4198
5813
  */
4199
5814
  declare const getWebhook: <ThrowOnError extends boolean = false>(options: Options<GetWebhookData, ThrowOnError>) => RequestResult<GetWebhookResponses, GetWebhookErrors, ThrowOnError>;
5815
+ /**
5816
+ * Send one signed test delivery to a webhook and return its HTTP status
5817
+ *
5818
+ * POSTs a sample of the event to this webhook only — same envelope `{ id, event, occurredAt, organizationId, data }`, same `X-Nadia-*` headers and signature as a real delivery — with `test: true` added to the envelope and `data` a realistic sample (fake `test_…` ids; nothing happened). One attempt, no retry, 10-second timeout; the call waits for it and returns what the endpoint answered. 400 when the event is not in the catalogue or the webhook is not subscribed to it.
5819
+ */
5820
+ declare const testWebhook: <ThrowOnError extends boolean = false>(options: Options<TestWebhookData, ThrowOnError>) => RequestResult<TestWebhookResponses, TestWebhookErrors, ThrowOnError>;
4200
5821
  /**
4201
5822
  * List the cards of the board
4202
5823
  *
@@ -4229,6 +5850,12 @@ declare const updateContent: <ThrowOnError extends boolean = false>(options: Opt
4229
5850
  * 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.
4230
5851
  */
4231
5852
  declare const upsertContent: <ThrowOnError extends boolean = false>(options: Options<UpsertContentData, ThrowOnError>) => RequestResult<UpsertContentResponses, UpsertContentErrors, ThrowOnError>;
5853
+ /**
5854
+ * Turn a shared video link into an idea card
5855
+ *
5856
+ * 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.
5857
+ */
5858
+ declare const createContentFromLink: <ThrowOnError extends boolean = false>(options: Options<CreateContentFromLinkData, ThrowOnError>) => RequestResult<CreateContentFromLinkResponses, CreateContentFromLinkErrors, ThrowOnError>;
4232
5859
  /**
4233
5860
  * Move a card to another column
4234
5861
  */
@@ -4257,14 +5884,6 @@ declare const getHookForms: <ThrowOnError extends boolean = false>(options?: Opt
4257
5884
  * 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.
4258
5885
  */
4259
5886
  declare const listHookFamilies: <ThrowOnError extends boolean = false>(options?: Options<ListHookFamiliesData, ThrowOnError>) => RequestResult<ListHookFamiliesResponses, ListHookFamiliesErrors, ThrowOnError>;
4260
- /**
4261
- * Replace the family table
4262
- */
4263
- declare const replaceHookFamilies: <ThrowOnError extends boolean = false>(options: Options<ReplaceHookFamiliesData, ThrowOnError>) => RequestResult<ReplaceHookFamiliesResponses, ReplaceHookFamiliesErrors, ThrowOnError>;
4264
- /**
4265
- * Import hooks (upsert on source, account, externalId)
4266
- */
4267
- declare const importHooks: <ThrowOnError extends boolean = false>(options: Options<ImportHooksData, ThrowOnError>) => RequestResult<ImportHooksResponses, ImportHooksErrors, ThrowOnError>;
4268
5887
  /**
4269
5888
  * Royalty-free music for a video
4270
5889
  *
@@ -4289,8 +5908,17 @@ declare const importMusic: <ThrowOnError extends boolean = false>(options: Optio
4289
5908
  * Upload the prepared mp3 of a track — super admin only
4290
5909
  */
4291
5910
  declare const uploadMusicFile: <ThrowOnError extends boolean = false>(options: Options<UploadMusicFileData, ThrowOnError>) => RequestResult<UploadMusicFileResponses, UploadMusicFileErrors, ThrowOnError>;
5911
+ /**
5912
+ * Delete a workspace — its channels and their posts move to the first other one
5913
+ */
5914
+ declare const deleteWorkspace: <ThrowOnError extends boolean = false>(options: Options<DeleteWorkspaceData, ThrowOnError>) => RequestResult<DeleteWorkspaceResponses, DeleteWorkspaceErrors, ThrowOnError>;
5915
+ /**
5916
+ * Edit a workspace, or move channels into it
5917
+ */
5918
+ declare const updateWorkspace: <ThrowOnError extends boolean = false>(options: Options<UpdateWorkspaceData, ThrowOnError>) => RequestResult<UpdateWorkspaceResponses, UpdateWorkspaceErrors, ThrowOnError>;
4292
5919
 
4293
- /** Body of {@link Nadia.post}. */
5920
+ /** Body of {@link Nadia.post}: the spec's own shape (`group`, `value[].id`
5921
+ * and `value[].delay` are optional there since 2026-10-21). */
4294
5922
  type CreatePostBody = PublicCreatePostDto;
4295
5923
  /** A column of the content board, in board order. */
4296
5924
  type ContentStage = MoveContentDto['stage'];
@@ -4321,9 +5949,34 @@ type GeneratedResult<T> = {
4321
5949
  request?: Request;
4322
5950
  response?: Response;
4323
5951
  };
5952
+ /** What {@link Nadia.upload} resolves to: `id` and `path` go in a post. */
5953
+ interface UploadedMedia {
5954
+ id: string;
5955
+ path: string;
5956
+ /** In parts or single PUT: the checked type, bytes, seconds (null for an image), size as displayed, codec. */
5957
+ contentType?: string;
5958
+ size?: number;
5959
+ duration?: number | null;
5960
+ width?: number;
5961
+ height?: number;
5962
+ codec?: string;
5963
+ /** Through `POST /public/v1/upload`: the library row's other fields. */
5964
+ name?: string;
5965
+ originalName?: string | null;
5966
+ thumbnail?: string | null;
5967
+ alt?: string | null;
5968
+ }
5969
+ /**
5970
+ * The type a file of this name is sent in parts as (`video/mp4`,
5971
+ * `image/jpeg`…), or `undefined` when {@link Nadia.upload} sends it whole
5972
+ * through `POST /public/v1/upload` (HEIC, MOV, AVIF…).
5973
+ */
5974
+ declare const uploadContentType: (filename: string) => string | undefined;
4324
5975
  declare class Nadia {
4325
5976
  private readonly client;
4326
5977
  private readonly retries;
5978
+ /** For the bytes of an upload, which go to the upload host, not the API. */
5979
+ private readonly fetchImpl;
4327
5980
  constructor(apiKey: string, options?: string | NadiaOptions);
4328
5981
  /**
4329
5982
  * Runs a generated operation, turns a non-2xx into a `NadiaError`, and
@@ -4335,8 +5988,35 @@ declare class Nadia {
4335
5988
  post(body: CreatePostBody): Promise<CreatePostResultItemDto[]>;
4336
5989
  /** List posts in a date range. */
4337
5990
  postList(query?: Record<string, unknown>): Promise<PostListDto>;
4338
- /** Upload a file and get a URL usable in a post. */
4339
- upload(file: Blob | File, filename?: string): Promise<MediaResponseDto>;
5991
+ /**
5992
+ * Upload a file and get a URL usable in a post: a path on disk, or a
5993
+ * `Blob` / `File` with its name.
5994
+ *
5995
+ * An MP4, JPEG, PNG, WebP or GIF goes in parts of 20 MB straight to the
5996
+ * storage (`POST /public/v1/uploads`, then its confirm): four parts at a
5997
+ * time, a part cut by the network sent again, and the parts the confirm
5998
+ * says are missing sent again before confirming once more. A server that
5999
+ * does not take parts answers a single PUT, which is done instead; a
6000
+ * server without that route (older, or self-hosted on an older release)
6001
+ * and any other type (HEIC, MOV… which the server converts) go through
6002
+ * `POST /public/v1/upload`, the whole file in one request, as before.
6003
+ *
6004
+ * Resolves to the media: `id` and `path` always (what a post takes),
6005
+ * plus `size`, `duration`, `width`, `height`, `codec` when it went in
6006
+ * parts or in a single PUT.
6007
+ */
6008
+ upload(file: string | Blob | File, filename?: string): Promise<UploadedMedia>;
6009
+ /** The whole file in one multipart request: `POST /public/v1/upload`. */
6010
+ private uploadWhole;
6011
+ /** Each part to `<uploadUrl>/<n>`, a few at a time, each retried. */
6012
+ private sendParts;
6013
+ /** The single PUT of a server that takes no parts. */
6014
+ private sendWhole;
6015
+ /**
6016
+ * A PUT of raw bytes, without the API key (the URL is the credential):
6017
+ * three tries on a network error, a 5xx or a 429, none on anything else.
6018
+ */
6019
+ private put;
4340
6020
  /** List your connected channels. */
4341
6021
  integrations(): Promise<IntegrationListItemDto[]>;
4342
6022
  /** Delete a post and everything published with it. */
@@ -4405,4 +6085,57 @@ declare class Nadia {
4405
6085
  get raw(): Client;
4406
6086
  }
4407
6087
 
4408
- 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, 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 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 VideoDto, type VideoFunctionDto, type VideoHistoryPageDto, type VideoIdentityDto, type WebhookCreatedDto, type WebhookDto, type WebhookEventDto, type WebhookEventListDto, 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, pollAutomationPose, pollInbox, poseAutomationFlow, previewAutomationEmail, replaceHookFamilies, replayAutomationPose, replyToComment, runChannelTool, searchHooks, sendAutomationTestEmail, sendDirectMessage, setAutomationFlowStatus, setPostReleaseId, startChannelConnection, subscribeInboxWebhook, updateAutomationFlow, updateAutomationPose, updateContent, uploadFile, uploadFromUrl, uploadMusicFile, upsertContent };
6088
+ /**
6089
+ * What every webhook delivery carries (the JSON body). `data` depends on
6090
+ * `event` — `nadia.request(listWebhookEvents)` lists the events.
6091
+ */
6092
+ interface WebhookDelivery<T = unknown> {
6093
+ id: string;
6094
+ event: string;
6095
+ occurredAt: string;
6096
+ organizationId: string;
6097
+ data: T;
6098
+ }
6099
+ interface VerifyWebhookOptions {
6100
+ /** The secret returned once, when the webhook was created. */
6101
+ secret: string;
6102
+ /** The `X-Nadia-Signature` header: `sha256=<hex>`. */
6103
+ signature: string | null | undefined;
6104
+ /** The `X-Nadia-Timestamp` header, epoch seconds. */
6105
+ timestamp: string | number | null | undefined;
6106
+ /** The body exactly as received — not a re-serialized `JSON.parse`. */
6107
+ body: string | Uint8Array;
6108
+ /**
6109
+ * Reject deliveries whose timestamp is further than this from now, in
6110
+ * seconds (a replayed capture). Not checked when left out.
6111
+ */
6112
+ tolerance?: number;
6113
+ /** Current time in epoch milliseconds — for tests. Defaults to `Date.now()`. */
6114
+ now?: number;
6115
+ }
6116
+ /** Why {@link parseWebhook} refused a delivery. */
6117
+ declare class NadiaWebhookError extends Error {
6118
+ readonly reason: 'missing_header' | 'bad_signature' | 'stale' | 'bad_body';
6119
+ constructor(reason: NadiaWebhookError['reason'], message: string);
6120
+ }
6121
+ /**
6122
+ * True when the delivery was signed with `secret`. Compared in constant time.
6123
+ * Pass the **raw** body: a parsed and re-serialized one will not match.
6124
+ */
6125
+ declare function verifyWebhookSignature(options: VerifyWebhookOptions): boolean;
6126
+ /**
6127
+ * Verifies a delivery and returns it parsed — or throws `NadiaWebhookError`.
6128
+ * Unlike {@link verifyWebhookSignature}, the timestamp is checked by
6129
+ * default (300 s, the margin a retry needs); `tolerance: Infinity` turns it off.
6130
+ *
6131
+ * `headers` takes a Node `req.headers` object or a `Headers` instance.
6132
+ */
6133
+ declare function parseWebhook<T = unknown>(options: {
6134
+ secret: string;
6135
+ headers: Headers | Record<string, string | string[] | undefined>;
6136
+ body: string | Uint8Array;
6137
+ tolerance?: number;
6138
+ now?: number;
6139
+ }): WebhookDelivery<T>;
6140
+
6141
+ 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 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 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 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 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 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, 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, setPostAutomation, setPostCover, setPostPublication, setPostReleaseId, setPostingTimes, startChannelConnection, subscribeInboxWebhook, testWebhook, updateAutomationFlow, updateAutomationPose, updateContent, updateWorkspace, uploadContentType, uploadFile, uploadFromUrl, uploadMusicFile, upsertContent, verifyWebhookSignature };