@usenadia/node 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -56,11 +56,24 @@ media.path; // what a post takes as image[].
56
56
  An MP4, JPEG, PNG, WebP or GIF goes in parts of 20 MB straight to the
57
57
  storage, four at a time: a part cut by the network is sent again, and so are
58
58
  the parts the server says are missing, before it confirms. Up to 500 MB.
59
- A server without the upload in parts, or another type (HEIC, MOV, which the
60
- server converts), gets the whole file in one request, as before. In one
61
- request the server takes an image up to 10 MB, a MOV up to 1 GB, and an MP4
62
- up to 25 MB only (`413 FILE_TOO_LARGE` beyond: a recent server takes it in
63
- parts).
59
+ A server without the upload in parts, or another image type (HEIC, which the
60
+ server converts to JPEG; AVIF…), gets the whole file in one request, as
61
+ before. In one request the server takes an image up to 10 MB and an MP4 up to
62
+ 25 MB only (`413 FILE_TOO_LARGE` beyond: a recent server takes it in parts).
63
+ A MOV or an M4V is converted on neither path: the server refuses it (`415`),
64
+ convert it to MP4 first (`ffmpeg -i in.mov -c copy -movflags +faststart out.mp4`).
65
+
66
+ A file already online goes in by its URL, downloaded by the server:
67
+
68
+ ```ts
69
+ const media = await nadia.uploadFromUrl('https://cdn.example.com/reel.mp4');
70
+ ```
71
+
72
+ A long import (not done within 25 seconds) is answered `202` by the server
73
+ and goes on there: `uploadFromUrl` reads it again every 3 seconds until it
74
+ ends (15 minutes at most, `importPoll` in the options), and resolves to the
75
+ media all the same. A failed import throws the `NadiaError` the server would
76
+ have answered at once.
64
77
 
65
78
  ## The content board
66
79
 
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
  /**
@@ -2037,6 +2068,10 @@ type ContentListItemDto = {
2037
2068
  * Set when the idea was set aside (PUT /contents/{id} with discarded true): out of the idea box, never deleted. Null while it is in the box.
2038
2069
  */
2039
2070
  discardedAt?: string | null;
2071
+ /**
2072
+ * The workspaces the card is tagged with (those your key reaches). Absent on an untagged card: it is your organisation's alone, a key limited to some workspaces does not see it.
2073
+ */
2074
+ workspaces?: Array<string>;
2040
2075
  };
2041
2076
  type CreateContentDto = {
2042
2077
  /**
@@ -2160,6 +2195,10 @@ type ContentDto = {
2160
2195
  * Set when the idea was set aside (PUT /contents/{id} with discarded true): out of the idea box, never deleted. Null while it is in the box.
2161
2196
  */
2162
2197
  discardedAt?: string | null;
2198
+ /**
2199
+ * The workspaces the card is tagged with (those your key reaches). Absent on an untagged card: it is your organisation's alone, a key limited to some workspaces does not see it.
2200
+ */
2201
+ workspaces?: Array<string>;
2163
2202
  };
2164
2203
  type UpsertContentDto = {
2165
2204
  /**
@@ -2793,6 +2832,55 @@ type WorkspaceErrorDto = {
2793
2832
  */
2794
2833
  quota?: number;
2795
2834
  };
