@postrun/js 4.0.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-VCOKMHAJ.js → chunk-C4MYARB5.js} +569 -25
- package/dist/chunk-C4MYARB5.js.map +1 -0
- package/dist/{chunk-YP26OO5J.js → chunk-HY5QFRKO.js} +30 -4
- package/dist/chunk-HY5QFRKO.js.map +1 -0
- package/dist/index.cjs +817 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +89 -7
- package/dist/index.d.ts +89 -7
- package/dist/index.js +223 -7
- package/dist/index.js.map +1 -1
- package/dist/query.cjs +56 -0
- package/dist/query.cjs.map +1 -1
- package/dist/query.d.cts +1266 -187
- package/dist/query.d.ts +1266 -187
- package/dist/query.js +53 -1
- package/dist/query.js.map +1 -1
- package/dist/schemas/index.cjs +585 -22
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +9164 -4769
- package/dist/schemas/index.d.ts +9164 -4769
- package/dist/schemas/index.js +1 -1
- package/dist/server.cjs +564 -22
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +2 -2
- package/dist/{types.gen-DjaUEnXO.d.cts → types.gen-Ca6kUFtq.d.cts} +1079 -50
- package/dist/{types.gen-DjaUEnXO.d.ts → types.gen-Ca6kUFtq.d.ts} +1079 -50
- package/package.json +1 -1
- package/dist/chunk-VCOKMHAJ.js.map +0 -1
- package/dist/chunk-YP26OO5J.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TDataShape, O as Options$1, C as Client, a as ClientMeta, b as ConnectionsConnectData, R as RequestResult, c as ConnectionsConnectResponses, d as ConnectionsConnectErrors, e as ConnectionsDeleteData, f as ConnectionsDeleteResponses, g as ConnectionsDeleteErrors, h as ConnectionsGetData, i as ConnectionsGetResponses, j as ConnectionsGetErrors, k as
|
|
2
|
-
export {
|
|
1
|
+
import { T as TDataShape, O as Options$1, C as Client, a as ClientMeta, b as ConnectionsConnectData, R as RequestResult, c as ConnectionsConnectResponses, d as ConnectionsConnectErrors, e as ConnectionsDeleteData, f as ConnectionsDeleteResponses, g as ConnectionsDeleteErrors, h as ConnectionsGetData, i as ConnectionsGetResponses, j as ConnectionsGetErrors, k as ConnectionsGetAnalyticsData, l as ConnectionsGetAnalyticsResponses, m as ConnectionsGetAnalyticsErrors, n as ConnectionsListAccountsData, o as ConnectionsListAccountsResponses, p as ConnectionsListAccountsErrors, q as ConnectionsListByProfileData, r as ConnectionsListByProfileResponses, s as ConnectionsListByProfileErrors, t as ConnectionsSelectData, u as ConnectionsSelectResponses, v as ConnectionsSelectErrors, L as LogsGetData, w as LogsGetResponses, x as LogsGetErrors, y as LogsListData, z as LogsListResponses, A as LogsListErrors, M as MediaAbortData, B as MediaAbortResponses, D as MediaAbortErrors, E as MediaCompleteData, F as MediaCompleteResponses, G as MediaCompleteErrors, H as MediaCreateData, I as MediaCreateResponses, J as MediaCreateErrors, K as MediaDeleteData, N as MediaDeleteResponses, P as MediaDeleteErrors, Q as MediaGetData, S as MediaGetResponses, U as MediaGetErrors, V as MediaListData, W as MediaListResponses, X as MediaListErrors, Y as MediaListPartsData, Z as MediaListPartsResponses, _ as MediaListPartsErrors, $ as MediaSignPartData, a0 as MediaSignPartResponses, a1 as MediaSignPartErrors, a2 as MediaUpdateData, a3 as MediaUpdateResponses, a4 as MediaUpdateErrors, a5 as PostsCreateData, a6 as PostsCreateResponses, a7 as PostsCreateErrors, a8 as PostsDeleteData, a9 as PostsDeleteResponses, aa as PostsDeleteErrors, ab as PostsGetData, ac as PostsGetResponses, ad as PostsGetErrors, ae as PostsGetAnalyticsData, af as PostsGetAnalyticsResponses, ag as PostsGetAnalyticsErrors, ah as PostsListData, ai as PostsListResponses, aj as PostsListErrors, ak as PostsRetryData, al as PostsRetryResponses, am as PostsRetryErrors, an as PostsUpdateData, ao as PostsUpdateResponses, ap as PostsUpdateErrors, aq as PostsValidateData, ar as PostsValidateResponses, as as PostsValidateErrors, at as ProfilesCreateData, au as ProfilesCreateResponses, av as ProfilesCreateErrors, aw as ProfilesDeleteData, ax as ProfilesDeleteResponses, ay as ProfilesDeleteErrors, az as ProfilesGetData, aA as ProfilesGetResponses, aB as ProfilesGetErrors, aC as ProfilesListData, aD as ProfilesListResponses, aE as ProfilesListErrors, aF as ProfilesUpdateData, aG as ProfilesUpdateResponses, aH as ProfilesUpdateErrors, aI as TiktokCreatorInfoData, aJ as TiktokCreatorInfoResponses, aK as TiktokCreatorInfoErrors, aL as TokensMintData, aM as TokensMintResponses, aN as TokensMintErrors, aO as WebhooksCreateEndpointData, aP as WebhooksCreateEndpointResponses, aQ as WebhooksCreateEndpointErrors, aR as WebhooksCreatePortalData, aS as WebhooksCreatePortalResponses, aT as WebhooksCreatePortalErrors, aU as WebhooksDeleteEndpointData, aV as WebhooksDeleteEndpointResponses, aW as WebhooksDeleteEndpointErrors, aX as WebhooksGetEndpointData, aY as WebhooksGetEndpointResponses, aZ as WebhooksGetEndpointErrors, a_ as WebhooksListEndpointsData, a$ as WebhooksListEndpointsResponses, b0 as WebhooksListEndpointsErrors, b1 as WebhooksListEventTypesData, b2 as WebhooksListEventTypesResponses, b3 as WebhooksListEventTypesErrors, b4 as WebhooksPingData, b5 as WebhooksPingResponses, b6 as WebhooksPingErrors, b7 as WebhooksUpdateEndpointData, b8 as WebhooksUpdateEndpointResponses, b9 as WebhooksUpdateEndpointErrors, ba as ErrorCode, bb as TiktokCreatorInfoResponse, bc as MediaGetResponse, bd as ConnectionsConnectResponse, be as ConnectionsGetResponse, bf as ConnectionsListByProfileResponse, bg as MediaCreateResponse, bh as ConnectionsListAccountsResponse, bi as MediaListResponse, bj as PostsGetResponse, bk as PostsListResponse, bl as PostsValidateResponse, bm as ProfilesGetResponse, bn as ProfilesListResponse, bo as PostrunClient, bp as AccountMetrics, bq as PostVariantStatus, br as PostMetrics } from './types.gen-Ca6kUFtq.cjs';
|
|
2
|
+
export { bs as ClientOptions, bt as ConnectionAnalytics, bu as ConnectionsConnectError, bv as ConnectionsDeleteError, bw as ConnectionsDeleteResponse, bx as ConnectionsGetAnalyticsError, by as ConnectionsGetAnalyticsResponse, bz as ConnectionsGetError, bA as ConnectionsListAccountsError, bB as ConnectionsListByProfileError, bC as ConnectionsSelectError, bD as ConnectionsSelectResponse, bE as CreatePostBody, bF as DiscoverableAccount, bG as ErrorSource, bH as FacebookPageDay, bI as FacebookPageMetrics, bJ as FacebookPostMetrics, bK as IdempotencyKey, bL as InstagramAccountDay, bM as InstagramAccountMetrics, bN as InstagramPostMetrics, bO as LogsGetError, bP as LogsGetResponse, bQ as LogsListError, bR as LogsListResponse, bS as Media, bT as MediaAbortError, bU as MediaAbortResponse, bV as MediaCompleteError, bW as MediaCompleteResponse, bX as MediaCreateError, bY as MediaDeleteError, bZ as MediaDeleteResponse, b_ as MediaGetError, b$ as MediaListError, c0 as MediaListPartsError, c1 as MediaListPartsResponse, c2 as MediaSignPartError, c3 as MediaSignPartResponse, c4 as MediaStage, c5 as MediaUpdateError, c6 as MediaUpdateResponse, c7 as PostAnalytics, c8 as PostVariantAnalytics, c9 as PostWriteResult, ca as PostrunClientOptions, cb as PostsCreateError, cc as PostsCreateResponse, cd as PostsDeleteError, ce as PostsDeleteResponse, cf as PostsGetAnalyticsError, cg as PostsGetAnalyticsResponse, ch as PostsGetError, ci as PostsListError, cj as PostsRetryError, ck as PostsRetryResponse, cl as PostsUpdateError, cm as PostsUpdateResponse, cn as PostsValidateError, co as ProfilesCreateError, cp as ProfilesCreateResponse, cq as ProfilesDeleteError, cr as ProfilesDeleteResponse, cs as ProfilesGetError, ct as ProfilesListError, cu as ProfilesUpdateError, cv as ProfilesUpdateResponse, cw as TikTokAccountDay, cx as TikTokAccountMetrics, cy as TikTokPostMetrics, cz as TiktokCreatorInfoError, cA as TokensMintError, cB as TokensMintResponse, cC as WebhooksCreateEndpointError, cD as WebhooksCreateEndpointResponse, cE as WebhooksCreatePortalError, cF as WebhooksCreatePortalResponse, cG as WebhooksDeleteEndpointError, cH as WebhooksDeleteEndpointResponse, cI as WebhooksGetEndpointError, cJ as WebhooksGetEndpointResponse, cK as WebhooksListEndpointsError, cL as WebhooksListEndpointsResponse, cM as WebhooksListEventTypesError, cN as WebhooksListEventTypesResponse, cO as WebhooksPingError, cP as WebhooksPingResponse, cQ as WebhooksUpdateEndpointError, cR as WebhooksUpdateEndpointResponse, cS as YouTubePostSettings, cT as createPostrunClient } from './types.gen-Ca6kUFtq.cjs';
|
|
3
3
|
import * as z from 'zod';
|
|
4
4
|
|
|
5
5
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
@@ -103,6 +103,14 @@ declare const connectionsListAccounts: <ThrowOnError extends boolean = true>(opt
|
|
|
103
103
|
* Starts an OAuth connect flow for a platform on this profile. Returns a short-lived session the client uses to authorize; the connection is created once authorization succeeds.
|
|
104
104
|
*/
|
|
105
105
|
declare const connectionsConnect: <ThrowOnError extends boolean = true>(options: Options<ConnectionsConnectData, ThrowOnError>) => RequestResult<ConnectionsConnectResponses, ConnectionsConnectErrors, ThrowOnError>;
|
|
106
|
+
/**
|
|
107
|
+
* Retrieve account analytics
|
|
108
|
+
*
|
|
109
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `connections:read` scoped to the profile that owns the connection.
|
|
110
|
+
*
|
|
111
|
+
* Reads a connected account’s totals and its daily activity live from the platform: the last 60 days for TikTok, 30 for Instagram and 90 for Facebook Pages. TikTok, Instagram and Facebook Page connections are supported. TikTok finalizes a day 24–48 hours after it ends, and Meta updates Page insights about once a day. Returns 404 if the connection does not exist in your account, 501 if its platform has no analytics yet, 409 if the account must be reconnected, and 502 if the platform’s call fails.
|
|
112
|
+
*/
|
|
113
|
+
declare const connectionsGetAnalytics: <ThrowOnError extends boolean = true>(options: Options<ConnectionsGetAnalyticsData, ThrowOnError>) => RequestResult<ConnectionsGetAnalyticsResponses, ConnectionsGetAnalyticsErrors, ThrowOnError>;
|
|
106
114
|
/**
|
|
107
115
|
* List media
|
|
108
116
|
*
|
|
@@ -188,7 +196,7 @@ declare const postsList: <ThrowOnError extends boolean = true>(options?: Options
|
|
|
188
196
|
*
|
|
189
197
|
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `posts:write` scoped to the target profile.
|
|
190
198
|
*
|
|
191
|
-
* Composes a post + its per-channel variants. `publish` decides the outcome: `now` publishes immediately, `schedule` publishes at `schedule_at`, `draft` just stores it.
|
|
199
|
+
* Composes a post + its per-channel variants. `publish` decides the outcome: `now` publishes immediately, `schedule` publishes at `schedule_at`, `draft` just stores it. The response is the post in its current state. A post with a YouTube variant publishes in the background, and the request waits up to 4 minutes for it; if it is still `publishing` after the wait, use the `post.*` webhooks or poll `GET /v1/posts/{id}`.
|
|
192
200
|
*/
|
|
193
201
|
declare const postsCreate: <ThrowOnError extends boolean = true>(options: Options<PostsCreateData, ThrowOnError>) => RequestResult<PostsCreateResponses, PostsCreateErrors, ThrowOnError>;
|
|
194
202
|
/**
|
|
@@ -212,7 +220,7 @@ declare const postsGet: <ThrowOnError extends boolean = true>(options: Options<P
|
|
|
212
220
|
*
|
|
213
221
|
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `posts:write` scoped to the profile that owns the post.
|
|
214
222
|
*
|
|
215
|
-
* Edits a post and/or transitions its publish state (`draft` / `schedule` / `now`). Valid only while the post is draft or scheduled. Send only the fields to change; providing `variants` replaces the whole set.
|
|
223
|
+
* Edits a post and/or transitions its publish state (`draft` / `schedule` / `now`). Valid only while the post is draft or scheduled. Send only the fields to change; providing `variants` replaces the whole set. The response is the post in its current state. A post with a YouTube variant publishes in the background, and the request waits up to 4 minutes for it; if it is still `publishing` after the wait, use the `post.*` webhooks or poll `GET /v1/posts/{id}`.
|
|
216
224
|
*/
|
|
217
225
|
declare const postsUpdate: <ThrowOnError extends boolean = true>(options: Options<PostsUpdateData, ThrowOnError>) => RequestResult<PostsUpdateResponses, PostsUpdateErrors, ThrowOnError>;
|
|
218
226
|
/**
|
|
@@ -220,7 +228,7 @@ declare const postsUpdate: <ThrowOnError extends boolean = true>(options: Option
|
|
|
220
228
|
*
|
|
221
229
|
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `posts:write` scoped to the profile that owns the post.
|
|
222
230
|
*
|
|
223
|
-
* Re-publishes the post’s failed variants now, through the same path as `publish: "now"`. Published variants are never touched, and a failure that may already be live on the platform (e.g. `x_publish_failed`) is never re-sent, so a retry can’t post twice. Failed attempts are never billed.
|
|
231
|
+
* Re-publishes the post’s failed variants now, through the same path as `publish: "now"`. Published variants are never touched, and a failure that may already be live on the platform (e.g. `x_publish_failed`) is never re-sent, so a retry can’t post twice. Failed attempts are never billed. The response is the post in its current state. A post with a YouTube variant publishes in the background, and the request waits up to 4 minutes for it; if it is still `publishing` after the wait, use the `post.*` webhooks or poll `GET /v1/posts/{id}`.
|
|
224
232
|
*/
|
|
225
233
|
declare const postsRetry: <ThrowOnError extends boolean = true>(options: Options<PostsRetryData, ThrowOnError>) => RequestResult<PostsRetryResponses, PostsRetryErrors, ThrowOnError>;
|
|
226
234
|
/**
|
|
@@ -231,6 +239,14 @@ declare const postsRetry: <ThrowOnError extends boolean = true>(options: Options
|
|
|
231
239
|
* Runs the exact ownership + publish-readiness checks the create path runs under dry_run, with no side effects. Returns a per-issue verdict (`publishable` + `issues[]`) on 200; a reference to a connection/media outside the profile is a typed 422.
|
|
232
240
|
*/
|
|
233
241
|
declare const postsValidate: <ThrowOnError extends boolean = true>(options: Options<PostsValidateData, ThrowOnError>) => RequestResult<PostsValidateResponses, PostsValidateErrors, ThrowOnError>;
|
|
242
|
+
/**
|
|
243
|
+
* Retrieve post analytics
|
|
244
|
+
*
|
|
245
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `posts:read` scoped to the profile that owns the post.
|
|
246
|
+
*
|
|
247
|
+
* Reads each variant’s metrics live from its platform. TikTok, Instagram and Facebook Page variants return metrics; X and LinkedIn variants return `analytics_not_supported`. A variant with nothing to read (not published, connection removed, not public, deleted, or not yet reported by the platform) returns `analytics_no_data`. TikTok updates metrics 24–48 hours after the activity, and Meta can take up to 48 hours to report a new post. Returns 404 if the post does not exist in your account, 409 if an account must be reconnected, and 502 if the platform’s call fails.
|
|
248
|
+
*/
|
|
249
|
+
declare const postsGetAnalytics: <ThrowOnError extends boolean = true>(options: Options<PostsGetAnalyticsData, ThrowOnError>) => RequestResult<PostsGetAnalyticsResponses, PostsGetAnalyticsErrors, ThrowOnError>;
|
|
234
250
|
/**
|
|
235
251
|
* Retrieve TikTok creator info
|
|
236
252
|
*
|
|
@@ -464,6 +480,14 @@ type TikTokPostVariant = Extract<PostVariantInput, {
|
|
|
464
480
|
type InstagramPostVariant = Extract<PostVariantInput, {
|
|
465
481
|
platform: 'instagram';
|
|
466
482
|
}>;
|
|
483
|
+
/** The YouTube member of the write variant union — typed native settings
|
|
484
|
+
* (`title`, `privacy_status`, `tags`, `category_id`, `thumbnail_media_id`, the
|
|
485
|
+
* made-for-kids and synthetic-media declarations); `body` is the description.
|
|
486
|
+
* The `short` vs `video` shape is server-DERIVED from the video's duration and
|
|
487
|
+
* size. Narrowed from the contract, never hand-declared. */
|
|
488
|
+
type YouTubePostVariant = Extract<PostVariantInput, {
|
|
489
|
+
platform: 'youtube';
|
|
490
|
+
}>;
|
|
467
491
|
/** A post — its variants, schedule, and derived status (the read resource). */
|
|
468
492
|
type Post = PostsGetResponse;
|
|
469
493
|
/**
|
|
@@ -555,7 +579,7 @@ type MediaResource = MediaGetResponse;
|
|
|
555
579
|
* create/upload and switch over on a settled asset.
|
|
556
580
|
*/
|
|
557
581
|
type MediaKind = NonNullable<MediaResource['kind']>;
|
|
558
|
-
/** A media render target —
|
|
582
|
+
/** A media render target — one of the post platforms. */
|
|
559
583
|
type MediaTarget = NonNullable<NonNullable<MediaCreateData['body']>['targets']>[number];
|
|
560
584
|
/** The create-media response: the resource plus a multipart upload session. */
|
|
561
585
|
type CreateMediaResult = MediaCreateResponse;
|
|
@@ -687,6 +711,64 @@ type XPoll = NonNullable<NonNullable<XPostVariant['settings']>['poll']>;
|
|
|
687
711
|
*/
|
|
688
712
|
declare function xPollDurationLabel(durationMinutes: number): string;
|
|
689
713
|
|
|
714
|
+
/**
|
|
715
|
+
* Presentation helpers for the analytics reads (`postsGetAnalytics`,
|
|
716
|
+
* `connectionsGetAnalytics`). The wire keeps each network's own field names;
|
|
717
|
+
* these carry the domain knowledge a UI needs on top: which metrics apply to a
|
|
718
|
+
* post type, their labels, and their units. Pure — pin them in tests.
|
|
719
|
+
*/
|
|
720
|
+
/** How to read a metric's number: `ratio` is 0–1, `percent` is 0–100. */
|
|
721
|
+
type MetricFormat = 'count' | 'seconds' | 'milliseconds' | 'ratio' | 'percent';
|
|
722
|
+
/** A count, a breakdown keyed by the network's own type names, or `null` when
|
|
723
|
+
* the network didn't report it. */
|
|
724
|
+
type MetricValue = number | Record<string, number> | null;
|
|
725
|
+
interface MetricRow {
|
|
726
|
+
key: string;
|
|
727
|
+
label: string;
|
|
728
|
+
format: MetricFormat;
|
|
729
|
+
value: MetricValue;
|
|
730
|
+
}
|
|
731
|
+
interface MetricPoint {
|
|
732
|
+
date: string;
|
|
733
|
+
value: number;
|
|
734
|
+
}
|
|
735
|
+
declare const ANALYTICS_PLATFORMS: readonly ["tiktok", "instagram", "facebook_page"];
|
|
736
|
+
type AnalyticsPlatform = (typeof ANALYTICS_PLATFORMS)[number];
|
|
737
|
+
/** Whether Postrun reads analytics for this network. */
|
|
738
|
+
declare function hasAnalytics(platform: string): platform is AnalyticsPlatform;
|
|
739
|
+
/** Only a published variant on a network with analytics has metrics to read.
|
|
740
|
+
* Narrows `platform`, so the variant can go straight to code keyed by
|
|
741
|
+
* `AnalyticsPlatform`. */
|
|
742
|
+
declare function hasPostAnalytics<Variant extends {
|
|
743
|
+
platform: PostPlatform;
|
|
744
|
+
status: PostVariantStatus;
|
|
745
|
+
}>(variant: Variant): variant is Variant & {
|
|
746
|
+
platform: AnalyticsPlatform;
|
|
747
|
+
};
|
|
748
|
+
/**
|
|
749
|
+
* The metrics that apply to a post, in display order. Meta reports different
|
|
750
|
+
* metrics for Reels than for other posts, so `postType` (the variant's
|
|
751
|
+
* `post_type`) picks the set; a metric that doesn't apply is left out rather
|
|
752
|
+
* than shown as unreported.
|
|
753
|
+
*/
|
|
754
|
+
declare function postMetricRows(metrics: PostMetrics, postType: PostType | null): MetricRow[];
|
|
755
|
+
/** An account's headline numbers, in display order. */
|
|
756
|
+
declare function accountMetricRows(metrics: AccountMetrics): MetricRow[];
|
|
757
|
+
/**
|
|
758
|
+
* The account's main daily series for a trend line, oldest first, leaving out
|
|
759
|
+
* days the network didn't report. Instagram's is reach: it is the only account
|
|
760
|
+
* metric Meta reports per day.
|
|
761
|
+
*/
|
|
762
|
+
declare function accountTrend(metrics: AccountMetrics): {
|
|
763
|
+
label: string;
|
|
764
|
+
points: MetricPoint[];
|
|
765
|
+
};
|
|
766
|
+
/**
|
|
767
|
+
* A metric for display. `null` (not reported) reads "—", never a made-up 0. A
|
|
768
|
+
* breakdown lists its types largest first: "Like 1.2K · Love 3".
|
|
769
|
+
*/
|
|
770
|
+
declare function formatMetric(value: MetricValue, format?: MetricFormat): string;
|
|
771
|
+
|
|
690
772
|
/**
|
|
691
773
|
* The TikTok composer's publish-options model — the framework-agnostic glue
|
|
692
774
|
* between the live `creator-info` payload and a TikTok post's settings. This is
|
|
@@ -936,4 +1018,4 @@ declare function buildCreatePost(input: ComposePostInput, connections: readonly
|
|
|
936
1018
|
*/
|
|
937
1019
|
declare function buildUpdatePost(input: ComposeUpdateInput, connections?: readonly ConnectionRef[]): UpdatePostInput;
|
|
938
1020
|
|
|
939
|
-
export { type AudiencePrivacyChoice, type ChannelConfig, type Channels, ComposeError, type ComposePostInput, type ComposeUpdateInput, type ConnectSession, type ConnectablePlatform, type Connection, type ConnectionKind, type ConnectionList, type ConnectionRef, type ConnectionStatus, ConnectionsConnectData, ConnectionsConnectErrors, ConnectionsConnectResponse, ConnectionsConnectResponses, ConnectionsDeleteData, ConnectionsDeleteErrors, ConnectionsDeleteResponses, ConnectionsGetData, ConnectionsGetErrors, ConnectionsGetResponse, ConnectionsGetResponses, ConnectionsListAccountsData, ConnectionsListAccountsErrors, ConnectionsListAccountsResponse, ConnectionsListAccountsResponses, ConnectionsListByProfileData, ConnectionsListByProfileErrors, ConnectionsListByProfileResponse, ConnectionsListByProfileResponses, ConnectionsSelectData, ConnectionsSelectErrors, ConnectionsSelectResponses, type CreateMediaInput, type CreateMediaResult, type CreatePostInput, type CreateProfileInput, type DiscoverableAccountList, ErrorCode, type InstagramPostVariant, type LinkedInPollDuration, type LinkedInPostVariant, type ListConnectionsQuery, type ListMediaQuery, type ListPostsQuery, type ListProfilesQuery, LogsGetData, LogsGetErrors, LogsGetResponses, LogsListData, LogsListErrors, LogsListResponses, MediaAbortData, MediaAbortErrors, MediaAbortResponses, MediaCompleteData, MediaCompleteErrors, MediaCompleteResponses, MediaCreateData, MediaCreateErrors, MediaCreateResponse, MediaCreateResponses, MediaDeleteData, MediaDeleteErrors, MediaDeleteResponses, MediaGetData, MediaGetErrors, MediaGetResponse, MediaGetResponses, type MediaInput, type MediaKind, type MediaList, MediaListData, MediaListErrors, MediaListPartsData, MediaListPartsErrors, MediaListPartsResponses, MediaListResponse, MediaListResponses, type MediaResource, MediaSignPartData, MediaSignPartErrors, MediaSignPartResponses, type MediaStatus, type MediaTarget, MediaUpdateData, MediaUpdateErrors, MediaUpdateResponses, type Metadata, type MetadataFilter, type MultipartSession, type Options, POST_PLATFORMS, type Post, type PostContent, type PostList, type PostMetadata, type PostPlatform, type PostStatus, type PostType, type PostValidation, type PostVariant, type PostVariantError, type PostVariantInput, PostrunClient, PostrunError, type PostrunErrorCode, type PostrunFieldError, type PostrunProblem, PostsCreateData, PostsCreateErrors, PostsCreateResponses, PostsDeleteData, PostsDeleteErrors, PostsDeleteResponses, PostsGetData, PostsGetErrors, PostsGetResponse, PostsGetResponses, PostsListData, PostsListErrors, PostsListResponse, PostsListResponses, PostsRetryData, PostsRetryErrors, PostsRetryResponses, PostsUpdateData, PostsUpdateErrors, PostsUpdateResponses, PostsValidateData, PostsValidateErrors, PostsValidateResponse, PostsValidateResponses, type Profile, type ProfileList, ProfilesCreateData, ProfilesCreateErrors, ProfilesCreateResponses, ProfilesDeleteData, ProfilesDeleteErrors, ProfilesDeleteResponses, ProfilesGetData, ProfilesGetErrors, ProfilesGetResponse, ProfilesGetResponses, ProfilesListData, ProfilesListErrors, ProfilesListResponse, ProfilesListResponses, ProfilesUpdateData, ProfilesUpdateErrors, ProfilesUpdateResponses, type PublishMode, type SelectAccountInput, type SettingsFor, TIKTOK_AUDIENCE_REQUIRED_HINT, TIKTOK_BRANDED_CONTENT_POLICY_URL, TIKTOK_BRANDED_CONTENT_PRIVATE_DISABLED_REASON, TIKTOK_CAPTION_MAX, TIKTOK_DISCLOSURE_REQUIRED_HINT, TIKTOK_MUSIC_CONFIRMATION_URL, TIKTOK_PROCESSING_NOTICE, type TikTokBrandKind, type TikTokCreatorInfo, type TikTokInteractionKey, type TikTokInteractionRow, type TikTokOptionsValue, type TikTokPostVariant, type TikTokPrivacyLevel, TiktokCreatorInfoData, TiktokCreatorInfoErrors, TiktokCreatorInfoResponse, TiktokCreatorInfoResponses, TokensMintData, TokensMintErrors, TokensMintResponses, type UpdateMediaInput, type UpdatePostInput, type UpdateProfileInput, UploadError, type UploadFileOptions, type ValidatePostInput, type ValidationIssue, type WaitForMediaOptions, WebhooksCreateEndpointData, WebhooksCreateEndpointErrors, WebhooksCreateEndpointResponses, WebhooksCreatePortalData, WebhooksCreatePortalErrors, WebhooksCreatePortalResponses, WebhooksDeleteEndpointData, WebhooksDeleteEndpointErrors, WebhooksDeleteEndpointResponses, WebhooksGetEndpointData, WebhooksGetEndpointErrors, WebhooksGetEndpointResponses, WebhooksListEndpointsData, WebhooksListEndpointsErrors, WebhooksListEndpointsResponses, WebhooksListEventTypesData, WebhooksListEventTypesErrors, WebhooksListEventTypesResponses, WebhooksPingData, WebhooksPingErrors, WebhooksPingResponses, WebhooksUpdateEndpointData, WebhooksUpdateEndpointErrors, WebhooksUpdateEndpointResponses, type XPoll, type XPostVariant, audiencePrivacyOptions, audienceUnselected, brandedContentDeclared, brandedContentDisabledReason, buildCreatePost, buildUpdatePost, captionMaxFor, commercialDisclosureIncomplete, commercialLabelNotice, connectionsConnect, connectionsDelete, connectionsGet, connectionsListAccounts, connectionsListByProfile, connectionsSelect, defaultTikTokOptions, failedVariants, interactionRows, interactionValueKey, isInteractionForbidden, isPostPlatform, isPublished, linkedinPollDurationLabel, logsGet, logsList, mediaAbort, mediaComplete, mediaCreate, mediaDelete, mediaGet, mediaList, mediaListParts, mediaSignPart, mediaUpdate, parsePrivacyLevel, postsCreate, postsDelete, postsGet, postsList, postsRetry, postsUpdate, postsValidate, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, setBrandKind, setCommercialDisclosure, tiktokCreatorInfo, tiktokDurationError, tiktokOptionsFromSettings, tiktokOptionsReady, tiktokPrivacyLabel, tiktokSettings, toggleInteraction, tokensMint, uploadFile, waitForMedia, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint, xPollDurationLabel };
|
|
1021
|
+
export { AccountMetrics, type AnalyticsPlatform, type AudiencePrivacyChoice, type ChannelConfig, type Channels, ComposeError, type ComposePostInput, type ComposeUpdateInput, type ConnectSession, type ConnectablePlatform, type Connection, type ConnectionKind, type ConnectionList, type ConnectionRef, type ConnectionStatus, ConnectionsConnectData, ConnectionsConnectErrors, ConnectionsConnectResponse, ConnectionsConnectResponses, ConnectionsDeleteData, ConnectionsDeleteErrors, ConnectionsDeleteResponses, ConnectionsGetAnalyticsData, ConnectionsGetAnalyticsErrors, ConnectionsGetAnalyticsResponses, ConnectionsGetData, ConnectionsGetErrors, ConnectionsGetResponse, ConnectionsGetResponses, ConnectionsListAccountsData, ConnectionsListAccountsErrors, ConnectionsListAccountsResponse, ConnectionsListAccountsResponses, ConnectionsListByProfileData, ConnectionsListByProfileErrors, ConnectionsListByProfileResponse, ConnectionsListByProfileResponses, ConnectionsSelectData, ConnectionsSelectErrors, ConnectionsSelectResponses, type CreateMediaInput, type CreateMediaResult, type CreatePostInput, type CreateProfileInput, type DiscoverableAccountList, ErrorCode, type InstagramPostVariant, type LinkedInPollDuration, type LinkedInPostVariant, type ListConnectionsQuery, type ListMediaQuery, type ListPostsQuery, type ListProfilesQuery, LogsGetData, LogsGetErrors, LogsGetResponses, LogsListData, LogsListErrors, LogsListResponses, MediaAbortData, MediaAbortErrors, MediaAbortResponses, MediaCompleteData, MediaCompleteErrors, MediaCompleteResponses, MediaCreateData, MediaCreateErrors, MediaCreateResponse, MediaCreateResponses, MediaDeleteData, MediaDeleteErrors, MediaDeleteResponses, MediaGetData, MediaGetErrors, MediaGetResponse, MediaGetResponses, type MediaInput, type MediaKind, type MediaList, MediaListData, MediaListErrors, MediaListPartsData, MediaListPartsErrors, MediaListPartsResponses, MediaListResponse, MediaListResponses, type MediaResource, MediaSignPartData, MediaSignPartErrors, MediaSignPartResponses, type MediaStatus, type MediaTarget, MediaUpdateData, MediaUpdateErrors, MediaUpdateResponses, type Metadata, type MetadataFilter, type MetricFormat, type MetricPoint, type MetricRow, type MetricValue, type MultipartSession, type Options, POST_PLATFORMS, type Post, type PostContent, type PostList, type PostMetadata, PostMetrics, type PostPlatform, type PostStatus, type PostType, type PostValidation, type PostVariant, type PostVariantError, type PostVariantInput, PostVariantStatus, PostrunClient, PostrunError, type PostrunErrorCode, type PostrunFieldError, type PostrunProblem, PostsCreateData, PostsCreateErrors, PostsCreateResponses, PostsDeleteData, PostsDeleteErrors, PostsDeleteResponses, PostsGetAnalyticsData, PostsGetAnalyticsErrors, PostsGetAnalyticsResponses, PostsGetData, PostsGetErrors, PostsGetResponse, PostsGetResponses, PostsListData, PostsListErrors, PostsListResponse, PostsListResponses, PostsRetryData, PostsRetryErrors, PostsRetryResponses, PostsUpdateData, PostsUpdateErrors, PostsUpdateResponses, PostsValidateData, PostsValidateErrors, PostsValidateResponse, PostsValidateResponses, type Profile, type ProfileList, ProfilesCreateData, ProfilesCreateErrors, ProfilesCreateResponses, ProfilesDeleteData, ProfilesDeleteErrors, ProfilesDeleteResponses, ProfilesGetData, ProfilesGetErrors, ProfilesGetResponse, ProfilesGetResponses, ProfilesListData, ProfilesListErrors, ProfilesListResponse, ProfilesListResponses, ProfilesUpdateData, ProfilesUpdateErrors, ProfilesUpdateResponses, type PublishMode, type SelectAccountInput, type SettingsFor, TIKTOK_AUDIENCE_REQUIRED_HINT, TIKTOK_BRANDED_CONTENT_POLICY_URL, TIKTOK_BRANDED_CONTENT_PRIVATE_DISABLED_REASON, TIKTOK_CAPTION_MAX, TIKTOK_DISCLOSURE_REQUIRED_HINT, TIKTOK_MUSIC_CONFIRMATION_URL, TIKTOK_PROCESSING_NOTICE, type TikTokBrandKind, type TikTokCreatorInfo, type TikTokInteractionKey, type TikTokInteractionRow, type TikTokOptionsValue, type TikTokPostVariant, type TikTokPrivacyLevel, TiktokCreatorInfoData, TiktokCreatorInfoErrors, TiktokCreatorInfoResponse, TiktokCreatorInfoResponses, TokensMintData, TokensMintErrors, TokensMintResponses, type UpdateMediaInput, type UpdatePostInput, type UpdateProfileInput, UploadError, type UploadFileOptions, type ValidatePostInput, type ValidationIssue, type WaitForMediaOptions, WebhooksCreateEndpointData, WebhooksCreateEndpointErrors, WebhooksCreateEndpointResponses, WebhooksCreatePortalData, WebhooksCreatePortalErrors, WebhooksCreatePortalResponses, WebhooksDeleteEndpointData, WebhooksDeleteEndpointErrors, WebhooksDeleteEndpointResponses, WebhooksGetEndpointData, WebhooksGetEndpointErrors, WebhooksGetEndpointResponses, WebhooksListEndpointsData, WebhooksListEndpointsErrors, WebhooksListEndpointsResponses, WebhooksListEventTypesData, WebhooksListEventTypesErrors, WebhooksListEventTypesResponses, WebhooksPingData, WebhooksPingErrors, WebhooksPingResponses, WebhooksUpdateEndpointData, WebhooksUpdateEndpointErrors, WebhooksUpdateEndpointResponses, type XPoll, type XPostVariant, type YouTubePostVariant, accountMetricRows, accountTrend, audiencePrivacyOptions, audienceUnselected, brandedContentDeclared, brandedContentDisabledReason, buildCreatePost, buildUpdatePost, captionMaxFor, commercialDisclosureIncomplete, commercialLabelNotice, connectionsConnect, connectionsDelete, connectionsGet, connectionsGetAnalytics, connectionsListAccounts, connectionsListByProfile, connectionsSelect, defaultTikTokOptions, failedVariants, formatMetric, hasAnalytics, hasPostAnalytics, interactionRows, interactionValueKey, isInteractionForbidden, isPostPlatform, isPublished, linkedinPollDurationLabel, logsGet, logsList, mediaAbort, mediaComplete, mediaCreate, mediaDelete, mediaGet, mediaList, mediaListParts, mediaSignPart, mediaUpdate, parsePrivacyLevel, postMetricRows, postsCreate, postsDelete, postsGet, postsGetAnalytics, postsList, postsRetry, postsUpdate, postsValidate, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, setBrandKind, setCommercialDisclosure, tiktokCreatorInfo, tiktokDurationError, tiktokOptionsFromSettings, tiktokOptionsReady, tiktokPrivacyLabel, tiktokSettings, toggleInteraction, tokensMint, uploadFile, waitForMedia, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint, xPollDurationLabel };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TDataShape, O as Options$1, C as Client, a as ClientMeta, b as ConnectionsConnectData, R as RequestResult, c as ConnectionsConnectResponses, d as ConnectionsConnectErrors, e as ConnectionsDeleteData, f as ConnectionsDeleteResponses, g as ConnectionsDeleteErrors, h as ConnectionsGetData, i as ConnectionsGetResponses, j as ConnectionsGetErrors, k as
|
|
2
|
-
export {
|
|
1
|
+
import { T as TDataShape, O as Options$1, C as Client, a as ClientMeta, b as ConnectionsConnectData, R as RequestResult, c as ConnectionsConnectResponses, d as ConnectionsConnectErrors, e as ConnectionsDeleteData, f as ConnectionsDeleteResponses, g as ConnectionsDeleteErrors, h as ConnectionsGetData, i as ConnectionsGetResponses, j as ConnectionsGetErrors, k as ConnectionsGetAnalyticsData, l as ConnectionsGetAnalyticsResponses, m as ConnectionsGetAnalyticsErrors, n as ConnectionsListAccountsData, o as ConnectionsListAccountsResponses, p as ConnectionsListAccountsErrors, q as ConnectionsListByProfileData, r as ConnectionsListByProfileResponses, s as ConnectionsListByProfileErrors, t as ConnectionsSelectData, u as ConnectionsSelectResponses, v as ConnectionsSelectErrors, L as LogsGetData, w as LogsGetResponses, x as LogsGetErrors, y as LogsListData, z as LogsListResponses, A as LogsListErrors, M as MediaAbortData, B as MediaAbortResponses, D as MediaAbortErrors, E as MediaCompleteData, F as MediaCompleteResponses, G as MediaCompleteErrors, H as MediaCreateData, I as MediaCreateResponses, J as MediaCreateErrors, K as MediaDeleteData, N as MediaDeleteResponses, P as MediaDeleteErrors, Q as MediaGetData, S as MediaGetResponses, U as MediaGetErrors, V as MediaListData, W as MediaListResponses, X as MediaListErrors, Y as MediaListPartsData, Z as MediaListPartsResponses, _ as MediaListPartsErrors, $ as MediaSignPartData, a0 as MediaSignPartResponses, a1 as MediaSignPartErrors, a2 as MediaUpdateData, a3 as MediaUpdateResponses, a4 as MediaUpdateErrors, a5 as PostsCreateData, a6 as PostsCreateResponses, a7 as PostsCreateErrors, a8 as PostsDeleteData, a9 as PostsDeleteResponses, aa as PostsDeleteErrors, ab as PostsGetData, ac as PostsGetResponses, ad as PostsGetErrors, ae as PostsGetAnalyticsData, af as PostsGetAnalyticsResponses, ag as PostsGetAnalyticsErrors, ah as PostsListData, ai as PostsListResponses, aj as PostsListErrors, ak as PostsRetryData, al as PostsRetryResponses, am as PostsRetryErrors, an as PostsUpdateData, ao as PostsUpdateResponses, ap as PostsUpdateErrors, aq as PostsValidateData, ar as PostsValidateResponses, as as PostsValidateErrors, at as ProfilesCreateData, au as ProfilesCreateResponses, av as ProfilesCreateErrors, aw as ProfilesDeleteData, ax as ProfilesDeleteResponses, ay as ProfilesDeleteErrors, az as ProfilesGetData, aA as ProfilesGetResponses, aB as ProfilesGetErrors, aC as ProfilesListData, aD as ProfilesListResponses, aE as ProfilesListErrors, aF as ProfilesUpdateData, aG as ProfilesUpdateResponses, aH as ProfilesUpdateErrors, aI as TiktokCreatorInfoData, aJ as TiktokCreatorInfoResponses, aK as TiktokCreatorInfoErrors, aL as TokensMintData, aM as TokensMintResponses, aN as TokensMintErrors, aO as WebhooksCreateEndpointData, aP as WebhooksCreateEndpointResponses, aQ as WebhooksCreateEndpointErrors, aR as WebhooksCreatePortalData, aS as WebhooksCreatePortalResponses, aT as WebhooksCreatePortalErrors, aU as WebhooksDeleteEndpointData, aV as WebhooksDeleteEndpointResponses, aW as WebhooksDeleteEndpointErrors, aX as WebhooksGetEndpointData, aY as WebhooksGetEndpointResponses, aZ as WebhooksGetEndpointErrors, a_ as WebhooksListEndpointsData, a$ as WebhooksListEndpointsResponses, b0 as WebhooksListEndpointsErrors, b1 as WebhooksListEventTypesData, b2 as WebhooksListEventTypesResponses, b3 as WebhooksListEventTypesErrors, b4 as WebhooksPingData, b5 as WebhooksPingResponses, b6 as WebhooksPingErrors, b7 as WebhooksUpdateEndpointData, b8 as WebhooksUpdateEndpointResponses, b9 as WebhooksUpdateEndpointErrors, ba as ErrorCode, bb as TiktokCreatorInfoResponse, bc as MediaGetResponse, bd as ConnectionsConnectResponse, be as ConnectionsGetResponse, bf as ConnectionsListByProfileResponse, bg as MediaCreateResponse, bh as ConnectionsListAccountsResponse, bi as MediaListResponse, bj as PostsGetResponse, bk as PostsListResponse, bl as PostsValidateResponse, bm as ProfilesGetResponse, bn as ProfilesListResponse, bo as PostrunClient, bp as AccountMetrics, bq as PostVariantStatus, br as PostMetrics } from './types.gen-Ca6kUFtq.js';
|
|
2
|
+
export { bs as ClientOptions, bt as ConnectionAnalytics, bu as ConnectionsConnectError, bv as ConnectionsDeleteError, bw as ConnectionsDeleteResponse, bx as ConnectionsGetAnalyticsError, by as ConnectionsGetAnalyticsResponse, bz as ConnectionsGetError, bA as ConnectionsListAccountsError, bB as ConnectionsListByProfileError, bC as ConnectionsSelectError, bD as ConnectionsSelectResponse, bE as CreatePostBody, bF as DiscoverableAccount, bG as ErrorSource, bH as FacebookPageDay, bI as FacebookPageMetrics, bJ as FacebookPostMetrics, bK as IdempotencyKey, bL as InstagramAccountDay, bM as InstagramAccountMetrics, bN as InstagramPostMetrics, bO as LogsGetError, bP as LogsGetResponse, bQ as LogsListError, bR as LogsListResponse, bS as Media, bT as MediaAbortError, bU as MediaAbortResponse, bV as MediaCompleteError, bW as MediaCompleteResponse, bX as MediaCreateError, bY as MediaDeleteError, bZ as MediaDeleteResponse, b_ as MediaGetError, b$ as MediaListError, c0 as MediaListPartsError, c1 as MediaListPartsResponse, c2 as MediaSignPartError, c3 as MediaSignPartResponse, c4 as MediaStage, c5 as MediaUpdateError, c6 as MediaUpdateResponse, c7 as PostAnalytics, c8 as PostVariantAnalytics, c9 as PostWriteResult, ca as PostrunClientOptions, cb as PostsCreateError, cc as PostsCreateResponse, cd as PostsDeleteError, ce as PostsDeleteResponse, cf as PostsGetAnalyticsError, cg as PostsGetAnalyticsResponse, ch as PostsGetError, ci as PostsListError, cj as PostsRetryError, ck as PostsRetryResponse, cl as PostsUpdateError, cm as PostsUpdateResponse, cn as PostsValidateError, co as ProfilesCreateError, cp as ProfilesCreateResponse, cq as ProfilesDeleteError, cr as ProfilesDeleteResponse, cs as ProfilesGetError, ct as ProfilesListError, cu as ProfilesUpdateError, cv as ProfilesUpdateResponse, cw as TikTokAccountDay, cx as TikTokAccountMetrics, cy as TikTokPostMetrics, cz as TiktokCreatorInfoError, cA as TokensMintError, cB as TokensMintResponse, cC as WebhooksCreateEndpointError, cD as WebhooksCreateEndpointResponse, cE as WebhooksCreatePortalError, cF as WebhooksCreatePortalResponse, cG as WebhooksDeleteEndpointError, cH as WebhooksDeleteEndpointResponse, cI as WebhooksGetEndpointError, cJ as WebhooksGetEndpointResponse, cK as WebhooksListEndpointsError, cL as WebhooksListEndpointsResponse, cM as WebhooksListEventTypesError, cN as WebhooksListEventTypesResponse, cO as WebhooksPingError, cP as WebhooksPingResponse, cQ as WebhooksUpdateEndpointError, cR as WebhooksUpdateEndpointResponse, cS as YouTubePostSettings, cT as createPostrunClient } from './types.gen-Ca6kUFtq.js';
|
|
3
3
|
import * as z from 'zod';
|
|
4
4
|
|
|
5
5
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
@@ -103,6 +103,14 @@ declare const connectionsListAccounts: <ThrowOnError extends boolean = true>(opt
|
|
|
103
103
|
* Starts an OAuth connect flow for a platform on this profile. Returns a short-lived session the client uses to authorize; the connection is created once authorization succeeds.
|
|
104
104
|
*/
|
|
105
105
|
declare const connectionsConnect: <ThrowOnError extends boolean = true>(options: Options<ConnectionsConnectData, ThrowOnError>) => RequestResult<ConnectionsConnectResponses, ConnectionsConnectErrors, ThrowOnError>;
|
|
106
|
+
/**
|
|
107
|
+
* Retrieve account analytics
|
|
108
|
+
*
|
|
109
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `connections:read` scoped to the profile that owns the connection.
|
|
110
|
+
*
|
|
111
|
+
* Reads a connected account’s totals and its daily activity live from the platform: the last 60 days for TikTok, 30 for Instagram and 90 for Facebook Pages. TikTok, Instagram and Facebook Page connections are supported. TikTok finalizes a day 24–48 hours after it ends, and Meta updates Page insights about once a day. Returns 404 if the connection does not exist in your account, 501 if its platform has no analytics yet, 409 if the account must be reconnected, and 502 if the platform’s call fails.
|
|
112
|
+
*/
|
|
113
|
+
declare const connectionsGetAnalytics: <ThrowOnError extends boolean = true>(options: Options<ConnectionsGetAnalyticsData, ThrowOnError>) => RequestResult<ConnectionsGetAnalyticsResponses, ConnectionsGetAnalyticsErrors, ThrowOnError>;
|
|
106
114
|
/**
|
|
107
115
|
* List media
|
|
108
116
|
*
|
|
@@ -188,7 +196,7 @@ declare const postsList: <ThrowOnError extends boolean = true>(options?: Options
|
|
|
188
196
|
*
|
|
189
197
|
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `posts:write` scoped to the target profile.
|
|
190
198
|
*
|
|
191
|
-
* Composes a post + its per-channel variants. `publish` decides the outcome: `now` publishes immediately, `schedule` publishes at `schedule_at`, `draft` just stores it.
|
|
199
|
+
* Composes a post + its per-channel variants. `publish` decides the outcome: `now` publishes immediately, `schedule` publishes at `schedule_at`, `draft` just stores it. The response is the post in its current state. A post with a YouTube variant publishes in the background, and the request waits up to 4 minutes for it; if it is still `publishing` after the wait, use the `post.*` webhooks or poll `GET /v1/posts/{id}`.
|
|
192
200
|
*/
|
|
193
201
|
declare const postsCreate: <ThrowOnError extends boolean = true>(options: Options<PostsCreateData, ThrowOnError>) => RequestResult<PostsCreateResponses, PostsCreateErrors, ThrowOnError>;
|
|
194
202
|
/**
|
|
@@ -212,7 +220,7 @@ declare const postsGet: <ThrowOnError extends boolean = true>(options: Options<P
|
|
|
212
220
|
*
|
|
213
221
|
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `posts:write` scoped to the profile that owns the post.
|
|
214
222
|
*
|
|
215
|
-
* Edits a post and/or transitions its publish state (`draft` / `schedule` / `now`). Valid only while the post is draft or scheduled. Send only the fields to change; providing `variants` replaces the whole set.
|
|
223
|
+
* Edits a post and/or transitions its publish state (`draft` / `schedule` / `now`). Valid only while the post is draft or scheduled. Send only the fields to change; providing `variants` replaces the whole set. The response is the post in its current state. A post with a YouTube variant publishes in the background, and the request waits up to 4 minutes for it; if it is still `publishing` after the wait, use the `post.*` webhooks or poll `GET /v1/posts/{id}`.
|
|
216
224
|
*/
|
|
217
225
|
declare const postsUpdate: <ThrowOnError extends boolean = true>(options: Options<PostsUpdateData, ThrowOnError>) => RequestResult<PostsUpdateResponses, PostsUpdateErrors, ThrowOnError>;
|
|
218
226
|
/**
|
|
@@ -220,7 +228,7 @@ declare const postsUpdate: <ThrowOnError extends boolean = true>(options: Option
|
|
|
220
228
|
*
|
|
221
229
|
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `posts:write` scoped to the profile that owns the post.
|
|
222
230
|
*
|
|
223
|
-
* Re-publishes the post’s failed variants now, through the same path as `publish: "now"`. Published variants are never touched, and a failure that may already be live on the platform (e.g. `x_publish_failed`) is never re-sent, so a retry can’t post twice. Failed attempts are never billed.
|
|
231
|
+
* Re-publishes the post’s failed variants now, through the same path as `publish: "now"`. Published variants are never touched, and a failure that may already be live on the platform (e.g. `x_publish_failed`) is never re-sent, so a retry can’t post twice. Failed attempts are never billed. The response is the post in its current state. A post with a YouTube variant publishes in the background, and the request waits up to 4 minutes for it; if it is still `publishing` after the wait, use the `post.*` webhooks or poll `GET /v1/posts/{id}`.
|
|
224
232
|
*/
|
|
225
233
|
declare const postsRetry: <ThrowOnError extends boolean = true>(options: Options<PostsRetryData, ThrowOnError>) => RequestResult<PostsRetryResponses, PostsRetryErrors, ThrowOnError>;
|
|
226
234
|
/**
|
|
@@ -231,6 +239,14 @@ declare const postsRetry: <ThrowOnError extends boolean = true>(options: Options
|
|
|
231
239
|
* Runs the exact ownership + publish-readiness checks the create path runs under dry_run, with no side effects. Returns a per-issue verdict (`publishable` + `issues[]`) on 200; a reference to a connection/media outside the profile is a typed 422.
|
|
232
240
|
*/
|
|
233
241
|
declare const postsValidate: <ThrowOnError extends boolean = true>(options: Options<PostsValidateData, ThrowOnError>) => RequestResult<PostsValidateResponses, PostsValidateErrors, ThrowOnError>;
|
|
242
|
+
/**
|
|
243
|
+
* Retrieve post analytics
|
|
244
|
+
*
|
|
245
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `posts:read` scoped to the profile that owns the post.
|
|
246
|
+
*
|
|
247
|
+
* Reads each variant’s metrics live from its platform. TikTok, Instagram and Facebook Page variants return metrics; X and LinkedIn variants return `analytics_not_supported`. A variant with nothing to read (not published, connection removed, not public, deleted, or not yet reported by the platform) returns `analytics_no_data`. TikTok updates metrics 24–48 hours after the activity, and Meta can take up to 48 hours to report a new post. Returns 404 if the post does not exist in your account, 409 if an account must be reconnected, and 502 if the platform’s call fails.
|
|
248
|
+
*/
|
|
249
|
+
declare const postsGetAnalytics: <ThrowOnError extends boolean = true>(options: Options<PostsGetAnalyticsData, ThrowOnError>) => RequestResult<PostsGetAnalyticsResponses, PostsGetAnalyticsErrors, ThrowOnError>;
|
|
234
250
|
/**
|
|
235
251
|
* Retrieve TikTok creator info
|
|
236
252
|
*
|
|
@@ -464,6 +480,14 @@ type TikTokPostVariant = Extract<PostVariantInput, {
|
|
|
464
480
|
type InstagramPostVariant = Extract<PostVariantInput, {
|
|
465
481
|
platform: 'instagram';
|
|
466
482
|
}>;
|
|
483
|
+
/** The YouTube member of the write variant union — typed native settings
|
|
484
|
+
* (`title`, `privacy_status`, `tags`, `category_id`, `thumbnail_media_id`, the
|
|
485
|
+
* made-for-kids and synthetic-media declarations); `body` is the description.
|
|
486
|
+
* The `short` vs `video` shape is server-DERIVED from the video's duration and
|
|
487
|
+
* size. Narrowed from the contract, never hand-declared. */
|
|
488
|
+
type YouTubePostVariant = Extract<PostVariantInput, {
|
|
489
|
+
platform: 'youtube';
|
|
490
|
+
}>;
|
|
467
491
|
/** A post — its variants, schedule, and derived status (the read resource). */
|
|
468
492
|
type Post = PostsGetResponse;
|
|
469
493
|
/**
|
|
@@ -555,7 +579,7 @@ type MediaResource = MediaGetResponse;
|
|
|
555
579
|
* create/upload and switch over on a settled asset.
|
|
556
580
|
*/
|
|
557
581
|
type MediaKind = NonNullable<MediaResource['kind']>;
|
|
558
|
-
/** A media render target —
|
|
582
|
+
/** A media render target — one of the post platforms. */
|
|
559
583
|
type MediaTarget = NonNullable<NonNullable<MediaCreateData['body']>['targets']>[number];
|
|
560
584
|
/** The create-media response: the resource plus a multipart upload session. */
|
|
561
585
|
type CreateMediaResult = MediaCreateResponse;
|
|
@@ -687,6 +711,64 @@ type XPoll = NonNullable<NonNullable<XPostVariant['settings']>['poll']>;
|
|
|
687
711
|
*/
|
|
688
712
|
declare function xPollDurationLabel(durationMinutes: number): string;
|
|
689
713
|
|
|
714
|
+
/**
|
|
715
|
+
* Presentation helpers for the analytics reads (`postsGetAnalytics`,
|
|
716
|
+
* `connectionsGetAnalytics`). The wire keeps each network's own field names;
|
|
717
|
+
* these carry the domain knowledge a UI needs on top: which metrics apply to a
|
|
718
|
+
* post type, their labels, and their units. Pure — pin them in tests.
|
|
719
|
+
*/
|
|
720
|
+
/** How to read a metric's number: `ratio` is 0–1, `percent` is 0–100. */
|
|
721
|
+
type MetricFormat = 'count' | 'seconds' | 'milliseconds' | 'ratio' | 'percent';
|
|
722
|
+
/** A count, a breakdown keyed by the network's own type names, or `null` when
|
|
723
|
+
* the network didn't report it. */
|
|
724
|
+
type MetricValue = number | Record<string, number> | null;
|
|
725
|
+
interface MetricRow {
|
|
726
|
+
key: string;
|
|
727
|
+
label: string;
|
|
728
|
+
format: MetricFormat;
|
|
729
|
+
value: MetricValue;
|
|
730
|
+
}
|
|
731
|
+
interface MetricPoint {
|
|
732
|
+
date: string;
|
|
733
|
+
value: number;
|
|
734
|
+
}
|
|
735
|
+
declare const ANALYTICS_PLATFORMS: readonly ["tiktok", "instagram", "facebook_page"];
|
|
736
|
+
type AnalyticsPlatform = (typeof ANALYTICS_PLATFORMS)[number];
|
|
737
|
+
/** Whether Postrun reads analytics for this network. */
|
|
738
|
+
declare function hasAnalytics(platform: string): platform is AnalyticsPlatform;
|
|
739
|
+
/** Only a published variant on a network with analytics has metrics to read.
|
|
740
|
+
* Narrows `platform`, so the variant can go straight to code keyed by
|
|
741
|
+
* `AnalyticsPlatform`. */
|
|
742
|
+
declare function hasPostAnalytics<Variant extends {
|
|
743
|
+
platform: PostPlatform;
|
|
744
|
+
status: PostVariantStatus;
|
|
745
|
+
}>(variant: Variant): variant is Variant & {
|
|
746
|
+
platform: AnalyticsPlatform;
|
|
747
|
+
};
|
|
748
|
+
/**
|
|
749
|
+
* The metrics that apply to a post, in display order. Meta reports different
|
|
750
|
+
* metrics for Reels than for other posts, so `postType` (the variant's
|
|
751
|
+
* `post_type`) picks the set; a metric that doesn't apply is left out rather
|
|
752
|
+
* than shown as unreported.
|
|
753
|
+
*/
|
|
754
|
+
declare function postMetricRows(metrics: PostMetrics, postType: PostType | null): MetricRow[];
|
|
755
|
+
/** An account's headline numbers, in display order. */
|
|
756
|
+
declare function accountMetricRows(metrics: AccountMetrics): MetricRow[];
|
|
757
|
+
/**
|
|
758
|
+
* The account's main daily series for a trend line, oldest first, leaving out
|
|
759
|
+
* days the network didn't report. Instagram's is reach: it is the only account
|
|
760
|
+
* metric Meta reports per day.
|
|
761
|
+
*/
|
|
762
|
+
declare function accountTrend(metrics: AccountMetrics): {
|
|
763
|
+
label: string;
|
|
764
|
+
points: MetricPoint[];
|
|
765
|
+
};
|
|
766
|
+
/**
|
|
767
|
+
* A metric for display. `null` (not reported) reads "—", never a made-up 0. A
|
|
768
|
+
* breakdown lists its types largest first: "Like 1.2K · Love 3".
|
|
769
|
+
*/
|
|
770
|
+
declare function formatMetric(value: MetricValue, format?: MetricFormat): string;
|
|
771
|
+
|
|
690
772
|
/**
|
|
691
773
|
* The TikTok composer's publish-options model — the framework-agnostic glue
|
|
692
774
|
* between the live `creator-info` payload and a TikTok post's settings. This is
|
|
@@ -936,4 +1018,4 @@ declare function buildCreatePost(input: ComposePostInput, connections: readonly
|
|
|
936
1018
|
*/
|
|
937
1019
|
declare function buildUpdatePost(input: ComposeUpdateInput, connections?: readonly ConnectionRef[]): UpdatePostInput;
|
|
938
1020
|
|
|
939
|
-
export { type AudiencePrivacyChoice, type ChannelConfig, type Channels, ComposeError, type ComposePostInput, type ComposeUpdateInput, type ConnectSession, type ConnectablePlatform, type Connection, type ConnectionKind, type ConnectionList, type ConnectionRef, type ConnectionStatus, ConnectionsConnectData, ConnectionsConnectErrors, ConnectionsConnectResponse, ConnectionsConnectResponses, ConnectionsDeleteData, ConnectionsDeleteErrors, ConnectionsDeleteResponses, ConnectionsGetData, ConnectionsGetErrors, ConnectionsGetResponse, ConnectionsGetResponses, ConnectionsListAccountsData, ConnectionsListAccountsErrors, ConnectionsListAccountsResponse, ConnectionsListAccountsResponses, ConnectionsListByProfileData, ConnectionsListByProfileErrors, ConnectionsListByProfileResponse, ConnectionsListByProfileResponses, ConnectionsSelectData, ConnectionsSelectErrors, ConnectionsSelectResponses, type CreateMediaInput, type CreateMediaResult, type CreatePostInput, type CreateProfileInput, type DiscoverableAccountList, ErrorCode, type InstagramPostVariant, type LinkedInPollDuration, type LinkedInPostVariant, type ListConnectionsQuery, type ListMediaQuery, type ListPostsQuery, type ListProfilesQuery, LogsGetData, LogsGetErrors, LogsGetResponses, LogsListData, LogsListErrors, LogsListResponses, MediaAbortData, MediaAbortErrors, MediaAbortResponses, MediaCompleteData, MediaCompleteErrors, MediaCompleteResponses, MediaCreateData, MediaCreateErrors, MediaCreateResponse, MediaCreateResponses, MediaDeleteData, MediaDeleteErrors, MediaDeleteResponses, MediaGetData, MediaGetErrors, MediaGetResponse, MediaGetResponses, type MediaInput, type MediaKind, type MediaList, MediaListData, MediaListErrors, MediaListPartsData, MediaListPartsErrors, MediaListPartsResponses, MediaListResponse, MediaListResponses, type MediaResource, MediaSignPartData, MediaSignPartErrors, MediaSignPartResponses, type MediaStatus, type MediaTarget, MediaUpdateData, MediaUpdateErrors, MediaUpdateResponses, type Metadata, type MetadataFilter, type MultipartSession, type Options, POST_PLATFORMS, type Post, type PostContent, type PostList, type PostMetadata, type PostPlatform, type PostStatus, type PostType, type PostValidation, type PostVariant, type PostVariantError, type PostVariantInput, PostrunClient, PostrunError, type PostrunErrorCode, type PostrunFieldError, type PostrunProblem, PostsCreateData, PostsCreateErrors, PostsCreateResponses, PostsDeleteData, PostsDeleteErrors, PostsDeleteResponses, PostsGetData, PostsGetErrors, PostsGetResponse, PostsGetResponses, PostsListData, PostsListErrors, PostsListResponse, PostsListResponses, PostsRetryData, PostsRetryErrors, PostsRetryResponses, PostsUpdateData, PostsUpdateErrors, PostsUpdateResponses, PostsValidateData, PostsValidateErrors, PostsValidateResponse, PostsValidateResponses, type Profile, type ProfileList, ProfilesCreateData, ProfilesCreateErrors, ProfilesCreateResponses, ProfilesDeleteData, ProfilesDeleteErrors, ProfilesDeleteResponses, ProfilesGetData, ProfilesGetErrors, ProfilesGetResponse, ProfilesGetResponses, ProfilesListData, ProfilesListErrors, ProfilesListResponse, ProfilesListResponses, ProfilesUpdateData, ProfilesUpdateErrors, ProfilesUpdateResponses, type PublishMode, type SelectAccountInput, type SettingsFor, TIKTOK_AUDIENCE_REQUIRED_HINT, TIKTOK_BRANDED_CONTENT_POLICY_URL, TIKTOK_BRANDED_CONTENT_PRIVATE_DISABLED_REASON, TIKTOK_CAPTION_MAX, TIKTOK_DISCLOSURE_REQUIRED_HINT, TIKTOK_MUSIC_CONFIRMATION_URL, TIKTOK_PROCESSING_NOTICE, type TikTokBrandKind, type TikTokCreatorInfo, type TikTokInteractionKey, type TikTokInteractionRow, type TikTokOptionsValue, type TikTokPostVariant, type TikTokPrivacyLevel, TiktokCreatorInfoData, TiktokCreatorInfoErrors, TiktokCreatorInfoResponse, TiktokCreatorInfoResponses, TokensMintData, TokensMintErrors, TokensMintResponses, type UpdateMediaInput, type UpdatePostInput, type UpdateProfileInput, UploadError, type UploadFileOptions, type ValidatePostInput, type ValidationIssue, type WaitForMediaOptions, WebhooksCreateEndpointData, WebhooksCreateEndpointErrors, WebhooksCreateEndpointResponses, WebhooksCreatePortalData, WebhooksCreatePortalErrors, WebhooksCreatePortalResponses, WebhooksDeleteEndpointData, WebhooksDeleteEndpointErrors, WebhooksDeleteEndpointResponses, WebhooksGetEndpointData, WebhooksGetEndpointErrors, WebhooksGetEndpointResponses, WebhooksListEndpointsData, WebhooksListEndpointsErrors, WebhooksListEndpointsResponses, WebhooksListEventTypesData, WebhooksListEventTypesErrors, WebhooksListEventTypesResponses, WebhooksPingData, WebhooksPingErrors, WebhooksPingResponses, WebhooksUpdateEndpointData, WebhooksUpdateEndpointErrors, WebhooksUpdateEndpointResponses, type XPoll, type XPostVariant, audiencePrivacyOptions, audienceUnselected, brandedContentDeclared, brandedContentDisabledReason, buildCreatePost, buildUpdatePost, captionMaxFor, commercialDisclosureIncomplete, commercialLabelNotice, connectionsConnect, connectionsDelete, connectionsGet, connectionsListAccounts, connectionsListByProfile, connectionsSelect, defaultTikTokOptions, failedVariants, interactionRows, interactionValueKey, isInteractionForbidden, isPostPlatform, isPublished, linkedinPollDurationLabel, logsGet, logsList, mediaAbort, mediaComplete, mediaCreate, mediaDelete, mediaGet, mediaList, mediaListParts, mediaSignPart, mediaUpdate, parsePrivacyLevel, postsCreate, postsDelete, postsGet, postsList, postsRetry, postsUpdate, postsValidate, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, setBrandKind, setCommercialDisclosure, tiktokCreatorInfo, tiktokDurationError, tiktokOptionsFromSettings, tiktokOptionsReady, tiktokPrivacyLabel, tiktokSettings, toggleInteraction, tokensMint, uploadFile, waitForMedia, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint, xPollDurationLabel };
|
|
1021
|
+
export { AccountMetrics, type AnalyticsPlatform, type AudiencePrivacyChoice, type ChannelConfig, type Channels, ComposeError, type ComposePostInput, type ComposeUpdateInput, type ConnectSession, type ConnectablePlatform, type Connection, type ConnectionKind, type ConnectionList, type ConnectionRef, type ConnectionStatus, ConnectionsConnectData, ConnectionsConnectErrors, ConnectionsConnectResponse, ConnectionsConnectResponses, ConnectionsDeleteData, ConnectionsDeleteErrors, ConnectionsDeleteResponses, ConnectionsGetAnalyticsData, ConnectionsGetAnalyticsErrors, ConnectionsGetAnalyticsResponses, ConnectionsGetData, ConnectionsGetErrors, ConnectionsGetResponse, ConnectionsGetResponses, ConnectionsListAccountsData, ConnectionsListAccountsErrors, ConnectionsListAccountsResponse, ConnectionsListAccountsResponses, ConnectionsListByProfileData, ConnectionsListByProfileErrors, ConnectionsListByProfileResponse, ConnectionsListByProfileResponses, ConnectionsSelectData, ConnectionsSelectErrors, ConnectionsSelectResponses, type CreateMediaInput, type CreateMediaResult, type CreatePostInput, type CreateProfileInput, type DiscoverableAccountList, ErrorCode, type InstagramPostVariant, type LinkedInPollDuration, type LinkedInPostVariant, type ListConnectionsQuery, type ListMediaQuery, type ListPostsQuery, type ListProfilesQuery, LogsGetData, LogsGetErrors, LogsGetResponses, LogsListData, LogsListErrors, LogsListResponses, MediaAbortData, MediaAbortErrors, MediaAbortResponses, MediaCompleteData, MediaCompleteErrors, MediaCompleteResponses, MediaCreateData, MediaCreateErrors, MediaCreateResponse, MediaCreateResponses, MediaDeleteData, MediaDeleteErrors, MediaDeleteResponses, MediaGetData, MediaGetErrors, MediaGetResponse, MediaGetResponses, type MediaInput, type MediaKind, type MediaList, MediaListData, MediaListErrors, MediaListPartsData, MediaListPartsErrors, MediaListPartsResponses, MediaListResponse, MediaListResponses, type MediaResource, MediaSignPartData, MediaSignPartErrors, MediaSignPartResponses, type MediaStatus, type MediaTarget, MediaUpdateData, MediaUpdateErrors, MediaUpdateResponses, type Metadata, type MetadataFilter, type MetricFormat, type MetricPoint, type MetricRow, type MetricValue, type MultipartSession, type Options, POST_PLATFORMS, type Post, type PostContent, type PostList, type PostMetadata, PostMetrics, type PostPlatform, type PostStatus, type PostType, type PostValidation, type PostVariant, type PostVariantError, type PostVariantInput, PostVariantStatus, PostrunClient, PostrunError, type PostrunErrorCode, type PostrunFieldError, type PostrunProblem, PostsCreateData, PostsCreateErrors, PostsCreateResponses, PostsDeleteData, PostsDeleteErrors, PostsDeleteResponses, PostsGetAnalyticsData, PostsGetAnalyticsErrors, PostsGetAnalyticsResponses, PostsGetData, PostsGetErrors, PostsGetResponse, PostsGetResponses, PostsListData, PostsListErrors, PostsListResponse, PostsListResponses, PostsRetryData, PostsRetryErrors, PostsRetryResponses, PostsUpdateData, PostsUpdateErrors, PostsUpdateResponses, PostsValidateData, PostsValidateErrors, PostsValidateResponse, PostsValidateResponses, type Profile, type ProfileList, ProfilesCreateData, ProfilesCreateErrors, ProfilesCreateResponses, ProfilesDeleteData, ProfilesDeleteErrors, ProfilesDeleteResponses, ProfilesGetData, ProfilesGetErrors, ProfilesGetResponse, ProfilesGetResponses, ProfilesListData, ProfilesListErrors, ProfilesListResponse, ProfilesListResponses, ProfilesUpdateData, ProfilesUpdateErrors, ProfilesUpdateResponses, type PublishMode, type SelectAccountInput, type SettingsFor, TIKTOK_AUDIENCE_REQUIRED_HINT, TIKTOK_BRANDED_CONTENT_POLICY_URL, TIKTOK_BRANDED_CONTENT_PRIVATE_DISABLED_REASON, TIKTOK_CAPTION_MAX, TIKTOK_DISCLOSURE_REQUIRED_HINT, TIKTOK_MUSIC_CONFIRMATION_URL, TIKTOK_PROCESSING_NOTICE, type TikTokBrandKind, type TikTokCreatorInfo, type TikTokInteractionKey, type TikTokInteractionRow, type TikTokOptionsValue, type TikTokPostVariant, type TikTokPrivacyLevel, TiktokCreatorInfoData, TiktokCreatorInfoErrors, TiktokCreatorInfoResponse, TiktokCreatorInfoResponses, TokensMintData, TokensMintErrors, TokensMintResponses, type UpdateMediaInput, type UpdatePostInput, type UpdateProfileInput, UploadError, type UploadFileOptions, type ValidatePostInput, type ValidationIssue, type WaitForMediaOptions, WebhooksCreateEndpointData, WebhooksCreateEndpointErrors, WebhooksCreateEndpointResponses, WebhooksCreatePortalData, WebhooksCreatePortalErrors, WebhooksCreatePortalResponses, WebhooksDeleteEndpointData, WebhooksDeleteEndpointErrors, WebhooksDeleteEndpointResponses, WebhooksGetEndpointData, WebhooksGetEndpointErrors, WebhooksGetEndpointResponses, WebhooksListEndpointsData, WebhooksListEndpointsErrors, WebhooksListEndpointsResponses, WebhooksListEventTypesData, WebhooksListEventTypesErrors, WebhooksListEventTypesResponses, WebhooksPingData, WebhooksPingErrors, WebhooksPingResponses, WebhooksUpdateEndpointData, WebhooksUpdateEndpointErrors, WebhooksUpdateEndpointResponses, type XPoll, type XPostVariant, type YouTubePostVariant, accountMetricRows, accountTrend, audiencePrivacyOptions, audienceUnselected, brandedContentDeclared, brandedContentDisabledReason, buildCreatePost, buildUpdatePost, captionMaxFor, commercialDisclosureIncomplete, commercialLabelNotice, connectionsConnect, connectionsDelete, connectionsGet, connectionsGetAnalytics, connectionsListAccounts, connectionsListByProfile, connectionsSelect, defaultTikTokOptions, failedVariants, formatMetric, hasAnalytics, hasPostAnalytics, interactionRows, interactionValueKey, isInteractionForbidden, isPostPlatform, isPublished, linkedinPollDurationLabel, logsGet, logsList, mediaAbort, mediaComplete, mediaCreate, mediaDelete, mediaGet, mediaList, mediaListParts, mediaSignPart, mediaUpdate, parsePrivacyLevel, postMetricRows, postsCreate, postsDelete, postsGet, postsGetAnalytics, postsList, postsRetry, postsUpdate, postsValidate, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, setBrandKind, setCommercialDisclosure, tiktokCreatorInfo, tiktokDurationError, tiktokOptionsFromSettings, tiktokOptionsReady, tiktokPrivacyLabel, tiktokSettings, toggleInteraction, tokensMint, uploadFile, waitForMedia, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint, xPollDurationLabel };
|