@usenadia/node 0.1.1 → 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/README.md +20 -4
- package/dist/index.d.mts +1983 -361
- package/dist/index.d.ts +1983 -361
- package/dist/index.js +326 -48
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +296 -44
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
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,6 +619,9 @@ 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 = {
|
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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?:
|
|
1021
|
+
customer?: WorkspaceRefDto;
|
|
524
1022
|
};
|
|
525
1023
|
type SocialAuthUrlDto = {
|
|
526
1024
|
/**
|
|
@@ -553,71 +1051,31 @@ type NotificationsPageDto = {
|
|
|
553
1051
|
*/
|
|
554
1052
|
hasMore: boolean;
|
|
555
1053
|
};
|
|
556
|
-
type
|
|
1054
|
+
type IntegrationToolParamDto = {
|
|
1055
|
+
/**
|
|
1056
|
+
* Key to send in `data`.
|
|
1057
|
+
*/
|
|
1058
|
+
key: string;
|
|
557
1059
|
type: string;
|
|
558
|
-
|
|
559
|
-
customParams: {
|
|
560
|
-
[key: string]: unknown;
|
|
561
|
-
};
|
|
1060
|
+
description: string;
|
|
562
1061
|
};
|
|
563
|
-
type
|
|
1062
|
+
type IntegrationToolDto = {
|
|
564
1063
|
/**
|
|
565
|
-
*
|
|
1064
|
+
* Method to call on POST /integration-trigger/{id}.
|
|
566
1065
|
*/
|
|
567
|
-
|
|
1066
|
+
methodName: string;
|
|
568
1067
|
/**
|
|
569
|
-
*
|
|
1068
|
+
* What the tool does.
|
|
570
1069
|
*/
|
|
571
|
-
|
|
1070
|
+
description: string;
|
|
572
1071
|
/**
|
|
573
|
-
*
|
|
1072
|
+
* The keys `data` accepts.
|
|
574
1073
|
*/
|
|
575
|
-
|
|
1074
|
+
dataSchema: Array<IntegrationToolParamDto>;
|
|
1075
|
+
};
|
|
1076
|
+
type IntegrationSettingsOutputDto = {
|
|
576
1077
|
/**
|
|
577
|
-
*
|
|
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 = {
|
|
619
|
-
/**
|
|
620
|
-
* Human-readable posting rules for the provider.
|
|
1078
|
+
* Human-readable posting rules for the provider.
|
|
621
1079
|
*/
|
|
622
1080
|
rules: string;
|
|
623
1081
|
/**
|
|
@@ -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
|
-
|
|
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
|
-
*
|
|
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 ] }
|
|
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
|
|
844
|
-
|
|
845
|
-
|
|
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
|
|
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
|
-
|
|
850
|
-
|
|
851
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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
|
-
|
|
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;
|
|
@@ -1264,7 +1993,7 @@ type ContentListItemDto = {
|
|
|
1264
1993
|
*/
|
|
1265
1994
|
resourceBrief?: string | null;
|
|
1266
1995
|
/**
|
|
1267
|
-
* The column of the
|
|
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.
|
|
1268
1997
|
*/
|
|
1269
1998
|
stage: 'IDEA' | 'SCRIPT' | 'VALIDATED' | 'TO_SHOOT' | 'TO_EDIT' | 'TO_SCHEDULE' | 'PUBLISHED';
|
|
1270
1999
|
/**
|
|
@@ -1303,6 +2032,11 @@ type ContentListItemDto = {
|
|
|
1303
2032
|
* One entry per channel of each post scheduled from the card. Empty when there is none, or they were deleted.
|
|
1304
2033
|
*/
|
|
1305
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;
|
|
1306
2040
|
};
|
|
1307
2041
|
type CreateContentDto = {
|
|
1308
2042
|
/**
|
|
@@ -1390,7 +2124,7 @@ type ContentDto = {
|
|
|
1390
2124
|
*/
|
|
1391
2125
|
resourceBrief?: string | null;
|
|
1392
2126
|
/**
|
|
1393
|
-
* The column of the
|
|
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.
|
|
1394
2128
|
*/
|
|
1395
2129
|
stage: 'IDEA' | 'SCRIPT' | 'VALIDATED' | 'TO_SHOOT' | 'TO_EDIT' | 'TO_SCHEDULE' | 'PUBLISHED';
|
|
1396
2130
|
/**
|
|
@@ -1421,6 +2155,11 @@ type ContentDto = {
|
|
|
1421
2155
|
parentId?: string | null;
|
|
1422
2156
|
createdAt: string;
|
|
1423
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;
|
|
1424
2163
|
};
|
|
1425
2164
|
type UpsertContentDto = {
|
|
1426
2165
|
/**
|
|
@@ -1493,6 +2232,10 @@ type UpdateContentDto = {
|
|
|
1493
2232
|
plannedAt?: string | null;
|
|
1494
2233
|
videoMediaId?: string | null;
|
|
1495
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;
|
|
1496
2239
|
};
|
|
1497
2240
|
type MoveContentDto = {
|
|
1498
2241
|
stage: 'IDEA' | 'SCRIPT' | 'VALIDATED' | 'TO_SHOOT' | 'TO_EDIT' | 'TO_SCHEDULE' | 'PUBLISHED';
|
|
@@ -1623,126 +2366,48 @@ type HookFamilyDto = {
|
|
|
1623
2366
|
verdict: string;
|
|
1624
2367
|
measuredAt: string;
|
|
1625
2368
|
};
|
|
1626
|
-
type
|
|
1627
|
-
source?: string;
|
|
2369
|
+
type MusicTrackDto = {
|
|
1628
2370
|
/**
|
|
1629
|
-
*
|
|
2371
|
+
* Stable identifier.
|
|
1630
2372
|
*/
|
|
1631
|
-
|
|
2373
|
+
slug: string;
|
|
2374
|
+
title: string;
|
|
2375
|
+
artist: string;
|
|
1632
2376
|
/**
|
|
1633
|
-
*
|
|
2377
|
+
* `piano` (storytelling, educational, default), `news` (tension, actu), `synthwave` (tech), `epique` (cinematic).
|
|
1634
2378
|
*/
|
|
1635
|
-
|
|
1636
|
-
publishedAt?: string;
|
|
1637
|
-
language?: string;
|
|
2379
|
+
pillar: string;
|
|
1638
2380
|
/**
|
|
1639
|
-
*
|
|
2381
|
+
* Seconds.
|
|
1640
2382
|
*/
|
|
1641
|
-
|
|
2383
|
+
durationS: number;
|
|
2384
|
+
bpm?: number | null;
|
|
1642
2385
|
/**
|
|
1643
|
-
*
|
|
2386
|
+
* Shape of the first seconds: crescendo, fade-in, nappe…
|
|
1644
2387
|
*/
|
|
1645
|
-
|
|
1646
|
-
views: number;
|
|
2388
|
+
intro?: string | null;
|
|
1647
2389
|
/**
|
|
1648
|
-
*
|
|
2390
|
+
* `ok` = fits under a voice; `limite` = usable, a bit fast or a punch early on.
|
|
1649
2391
|
*/
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
familySecond?: string;
|
|
1653
|
-
nature?: string;
|
|
1654
|
-
concrete?: boolean;
|
|
1655
|
-
audience?: string;
|
|
2392
|
+
verdict: string;
|
|
2393
|
+
verdictWhy?: string | null;
|
|
1656
2394
|
/**
|
|
1657
|
-
*
|
|
2395
|
+
* Public Domain, CC0, CC-BY 3.0, CC-BY 4.0.
|
|
1658
2396
|
*/
|
|
1659
|
-
|
|
1660
|
-
|
|
2397
|
+
license: string;
|
|
2398
|
+
attributionRequired: boolean;
|
|
1661
2399
|
/**
|
|
1662
|
-
*
|
|
2400
|
+
* The exact line to paste at the bottom of the description, before the hashtags. Null when nothing is owed.
|
|
1663
2401
|
*/
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
type HooksImportDto = {
|
|
2402
|
+
creditLine?: string | null;
|
|
2403
|
+
sourceUrl?: string | null;
|
|
2404
|
+
licenseUrl?: string | null;
|
|
1668
2405
|
/**
|
|
1669
|
-
*
|
|
2406
|
+
* Flagged by YouTube Content ID (no effect on TikTok / Instagram).
|
|
1670
2407
|
*/
|
|
1671
|
-
|
|
1672
|
-
};
|
|
1673
|
-
type HooksImportResultDto = {
|
|
1674
|
-
imported: number;
|
|
1675
|
-
total: number;
|
|
1676
|
-
};
|
|
1677
|
-
type HookFamilyStatDto = {
|
|
1678
|
-
family: string;
|
|
2408
|
+
contentIdYoutube?: string | null;
|
|
1679
2409
|
/**
|
|
1680
|
-
*
|
|
1681
|
-
*/
|
|
1682
|
-
nature?: string;
|
|
1683
|
-
n: number;
|
|
1684
|
-
accounts: number;
|
|
1685
|
-
ratio?: number | null;
|
|
1686
|
-
ps?: number | null;
|
|
1687
|
-
bangers?: number | null;
|
|
1688
|
-
bangersRest?: number | null;
|
|
1689
|
-
accountsFor: number;
|
|
1690
|
-
accountsAgainst: number;
|
|
1691
|
-
pSign?: number | null;
|
|
1692
|
-
verdict: string;
|
|
1693
|
-
};
|
|
1694
|
-
type HookFamiliesImportDto = {
|
|
1695
|
-
/**
|
|
1696
|
-
* When the corpus was measured.
|
|
1697
|
-
*/
|
|
1698
|
-
measuredAt: string;
|
|
1699
|
-
/**
|
|
1700
|
-
* The whole table: it replaces the previous one.
|
|
1701
|
-
*/
|
|
1702
|
-
families: Array<HookFamilyStatDto>;
|
|
1703
|
-
};
|
|
1704
|
-
type MusicTrackDto = {
|
|
1705
|
-
/**
|
|
1706
|
-
* Stable identifier.
|
|
1707
|
-
*/
|
|
1708
|
-
slug: string;
|
|
1709
|
-
title: string;
|
|
1710
|
-
artist: string;
|
|
1711
|
-
/**
|
|
1712
|
-
* `piano` (storytelling, educational, default), `news` (tension, actu), `synthwave` (tech), `epique` (cinematic).
|
|
1713
|
-
*/
|
|
1714
|
-
pillar: string;
|
|
1715
|
-
/**
|
|
1716
|
-
* Seconds.
|
|
1717
|
-
*/
|
|
1718
|
-
durationS: number;
|
|
1719
|
-
bpm?: number | null;
|
|
1720
|
-
/**
|
|
1721
|
-
* Shape of the first seconds: crescendo, fade-in, nappe…
|
|
1722
|
-
*/
|
|
1723
|
-
intro?: string | null;
|
|
1724
|
-
/**
|
|
1725
|
-
* `ok` = fits under a voice; `limite` = usable, a bit fast or a punch early on.
|
|
1726
|
-
*/
|
|
1727
|
-
verdict: string;
|
|
1728
|
-
verdictWhy?: string | null;
|
|
1729
|
-
/**
|
|
1730
|
-
* Public Domain, CC0, CC-BY 3.0, CC-BY 4.0.
|
|
1731
|
-
*/
|
|
1732
|
-
license: string;
|
|
1733
|
-
attributionRequired: boolean;
|
|
1734
|
-
/**
|
|
1735
|
-
* The exact line to paste at the bottom of the description, before the hashtags. Null when nothing is owed.
|
|
1736
|
-
*/
|
|
1737
|
-
creditLine?: string | null;
|
|
1738
|
-
sourceUrl?: string | null;
|
|
1739
|
-
licenseUrl?: string | null;
|
|
1740
|
-
/**
|
|
1741
|
-
* Flagged by YouTube Content ID (no effect on TikTok / Instagram).
|
|
1742
|
-
*/
|
|
1743
|
-
contentIdYoutube?: string | null;
|
|
1744
|
-
/**
|
|
1745
|
-
* Public URL of the prepared mp3: dynamics flattened, normalised to `storedLufs`.
|
|
2410
|
+
* Public URL of the prepared mp3: dynamics flattened, normalised to `storedLufs`.
|
|
1746
2411
|
*/
|
|
1747
2412
|
url: string;
|
|
1748
2413
|
/**
|
|
@@ -1836,17 +2501,453 @@ type MusicImportResultDto = {
|
|
|
1836
2501
|
/**
|
|
1837
2502
|
* Tracks in the catalogue, file or not.
|
|
1838
2503
|
*/
|
|
1839
|
-
total: number;
|
|
2504
|
+
total: number;
|
|
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
|
+
};
|
|
2796
|
+
type UploadFileData = {
|
|
2797
|
+
body: {
|
|
2798
|
+
file: Blob | File;
|
|
2799
|
+
};
|
|
2800
|
+
path?: never;
|
|
2801
|
+
query?: never;
|
|
2802
|
+
url: '/public/v1/upload';
|
|
2803
|
+
};
|
|
2804
|
+
type UploadFileErrors = {
|
|
2805
|
+
/**
|
|
2806
|
+
* The request was rejected — `msg` says why.
|
|
2807
|
+
*/
|
|
2808
|
+
400: ApiErrorDto;
|
|
2809
|
+
/**
|
|
2810
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2811
|
+
*/
|
|
2812
|
+
401: ApiErrorDto;
|
|
2813
|
+
/**
|
|
2814
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2815
|
+
*/
|
|
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;
|
|
2821
|
+
};
|
|
2822
|
+
type UploadFileError = UploadFileErrors[keyof UploadFileErrors];
|
|
2823
|
+
type UploadFileResponses = {
|
|
2824
|
+
201: MediaResponseDto;
|
|
2825
|
+
};
|
|
2826
|
+
type UploadFileResponse = UploadFileResponses[keyof UploadFileResponses];
|
|
2827
|
+
type UploadFromUrlData = {
|
|
2828
|
+
body: UploadDto;
|
|
2829
|
+
path?: never;
|
|
2830
|
+
query?: never;
|
|
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;
|
|
1840
2940
|
};
|
|
1841
|
-
type
|
|
1842
|
-
|
|
1843
|
-
|
|
2941
|
+
type ConfirmUploadResponse = ConfirmUploadResponses[keyof ConfirmUploadResponses];
|
|
2942
|
+
type FindSlotData = {
|
|
2943
|
+
body?: never;
|
|
2944
|
+
path: {
|
|
2945
|
+
id: string;
|
|
1844
2946
|
};
|
|
1845
|
-
path?: never;
|
|
1846
2947
|
query?: never;
|
|
1847
|
-
url: '/public/v1/
|
|
2948
|
+
url: '/public/v1/find-slot/{id}';
|
|
1848
2949
|
};
|
|
1849
|
-
type
|
|
2950
|
+
type FindSlotErrors = {
|
|
1850
2951
|
/**
|
|
1851
2952
|
* The request was rejected — `msg` says why.
|
|
1852
2953
|
*/
|
|
@@ -1860,18 +2961,20 @@ type UploadFileErrors = {
|
|
|
1860
2961
|
*/
|
|
1861
2962
|
404: ApiErrorDto;
|
|
1862
2963
|
};
|
|
1863
|
-
type
|
|
1864
|
-
type
|
|
1865
|
-
|
|
2964
|
+
type FindSlotError = FindSlotErrors[keyof FindSlotErrors];
|
|
2965
|
+
type FindSlotResponses = {
|
|
2966
|
+
200: FindSlotDto;
|
|
1866
2967
|
};
|
|
1867
|
-
type
|
|
1868
|
-
type
|
|
1869
|
-
body
|
|
1870
|
-
path
|
|
2968
|
+
type FindSlotResponse = FindSlotResponses[keyof FindSlotResponses];
|
|
2969
|
+
type GetPostingTimesData = {
|
|
2970
|
+
body?: never;
|
|
2971
|
+
path: {
|
|
2972
|
+
id: string;
|
|
2973
|
+
};
|
|
1871
2974
|
query?: never;
|
|
1872
|
-
url: '/public/v1/
|
|
2975
|
+
url: '/public/v1/integrations/{id}/posting-times';
|
|
1873
2976
|
};
|
|
1874
|
-
type
|
|
2977
|
+
type GetPostingTimesErrors = {
|
|
1875
2978
|
/**
|
|
1876
2979
|
* The request was rejected — `msg` says why.
|
|
1877
2980
|
*/
|
|
@@ -1880,25 +2983,22 @@ type UploadFromUrlErrors = {
|
|
|
1880
2983
|
* Missing or invalid API key (`Authorization` header).
|
|
1881
2984
|
*/
|
|
1882
2985
|
401: ApiErrorDto;
|
|
1883
|
-
/**
|
|
1884
|
-
* The channel, post or record named in the path does not belong to your organisation.
|
|
1885
|
-
*/
|
|
1886
2986
|
404: ApiErrorDto;
|
|
1887
2987
|
};
|
|
1888
|
-
type
|
|
1889
|
-
type
|
|
1890
|
-
|
|
2988
|
+
type GetPostingTimesError = GetPostingTimesErrors[keyof GetPostingTimesErrors];
|
|
2989
|
+
type GetPostingTimesResponses = {
|
|
2990
|
+
200: PostingTimesResultDto;
|
|
1891
2991
|
};
|
|
1892
|
-
type
|
|
1893
|
-
type
|
|
1894
|
-
body
|
|
2992
|
+
type GetPostingTimesResponse = GetPostingTimesResponses[keyof GetPostingTimesResponses];
|
|
2993
|
+
type SetPostingTimesData = {
|
|
2994
|
+
body: PostingTimesDto;
|
|
1895
2995
|
path: {
|
|
1896
2996
|
id: string;
|
|
1897
2997
|
};
|
|
1898
2998
|
query?: never;
|
|
1899
|
-
url: '/public/v1/
|
|
2999
|
+
url: '/public/v1/integrations/{id}/posting-times';
|
|
1900
3000
|
};
|
|
1901
|
-
type
|
|
3001
|
+
type SetPostingTimesErrors = {
|
|
1902
3002
|
/**
|
|
1903
3003
|
* The request was rejected — `msg` says why.
|
|
1904
3004
|
*/
|
|
@@ -1907,24 +3007,35 @@ type FindSlotErrors = {
|
|
|
1907
3007
|
* Missing or invalid API key (`Authorization` header).
|
|
1908
3008
|
*/
|
|
1909
3009
|
401: ApiErrorDto;
|
|
1910
|
-
/**
|
|
1911
|
-
* The channel, post or record named in the path does not belong to your organisation.
|
|
1912
|
-
*/
|
|
1913
3010
|
404: ApiErrorDto;
|
|
1914
3011
|
};
|
|
1915
|
-
type
|
|
1916
|
-
type
|
|
1917
|
-
200:
|
|
3012
|
+
type SetPostingTimesError = SetPostingTimesErrors[keyof SetPostingTimesErrors];
|
|
3013
|
+
type SetPostingTimesResponses = {
|
|
3014
|
+
200: PostingTimesResultDto;
|
|
1918
3015
|
};
|
|
1919
|
-
type
|
|
3016
|
+
type SetPostingTimesResponse = SetPostingTimesResponses[keyof SetPostingTimesResponses];
|
|
1920
3017
|
type ListPostsData = {
|
|
1921
3018
|
body?: never;
|
|
1922
3019
|
path?: never;
|
|
1923
3020
|
query: {
|
|
1924
|
-
|
|
1925
|
-
|
|
3021
|
+
/**
|
|
3022
|
+
* Deprecated alias of `workspace` (public API).
|
|
3023
|
+
*
|
|
3024
|
+
* @deprecated
|
|
3025
|
+
*/
|
|
1926
3026
|
customer?: string;
|
|
3027
|
+
/**
|
|
3028
|
+
* Deprecated alias of `workspace`.
|
|
3029
|
+
*
|
|
3030
|
+
* @deprecated
|
|
3031
|
+
*/
|
|
1927
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;
|
|
1928
3039
|
integration?: string;
|
|
1929
3040
|
};
|
|
1930
3041
|
url: '/public/v1/posts';
|
|
@@ -2000,6 +3111,29 @@ type DeletePostResponses = {
|
|
|
2000
3111
|
200: DeletedIdDto;
|
|
2001
3112
|
};
|
|
2002
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];
|
|
2003
3137
|
type DeletePostGroupData = {
|
|
2004
3138
|
body?: never;
|
|
2005
3139
|
path: {
|
|
@@ -2052,6 +3186,81 @@ type CheckConnectionResponses = {
|
|
|
2052
3186
|
200: IsConnectedDto;
|
|
2053
3187
|
};
|
|
2054
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];
|
|
2055
3264
|
type ListGroupsData = {
|
|
2056
3265
|
body?: never;
|
|
2057
3266
|
path?: never;
|
|
@@ -2081,6 +3290,15 @@ type ListChannelsData = {
|
|
|
2081
3290
|
body?: never;
|
|
2082
3291
|
path?: never;
|
|
2083
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
|
+
*/
|
|
2084
3302
|
group?: string;
|
|
2085
3303
|
};
|
|
2086
3304
|
url: '/public/v1/integrations';
|
|
@@ -2123,6 +3341,10 @@ type StartChannelConnectionErrors = {
|
|
|
2123
3341
|
* Missing or invalid API key (`Authorization` header).
|
|
2124
3342
|
*/
|
|
2125
3343
|
401: ApiErrorDto;
|
|
3344
|
+
/**
|
|
3345
|
+
* Your plan does not include this channel (X on the Starter ultime) — `msg` says so.
|
|
3346
|
+
*/
|
|
3347
|
+
402: ApiErrorDto;
|
|
2126
3348
|
/**
|
|
2127
3349
|
* The channel, post or record named in the path does not belong to your organisation.
|
|
2128
3350
|
*/
|
|
@@ -2160,13 +3382,15 @@ type ListNotificationsResponses = {
|
|
|
2160
3382
|
200: NotificationsPageDto;
|
|
2161
3383
|
};
|
|
2162
3384
|
type ListNotificationsResponse = ListNotificationsResponses[keyof ListNotificationsResponses];
|
|
2163
|
-
type
|
|
2164
|
-
body
|
|
2165
|
-
path
|
|
3385
|
+
type DeleteChannelData = {
|
|
3386
|
+
body?: never;
|
|
3387
|
+
path: {
|
|
3388
|
+
id: string;
|
|
3389
|
+
};
|
|
2166
3390
|
query?: never;
|
|
2167
|
-
url: '/public/v1/
|
|
3391
|
+
url: '/public/v1/integrations/{id}';
|
|
2168
3392
|
};
|
|
2169
|
-
type
|
|
3393
|
+
type DeleteChannelErrors = {
|
|
2170
3394
|
/**
|
|
2171
3395
|
* The request was rejected — `msg` says why.
|
|
2172
3396
|
*/
|
|
@@ -2180,18 +3404,20 @@ type GenerateVideoErrors = {
|
|
|
2180
3404
|
*/
|
|
2181
3405
|
404: ApiErrorDto;
|
|
2182
3406
|
};
|
|
2183
|
-
type
|
|
2184
|
-
type
|
|
2185
|
-
|
|
3407
|
+
type DeleteChannelError = DeleteChannelErrors[keyof DeleteChannelErrors];
|
|
3408
|
+
type DeleteChannelResponses = {
|
|
3409
|
+
200: IntegrationListItemDto;
|
|
2186
3410
|
};
|
|
2187
|
-
type
|
|
2188
|
-
type
|
|
2189
|
-
body
|
|
2190
|
-
path
|
|
3411
|
+
type DeleteChannelResponse = DeleteChannelResponses[keyof DeleteChannelResponses];
|
|
3412
|
+
type GetChannelSettingsData = {
|
|
3413
|
+
body?: never;
|
|
3414
|
+
path: {
|
|
3415
|
+
id: string;
|
|
3416
|
+
};
|
|
2191
3417
|
query?: never;
|
|
2192
|
-
url: '/public/v1/
|
|
3418
|
+
url: '/public/v1/integration-settings/{id}';
|
|
2193
3419
|
};
|
|
2194
|
-
type
|
|
3420
|
+
type GetChannelSettingsErrors = {
|
|
2195
3421
|
/**
|
|
2196
3422
|
* The request was rejected — `msg` says why.
|
|
2197
3423
|
*/
|
|
@@ -2205,25 +3431,20 @@ type CallVideoFunctionErrors = {
|
|
|
2205
3431
|
*/
|
|
2206
3432
|
404: ApiErrorDto;
|
|
2207
3433
|
};
|
|
2208
|
-
type
|
|
2209
|
-
type
|
|
2210
|
-
|
|
2211
|
-
* Raw answer of the video provider function — shape depends on `functionName`.
|
|
2212
|
-
*/
|
|
2213
|
-
201: {
|
|
2214
|
-
[key: string]: unknown;
|
|
2215
|
-
};
|
|
3434
|
+
type GetChannelSettingsError = GetChannelSettingsErrors[keyof GetChannelSettingsErrors];
|
|
3435
|
+
type GetChannelSettingsResponses = {
|
|
3436
|
+
200: IntegrationSettingsDto;
|
|
2216
3437
|
};
|
|
2217
|
-
type
|
|
2218
|
-
type
|
|
3438
|
+
type GetChannelSettingsResponse = GetChannelSettingsResponses[keyof GetChannelSettingsResponses];
|
|
3439
|
+
type ListMissingMediaData = {
|
|
2219
3440
|
body?: never;
|
|
2220
3441
|
path: {
|
|
2221
3442
|
id: string;
|
|
2222
3443
|
};
|
|
2223
3444
|
query?: never;
|
|
2224
|
-
url: '/public/v1/
|
|
3445
|
+
url: '/public/v1/posts/{id}/missing';
|
|
2225
3446
|
};
|
|
2226
|
-
type
|
|
3447
|
+
type ListMissingMediaErrors = {
|
|
2227
3448
|
/**
|
|
2228
3449
|
* The request was rejected — `msg` says why.
|
|
2229
3450
|
*/
|
|
@@ -2237,20 +3458,20 @@ type DeleteChannelErrors = {
|
|
|
2237
3458
|
*/
|
|
2238
3459
|
404: ApiErrorDto;
|
|
2239
3460
|
};
|
|
2240
|
-
type
|
|
2241
|
-
type
|
|
2242
|
-
200:
|
|
3461
|
+
type ListMissingMediaError = ListMissingMediaErrors[keyof ListMissingMediaErrors];
|
|
3462
|
+
type ListMissingMediaResponses = {
|
|
3463
|
+
200: Array<MissingContentItemDto>;
|
|
2243
3464
|
};
|
|
2244
|
-
type
|
|
2245
|
-
type
|
|
2246
|
-
body
|
|
3465
|
+
type ListMissingMediaResponse = ListMissingMediaResponses[keyof ListMissingMediaResponses];
|
|
3466
|
+
type ChangePostStatusData = {
|
|
3467
|
+
body: ChangePostStatusDto;
|
|
2247
3468
|
path: {
|
|
2248
3469
|
id: string;
|
|
2249
3470
|
};
|
|
2250
3471
|
query?: never;
|
|
2251
|
-
url: '/public/v1/
|
|
3472
|
+
url: '/public/v1/posts/{id}/status';
|
|
2252
3473
|
};
|
|
2253
|
-
type
|
|
3474
|
+
type ChangePostStatusErrors = {
|
|
2254
3475
|
/**
|
|
2255
3476
|
* The request was rejected — `msg` says why.
|
|
2256
3477
|
*/
|
|
@@ -2264,20 +3485,101 @@ type GetChannelSettingsErrors = {
|
|
|
2264
3485
|
*/
|
|
2265
3486
|
404: ApiErrorDto;
|
|
2266
3487
|
};
|
|
2267
|
-
type
|
|
2268
|
-
type
|
|
2269
|
-
200:
|
|
3488
|
+
type ChangePostStatusError = ChangePostStatusErrors[keyof ChangePostStatusErrors];
|
|
3489
|
+
type ChangePostStatusResponses = {
|
|
3490
|
+
200: PostStatusDto;
|
|
2270
3491
|
};
|
|
2271
|
-
type
|
|
2272
|
-
type
|
|
3492
|
+
type ChangePostStatusResponse = ChangePostStatusResponses[keyof ChangePostStatusResponses];
|
|
3493
|
+
type RemovePostAutomationData = {
|
|
2273
3494
|
body?: never;
|
|
2274
3495
|
path: {
|
|
2275
3496
|
id: string;
|
|
2276
3497
|
};
|
|
2277
3498
|
query?: never;
|
|
2278
|
-
url: '/public/v1/posts/{id}/
|
|
3499
|
+
url: '/public/v1/posts/{id}/automation';
|
|
2279
3500
|
};
|
|
2280
|
-
type
|
|
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];
|
|
3574
|
+
type SetPostReleaseIdData = {
|
|
3575
|
+
body: UpdateReleaseIdDto;
|
|
3576
|
+
path: {
|
|
3577
|
+
id: string;
|
|
3578
|
+
};
|
|
3579
|
+
query?: never;
|
|
3580
|
+
url: '/public/v1/posts/{id}/release-id';
|
|
3581
|
+
};
|
|
3582
|
+
type SetPostReleaseIdErrors = {
|
|
2281
3583
|
/**
|
|
2282
3584
|
* The request was rejected — `msg` says why.
|
|
2283
3585
|
*/
|
|
@@ -2291,20 +3593,20 @@ type ListMissingMediaErrors = {
|
|
|
2291
3593
|
*/
|
|
2292
3594
|
404: ApiErrorDto;
|
|
2293
3595
|
};
|
|
2294
|
-
type
|
|
2295
|
-
type
|
|
2296
|
-
200:
|
|
3596
|
+
type SetPostReleaseIdError = SetPostReleaseIdErrors[keyof SetPostReleaseIdErrors];
|
|
3597
|
+
type SetPostReleaseIdResponses = {
|
|
3598
|
+
200: PostDto;
|
|
2297
3599
|
};
|
|
2298
|
-
type
|
|
2299
|
-
type
|
|
2300
|
-
body:
|
|
3600
|
+
type SetPostReleaseIdResponse = SetPostReleaseIdResponses[keyof SetPostReleaseIdResponses];
|
|
3601
|
+
type SetPostCoverData = {
|
|
3602
|
+
body: SetPostCoverDto;
|
|
2301
3603
|
path: {
|
|
2302
3604
|
id: string;
|
|
2303
3605
|
};
|
|
2304
3606
|
query?: never;
|
|
2305
|
-
url: '/public/v1/posts/{id}/
|
|
3607
|
+
url: '/public/v1/posts/{id}/cover';
|
|
2306
3608
|
};
|
|
2307
|
-
type
|
|
3609
|
+
type SetPostCoverErrors = {
|
|
2308
3610
|
/**
|
|
2309
3611
|
* The request was rejected — `msg` says why.
|
|
2310
3612
|
*/
|
|
@@ -2318,20 +3620,20 @@ type ChangePostStatusErrors = {
|
|
|
2318
3620
|
*/
|
|
2319
3621
|
404: ApiErrorDto;
|
|
2320
3622
|
};
|
|
2321
|
-
type
|
|
2322
|
-
type
|
|
2323
|
-
200:
|
|
3623
|
+
type SetPostCoverError = SetPostCoverErrors[keyof SetPostCoverErrors];
|
|
3624
|
+
type SetPostCoverResponses = {
|
|
3625
|
+
200: PostDetailDto;
|
|
2324
3626
|
};
|
|
2325
|
-
type
|
|
2326
|
-
type
|
|
2327
|
-
body:
|
|
3627
|
+
type SetPostCoverResponse = SetPostCoverResponses[keyof SetPostCoverResponses];
|
|
3628
|
+
type SetPostPublicationData = {
|
|
3629
|
+
body: SetPostPublicationDto;
|
|
2328
3630
|
path: {
|
|
2329
3631
|
id: string;
|
|
2330
3632
|
};
|
|
2331
3633
|
query?: never;
|
|
2332
|
-
url: '/public/v1/posts/{id}/
|
|
3634
|
+
url: '/public/v1/posts/{id}/publication';
|
|
2333
3635
|
};
|
|
2334
|
-
type
|
|
3636
|
+
type SetPostPublicationErrors = {
|
|
2335
3637
|
/**
|
|
2336
3638
|
* The request was rejected — `msg` says why.
|
|
2337
3639
|
*/
|
|
@@ -2345,11 +3647,11 @@ type SetPostReleaseIdErrors = {
|
|
|
2345
3647
|
*/
|
|
2346
3648
|
404: ApiErrorDto;
|
|
2347
3649
|
};
|
|
2348
|
-
type
|
|
2349
|
-
type
|
|
2350
|
-
200:
|
|
3650
|
+
type SetPostPublicationError = SetPostPublicationErrors[keyof SetPostPublicationErrors];
|
|
3651
|
+
type SetPostPublicationResponses = {
|
|
3652
|
+
200: PostPublicationDto;
|
|
2351
3653
|
};
|
|
2352
|
-
type
|
|
3654
|
+
type SetPostPublicationResponse = SetPostPublicationResponses[keyof SetPostPublicationResponses];
|
|
2353
3655
|
type GetChannelAnalyticsData = {
|
|
2354
3656
|
body?: never;
|
|
2355
3657
|
path: {
|
|
@@ -2480,6 +3782,40 @@ type GetVideoHistoryResponses = {
|
|
|
2480
3782
|
200: VideoHistoryPageDto;
|
|
2481
3783
|
};
|
|
2482
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];
|
|
2483
3819
|
type GetPostAnalyticsData = {
|
|
2484
3820
|
body?: never;
|
|
2485
3821
|
path: {
|
|
@@ -2647,7 +3983,7 @@ type ReplyToCommentErrors = {
|
|
|
2647
3983
|
};
|
|
2648
3984
|
type ReplyToCommentError = ReplyToCommentErrors[keyof ReplyToCommentErrors];
|
|
2649
3985
|
type ReplyToCommentResponses = {
|
|
2650
|
-
201:
|
|
3986
|
+
201: CommentReplyResultDto;
|
|
2651
3987
|
};
|
|
2652
3988
|
type ReplyToCommentResponse = ReplyToCommentResponses[keyof ReplyToCommentResponses];
|
|
2653
3989
|
type HideCommentData = {
|
|
@@ -2712,7 +4048,18 @@ type ListConversationsData = {
|
|
|
2712
4048
|
integrationId: string;
|
|
2713
4049
|
};
|
|
2714
4050
|
query?: {
|
|
4051
|
+
/**
|
|
4052
|
+
* How many conversations, 1 to 200. 25 by default.
|
|
4053
|
+
*/
|
|
2715
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;
|
|
2716
4063
|
};
|
|
2717
4064
|
url: '/public/v1/inbox/{integrationId}';
|
|
2718
4065
|
};
|
|
@@ -2759,7 +4106,7 @@ type SendDirectMessageErrors = {
|
|
|
2759
4106
|
};
|
|
2760
4107
|
type SendDirectMessageError = SendDirectMessageErrors[keyof SendDirectMessageErrors];
|
|
2761
4108
|
type SendDirectMessageResponses = {
|
|
2762
|
-
201:
|
|
4109
|
+
201: DirectMessageResultDto;
|
|
2763
4110
|
};
|
|
2764
4111
|
type SendDirectMessageResponse = SendDirectMessageResponses[keyof SendDirectMessageResponses];
|
|
2765
4112
|
type PollInboxData = {
|
|
@@ -2822,7 +4169,16 @@ type GetConversationData = {
|
|
|
2822
4169
|
integrationId: string;
|
|
2823
4170
|
conversationId: string;
|
|
2824
4171
|
};
|
|
2825
|
-
query?:
|
|
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
|
+
};
|
|
2826
4182
|
url: '/public/v1/inbox/{integrationId}/{conversationId}';
|
|
2827
4183
|
};
|
|
2828
4184
|
type GetConversationErrors = {
|
|
@@ -2841,7 +4197,7 @@ type GetConversationErrors = {
|
|
|
2841
4197
|
};
|
|
2842
4198
|
type GetConversationError = GetConversationErrors[keyof GetConversationErrors];
|
|
2843
4199
|
type GetConversationResponses = {
|
|
2844
|
-
200:
|
|
4200
|
+
200: InboxThreadDto;
|
|
2845
4201
|
};
|
|
2846
4202
|
type GetConversationResponse = GetConversationResponses[keyof GetConversationResponses];
|
|
2847
4203
|
type ListAutomationFlowsData = {
|
|
@@ -3109,9 +4465,19 @@ type PoseAutomationFlowResponse = PoseAutomationFlowResponses[keyof PoseAutomati
|
|
|
3109
4465
|
type ListChannelAutomationPosesData = {
|
|
3110
4466
|
body?: never;
|
|
3111
4467
|
path?: never;
|
|
3112
|
-
query
|
|
3113
|
-
|
|
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
|
+
*/
|
|
3114
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;
|
|
3115
4481
|
};
|
|
3116
4482
|
url: '/public/v1/automation-flow-poses';
|
|
3117
4483
|
};
|
|
@@ -3268,7 +4634,7 @@ type PollAutomationPoseErrors = {
|
|
|
3268
4634
|
};
|
|
3269
4635
|
type PollAutomationPoseError = PollAutomationPoseErrors[keyof PollAutomationPoseErrors];
|
|
3270
4636
|
type PollAutomationPoseResponses = {
|
|
3271
|
-
|
|
4637
|
+
201: AutomationFlowPollResultDto;
|
|
3272
4638
|
};
|
|
3273
4639
|
type PollAutomationPoseResponse = PollAutomationPoseResponses[keyof PollAutomationPoseResponses];
|
|
3274
4640
|
type ReplayAutomationPoseData = {
|
|
@@ -3295,9 +4661,63 @@ type ReplayAutomationPoseErrors = {
|
|
|
3295
4661
|
};
|
|
3296
4662
|
type ReplayAutomationPoseError = ReplayAutomationPoseErrors[keyof ReplayAutomationPoseErrors];
|
|
3297
4663
|
type ReplayAutomationPoseResponses = {
|
|
3298
|
-
|
|
4664
|
+
201: Array<AutomationFlowReplayResultDto>;
|
|
3299
4665
|
};
|
|
3300
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];
|
|
3301
4721
|
type ListWebhookEventsData = {
|
|
3302
4722
|
body?: never;
|
|
3303
4723
|
path?: never;
|
|
@@ -3658,6 +5078,42 @@ type UpsertContentResponses = {
|
|
|
3658
5078
|
201: ContentUpsertDto;
|
|
3659
5079
|
};
|
|
3660
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];
|
|
3661
5117
|
type MoveContentData = {
|
|
3662
5118
|
body: MoveContentDto;
|
|
3663
5119
|
path: {
|
|
@@ -3749,6 +5205,10 @@ type SearchHooksErrors = {
|
|
|
3749
5205
|
* Missing or invalid API key (`Authorization` header).
|
|
3750
5206
|
*/
|
|
3751
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;
|
|
3752
5212
|
};
|
|
3753
5213
|
type SearchHooksError = SearchHooksErrors[keyof SearchHooksErrors];
|
|
3754
5214
|
type SearchHooksResponses = {
|
|
@@ -3788,6 +5248,10 @@ type GetHookFormsErrors = {
|
|
|
3788
5248
|
* Missing or invalid API key (`Authorization` header).
|
|
3789
5249
|
*/
|
|
3790
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;
|
|
3791
5255
|
};
|
|
3792
5256
|
type GetHookFormsError = GetHookFormsErrors[keyof GetHookFormsErrors];
|
|
3793
5257
|
type GetHookFormsResponses = {
|
|
@@ -3817,48 +5281,6 @@ type ListHookFamiliesResponses = {
|
|
|
3817
5281
|
200: Array<HookFamilyDto>;
|
|
3818
5282
|
};
|
|
3819
5283
|
type ListHookFamiliesResponse = ListHookFamiliesResponses[keyof ListHookFamiliesResponses];
|
|
3820
|
-
type ReplaceHookFamiliesData = {
|
|
3821
|
-
body: HookFamiliesImportDto;
|
|
3822
|
-
path?: never;
|
|
3823
|
-
query?: never;
|
|
3824
|
-
url: '/public/v1/hooks/families';
|
|
3825
|
-
};
|
|
3826
|
-
type ReplaceHookFamiliesErrors = {
|
|
3827
|
-
/**
|
|
3828
|
-
* The request was rejected — `msg` says why.
|
|
3829
|
-
*/
|
|
3830
|
-
400: ApiErrorDto;
|
|
3831
|
-
/**
|
|
3832
|
-
* Missing or invalid API key (`Authorization` header).
|
|
3833
|
-
*/
|
|
3834
|
-
401: ApiErrorDto;
|
|
3835
|
-
};
|
|
3836
|
-
type ReplaceHookFamiliesError = ReplaceHookFamiliesErrors[keyof ReplaceHookFamiliesErrors];
|
|
3837
|
-
type ReplaceHookFamiliesResponses = {
|
|
3838
|
-
200: Array<HookFamilyDto>;
|
|
3839
|
-
};
|
|
3840
|
-
type ReplaceHookFamiliesResponse = ReplaceHookFamiliesResponses[keyof ReplaceHookFamiliesResponses];
|
|
3841
|
-
type ImportHooksData = {
|
|
3842
|
-
body: HooksImportDto;
|
|
3843
|
-
path?: never;
|
|
3844
|
-
query?: never;
|
|
3845
|
-
url: '/public/v1/hooks/import';
|
|
3846
|
-
};
|
|
3847
|
-
type ImportHooksErrors = {
|
|
3848
|
-
/**
|
|
3849
|
-
* The request was rejected — `msg` says why.
|
|
3850
|
-
*/
|
|
3851
|
-
400: ApiErrorDto;
|
|
3852
|
-
/**
|
|
3853
|
-
* Missing or invalid API key (`Authorization` header).
|
|
3854
|
-
*/
|
|
3855
|
-
401: ApiErrorDto;
|
|
3856
|
-
};
|
|
3857
|
-
type ImportHooksError = ImportHooksErrors[keyof ImportHooksErrors];
|
|
3858
|
-
type ImportHooksResponses = {
|
|
3859
|
-
200: HooksImportResultDto;
|
|
3860
|
-
};
|
|
3861
|
-
type ImportHooksResponse = ImportHooksResponses[keyof ImportHooksResponses];
|
|
3862
5284
|
type ListMusicData = {
|
|
3863
5285
|
body?: never;
|
|
3864
5286
|
path?: never;
|
|
@@ -3998,6 +5420,64 @@ type UploadMusicFileResponses = {
|
|
|
3998
5420
|
200: MusicTrackDto;
|
|
3999
5421
|
};
|
|
4000
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];
|
|
4001
5481
|
|
|
4002
5482
|
declare const client: Client;
|
|
4003
5483
|
|
|
@@ -4016,16 +5496,38 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
|
|
|
4016
5496
|
};
|
|
4017
5497
|
/**
|
|
4018
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`).
|
|
4019
5501
|
*/
|
|
4020
5502
|
declare const uploadFile: <ThrowOnError extends boolean = false>(options: Options<UploadFileData, ThrowOnError>) => RequestResult<UploadFileResponses, UploadFileErrors, ThrowOnError>;
|
|
4021
5503
|
/**
|
|
4022
5504
|
* Import a file from a URL into your media library
|
|
4023
5505
|
*/
|
|
4024
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>;
|
|
4025
5519
|
/**
|
|
4026
5520
|
* Next free slot in the channel's schedule
|
|
4027
5521
|
*/
|
|
4028
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>;
|
|
4029
5531
|
/**
|
|
4030
5532
|
* List posts in a date range
|
|
4031
5533
|
*/
|
|
@@ -4038,6 +5540,12 @@ declare const createPost: <ThrowOnError extends boolean = false>(options: Option
|
|
|
4038
5540
|
* Delete a post and everything published with it
|
|
4039
5541
|
*/
|
|
4040
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>;
|
|
4041
5549
|
/**
|
|
4042
5550
|
* Delete a publication group
|
|
4043
5551
|
*/
|
|
@@ -4047,7 +5555,25 @@ declare const deletePostGroup: <ThrowOnError extends boolean = false>(options: O
|
|
|
4047
5555
|
*/
|
|
4048
5556
|
declare const checkConnection: <ThrowOnError extends boolean = false>(options?: Options<CheckConnectionData, ThrowOnError>) => RequestResult<CheckConnectionResponses, CheckConnectionErrors, ThrowOnError>;
|
|
4049
5557
|
/**
|
|
4050
|
-
* List your
|
|
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
|
|
4051
5577
|
*/
|
|
4052
5578
|
declare const listGroups: <ThrowOnError extends boolean = false>(options?: Options<ListGroupsData, ThrowOnError>) => RequestResult<ListGroupsResponses, ListGroupsErrors, ThrowOnError>;
|
|
4053
5579
|
/**
|
|
@@ -4056,20 +5582,14 @@ declare const listGroups: <ThrowOnError extends boolean = false>(options?: Optio
|
|
|
4056
5582
|
declare const listChannels: <ThrowOnError extends boolean = false>(options?: Options<ListChannelsData, ThrowOnError>) => RequestResult<ListChannelsResponses, ListChannelsErrors, ThrowOnError>;
|
|
4057
5583
|
/**
|
|
4058
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).
|
|
4059
5587
|
*/
|
|
4060
5588
|
declare const startChannelConnection: <ThrowOnError extends boolean = false>(options: Options<StartChannelConnectionData, ThrowOnError>) => RequestResult<StartChannelConnectionResponses, StartChannelConnectionErrors, ThrowOnError>;
|
|
4061
5589
|
/**
|
|
4062
5590
|
* List your notifications, paginated
|
|
4063
5591
|
*/
|
|
4064
5592
|
declare const listNotifications: <ThrowOnError extends boolean = false>(options?: Options<ListNotificationsData, ThrowOnError>) => RequestResult<ListNotificationsResponses, ListNotificationsErrors, ThrowOnError>;
|
|
4065
|
-
/**
|
|
4066
|
-
* Generate a video
|
|
4067
|
-
*/
|
|
4068
|
-
declare const generateVideo: <ThrowOnError extends boolean = false>(options: Options<GenerateVideoData, ThrowOnError>) => RequestResult<GenerateVideoResponses, GenerateVideoErrors, ThrowOnError>;
|
|
4069
|
-
/**
|
|
4070
|
-
* Call a function of a video provider
|
|
4071
|
-
*/
|
|
4072
|
-
declare const callVideoFunction: <ThrowOnError extends boolean = false>(options: Options<CallVideoFunctionData, ThrowOnError>) => RequestResult<CallVideoFunctionResponses, CallVideoFunctionErrors, ThrowOnError>;
|
|
4073
5593
|
/**
|
|
4074
5594
|
* Disconnect a channel and delete its posts
|
|
4075
5595
|
*/
|
|
@@ -4088,10 +5608,36 @@ declare const listMissingMedia: <ThrowOnError extends boolean = false>(options:
|
|
|
4088
5608
|
* Change a post's status
|
|
4089
5609
|
*/
|
|
4090
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>;
|
|
4091
5625
|
/**
|
|
4092
5626
|
* Record the provider post id against a post
|
|
4093
5627
|
*/
|
|
4094
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>;
|
|
4095
5641
|
/**
|
|
4096
5642
|
* Account metrics, read live from the provider
|
|
4097
5643
|
*/
|
|
@@ -4108,6 +5654,12 @@ declare const getAccountHistory: <ThrowOnError extends boolean = false>(options:
|
|
|
4108
5654
|
* Stored per-video time series
|
|
4109
5655
|
*/
|
|
4110
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>;
|
|
4111
5663
|
/**
|
|
4112
5664
|
* Metrics of one published post
|
|
4113
5665
|
*/
|
|
@@ -4142,6 +5694,8 @@ declare const hideComment: <ThrowOnError extends boolean = false>(options: Optio
|
|
|
4142
5694
|
declare const deleteComment: <ThrowOnError extends boolean = false>(options: Options<DeleteCommentData, ThrowOnError>) => RequestResult<DeleteCommentResponses, DeleteCommentErrors, ThrowOnError>;
|
|
4143
5695
|
/**
|
|
4144
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.
|
|
4145
5699
|
*/
|
|
4146
5700
|
declare const listConversations: <ThrowOnError extends boolean = false>(options: Options<ListConversationsData, ThrowOnError>) => RequestResult<ListConversationsResponses, ListConversationsErrors, ThrowOnError>;
|
|
4147
5701
|
/**
|
|
@@ -4158,6 +5712,8 @@ declare const pollInbox: <ThrowOnError extends boolean = false>(options: Options
|
|
|
4158
5712
|
declare const subscribeInboxWebhook: <ThrowOnError extends boolean = false>(options: Options<SubscribeInboxWebhookData, ThrowOnError>) => RequestResult<SubscribeInboxWebhookResponses, SubscribeInboxWebhookErrors, ThrowOnError>;
|
|
4159
5713
|
/**
|
|
4160
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.
|
|
4161
5717
|
*/
|
|
4162
5718
|
declare const getConversation: <ThrowOnError extends boolean = false>(options: Options<GetConversationData, ThrowOnError>) => RequestResult<GetConversationResponses, GetConversationErrors, ThrowOnError>;
|
|
4163
5719
|
/**
|
|
@@ -4169,11 +5725,11 @@ declare const listAutomationFlows: <ThrowOnError extends boolean = false>(option
|
|
|
4169
5725
|
*/
|
|
4170
5726
|
declare const createAutomationFlow: <ThrowOnError extends boolean = false>(options: Options<CreateAutomationFlowData, ThrowOnError>) => RequestResult<CreateAutomationFlowResponses, CreateAutomationFlowErrors, ThrowOnError>;
|
|
4171
5727
|
/**
|
|
4172
|
-
* Render a
|
|
5728
|
+
* Render the email of a « Forward the email » step without sending it
|
|
4173
5729
|
*/
|
|
4174
5730
|
declare const previewAutomationEmail: <ThrowOnError extends boolean = false>(options: Options<PreviewAutomationEmailData, ThrowOnError>) => RequestResult<PreviewAutomationEmailResponses, PreviewAutomationEmailErrors, ThrowOnError>;
|
|
4175
5731
|
/**
|
|
4176
|
-
* Send a
|
|
5732
|
+
* Send the email of a « Forward the email » step to one address
|
|
4177
5733
|
*/
|
|
4178
5734
|
declare const sendAutomationTestEmail: <ThrowOnError extends boolean = false>(options: Options<SendAutomationTestEmailData, ThrowOnError>) => RequestResult<SendAutomationTestEmailResponses, SendAutomationTestEmailErrors, ThrowOnError>;
|
|
4179
5735
|
/**
|
|
@@ -4189,7 +5745,7 @@ declare const getAutomationFlow: <ThrowOnError extends boolean = false>(options:
|
|
|
4189
5745
|
*/
|
|
4190
5746
|
declare const updateAutomationFlow: <ThrowOnError extends boolean = false>(options: Options<UpdateAutomationFlowData, ThrowOnError>) => RequestResult<UpdateAutomationFlowResponses, UpdateAutomationFlowErrors, ThrowOnError>;
|
|
4191
5747
|
/**
|
|
4192
|
-
* Activate or
|
|
5748
|
+
* Activate, pause, archive or unarchive a template (ACTIVE is refused while it has errors; ARCHIVED only from ACTIVE)
|
|
4193
5749
|
*/
|
|
4194
5750
|
declare const setAutomationFlowStatus: <ThrowOnError extends boolean = false>(options: Options<SetAutomationFlowStatusData, ThrowOnError>) => RequestResult<SetAutomationFlowStatusResponses, SetAutomationFlowStatusErrors, ThrowOnError>;
|
|
4195
5751
|
/**
|
|
@@ -4201,9 +5757,9 @@ declare const listAutomationFlowPoses: <ThrowOnError extends boolean = false>(op
|
|
|
4201
5757
|
*/
|
|
4202
5758
|
declare const poseAutomationFlow: <ThrowOnError extends boolean = false>(options: Options<PoseAutomationFlowData, ThrowOnError>) => RequestResult<PoseAutomationFlowResponses, PoseAutomationFlowErrors, ThrowOnError>;
|
|
4203
5759
|
/**
|
|
4204
|
-
* 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
|
|
4205
5761
|
*/
|
|
4206
|
-
declare const listChannelAutomationPoses: <ThrowOnError extends boolean = false>(options
|
|
5762
|
+
declare const listChannelAutomationPoses: <ThrowOnError extends boolean = false>(options?: Options<ListChannelAutomationPosesData, ThrowOnError>) => RequestResult<ListChannelAutomationPosesResponses, ListChannelAutomationPosesErrors, ThrowOnError>;
|
|
4207
5763
|
/**
|
|
4208
5764
|
* Remove a pose from its publication
|
|
4209
5765
|
*/
|
|
@@ -4228,6 +5784,14 @@ declare const pollAutomationPose: <ThrowOnError extends boolean = false>(options
|
|
|
4228
5784
|
* Replay the automation on named comments, whatever their date
|
|
4229
5785
|
*/
|
|
4230
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>;
|
|
4231
5795
|
/**
|
|
4232
5796
|
* The event catalogue a webhook can subscribe to
|
|
4233
5797
|
*/
|
|
@@ -4286,6 +5850,12 @@ declare const updateContent: <ThrowOnError extends boolean = false>(options: Opt
|
|
|
4286
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.
|
|
4287
5851
|
*/
|
|
4288
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>;
|
|
4289
5859
|
/**
|
|
4290
5860
|
* Move a card to another column
|
|
4291
5861
|
*/
|
|
@@ -4314,14 +5884,6 @@ declare const getHookForms: <ThrowOnError extends boolean = false>(options?: Opt
|
|
|
4314
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.
|
|
4315
5885
|
*/
|
|
4316
5886
|
declare const listHookFamilies: <ThrowOnError extends boolean = false>(options?: Options<ListHookFamiliesData, ThrowOnError>) => RequestResult<ListHookFamiliesResponses, ListHookFamiliesErrors, ThrowOnError>;
|
|
4317
|
-
/**
|
|
4318
|
-
* Replace the family table
|
|
4319
|
-
*/
|
|
4320
|
-
declare const replaceHookFamilies: <ThrowOnError extends boolean = false>(options: Options<ReplaceHookFamiliesData, ThrowOnError>) => RequestResult<ReplaceHookFamiliesResponses, ReplaceHookFamiliesErrors, ThrowOnError>;
|
|
4321
|
-
/**
|
|
4322
|
-
* Import hooks (upsert on source, account, externalId)
|
|
4323
|
-
*/
|
|
4324
|
-
declare const importHooks: <ThrowOnError extends boolean = false>(options: Options<ImportHooksData, ThrowOnError>) => RequestResult<ImportHooksResponses, ImportHooksErrors, ThrowOnError>;
|
|
4325
5887
|
/**
|
|
4326
5888
|
* Royalty-free music for a video
|
|
4327
5889
|
*
|
|
@@ -4346,6 +5908,14 @@ declare const importMusic: <ThrowOnError extends boolean = false>(options: Optio
|
|
|
4346
5908
|
* Upload the prepared mp3 of a track — super admin only
|
|
4347
5909
|
*/
|
|
4348
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>;
|
|
4349
5919
|
|
|
4350
5920
|
/** Body of {@link Nadia.post}: the spec's own shape (`group`, `value[].id`
|
|
4351
5921
|
* and `value[].delay` are optional there since 2026-10-21). */
|
|
@@ -4379,9 +5949,34 @@ type GeneratedResult<T> = {
|
|
|
4379
5949
|
request?: Request;
|
|
4380
5950
|
response?: Response;
|
|
4381
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;
|
|
4382
5975
|
declare class Nadia {
|
|
4383
5976
|
private readonly client;
|
|
4384
5977
|
private readonly retries;
|
|
5978
|
+
/** For the bytes of an upload, which go to the upload host, not the API. */
|
|
5979
|
+
private readonly fetchImpl;
|
|
4385
5980
|
constructor(apiKey: string, options?: string | NadiaOptions);
|
|
4386
5981
|
/**
|
|
4387
5982
|
* Runs a generated operation, turns a non-2xx into a `NadiaError`, and
|
|
@@ -4393,8 +5988,35 @@ declare class Nadia {
|
|
|
4393
5988
|
post(body: CreatePostBody): Promise<CreatePostResultItemDto[]>;
|
|
4394
5989
|
/** List posts in a date range. */
|
|
4395
5990
|
postList(query?: Record<string, unknown>): Promise<PostListDto>;
|
|
4396
|
-
/**
|
|
4397
|
-
|
|
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;
|
|
4398
6020
|
/** List your connected channels. */
|
|
4399
6021
|
integrations(): Promise<IntegrationListItemDto[]>;
|
|
4400
6022
|
/** Delete a post and everything published with it. */
|
|
@@ -4516,4 +6138,4 @@ declare function parseWebhook<T = unknown>(options: {
|
|
|
4516
6138
|
now?: number;
|
|
4517
6139
|
}): WebhookDelivery<T>;
|
|
4518
6140
|
|
|
4519
|
-
export { type AccountHistoryItemDto, type AnalyticsMetricDto, type AnalyticsPointDto, type ApiErrorDto, type AutomationFlowCountsDto, type AutomationFlowDto, type AutomationFlowIssueDto, type AutomationFlowPollResultDto, type AutomationFlowPoseResponseDto, type AutomationFlowReplayResultDto, type AutomationFlowResponseDto, type AutomationFlowRunResponseDto, type AutomationFlowStatusDto, type AutomationPoseCountsDto, type AutomationPoseFlowDto, type CallVideoFunctionData, type CallVideoFunctionError, type CallVideoFunctionErrors, type CallVideoFunctionResponse, type CallVideoFunctionResponses, type ChangePostStatusData, type ChangePostStatusDto, type ChangePostStatusError, type ChangePostStatusErrors, type ChangePostStatusResponse, type ChangePostStatusResponses, type CheckConnectionData, type CheckConnectionError, type CheckConnectionErrors, type CheckConnectionResponse, type CheckConnectionResponses, type ClientOptions, type ContentChannelPerformanceDto, type ContentDto, type ContentListItemDto, type ContentPerformanceDto, type ContentPostDto, type ContentStage, type ContentUpsertDto, type CreateAutomationFlowData, type CreateAutomationFlowError, type CreateAutomationFlowErrors, type CreateAutomationFlowResponse, type CreateAutomationFlowResponses, type CreateContentData, type CreateContentDto, type CreateContentError, type CreateContentErrors, type CreateContentResponse, type CreateContentResponses, type CreatePostBody, type CreatePostData, type CreatePostError, type CreatePostErrors, type CreatePostResponse, type CreatePostResponses, type CreatePostResultItemDto, type CreatePublicWebhookDto, type CreateWebhookData, type CreateWebhookError, type CreateWebhookErrors, type CreateWebhookResponse, type CreateWebhookResponses, DEFAULT_BASE_URL, type DeleteAutomationFlowData, type DeleteAutomationFlowError, type DeleteAutomationFlowErrors, type DeleteAutomationFlowResponse, type DeleteAutomationFlowResponses, type DeleteAutomationPoseData, type DeleteAutomationPoseError, type DeleteAutomationPoseErrors, type DeleteAutomationPoseResponse, type DeleteAutomationPoseResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteCommentData, type DeleteCommentError, type DeleteCommentErrors, type DeleteCommentResponse, type DeleteCommentResponses, type DeleteContentData, type DeleteContentError, type DeleteContentErrors, type DeleteContentResponse, type DeleteContentResponses, type DeletePostData, type DeletePostError, type DeletePostErrors, type DeletePostGroupData, type DeletePostGroupError, type DeletePostGroupErrors, type DeletePostGroupResponse, type DeletePostGroupResponses, type DeletePostResponse, type DeletePostResponses, type DeleteWebhookData, type DeleteWebhookError, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type DeletedIdDto, type EmailPreviewDto, type EmailPreviewDtoResponse, type EmailSentDto, type EmailTestDto, type FindSlotData, type FindSlotDto, type FindSlotError, type FindSlotErrors, type FindSlotResponse, type FindSlotResponses, type GenerateVideoData, type GenerateVideoError, type GenerateVideoErrors, type GenerateVideoResponse, type GenerateVideoResponses, type GeneratedVideoDto, type GetAccountHistoryData, type GetAccountHistoryError, type GetAccountHistoryErrors, type GetAccountHistoryResponse, type GetAccountHistoryResponses, type GetAutomationFlowData, type GetAutomationFlowError, type GetAutomationFlowErrors, type GetAutomationFlowResponse, type GetAutomationFlowResponses, type GetAutomationPoseData, type GetAutomationPoseError, type GetAutomationPoseErrors, type GetAutomationPoseResponse, type GetAutomationPoseResponses, type GetChannelAnalyticsData, type GetChannelAnalyticsError, type GetChannelAnalyticsErrors, type GetChannelAnalyticsResponse, type GetChannelAnalyticsResponses, type GetChannelSettingsData, type GetChannelSettingsError, type GetChannelSettingsErrors, type GetChannelSettingsResponse, type GetChannelSettingsResponses, type GetContentData, type GetContentError, type GetContentErrors, type GetContentResponse, type GetContentResponses, type GetContentsPerformanceData, type GetContentsPerformanceError, type GetContentsPerformanceErrors, type GetContentsPerformanceResponse, type GetContentsPerformanceResponses, type GetConversationData, type GetConversationError, type GetConversationErrors, type GetConversationResponse, type GetConversationResponses, type GetHookFormsData, type GetHookFormsError, type GetHookFormsErrors, type GetHookFormsResponse, type GetHookFormsResponses, type GetMusicTrackData, type GetMusicTrackError, type GetMusicTrackErrors, type GetMusicTrackResponse, type GetMusicTrackResponses, type GetPostAnalyticsData, type GetPostAnalyticsError, type GetPostAnalyticsErrors, type GetPostAnalyticsResponse, type GetPostAnalyticsResponses, type GetVideoHistoryData, type GetVideoHistoryError, type GetVideoHistoryErrors, type GetVideoHistoryResponse, type GetVideoHistoryResponses, type GetWebhookData, type GetWebhookError, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type GroupDto, type HideCommentData, type HideCommentDto, type HideCommentError, type HideCommentErrors, type HideCommentResponse, type HideCommentResponses, type HistoryPageDto, type HookDto, type HookFamiliesImportDto, type HookFamilyDto, type HookFamilyStatDto, type HookFormDto, type HookImportItemDto, type HooksImportDto, type HooksImportResultDto, type HooksSearchResultDto, type ImportHooksData, type ImportHooksError, type ImportHooksErrors, type ImportHooksResponse, type ImportHooksResponses, type ImportMusicData, type ImportMusicError, type ImportMusicErrors, type ImportMusicResponse, type ImportMusicResponses, type InboxConversationDto, type InboxMessageDto, type InboxParticipantDto, type InboxPollResultDto, type InstagramCommentAuthorDto, type InstagramCommentDto, type InstagramMediaDto, type Integration, type IntegrationListItemDto, type IntegrationSettingsDto, type IntegrationSettingsOutputDto, type IntegrationToolDto, type IntegrationToolParamDto, type IntegrationTriggerDto, type IntegrationTriggerResultDto, type IsConnectedDto, type LinkContentPostData, type LinkContentPostDto, type LinkContentPostError, type LinkContentPostErrors, type LinkContentPostResponse, type LinkContentPostResponses, type ListAutomationFlowPosesData, type ListAutomationFlowPosesError, type ListAutomationFlowPosesErrors, type ListAutomationFlowPosesResponse, type ListAutomationFlowPosesResponses, type ListAutomationFlowsData, type ListAutomationFlowsError, type ListAutomationFlowsErrors, type ListAutomationFlowsResponse, type ListAutomationFlowsResponses, type ListAutomationPoseRunsData, type ListAutomationPoseRunsError, type ListAutomationPoseRunsErrors, type ListAutomationPoseRunsResponse, type ListAutomationPoseRunsResponses, type ListChannelAutomationPosesData, type ListChannelAutomationPosesError, type ListChannelAutomationPosesErrors, type ListChannelAutomationPosesResponse, type ListChannelAutomationPosesResponses, type ListChannelMediaData, type ListChannelMediaError, type ListChannelMediaErrors, type ListChannelMediaResponse, type ListChannelMediaResponses, type ListChannelStoriesData, type ListChannelStoriesError, type ListChannelStoriesErrors, type ListChannelStoriesResponse, type ListChannelStoriesResponses, type ListChannelsData, type ListChannelsError, type ListChannelsErrors, type ListChannelsResponse, type ListChannelsResponses, type ListContentsData, type ListContentsError, type ListContentsErrors, type ListContentsResponse, type ListContentsResponses, type ListConversationsData, type ListConversationsError, type ListConversationsErrors, type ListConversationsResponse, type ListConversationsResponses, type ListGroupsData, type ListGroupsError, type ListGroupsErrors, type ListGroupsResponse, type ListGroupsResponses, type ListHookFamiliesData, type ListHookFamiliesError, type ListHookFamiliesErrors, type ListHookFamiliesResponse, type ListHookFamiliesResponses, type ListMediaCommentsData, type ListMediaCommentsError, type ListMediaCommentsErrors, type ListMediaCommentsResponse, type ListMediaCommentsResponses, type ListMissingMediaData, type ListMissingMediaError, type ListMissingMediaErrors, type ListMissingMediaResponse, type ListMissingMediaResponses, type ListMusicData, type ListMusicError, type ListMusicErrors, type ListMusicPillarsData, type ListMusicPillarsError, type ListMusicPillarsErrors, type ListMusicPillarsResponse, type ListMusicPillarsResponses, type ListMusicResponse, type ListMusicResponses, type ListNotificationsData, type ListNotificationsError, type ListNotificationsErrors, type ListNotificationsResponse, type ListNotificationsResponses, type ListPostsData, type ListPostsError, type ListPostsErrors, type ListPostsResponse, type ListPostsResponses, type ListVideoPerformanceData, type ListVideoPerformanceError, type ListVideoPerformanceErrors, type ListVideoPerformanceResponse, type ListVideoPerformanceResponses, type ListWebhookEventsData, type ListWebhookEventsError, type ListWebhookEventsErrors, type ListWebhookEventsResponse, type ListWebhookEventsResponses, type ListWebhooksData, type ListWebhooksError, type ListWebhooksErrors, type ListWebhooksResponse, type ListWebhooksResponses, type MediaDto, type MediaResponseDto, type MissingContentItemDto, type MoveContentData, type MoveContentDto, type MoveContentError, type MoveContentErrors, type MoveContentResponse, type MoveContentResponses, type MusicImportDto, type MusicImportItemDto, type MusicImportResultDto, type MusicListResultDto, type MusicPillarDto, type MusicTrackDto, Nadia, NadiaError, type NadiaOptions, NadiaWebhookError, type NotificationDto, type NotificationsPageDto, type OkDto, type Options, type PollAutomationPoseData, type PollAutomationPoseError, type PollAutomationPoseErrors, type PollAutomationPoseResponse, type PollAutomationPoseResponses, type PollInboxData, type PollInboxError, type PollInboxErrors, type PollInboxResponse, type PollInboxResponses, type PoseAutomationFlowData, type PoseAutomationFlowDto, type PoseAutomationFlowError, type PoseAutomationFlowErrors, type PoseAutomationFlowResponse, type PoseAutomationFlowResponses, type Post, type PostContent, type PostDto, type PostIntegrationSummaryDto, type PostListDto, type PostStatusDto, type PostTagDto, type PreviewAutomationEmailData, type PreviewAutomationEmailError, type PreviewAutomationEmailErrors, type PreviewAutomationEmailResponse, type PreviewAutomationEmailResponses, type PublicCreatePostDto, type ReplaceHookFamiliesData, type ReplaceHookFamiliesError, type ReplaceHookFamiliesErrors, type ReplaceHookFamiliesResponse, type ReplaceHookFamiliesResponses, type ReplayAutomationPoseData, type ReplayAutomationPoseError, type ReplayAutomationPoseErrors, type ReplayAutomationPoseResponse, type ReplayAutomationPoseResponses, type ReplayPoseDto, type ReplyToCommentData, type ReplyToCommentDto, type ReplyToCommentError, type ReplyToCommentErrors, type ReplyToCommentResponse, type ReplyToCommentResponses, type RunChannelToolData, type RunChannelToolError, type RunChannelToolErrors, type RunChannelToolResponse, type RunChannelToolResponses, type SearchHooksData, type SearchHooksError, type SearchHooksErrors, type SearchHooksResponse, type SearchHooksResponses, type SendAutomationTestEmailData, type SendAutomationTestEmailError, type SendAutomationTestEmailErrors, type SendAutomationTestEmailResponse, type SendAutomationTestEmailResponses, type SendDirectMessageData, type SendDirectMessageError, type SendDirectMessageErrors, type SendDirectMessageResponse, type SendDirectMessageResponses, type SendMessageDto, type SetAutomationFlowStatusData, type SetAutomationFlowStatusError, type SetAutomationFlowStatusErrors, type SetAutomationFlowStatusResponse, type SetAutomationFlowStatusResponses, type SetPostReleaseIdData, type SetPostReleaseIdError, type SetPostReleaseIdErrors, type SetPostReleaseIdResponse, type SetPostReleaseIdResponses, type SocialAuthUrlDto, type StartChannelConnectionData, type StartChannelConnectionError, type StartChannelConnectionErrors, type StartChannelConnectionResponse, type StartChannelConnectionResponses, type SubscribeInboxWebhookData, type SubscribeInboxWebhookError, type SubscribeInboxWebhookErrors, type SubscribeInboxWebhookResponse, type SubscribeInboxWebhookResponses, type SuccessDto, type Tags, type TestWebhookData, type TestWebhookDto, type TestWebhookError, type TestWebhookErrors, type TestWebhookResponse, type TestWebhookResponses, type UpdateAutomationFlowData, type UpdateAutomationFlowDto, type UpdateAutomationFlowError, type UpdateAutomationFlowErrors, type UpdateAutomationFlowPoseDto, type UpdateAutomationFlowResponse, type UpdateAutomationFlowResponses, type UpdateAutomationPoseData, type UpdateAutomationPoseError, type UpdateAutomationPoseErrors, type UpdateAutomationPoseResponse, type UpdateAutomationPoseResponses, type UpdateContentData, type UpdateContentDto, type UpdateContentError, type UpdateContentErrors, type UpdateContentResponse, type UpdateContentResponses, type UpdateReleaseIdDto, type UploadDto, type UploadFileData, type UploadFileError, type UploadFileErrors, type UploadFileResponse, type UploadFileResponses, type UploadFromUrlData, type UploadFromUrlError, type UploadFromUrlErrors, type UploadFromUrlResponse, type UploadFromUrlResponses, type UploadMusicFileData, type UploadMusicFileError, type UploadMusicFileErrors, type UploadMusicFileResponse, type UploadMusicFileResponses, type UpsertContentData, type UpsertContentDto, type UpsertContentError, type UpsertContentErrors, type UpsertContentResponse, type UpsertContentResponses, type VerifyWebhookOptions, type VideoDto, type VideoFunctionDto, type VideoHistoryPageDto, type VideoIdentityDto, type WebhookCreatedDto, type WebhookDelivery, type WebhookDto, type WebhookEventDto, type WebhookEventListDto, type WebhookTestResultDto, type WebhooksIntegrationDto, callVideoFunction, changePostStatus, checkConnection, createAutomationFlow, createContent, createPost, createWebhook, Nadia as default, deleteAutomationFlow, deleteAutomationPose, deleteChannel, deleteComment, deleteContent, deletePost, deletePostGroup, deleteWebhook, findSlot, generateVideo, getAccountHistory, getAutomationFlow, getAutomationPose, getChannelAnalytics, getChannelSettings, getContent, getContentsPerformance, getConversation, getHookForms, getMusicTrack, getPostAnalytics, getVideoHistory, getWebhook, hideComment, importHooks, importMusic, linkContentPost, listAutomationFlowPoses, listAutomationFlows, listAutomationPoseRuns, listChannelAutomationPoses, listChannelMedia, listChannelStories, listChannels, listContents, listConversations, listGroups, listHookFamilies, listMediaComments, listMissingMedia, listMusic, listMusicPillars, listNotifications, listPosts, listVideoPerformance, listWebhookEvents, listWebhooks, moveContent, parseWebhook, pollAutomationPose, pollInbox, poseAutomationFlow, previewAutomationEmail, replaceHookFamilies, replayAutomationPose, replyToComment, runChannelTool, searchHooks, sendAutomationTestEmail, sendDirectMessage, setAutomationFlowStatus, setPostReleaseId, startChannelConnection, subscribeInboxWebhook, testWebhook, updateAutomationFlow, updateAutomationPose, updateContent, uploadFile, uploadFromUrl, uploadMusicFile, upsertContent, verifyWebhookSignature };
|
|
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 };
|