2835
+ /**
2836
+ * Present only when it happened: media of the post that were not tagged with the workspace of its channel, tagged with it on the way. A media used on a channel carries the channel's workspace; the organization's key publishes any media anywhere, it is never refused.
2837
+ */
2838
+ type MediaTaggedDto = {
2839
+ /**
2840
+ * The workspace of the channel, the tag the media got.
2841
+ */
2842
+ workspaceId: string;
2843
+ /**
2844
+ * The media that got it.
2845
+ */
2846
+ mediaIds: Array<string>;
2847
+ /**
2848
+ * What happened, to tell the user.
2849
+ */
2850
+ message: string;
2851
+ };
2852
+ type SetMediaWorkspacesDto = {
2853
+ /**
2854
+ * Every workspace the media is tagged with after the call (`GET /public/v1/workspaces`); an empty list untags it.
2855
+ */
2856
+ workspaceIds: Array<string>;
2857
+ };
2858
+ type MediaWorkspacesDto = {
2859
+ /**
2860
+ * The media.
2861
+ */
2862
+ id: string;
2863
+ /**
2864
+ * The workspaces it is tagged with now.
2865
+ */
2866
+ workspaces: Array<string>;
2867
+ };
2868
+ type SetContentWorkspacesDto = {
2869
+ /**
2870
+ * Every workspace the card is tagged with after the call (`GET /public/v1/workspaces`); an empty list untags it.
2871
+ */
2872
+ workspaceIds: Array<string>;
2873
+ };
2874
+ type ContentWorkspacesDto = {
2875
+ /**
2876
+ * The card.
2877
+ */
2878
+ id: string;
2879
+ /**
2880
+ * The workspaces it is tagged with now.
2881
+ */
2882
+ workspaces: Array<string>;
2883
+ };
2796
2884
  type UploadFileData = {
2797
2885
  body: {
2798
2886
  file: Blob | File;
@@ -2818,6 +2906,10 @@ type UploadFileErrors = {
2818
2906
  * `FILE_TOO_LARGE`: an MP4 over 25 MB in one request. Send it in parts: `POST /public/v1/uploads`, then its confirm.
2819
2907
  */
2820
2908
  413: UploadErrorDto;
2909
+ /**
2910
+ * `UNSUPPORTED_CONTENT_TYPE`: a MOV or an M4V, refused as soon as its first bytes are read, whatever its size. Convert it to MP4 first (`ffmpeg -i in.mov -c copy -movflags +faststart out.mp4`), then send the MP4: here up to 25 MB, otherwise in parts (`POST /public/v1/uploads`).
2911
+ */
2912
+ 415: UploadErrorDto;
2821
2913
  };
2822
2914
  type UploadFileError = UploadFileErrors[keyof UploadFileErrors];
2823
2915
  type UploadFileResponses = {
@@ -2847,8 +2939,42 @@ type UploadFromUrlErrors = {
2847
2939
  type UploadFromUrlError = UploadFromUrlErrors[keyof UploadFromUrlErrors];
2848
2940
  type UploadFromUrlResponses = {
2849
2941
  201: MediaResponseDto;
2942
+ /**
2943
+ * Still downloading after 25 seconds: the import, to read again with `GET /public/v1/upload-from-url/{importId}`.
2944
+ */
2945
+ 202: UrlImportDto;
2850
2946
  };
2851
2947
  type UploadFromUrlResponse = UploadFromUrlResponses[keyof UploadFromUrlResponses];
2948
+ type GetUploadFromUrlData = {
2949
+ body?: never;
2950
+ path: {
2951
+ importId: string;
2952
+ };
2953
+ query?: never;
2954
+ url: '/public/v1/upload-from-url/{importId}';
2955
+ };
2956
+ type GetUploadFromUrlErrors = {
2957
+ /**
2958
+ * The request was rejected — `msg` says why.
2959
+ */
2960
+ 400: ApiErrorDto;
2961
+ /**
2962
+ * Missing or invalid API key (`Authorization` header).
2963
+ */
2964
+ 401: ApiErrorDto;
2965
+ /**
2966
+ * `IMPORT_NOT_FOUND`: no import with this id in your organization (or older than a day).
2967
+ */
2968
+ 404: ApiErrorDto;
2969
+ };
2970
+ type GetUploadFromUrlError = GetUploadFromUrlErrors[keyof GetUploadFromUrlErrors];
2971
+ type GetUploadFromUrlResponses = {
2972
+ /**
2973
+ * The import.
2974
+ */
2975
+ 200: UrlImportDto;
2976
+ };
2977
+ type GetUploadFromUrlResponse = GetUploadFromUrlResponses[keyof GetUploadFromUrlResponses];
2852
2978
  type CreateUploadData = {
2853
2979
  body: CreateUploadDto;
2854
2980
  path?: never;
@@ -2939,6 +3065,33 @@ type ConfirmUploadResponses = {
2939
3065
  201: ConfirmedUploadDto;
2940
3066
  };
2941
3067
  type ConfirmUploadResponse = ConfirmUploadResponses[keyof ConfirmUploadResponses];
3068
+ type SetMediaWorkspacesData = {
3069
+ body: SetMediaWorkspacesDto;
3070
+ path: {
3071
+ id: string;
3072
+ };
3073
+ query?: never;
3074
+ url: '/public/v1/media/{id}/workspaces';
3075
+ };
3076
+ type SetMediaWorkspacesErrors = {
3077
+ /**
3078
+ * `workspaceIds` is missing, or names a workspace that is not of your organisation.
3079
+ */
3080
+ 400: ApiErrorDto;
3081
+ /**
3082
+ * Missing or invalid API key (`Authorization` header), or no running subscription.
3083
+ */
3084
+ 401: ApiErrorDto;
3085
+ /**
3086
+ * No media of your organisation has this id.
3087
+ */
3088
+ 404: ApiErrorDto;
3089
+ };
3090
+ type SetMediaWorkspacesError = SetMediaWorkspacesErrors[keyof SetMediaWorkspacesErrors];
3091
+ type SetMediaWorkspacesResponses = {
3092
+ 200: MediaWorkspacesDto;
3093
+ };
3094
+ type SetMediaWorkspacesResponse = SetMediaWorkspacesResponses[keyof SetMediaWorkspacesResponses];
2942
3095
  type FindSlotData = {
2943
3096
  body?: never;
2944
3097
  path: {
@@ -4890,6 +5043,10 @@ type ListContentsData = {
4890
5043
  * The card with this external id.
4891
5044
  */
4892
5045
  externalId?: string;
5046
+ /**
5047
+ * Cards tagged with this workspace (`GET /public/v1/workspaces`).
5048
+ */
5049
+ workspace?: string;
4893
5050
  /**
4894
5051
  * Comma-separated fields to return, e.g. `id,title,stage` (the id always comes back). Omitted: every field, scripts included.
4895
5052
  */
@@ -5072,6 +5229,10 @@ type UpsertContentErrors = {
5072
5229
  * The card named in the path does not belong to your organisation.
5073
5230
  */
5074
5231
  404: ApiErrorDto;
5232
+ /**
5233
+ * A key limited to some workspaces sent the `externalId` of a card outside its workspaces.
5234
+ */
5235
+ 409: ApiErrorDto;
5075
5236
  };
5076
5237
  type UpsertContentError = UpsertContentErrors[keyof UpsertContentErrors];
5077
5238
  type UpsertContentResponses = {
@@ -5093,6 +5254,10 @@ type CreateContentFromLinkErrors = {
5093
5254
  * Missing or invalid API key (`Authorization` header).
5094
5255
  */
5095
5256
  401: ApiErrorDto;
5257
+ /**
5258
+ * A key limited to some workspaces sent a video that is already a card of your organisation outside its workspaces (a card is never copied).
5259
+ */
5260
+ 409: ApiErrorDto;
5096
5261
  /**
5097
5262
  * Over the budget of videos sent from a link (30 per hour per organisation by default).
5098
5263
  */
@@ -5168,6 +5333,33 @@ type LinkContentPostResponses = {
5168
5333
  200: OkDto;
5169
5334
  };
5170
5335
  type LinkContentPostResponse = LinkContentPostResponses[keyof LinkContentPostResponses];
5336
+ type SetContentWorkspacesData = {
5337
+ body: SetContentWorkspacesDto;
5338
+ path: {
5339
+ id: string;
5340
+ };
5341
+ query?: never;
5342
+ url: '/public/v1/contents/{id}/workspaces';
5343
+ };
5344
+ type SetContentWorkspacesErrors = {
5345
+ /**
5346
+ * `workspaceIds` is missing, or names a workspace that is not of your organisation.
5347
+ */
5348
+ 400: ApiErrorDto;
5349
+ /**
5350
+ * Missing or invalid API key (`Authorization` header), or no running subscription.
5351
+ */
5352
+ 401: ApiErrorDto;
5353
+ /**
5354
+ * No card of your organisation has this id.
5355
+ */
5356
+ 404: ApiErrorDto;
5357
+ };
5358
+ type SetContentWorkspacesError = SetContentWorkspacesErrors[keyof SetContentWorkspacesErrors];
5359
+ type SetContentWorkspacesResponses = {
5360
+ 200: ContentWorkspacesDto;
5361
+ };
5362
+ type SetContentWorkspacesResponse = SetContentWorkspacesResponses[keyof SetContentWorkspacesResponses];
5171
5363
  type SearchHooksData = {
5172
5364
  body?: never;
5173
5365
  path?: never;
@@ -5497,13 +5689,21 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
5497
5689
  /**
5498
5690
  * Upload a file and get a URL usable in a post
5499
5691
  *
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`).
5692
+ * The whole file in one request: an MP4 up to 25 MB, an image up to 10 MB (a HEIC or HEIF photo is converted to JPEG). A MOV or an M4V is refused (`415`): convert it to MP4 first. A larger MP4 goes in parts (`POST /public/v1/uploads`).
5501
5693
  */
5502
5694
  declare const uploadFile: <ThrowOnError extends boolean = false>(options: Options<UploadFileData, ThrowOnError>) => RequestResult<UploadFileResponses, UploadFileErrors, ThrowOnError>;
5503
5695
  /**
5504
5696
  * Import a file from a URL into your media library
5697
+ *
5698
+ * Download a public HTTPS file into your media library. When the import is done within 25 seconds, the answer is `201` and the media, as always. A longer import (a big video, a slow host) answers `202` with the import (`id`, `status: "running"`): it goes on without the connection, and `GET /public/v1/upload-from-url/{importId}` reads it again until `status` is `done` (the `media`) or `failed` (the `error` the call would have answered). The same URL sent again while it runs, or within ten minutes after it succeeded, answers the same import: one download, one media. The MCP tool `uploadFromUrlTool` waits for the end itself.
5505
5699
  */
5506
5700
  declare const uploadFromUrl: <ThrowOnError extends boolean = false>(options: Options<UploadFromUrlData, ThrowOnError>) => RequestResult<UploadFromUrlResponses, UploadFromUrlErrors, ThrowOnError>;
5701
+ /**
5702
+ * Read an import from a URL
5703
+ *
5704
+ * Read again an import from a URL answered `202` by `POST /public/v1/upload-from-url`: `running` (read again in a few seconds), `done` with its `media`, or `failed` with its `error` (`statusCode` and `msg`, the answer the call would have given: send the URL again to retry). An import is kept a day.
5705
+ */
5706
+ declare const getUploadFromUrl: <ThrowOnError extends boolean = false>(options: Options<GetUploadFromUrlData, ThrowOnError>) => RequestResult<GetUploadFromUrlResponses, GetUploadFromUrlErrors, ThrowOnError>;
5507
5707
  /**
5508
5708
  * Open an upload of a file from your disk
5509
5709
  *
@@ -5516,6 +5716,12 @@ declare const createUpload: <ThrowOnError extends boolean = false>(options: Opti
5516
5716
  * Finish an upload opened by `POST /public/v1/uploads`, once its bytes are sent: checks that the whole file arrived with the declared size, that the bytes are the declared type, and for a video that ffprobe can read it; then adds the file to the media library. When parts are missing, answers `409 UPLOAD_INCOMPLETE` with their numbers in `missingParts`: send those again, then confirm again. Safe to call again: a confirmed upload answers the same media. The same as the MCP tool `confirmUpload`.
5517
5717
  */
5518
5718
  declare const confirmUpload: <ThrowOnError extends boolean = false>(options: Options<ConfirmUploadData, ThrowOnError>) => RequestResult<ConfirmUploadResponses, ConfirmUploadErrors, ThrowOnError>;
5719
+ /**
5720
+ * Tag a media with workspaces
5721
+ *
5722
+ * The whole set of workspaces a media of your library is tagged with (its id comes back from an upload). A media is never copied: when it serves two workspaces, it carries both tags. An untagged media is the organization's alone: the organization's key and the app see it, a key limited to some workspaces does not. A limited key only adds or takes off its own workspaces; the media's other tags stay. Publishing a media on a channel of another workspace tags it on the way (`mediaTagged` in the answer of `POST /public/v1/posts`).
5723
+ */
5724
+ declare const setMediaWorkspaces: <ThrowOnError extends boolean = false>(options: Options<SetMediaWorkspacesData, ThrowOnError>) => RequestResult<SetMediaWorkspacesResponses, SetMediaWorkspacesErrors, ThrowOnError>;
5519
5725
  /**
5520
5726
  * Next free slot in the channel's schedule
5521
5727
  */
@@ -5821,11 +6027,13 @@ declare const testWebhook: <ThrowOnError extends boolean = false>(options: Optio
5821
6027
  /**
5822
6028
  * List the cards of the board
5823
6029
  *
5824
- * Filters combine. With `fields`, each card carries only the fields asked for (plus its id).
6030
+ * Filters combine. With `fields`, each card carries only the fields asked for (plus its id). A key limited to some workspaces lists the cards tagged with one of them and tied to no channel or post of another workspace.
5825
6031
  */
5826
6032
  declare const listContents: <ThrowOnError extends boolean = false>(options?: Options<ListContentsData, ThrowOnError>) => RequestResult<ListContentsResponses, ListContentsErrors, ThrowOnError>;
5827
6033
  /**
5828
6034
  * Create a card
6035
+ *
6036
+ * A card created by a key limited to some workspaces is tagged with them; by the organisation's key, it is not tagged.
5829
6037
  */
5830
6038
  declare const createContent: <ThrowOnError extends boolean = false>(options: Options<CreateContentData, ThrowOnError>) => RequestResult<CreateContentResponses, CreateContentErrors, ThrowOnError>;
5831
6039
  /**
@@ -5834,6 +6042,8 @@ declare const createContent: <ThrowOnError extends boolean = false>(options: Opt
5834
6042
  declare const getContentsPerformance: <ThrowOnError extends boolean = false>(options?: Options<GetContentsPerformanceData, ThrowOnError>) => RequestResult<GetContentsPerformanceResponses, GetContentsPerformanceErrors, ThrowOnError>;
5835
6043
  /**
5836
6044
  * Delete a card
6045
+ *
6046
+ * A key limited to some workspaces deleting a card that also carries other workspaces only takes its own workspaces off: the card stays for the others and comes back without `deletedAt`.
5837
6047
  */
5838
6048
  declare const deleteContent: <ThrowOnError extends boolean = false>(options: Options<DeleteContentData, ThrowOnError>) => RequestResult<DeleteContentResponses, DeleteContentErrors, ThrowOnError>;
5839
6049
  /**
@@ -5866,6 +6076,12 @@ declare const moveContent: <ThrowOnError extends boolean = false>(options: Optio
5866
6076
  * Pass the `group` of a post created with POST /public/v1/posts. A card holds several posts (e.g. a TikTok draft and an Instagram post): each call adds one. A card behind "To schedule" jumps there; it moves to PUBLISHED when the first of its posts goes live.
5867
6077
  */
5868
6078
  declare const linkContentPost: <ThrowOnError extends boolean = false>(options: Options<LinkContentPostData, ThrowOnError>) => RequestResult<LinkContentPostResponses, LinkContentPostErrors, ThrowOnError>;
6079
+ /**
6080
+ * Tag a card with workspaces
6081
+ *
6082
+ * The whole set of workspaces a card of the idea box is tagged with. A card is never copied: when it serves two workspaces, it carries both tags. An untagged card is the organization's alone: the organization's key and the app see it, a key limited to some workspaces does not. A limited key only adds or takes off its own workspaces; the card's other tags stay. A card created by a limited key is tagged with its workspaces.
6083
+ */
6084
+ declare const setContentWorkspaces: <ThrowOnError extends boolean = false>(options: Options<SetContentWorkspacesData, ThrowOnError>) => RequestResult<SetContentWorkspacesResponses, SetContentWorkspacesErrors, ThrowOnError>;
5869
6085
  /**
5870
6086
  * Search real hooks that worked
5871
6087
  *
@@ -5941,6 +6157,15 @@ interface NadiaOptions {
5941
6157
  retries?: number;
5942
6158
  /** Swap in a custom fetch (tests, proxies, instrumentation). */
5943
6159
  fetch?: typeof fetch;
6160
+ /**
6161
+ * How {@link Nadia.uploadFromUrl} reads a long import again: every
6162
+ * `intervalMs` (default 3000), for `timeoutMs` at most (default 15 min:
6163
+ * the server gives a download 10 minutes).
6164
+ */
6165
+ importPoll?: {
6166
+ intervalMs?: number;
6167
+ timeoutMs?: number;
6168
+ };
5944
6169
  }
5945
6170
  /** Shape every generated operation resolves to. */
5946
6171
  type GeneratedResult<T> = {
@@ -5977,6 +6202,7 @@ declare class Nadia {
5977
6202
  private readonly retries;
5978
6203
  /** For the bytes of an upload, which go to the upload host, not the API. */
5979
6204
  private readonly fetchImpl;
6205
+ private readonly importPoll;
5980
6206
  constructor(apiKey: string, options?: string | NadiaOptions);
5981
6207
  /**
5982
6208
  * Runs a generated operation, turns a non-2xx into a `NadiaError`, and
@@ -5998,14 +6224,32 @@ declare class Nadia {
5998
6224
  * says are missing sent again before confirming once more. A server that
5999
6225
  * does not take parts answers a single PUT, which is done instead; a
6000
6226
  * 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.
6227
+ * and any other type (HEIC… which the server converts to JPEG) go through
6228
+ * `POST /public/v1/upload`, the whole file in one request, as before. A
6229
+ * MOV or an M4V is refused there (`415`): convert it to MP4 first.
6003
6230
  *
6004
6231
  * Resolves to the media: `id` and `path` always (what a post takes),
6005
6232
  * plus `size`, `duration`, `width`, `height`, `codec` when it went in
6006
6233
  * parts or in a single PUT.
6007
6234
  */
6008
6235
  upload(file: string | Blob | File, filename?: string): Promise<UploadedMedia>;
6236
+ /**
6237
+ * Import a file from a public HTTPS URL into the media library
6238
+ * (`POST /public/v1/upload-from-url`): the path of the URL ends in `.png`,
6239
+ * `.jpg`, `.jpeg`, `.gif`, `.webp` or `.mp4`.
6240
+ *
6241
+ * A long import (not done within 25 s) is answered `202` by the server and
6242
+ * goes on there; it is read again here (`GET
6243
+ * /public/v1/upload-from-url/{importId}`) until it ends. Resolves to the
6244
+ * media either way; a failed import throws the `NadiaError` the server
6245
+ * would have answered at once (its status and `msg`).
6246
+ */
6247
+ uploadFromUrl(url: string): Promise<UploadedMedia>;
6248
+ /**
6249
+ * The end of an import from a URL: the media at once (`201`), or an import
6250
+ * (`202`) read again every few seconds until it is done or failed.
6251
+ */
6252
+ private importEnd;
6009
6253
  /** The whole file in one multipart request: `POST /public/v1/upload`. */
6010
6254
  private uploadWhole;
6011
6255
  /** Each part to `<uploadUrl>/<n>`, a few at a time, each retried. */
@@ -6138,4 +6382,4 @@ declare function parseWebhook<T = unknown>(options: {
6138
6382
  now?: number;
6139
6383
  }): WebhookDelivery<T>;
6140
6384
 
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 };
6385
+ export { type AccountHistoryItemDto, type AnalyticsMetricDto, type AnalyticsPointDto, type ApiErrorDto, type AutomationFlowCatchUpCommentDto, type AutomationFlowCatchUpPreviewDto, type AutomationFlowCatchUpResultDto, type AutomationFlowCountsDto, type AutomationFlowDto, type AutomationFlowIssueDto, type AutomationFlowPollResultDto, type AutomationFlowPoseResponseDto, type AutomationFlowReplayResultDto, type AutomationFlowResponseDto, type AutomationFlowRunResponseDto, type AutomationFlowStatusDto, type AutomationPoseCountsDto, type AutomationPoseFlowDto, type AutomationPoseMediaDto, type AutomationPoseWaitingAtDto, type CatchUpAutomationPoseData, type CatchUpAutomationPoseError, type CatchUpAutomationPoseErrors, type CatchUpAutomationPoseResponse, type CatchUpAutomationPoseResponses, type ChangePostStatusData, type ChangePostStatusDto, type ChangePostStatusError, type ChangePostStatusErrors, type ChangePostStatusResponse, type ChangePostStatusResponses, type CheckConnectionData, type CheckConnectionError, type CheckConnectionErrors, type CheckConnectionResponse, type CheckConnectionResponses, type ClientOptions, type CommentReplyResultDto, type ConfirmUploadData, type ConfirmUploadError, type ConfirmUploadErrors, type ConfirmUploadResponse, type ConfirmUploadResponses, type ConfirmedUploadDto, type ContentChannelPerformanceDto, type ContentDto, type ContentFromLinkDto, type ContentListItemDto, type ContentPerformanceDto, type ContentPostDto, type ContentSourceDto, type ContentSourceTranscriptDto, type ContentSourceTranscriptSegmentDto, type ContentStage, type ContentUpsertDto, type ContentWorkspacesDto, type CreateAutomationFlowData, type CreateAutomationFlowError, type CreateAutomationFlowErrors, type CreateAutomationFlowResponse, type CreateAutomationFlowResponses, type CreateContentData, type CreateContentDto, type CreateContentError, type CreateContentErrors, type CreateContentFromLinkData, type CreateContentFromLinkDto, type CreateContentFromLinkError, type CreateContentFromLinkErrors, type CreateContentFromLinkResponse, type CreateContentFromLinkResponses, type CreateContentResponse, type CreateContentResponses, type CreatePostBody, type CreatePostData, type CreatePostError, type CreatePostErrors, type CreatePostResponse, type CreatePostResponses, type CreatePostResultItemDto, type CreatePublicWebhookDto, type CreateUploadData, type CreateUploadDto, type CreateUploadError, type CreateUploadErrors, type CreateUploadResponse, type CreateUploadResponses, type CreateWebhookData, type CreateWebhookError, type CreateWebhookErrors, type CreateWebhookResponse, type CreateWebhookResponses, type CreateWorkspaceData, type CreateWorkspaceDto, type CreateWorkspaceError, type CreateWorkspaceErrors, type CreateWorkspaceResponse, type CreateWorkspaceResponses, DEFAULT_BASE_URL, type DeleteAutomationFlowData, type DeleteAutomationFlowError, type DeleteAutomationFlowErrors, type DeleteAutomationFlowResponse, type DeleteAutomationFlowResponses, type DeleteAutomationPoseData, type DeleteAutomationPoseError, type DeleteAutomationPoseErrors, type DeleteAutomationPoseResponse, type DeleteAutomationPoseResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteCommentData, type DeleteCommentError, type DeleteCommentErrors, type DeleteCommentResponse, type DeleteCommentResponses, type DeleteContentData, type DeleteContentError, type DeleteContentErrors, type DeleteContentResponse, type DeleteContentResponses, type DeletePostData, type DeletePostError, type DeletePostErrors, type DeletePostGroupData, type DeletePostGroupError, type DeletePostGroupErrors, type DeletePostGroupResponse, type DeletePostGroupResponses, type DeletePostResponse, type DeletePostResponses, type DeleteWebhookData, type DeleteWebhookError, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type DeleteWorkspaceData, type DeleteWorkspaceError, type DeleteWorkspaceErrors, type DeleteWorkspaceResponse, type DeleteWorkspaceResponses, type DeletedIdDto, type DirectMessageResultDto, type EmailPreviewDto, type EmailPreviewDtoResponse, type EmailSentDto, type EmailTestDto, type FindSlotData, type FindSlotDto, type FindSlotError, type FindSlotErrors, type FindSlotResponse, type FindSlotResponses, type GetAccountHistoryData, type GetAccountHistoryError, type GetAccountHistoryErrors, type GetAccountHistoryResponse, type GetAccountHistoryResponses, type GetAutomationFlowData, type GetAutomationFlowError, type GetAutomationFlowErrors, type GetAutomationFlowResponse, type GetAutomationFlowResponses, type GetAutomationPoseData, type GetAutomationPoseError, type GetAutomationPoseErrors, type GetAutomationPoseResponse, type GetAutomationPoseResponses, type GetChannelAnalyticsData, type GetChannelAnalyticsError, type GetChannelAnalyticsErrors, type GetChannelAnalyticsResponse, type GetChannelAnalyticsResponses, type GetChannelSettingsData, type GetChannelSettingsError, type GetChannelSettingsErrors, type GetChannelSettingsResponse, type GetChannelSettingsResponses, type GetContentData, type GetContentError, type GetContentErrors, type GetContentResponse, type GetContentResponses, type GetContentsPerformanceData, type GetContentsPerformanceError, type GetContentsPerformanceErrors, type GetContentsPerformanceResponse, type GetContentsPerformanceResponses, type GetConversationData, type GetConversationError, type GetConversationErrors, type GetConversationResponse, type GetConversationResponses, type GetHookFormsData, type GetHookFormsError, type GetHookFormsErrors, type GetHookFormsResponse, type GetHookFormsResponses, type GetMusicTrackData, type GetMusicTrackError, type GetMusicTrackErrors, type GetMusicTrackResponse, type GetMusicTrackResponses, type GetPostAnalyticsData, type GetPostAnalyticsError, type GetPostAnalyticsErrors, type GetPostAnalyticsResponse, type GetPostAnalyticsResponses, type GetPostAutomationData, type GetPostAutomationError, type GetPostAutomationErrors, type GetPostAutomationResponse, type GetPostAutomationResponses, type GetPostData, type GetPostError, type GetPostErrors, type GetPostResponse, type GetPostResponses, type GetPostingTimesData, type GetPostingTimesError, type GetPostingTimesErrors, type GetPostingTimesResponse, type GetPostingTimesResponses, type GetSubscriptionData, type GetSubscriptionError, type GetSubscriptionErrors, type GetSubscriptionResponse, type GetSubscriptionResponses, type GetUploadFromUrlData, type GetUploadFromUrlError, type GetUploadFromUrlErrors, type GetUploadFromUrlResponse, type GetUploadFromUrlResponses, type GetVideoHistoryData, type GetVideoHistoryError, type GetVideoHistoryErrors, type GetVideoHistoryResponse, type GetVideoHistoryResponses, type GetViewsPerDayData, type GetViewsPerDayError, type GetViewsPerDayErrors, type GetViewsPerDayResponse, type GetViewsPerDayResponses, type GetWebhookData, type GetWebhookError, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type GroupDto, type HideCommentData, type HideCommentDto, type HideCommentError, type HideCommentErrors, type HideCommentResponse, type HideCommentResponses, type HistoryPageDto, type HookDto, type HookFamilyDto, type HookFormDto, type HooksSearchResultDto, type ImportMusicData, type ImportMusicError, type ImportMusicErrors, type ImportMusicResponse, type ImportMusicResponses, type InboxConversationDto, type InboxPollResultDto, type InboxTagDto, type InboxThreadDto, type InstagramCommentAuthorDto, type InstagramCommentDto, type InstagramMediaDto, type Integration, type IntegrationListItemDto, type IntegrationSettingsDto, type IntegrationSettingsOutputDto, type IntegrationToolDto, type IntegrationToolParamDto, type IntegrationTriggerDto, type IntegrationTriggerResultDto, type IntegrationValidateTimeDto, type IsConnectedDto, type LinkContentPostData, type LinkContentPostDto, type LinkContentPostError, type LinkContentPostErrors, type LinkContentPostResponse, type LinkContentPostResponses, type ListAutomationFlowPosesData, type ListAutomationFlowPosesError, type ListAutomationFlowPosesErrors, type ListAutomationFlowPosesResponse, type ListAutomationFlowPosesResponses, type ListAutomationFlowsData, type ListAutomationFlowsError, type ListAutomationFlowsErrors, type ListAutomationFlowsResponse, type ListAutomationFlowsResponses, type ListAutomationPoseRunsData, type ListAutomationPoseRunsError, type ListAutomationPoseRunsErrors, type ListAutomationPoseRunsResponse, type ListAutomationPoseRunsResponses, type ListChannelAutomationPosesData, type ListChannelAutomationPosesError, type ListChannelAutomationPosesErrors, type ListChannelAutomationPosesResponse, type ListChannelAutomationPosesResponses, type ListChannelMediaData, type ListChannelMediaError, type ListChannelMediaErrors, type ListChannelMediaResponse, type ListChannelMediaResponses, type ListChannelStoriesData, type ListChannelStoriesError, type ListChannelStoriesErrors, type ListChannelStoriesResponse, type ListChannelStoriesResponses, type ListChannelsData, type ListChannelsError, type ListChannelsErrors, type ListChannelsResponse, type ListChannelsResponses, type ListContentsData, type ListContentsError, type ListContentsErrors, type ListContentsResponse, type ListContentsResponses, type ListConversationsData, type ListConversationsError, type ListConversationsErrors, type ListConversationsResponse, type ListConversationsResponses, type ListGroupsData, type ListGroupsError, type ListGroupsErrors, type ListGroupsResponse, type ListGroupsResponses, type ListHookFamiliesData, type ListHookFamiliesError, type ListHookFamiliesErrors, type ListHookFamiliesResponse, type ListHookFamiliesResponses, type ListMediaCommentsData, type ListMediaCommentsError, type ListMediaCommentsErrors, type ListMediaCommentsResponse, type ListMediaCommentsResponses, type ListMissingMediaData, type ListMissingMediaError, type ListMissingMediaErrors, type ListMissingMediaResponse, type ListMissingMediaResponses, type ListMusicData, type ListMusicError, type ListMusicErrors, type ListMusicPillarsData, type ListMusicPillarsError, type ListMusicPillarsErrors, type ListMusicPillarsResponse, type ListMusicPillarsResponses, type ListMusicResponse, type ListMusicResponses, type ListNotificationsData, type ListNotificationsError, type ListNotificationsErrors, type ListNotificationsResponse, type ListNotificationsResponses, type ListPostsData, type ListPostsError, type ListPostsErrors, type ListPostsResponse, type ListPostsResponses, type ListVideoPerformanceData, type ListVideoPerformanceError, type ListVideoPerformanceErrors, type ListVideoPerformanceResponse, type ListVideoPerformanceResponses, type ListWebhookEventsData, type ListWebhookEventsError, type ListWebhookEventsErrors, type ListWebhookEventsResponse, type ListWebhookEventsResponses, type ListWebhooksData, type ListWebhooksError, type ListWebhooksErrors, type ListWebhooksResponse, type ListWebhooksResponses, type ListWorkspacesData, type ListWorkspacesError, type ListWorkspacesErrors, type ListWorkspacesResponse, type ListWorkspacesResponses, type MediaDto, type MediaResponseDto, type MediaTaggedDto, type MediaWorkspacesDto, type MissingContentItemDto, type MoveContentData, type MoveContentDto, type MoveContentError, type MoveContentErrors, type MoveContentResponse, type MoveContentResponses, type MusicImportDto, type MusicImportItemDto, type MusicImportResultDto, type MusicListResultDto, type MusicPillarDto, type MusicTrackDto, Nadia, NadiaError, type NadiaOptions, NadiaWebhookError, type NotificationDto, type NotificationsPageDto, type OkDto, type Options, type PollAutomationPoseData, type PollAutomationPoseError, type PollAutomationPoseErrors, type PollAutomationPoseResponse, type PollAutomationPoseResponses, type PollInboxData, type PollInboxError, type PollInboxErrors, type PollInboxResponse, type PollInboxResponses, type PoseAutomationFlowData, type PoseAutomationFlowDto, type PoseAutomationFlowError, type PoseAutomationFlowErrors, type PoseAutomationFlowResponse, type PoseAutomationFlowResponses, type Post, type PostAutomationDto, type PostAutomationResponseDto, type PostContent, type PostDetailDto, type PostDto, type PostIntegrationSummaryDto, type PostLinkClicksDto, type PostLinkClicksSourceDto, type PostListDto, type PostMediaDto, type PostPublicationDto, type PostStatusDto, type PostTagDto, type PostingTimeItemDto, type PostingTimesDto, type PostingTimesResultDto, type PreviewAutomationEmailData, type PreviewAutomationEmailError, type PreviewAutomationEmailErrors, type PreviewAutomationEmailResponse, type PreviewAutomationEmailResponses, type PreviewAutomationPoseCatchUpData, type PreviewAutomationPoseCatchUpError, type PreviewAutomationPoseCatchUpErrors, type PreviewAutomationPoseCatchUpResponse, type PreviewAutomationPoseCatchUpResponses, type PublicCreatePostDto, type RemovePostAutomationData, type RemovePostAutomationError, type RemovePostAutomationErrors, type RemovePostAutomationResponse, type RemovePostAutomationResponses, type ReplayAutomationPoseData, type ReplayAutomationPoseError, type ReplayAutomationPoseErrors, type ReplayAutomationPoseResponse, type ReplayAutomationPoseResponses, type ReplayPoseDto, type ReplyToCommentData, type ReplyToCommentDto, type ReplyToCommentError, type ReplyToCommentErrors, type ReplyToCommentResponse, type ReplyToCommentResponses, type RunChannelToolData, type RunChannelToolError, type RunChannelToolErrors, type RunChannelToolResponse, type RunChannelToolResponses, type SearchHooksData, type SearchHooksError, type SearchHooksErrors, type SearchHooksResponse, type SearchHooksResponses, type SendAutomationTestEmailData, type SendAutomationTestEmailError, type SendAutomationTestEmailErrors, type SendAutomationTestEmailResponse, type SendAutomationTestEmailResponses, type SendDirectMessageData, type SendDirectMessageError, type SendDirectMessageErrors, type SendDirectMessageResponse, type SendDirectMessageResponses, type SendMessageDto, type SetAutomationFlowStatusData, type SetAutomationFlowStatusError, type SetAutomationFlowStatusErrors, type SetAutomationFlowStatusResponse, type SetAutomationFlowStatusResponses, type SetContentWorkspacesData, type SetContentWorkspacesDto, type SetContentWorkspacesError, type SetContentWorkspacesErrors, type SetContentWorkspacesResponse, type SetContentWorkspacesResponses, type SetMediaWorkspacesData, type SetMediaWorkspacesDto, type SetMediaWorkspacesError, type SetMediaWorkspacesErrors, type SetMediaWorkspacesResponse, type SetMediaWorkspacesResponses, type SetPostAutomationData, type SetPostAutomationError, type SetPostAutomationErrors, type SetPostAutomationResponse, type SetPostAutomationResponses, type SetPostCoverData, type SetPostCoverDto, type SetPostCoverError, type SetPostCoverErrors, type SetPostCoverResponse, type SetPostCoverResponses, type SetPostPublicationData, type SetPostPublicationDto, type SetPostPublicationError, type SetPostPublicationErrors, type SetPostPublicationResponse, type SetPostPublicationResponses, type SetPostReleaseIdData, type SetPostReleaseIdError, type SetPostReleaseIdErrors, type SetPostReleaseIdResponse, type SetPostReleaseIdResponses, type SetPostingTimesData, type SetPostingTimesError, type SetPostingTimesErrors, type SetPostingTimesResponse, type SetPostingTimesResponses, type SocialAuthUrlDto, type StartChannelConnectionData, type StartChannelConnectionError, type StartChannelConnectionErrors, type StartChannelConnectionResponse, type StartChannelConnectionResponses, type SubscribeInboxWebhookData, type SubscribeInboxWebhookError, type SubscribeInboxWebhookErrors, type SubscribeInboxWebhookResponse, type SubscribeInboxWebhookResponses, type SubscriptionDto, type SuccessDto, type Tags, type TestWebhookData, type TestWebhookDto, type TestWebhookError, type TestWebhookErrors, type TestWebhookResponse, type TestWebhookResponses, type UpdateAutomationFlowData, type UpdateAutomationFlowDto, type UpdateAutomationFlowError, type UpdateAutomationFlowErrors, type UpdateAutomationFlowPoseDto, type UpdateAutomationFlowResponse, type UpdateAutomationFlowResponses, type UpdateAutomationPoseData, type UpdateAutomationPoseError, type UpdateAutomationPoseErrors, type UpdateAutomationPoseResponse, type UpdateAutomationPoseResponses, type UpdateContentData, type UpdateContentDto, type UpdateContentError, type UpdateContentErrors, type UpdateContentResponse, type UpdateContentResponses, type UpdateReleaseIdDto, type UpdateWorkspaceData, type UpdateWorkspaceDto, type UpdateWorkspaceError, type UpdateWorkspaceErrors, type UpdateWorkspaceResponse, type UpdateWorkspaceResponses, type UploadDto, type UploadErrorDto, type UploadFileData, type UploadFileError, type UploadFileErrors, type UploadFileResponse, type UploadFileResponses, type UploadFromUrlData, type UploadFromUrlError, type UploadFromUrlErrors, type UploadFromUrlResponse, type UploadFromUrlResponses, type UploadMusicFileData, type UploadMusicFileError, type UploadMusicFileErrors, type UploadMusicFileResponse, type UploadMusicFileResponses, type UploadSessionDto, type UploadedMedia, type UpsertContentData, type UpsertContentDto, type UpsertContentError, type UpsertContentErrors, type UpsertContentResponse, type UpsertContentResponses, type UrlImportDto, type UrlImportErrorDto, type VerifyWebhookOptions, type VideoHistoryPageDto, type VideoIdentityDto, type ViewsPerDayDto, type ViewsPerDayItemDto, type WebhookCreatedDto, type WebhookDelivery, type WebhookDto, type WebhookEventDto, type WebhookEventListDto, type WebhookTestResultDto, type WebhooksIntegrationDto, type WorkspaceDeletedDto, type WorkspaceDto, type WorkspaceErrorDto, type WorkspaceRefDto, catchUpAutomationPose, changePostStatus, checkConnection, confirmUpload, createAutomationFlow, createContent, createContentFromLink, createPost, createUpload, createWebhook, createWorkspace, Nadia as default, deleteAutomationFlow, deleteAutomationPose, deleteChannel, deleteComment, deleteContent, deletePost, deletePostGroup, deleteWebhook, deleteWorkspace, findSlot, getAccountHistory, getAutomationFlow, getAutomationPose, getChannelAnalytics, getChannelSettings, getContent, getContentsPerformance, getConversation, getHookForms, getMusicTrack, getPost, getPostAnalytics, getPostAutomation, getPostingTimes, getSubscription, getUploadFromUrl, getVideoHistory, getViewsPerDay, getWebhook, hideComment, importMusic, linkContentPost, listAutomationFlowPoses, listAutomationFlows, listAutomationPoseRuns, listChannelAutomationPoses, listChannelMedia, listChannelStories, listChannels, listContents, listConversations, listGroups, listHookFamilies, listMediaComments, listMissingMedia, listMusic, listMusicPillars, listNotifications, listPosts, listVideoPerformance, listWebhookEvents, listWebhooks, listWorkspaces, moveContent, parseWebhook, pollAutomationPose, pollInbox, poseAutomationFlow, previewAutomationEmail, previewAutomationPoseCatchUp, removePostAutomation, replayAutomationPose, replyToComment, runChannelTool, searchHooks, sendAutomationTestEmail, sendDirectMessage, setAutomationFlowStatus, setContentWorkspaces, setMediaWorkspaces, setPostAutomation, setPostCover, setPostPublication, setPostReleaseId, setPostingTimes, startChannelConnection, subscribeInboxWebhook, testWebhook, updateAutomationFlow, updateAutomationPose, updateContent, updateWorkspace, uploadContentType, uploadFile, uploadFromUrl, uploadMusicFile, upsertContent, verifyWebhookSignature };