@usenadia/node 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -362,6 +362,36 @@ type MediaResponseDto = {
362
362
  type UploadDto = {
363
363
  url: string;
364
364
  };
365
+ type UrlImportErrorDto = {
366
+ /**
367
+ * The HTTP status the import would have answered at once.
368
+ */
369
+ statusCode: number;
370
+ /**
371
+ * Human-readable reason, the same as the immediate answer's `msg`.
372
+ */
373
+ msg: string;
374
+ };
375
+ type UrlImportDto = {
376
+ /**
377
+ * Import id: what `GET /public/v1/upload-from-url/{importId}` reads.
378
+ */
379
+ id: string;
380
+ /**
381
+ * `running` (read again in a few seconds), `done` (`media` is set) or `failed` (`error` is set).
382
+ */
383
+ status: 'running' | 'done' | 'failed';
384
+ /**
385
+ * The media, once `done`.
386
+ */
387
+ media: MediaResponseDto | null;
388
+ /**
389
+ * Why it failed, once `failed`.
390
+ */
391
+ error: UrlImportErrorDto | null;
392
+ createdAt: string;
393
+ finishedAt: string | null;
394
+ };
365
395
  type CreateUploadDto = {
366
396
  /**
367
397
  * Name or path of the file on your disk; its base name becomes the media name. Used in the `curl` command of the answer.
@@ -673,6 +703,7 @@ type CreatePostResultItemDto = {
673
703
  * The publication the post is in: the same for the posts of one content on several channels. Pass it as `publication` on a later request to schedule the same content on another channel.
674
704
  */
675
705
  publication: string;
706
+ mediaTagged?: MediaTaggedDto;
676
707
  };
677
708
  type DeletedIdDto = {
678
709
  /**
@@ -680,6 +711,42 @@ type DeletedIdDto = {
680
711
  */
681
712
  id: string;
682
713
  };
714
+ type DeletedPostDto = {
715
+ /**
716
+ * Id of the deleted post, or the group for a group.
717
+ */
718
+ id: string;
719
+ /**
720
+ * What the deletion did to each post of the group (one per channel).
721
+ */
722
+ posts: Array<{
723
+ postId: string;
724
+ /**
725
+ * The channel's name.
726
+ */
727
+ channel?: string;
728
+ /**
729
+ * The platform, e.g. LinkedIn.
730
+ */
731
+ platform: string;
732
+ /**
733
+ * The post's state before the deletion.
734
+ */
735
+ state: string;
736
+ /**
737
+ * `cancelled`: not published yet, it never goes out. `removedFromNadiaOnly`: already out, only its copy in UseNadia is removed, the post stays online on the platform. `deletedOnPlatform`: already out, deleted at its platform for good (asked with `deleteOnPlatform=true`) and removed from UseNadia.
738
+ */
739
+ outcome: 'cancelled' | 'removedFromNadiaOnly' | 'deletedOnPlatform';
740
+ /**
741
+ * The post is out and stays online on the platform.
742
+ */
743
+ stillOnline: boolean;
744
+ /**
745
+ * The post is live on a platform where UseNadia can delete it too (with `deleteOnPlatform=true`).
746
+ */
747
+ deletableOnPlatform: boolean;
748
+ }>;
749
+ };
683
750
  type IsConnectedDto = {
684
751
  /**
685
752
  * Always true — the route exists to validate an API key.
@@ -2037,6 +2104,10 @@ type ContentListItemDto = {
2037
2104
  * 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
2105
  */
2039
2106
  discardedAt?: string | null;
2107
+ /**
2108
+ * The workspaces the card is tagged with (those your key reaches). Absent on an untagged card: it is your organisation's alone, a key limited to some workspaces does not see it.
2109
+ */
2110
+ workspaces?: Array<string>;
2040
2111
  };
2041
2112
  type CreateContentDto = {
2042
2113
  /**
@@ -2160,6 +2231,10 @@ type ContentDto = {
2160
2231
  * 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
2232
  */
2162
2233
  discardedAt?: string | null;
2234
+ /**
2235
+ * The workspaces the card is tagged with (those your key reaches). Absent on an untagged card: it is your organisation's alone, a key limited to some workspaces does not see it.
2236
+ */
2237
+ workspaces?: Array<string>;
2163
2238
  };
2164
2239
  type UpsertContentDto = {
2165
2240
  /**
@@ -2793,6 +2868,78 @@ type WorkspaceErrorDto = {
2793
2868
  */
2794
2869
  quota?: number;
2795
2870
  };
2871
+ /**
2872
+ * Present only when it happened: media of the post that were not tagged with the workspace of its channel, tagged with it on the way. A media used on a channel carries the channel's workspace; the organization's key publishes any media anywhere, it is never refused.
2873
+ */
2874
+ type MediaTaggedDto = {
2875
+ /**
2876
+ * The workspace of the channel, the tag the media got.
2877
+ */
2878
+ workspaceId: string;
2879
+ /**
2880
+ * The media that got it.
2881
+ */
2882
+ mediaIds: Array<string>;
2883
+ /**
2884
+ * What happened, to tell the user.
2885
+ */
2886
+ message: string;
2887
+ };
2888
+ type SetMediaWorkspacesDto = {
2889
+ /**
2890
+ * Every workspace the media is tagged with after the call (`GET /public/v1/workspaces`); an empty list untags it.
2891
+ */
2892
+ workspaceIds: Array<string>;
2893
+ };
2894
+ type MediaWorkspacesDto = {
2895
+ /**
2896
+ * The media.
2897
+ */
2898
+ id: string;
2899
+ /**
2900
+ * The workspaces it is tagged with now.
2901
+ */
2902
+ workspaces: Array<string>;
2903
+ };
2904
+ type SetContentWorkspacesDto = {
2905
+ /**
2906
+ * Every workspace the card is tagged with after the call (`GET /public/v1/workspaces`); an empty list untags it.
2907
+ */
2908
+ workspaceIds: Array<string>;
2909
+ };
2910
+ type ContentWorkspacesDto = {
2911
+ /**
2912
+ * The card.
2913
+ */
2914
+ id: string;
2915
+ /**
2916
+ * The workspaces it is tagged with now.
2917
+ */
2918
+ workspaces: Array<string>;
2919
+ };
2920
+ /**
2921
+ * The answer of an action that waits for a yes (Settings › Developers, the same columns as the MCP): nothing was done yet.
2922
+ */
2923
+ type ConfirmationRequiredDto = {
2924
+ /**
2925
+ * Always true.
2926
+ */
2927
+ needsConfirmation: boolean;
2928
+ /**
2929
+ * What the action will do: `action` (its kind, e.g. `post.delete`), `request`, and for a post deletion `group`, `effect` (per post) and `warning` (a deletion on a platform).
2930
+ */
2931
+ preview: {
2932
+ [key: string]: unknown;
2933
+ };
2934
+ /**
2935
+ * Send the same request again with `?confirmationToken=` and this value. Single use, 15 minutes.
2936
+ */
2937
+ confirmationToken?: string;
2938
+ /**
2939
+ * What to do, in words.
2940
+ */
2941
+ errors: string;
2942
+ };
2796
2943
  type UploadFileData = {
2797
2944
  body: {
2798
2945
  file: Blob | File;
@@ -2818,6 +2965,10 @@ type UploadFileErrors = {
2818
2965
  * `FILE_TOO_LARGE`: an MP4 over 25 MB in one request. Send it in parts: `POST /public/v1/uploads`, then its confirm.
2819
2966
  */
2820
2967
  413: UploadErrorDto;
2968
+ /**
2969
+ * `UNSUPPORTED_CONTENT_TYPE`: a MOV or an M4V, refused as soon as its first bytes are read, whatever its size. Convert it to MP4 first (`ffmpeg -i in.mov -c copy -movflags +faststart out.mp4`), then send the MP4: here up to 25 MB, otherwise in parts (`POST /public/v1/uploads`).
2970
+ */
2971
+ 415: UploadErrorDto;
2821
2972
  };
2822
2973
  type UploadFileError = UploadFileErrors[keyof UploadFileErrors];
2823
2974
  type UploadFileResponses = {
@@ -2847,8 +2998,42 @@ type UploadFromUrlErrors = {
2847
2998
  type UploadFromUrlError = UploadFromUrlErrors[keyof UploadFromUrlErrors];
2848
2999
  type UploadFromUrlResponses = {
2849
3000
  201: MediaResponseDto;
3001
+ /**
3002
+ * Still downloading after 25 seconds: the import, to read again with `GET /public/v1/upload-from-url/{importId}`.
3003
+ */
3004
+ 202: UrlImportDto;
2850
3005
  };
2851
3006
  type UploadFromUrlResponse = UploadFromUrlResponses[keyof UploadFromUrlResponses];
3007
+ type GetUploadFromUrlData = {
3008
+ body?: never;
3009
+ path: {
3010
+ importId: string;
3011
+ };
3012
+ query?: never;
3013
+ url: '/public/v1/upload-from-url/{importId}';
3014
+ };
3015
+ type GetUploadFromUrlErrors = {
3016
+ /**
3017
+ * The request was rejected — `msg` says why.
3018
+ */
3019
+ 400: ApiErrorDto;
3020
+ /**
3021
+ * Missing or invalid API key (`Authorization` header).
3022
+ */
3023
+ 401: ApiErrorDto;
3024
+ /**
3025
+ * `IMPORT_NOT_FOUND`: no import with this id in your organization (or older than a day).
3026
+ */
3027
+ 404: ApiErrorDto;
3028
+ };
3029
+ type GetUploadFromUrlError = GetUploadFromUrlErrors[keyof GetUploadFromUrlErrors];
3030
+ type GetUploadFromUrlResponses = {
3031
+ /**
3032
+ * The import.
3033
+ */
3034
+ 200: UrlImportDto;
3035
+ };
3036
+ type GetUploadFromUrlResponse = GetUploadFromUrlResponses[keyof GetUploadFromUrlResponses];
2852
3037
  type CreateUploadData = {
2853
3038
  body: CreateUploadDto;
2854
3039
  path?: never;
@@ -2939,6 +3124,33 @@ type ConfirmUploadResponses = {
2939
3124
  201: ConfirmedUploadDto;
2940
3125
  };
2941
3126
  type ConfirmUploadResponse = ConfirmUploadResponses[keyof ConfirmUploadResponses];
3127
+ type SetMediaWorkspacesData = {
3128
+ body: SetMediaWorkspacesDto;
3129
+ path: {
3130
+ id: string;
3131
+ };
3132
+ query?: never;
3133
+ url: '/public/v1/media/{id}/workspaces';
3134
+ };
3135
+ type SetMediaWorkspacesErrors = {
3136
+ /**
3137
+ * `workspaceIds` is missing, or names a workspace that is not of your organisation.
3138
+ */
3139
+ 400: ApiErrorDto;
3140
+ /**
3141
+ * Missing or invalid API key (`Authorization` header), or no running subscription.
3142
+ */
3143
+ 401: ApiErrorDto;
3144
+ /**
3145
+ * No media of your organisation has this id.
3146
+ */
3147
+ 404: ApiErrorDto;
3148
+ };
3149
+ type SetMediaWorkspacesError = SetMediaWorkspacesErrors[keyof SetMediaWorkspacesErrors];
3150
+ type SetMediaWorkspacesResponses = {
3151
+ 200: MediaWorkspacesDto;
3152
+ };
3153
+ type SetMediaWorkspacesResponse = SetMediaWorkspacesResponses[keyof SetMediaWorkspacesResponses];
2942
3154
  type FindSlotData = {
2943
3155
  body?: never;
2944
3156
  path: {
@@ -3089,7 +3301,16 @@ type DeletePostData = {
3089
3301
  path: {
3090
3302
  id: string;
3091
3303
  };
3092
- query?: never;
3304
+ query?: {
3305
+ /**
3306
+ * `true` also deletes each published post of the group at its platform, for good, where UseNadia can (LinkedIn, LinkedIn Page, X, Facebook Page, Pinterest, Google Business Profile, Mastodon, Bluesky, Discord, Telegram; not a story). Anything else, or absent: UseNadia's copy only, the post stays online. A refusal by a platform deletes nothing, in UseNadia either (400, `msg` says why).
3307
+ */
3308
+ deleteOnPlatform?: 'true' | 'false';
3309
+ /**
3310
+ * The token of a `428` answer, once the user said yes: the same request (same method, path, query and body) sent again with it runs. Single use, 15 minutes. Needed only when this action waits for a yes in Settings › Developers (the same columns as the MCP).
3311
+ */
3312
+ confirmationToken?: string;
3313
+ };
3093
3314
  url: '/public/v1/posts/{id}';
3094
3315
  };
3095
3316
  type DeletePostErrors = {
@@ -3105,10 +3326,17 @@ type DeletePostErrors = {
3105
3326
  * The channel, post or record named in the path does not belong to your organisation.
3106
3327
  */
3107
3328
  404: ApiErrorDto;
3329
+ /**
3330
+ * Nothing was done: in Settings › Developers this action waits for a yes (the same columns as the MCP). Show `preview` to the user, get an explicit yes, then send the same request again with `?confirmationToken=`.
3331
+ */
3332
+ 428: ConfirmationRequiredDto;
3108
3333
  };
3109
3334
  type DeletePostError = DeletePostErrors[keyof DeletePostErrors];
3110
3335
  type DeletePostResponses = {
3111
- 200: DeletedIdDto;
3336
+ /**
3337
+ * Deleted. `posts` says, per post, whether it was cancelled, deleted at its platform too, or only removed from UseNadia (still online on the platform).
3338
+ */
3339
+ 200: DeletedPostDto;
3112
3340
  };
3113
3341
  type DeletePostResponse = DeletePostResponses[keyof DeletePostResponses];
3114
3342
  type GetPostData = {
@@ -3139,7 +3367,16 @@ type DeletePostGroupData = {
3139
3367
  path: {
3140
3368
  group: string;
3141
3369
  };
3142
- query?: never;
3370
+ query?: {
3371
+ /**
3372
+ * `true` also deletes each published post of the group at its platform, for good, where UseNadia can (LinkedIn, LinkedIn Page, X, Facebook Page, Pinterest, Google Business Profile, Mastodon, Bluesky, Discord, Telegram; not a story). Anything else, or absent: UseNadia's copy only, the post stays online. A refusal by a platform deletes nothing, in UseNadia either (400, `msg` says why).
3373
+ */
3374
+ deleteOnPlatform?: 'true' | 'false';
3375
+ /**
3376
+ * The token of a `428` answer, once the user said yes: the same request (same method, path, query and body) sent again with it runs. Single use, 15 minutes. Needed only when this action waits for a yes in Settings › Developers (the same columns as the MCP).
3377
+ */
3378
+ confirmationToken?: string;
3379
+ };
3143
3380
  url: '/public/v1/posts/group/{group}';
3144
3381
  };
3145
3382
  type DeletePostGroupErrors = {
@@ -3155,10 +3392,17 @@ type DeletePostGroupErrors = {
3155
3392
  * The channel, post or record named in the path does not belong to your organisation.
3156
3393
  */
3157
3394
  404: ApiErrorDto;
3395
+ /**
3396
+ * Nothing was done: in Settings › Developers this action waits for a yes (the same columns as the MCP). Show `preview` to the user, get an explicit yes, then send the same request again with `?confirmationToken=`.
3397
+ */
3398
+ 428: ConfirmationRequiredDto;
3158
3399
  };
3159
3400
  type DeletePostGroupError = DeletePostGroupErrors[keyof DeletePostGroupErrors];
3160
3401
  type DeletePostGroupResponses = {
3161
- 200: DeletedIdDto;
3402
+ /**
3403
+ * Deleted. `posts` says, per post, whether it was cancelled, deleted at its platform too, or only removed from UseNadia (still online on the platform).
3404
+ */
3405
+ 200: DeletedPostDto;
3162
3406
  };
3163
3407
  type DeletePostGroupResponse = DeletePostGroupResponses[keyof DeletePostGroupResponses];
3164
3408
  type CheckConnectionData = {
@@ -3468,7 +3712,12 @@ type ChangePostStatusData = {
3468
3712
  path: {
3469
3713
  id: string;
3470
3714
  };
3471
- query?: never;
3715
+ query?: {
3716
+ /**
3717
+ * The token of a `428` answer, once the user said yes: the same request (same method, path, query and body) sent again with it runs. Single use, 15 minutes. Needed only when this action waits for a yes in Settings › Developers (the same columns as the MCP).
3718
+ */
3719
+ confirmationToken?: string;
3720
+ };
3472
3721
  url: '/public/v1/posts/{id}/status';
3473
3722
  };
3474
3723
  type ChangePostStatusErrors = {
@@ -3484,6 +3733,10 @@ type ChangePostStatusErrors = {
3484
3733
  * The channel, post or record named in the path does not belong to your organisation.
3485
3734
  */
3486
3735
  404: ApiErrorDto;
3736
+ /**
3737
+ * Nothing was done: in Settings › Developers this action waits for a yes (the same columns as the MCP). Show `preview` to the user, get an explicit yes, then send the same request again with `?confirmationToken=`.
3738
+ */
3739
+ 428: ConfirmationRequiredDto;
3487
3740
  };
3488
3741
  type ChangePostStatusError = ChangePostStatusErrors[keyof ChangePostStatusErrors];
3489
3742
  type ChangePostStatusResponses = {
@@ -3964,7 +4217,12 @@ type ReplyToCommentData = {
3964
4217
  path: {
3965
4218
  commentId: string;
3966
4219
  };
3967
- query?: never;
4220
+ query?: {
4221
+ /**
4222
+ * The token of a `428` answer, once the user said yes: the same request (same method, path, query and body) sent again with it runs. Single use, 15 minutes. Needed only when this action waits for a yes in Settings › Developers (the same columns as the MCP).
4223
+ */
4224
+ confirmationToken?: string;
4225
+ };
3968
4226
  url: '/public/v1/inbox/comments/{commentId}/reply';
3969
4227
  };
3970
4228
  type ReplyToCommentErrors = {
@@ -3980,6 +4238,10 @@ type ReplyToCommentErrors = {
3980
4238
  * The channel, post or record named in the path does not belong to your organisation.
3981
4239
  */
3982
4240
  404: ApiErrorDto;
4241
+ /**
4242
+ * Nothing was done: in Settings › Developers this action waits for a yes (the same columns as the MCP). Show `preview` to the user, get an explicit yes, then send the same request again with `?confirmationToken=`.
4243
+ */
4244
+ 428: ConfirmationRequiredDto;
3983
4245
  };
3984
4246
  type ReplyToCommentError = ReplyToCommentErrors[keyof ReplyToCommentErrors];
3985
4247
  type ReplyToCommentResponses = {
@@ -3992,7 +4254,12 @@ type HideCommentData = {
3992
4254
  integrationId: string;
3993
4255
  commentId: string;
3994
4256
  };
3995
- query?: never;
4257
+ query?: {
4258
+ /**
4259
+ * The token of a `428` answer, once the user said yes: the same request (same method, path, query and body) sent again with it runs. Single use, 15 minutes. Needed only when this action waits for a yes in Settings › Developers (the same columns as the MCP).
4260
+ */
4261
+ confirmationToken?: string;
4262
+ };
3996
4263
  url: '/public/v1/inbox/comments/{integrationId}/{commentId}/hide';
3997
4264
  };
3998
4265
  type HideCommentErrors = {
@@ -4008,6 +4275,10 @@ type HideCommentErrors = {
4008
4275
  * The channel, post or record named in the path does not belong to your organisation.
4009
4276
  */
4010
4277
  404: ApiErrorDto;
4278
+ /**
4279
+ * Nothing was done: in Settings › Developers this action waits for a yes (the same columns as the MCP). Show `preview` to the user, get an explicit yes, then send the same request again with `?confirmationToken=`.
4280
+ */
4281
+ 428: ConfirmationRequiredDto;
4011
4282
  };
4012
4283
  type HideCommentError = HideCommentErrors[keyof HideCommentErrors];
4013
4284
  type HideCommentResponses = {
@@ -4020,7 +4291,12 @@ type DeleteCommentData = {
4020
4291
  integrationId: string;
4021
4292
  commentId: string;
4022
4293
  };
4023
- query?: never;
4294
+ query?: {
4295
+ /**
4296
+ * The token of a `428` answer, once the user said yes: the same request (same method, path, query and body) sent again with it runs. Single use, 15 minutes. Needed only when this action waits for a yes in Settings › Developers (the same columns as the MCP).
4297
+ */
4298
+ confirmationToken?: string;
4299
+ };
4024
4300
  url: '/public/v1/inbox/comments/{integrationId}/{commentId}';
4025
4301
  };
4026
4302
  type DeleteCommentErrors = {
@@ -4036,6 +4312,10 @@ type DeleteCommentErrors = {
4036
4312
  * The channel, post or record named in the path does not belong to your organisation.
4037
4313
  */
4038
4314
  404: ApiErrorDto;
4315
+ /**
4316
+ * Nothing was done: in Settings › Developers this action waits for a yes (the same columns as the MCP). Show `preview` to the user, get an explicit yes, then send the same request again with `?confirmationToken=`.
4317
+ */
4318
+ 428: ConfirmationRequiredDto;
4039
4319
  };
4040
4320
  type DeleteCommentError = DeleteCommentErrors[keyof DeleteCommentErrors];
4041
4321
  type DeleteCommentResponses = {
@@ -4087,7 +4367,12 @@ type SendDirectMessageData = {
4087
4367
  path: {
4088
4368
  integrationId: string;
4089
4369
  };
4090
- query?: never;
4370
+ query?: {
4371
+ /**
4372
+ * The token of a `428` answer, once the user said yes: the same request (same method, path, query and body) sent again with it runs. Single use, 15 minutes. Needed only when this action waits for a yes in Settings › Developers (the same columns as the MCP).
4373
+ */
4374
+ confirmationToken?: string;
4375
+ };
4091
4376
  url: '/public/v1/inbox/{integrationId}/send';
4092
4377
  };
4093
4378
  type SendDirectMessageErrors = {
@@ -4103,6 +4388,10 @@ type SendDirectMessageErrors = {
4103
4388
  * The channel, post or record named in the path does not belong to your organisation.
4104
4389
  */
4105
4390
  404: ApiErrorDto;
4391
+ /**
4392
+ * Nothing was done: in Settings › Developers this action waits for a yes (the same columns as the MCP). Show `preview` to the user, get an explicit yes, then send the same request again with `?confirmationToken=`.
4393
+ */
4394
+ 428: ConfirmationRequiredDto;
4106
4395
  };
4107
4396
  type SendDirectMessageError = SendDirectMessageErrors[keyof SendDirectMessageErrors];
4108
4397
  type SendDirectMessageResponses = {
@@ -4305,7 +4594,12 @@ type DeleteAutomationFlowData = {
4305
4594
  path: {
4306
4595
  id: string;
4307
4596
  };
4308
- query?: never;
4597
+ query?: {
4598
+ /**
4599
+ * The token of a `428` answer, once the user said yes: the same request (same method, path, query and body) sent again with it runs. Single use, 15 minutes. Needed only when this action waits for a yes in Settings › Developers (the same columns as the MCP).
4600
+ */
4601
+ confirmationToken?: string;
4602
+ };
4309
4603
  url: '/public/v1/automation-flows/{id}';
4310
4604
  };
4311
4605
  type DeleteAutomationFlowErrors = {
@@ -4321,6 +4615,10 @@ type DeleteAutomationFlowErrors = {
4321
4615
  * The template, pose or channel named in the path does not belong to your organisation.
4322
4616
  */
4323
4617
  404: ApiErrorDto;
4618
+ /**
4619
+ * Nothing was done: in Settings › Developers this action waits for a yes (the same columns as the MCP). Show `preview` to the user, get an explicit yes, then send the same request again with `?confirmationToken=`.
4620
+ */
4621
+ 428: ConfirmationRequiredDto;
4324
4622
  };
4325
4623
  type DeleteAutomationFlowError = DeleteAutomationFlowErrors[keyof DeleteAutomationFlowErrors];
4326
4624
  type DeleteAutomationFlowResponses = {
@@ -4440,7 +4738,12 @@ type PoseAutomationFlowData = {
4440
4738
  path: {
4441
4739
  id: string;
4442
4740
  };
4443
- query?: never;
4741
+ query?: {
4742
+ /**
4743
+ * The token of a `428` answer, once the user said yes: the same request (same method, path, query and body) sent again with it runs. Single use, 15 minutes. Needed only when this action waits for a yes in Settings › Developers (the same columns as the MCP).
4744
+ */
4745
+ confirmationToken?: string;
4746
+ };
4444
4747
  url: '/public/v1/automation-flows/{id}/poses';
4445
4748
  };
4446
4749
  type PoseAutomationFlowErrors = {
@@ -4456,6 +4759,10 @@ type PoseAutomationFlowErrors = {
4456
4759
  * The template, pose or channel named in the path does not belong to your organisation.
4457
4760
  */
4458
4761
  404: ApiErrorDto;
4762
+ /**
4763
+ * Nothing was done: in Settings › Developers this action waits for a yes (the same columns as the MCP). Show `preview` to the user, get an explicit yes, then send the same request again with `?confirmationToken=`.
4764
+ */
4765
+ 428: ConfirmationRequiredDto;
4459
4766
  };
4460
4767
  type PoseAutomationFlowError = PoseAutomationFlowErrors[keyof PoseAutomationFlowErrors];
4461
4768
  type PoseAutomationFlowResponses = {
@@ -4505,7 +4812,12 @@ type DeleteAutomationPoseData = {
4505
4812
  path: {
4506
4813
  id: string;
4507
4814
  };
4508
- query?: never;
4815
+ query?: {
4816
+ /**
4817
+ * The token of a `428` answer, once the user said yes: the same request (same method, path, query and body) sent again with it runs. Single use, 15 minutes. Needed only when this action waits for a yes in Settings › Developers (the same columns as the MCP).
4818
+ */
4819
+ confirmationToken?: string;
4820
+ };
4509
4821
  url: '/public/v1/automation-flow-poses/{id}';
4510
4822
  };
4511
4823
  type DeleteAutomationPoseErrors = {
@@ -4521,6 +4833,10 @@ type DeleteAutomationPoseErrors = {
4521
4833
  * The template, pose or channel named in the path does not belong to your organisation.
4522
4834
  */
4523
4835
  404: ApiErrorDto;
4836
+ /**
4837
+ * Nothing was done: in Settings › Developers this action waits for a yes (the same columns as the MCP). Show `preview` to the user, get an explicit yes, then send the same request again with `?confirmationToken=`.
4838
+ */
4839
+ 428: ConfirmationRequiredDto;
4524
4840
  };
4525
4841
  type DeleteAutomationPoseError = DeleteAutomationPoseErrors[keyof DeleteAutomationPoseErrors];
4526
4842
  type DeleteAutomationPoseResponses = {
@@ -4559,7 +4875,12 @@ type UpdateAutomationPoseData = {
4559
4875
  path: {
4560
4876
  id: string;
4561
4877
  };
4562
- query?: never;
4878
+ query?: {
4879
+ /**
4880
+ * The token of a `428` answer, once the user said yes: the same request (same method, path, query and body) sent again with it runs. Single use, 15 minutes. Needed only when this action waits for a yes in Settings › Developers (the same columns as the MCP).
4881
+ */
4882
+ confirmationToken?: string;
4883
+ };
4563
4884
  url: '/public/v1/automation-flow-poses/{id}';
4564
4885
  };
4565
4886
  type UpdateAutomationPoseErrors = {
@@ -4575,6 +4896,10 @@ type UpdateAutomationPoseErrors = {
4575
4896
  * The template, pose or channel named in the path does not belong to your organisation.
4576
4897
  */
4577
4898
  404: ApiErrorDto;
4899
+ /**
4900
+ * Nothing was done: in Settings › Developers this action waits for a yes (the same columns as the MCP). Show `preview` to the user, get an explicit yes, then send the same request again with `?confirmationToken=`.
4901
+ */
4902
+ 428: ConfirmationRequiredDto;
4578
4903
  };
4579
4904
  type UpdateAutomationPoseError = UpdateAutomationPoseErrors[keyof UpdateAutomationPoseErrors];
4580
4905
  type UpdateAutomationPoseResponses = {
@@ -4642,7 +4967,12 @@ type ReplayAutomationPoseData = {
4642
4967
  path: {
4643
4968
  id: string;
4644
4969
  };
4645
- query?: never;
4970
+ query?: {
4971
+ /**
4972
+ * The token of a `428` answer, once the user said yes: the same request (same method, path, query and body) sent again with it runs. Single use, 15 minutes. Needed only when this action waits for a yes in Settings › Developers (the same columns as the MCP).
4973
+ */
4974
+ confirmationToken?: string;
4975
+ };
4646
4976
  url: '/public/v1/automation-flow-poses/{id}/replay';
4647
4977
  };
4648
4978
  type ReplayAutomationPoseErrors = {
@@ -4658,6 +4988,10 @@ type ReplayAutomationPoseErrors = {
4658
4988
  * The template, pose or channel named in the path does not belong to your organisation.
4659
4989
  */
4660
4990
  404: ApiErrorDto;
4991
+ /**
4992
+ * Nothing was done: in Settings › Developers this action waits for a yes (the same columns as the MCP). Show `preview` to the user, get an explicit yes, then send the same request again with `?confirmationToken=`.
4993
+ */
4994
+ 428: ConfirmationRequiredDto;
4661
4995
  };
4662
4996
  type ReplayAutomationPoseError = ReplayAutomationPoseErrors[keyof ReplayAutomationPoseErrors];
4663
4997
  type ReplayAutomationPoseResponses = {
@@ -4696,7 +5030,12 @@ type CatchUpAutomationPoseData = {
4696
5030
  path: {
4697
5031
  id: string;
4698
5032
  };
4699
- query?: never;
5033
+ query?: {
5034
+ /**
5035
+ * The token of a `428` answer, once the user said yes: the same request (same method, path, query and body) sent again with it runs. Single use, 15 minutes. Needed only when this action waits for a yes in Settings › Developers (the same columns as the MCP).
5036
+ */
5037
+ confirmationToken?: string;
5038
+ };
4700
5039
  url: '/public/v1/automation-flow-poses/{id}/catch-up';
4701
5040
  };
4702
5041
  type CatchUpAutomationPoseErrors = {
@@ -4712,6 +5051,10 @@ type CatchUpAutomationPoseErrors = {
4712
5051
  * The template, pose or channel named in the path does not belong to your organisation.
4713
5052
  */
4714
5053
  404: ApiErrorDto;
5054
+ /**
5055
+ * Nothing was done: in Settings › Developers this action waits for a yes (the same columns as the MCP). Show `preview` to the user, get an explicit yes, then send the same request again with `?confirmationToken=`.
5056
+ */
5057
+ 428: ConfirmationRequiredDto;
4715
5058
  };
4716
5059
  type CatchUpAutomationPoseError = CatchUpAutomationPoseErrors[keyof CatchUpAutomationPoseErrors];
4717
5060
  type CatchUpAutomationPoseResponses = {
@@ -4771,7 +5114,12 @@ type ListWebhooksResponse = ListWebhooksResponses[keyof ListWebhooksResponses];
4771
5114
  type CreateWebhookData = {
4772
5115
  body: CreatePublicWebhookDto;
4773
5116
  path?: never;
4774
- query?: never;
5117
+ query?: {
5118
+ /**
5119
+ * The token of a `428` answer, once the user said yes: the same request (same method, path, query and body) sent again with it runs. Single use, 15 minutes. Needed only when this action waits for a yes in Settings › Developers (the same columns as the MCP).
5120
+ */
5121
+ confirmationToken?: string;
5122
+ };
4775
5123
  url: '/public/v1/webhooks';
4776
5124
  };
4777
5125
  type CreateWebhookErrors = {
@@ -4787,6 +5135,10 @@ type CreateWebhookErrors = {
4787
5135
  * The channel, post or record named in the path does not belong to your organisation.
4788
5136
  */
4789
5137
  404: ApiErrorDto;
5138
+ /**
5139
+ * Nothing was done: in Settings › Developers this action waits for a yes (the same columns as the MCP). Show `preview` to the user, get an explicit yes, then send the same request again with `?confirmationToken=`.
5140
+ */
5141
+ 428: ConfirmationRequiredDto;
4790
5142
  };
4791
5143
  type CreateWebhookError = CreateWebhookErrors[keyof CreateWebhookErrors];
4792
5144
  type CreateWebhookResponses = {
@@ -4798,7 +5150,12 @@ type DeleteWebhookData = {
4798
5150
  path: {
4799
5151
  id: string;
4800
5152
  };
4801
- query?: never;
5153
+ query?: {
5154
+ /**
5155
+ * The token of a `428` answer, once the user said yes: the same request (same method, path, query and body) sent again with it runs. Single use, 15 minutes. Needed only when this action waits for a yes in Settings › Developers (the same columns as the MCP).
5156
+ */
5157
+ confirmationToken?: string;
5158
+ };
4802
5159
  url: '/public/v1/webhooks/{id}';
4803
5160
  };
4804
5161
  type DeleteWebhookErrors = {
@@ -4814,6 +5171,10 @@ type DeleteWebhookErrors = {
4814
5171
  * The channel, post or record named in the path does not belong to your organisation.
4815
5172
  */
4816
5173
  404: ApiErrorDto;
5174
+ /**
5175
+ * Nothing was done: in Settings › Developers this action waits for a yes (the same columns as the MCP). Show `preview` to the user, get an explicit yes, then send the same request again with `?confirmationToken=`.
5176
+ */
5177
+ 428: ConfirmationRequiredDto;
4817
5178
  };
4818
5179
  type DeleteWebhookError = DeleteWebhookErrors[keyof DeleteWebhookErrors];
4819
5180
  type DeleteWebhookResponses = {
@@ -4890,6 +5251,10 @@ type ListContentsData = {
4890
5251
  * The card with this external id.
4891
5252
  */
4892
5253
  externalId?: string;
5254
+ /**
5255
+ * Cards tagged with this workspace (`GET /public/v1/workspaces`).
5256
+ */
5257
+ workspace?: string;
4893
5258
  /**
4894
5259
  * Comma-separated fields to return, e.g. `id,title,stage` (the id always comes back). Omitted: every field, scripts included.
4895
5260
  */
@@ -4977,7 +5342,12 @@ type DeleteContentData = {
4977
5342
  path: {
4978
5343
  id: string;
4979
5344
  };
4980
- query?: never;
5345
+ query?: {
5346
+ /**
5347
+ * The token of a `428` answer, once the user said yes: the same request (same method, path, query and body) sent again with it runs. Single use, 15 minutes. Needed only when this action waits for a yes in Settings › Developers (the same columns as the MCP).
5348
+ */
5349
+ confirmationToken?: string;
5350
+ };
4981
5351
  url: '/public/v1/contents/{id}';
4982
5352
  };
4983
5353
  type DeleteContentErrors = {
@@ -4993,6 +5363,10 @@ type DeleteContentErrors = {
4993
5363
  * The card named in the path does not belong to your organisation.
4994
5364
  */
4995
5365
  404: ApiErrorDto;
5366
+ /**
5367
+ * Nothing was done: in Settings › Developers this action waits for a yes (the same columns as the MCP). Show `preview` to the user, get an explicit yes, then send the same request again with `?confirmationToken=`.
5368
+ */
5369
+ 428: ConfirmationRequiredDto;
4996
5370
  };
4997
5371
  type DeleteContentError = DeleteContentErrors[keyof DeleteContentErrors];
4998
5372
  type DeleteContentResponses = {
@@ -5072,6 +5446,10 @@ type UpsertContentErrors = {
5072
5446
  * The card named in the path does not belong to your organisation.
5073
5447
  */
5074
5448
  404: ApiErrorDto;
5449
+ /**
5450
+ * A key limited to some workspaces sent the `externalId` of a card outside its workspaces.
5451
+ */
5452
+ 409: ApiErrorDto;
5075
5453
  };
5076
5454
  type UpsertContentError = UpsertContentErrors[keyof UpsertContentErrors];
5077
5455
  type UpsertContentResponses = {
@@ -5093,6 +5471,10 @@ type CreateContentFromLinkErrors = {
5093
5471
  * Missing or invalid API key (`Authorization` header).
5094
5472
  */
5095
5473
  401: ApiErrorDto;
5474
+ /**
5475
+ * A key limited to some workspaces sent a video that is already a card of your organisation outside its workspaces (a card is never copied).
5476
+ */
5477
+ 409: ApiErrorDto;
5096
5478
  /**
5097
5479
  * Over the budget of videos sent from a link (30 per hour per organisation by default).
5098
5480
  */
@@ -5168,6 +5550,33 @@ type LinkContentPostResponses = {
5168
5550
  200: OkDto;
5169
5551
  };
5170
5552
  type LinkContentPostResponse = LinkContentPostResponses[keyof LinkContentPostResponses];
5553
+ type SetContentWorkspacesData = {
5554
+ body: SetContentWorkspacesDto;
5555
+ path: {
5556
+ id: string;
5557
+ };
5558
+ query?: never;
5559
+ url: '/public/v1/contents/{id}/workspaces';
5560
+ };
5561
+ type SetContentWorkspacesErrors = {
5562
+ /**
5563
+ * `workspaceIds` is missing, or names a workspace that is not of your organisation.
5564
+ */
5565
+ 400: ApiErrorDto;
5566
+ /**
5567
+ * Missing or invalid API key (`Authorization` header), or no running subscription.
5568
+ */
5569
+ 401: ApiErrorDto;
5570
+ /**
5571
+ * No card of your organisation has this id.
5572
+ */
5573
+ 404: ApiErrorDto;
5574
+ };
5575
+ type SetContentWorkspacesError = SetContentWorkspacesErrors[keyof SetContentWorkspacesErrors];
5576
+ type SetContentWorkspacesResponses = {
5577
+ 200: ContentWorkspacesDto;
5578
+ };
5579
+ type SetContentWorkspacesResponse = SetContentWorkspacesResponses[keyof SetContentWorkspacesResponses];
5171
5580
  type SearchHooksData = {
5172
5581
  body?: never;
5173
5582
  path?: never;
@@ -5425,7 +5834,12 @@ type DeleteWorkspaceData = {
5425
5834
  path: {
5426
5835
  id: string;
5427
5836
  };
5428
- query?: never;
5837
+ query?: {
5838
+ /**
5839
+ * The token of a `428` answer, once the user said yes: the same request (same method, path, query and body) sent again with it runs. Single use, 15 minutes. Needed only when this action waits for a yes in Settings › Developers (the same columns as the MCP).
5840
+ */
5841
+ confirmationToken?: string;
5842
+ };
5429
5843
  url: '/public/v1/workspaces/{id}';
5430
5844
  };
5431
5845
  type DeleteWorkspaceErrors = {
@@ -5441,6 +5855,10 @@ type DeleteWorkspaceErrors = {
5441
5855
  * No workspace of your organisation has this id.
5442
5856
  */
5443
5857
  404: WorkspaceErrorDto;
5858
+ /**
5859
+ * Nothing was done: in Settings › Developers this action waits for a yes (the same columns as the MCP). Show `preview` to the user, get an explicit yes, then send the same request again with `?confirmationToken=`.
5860
+ */
5861
+ 428: ConfirmationRequiredDto;
5444
5862
  };
5445
5863
  type DeleteWorkspaceError = DeleteWorkspaceErrors[keyof DeleteWorkspaceErrors];
5446
5864
  type DeleteWorkspaceResponses = {
@@ -5497,13 +5915,21 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
5497
5915
  /**
5498
5916
  * Upload a file and get a URL usable in a post
5499
5917
  *
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`).
5918
+ * The whole file in one request: an MP4 up to 25 MB, an image up to 10 MB (a HEIC or HEIF photo is converted to JPEG). A MOV or an M4V is refused (`415`): convert it to MP4 first. A larger MP4 goes in parts (`POST /public/v1/uploads`).
5501
5919
  */
5502
5920
  declare const uploadFile: <ThrowOnError extends boolean = false>(options: Options<UploadFileData, ThrowOnError>) => RequestResult<UploadFileResponses, UploadFileErrors, ThrowOnError>;
5503
5921
  /**
5504
5922
  * Import a file from a URL into your media library
5923
+ *
5924
+ * Download a public HTTPS file into your media library. When the import is done within 25 seconds, the answer is `201` and the media, as always. A longer import (a big video, a slow host) answers `202` with the import (`id`, `status: "running"`): it goes on without the connection, and `GET /public/v1/upload-from-url/{importId}` reads it again until `status` is `done` (the `media`) or `failed` (the `error` the call would have answered). The same URL sent again while it runs, or within ten minutes after it succeeded, answers the same import: one download, one media. The MCP tool `uploadFromUrlTool` waits for the end itself.
5505
5925
  */
5506
5926
  declare const uploadFromUrl: <ThrowOnError extends boolean = false>(options: Options<UploadFromUrlData, ThrowOnError>) => RequestResult<UploadFromUrlResponses, UploadFromUrlErrors, ThrowOnError>;
5927
+ /**
5928
+ * Read an import from a URL
5929
+ *
5930
+ * Read again an import from a URL answered `202` by `POST /public/v1/upload-from-url`: `running` (read again in a few seconds), `done` with its `media`, or `failed` with its `error` (`statusCode` and `msg`, the answer the call would have given: send the URL again to retry). An import is kept a day.
5931
+ */
5932
+ declare const getUploadFromUrl: <ThrowOnError extends boolean = false>(options: Options<GetUploadFromUrlData, ThrowOnError>) => RequestResult<GetUploadFromUrlResponses, GetUploadFromUrlErrors, ThrowOnError>;
5507
5933
  /**
5508
5934
  * Open an upload of a file from your disk
5509
5935
  *
@@ -5516,6 +5942,12 @@ declare const createUpload: <ThrowOnError extends boolean = false>(options: Opti
5516
5942
  * 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
5943
  */
5518
5944
  declare const confirmUpload: <ThrowOnError extends boolean = false>(options: Options<ConfirmUploadData, ThrowOnError>) => RequestResult<ConfirmUploadResponses, ConfirmUploadErrors, ThrowOnError>;
5945
+ /**
5946
+ * Tag a media with workspaces
5947
+ *
5948
+ * The whole set of workspaces a media of your library is tagged with (its id comes back from an upload). A media is never copied: when it serves two workspaces, it carries both tags. An untagged media is the organization's alone: the organization's key and the app see it, a key limited to some workspaces does not. A limited key only adds or takes off its own workspaces; the media's other tags stay. Publishing a media on a channel of another workspace tags it on the way (`mediaTagged` in the answer of `POST /public/v1/posts`).
5949
+ */
5950
+ declare const setMediaWorkspaces: <ThrowOnError extends boolean = false>(options: Options<SetMediaWorkspacesData, ThrowOnError>) => RequestResult<SetMediaWorkspacesResponses, SetMediaWorkspacesErrors, ThrowOnError>;
5519
5951
  /**
5520
5952
  * Next free slot in the channel's schedule
5521
5953
  */
@@ -5537,7 +5969,9 @@ declare const listPosts: <ThrowOnError extends boolean = false>(options: Options
5537
5969
  */
5538
5970
  declare const createPost: <ThrowOnError extends boolean = false>(options: Options<CreatePostData, ThrowOnError>) => RequestResult<CreatePostResponses, CreatePostErrors, ThrowOnError>;
5539
5971
  /**
5540
- * Delete a post and everything published with it
5972
+ * Delete a post and everything scheduled with it
5973
+ *
5974
+ * Deleting is three different things. A post not published yet (scheduled, draft, failed) is cancelled: it never goes out. A post already published only leaves UseNadia by default: it stays online on the platform. With `deleteOnPlatform=true`, a published post is also deleted at its platform, for good, where UseNadia can (`deletableOnPlatform`; Threads, YouTube, Instagram and TikTok cannot today). `posts` says which happened, per post of the group. When deleting a post (or deleting it on its platform) waits for a yes in Settings › Developers — the default — the first call answers `428` with the preview and a `confirmationToken`, and deletes nothing.
5541
5975
  */
5542
5976
  declare const deletePost: <ThrowOnError extends boolean = false>(options: Options<DeletePostData, ThrowOnError>) => RequestResult<DeletePostResponses, DeletePostErrors, ThrowOnError>;
5543
5977
  /**
@@ -5548,6 +5982,8 @@ declare const deletePost: <ThrowOnError extends boolean = false>(options: Option
5548
5982
  declare const getPost: <ThrowOnError extends boolean = false>(options: Options<GetPostData, ThrowOnError>) => RequestResult<GetPostResponses, GetPostErrors, ThrowOnError>;
5549
5983
  /**
5550
5984
  * Delete a publication group
5985
+ *
5986
+ * Deleting is three different things. A post not published yet (scheduled, draft, failed) is cancelled: it never goes out. A post already published only leaves UseNadia by default: it stays online on the platform. With `deleteOnPlatform=true`, a published post is also deleted at its platform, for good, where UseNadia can (`deletableOnPlatform`; Threads, YouTube, Instagram and TikTok cannot today). `posts` says which happened, per post of the group. When deleting a post (or deleting it on its platform) waits for a yes in Settings › Developers — the default — the first call answers `428` with the preview and a `confirmationToken`, and deletes nothing.
5551
5987
  */
5552
5988
  declare const deletePostGroup: <ThrowOnError extends boolean = false>(options: Options<DeletePostGroupData, ThrowOnError>) => RequestResult<DeletePostGroupResponses, DeletePostGroupErrors, ThrowOnError>;
5553
5989
  /**
@@ -5821,11 +6257,13 @@ declare const testWebhook: <ThrowOnError extends boolean = false>(options: Optio
5821
6257
  /**
5822
6258
  * List the cards of the board
5823
6259
  *
5824
- * Filters combine. With `fields`, each card carries only the fields asked for (plus its id).
6260
+ * Filters combine. With `fields`, each card carries only the fields asked for (plus its id). A key limited to some workspaces lists the cards tagged with one of them and tied to no channel or post of another workspace.
5825
6261
  */
5826
6262
  declare const listContents: <ThrowOnError extends boolean = false>(options?: Options<ListContentsData, ThrowOnError>) => RequestResult<ListContentsResponses, ListContentsErrors, ThrowOnError>;
5827
6263
  /**
5828
6264
  * Create a card
6265
+ *
6266
+ * A card created by a key limited to some workspaces is tagged with them; by the organisation's key, it is not tagged.
5829
6267
  */
5830
6268
  declare const createContent: <ThrowOnError extends boolean = false>(options: Options<CreateContentData, ThrowOnError>) => RequestResult<CreateContentResponses, CreateContentErrors, ThrowOnError>;
5831
6269
  /**
@@ -5834,6 +6272,8 @@ declare const createContent: <ThrowOnError extends boolean = false>(options: Opt
5834
6272
  declare const getContentsPerformance: <ThrowOnError extends boolean = false>(options?: Options<GetContentsPerformanceData, ThrowOnError>) => RequestResult<GetContentsPerformanceResponses, GetContentsPerformanceErrors, ThrowOnError>;
5835
6273
  /**
5836
6274
  * Delete a card
6275
+ *
6276
+ * A key limited to some workspaces deleting a card that also carries other workspaces only takes its own workspaces off: the card stays for the others and comes back without `deletedAt`.
5837
6277
  */
5838
6278
  declare const deleteContent: <ThrowOnError extends boolean = false>(options: Options<DeleteContentData, ThrowOnError>) => RequestResult<DeleteContentResponses, DeleteContentErrors, ThrowOnError>;
5839
6279
  /**
@@ -5866,6 +6306,12 @@ declare const moveContent: <ThrowOnError extends boolean = false>(options: Optio
5866
6306
  * Pass the `group` of a post created with POST /public/v1/posts. A card holds several posts (e.g. a TikTok draft and an Instagram post): each call adds one. A card behind "To schedule" jumps there; it moves to PUBLISHED when the first of its posts goes live.
5867
6307
  */
5868
6308
  declare const linkContentPost: <ThrowOnError extends boolean = false>(options: Options<LinkContentPostData, ThrowOnError>) => RequestResult<LinkContentPostResponses, LinkContentPostErrors, ThrowOnError>;
6309
+ /**
6310
+ * Tag a card with workspaces
6311
+ *
6312
+ * The whole set of workspaces a card of the idea box is tagged with. A card is never copied: when it serves two workspaces, it carries both tags. An untagged card is the organization's alone: the organization's key and the app see it, a key limited to some workspaces does not. A limited key only adds or takes off its own workspaces; the card's other tags stay. A card created by a limited key is tagged with its workspaces.
6313
+ */
6314
+ declare const setContentWorkspaces: <ThrowOnError extends boolean = false>(options: Options<SetContentWorkspacesData, ThrowOnError>) => RequestResult<SetContentWorkspacesResponses, SetContentWorkspacesErrors, ThrowOnError>;
5869
6315
  /**
5870
6316
  * Search real hooks that worked
5871
6317
  *
@@ -5934,6 +6380,37 @@ declare class NadiaError extends Error {
5934
6380
  */
5935
6381
  get isTransient(): boolean;
5936
6382
  }
6383
+ /** What a `428` says the action will do: `action` (e.g. `post.delete`), `request`, and more per action. */
6384
+ type ConfirmationPreview = {
6385
+ action?: string;
6386
+ request?: string;
6387
+ [key: string]: unknown;
6388
+ };
6389
+ /**
6390
+ * Thrown on a `428`: the action waits for a yes (Settings › Developers, the
6391
+ * same columns as the MCP) and **nothing was done**. Show {@link preview} to
6392
+ * the user; once they said yes, {@link confirm} sends the same request again
6393
+ * with {@link confirmationToken} (single use, 15 minutes).
6394
+ *
6395
+ * try {
6396
+ * await nadia.deletePost(id);
6397
+ * } catch (err) {
6398
+ * if (!(err instanceof NadiaConfirmationRequired)) throw err;
6399
+ * console.log(err.preview);
6400
+ * if (await askUser('Delete?')) await err.confirm();
6401
+ * }
6402
+ *
6403
+ * `new Nadia(key, { autoConfirm: true })` skips the question: every `428` is
6404
+ * confirmed at once — only for a program that already has the user's yes.
6405
+ */
6406
+ declare class NadiaConfirmationRequired extends NadiaError {
6407
+ readonly preview: ConfirmationPreview;
6408
+ readonly confirmationToken: string;
6409
+ private readonly replay;
6410
+ constructor(body: unknown, replay: (token: string) => Promise<unknown>);
6411
+ /** Sends the same request again with the token: the action runs. Resolves to its answer. */
6412
+ confirm<T = unknown>(): Promise<T>;
6413
+ }
5937
6414
  interface NadiaOptions {
5938
6415
  /** Defaults to `https://app.usenadia.com/api`. */
5939
6416
  baseUrl?: string;
@@ -5941,6 +6418,22 @@ interface NadiaOptions {
5941
6418
  retries?: number;
5942
6419
  /** Swap in a custom fetch (tests, proxies, instrumentation). */
5943
6420
  fetch?: typeof fetch;
6421
+ /**
6422
+ * How {@link Nadia.uploadFromUrl} reads a long import again: every
6423
+ * `intervalMs` (default 3000), for `timeoutMs` at most (default 15 min:
6424
+ * the server gives a download 10 minutes).
6425
+ */
6426
+ importPoll?: {
6427
+ intervalMs?: number;
6428
+ timeoutMs?: number;
6429
+ };
6430
+ /**
6431
+ * An action that waits for a yes answers `428` (Settings › Developers):
6432
+ * by default the SDK throws {@link NadiaConfirmationRequired}. `true`
6433
+ * sends the same request again with its token at once, so the action runs.
6434
+ * Only for a program that already has the user's yes. Default `false`.
6435
+ */
6436
+ autoConfirm?: boolean;
5944
6437
  }
5945
6438
  /** Shape every generated operation resolves to. */
5946
6439
  type GeneratedResult<T> = {
@@ -5977,6 +6470,8 @@ declare class Nadia {
5977
6470
  private readonly retries;
5978
6471
  /** For the bytes of an upload, which go to the upload host, not the API. */
5979
6472
  private readonly fetchImpl;
6473
+ private readonly importPoll;
6474
+ private readonly autoConfirm;
5980
6475
  constructor(apiKey: string, options?: string | NadiaOptions);
5981
6476
  /**
5982
6477
  * Runs a generated operation, turns a non-2xx into a `NadiaError`, and
@@ -5984,6 +6479,8 @@ declare class Nadia {
5984
6479
  * the whole point of the facade.
5985
6480
  */
5986
6481
  private call;
6482
+ /** A fetch that sends each request with `?confirmationToken=<token>`. */
6483
+ private withToken;
5987
6484
  /** Schedule, publish or draft a post on one or more channels. */
5988
6485
  post(body: CreatePostBody): Promise<CreatePostResultItemDto[]>;
5989
6486
  /** List posts in a date range. */
@@ -5998,14 +6495,32 @@ declare class Nadia {
5998
6495
  * says are missing sent again before confirming once more. A server that
5999
6496
  * does not take parts answers a single PUT, which is done instead; a
6000
6497
  * 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.
6498
+ * and any other type (HEIC… which the server converts to JPEG) go through
6499
+ * `POST /public/v1/upload`, the whole file in one request, as before. A
6500
+ * MOV or an M4V is refused there (`415`): convert it to MP4 first.
6003
6501
  *
6004
6502
  * Resolves to the media: `id` and `path` always (what a post takes),
6005
6503
  * plus `size`, `duration`, `width`, `height`, `codec` when it went in
6006
6504
  * parts or in a single PUT.
6007
6505
  */
6008
6506
  upload(file: string | Blob | File, filename?: string): Promise<UploadedMedia>;
6507
+ /**
6508
+ * Import a file from a public HTTPS URL into the media library
6509
+ * (`POST /public/v1/upload-from-url`): the path of the URL ends in `.png`,
6510
+ * `.jpg`, `.jpeg`, `.gif`, `.webp` or `.mp4`.
6511
+ *
6512
+ * A long import (not done within 25 s) is answered `202` by the server and
6513
+ * goes on there; it is read again here (`GET
6514
+ * /public/v1/upload-from-url/{importId}`) until it ends. Resolves to the
6515
+ * media either way; a failed import throws the `NadiaError` the server
6516
+ * would have answered at once (its status and `msg`).
6517
+ */
6518
+ uploadFromUrl(url: string): Promise<UploadedMedia>;
6519
+ /**
6520
+ * The end of an import from a URL: the media at once (`201`), or an import
6521
+ * (`202`) read again every few seconds until it is done or failed.
6522
+ */
6523
+ private importEnd;
6009
6524
  /** The whole file in one multipart request: `POST /public/v1/upload`. */
6010
6525
  private uploadWhole;
6011
6526
  /** Each part to `<uploadUrl>/<n>`, a few at a time, each retried. */
@@ -6019,8 +6534,14 @@ declare class Nadia {
6019
6534
  private put;
6020
6535
  /** List your connected channels. */
6021
6536
  integrations(): Promise<IntegrationListItemDto[]>;
6022
- /** Delete a post and everything published with it. */
6023
- deletePost(id: string): Promise<DeletedIdDto>;
6537
+ /**
6538
+ * Delete a post and everything published with it. Waits for a yes by
6539
+ * default: throws {@link NadiaConfirmationRequired} unless `autoConfirm`,
6540
+ * or unless the token of that 428 is passed here.
6541
+ */
6542
+ deletePost(id: string, options?: {
6543
+ confirmationToken?: string;
6544
+ }): Promise<DeletedPostDto>;
6024
6545
  /** Check that the API key is valid. Throws `NadiaError` with status 401 if not. */
6025
6546
  isConnected(): Promise<boolean>;
6026
6547
  /** Next free slot in a channel's schedule. */
@@ -6056,8 +6577,10 @@ declare class Nadia {
6056
6577
  * the first of them goes live.
6057
6578
  */
6058
6579
  linkContentPost(id: string, postGroup: string): Promise<OkDto>;
6059
- /** Delete a card. */
6060
- deleteContent(id: string): Promise<ContentDto>;
6580
+ /** Delete a card. Waits for a yes by default, like {@link Nadia.deletePost}. */
6581
+ deleteContent(id: string, options?: {
6582
+ confirmationToken?: string;
6583
+ }): Promise<ContentDto>;
6061
6584
  /** The numbers of the published cards, keyed by card id. */
6062
6585
  contentsPerformance(): Promise<{
6063
6586
  [key: string]: ContentPerformanceDto;
@@ -6138,4 +6661,4 @@ declare function parseWebhook<T = unknown>(options: {
6138
6661
  now?: number;
6139
6662
  }): WebhookDelivery<T>;
6140
6663
 
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 };
6664
+ 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 ConfirmationPreview, type ConfirmationRequiredDto, type ConfirmedUploadDto, type ContentChannelPerformanceDto, type ContentDto, type ContentFromLinkDto, type ContentListItemDto, type ContentPerformanceDto, type ContentPostDto, type ContentSourceDto, type ContentSourceTranscriptDto, type ContentSourceTranscriptSegmentDto, type ContentStage, type ContentUpsertDto, type ContentWorkspacesDto, type CreateAutomationFlowData, type CreateAutomationFlowError, type CreateAutomationFlowErrors, type CreateAutomationFlowResponse, type CreateAutomationFlowResponses, type CreateContentData, type CreateContentDto, type CreateContentError, type CreateContentErrors, type CreateContentFromLinkData, type CreateContentFromLinkDto, type CreateContentFromLinkError, type CreateContentFromLinkErrors, type CreateContentFromLinkResponse, type CreateContentFromLinkResponses, type CreateContentResponse, type CreateContentResponses, type CreatePostBody, type CreatePostData, type CreatePostError, type CreatePostErrors, type CreatePostResponse, type CreatePostResponses, type CreatePostResultItemDto, type CreatePublicWebhookDto, type CreateUploadData, type CreateUploadDto, type CreateUploadError, type CreateUploadErrors, type CreateUploadResponse, type CreateUploadResponses, type CreateWebhookData, type CreateWebhookError, type CreateWebhookErrors, type CreateWebhookResponse, type CreateWebhookResponses, type CreateWorkspaceData, type CreateWorkspaceDto, type CreateWorkspaceError, type CreateWorkspaceErrors, type CreateWorkspaceResponse, type CreateWorkspaceResponses, DEFAULT_BASE_URL, type DeleteAutomationFlowData, type DeleteAutomationFlowError, type DeleteAutomationFlowErrors, type DeleteAutomationFlowResponse, type DeleteAutomationFlowResponses, type DeleteAutomationPoseData, type DeleteAutomationPoseError, type DeleteAutomationPoseErrors, type DeleteAutomationPoseResponse, type DeleteAutomationPoseResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteCommentData, type DeleteCommentError, type DeleteCommentErrors, type DeleteCommentResponse, type DeleteCommentResponses, type DeleteContentData, type DeleteContentError, type DeleteContentErrors, type DeleteContentResponse, type DeleteContentResponses, type DeletePostData, type DeletePostError, type DeletePostErrors, type DeletePostGroupData, type DeletePostGroupError, type DeletePostGroupErrors, type DeletePostGroupResponse, type DeletePostGroupResponses, type DeletePostResponse, type DeletePostResponses, type DeleteWebhookData, type DeleteWebhookError, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type DeleteWorkspaceData, type DeleteWorkspaceError, type DeleteWorkspaceErrors, type DeleteWorkspaceResponse, type DeleteWorkspaceResponses, type DeletedIdDto, type DeletedPostDto, type DirectMessageResultDto, type EmailPreviewDto, type EmailPreviewDtoResponse, type EmailSentDto, type EmailTestDto, type FindSlotData, type FindSlotDto, type FindSlotError, type FindSlotErrors, type FindSlotResponse, type FindSlotResponses, type GetAccountHistoryData, type GetAccountHistoryError, type GetAccountHistoryErrors, type GetAccountHistoryResponse, type GetAccountHistoryResponses, type GetAutomationFlowData, type GetAutomationFlowError, type GetAutomationFlowErrors, type GetAutomationFlowResponse, type GetAutomationFlowResponses, type GetAutomationPoseData, type GetAutomationPoseError, type GetAutomationPoseErrors, type GetAutomationPoseResponse, type GetAutomationPoseResponses, type GetChannelAnalyticsData, type GetChannelAnalyticsError, type GetChannelAnalyticsErrors, type GetChannelAnalyticsResponse, type GetChannelAnalyticsResponses, type GetChannelSettingsData, type GetChannelSettingsError, type GetChannelSettingsErrors, type GetChannelSettingsResponse, type GetChannelSettingsResponses, type GetContentData, type GetContentError, type GetContentErrors, type GetContentResponse, type GetContentResponses, type GetContentsPerformanceData, type GetContentsPerformanceError, type GetContentsPerformanceErrors, type GetContentsPerformanceResponse, type GetContentsPerformanceResponses, type GetConversationData, type GetConversationError, type GetConversationErrors, type GetConversationResponse, type GetConversationResponses, type GetHookFormsData, type GetHookFormsError, type GetHookFormsErrors, type GetHookFormsResponse, type GetHookFormsResponses, type GetMusicTrackData, type GetMusicTrackError, type GetMusicTrackErrors, type GetMusicTrackResponse, type GetMusicTrackResponses, type GetPostAnalyticsData, type GetPostAnalyticsError, type GetPostAnalyticsErrors, type GetPostAnalyticsResponse, type GetPostAnalyticsResponses, type GetPostAutomationData, type GetPostAutomationError, type GetPostAutomationErrors, type GetPostAutomationResponse, type GetPostAutomationResponses, type GetPostData, type GetPostError, type GetPostErrors, type GetPostResponse, type GetPostResponses, type GetPostingTimesData, type GetPostingTimesError, type GetPostingTimesErrors, type GetPostingTimesResponse, type GetPostingTimesResponses, type GetSubscriptionData, type GetSubscriptionError, type GetSubscriptionErrors, type GetSubscriptionResponse, type GetSubscriptionResponses, type GetUploadFromUrlData, type GetUploadFromUrlError, type GetUploadFromUrlErrors, type GetUploadFromUrlResponse, type GetUploadFromUrlResponses, type GetVideoHistoryData, type GetVideoHistoryError, type GetVideoHistoryErrors, type GetVideoHistoryResponse, type GetVideoHistoryResponses, type GetViewsPerDayData, type GetViewsPerDayError, type GetViewsPerDayErrors, type GetViewsPerDayResponse, type GetViewsPerDayResponses, type GetWebhookData, type GetWebhookError, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type GroupDto, type HideCommentData, type HideCommentDto, type HideCommentError, type HideCommentErrors, type HideCommentResponse, type HideCommentResponses, type HistoryPageDto, type HookDto, type HookFamilyDto, type HookFormDto, type HooksSearchResultDto, type ImportMusicData, type ImportMusicError, type ImportMusicErrors, type ImportMusicResponse, type ImportMusicResponses, type InboxConversationDto, type InboxPollResultDto, type InboxTagDto, type InboxThreadDto, type InstagramCommentAuthorDto, type InstagramCommentDto, type InstagramMediaDto, type Integration, type IntegrationListItemDto, type IntegrationSettingsDto, type IntegrationSettingsOutputDto, type IntegrationToolDto, type IntegrationToolParamDto, type IntegrationTriggerDto, type IntegrationTriggerResultDto, type IntegrationValidateTimeDto, type IsConnectedDto, type LinkContentPostData, type LinkContentPostDto, type LinkContentPostError, type LinkContentPostErrors, type LinkContentPostResponse, type LinkContentPostResponses, type ListAutomationFlowPosesData, type ListAutomationFlowPosesError, type ListAutomationFlowPosesErrors, type ListAutomationFlowPosesResponse, type ListAutomationFlowPosesResponses, type ListAutomationFlowsData, type ListAutomationFlowsError, type ListAutomationFlowsErrors, type ListAutomationFlowsResponse, type ListAutomationFlowsResponses, type ListAutomationPoseRunsData, type ListAutomationPoseRunsError, type ListAutomationPoseRunsErrors, type ListAutomationPoseRunsResponse, type ListAutomationPoseRunsResponses, type ListChannelAutomationPosesData, type ListChannelAutomationPosesError, type ListChannelAutomationPosesErrors, type ListChannelAutomationPosesResponse, type ListChannelAutomationPosesResponses, type ListChannelMediaData, type ListChannelMediaError, type ListChannelMediaErrors, type ListChannelMediaResponse, type ListChannelMediaResponses, type ListChannelStoriesData, type ListChannelStoriesError, type ListChannelStoriesErrors, type ListChannelStoriesResponse, type ListChannelStoriesResponses, type ListChannelsData, type ListChannelsError, type ListChannelsErrors, type ListChannelsResponse, type ListChannelsResponses, type ListContentsData, type ListContentsError, type ListContentsErrors, type ListContentsResponse, type ListContentsResponses, type ListConversationsData, type ListConversationsError, type ListConversationsErrors, type ListConversationsResponse, type ListConversationsResponses, type ListGroupsData, type ListGroupsError, type ListGroupsErrors, type ListGroupsResponse, type ListGroupsResponses, type ListHookFamiliesData, type ListHookFamiliesError, type ListHookFamiliesErrors, type ListHookFamiliesResponse, type ListHookFamiliesResponses, type ListMediaCommentsData, type ListMediaCommentsError, type ListMediaCommentsErrors, type ListMediaCommentsResponse, type ListMediaCommentsResponses, type ListMissingMediaData, type ListMissingMediaError, type ListMissingMediaErrors, type ListMissingMediaResponse, type ListMissingMediaResponses, type ListMusicData, type ListMusicError, type ListMusicErrors, type ListMusicPillarsData, type ListMusicPillarsError, type ListMusicPillarsErrors, type ListMusicPillarsResponse, type ListMusicPillarsResponses, type ListMusicResponse, type ListMusicResponses, type ListNotificationsData, type ListNotificationsError, type ListNotificationsErrors, type ListNotificationsResponse, type ListNotificationsResponses, type ListPostsData, type ListPostsError, type ListPostsErrors, type ListPostsResponse, type ListPostsResponses, type ListVideoPerformanceData, type ListVideoPerformanceError, type ListVideoPerformanceErrors, type ListVideoPerformanceResponse, type ListVideoPerformanceResponses, type ListWebhookEventsData, type ListWebhookEventsError, type ListWebhookEventsErrors, type ListWebhookEventsResponse, type ListWebhookEventsResponses, type ListWebhooksData, type ListWebhooksError, type ListWebhooksErrors, type ListWebhooksResponse, type ListWebhooksResponses, type ListWorkspacesData, type ListWorkspacesError, type ListWorkspacesErrors, type ListWorkspacesResponse, type ListWorkspacesResponses, type MediaDto, type MediaResponseDto, type MediaTaggedDto, type MediaWorkspacesDto, type MissingContentItemDto, type MoveContentData, type MoveContentDto, type MoveContentError, type MoveContentErrors, type MoveContentResponse, type MoveContentResponses, type MusicImportDto, type MusicImportItemDto, type MusicImportResultDto, type MusicListResultDto, type MusicPillarDto, type MusicTrackDto, Nadia, NadiaConfirmationRequired, NadiaError, type NadiaOptions, NadiaWebhookError, type NotificationDto, type NotificationsPageDto, type OkDto, type Options, type PollAutomationPoseData, type PollAutomationPoseError, type PollAutomationPoseErrors, type PollAutomationPoseResponse, type PollAutomationPoseResponses, type PollInboxData, type PollInboxError, type PollInboxErrors, type PollInboxResponse, type PollInboxResponses, type PoseAutomationFlowData, type PoseAutomationFlowDto, type PoseAutomationFlowError, type PoseAutomationFlowErrors, type PoseAutomationFlowResponse, type PoseAutomationFlowResponses, type Post, type PostAutomationDto, type PostAutomationResponseDto, type PostContent, type PostDetailDto, type PostDto, type PostIntegrationSummaryDto, type PostLinkClicksDto, type PostLinkClicksSourceDto, type PostListDto, type PostMediaDto, type PostPublicationDto, type PostStatusDto, type PostTagDto, type PostingTimeItemDto, type PostingTimesDto, type PostingTimesResultDto, type PreviewAutomationEmailData, type PreviewAutomationEmailError, type PreviewAutomationEmailErrors, type PreviewAutomationEmailResponse, type PreviewAutomationEmailResponses, type PreviewAutomationPoseCatchUpData, type PreviewAutomationPoseCatchUpError, type PreviewAutomationPoseCatchUpErrors, type PreviewAutomationPoseCatchUpResponse, type PreviewAutomationPoseCatchUpResponses, type PublicCreatePostDto, type RemovePostAutomationData, type RemovePostAutomationError, type RemovePostAutomationErrors, type RemovePostAutomationResponse, type RemovePostAutomationResponses, type ReplayAutomationPoseData, type ReplayAutomationPoseError, type ReplayAutomationPoseErrors, type ReplayAutomationPoseResponse, type ReplayAutomationPoseResponses, type ReplayPoseDto, type ReplyToCommentData, type ReplyToCommentDto, type ReplyToCommentError, type ReplyToCommentErrors, type ReplyToCommentResponse, type ReplyToCommentResponses, type RunChannelToolData, type RunChannelToolError, type RunChannelToolErrors, type RunChannelToolResponse, type RunChannelToolResponses, type SearchHooksData, type SearchHooksError, type SearchHooksErrors, type SearchHooksResponse, type SearchHooksResponses, type SendAutomationTestEmailData, type SendAutomationTestEmailError, type SendAutomationTestEmailErrors, type SendAutomationTestEmailResponse, type SendAutomationTestEmailResponses, type SendDirectMessageData, type SendDirectMessageError, type SendDirectMessageErrors, type SendDirectMessageResponse, type SendDirectMessageResponses, type SendMessageDto, type SetAutomationFlowStatusData, type SetAutomationFlowStatusError, type SetAutomationFlowStatusErrors, type SetAutomationFlowStatusResponse, type SetAutomationFlowStatusResponses, type SetContentWorkspacesData, type SetContentWorkspacesDto, type SetContentWorkspacesError, type SetContentWorkspacesErrors, type SetContentWorkspacesResponse, type SetContentWorkspacesResponses, type SetMediaWorkspacesData, type SetMediaWorkspacesDto, type SetMediaWorkspacesError, type SetMediaWorkspacesErrors, type SetMediaWorkspacesResponse, type SetMediaWorkspacesResponses, type SetPostAutomationData, type SetPostAutomationError, type SetPostAutomationErrors, type SetPostAutomationResponse, type SetPostAutomationResponses, type SetPostCoverData, type SetPostCoverDto, type SetPostCoverError, type SetPostCoverErrors, type SetPostCoverResponse, type SetPostCoverResponses, type SetPostPublicationData, type SetPostPublicationDto, type SetPostPublicationError, type SetPostPublicationErrors, type SetPostPublicationResponse, type SetPostPublicationResponses, type SetPostReleaseIdData, type SetPostReleaseIdError, type SetPostReleaseIdErrors, type SetPostReleaseIdResponse, type SetPostReleaseIdResponses, type SetPostingTimesData, type SetPostingTimesError, type SetPostingTimesErrors, type SetPostingTimesResponse, type SetPostingTimesResponses, type SocialAuthUrlDto, type StartChannelConnectionData, type StartChannelConnectionError, type StartChannelConnectionErrors, type StartChannelConnectionResponse, type StartChannelConnectionResponses, type SubscribeInboxWebhookData, type SubscribeInboxWebhookError, type SubscribeInboxWebhookErrors, type SubscribeInboxWebhookResponse, type SubscribeInboxWebhookResponses, type SubscriptionDto, type SuccessDto, type Tags, type TestWebhookData, type TestWebhookDto, type TestWebhookError, type TestWebhookErrors, type TestWebhookResponse, type TestWebhookResponses, type UpdateAutomationFlowData, type UpdateAutomationFlowDto, type UpdateAutomationFlowError, type UpdateAutomationFlowErrors, type UpdateAutomationFlowPoseDto, type UpdateAutomationFlowResponse, type UpdateAutomationFlowResponses, type UpdateAutomationPoseData, type UpdateAutomationPoseError, type UpdateAutomationPoseErrors, type UpdateAutomationPoseResponse, type UpdateAutomationPoseResponses, type UpdateContentData, type UpdateContentDto, type UpdateContentError, type UpdateContentErrors, type UpdateContentResponse, type UpdateContentResponses, type UpdateReleaseIdDto, type UpdateWorkspaceData, type UpdateWorkspaceDto, type UpdateWorkspaceError, type UpdateWorkspaceErrors, type UpdateWorkspaceResponse, type UpdateWorkspaceResponses, type UploadDto, type UploadErrorDto, type UploadFileData, type UploadFileError, type UploadFileErrors, type UploadFileResponse, type UploadFileResponses, type UploadFromUrlData, type UploadFromUrlError, type UploadFromUrlErrors, type UploadFromUrlResponse, type UploadFromUrlResponses, type UploadMusicFileData, type UploadMusicFileError, type UploadMusicFileErrors, type UploadMusicFileResponse, type UploadMusicFileResponses, type UploadSessionDto, type UploadedMedia, type UpsertContentData, type UpsertContentDto, type UpsertContentError, type UpsertContentErrors, type UpsertContentResponse, type UpsertContentResponses, type UrlImportDto, type UrlImportErrorDto, type VerifyWebhookOptions, type VideoHistoryPageDto, type VideoIdentityDto, type ViewsPerDayDto, type ViewsPerDayItemDto, type WebhookCreatedDto, type WebhookDelivery, type WebhookDto, type WebhookEventDto, type WebhookEventListDto, type WebhookTestResultDto, type WebhooksIntegrationDto, type WorkspaceDeletedDto, type WorkspaceDto, type WorkspaceErrorDto, type WorkspaceRefDto, catchUpAutomationPose, changePostStatus, checkConnection, confirmUpload, createAutomationFlow, createContent, createContentFromLink, createPost, createUpload, createWebhook, createWorkspace, Nadia as default, deleteAutomationFlow, deleteAutomationPose, deleteChannel, deleteComment, deleteContent, deletePost, deletePostGroup, deleteWebhook, deleteWorkspace, findSlot, getAccountHistory, getAutomationFlow, getAutomationPose, getChannelAnalytics, getChannelSettings, getContent, getContentsPerformance, getConversation, getHookForms, getMusicTrack, getPost, getPostAnalytics, getPostAutomation, getPostingTimes, getSubscription, getUploadFromUrl, getVideoHistory, getViewsPerDay, getWebhook, hideComment, importMusic, linkContentPost, listAutomationFlowPoses, listAutomationFlows, listAutomationPoseRuns, listChannelAutomationPoses, listChannelMedia, listChannelStories, listChannels, listContents, listConversations, listGroups, listHookFamilies, listMediaComments, listMissingMedia, listMusic, listMusicPillars, listNotifications, listPosts, listVideoPerformance, listWebhookEvents, listWebhooks, listWorkspaces, moveContent, parseWebhook, pollAutomationPose, pollInbox, poseAutomationFlow, previewAutomationEmail, previewAutomationPoseCatchUp, removePostAutomation, replayAutomationPose, replyToComment, runChannelTool, searchHooks, sendAutomationTestEmail, sendDirectMessage, setAutomationFlowStatus, setContentWorkspaces, setMediaWorkspaces, setPostAutomation, setPostCover, setPostPublication, setPostReleaseId, setPostingTimes, startChannelConnection, subscribeInboxWebhook, testWebhook, updateAutomationFlow, updateAutomationPose, updateContent, updateWorkspace, uploadContentType, uploadFile, uploadFromUrl, uploadMusicFile, upsertContent, verifyWebhookSignature };