@postrun/js 3.3.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.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 ConnectionsListAccountsData, l as ConnectionsListAccountsResponses, m as ConnectionsListAccountsErrors, n as ConnectionsListByProfileData, o as ConnectionsListByProfileResponses, p as ConnectionsListByProfileErrors, q as ConnectionsSelectData, r as ConnectionsSelectResponses, s as ConnectionsSelectErrors, G as GoogleAttachAssetGroupAssetData, t as GoogleAttachAssetGroupAssetResponses, u as GoogleAttachAssetGroupAssetErrors, v as GoogleCreateAdData, w as GoogleCreateAdResponses, x as GoogleCreateAdErrors, y as GoogleCreateAdGroupData, z as GoogleCreateAdGroupResponses, A as GoogleCreateAdGroupErrors, B as GoogleCreateAdGroupCriterionData, D as GoogleCreateAdGroupCriterionResponses, E as GoogleCreateAdGroupCriterionErrors, F as GoogleCreateAssetGroupData, H as GoogleCreateAssetGroupResponses, I as GoogleCreateAssetGroupErrors, J as GoogleCreateAssetGroupSignalData, K as GoogleCreateAssetGroupSignalResponses, L as GoogleCreateAssetGroupSignalErrors, M as GoogleCreateBudgetData, N as GoogleCreateBudgetResponses, P as GoogleCreateBudgetErrors, Q as GoogleCreateCampaignData, S as GoogleCreateCampaignResponses, U as GoogleCreateCampaignErrors, V as GoogleCreateCampaignCriterionData, W as GoogleCreateCampaignCriterionResponses, X as GoogleCreateCampaignCriterionErrors, Y as GoogleCreateConversionActionData, Z as GoogleCreateConversionActionResponses, _ as GoogleCreateConversionActionErrors, $ as GoogleCreateDisplayAdData, a0 as GoogleCreateDisplayAdResponses, a1 as GoogleCreateDisplayAdErrors, a2 as GoogleCreateKeywordData, a3 as GoogleCreateKeywordResponses, a4 as GoogleCreateKeywordErrors, a5 as GoogleCreatePerformanceMaxData, a6 as GoogleCreatePerformanceMaxResponses, a7 as GoogleCreatePerformanceMaxErrors, a8 as GoogleEditAccountData, a9 as GoogleEditAccountResponses, aa as GoogleEditAccountErrors, ab as GoogleEditAdData, ac as GoogleEditAdResponses, ad as GoogleEditAdErrors, ae as GoogleEditAdGroupData, af as GoogleEditAdGroupResponses, ag as GoogleEditAdGroupErrors, ah as GoogleEditAssetGroupData, ai as GoogleEditAssetGroupResponses, aj as GoogleEditAssetGroupErrors, ak as GoogleEditBudgetData, al as GoogleEditBudgetResponses, am as GoogleEditBudgetErrors, an as GoogleEditCampaignData, ao as GoogleEditCampaignResponses, ap as GoogleEditCampaignErrors, aq as GoogleEditDisplayAdData, ar as GoogleEditDisplayAdResponses, as as GoogleEditDisplayAdErrors, at as GoogleEnableAdData, au as GoogleEnableAdResponses, av as GoogleEnableAdErrors, aw as GoogleEnableAdGroupData, ax as GoogleEnableAdGroupResponses, ay as GoogleEnableAdGroupErrors, az as GoogleEnableAssetGroupData, aA as GoogleEnableAssetGroupResponses, aB as GoogleEnableAssetGroupErrors, aC as GoogleEnableCampaignData, aD as GoogleEnableCampaignResponses, aE as GoogleEnableCampaignErrors, aF as GoogleEnableKeywordData, aG as GoogleEnableKeywordResponses, aH as GoogleEnableKeywordErrors, aI as GoogleGetAccountData, aJ as GoogleGetAccountResponses, aK as GoogleGetAccountErrors, aL as GoogleGetAdData, aM as GoogleGetAdResponses, aN as GoogleGetAdErrors, aO as GoogleGetAdGroupData, aP as GoogleGetAdGroupResponses, aQ as GoogleGetAdGroupErrors, aR as GoogleGetAdTreeData, aS as GoogleGetAdTreeResponses, aT as GoogleGetAdTreeErrors, aU as GoogleGetAssetGroupData, aV as GoogleGetAssetGroupResponses, aW as GoogleGetAssetGroupErrors, aX as GoogleGetCampaignData, aY as GoogleGetCampaignResponses, aZ as GoogleGetCampaignErrors, a_ as GoogleGetConversionActionData, a$ as GoogleGetConversionActionResponses, b0 as GoogleGetConversionActionErrors, b1 as GoogleGetConversionStatusData, b2 as GoogleGetConversionStatusResponses, b3 as GoogleGetConversionStatusErrors, b4 as GoogleGetInsightsData, b5 as GoogleGetInsightsResponses, b6 as GoogleGetInsightsErrors, b7 as GoogleGetKeywordData, b8 as GoogleGetKeywordResponses, b9 as GoogleGetKeywordErrors, ba as GoogleListAdGroupCriteriaData, bb as GoogleListAdGroupCriteriaResponses, bc as GoogleListAdGroupCriteriaErrors, bd as GoogleListAdGroupsData, be as GoogleListAdGroupsResponses, bf as GoogleListAdGroupsErrors, bg as GoogleListAdsData, bh as GoogleListAdsResponses, bi as GoogleListAdsErrors, bj as GoogleListAssetGroupAssetsData, bk as GoogleListAssetGroupAssetsResponses, bl as GoogleListAssetGroupAssetsErrors, bm as GoogleListAssetGroupSignalsData, bn as GoogleListAssetGroupSignalsResponses, bo as GoogleListAssetGroupSignalsErrors, bp as GoogleListAssetGroupsData, bq as GoogleListAssetGroupsResponses, br as GoogleListAssetGroupsErrors, bs as GoogleListAudiencesData, bt as GoogleListAudiencesResponses, bu as GoogleListAudiencesErrors, bv as GoogleListCampaignCriteriaData, bw as GoogleListCampaignCriteriaResponses, bx as GoogleListCampaignCriteriaErrors, by as GoogleListCampaignsData, bz as GoogleListCampaignsResponses, bA as GoogleListCampaignsErrors, bB as GoogleListConversionActionsData, bC as GoogleListConversionActionsResponses, bD as GoogleListConversionActionsErrors, bE as GoogleListConversionGoalsData, bF as GoogleListConversionGoalsResponses, bG as GoogleListConversionGoalsErrors, bH as GoogleListConversionRequestsData, bI as GoogleListConversionRequestsResponses, bJ as GoogleListConversionRequestsErrors, bK as GoogleListKeywordsData, bL as GoogleListKeywordsResponses, bM as GoogleListKeywordsErrors, bN as GooglePauseAdData, bO as GooglePauseAdResponses, bP as GooglePauseAdErrors, bQ as GooglePauseAdGroupData, bR as GooglePauseAdGroupResponses, bS as GooglePauseAdGroupErrors, bT as GooglePauseAssetGroupData, bU as GooglePauseAssetGroupResponses, bV as GooglePauseAssetGroupErrors, bW as GooglePauseCampaignData, bX as GooglePauseCampaignResponses, bY as GooglePauseCampaignErrors, bZ as GooglePauseKeywordData, b_ as GooglePauseKeywordResponses, b$ as GooglePauseKeywordErrors, c0 as GoogleRemoveAdData, c1 as GoogleRemoveAdResponses, c2 as GoogleRemoveAdErrors, c3 as GoogleRemoveAdGroupData, c4 as GoogleRemoveAdGroupResponses, c5 as GoogleRemoveAdGroupErrors, c6 as GoogleRemoveAdGroupCriterionData, c7 as GoogleRemoveAdGroupCriterionResponses, c8 as GoogleRemoveAdGroupCriterionErrors, c9 as GoogleRemoveAssetGroupData, ca as GoogleRemoveAssetGroupResponses, cb as GoogleRemoveAssetGroupErrors, cc as GoogleRemoveAssetGroupAssetData, cd as GoogleRemoveAssetGroupAssetResponses, ce as GoogleRemoveAssetGroupAssetErrors, cf as GoogleRemoveAssetGroupSignalData, cg as GoogleRemoveAssetGroupSignalResponses, ch as GoogleRemoveAssetGroupSignalErrors, ci as GoogleRemoveBudgetData, cj as GoogleRemoveBudgetResponses, ck as GoogleRemoveBudgetErrors, cl as GoogleRemoveCampaignData, cm as GoogleRemoveCampaignResponses, cn as GoogleRemoveCampaignErrors, co as GoogleRemoveCampaignCriterionData, cp as GoogleRemoveCampaignCriterionResponses, cq as GoogleRemoveCampaignCriterionErrors, cr as GoogleRemoveConversionActionData, cs as GoogleRemoveConversionActionResponses, ct as GoogleRemoveConversionActionErrors, cu as GoogleRemoveKeywordData, cv as GoogleRemoveKeywordResponses, cw as GoogleRemoveKeywordErrors, cx as GoogleRunGaqlData, cy as GoogleRunGaqlResponses, cz as GoogleRunGaqlErrors, cA as GoogleSearchGeoTargetsData, cB as GoogleSearchGeoTargetsResponses, cC as GoogleSearchGeoTargetsErrors, cD as GoogleSendConversionsData, cE as GoogleSendConversionsResponses, cF as GoogleSendConversionsErrors, cG as GoogleSetAdGroupBidsData, cH as GoogleSetAdGroupBidsResponses, cI as GoogleSetAdGroupBidsErrors, cJ as GoogleSetCampaignBiddingData, cK as GoogleSetCampaignBiddingResponses, cL as GoogleSetCampaignBiddingErrors, cM as GoogleSetCampaignGeoSettingsData, cN as GoogleSetCampaignGeoSettingsResponses, cO as GoogleSetCampaignGeoSettingsErrors, cP as GoogleSetCampaignTargetingSettingData, cQ as GoogleSetCampaignTargetingSettingResponses, cR as GoogleSetCampaignTargetingSettingErrors, cS as GoogleSetConversionGoalData, cT as GoogleSetConversionGoalResponses, cU as GoogleSetConversionGoalErrors, cV as GoogleSetKeywordBidData, cW as GoogleSetKeywordBidResponses, cX as GoogleSetKeywordBidErrors, cY as GoogleUpdateConversionActionData, cZ as GoogleUpdateConversionActionResponses, c_ as GoogleUpdateConversionActionErrors, c$ as GoogleUploadImageAssetData, d0 as GoogleUploadImageAssetResponses, d1 as GoogleUploadImageAssetErrors, d2 as GoogleUploadYoutubeVideoAssetData, d3 as GoogleUploadYoutubeVideoAssetResponses, d4 as GoogleUploadYoutubeVideoAssetErrors, d5 as LogsGetData, d6 as LogsGetResponses, d7 as LogsGetErrors, d8 as LogsListData, d9 as LogsListResponses, da as LogsListErrors, db as MediaAbortData, dc as MediaAbortResponses, dd as MediaAbortErrors, de as MediaCompleteData, df as MediaCompleteResponses, dg as MediaCompleteErrors, dh as MediaCreateData, di as MediaCreateResponses, dj as MediaCreateErrors, dk as MediaDeleteData, dl as MediaDeleteResponses, dm as MediaDeleteErrors, dn as MediaGetData, dp as MediaGetResponses, dq as MediaGetErrors, dr as MediaListData, ds as MediaListResponses, dt as MediaListErrors, du as MediaListPartsData, dv as MediaListPartsResponses, dw as MediaListPartsErrors, dx as MediaSignPartData, dy as MediaSignPartResponses, dz as MediaSignPartErrors, dA as MediaUpdateData, dB as MediaUpdateResponses, dC as MediaUpdateErrors, dD as MetaAccountData, dE as MetaAccountResponses, dF as MetaAccountErrors, dG as MetaAdData, dH as MetaAdResponses, dI as MetaAdErrors, dJ as MetaAdsData, dK as MetaAdsResponses, dL as MetaAdsErrors, dM as MetaAdsetData, dN as MetaAdsetResponses, dO as MetaAdsetErrors, dP as MetaAdsetsData, dQ as MetaAdsetsResponses, dR as MetaAdsetsErrors, dS as MetaCampaignData, dT as MetaCampaignResponses, dU as MetaCampaignErrors, dV as MetaCampaignsData, dW as MetaCampaignsResponses, dX as MetaCampaignsErrors, dY as MetaInsightsData, dZ as MetaInsightsResponses, d_ as MetaInsightsErrors, d$ as PostsCreateData, e0 as PostsCreateResponses, e1 as PostsCreateErrors, e2 as PostsDeleteData, e3 as PostsDeleteResponses, e4 as PostsDeleteErrors, e5 as PostsGetData, e6 as PostsGetResponses, e7 as PostsGetErrors, e8 as PostsListData, e9 as PostsListResponses, ea as PostsListErrors, eb as PostsUpdateData, ec as PostsUpdateResponses, ed as PostsUpdateErrors, ee as PostsValidateData, ef as PostsValidateResponses, eg as PostsValidateErrors, eh as ProfilesCreateData, ei as ProfilesCreateResponses, ej as ProfilesCreateErrors, ek as ProfilesDeleteData, el as ProfilesDeleteResponses, em as ProfilesDeleteErrors, en as ProfilesGetData, eo as ProfilesGetResponses, ep as ProfilesGetErrors, eq as ProfilesListData, er as ProfilesListResponses, es as ProfilesListErrors, et as ProfilesUpdateData, eu as ProfilesUpdateResponses, ev as ProfilesUpdateErrors, ew as TiktokAdsCreateAdData, ex as TiktokAdsCreateAdResponses, ey as TiktokAdsCreateAdErrors, ez as TiktokAdsCreateAdGroupData, eA as TiktokAdsCreateAdGroupResponses, eB as TiktokAdsCreateAdGroupErrors, eC as TiktokAdsCreateCampaignData, eD as TiktokAdsCreateCampaignResponses, eE as TiktokAdsCreateCampaignErrors, eF as TiktokAdsCreateIdentityData, eG as TiktokAdsCreateIdentityResponses, eH as TiktokAdsCreateIdentityErrors, eI as TiktokAdsGetAdTreeData, eJ as TiktokAdsGetAdTreeResponses, eK as TiktokAdsGetAdTreeErrors, eL as TiktokAdsGetInsightsData, eM as TiktokAdsGetInsightsResponses, eN as TiktokAdsGetInsightsErrors, eO as TiktokAdsListAdGroupsData, eP as TiktokAdsListAdGroupsResponses, eQ as TiktokAdsListAdGroupsErrors, eR as TiktokAdsListAdsData, eS as TiktokAdsListAdsResponses, eT as TiktokAdsListAdsErrors, eU as TiktokAdsListAdvertisersData, eV as TiktokAdsListAdvertisersResponses, eW as TiktokAdsListAdvertisersErrors, eX as TiktokAdsListBusinessCentersData, eY as TiktokAdsListBusinessCentersResponses, eZ as TiktokAdsListBusinessCentersErrors, e_ as TiktokAdsListCampaignsData, e$ as TiktokAdsListCampaignsResponses, f0 as TiktokAdsListCampaignsErrors, f1 as TiktokAdsListIdentitiesData, f2 as TiktokAdsListIdentitiesResponses, f3 as TiktokAdsListIdentitiesErrors, f4 as TiktokAdsRemoveAdData, f5 as TiktokAdsRemoveAdResponses, f6 as TiktokAdsRemoveAdErrors, f7 as TiktokAdsRemoveAdGroupData, f8 as TiktokAdsRemoveAdGroupResponses, f9 as TiktokAdsRemoveAdGroupErrors, fa as TiktokAdsRemoveCampaignData, fb as TiktokAdsRemoveCampaignResponses, fc as TiktokAdsRemoveCampaignErrors, fd as TiktokAdsUpdateAdGroupBudgetData, fe as TiktokAdsUpdateAdGroupBudgetResponses, ff as TiktokAdsUpdateAdGroupBudgetErrors, fg as TiktokAdsUpdateAdGroupStatusData, fh as TiktokAdsUpdateAdGroupStatusResponses, fi as TiktokAdsUpdateAdGroupStatusErrors, fj as TiktokAdsUpdateAdStatusData, fk as TiktokAdsUpdateAdStatusResponses, fl as TiktokAdsUpdateAdStatusErrors, fm as TiktokAdsUpdateCampaignBudgetData, fn as TiktokAdsUpdateCampaignBudgetResponses, fo as TiktokAdsUpdateCampaignBudgetErrors, fp as TiktokAdsUpdateCampaignStatusData, fq as TiktokAdsUpdateCampaignStatusResponses, fr as TiktokAdsUpdateCampaignStatusErrors, fs as TiktokCreatorInfoData, ft as TiktokCreatorInfoResponses, fu as TiktokCreatorInfoErrors, fv as TokensMintData, fw as TokensMintResponses, fx as TokensMintErrors, fy as WebhooksCreateEndpointData, fz as WebhooksCreateEndpointResponses, fA as WebhooksCreateEndpointErrors, fB as WebhooksCreatePortalData, fC as WebhooksCreatePortalResponses, fD as WebhooksCreatePortalErrors, fE as WebhooksDeleteEndpointData, fF as WebhooksDeleteEndpointResponses, fG as WebhooksDeleteEndpointErrors, fH as WebhooksGetEndpointData, fI as WebhooksGetEndpointResponses, fJ as WebhooksGetEndpointErrors, fK as WebhooksListEndpointsData, fL as WebhooksListEndpointsResponses, fM as WebhooksListEndpointsErrors, fN as WebhooksListEventTypesData, fO as WebhooksListEventTypesResponses, fP as WebhooksListEventTypesErrors, fQ as WebhooksPingData, fR as WebhooksPingResponses, fS as WebhooksPingErrors, fT as WebhooksUpdateEndpointData, fU as WebhooksUpdateEndpointResponses, fV as WebhooksUpdateEndpointErrors, fW as ErrorCode, fX as MediaGetResponse, fY as ConnectionsConnectResponse, fZ as ConnectionsGetResponse, f_ as ConnectionsListByProfileResponse, f$ as MediaCreateResponse, g0 as ConnectionsListAccountsResponse, g1 as MediaListResponse, g2 as PostsGetResponse, g3 as PostsListResponse, g4 as PostsValidateResponse, g5 as ProfilesGetResponse, g6 as ProfilesListResponse, g7 as TiktokCreatorInfoResponse, g8 as PostrunClient, g9 as GoogleAdTreeNode } from './types.gen-D7Xl9jUZ.js';
2
- export { ga as ClientOptions, gb as ConnectionsConnectError, gc as ConnectionsDeleteError, gd as ConnectionsDeleteResponse, ge as ConnectionsGetError, gf as ConnectionsListAccountsError, gg as ConnectionsListByProfileError, gh as ConnectionsSelectError, gi as ConnectionsSelectResponse, gj as CreatePostBody, gk as DiscoverableAccount, gl as ErrorSource, gm as GoogleAdTree, gn as GoogleAdsAd, go as GoogleAdsAdGroup, gp as GoogleAdsAdGroupCriterion, gq as GoogleAdsAssetFieldTypeFull, gr as GoogleAdsAssetGroup, gs as GoogleAdsAssetGroupAsset, gt as GoogleAdsAssetGroupSignal, gu as GoogleAdsAssetGroupSignalRequest, gv as GoogleAdsAttachAssetRequest, gw as GoogleAdsAudience, gx as GoogleAdsCampaignBidding, gy as GoogleAdsCampaignCriterion, gz as GoogleAdsConversionConsent, gA as GoogleAdsConversionEvent, gB as GoogleAdsConversionRequest, gC as GoogleAdsConversionStatus, gD as GoogleAdsConversionStatusReason, gE as GoogleAdsConversionUserIdentifier, gF as GoogleAdsConversionWarning, gG as GoogleAdsCreateAdGroupCriterionRequest, gH as GoogleAdsCreateAssetGroupRequest, gI as GoogleAdsCreateCampaignCriterionRequest, gJ as GoogleAdsCreatePerformanceMaxRequest, gK as GoogleAdsCreatePerformanceMaxResult, gL as GoogleAdsCreateResult, gM as GoogleAdsDeleteResult, gN as GoogleAdsEditAssetGroupRequest, gO as GoogleAdsEditResult, gP as GoogleAdsGeoSettingsRequest, gQ as GoogleAdsGeoTargetConstant, gR as GoogleAdsInsightLevel, gS as GoogleAdsInsightMetric, gT as GoogleAdsInsightSegment, gU as GoogleAdsInsights, gV as GoogleAdsInsightsQuery, gW as GoogleAdsInsightsRow, gX as GoogleAdsKeyword, gY as GoogleAdsPmaxAssetSet, gZ as GoogleAdsReadStatusFilter, g_ as GoogleAdsSendConversionsResult, g$ as GoogleAdsUpdateResponsiveDisplayAdRequest, h0 as GoogleAdsUpdateResponsiveSearchAdRequest, h1 as GoogleAdsUploadYoutubeVideoAssetRequest, h2 as GoogleAdsUrlCustomParameter, h3 as GoogleAttachAssetGroupAssetError, h4 as GoogleAttachAssetGroupAssetResponse, h5 as GoogleCreateAdError, h6 as GoogleCreateAdGroupCriterionError, h7 as GoogleCreateAdGroupCriterionResponse, h8 as GoogleCreateAdGroupError, h9 as GoogleCreateAdGroupResponse, ha as GoogleCreateAdResponse, hb as GoogleCreateAssetGroupError, hc as GoogleCreateAssetGroupResponse, hd as GoogleCreateAssetGroupSignalError, he as GoogleCreateAssetGroupSignalResponse, hf as GoogleCreateBudgetError, hg as GoogleCreateBudgetResponse, hh as GoogleCreateCampaignCriterionError, hi as GoogleCreateCampaignCriterionResponse, hj as GoogleCreateCampaignError, hk as GoogleCreateCampaignResponse, hl as GoogleCreateConversionActionError, hm as GoogleCreateConversionActionResponse, hn as GoogleCreateDisplayAdError, ho as GoogleCreateDisplayAdResponse, hp as GoogleCreateKeywordError, hq as GoogleCreateKeywordResponse, hr as GoogleCreatePerformanceMaxError, hs as GoogleCreatePerformanceMaxResponse, ht as GoogleEditAccountError, hu as GoogleEditAccountResponse, hv as GoogleEditAdError, hw as GoogleEditAdGroupError, hx as GoogleEditAdGroupResponse, hy as GoogleEditAdResponse, hz as GoogleEditAssetGroupError, hA as GoogleEditAssetGroupResponse, hB as GoogleEditBudgetError, hC as GoogleEditBudgetResponse, hD as GoogleEditCampaignError, hE as GoogleEditCampaignResponse, hF as GoogleEditDisplayAdError, hG as GoogleEditDisplayAdResponse, hH as GoogleEnableAdError, hI as GoogleEnableAdGroupError, hJ as GoogleEnableAdGroupResponse, hK as GoogleEnableAdResponse, hL as GoogleEnableAssetGroupError, hM as GoogleEnableAssetGroupResponse, hN as GoogleEnableCampaignError, hO as GoogleEnableCampaignResponse, hP as GoogleEnableKeywordError, hQ as GoogleEnableKeywordResponse, hR as GoogleGetAccountError, hS as GoogleGetAccountResponse, hT as GoogleGetAdError, hU as GoogleGetAdGroupError, hV as GoogleGetAdGroupResponse, hW as GoogleGetAdResponse, hX as GoogleGetAdTreeError, hY as GoogleGetAdTreeResponse, hZ as GoogleGetAssetGroupError, h_ as GoogleGetAssetGroupResponse, h$ as GoogleGetCampaignError, i0 as GoogleGetCampaignResponse, i1 as GoogleGetConversionActionError, i2 as GoogleGetConversionActionResponse, i3 as GoogleGetConversionStatusError, i4 as GoogleGetConversionStatusResponse, i5 as GoogleGetInsightsError, i6 as GoogleGetInsightsResponse, i7 as GoogleGetKeywordError, i8 as GoogleGetKeywordResponse, i9 as GoogleListAdGroupCriteriaError, ia as GoogleListAdGroupCriteriaResponse, ib as GoogleListAdGroupsError, ic as GoogleListAdGroupsResponse, id as GoogleListAdsError, ie as GoogleListAdsResponse, ig as GoogleListAssetGroupAssetsError, ih as GoogleListAssetGroupAssetsResponse, ii as GoogleListAssetGroupSignalsError, ij as GoogleListAssetGroupSignalsResponse, ik as GoogleListAssetGroupsError, il as GoogleListAssetGroupsResponse, im as GoogleListAudiencesError, io as GoogleListAudiencesResponse, ip as GoogleListCampaignCriteriaError, iq as GoogleListCampaignCriteriaResponse, ir as GoogleListCampaignsError, is as GoogleListCampaignsResponse, it as GoogleListConversionActionsError, iu as GoogleListConversionActionsResponse, iv as GoogleListConversionGoalsError, iw as GoogleListConversionGoalsResponse, ix as GoogleListConversionRequestsError, iy as GoogleListConversionRequestsResponse, iz as GoogleListKeywordsError, iA as GoogleListKeywordsResponse, iB as GooglePauseAdError, iC as GooglePauseAdGroupError, iD as GooglePauseAdGroupResponse, iE as GooglePauseAdResponse, iF as GooglePauseAssetGroupError, iG as GooglePauseAssetGroupResponse, iH as GooglePauseCampaignError, iI as GooglePauseCampaignResponse, iJ as GooglePauseKeywordError, iK as GooglePauseKeywordResponse, iL as GoogleRemoveAdError, iM as GoogleRemoveAdGroupCriterionError, iN as GoogleRemoveAdGroupCriterionResponse, iO as GoogleRemoveAdGroupError, iP as GoogleRemoveAdGroupResponse, iQ as GoogleRemoveAdResponse, iR as GoogleRemoveAssetGroupAssetError, iS as GoogleRemoveAssetGroupAssetResponse, iT as GoogleRemoveAssetGroupError, iU as GoogleRemoveAssetGroupResponse, iV as GoogleRemoveAssetGroupSignalError, iW as GoogleRemoveAssetGroupSignalResponse, iX as GoogleRemoveBudgetError, iY as GoogleRemoveBudgetResponse, iZ as GoogleRemoveCampaignCriterionError, i_ as GoogleRemoveCampaignCriterionResponse, i$ as GoogleRemoveCampaignError, j0 as GoogleRemoveCampaignResponse, j1 as GoogleRemoveConversionActionError, j2 as GoogleRemoveConversionActionResponse, j3 as GoogleRemoveKeywordError, j4 as GoogleRemoveKeywordResponse, j5 as GoogleRunGaqlError, j6 as GoogleRunGaqlResponse, j7 as GoogleSearchGeoTargetsError, j8 as GoogleSearchGeoTargetsResponse, j9 as GoogleSendConversionsError, ja as GoogleSendConversionsResponse, jb as GoogleSetAdGroupBidsError, jc as GoogleSetAdGroupBidsResponse, jd as GoogleSetCampaignBiddingError, je as GoogleSetCampaignBiddingResponse, jf as GoogleSetCampaignGeoSettingsError, jg as GoogleSetCampaignGeoSettingsResponse, jh as GoogleSetCampaignTargetingSettingError, ji as GoogleSetCampaignTargetingSettingResponse, jj as GoogleSetConversionGoalError, jk as GoogleSetConversionGoalResponse, jl as GoogleSetKeywordBidError, jm as GoogleSetKeywordBidResponse, jn as GoogleUpdateConversionActionError, jo as GoogleUpdateConversionActionResponse, jp as GoogleUploadImageAssetError, jq as GoogleUploadImageAssetResponse, jr as GoogleUploadYoutubeVideoAssetError, js as GoogleUploadYoutubeVideoAssetResponse, jt as IdempotencyKey, ju as LogsGetError, jv as LogsGetResponse, jw as LogsListError, jx as LogsListResponse, jy as Media, jz as MediaAbortError, jA as MediaAbortResponse, jB as MediaCompleteError, jC as MediaCompleteResponse, jD as MediaCreateError, jE as MediaDeleteError, jF as MediaDeleteResponse, jG as MediaGetError, jH as MediaListError, jI as MediaListPartsError, jJ as MediaListPartsResponse, jK as MediaSignPartError, jL as MediaSignPartResponse, jM as MediaStage, jN as MediaUpdateError, jO as MediaUpdateResponse, jP as MetaAccountError, jQ as MetaAccountResponse, jR as MetaAdError, jS as MetaAdResponse, jT as MetaAdsError, jU as MetaAdsResponse, jV as MetaAdsetError, jW as MetaAdsetResponse, jX as MetaAdsetsError, jY as MetaAdsetsResponse, jZ as MetaCampaignError, j_ as MetaCampaignResponse, j$ as MetaCampaignsError, k0 as MetaCampaignsResponse, k1 as MetaInsightsError, k2 as MetaInsightsResponse, k3 as PostVariantStatus, k4 as PostrunClientOptions, k5 as PostsCreateError, k6 as PostsCreateResponse, k7 as PostsDeleteError, k8 as PostsDeleteResponse, k9 as PostsGetError, ka as PostsListError, kb as PostsUpdateError, kc as PostsUpdateResponse, kd as PostsValidateError, ke as ProfilesCreateError, kf as ProfilesCreateResponse, kg as ProfilesDeleteError, kh as ProfilesDeleteResponse, ki as ProfilesGetError, kj as ProfilesListError, kk as ProfilesUpdateError, kl as ProfilesUpdateResponse, km as TikTokAd, kn as TikTokAdFormat, ko as TikTokAdGroup, kp as TikTokAdGroupBudgetKind, kq as TikTokAdGroupBudgetMode, kr as TikTokAdGroupBudgetResult, ks as TikTokAdGroupPlacement, kt as TikTokAdGroupRemoveResult, ku as TikTokAdGroupStatusResult, kv as TikTokAdIdentityType, kw as TikTokAdRemoveResult, kx as TikTokAdStatusResult, ky as TikTokAdTreeNode, kz as TikTokAdsInsightsQuery, kA as TikTokAdsInsightsRow, kB as TikTokAdsTree, kC as TikTokAdsTreeQuery, kD as TikTokAdvertiser, kE as TikTokBudgetMode, kF as TikTokBusinessCenter, kG as TikTokCampaign, kH as TikTokCampaignBudgetResult, kI as TikTokCampaignObjective, kJ as TikTokCampaignRemoveResult, kK as TikTokCampaignStatusResult, kL as TikTokDeepBidType, kM as TikTokIdentity, kN as TikTokIdentityType, kO as TikTokOperationStatus, kP as TikTokOptimizationGoal, kQ as TikTokPromotionType, kR as TikTokRemoveOperationStatus, kS as TiktokAdsCreateAdError, kT as TiktokAdsCreateAdGroupError, kU as TiktokAdsCreateAdGroupResponse, kV as TiktokAdsCreateAdResponse, kW as TiktokAdsCreateCampaignError, kX as TiktokAdsCreateCampaignResponse, kY as TiktokAdsCreateIdentityError, kZ as TiktokAdsCreateIdentityResponse, k_ as TiktokAdsGetAdTreeError, k$ as TiktokAdsGetAdTreeResponse, l0 as TiktokAdsGetInsightsError, l1 as TiktokAdsGetInsightsResponse, l2 as TiktokAdsListAdGroupsError, l3 as TiktokAdsListAdGroupsResponse, l4 as TiktokAdsListAdsError, l5 as TiktokAdsListAdsResponse, l6 as TiktokAdsListAdvertisersError, l7 as TiktokAdsListAdvertisersResponse, l8 as TiktokAdsListBusinessCentersError, l9 as TiktokAdsListBusinessCentersResponse, la as TiktokAdsListCampaignsError, lb as TiktokAdsListCampaignsResponse, lc as TiktokAdsListIdentitiesError, ld as TiktokAdsListIdentitiesResponse, le as TiktokAdsRemoveAdError, lf as TiktokAdsRemoveAdGroupError, lg as TiktokAdsRemoveAdGroupResponse, lh as TiktokAdsRemoveAdResponse, li as TiktokAdsRemoveCampaignError, lj as TiktokAdsRemoveCampaignResponse, lk as TiktokAdsUpdateAdGroupBudgetError, ll as TiktokAdsUpdateAdGroupBudgetResponse, lm as TiktokAdsUpdateAdGroupStatusError, ln as TiktokAdsUpdateAdGroupStatusResponse, lo as TiktokAdsUpdateAdStatusError, lp as TiktokAdsUpdateAdStatusResponse, lq as TiktokAdsUpdateCampaignBudgetError, lr as TiktokAdsUpdateCampaignBudgetResponse, ls as TiktokAdsUpdateCampaignStatusError, lt as TiktokAdsUpdateCampaignStatusResponse, lu as TiktokCreatorInfoError, lv as TokensMintError, lw as TokensMintResponse, lx as WebhooksCreateEndpointError, ly as WebhooksCreateEndpointResponse, lz as WebhooksCreatePortalError, lA as WebhooksCreatePortalResponse, lB as WebhooksDeleteEndpointError, lC as WebhooksDeleteEndpointResponse, lD as WebhooksGetEndpointError, lE as WebhooksGetEndpointResponse, lF as WebhooksListEndpointsError, lG as WebhooksListEndpointsResponse, lH as WebhooksListEventTypesError, lI as WebhooksListEventTypesResponse, lJ as WebhooksPingError, lK as WebhooksPingResponse, lL as WebhooksUpdateEndpointError, lM as WebhooksUpdateEndpointResponse, lN as createPostrunClient } from './types.gen-D7Xl9jUZ.js';
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 ConnectionsListAccountsData, l as ConnectionsListAccountsResponses, m as ConnectionsListAccountsErrors, n as ConnectionsListByProfileData, o as ConnectionsListByProfileResponses, p as ConnectionsListByProfileErrors, q as ConnectionsSelectData, r as ConnectionsSelectResponses, s as ConnectionsSelectErrors, L as LogsGetData, t as LogsGetResponses, u as LogsGetErrors, v as LogsListData, w as LogsListResponses, x as LogsListErrors, M as MediaAbortData, y as MediaAbortResponses, z as MediaAbortErrors, A as MediaCompleteData, B as MediaCompleteResponses, D as MediaCompleteErrors, E as MediaCreateData, F as MediaCreateResponses, G as MediaCreateErrors, H as MediaDeleteData, I as MediaDeleteResponses, J as MediaDeleteErrors, K as MediaGetData, N as MediaGetResponses, P as MediaGetErrors, Q as MediaListData, S as MediaListResponses, U as MediaListErrors, V as MediaListPartsData, W as MediaListPartsResponses, X as MediaListPartsErrors, Y as MediaSignPartData, Z as MediaSignPartResponses, _ as MediaSignPartErrors, $ as MediaUpdateData, a0 as MediaUpdateResponses, a1 as MediaUpdateErrors, a2 as PostsCreateData, a3 as PostsCreateResponses, a4 as PostsCreateErrors, a5 as PostsDeleteData, a6 as PostsDeleteResponses, a7 as PostsDeleteErrors, a8 as PostsGetData, a9 as PostsGetResponses, aa as PostsGetErrors, ab as PostsListData, ac as PostsListResponses, ad as PostsListErrors, ae as PostsRetryData, af as PostsRetryResponses, ag as PostsRetryErrors, ah as PostsUpdateData, ai as PostsUpdateResponses, aj as PostsUpdateErrors, ak as PostsValidateData, al as PostsValidateResponses, am as PostsValidateErrors, an as ProfilesCreateData, ao as ProfilesCreateResponses, ap as ProfilesCreateErrors, aq as ProfilesDeleteData, ar as ProfilesDeleteResponses, as as ProfilesDeleteErrors, at as ProfilesGetData, au as ProfilesGetResponses, av as ProfilesGetErrors, aw as ProfilesListData, ax as ProfilesListResponses, ay as ProfilesListErrors, az as ProfilesUpdateData, aA as ProfilesUpdateResponses, aB as ProfilesUpdateErrors, aC as TiktokCreatorInfoData, aD as TiktokCreatorInfoResponses, aE as TiktokCreatorInfoErrors, aF as TokensMintData, aG as TokensMintResponses, aH as TokensMintErrors, aI as WebhooksCreateEndpointData, aJ as WebhooksCreateEndpointResponses, aK as WebhooksCreateEndpointErrors, aL as WebhooksCreatePortalData, aM as WebhooksCreatePortalResponses, aN as WebhooksCreatePortalErrors, aO as WebhooksDeleteEndpointData, aP as WebhooksDeleteEndpointResponses, aQ as WebhooksDeleteEndpointErrors, aR as WebhooksGetEndpointData, aS as WebhooksGetEndpointResponses, aT as WebhooksGetEndpointErrors, aU as WebhooksListEndpointsData, aV as WebhooksListEndpointsResponses, aW as WebhooksListEndpointsErrors, aX as WebhooksListEventTypesData, aY as WebhooksListEventTypesResponses, aZ as WebhooksListEventTypesErrors, a_ as WebhooksPingData, a$ as WebhooksPingResponses, b0 as WebhooksPingErrors, b1 as WebhooksUpdateEndpointData, b2 as WebhooksUpdateEndpointResponses, b3 as WebhooksUpdateEndpointErrors, b4 as ErrorCode, b5 as TiktokCreatorInfoResponse, b6 as MediaGetResponse, b7 as ConnectionsConnectResponse, b8 as ConnectionsGetResponse, b9 as ConnectionsListByProfileResponse, ba as MediaCreateResponse, bb as ConnectionsListAccountsResponse, bc as MediaListResponse, bd as PostsGetResponse, be as PostsListResponse, bf as PostsValidateResponse, bg as ProfilesGetResponse, bh as ProfilesListResponse, bi as PostrunClient } from './types.gen-DjaUEnXO.js';
2
+ export { bj as ClientOptions, bk as ConnectionsConnectError, bl as ConnectionsDeleteError, bm as ConnectionsDeleteResponse, bn as ConnectionsGetError, bo as ConnectionsListAccountsError, bp as ConnectionsListByProfileError, bq as ConnectionsSelectError, br as ConnectionsSelectResponse, bs as CreatePostBody, bt as DiscoverableAccount, bu as ErrorSource, bv as IdempotencyKey, bw as LogsGetError, bx as LogsGetResponse, by as LogsListError, bz as LogsListResponse, bA as Media, bB as MediaAbortError, bC as MediaAbortResponse, bD as MediaCompleteError, bE as MediaCompleteResponse, bF as MediaCreateError, bG as MediaDeleteError, bH as MediaDeleteResponse, bI as MediaGetError, bJ as MediaListError, bK as MediaListPartsError, bL as MediaListPartsResponse, bM as MediaSignPartError, bN as MediaSignPartResponse, bO as MediaStage, bP as MediaUpdateError, bQ as MediaUpdateResponse, bR as PostVariantStatus, bS as PostWriteResult, bT as PostrunClientOptions, bU as PostsCreateError, bV as PostsCreateResponse, bW as PostsDeleteError, bX as PostsDeleteResponse, bY as PostsGetError, bZ as PostsListError, b_ as PostsRetryError, b$ as PostsRetryResponse, c0 as PostsUpdateError, c1 as PostsUpdateResponse, c2 as PostsValidateError, c3 as ProfilesCreateError, c4 as ProfilesCreateResponse, c5 as ProfilesDeleteError, c6 as ProfilesDeleteResponse, c7 as ProfilesGetError, c8 as ProfilesListError, c9 as ProfilesUpdateError, ca as ProfilesUpdateResponse, cb as TiktokCreatorInfoError, cc as TokensMintError, cd as TokensMintResponse, ce as WebhooksCreateEndpointError, cf as WebhooksCreateEndpointResponse, cg as WebhooksCreatePortalError, ch as WebhooksCreatePortalResponse, ci as WebhooksDeleteEndpointError, cj as WebhooksDeleteEndpointResponse, ck as WebhooksGetEndpointError, cl as WebhooksGetEndpointResponse, cm as WebhooksListEndpointsError, cn as WebhooksListEndpointsResponse, co as WebhooksListEventTypesError, cp as WebhooksListEventTypesResponse, cq as WebhooksPingError, cr as WebhooksPingResponse, cs as WebhooksUpdateEndpointError, ct as WebhooksUpdateEndpointResponse, cu as createPostrunClient } from './types.gen-DjaUEnXO.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> & {
@@ -84,7 +84,7 @@ declare const connectionsGet: <ThrowOnError extends boolean = true>(options: Opt
84
84
  *
85
85
  * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `connections:write` scoped to the profile that owns the connection.
86
86
  *
87
- * Activates a pending connection by choosing which external account (e.g. which Meta ad account) it uses. The account must be one reachable through the connection’s OAuth grant; its canonical name + currency are resolved server-side from discovery, so the stored display values can’t be spoofed by the caller.
87
+ * Activates a pending connection by choosing which external account (e.g. which Facebook Page) it uses. The account must be one reachable through the connection’s OAuth grant; its canonical name + currency are resolved server-side from discovery, so the stored display values can’t be spoofed by the caller.
88
88
  */
89
89
  declare const connectionsSelect: <ThrowOnError extends boolean = true>(options: Options<ConnectionsSelectData, ThrowOnError>) => RequestResult<ConnectionsSelectResponses, ConnectionsSelectErrors, ThrowOnError>;
90
90
  /**
@@ -92,7 +92,7 @@ declare const connectionsSelect: <ThrowOnError extends boolean = true>(options:
92
92
  *
93
93
  * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `connections:read` scoped to the profile that owns the connection.
94
94
  *
95
- * Lists the external ad accounts reachable through this connection’s OAuth grant — the picker shown after OAuth, while the connection is still pending account selection. Returns 404 if the connection does not exist in your account, and 501 if account discovery is not yet supported for the connection’s platform.
95
+ * Lists the external accounts reachable through this connection’s OAuth grant — the picker shown after OAuth, while the connection is still pending account selection. Returns 404 if the connection does not exist in your account, and 501 if account discovery is not yet supported for the connection’s platform.
96
96
  */
97
97
  declare const connectionsListAccounts: <ThrowOnError extends boolean = true>(options: Options<ConnectionsListAccountsData, ThrowOnError>) => RequestResult<ConnectionsListAccountsResponses, ConnectionsListAccountsErrors, ThrowOnError>;
98
98
  /**
@@ -216,853 +216,29 @@ declare const postsGet: <ThrowOnError extends boolean = true>(options: Options<P
216
216
  */
217
217
  declare const postsUpdate: <ThrowOnError extends boolean = true>(options: Options<PostsUpdateData, ThrowOnError>) => RequestResult<PostsUpdateResponses, PostsUpdateErrors, ThrowOnError>;
218
218
  /**
219
- * Validate a post
220
- *
221
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `posts:read` scoped to the target profile.
222
- *
223
- * 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.
224
- */
225
- declare const postsValidate: <ThrowOnError extends boolean = true>(options: Options<PostsValidateData, ThrowOnError>) => RequestResult<PostsValidateResponses, PostsValidateErrors, ThrowOnError>;
226
- /**
227
- * Retrieve the Meta ad account
228
- *
229
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
230
- *
231
- * Retrieves the Meta ad account this connection is linked to — name, currency, status, and spend. Monetary fields are in the account currency’s minor units.
232
- */
233
- declare const metaAccount: <ThrowOnError extends boolean = true>(options: Options<MetaAccountData, ThrowOnError>) => RequestResult<MetaAccountResponses, MetaAccountErrors, ThrowOnError>;
234
- /**
235
- * Retrieve Meta ad insights
236
- *
237
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
238
- *
239
- * Retrieves performance insights for the connection’s Meta ad account, aggregated at the chosen `level` over a date window. Metric values are strings, in the account currency’s units.
240
- */
241
- declare const metaInsights: <ThrowOnError extends boolean = true>(options: Options<MetaInsightsData, ThrowOnError>) => RequestResult<MetaInsightsResponses, MetaInsightsErrors, ThrowOnError>;
242
- /**
243
- * List Meta campaigns
244
- *
245
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
246
- *
247
- * Lists the campaigns under the connection’s Meta ad account, with each campaign’s status, objective, and budgets (budgets in the account currency’s minor units).
248
- */
249
- declare const metaCampaigns: <ThrowOnError extends boolean = true>(options: Options<MetaCampaignsData, ThrowOnError>) => RequestResult<MetaCampaignsResponses, MetaCampaignsErrors, ThrowOnError>;
250
- /**
251
- * Retrieve a Meta campaign
252
- *
253
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
254
- *
255
- * Retrieves a single campaign under the connection’s Meta ad account by its campaign id — status, objective, and budgets.
256
- */
257
- declare const metaCampaign: <ThrowOnError extends boolean = true>(options: Options<MetaCampaignData, ThrowOnError>) => RequestResult<MetaCampaignResponses, MetaCampaignErrors, ThrowOnError>;
258
- /**
259
- * List Meta ad sets
260
- *
261
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
262
- *
263
- * Lists the ad sets under the connection’s Meta ad account, with each ad set’s status, parent campaign, budgets, and optimization (budgets in the account currency’s minor units).
264
- */
265
- declare const metaAdsets: <ThrowOnError extends boolean = true>(options: Options<MetaAdsetsData, ThrowOnError>) => RequestResult<MetaAdsetsResponses, MetaAdsetsErrors, ThrowOnError>;
266
- /**
267
- * Retrieve a Meta ad set
268
- *
269
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
270
- *
271
- * Retrieves a single ad set under the connection’s Meta ad account by its ad set id — status, parent campaign, budgets, and optimization.
272
- */
273
- declare const metaAdset: <ThrowOnError extends boolean = true>(options: Options<MetaAdsetData, ThrowOnError>) => RequestResult<MetaAdsetResponses, MetaAdsetErrors, ThrowOnError>;
274
- /**
275
- * List Meta ads
276
- *
277
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
278
- *
279
- * Lists the ads under the connection’s Meta ad account, with each ad’s status, parent ad set and campaign ids, and timestamps.
280
- */
281
- declare const metaAds: <ThrowOnError extends boolean = true>(options: Options<MetaAdsData, ThrowOnError>) => RequestResult<MetaAdsResponses, MetaAdsErrors, ThrowOnError>;
282
- /**
283
- * Retrieve a Meta ad
284
- *
285
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
286
- *
287
- * Retrieves a single ad under the connection’s Meta ad account by its ad id — status, parent ad set and campaign ids, and timestamps.
288
- */
289
- declare const metaAd: <ThrowOnError extends boolean = true>(options: Options<MetaAdData, ThrowOnError>) => RequestResult<MetaAdResponses, MetaAdErrors, ThrowOnError>;
290
- /**
291
- * Retrieve the connected Google Ads account
292
- *
293
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
294
- *
295
- * Returns the Google Ads account (the `customer` resource) backing this connection — id, descriptive name, currency, time zone, status, and whether it is a manager (MCC) or test account.
296
- */
297
- declare const googleGetAccount: <ThrowOnError extends boolean = true>(options: Options<GoogleGetAccountData, ThrowOnError>) => RequestResult<GoogleGetAccountResponses, GoogleGetAccountErrors, ThrowOnError>;
298
- /**
299
- * Edit Google Ads account URL settings
300
- *
301
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
302
- *
303
- * Updates the account-level (customer) URL tracking settings — tracking_url_template and final_url_suffix. A campaign-level template overrides the account one. Pass `dry_run: true` to validate against Google without applying.
304
- */
305
- declare const googleEditAccount: <ThrowOnError extends boolean = true>(options: Options<GoogleEditAccountData, ThrowOnError>) => RequestResult<GoogleEditAccountResponses, GoogleEditAccountErrors, ThrowOnError>;
306
- /**
307
- * Google Ads performance insights
308
- *
309
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
310
- *
311
- * Performance metrics for the connection’s account, at a chosen level (account / campaign / ad group / ad / keyword), for a date range, with optional breakdowns. Leaf levels (ad / keyword) require an `ad_group_id`; campaign / ad group accept an optional `campaign_id`. Each row carries its `parent_id`, so the tree is assemblable. The flagship cross-checked read; use `/gaql` for anything outside this shape.
312
- */
313
- declare const googleGetInsights: <ThrowOnError extends boolean = true>(options: Options<GoogleGetInsightsData, ThrowOnError>) => RequestResult<GoogleGetInsightsResponses, GoogleGetInsightsErrors, ThrowOnError>;
314
- /**
315
- * Google Ads campaign tree
316
- *
317
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
318
- *
319
- * The campaign tree as flat, native, typed nodes — group them by `parent_id` to assemble the tree. Without `campaign_id`, returns every campaign (all channel types) with a per-type `child_kind`/`expandable` hint. With `campaign_id`, returns that campaign’s whole supported subtree in one batched fetch at a single window: ad groups + the type’s leaf (keywords for Search, ads for Display/Video/Demand Gen), or — for Performance Max — asset groups + their `asset_group_asset` leaves (each leaf carrying `field_type`, `primary_status`, and real per-asset metrics). By default REMOVED nodes are hidden at every level; pass `status` to filter to specific serving states (ENABLED / PAUSED / REMOVED). Each node carries `budget_micros` (campaign nodes only), Google’s authoritative per-level metrics (no client roll-up), `cost_micros`, and `cost` (account currency).
320
- */
321
- declare const googleGetAdTree: <ThrowOnError extends boolean = true>(options: Options<GoogleGetAdTreeData, ThrowOnError>) => RequestResult<GoogleGetAdTreeResponses, GoogleGetAdTreeErrors, ThrowOnError>;
322
- /**
323
- * Run a raw GAQL query
324
- *
325
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
326
- *
327
- * Runs a raw Google Ads Query Language (GAQL) query against the connection’s account and returns the native rows. Read-only (GAQL only does `SELECT`). The power-user escape hatch beneath the typed reads.
328
- */
329
- declare const googleRunGaql: <ThrowOnError extends boolean = true>(options: Options<GoogleRunGaqlData, ThrowOnError>) => RequestResult<GoogleRunGaqlResponses, GoogleRunGaqlErrors, ThrowOnError>;
330
- /**
331
- * Create a Google Ads campaign budget
332
- *
333
- * **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
334
- *
335
- * Creates a standalone daily campaign budget (the `campaign_budget` resource) on the connection’s account. Money write — secret-key-only. Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name to chain into a campaign.
336
- */
337
- declare const googleCreateBudget: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateBudgetData, ThrowOnError>) => RequestResult<GoogleCreateBudgetResponses, GoogleCreateBudgetErrors, ThrowOnError>;
338
- /**
339
- * Edit a Google Ads campaign budget
340
- *
341
- * **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
342
- *
343
- * Updates a budget’s daily amount (in micros) by numeric id. Money write — secret-key-only. Pass `dry_run: true` to validate against Google without applying.
344
- */
345
- declare const googleEditBudget: <ThrowOnError extends boolean = true>(options: Options<GoogleEditBudgetData, ThrowOnError>) => RequestResult<GoogleEditBudgetResponses, GoogleEditBudgetErrors, ThrowOnError>;
346
- /**
347
- * Remove a Google Ads campaign budget
348
- *
349
- * **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
350
- *
351
- * Removes a campaign budget by numeric id (Google’s native remove). Set `dry_run: true` in the body to validate the removal against Google without applying it.
352
- */
353
- declare const googleRemoveBudget: <ThrowOnError extends boolean = true>(options: Options<GoogleRemoveBudgetData, ThrowOnError>) => RequestResult<GoogleRemoveBudgetResponses, GoogleRemoveBudgetErrors, ThrowOnError>;
354
- /**
355
- * List Google Ads campaigns
356
- *
357
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
358
- *
359
- * Returns the campaigns (the `campaign` resource) on the connection’s account — id, name, status, advertising channel type, and bidding strategy type.
360
- */
361
- declare const googleListCampaigns: <ThrowOnError extends boolean = true>(options: Options<GoogleListCampaignsData, ThrowOnError>) => RequestResult<GoogleListCampaignsResponses, GoogleListCampaignsErrors, ThrowOnError>;
362
- /**
363
- * Create a Google Ads campaign
364
- *
365
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
366
- *
367
- * Creates a Search or Display campaign (the `campaign` resource) on the connection’s account, attached to an existing budget. Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name.
368
- */
369
- declare const googleCreateCampaign: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateCampaignData, ThrowOnError>) => RequestResult<GoogleCreateCampaignResponses, GoogleCreateCampaignErrors, ThrowOnError>;
370
- /**
371
- * Retrieve a Google Ads campaign
372
- *
373
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
374
- *
375
- * Returns a single campaign (the `campaign` resource) by its numeric id on the connection’s account — id, name, status, advertising channel type, and bidding strategy type.
376
- */
377
- declare const googleGetCampaign: <ThrowOnError extends boolean = true>(options: Options<GoogleGetCampaignData, ThrowOnError>) => RequestResult<GoogleGetCampaignResponses, GoogleGetCampaignErrors, ThrowOnError>;
378
- /**
379
- * Edit a Google Ads campaign
380
- *
381
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
382
- *
383
- * Updates a campaign’s non-money fields — its name and URL tracking settings (tracking_url_template, final_url_suffix, url_custom_parameters) — by numeric id. Status has its own pause/enable endpoints; bids are a separate money write. Pass `dry_run: true` to validate against Google without applying.
384
- */
385
- declare const googleEditCampaign: <ThrowOnError extends boolean = true>(options: Options<GoogleEditCampaignData, ThrowOnError>) => RequestResult<GoogleEditCampaignResponses, GoogleEditCampaignErrors, ThrowOnError>;
386
- /**
387
- * Set a Google Ads campaign’s bidding strategy
388
- *
389
- * **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
390
- *
391
- * Sets a campaign’s bidding strategy by numeric id. Supports the target-bearing strategies: target_cpa (needs target_cpa_micros), target_roas (needs target_roas), and maximize_conversion_value (needs target_roas). The bare/no-target strategies are selectable at campaign create, not here. Money write — secret-key-only. Pass `dry_run: true` to validate against Google without applying.
392
- */
393
- declare const googleSetCampaignBidding: <ThrowOnError extends boolean = true>(options: Options<GoogleSetCampaignBiddingData, ThrowOnError>) => RequestResult<GoogleSetCampaignBiddingResponses, GoogleSetCampaignBiddingErrors, ThrowOnError>;
394
- /**
395
- * Remove a Google Ads campaign
396
- *
397
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:delete` scoped to the profile that owns the connection.
398
- *
399
- * Removes a campaign by numeric id (Google’s native remove). Set `dry_run: true` in the body to validate the removal against Google without applying it.
400
- */
401
- declare const googleRemoveCampaign: <ThrowOnError extends boolean = true>(options: Options<GoogleRemoveCampaignData, ThrowOnError>) => RequestResult<GoogleRemoveCampaignResponses, GoogleRemoveCampaignErrors, ThrowOnError>;
402
- /**
403
- * Pause a Google Ads campaign
404
- *
405
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
406
- *
407
- * Pauses a campaign by its numeric id (reversible). Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
408
- */
409
- declare const googlePauseCampaign: <ThrowOnError extends boolean = true>(options: Options<GooglePauseCampaignData, ThrowOnError>) => RequestResult<GooglePauseCampaignResponses, GooglePauseCampaignErrors, ThrowOnError>;
410
- /**
411
- * Enable a Google Ads campaign
412
- *
413
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
414
- *
415
- * Enables (resumes) a campaign by its numeric id. Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
416
- */
417
- declare const googleEnableCampaign: <ThrowOnError extends boolean = true>(options: Options<GoogleEnableCampaignData, ThrowOnError>) => RequestResult<GoogleEnableCampaignResponses, GoogleEnableCampaignErrors, ThrowOnError>;
418
- /**
419
- * Search Google Ads geo targets
420
- *
421
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
422
- *
423
- * Resolves a free-text location name (e.g. "New York") to matching geo target constants — each with id, name, canonical name, country code, target type, and status. Use a result’s `resource_name` (e.g. `geoTargetConstants/2840`), NOT the bare `id`, as the `geo_target_constant` of a location criterion.
424
- */
425
- declare const googleSearchGeoTargets: <ThrowOnError extends boolean = true>(options: Options<GoogleSearchGeoTargetsData, ThrowOnError>) => RequestResult<GoogleSearchGeoTargetsResponses, GoogleSearchGeoTargetsErrors, ThrowOnError>;
426
- /**
427
- * List Google Ads campaign targeting criteria
219
+ * Retry a post
428
220
  *
429
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
430
- *
431
- * Lists a campaign’s targeting criteria. LOCATION and LANGUAGE are fully modelled (geo_target_constant / language_constant, status, negative flag); any other criterion type is returned as { type, criterion_id }.
432
- */
433
- declare const googleListCampaignCriteria: <ThrowOnError extends boolean = true>(options: Options<GoogleListCampaignCriteriaData, ThrowOnError>) => RequestResult<GoogleListCampaignCriteriaResponses, GoogleListCampaignCriteriaErrors, ThrowOnError>;
434
- /**
435
- * Add a Google Ads campaign targeting criterion
436
- *
437
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
438
- *
439
- * Adds a geo (location) or language targeting criterion to a campaign. Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name.
440
- */
441
- declare const googleCreateCampaignCriterion: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateCampaignCriterionData, ThrowOnError>) => RequestResult<GoogleCreateCampaignCriterionResponses, GoogleCreateCampaignCriterionErrors, ThrowOnError>;
442
- /**
443
- * Remove a Google Ads campaign targeting criterion
444
- *
445
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:delete` scoped to the profile that owns the connection.
446
- *
447
- * Removes a campaign targeting criterion by its criterion id (Google’s native remove). Set `dry_run: true` in the body to validate the removal against Google without applying it.
448
- */
449
- declare const googleRemoveCampaignCriterion: <ThrowOnError extends boolean = true>(options: Options<GoogleRemoveCampaignCriterionData, ThrowOnError>) => RequestResult<GoogleRemoveCampaignCriterionResponses, GoogleRemoveCampaignCriterionErrors, ThrowOnError>;
450
- /**
451
- * Set a Google Ads campaign’s geo target type
452
- *
453
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
454
- *
455
- * Sets a campaign’s geo target type — presence (people in the location) vs presence-or-interest (also people interested in it) — for positive and/or excluded locations. Pass `dry_run: true` to validate without applying.
456
- */
457
- declare const googleSetCampaignGeoSettings: <ThrowOnError extends boolean = true>(options: Options<GoogleSetCampaignGeoSettingsData, ThrowOnError>) => RequestResult<GoogleSetCampaignGeoSettingsResponses, GoogleSetCampaignGeoSettingsErrors, ThrowOnError>;
458
- /**
459
- * List Google Ads ad groups
460
- *
461
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
462
- *
463
- * Lists the ad groups (Google’s equivalent of an ad set) in the Google Ads account backing this connection — id, name, status, type, and parent campaign. Pass `campaign_id` to return only the ad groups under one campaign. By default REMOVED ad groups are hidden; pass `status` to filter to specific serving states (ENABLED / PAUSED / REMOVED).
464
- */
465
- declare const googleListAdGroups: <ThrowOnError extends boolean = true>(options: Options<GoogleListAdGroupsData, ThrowOnError>) => RequestResult<GoogleListAdGroupsResponses, GoogleListAdGroupsErrors, ThrowOnError>;
466
- /**
467
- * Create a Google Ads ad group
468
- *
469
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
470
- *
471
- * Creates an ad group (the `ad_group` resource) under a campaign on the connection’s account. Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name to chain into ads and keywords.
472
- */
473
- declare const googleCreateAdGroup: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateAdGroupData, ThrowOnError>) => RequestResult<GoogleCreateAdGroupResponses, GoogleCreateAdGroupErrors, ThrowOnError>;
474
- /**
475
- * Retrieve a Google Ads ad group
476
- *
477
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
478
- *
479
- * Returns a single ad group by its numeric id from the Google Ads account backing this connection — id, name, status, type, and parent campaign.
480
- */
481
- declare const googleGetAdGroup: <ThrowOnError extends boolean = true>(options: Options<GoogleGetAdGroupData, ThrowOnError>) => RequestResult<GoogleGetAdGroupResponses, GoogleGetAdGroupErrors, ThrowOnError>;
482
- /**
483
- * Edit a Google Ads ad group
484
- *
485
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
486
- *
487
- * Updates an ad group’s non-money fields (its name) by numeric id. Status has its own pause/enable endpoints; bids are a separate money write. Pass `dry_run: true` to validate without applying.
488
- */
489
- declare const googleEditAdGroup: <ThrowOnError extends boolean = true>(options: Options<GoogleEditAdGroupData, ThrowOnError>) => RequestResult<GoogleEditAdGroupResponses, GoogleEditAdGroupErrors, ThrowOnError>;
490
- /**
491
- * Set a Google Ads ad group’s bids
492
- *
493
- * **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
494
- *
495
- * Sets an ad group’s manual bids (cpc/cpm/target CPA in micros, target ROAS as a ratio) by numeric id. Money write — secret-key-only. Pass `dry_run: true` to validate without applying.
496
- */
497
- declare const googleSetAdGroupBids: <ThrowOnError extends boolean = true>(options: Options<GoogleSetAdGroupBidsData, ThrowOnError>) => RequestResult<GoogleSetAdGroupBidsResponses, GoogleSetAdGroupBidsErrors, ThrowOnError>;
498
- /**
499
- * Remove a Google Ads ad group
500
- *
501
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:delete` scoped to the profile that owns the connection.
502
- *
503
- * Removes an ad group by numeric id (Google’s native remove). Set `dry_run: true` in the body to validate the removal against Google without applying it.
504
- */
505
- declare const googleRemoveAdGroup: <ThrowOnError extends boolean = true>(options: Options<GoogleRemoveAdGroupData, ThrowOnError>) => RequestResult<GoogleRemoveAdGroupResponses, GoogleRemoveAdGroupErrors, ThrowOnError>;
506
- /**
507
- * Pause a Google Ads ad group
508
- *
509
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
510
- *
511
- * Pauses an ad group by its numeric id (reversible). Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
512
- */
513
- declare const googlePauseAdGroup: <ThrowOnError extends boolean = true>(options: Options<GooglePauseAdGroupData, ThrowOnError>) => RequestResult<GooglePauseAdGroupResponses, GooglePauseAdGroupErrors, ThrowOnError>;
514
- /**
515
- * Enable a Google Ads ad group
516
- *
517
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
518
- *
519
- * Enables (resumes) an ad group by its numeric id. Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
520
- */
521
- declare const googleEnableAdGroup: <ThrowOnError extends boolean = true>(options: Options<GoogleEnableAdGroupData, ThrowOnError>) => RequestResult<GoogleEnableAdGroupResponses, GoogleEnableAdGroupErrors, ThrowOnError>;
522
- /**
523
- * List Google Ads ad-group targeting criteria
524
- *
525
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
526
- *
527
- * Lists an ad group’s targeting criteria. The four demographics (AGE_RANGE, GENDER, INCOME_RANGE, PARENTAL_STATUS) are fully modelled (with their value, status, and negative flag); any other criterion type (e.g. KEYWORD) is returned as { type, criterion_id }.
528
- */
529
- declare const googleListAdGroupCriteria: <ThrowOnError extends boolean = true>(options: Options<GoogleListAdGroupCriteriaData, ThrowOnError>) => RequestResult<GoogleListAdGroupCriteriaResponses, GoogleListAdGroupCriteriaErrors, ThrowOnError>;
530
- /**
531
- * Add a Google Ads ad-group targeting criterion
532
- *
533
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
534
- *
535
- * Adds a demographic (age range, gender, income range, or parental status) or audience (user list, audience, or custom audience) targeting criterion to an ad group. Audience criteria reference the `resource_name` returned by the audiences discovery read (`GET .../audiences`). Set `negative: true` to exclude instead of target. Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name.
536
- */
537
- declare const googleCreateAdGroupCriterion: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateAdGroupCriterionData, ThrowOnError>) => RequestResult<GoogleCreateAdGroupCriterionResponses, GoogleCreateAdGroupCriterionErrors, ThrowOnError>;
538
- /**
539
- * Remove a Google Ads ad-group targeting criterion
540
- *
541
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:delete` scoped to the profile that owns the connection.
542
- *
543
- * Removes an ad-group targeting criterion by its criterion id (Google’s native remove). Set `dry_run: true` in the body to validate the removal against Google without applying it.
544
- */
545
- declare const googleRemoveAdGroupCriterion: <ThrowOnError extends boolean = true>(options: Options<GoogleRemoveAdGroupCriterionData, ThrowOnError>) => RequestResult<GoogleRemoveAdGroupCriterionResponses, GoogleRemoveAdGroupCriterionErrors, ThrowOnError>;
546
- /**
547
- * List Google Ads audiences available to target
548
- *
549
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
550
- *
551
- * Lists the user lists and audiences available to attach to an ad group, each with the `resource_name` you pass as the user_list / audience of an ad-group audience criterion. Optional `q` filters by name; `kind` narrows to one audience kind.
552
- */
553
- declare const googleListAudiences: <ThrowOnError extends boolean = true>(options: Options<GoogleListAudiencesData, ThrowOnError>) => RequestResult<GoogleListAudiencesResponses, GoogleListAudiencesErrors, ThrowOnError>;
554
- /**
555
- * Set a Google Ads campaign’s targeting setting
556
- *
557
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
558
- *
559
- * Sets a campaign’s targeting setting for one dimension (e.g. AUDIENCE): Observation (`bid_only: true` — does NOT narrow reach) vs Targeting (`bid_only: false` — narrows reach to the targeted criteria). Campaign + dimension scoped: shared by every audience criterion in the campaign. Pass `dry_run: true` to validate without applying. Note: Google rejects setting this on a campaign whose ad group already has a targeting setting (and vice versa).
560
- */
561
- declare const googleSetCampaignTargetingSetting: <ThrowOnError extends boolean = true>(options: Options<GoogleSetCampaignTargetingSettingData, ThrowOnError>) => RequestResult<GoogleSetCampaignTargetingSettingResponses, GoogleSetCampaignTargetingSettingErrors, ThrowOnError>;
562
- /**
563
- * List Google Ads ads
564
- *
565
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
566
- *
567
- * Returns the ads (the `ad_group_ad` resource) on the connection’s account — id, name, creative type, serving status, and the owning ad group. Pass `ad_group_id` to return only the ads under one ad group. By default REMOVED ads are hidden; pass `status` to filter to specific serving states (ENABLED / PAUSED / REMOVED).
568
- */
569
- declare const googleListAds: <ThrowOnError extends boolean = true>(options: Options<GoogleListAdsData, ThrowOnError>) => RequestResult<GoogleListAdsResponses, GoogleListAdsErrors, ThrowOnError>;
570
- /**
571
- * Create a Google Ads responsive search ad
572
- *
573
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
574
- *
575
- * Creates a Responsive Search Ad (the `ad_group_ad` resource, inline text — no image assets) under an ad group on the connection’s account. Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name.
576
- */
577
- declare const googleCreateAd: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateAdData, ThrowOnError>) => RequestResult<GoogleCreateAdResponses, GoogleCreateAdErrors, ThrowOnError>;
578
- /**
579
- * Retrieve a Google Ads ad
580
- *
581
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
582
- *
583
- * Returns a single ad (the `ad_group_ad` resource) by its composite id ({ad_group_id}~{ad_id}) on the connection’s account — id, name, creative type, serving status, and the owning ad group.
584
- */
585
- declare const googleGetAd: <ThrowOnError extends boolean = true>(options: Options<GoogleGetAdData, ThrowOnError>) => RequestResult<GoogleGetAdResponses, GoogleGetAdErrors, ThrowOnError>;
586
- /**
587
- * Edit a Google Ads responsive search ad
588
- *
589
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
590
- *
591
- * Edits a Responsive Search Ad’s creative (headlines, descriptions, paths) and URLs in place by its composite id ({ad_group_id}~{ad_id}). Editing an ad’s creative returns it to Google review (status Under review); it stops serving until re-approved — Google’s standard ad-review policy. Pass `dry_run: true` to validate against Google without applying.
592
- */
593
- declare const googleEditAd: <ThrowOnError extends boolean = true>(options: Options<GoogleEditAdData, ThrowOnError>) => RequestResult<GoogleEditAdResponses, GoogleEditAdErrors, ThrowOnError>;
594
- /**
595
- * Create a Google Ads responsive display ad
596
- *
597
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
598
- *
599
- * Creates a Responsive Display Ad (the `ad_group_ad` resource) under a Display ad group on the connection’s account, assembled from already-uploaded image-asset resource_names (upload them first via POST /v1/google/{connection_id}/assets). Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name.
600
- */
601
- declare const googleCreateDisplayAd: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateDisplayAdData, ThrowOnError>) => RequestResult<GoogleCreateDisplayAdResponses, GoogleCreateDisplayAdErrors, ThrowOnError>;
602
- /**
603
- * Edit a Google Ads responsive display ad
604
- *
605
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
606
- *
607
- * Edits a Responsive Display Ad’s creative (image assets, headlines, descriptions, brand fields) and URLs in place by its composite id ({ad_group_id}~{ad_id}). Image slots take already-uploaded asset resource_names. Editing an ad’s creative returns it to Google review (status Under review); it stops serving until re-approved — Google’s standard ad-review policy. Pass `dry_run: true` to validate against Google without applying.
608
- */
609
- declare const googleEditDisplayAd: <ThrowOnError extends boolean = true>(options: Options<GoogleEditDisplayAdData, ThrowOnError>) => RequestResult<GoogleEditDisplayAdResponses, GoogleEditDisplayAdErrors, ThrowOnError>;
610
- /**
611
- * Remove a Google Ads ad
612
- *
613
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:delete` scoped to the profile that owns the connection.
614
- *
615
- * Removes an ad (an `ad_group_ad`) by its composite id ({ad_group_id}~{ad_id}) (Google’s native remove). Set `dry_run: true` in the body to validate the removal against Google without applying it.
616
- */
617
- declare const googleRemoveAd: <ThrowOnError extends boolean = true>(options: Options<GoogleRemoveAdData, ThrowOnError>) => RequestResult<GoogleRemoveAdResponses, GoogleRemoveAdErrors, ThrowOnError>;
618
- /**
619
- * Pause a Google Ads ad
620
- *
621
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
622
- *
623
- * Pauses an ad by its composite id ({ad_group_id}~{ad_id}) (reversible). Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
624
- */
625
- declare const googlePauseAd: <ThrowOnError extends boolean = true>(options: Options<GooglePauseAdData, ThrowOnError>) => RequestResult<GooglePauseAdResponses, GooglePauseAdErrors, ThrowOnError>;
626
- /**
627
- * Enable a Google Ads ad
628
- *
629
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
630
- *
631
- * Enables (resumes) an ad by its composite id ({ad_group_id}~{ad_id}). Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
632
- */
633
- declare const googleEnableAd: <ThrowOnError extends boolean = true>(options: Options<GoogleEnableAdData, ThrowOnError>) => RequestResult<GoogleEnableAdResponses, GoogleEnableAdErrors, ThrowOnError>;
634
- /**
635
- * List Google Ads keywords
636
- *
637
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
638
- *
639
- * Lists the keywords (`ad_group_criterion` of type KEYWORD) in the connection’s account — each with its criterion id, text, match type, status, negative flag, and owning ad group. Pass `ad_group_id` to return only the keywords under one ad group. By default REMOVED keywords are hidden; pass `status` to filter to specific serving states (ENABLED / PAUSED / REMOVED).
640
- */
641
- declare const googleListKeywords: <ThrowOnError extends boolean = true>(options: Options<GoogleListKeywordsData, ThrowOnError>) => RequestResult<GoogleListKeywordsResponses, GoogleListKeywordsErrors, ThrowOnError>;
642
- /**
643
- * Create a Google Ads keyword
644
- *
645
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
646
- *
647
- * Creates a keyword (an `ad_group_criterion` of type KEYWORD) under an ad group on the connection’s account. Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name.
648
- */
649
- declare const googleCreateKeyword: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateKeywordData, ThrowOnError>) => RequestResult<GoogleCreateKeywordResponses, GoogleCreateKeywordErrors, ThrowOnError>;
650
- /**
651
- * Retrieve a Google Ads keyword
652
- *
653
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
654
- *
655
- * Returns one keyword (`ad_group_criterion` of type KEYWORD) by its composite id ({ad_group_id}~{criterion_id}), from the connection’s account — text, match type, status, negative flag, and owning ad group.
656
- */
657
- declare const googleGetKeyword: <ThrowOnError extends boolean = true>(options: Options<GoogleGetKeywordData, ThrowOnError>) => RequestResult<GoogleGetKeywordResponses, GoogleGetKeywordErrors, ThrowOnError>;
658
- /**
659
- * Set a Google Ads keyword’s bid
660
- *
661
- * **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
662
- *
663
- * Sets a keyword’s manual CPC bid (in micros) by its composite id ({ad_group_id}~{criterion_id}). Money write — secret-key-only. Pass `dry_run: true` to validate without applying.
664
- */
665
- declare const googleSetKeywordBid: <ThrowOnError extends boolean = true>(options: Options<GoogleSetKeywordBidData, ThrowOnError>) => RequestResult<GoogleSetKeywordBidResponses, GoogleSetKeywordBidErrors, ThrowOnError>;
666
- /**
667
- * Remove a Google Ads keyword
668
- *
669
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:delete` scoped to the profile that owns the connection.
670
- *
671
- * Removes a keyword (an `ad_group_criterion`) by its composite id ({ad_group_id}~{criterion_id}) (Google’s native remove). Set `dry_run: true` in the body to validate the removal against Google without applying it.
672
- */
673
- declare const googleRemoveKeyword: <ThrowOnError extends boolean = true>(options: Options<GoogleRemoveKeywordData, ThrowOnError>) => RequestResult<GoogleRemoveKeywordResponses, GoogleRemoveKeywordErrors, ThrowOnError>;
674
- /**
675
- * Pause a Google Ads keyword
676
- *
677
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
678
- *
679
- * Pauses a keyword (`ad_group_criterion`) by its composite id ({ad_group_id}~{criterion_id}) (reversible). Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
680
- */
681
- declare const googlePauseKeyword: <ThrowOnError extends boolean = true>(options: Options<GooglePauseKeywordData, ThrowOnError>) => RequestResult<GooglePauseKeywordResponses, GooglePauseKeywordErrors, ThrowOnError>;
682
- /**
683
- * Enable a Google Ads keyword
684
- *
685
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
686
- *
687
- * Enables (resumes) a keyword (`ad_group_criterion`) by its composite id ({ad_group_id}~{criterion_id}). Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
688
- */
689
- declare const googleEnableKeyword: <ThrowOnError extends boolean = true>(options: Options<GoogleEnableKeywordData, ThrowOnError>) => RequestResult<GoogleEnableKeywordResponses, GoogleEnableKeywordErrors, ThrowOnError>;
690
- /**
691
- * List Google Ads conversion actions
692
- *
693
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
694
- *
695
- * Returns the conversion actions (the `conversion_action` resource) on the connection’s account — id, name, status, type, category, origin, primary-goal flag, counting type, value settings, and tag snippets.
696
- */
697
- declare const googleListConversionActions: <ThrowOnError extends boolean = true>(options: Options<GoogleListConversionActionsData, ThrowOnError>) => RequestResult<GoogleListConversionActionsResponses, GoogleListConversionActionsErrors, ThrowOnError>;
698
- /**
699
- * Create a Google Ads conversion action
700
- *
701
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
702
- *
703
- * Creates a conversion action (the `conversion_action` resource) — a website tag (WEBPAGE) or an offline/API-reported action (UPLOAD_CLICKS) — on the connection’s account. Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name.
704
- */
705
- declare const googleCreateConversionAction: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateConversionActionData, ThrowOnError>) => RequestResult<GoogleCreateConversionActionResponses, GoogleCreateConversionActionErrors, ThrowOnError>;
706
- /**
707
- * Retrieve a Google Ads conversion action
708
- *
709
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
710
- *
711
- * Returns a single conversion action (the `conversion_action` resource) by its numeric id on the connection’s account.
712
- */
713
- declare const googleGetConversionAction: <ThrowOnError extends boolean = true>(options: Options<GoogleGetConversionActionData, ThrowOnError>) => RequestResult<GoogleGetConversionActionResponses, GoogleGetConversionActionErrors, ThrowOnError>;
714
- /**
715
- * Update a Google Ads conversion action
716
- *
717
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
718
- *
719
- * Updates the mutable fields of a conversion action (name, category, status, value settings, counting type, lookback windows, primary-for-goal) by numeric id. Only the supplied fields change. Pass `dry_run: true` to validate against Google without applying.
720
- */
721
- declare const googleUpdateConversionAction: <ThrowOnError extends boolean = true>(options: Options<GoogleUpdateConversionActionData, ThrowOnError>) => RequestResult<GoogleUpdateConversionActionResponses, GoogleUpdateConversionActionErrors, ThrowOnError>;
722
- /**
723
- * Remove a Google Ads conversion action
724
- *
725
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:delete` scoped to the profile that owns the connection.
726
- *
727
- * Removes a conversion action by numeric id (Google’s native remove — a soft delete to status REMOVED). Set `dry_run: true` in the body to validate the removal against Google without applying it.
728
- */
729
- declare const googleRemoveConversionAction: <ThrowOnError extends boolean = true>(options: Options<GoogleRemoveConversionActionData, ThrowOnError>) => RequestResult<GoogleRemoveConversionActionResponses, GoogleRemoveConversionActionErrors, ThrowOnError>;
730
- /**
731
- * Send Google Ads conversion events
732
- *
733
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
734
- *
735
- * Sends a batch of conversion events (1–2000) for one conversion action on the connection’s account, via the Data Manager API. Plaintext identifiers (email / phone / address) are hashed server-side. Pass `dry_run: true` to validate against Google without sending. Returns a request id; poll the status read with it for per-reason processing results.
736
- */
737
- declare const googleSendConversions: <ThrowOnError extends boolean = true>(options: Options<GoogleSendConversionsData, ThrowOnError>) => RequestResult<GoogleSendConversionsResponses, GoogleSendConversionsErrors, ThrowOnError>;
738
- /**
739
- * Retrieve Google Ads conversion send status
740
- *
741
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
742
- *
743
- * Returns the per-destination, count-by-reason processing status for a prior conversion send (by its `request_id`) — the total events submitted, the error breakdown (with typed codes), and informational warnings. `destinations` is EMPTY for the first ~minute after a send (Google registers the request asynchronously) — poll until it populates.
744
- */
745
- declare const googleGetConversionStatus: <ThrowOnError extends boolean = true>(options: Options<GoogleGetConversionStatusData, ThrowOnError>) => RequestResult<GoogleGetConversionStatusResponses, GoogleGetConversionStatusErrors, ThrowOnError>;
746
- /**
747
- * List Google Ads conversion sends
748
- *
749
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
750
- *
751
- * Returns the history of conversion sends made on this connection (newest first) — each with its `request_id`, the conversion action it targeted, and how many events you submitted. Poll the status read with a `request_id` for that send’s per-destination processing result.
752
- */
753
- declare const googleListConversionRequests: <ThrowOnError extends boolean = true>(options: Options<GoogleListConversionRequestsData, ThrowOnError>) => RequestResult<GoogleListConversionRequestsResponses, GoogleListConversionRequestsErrors, ThrowOnError>;
754
- /**
755
- * List Google Ads conversion goals
756
- *
757
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
758
- *
759
- * Returns the conversion goals (the `customer_conversion_goal` resource) on the connection’s account — category, origin, and whether each is biddable. Google auto-creates these per category × origin.
760
- */
761
- declare const googleListConversionGoals: <ThrowOnError extends boolean = true>(options: Options<GoogleListConversionGoalsData, ThrowOnError>) => RequestResult<GoogleListConversionGoalsResponses, GoogleListConversionGoalsErrors, ThrowOnError>;
762
- /**
763
- * Set a Google Ads conversion goal’s biddable flag
764
- *
765
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
766
- *
767
- * Sets whether a conversion goal (selected by category × origin) is biddable — a primary goal Google optimises toward, or a secondary observation-only goal. Pass `dry_run: true` to preview without applying. Returns the goal and whether it executed.
768
- */
769
- declare const googleSetConversionGoal: <ThrowOnError extends boolean = true>(options: Options<GoogleSetConversionGoalData, ThrowOnError>) => RequestResult<GoogleSetConversionGoalResponses, GoogleSetConversionGoalErrors, ThrowOnError>;
770
- /**
771
- * Upload a Google Ads image asset
772
- *
773
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
774
- *
775
- * Uploads a Postrun image asset (its validated Google Ads rendition) to the connection’s account as an `image` asset, returning the new resource id + resource_name to chain into an ad/asset assembly. Pass `dry_run: true` to validate against Google without creating anything (Google’s native validate_only). The media asset must have a ready Google Ads rendition, else a 409.
776
- */
777
- declare const googleUploadImageAsset: <ThrowOnError extends boolean = true>(options: Options<GoogleUploadImageAssetData, ThrowOnError>) => RequestResult<GoogleUploadImageAssetResponses, GoogleUploadImageAssetErrors, ThrowOnError>;
778
- /**
779
- * Create a Google Ads YouTube-video asset
780
- *
781
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
782
- *
783
- * Creates a YouTube-video asset on the connection’s account from a YouTube video URL (watch / youtu.be / shorts / embed), returning the new resource id + resource_name to chain into a Performance Max asset-group attach. Pass `dry_run: true` to validate against Google without creating anything (Google’s native validate_only).
784
- */
785
- declare const googleUploadYoutubeVideoAsset: <ThrowOnError extends boolean = true>(options: Options<GoogleUploadYoutubeVideoAssetData, ThrowOnError>) => RequestResult<GoogleUploadYoutubeVideoAssetResponses, GoogleUploadYoutubeVideoAssetErrors, ThrowOnError>;
786
- /**
787
- * List Google Ads Performance Max asset groups
788
- *
789
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
790
- *
791
- * Lists the Performance Max asset groups in the Google Ads account backing this connection — id, name, status, ad strength, and parent campaign. Pass `campaign_id` to return only the asset groups under one campaign. By default REMOVED asset groups are hidden; pass `status` to filter to specific serving states (ENABLED / PAUSED / REMOVED).
792
- */
793
- declare const googleListAssetGroups: <ThrowOnError extends boolean = true>(options: Options<GoogleListAssetGroupsData, ThrowOnError>) => RequestResult<GoogleListAssetGroupsResponses, GoogleListAssetGroupsErrors, ThrowOnError>;
794
- /**
795
- * Retrieve a Google Ads Performance Max asset group
796
- *
797
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
798
- *
799
- * Returns a single Performance Max asset group by its numeric id from the Google Ads account backing this connection — id, name, status, the output-only ad strength, parent campaign, and URL display paths.
800
- */
801
- declare const googleGetAssetGroup: <ThrowOnError extends boolean = true>(options: Options<GoogleGetAssetGroupData, ThrowOnError>) => RequestResult<GoogleGetAssetGroupResponses, GoogleGetAssetGroupErrors, ThrowOnError>;
802
- /**
803
- * Edit a Google Ads Performance Max asset group
804
- *
805
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
806
- *
807
- * Updates an asset group’s non-money fields (name, final URLs, URL display paths) by numeric id. Status has its own pause/enable endpoints. Pass `dry_run: true` to validate without applying.
808
- */
809
- declare const googleEditAssetGroup: <ThrowOnError extends boolean = true>(options: Options<GoogleEditAssetGroupData, ThrowOnError>) => RequestResult<GoogleEditAssetGroupResponses, GoogleEditAssetGroupErrors, ThrowOnError>;
810
- /**
811
- * Add a Performance Max asset group
812
- *
813
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
814
- *
815
- * Adds an asset group + its minimum servable asset set under an existing Performance Max campaign on the connection’s account. Image/video assets are referenced by resource_name (create them first via the assets endpoint); text assets are created inline. Pass `dry_run: true` to validate against Google without creating. Returns the new asset group id + resource_name.
816
- */
817
- declare const googleCreateAssetGroup: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateAssetGroupData, ThrowOnError>) => RequestResult<GoogleCreateAssetGroupResponses, GoogleCreateAssetGroupErrors, ThrowOnError>;
818
- /**
819
- * Pause a Google Ads Performance Max asset group
820
- *
821
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
822
- *
823
- * Pauses an asset group by its numeric id (reversible). Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
824
- */
825
- declare const googlePauseAssetGroup: <ThrowOnError extends boolean = true>(options: Options<GooglePauseAssetGroupData, ThrowOnError>) => RequestResult<GooglePauseAssetGroupResponses, GooglePauseAssetGroupErrors, ThrowOnError>;
826
- /**
827
- * Enable a Google Ads Performance Max asset group
828
- *
829
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
830
- *
831
- * Enables (resumes) an asset group by its numeric id. Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
832
- */
833
- declare const googleEnableAssetGroup: <ThrowOnError extends boolean = true>(options: Options<GoogleEnableAssetGroupData, ThrowOnError>) => RequestResult<GoogleEnableAssetGroupResponses, GoogleEnableAssetGroupErrors, ThrowOnError>;
834
- /**
835
- * Remove a Google Ads Performance Max asset group
836
- *
837
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:delete` scoped to the profile that owns the connection.
838
- *
839
- * Removes an asset group by numeric id (Google’s native remove). Set `dry_run: true` in the body to validate the removal against Google without applying it.
840
- */
841
- declare const googleRemoveAssetGroup: <ThrowOnError extends boolean = true>(options: Options<GoogleRemoveAssetGroupData, ThrowOnError>) => RequestResult<GoogleRemoveAssetGroupResponses, GoogleRemoveAssetGroupErrors, ThrowOnError>;
842
- /**
843
- * List a Performance Max asset group’s asset links
844
- *
845
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
846
- *
847
- * Lists the asset links (`asset_group_asset`) of a Performance Max asset group — each with its triple-composite id handle, field-type role, linked asset resource_name + type, text (for text assets), and link status. By default REMOVED links are hidden; pass `status` to filter to specific serving states.
848
- */
849
- declare const googleListAssetGroupAssets: <ThrowOnError extends boolean = true>(options: Options<GoogleListAssetGroupAssetsData, ThrowOnError>) => RequestResult<GoogleListAssetGroupAssetsResponses, GoogleListAssetGroupAssetsErrors, ThrowOnError>;
850
- /**
851
- * Attach an asset to a Performance Max asset group
852
- *
853
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
854
- *
855
- * Attaches an asset to an asset group as a link with a field-type role. `kind: "asset"` links an existing image/video by resource_name (create it first via the assets endpoint); `kind: "text"` creates + links a literal text asset. Pass `dry_run: true` to validate against Google without applying. Returns the new link’s triple-composite id + resource_name.
856
- */
857
- declare const googleAttachAssetGroupAsset: <ThrowOnError extends boolean = true>(options: Options<GoogleAttachAssetGroupAssetData, ThrowOnError>) => RequestResult<GoogleAttachAssetGroupAssetResponses, GoogleAttachAssetGroupAssetErrors, ThrowOnError>;
858
- /**
859
- * Remove an asset from a Performance Max asset group
860
- *
861
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:delete` scoped to the profile that owns the connection.
862
- *
863
- * Unlinks an asset from an asset group (removes the `asset_group_asset`) by its triple-composite id ({asset_group_id}~{asset_id}~{field_type}). Set `dry_run: true` in the body to validate against Google without applying.
864
- */
865
- declare const googleRemoveAssetGroupAsset: <ThrowOnError extends boolean = true>(options: Options<GoogleRemoveAssetGroupAssetData, ThrowOnError>) => RequestResult<GoogleRemoveAssetGroupAssetResponses, GoogleRemoveAssetGroupAssetErrors, ThrowOnError>;
866
- /**
867
- * List a Performance Max asset group’s signals
868
- *
869
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
870
- *
871
- * Lists the signals (`asset_group_signal`) of a Performance Max asset group — each with its composite id handle, type (audience / search_theme), its value (an audience resource_name or a search-theme text), and the output-only approval status + disapproval reasons.
872
- */
873
- declare const googleListAssetGroupSignals: <ThrowOnError extends boolean = true>(options: Options<GoogleListAssetGroupSignalsData, ThrowOnError>) => RequestResult<GoogleListAssetGroupSignalsResponses, GoogleListAssetGroupSignalsErrors, ThrowOnError>;
874
- /**
875
- * Add a signal to a Performance Max asset group
876
- *
877
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
878
- *
879
- * Adds an audience or search-theme signal to an asset group. `type: "audience"` references an existing audience by resource_name (discover it via the audiences endpoint); `type: "search_theme"` is a free-text theme (≤80 chars). Pass `dry_run: true` to validate against Google without applying. Returns the new signal’s composite id + resource_name.
880
- */
881
- declare const googleCreateAssetGroupSignal: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateAssetGroupSignalData, ThrowOnError>) => RequestResult<GoogleCreateAssetGroupSignalResponses, GoogleCreateAssetGroupSignalErrors, ThrowOnError>;
882
- /**
883
- * Remove a signal from a Performance Max asset group
884
- *
885
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:delete` scoped to the profile that owns the connection.
221
+ * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `posts:write` scoped to the profile that owns the post.
886
222
  *
887
- * Removes a signal from an asset group (removes the `asset_group_signal`) by its composite id ({asset_group_id}~{criterion_id}). Set `dry_run: true` in the body to validate against Google without applying.
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.
888
224
  */
889
- declare const googleRemoveAssetGroupSignal: <ThrowOnError extends boolean = true>(options: Options<GoogleRemoveAssetGroupSignalData, ThrowOnError>) => RequestResult<GoogleRemoveAssetGroupSignalResponses, GoogleRemoveAssetGroupSignalErrors, ThrowOnError>;
225
+ declare const postsRetry: <ThrowOnError extends boolean = true>(options: Options<PostsRetryData, ThrowOnError>) => RequestResult<PostsRetryResponses, PostsRetryErrors, ThrowOnError>;
890
226
  /**
891
- * Create a Performance Max campaign
227
+ * Validate a post
892
228
  *
893
- * **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
229
+ * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `posts:read` scoped to the target profile.
894
230
  *
895
- * Atomically creates a Performance Max campaign — budget, campaign, asset group, and the minimum servable asset set — in one operation. Image/video assets are referenced by resource_name (create them first via the assets endpoint); text assets are created inline. Money write (carries budget_micros) — secret-key-only. Pass `dry_run: true` to validate against Google without creating. Returns the new campaign + asset group + budget ids.
231
+ * 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.
896
232
  */
897
- declare const googleCreatePerformanceMax: <ThrowOnError extends boolean = true>(options: Options<GoogleCreatePerformanceMaxData, ThrowOnError>) => RequestResult<GoogleCreatePerformanceMaxResponses, GoogleCreatePerformanceMaxErrors, ThrowOnError>;
233
+ declare const postsValidate: <ThrowOnError extends boolean = true>(options: Options<PostsValidateData, ThrowOnError>) => RequestResult<PostsValidateResponses, PostsValidateErrors, ThrowOnError>;
898
234
  /**
899
235
  * Retrieve TikTok creator info
900
236
  *
901
237
  * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `connections:read` scoped to the profile that owns the connection.
902
238
  *
903
- * Retrieves the TikTok creator's publish options live from TikTok — required by TikTok's Content Posting policy to render the publishing UI: the creator nickname + avatar, the privacy options to offer (with no default), and the Comment/Duet/Stitch flags to disable. Returns 404 if the connection does not exist in your account or is not a TikTok connection, 409 if the TikTok account must be reconnected, and 502 if TikTok’s creator-info call fails.
239
+ * Retrieves a TikTok account’s publish options live from TikTok: the creator nickname + avatar, the audiences (`privacy_options`) available for photo posts, the Comment/Duet/Stitch availability, and the maximum video length. Returns 404 if the connection does not exist in your account or is not a TikTok connection, 409 if the TikTok account must be reconnected, and 502 if TikTok’s call fails.
904
240
  */
905
241
  declare const tiktokCreatorInfo: <ThrowOnError extends boolean = true>(options: Options<TiktokCreatorInfoData, ThrowOnError>) => RequestResult<TiktokCreatorInfoResponses, TiktokCreatorInfoErrors, ThrowOnError>;
906
- /**
907
- * List authorized TikTok advertisers
908
- *
909
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
910
- *
911
- * Lists the TikTok advertisers (ad accounts) the connection’s grant authorizes — the source for selecting which advertiser this connection operates, and a confirmation the grant is live.
912
- */
913
- declare const tiktokAdsListAdvertisers: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsListAdvertisersData, ThrowOnError>) => RequestResult<TiktokAdsListAdvertisersResponses, TiktokAdsListAdvertisersErrors, ThrowOnError>;
914
- /**
915
- * List accessible TikTok Business Centers
916
- *
917
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
918
- *
919
- * Lists the TikTok Business Centers the connection’s grant can access (the agency picker). A solo advertiser token returns an empty list.
920
- */
921
- declare const tiktokAdsListBusinessCenters: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsListBusinessCentersData, ThrowOnError>) => RequestResult<TiktokAdsListBusinessCentersResponses, TiktokAdsListBusinessCentersErrors, ThrowOnError>;
922
- /**
923
- * List TikTok ad campaigns
924
- *
925
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
926
- *
927
- * Lists campaigns under the connection’s selected advertiser. Optional filters narrow by `campaign_ids`, `campaign_name` (fuzzy), `objective_type`, `primary_status`, and `secondary_status`; `limit`/`offset` page the results. Deleted campaigns are excluded unless `primary_status=STATUS_DELETE`.
928
- */
929
- declare const tiktokAdsListCampaigns: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsListCampaignsData, ThrowOnError>) => RequestResult<TiktokAdsListCampaignsResponses, TiktokAdsListCampaignsErrors, ThrowOnError>;
930
- /**
931
- * Create a TikTok ad campaign
932
- *
933
- * **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
934
- *
935
- * Creates a campaign under the connection’s selected advertiser. Money write — secret-key-only. Choose an objective (TRAFFIC / REACH / VIDEO_VIEWS / ENGAGEMENT / WEB_CONVERSIONS) and a budget mode: BUDGET_MODE_INFINITE (no budget; budget lives at the ad-group level), or BUDGET_MODE_DAY / BUDGET_MODE_TOTAL with a `budget`. Set `budget_optimize_on: true` for Campaign Budget Optimization (requires BUDGET_MODE_TOTAL + budget). Returns the created campaign.
936
- */
937
- declare const tiktokAdsCreateCampaign: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsCreateCampaignData, ThrowOnError>) => RequestResult<TiktokAdsCreateCampaignResponses, TiktokAdsCreateCampaignErrors, ThrowOnError>;
938
- /**
939
- * Pause or enable a TikTok ad campaign
940
- *
941
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
942
- *
943
- * Sets a campaign’s operation status to ENABLE (resume) or DISABLE (pause). A reversible, non-money write. Returns the campaign and the status now in effect.
944
- */
945
- declare const tiktokAdsUpdateCampaignStatus: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsUpdateCampaignStatusData, ThrowOnError>) => RequestResult<TiktokAdsUpdateCampaignStatusResponses, TiktokAdsUpdateCampaignStatusErrors, ThrowOnError>;
946
- /**
947
- * Set a TikTok ad campaign’s budget
948
- *
949
- * **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
950
- *
951
- * Sets a campaign’s budget while preserving its budget mode and every other setting. Money write — secret-key-only. TikTok requires the new budget to be at least 105% of current spend (rejected otherwise). Returns the campaign id and the budget now in effect.
952
- */
953
- declare const tiktokAdsUpdateCampaignBudget: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsUpdateCampaignBudgetData, ThrowOnError>) => RequestResult<TiktokAdsUpdateCampaignBudgetResponses, TiktokAdsUpdateCampaignBudgetErrors, ThrowOnError>;
954
- /**
955
- * Delete a TikTok ad campaign
956
- *
957
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:delete` scoped to the profile that owns the connection.
958
- *
959
- * Permanently deletes a campaign. Deletion cannot be undone — a deleted campaign’s status can no longer be changed. Returns the campaign id and its now-deleted status.
960
- */
961
- declare const tiktokAdsRemoveCampaign: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsRemoveCampaignData, ThrowOnError>) => RequestResult<TiktokAdsRemoveCampaignResponses, TiktokAdsRemoveCampaignErrors, ThrowOnError>;
962
- /**
963
- * List TikTok ad groups
964
- *
965
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
966
- *
967
- * Lists ad groups under the connection’s selected advertiser. Optional filters narrow by `campaign_ids` (the parent campaigns), `adgroup_ids`, `adgroup_name` (fuzzy), `objective_type`, `primary_status`, and `secondary_status`; `limit`/`offset` page the results. Deleted ad groups are excluded unless `primary_status=STATUS_ALL` or `STATUS_DELETE`.
968
- */
969
- declare const tiktokAdsListAdGroups: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsListAdGroupsData, ThrowOnError>) => RequestResult<TiktokAdsListAdGroupsResponses, TiktokAdsListAdGroupsErrors, ThrowOnError>;
970
- /**
971
- * Create a TikTok ad group
972
- *
973
- * **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
974
- *
975
- * Creates an ad group under `campaign_id` (the parent) on the connection’s selected advertiser. Money write — secret-key-only. Carries the optimization goal + bidding strategy (Maximum Delivery / Cost Cap / Value), budget mode + budget, schedule, placement, and cheap inline targeting (gender / age / language / OS / locations). `billing_event` is derived from the optimization goal. Returns the created ad group.
976
- */
977
- declare const tiktokAdsCreateAdGroup: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsCreateAdGroupData, ThrowOnError>) => RequestResult<TiktokAdsCreateAdGroupResponses, TiktokAdsCreateAdGroupErrors, ThrowOnError>;
978
- /**
979
- * Pause or enable a TikTok ad group
980
- *
981
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
982
- *
983
- * Sets an ad group’s operation status to ENABLE (resume) or DISABLE (pause). A reversible, non-money write. Returns the ad group and the status now in effect.
984
- */
985
- declare const tiktokAdsUpdateAdGroupStatus: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsUpdateAdGroupStatusData, ThrowOnError>) => RequestResult<TiktokAdsUpdateAdGroupStatusResponses, TiktokAdsUpdateAdGroupStatusErrors, ThrowOnError>;
986
- /**
987
- * Set a TikTok ad group’s budget
988
- *
989
- * **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
990
- *
991
- * Sets an ad group’s budget. Money write — secret-key-only. Set `budget_kind: lifetime` for a BUDGET_MODE_TOTAL ad group (takes effect immediately) or `scheduled` for a daily / dynamic-daily ad group (takes effect from 00:00 the following day). A lane that does not match the ad group’s actual budget mode is rejected by TikTok. Returns the ad group id, the budget now in effect, and the lane set.
992
- */
993
- declare const tiktokAdsUpdateAdGroupBudget: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsUpdateAdGroupBudgetData, ThrowOnError>) => RequestResult<TiktokAdsUpdateAdGroupBudgetResponses, TiktokAdsUpdateAdGroupBudgetErrors, ThrowOnError>;
994
- /**
995
- * Delete a TikTok ad group
996
- *
997
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:delete` scoped to the profile that owns the connection.
998
- *
999
- * Permanently deletes an ad group. Deletion cannot be undone — a deleted ad group’s status can no longer be changed. Returns the ad group id and its now-deleted status.
1000
- */
1001
- declare const tiktokAdsRemoveAdGroup: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsRemoveAdGroupData, ThrowOnError>) => RequestResult<TiktokAdsRemoveAdGroupResponses, TiktokAdsRemoveAdGroupErrors, ThrowOnError>;
1002
- /**
1003
- * List TikTok ads
1004
- *
1005
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
1006
- *
1007
- * Lists ads (the campaign → ad group → ad tree leaf) under the connection’s selected advertiser. Optional filters narrow by `adgroup_ids` (the parent ad groups), `campaign_ids`, `ad_ids`, `ad_name` (fuzzy), `objective_type`, `primary_status`, and `secondary_status`; `limit`/`offset` page the results. Deleted ads are excluded unless `primary_status=STATUS_ALL` or `STATUS_DELETE`.
1008
- */
1009
- declare const tiktokAdsListAds: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsListAdsData, ThrowOnError>) => RequestResult<TiktokAdsListAdsResponses, TiktokAdsListAdsErrors, ThrowOnError>;
1010
- /**
1011
- * Create a TikTok ad
1012
- *
1013
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
1014
- *
1015
- * Creates a standalone single-video ad under `adgroup_id` (the parent) on the connection’s selected advertiser, posting as a CUSTOMIZED_USER identity. A reversible, non-money write. The creative is referenced by Postrun media ids: `video_media_id` (a ready `tiktok_ads` video, required) and an optional `cover_media_id` (a ready `tiktok_ads` image — omit to auto-derive the cover from the video). Also carries `identity_id`, `ad_text`, and a call-to-action. Returns the created ad.
1016
- */
1017
- declare const tiktokAdsCreateAd: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsCreateAdData, ThrowOnError>) => RequestResult<TiktokAdsCreateAdResponses, TiktokAdsCreateAdErrors, ThrowOnError>;
1018
- /**
1019
- * Pause or enable a TikTok ad
1020
- *
1021
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
1022
- *
1023
- * Sets an ad’s operation status to ENABLE (resume) or DISABLE (pause). A reversible, non-money write. Returns the ad and the status now in effect.
1024
- */
1025
- declare const tiktokAdsUpdateAdStatus: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsUpdateAdStatusData, ThrowOnError>) => RequestResult<TiktokAdsUpdateAdStatusResponses, TiktokAdsUpdateAdStatusErrors, ThrowOnError>;
1026
- /**
1027
- * Delete a TikTok ad
1028
- *
1029
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:delete` scoped to the profile that owns the connection.
1030
- *
1031
- * Permanently deletes an ad. Deletion cannot be undone — a deleted ad’s status can no longer be changed. Returns the ad id and its now-deleted status.
1032
- */
1033
- declare const tiktokAdsRemoveAd: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsRemoveAdData, ThrowOnError>) => RequestResult<TiktokAdsRemoveAdResponses, TiktokAdsRemoveAdErrors, ThrowOnError>;
1034
- /**
1035
- * TikTok ad performance insights
1036
- *
1037
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
1038
- *
1039
- * Performance metrics for the connection’s advertiser, at a chosen level (advertiser / campaign / ad group / ad), for a date range, with optional time breakdowns and id filters. `dimensions` must include the level’s id dimension; each id filter must be valid at that level. Native TikTok metric names — use the curated set or fall back to the entity reads.
1040
- */
1041
- declare const tiktokAdsGetInsights: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsGetInsightsData, ThrowOnError>) => RequestResult<TiktokAdsGetInsightsResponses, TiktokAdsGetInsightsErrors, ThrowOnError>;
1042
- /**
1043
- * TikTok Ads campaign tree
1044
- *
1045
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
1046
- *
1047
- * The campaign → ad_group → ad tree as flat, native, typed nodes — group them by `parent_id` to assemble the tree. Without `campaign_id`, returns every campaign with a per-level `child_kind`/`expandable` hint. With `campaign_id`, returns that campaign’s whole subtree (ad groups + ads) in one batched fetch at a single window. Each node carries TikTok’s authoritative per-level metrics (no client roll-up) for the date window — metrics aggregate over the window (no time breakdown). There is no serving status on the tree (the basic report carries none); correlate a node id with the entity reads for status.
1048
- */
1049
- declare const tiktokAdsGetAdTree: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsGetAdTreeData, ThrowOnError>) => RequestResult<TiktokAdsGetAdTreeResponses, TiktokAdsGetAdTreeErrors, ThrowOnError>;
1050
- /**
1051
- * List TikTok ad identities
1052
- *
1053
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
1054
- *
1055
- * Lists the identities under the connection’s selected advertiser. Optional `identity_type` narrows to one type (e.g. CUSTOMIZED_USER); `page`/`page_size` page the results.
1056
- */
1057
- declare const tiktokAdsListIdentities: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsListIdentitiesData, ThrowOnError>) => RequestResult<TiktokAdsListIdentitiesResponses, TiktokAdsListIdentitiesErrors, ThrowOnError>;
1058
- /**
1059
- * Create a TikTok CUSTOMIZED_USER identity
1060
- *
1061
- * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
1062
- *
1063
- * Creates a synthetic CUSTOMIZED_USER identity for in-feed ads: uploads the avatar from `image_url` (must be 1:1) and creates the identity with `display_name`. Returns the created identity (use its `identity_id` when creating ads).
1064
- */
1065
- declare const tiktokAdsCreateIdentity: <ThrowOnError extends boolean = true>(options: Options<TiktokAdsCreateIdentityData, ThrowOnError>) => RequestResult<TiktokAdsCreateIdentityResponses, TiktokAdsCreateIdentityErrors, ThrowOnError>;
1066
242
  /**
1067
243
  * List request logs
1068
244
  *
@@ -1234,8 +410,8 @@ type ConnectablePlatform = NonNullable<ConnectionsConnectData['body']>['platform
1234
410
  type DiscoverableAccountList = ConnectionsListAccountsResponse;
1235
411
  /**
1236
412
  * A TikTok creator's live publish options for a connection — the data TikTok's
1237
- * Content Posting policy REQUIRES the publishing UI to render: `creator`
1238
- * (nickname + avatar), the `privacy_options` to offer (with NO default), the
413
+ * publishing UI renders: `creator` (nickname + avatar), the `privacy_options` to
414
+ * offer for PHOTO posts (with NO default — videos publish publicly), the
1239
415
  * positive `interaction` (allowed) flags for Comment/Duet/Stitch toggles, and
1240
416
  * `max_video_duration_sec`. Derived from the contract, never hand-declared.
1241
417
  */
@@ -1273,8 +449,8 @@ type LinkedInPostVariant = Extract<PostVariantInput, {
1273
449
  platform: 'linkedin';
1274
450
  }>;
1275
451
  /** The TikTok member of the write variant union — typed native settings
1276
- * (`privacy_level`, `disable_comment`/`disable_duet`/`disable_stitch`,
1277
- * `brand_content_toggle`/`brand_organic_toggle`, `is_aigc`, photo/video cover).
452
+ * (photo-only `privacy_level`, `disable_comment`/`disable_duet`/`disable_stitch`,
453
+ * `is_branded_content`/`is_brand_organic`, `is_ai_generated`, photo/video cover).
1278
454
  * Narrowed from the contract, never hand-declared — it is the compose-time shape a
1279
455
  * live TikTok preview renders. */
1280
456
  type TikTokPostVariant = Extract<PostVariantInput, {
@@ -1512,32 +688,12 @@ type XPoll = NonNullable<NonNullable<XPostVariant['settings']>['poll']>;
1512
688
  declare function xPollDurationLabel(durationMinutes: number): string;
1513
689
 
1514
690
  /**
1515
- * The Google Ads tree, assembled. `GET /v1/google/{conn}/ads/tree` returns FLAT,
1516
- * native `GoogleAdTreeNode`s with Google's authoritative per-level metrics (no
1517
- * client roll-up) keyed by `parent_id`; turning that into a nested tree is generic,
1518
- * so it lives here rather than in every consumer.
1519
- */
1520
- /** A flat tree node with its children attached. Extends the generated node — never
1521
- * a redeclared shape, so it can't drift from the API. */
1522
- interface AdTreeNode extends GoogleAdTreeNode {
1523
- children: AdTreeNode[];
1524
- }
1525
- /**
1526
- * Group flat tree nodes into a nested tree by `parent_id`. A node whose parent is
1527
- * NOT in the set is a root — so a campaign-level page (campaigns have
1528
- * `parent_id: null`) and a per-campaign subtree page (ad groups whose campaign is
1529
- * absent) each group correctly on their own, and concatenating a campaign page with
1530
- * an expanded campaign's subtree page nests the subtree under that campaign. Input
1531
- * order is preserved within every level. Pure — the input is not mutated.
1532
- */
1533
- declare function groupAdTree(nodes: GoogleAdTreeNode[]): AdTreeNode[];
1534
-
1535
- /**
1536
- * TikTok's mandatory publish-options model — the framework-agnostic glue between
1537
- * the live `creator-info` payload and a TikTok post's settings. This is the
1538
- * SINGLE source for the no-default / creator-gated / commercial-disclosure rules
1539
- * TikTok's Required UX mandates; the React panel and the dashboard composer both
1540
- * consume it (never re-implement it).
691
+ * The TikTok composer's publish-options model — the framework-agnostic glue
692
+ * between the live `creator-info` payload and a TikTok post's settings. This is
693
+ * the SINGLE source for the audience / creator-gated interaction / commercial
694
+ * disclosure rules; the React panel and the dashboard composer both consume it
695
+ * (never re-implement it). The no-default audience and explicit-consent flow are
696
+ * Postrun's own UX choices, not API requirements.
1541
697
  *
1542
698
  * The creator-info shape, the privacy union, and the privacy label come from the
1543
699
  * contract (`./resources`, `./tiktok`) — never re-declared. This module owns the
@@ -1556,18 +712,18 @@ declare const TIKTOK_CAPTION_MAX: {
1556
712
  * `post_type` is server-derived from the media (read-only) — the composer passes
1557
713
  * the shape it knows it's building (a video post vs a photo post). */
1558
714
  declare function captionMaxFor(postType: PostType): number;
1559
- /** The creator-gated interactions TikTok requires us to surface — DERIVED from
1560
- * the creator-info contract (`interaction` keys), never hand-listed, so it can
1561
- * never drift from the API shape. */
715
+ /** The creator-gated interactions we surface — DERIVED from the creator-info
716
+ * contract (`interaction` keys), never hand-listed, so it can never drift from
717
+ * the API shape. */
1562
718
  type TikTokInteractionKey = keyof TikTokCreatorInfo['interaction'];
1563
719
  /** Which commercial-disclosure brand option a control maps to. */
1564
720
  type TikTokBrandKind = 'your_brand' | 'branded_content';
1565
721
  /**
1566
722
  * The controlled value a TikTok composer/preview owns. `privacy_level` is
1567
- * optional because TikTok requires the user to pick — there is NO default (an
1568
- * absent value is the "must choose" state the publish gate keys off). Interaction
1569
- * flags are POSITIVE ("allow"); `tiktokSettings` inverts them to the API's
1570
- * `disable_*` shape.
723
+ * PHOTO-ONLY (TikTok publishes every video publicly) and optional because we
724
+ * make the user pick — there is NO default (an absent value is the "must choose"
725
+ * state the photo publish gate keys off). Interaction flags are POSITIVE
726
+ * ("allow"); `tiktokSettings` inverts them to the API's `disable_*` shape.
1571
727
  */
1572
728
  interface TikTokOptionsValue {
1573
729
  privacy_level?: TikTokPrivacyLevel;
@@ -1579,13 +735,16 @@ interface TikTokOptionsValue {
1579
735
  commercial_disclosure: boolean;
1580
736
  your_brand: boolean;
1581
737
  branded_content: boolean;
1582
- /** AI-generated content disclosure → the API's `is_aigc`. Video-only, off by
1583
- * default. */
1584
- aigc: boolean;
738
+ /** AI-generated content disclosure → the API's `is_ai_generated`. Video-only,
739
+ * off by default. */
740
+ ai_generated: boolean;
1585
741
  }
1586
- interface TikTokPrivacyChoice {
742
+ interface AudiencePrivacyChoice {
1587
743
  level: TikTokPrivacyLevel;
1588
744
  label: string;
745
+ disabled: boolean;
746
+ /** Why the option is disabled; present only when disabled. */
747
+ disabledReason?: string;
1589
748
  }
1590
749
  interface TikTokInteractionRow {
1591
750
  key: TikTokInteractionKey;
@@ -1599,31 +758,32 @@ declare const TIKTOK_MUSIC_CONFIRMATION_URL = "https://www.tiktok.com/legal/page
1599
758
  declare const TIKTOK_BRANDED_CONTENT_POLICY_URL = "https://www.tiktok.com/legal/page/global/bc-policy/en";
1600
759
  /** TikTok's exact required prompt when disclosure is on but nothing is chosen. */
1601
760
  declare const TIKTOK_DISCLOSURE_REQUIRED_HINT = "You need to indicate if your content promotes yourself, a third party, or both.";
1602
- /** TikTok's required prompt when no audience has been picked yet. */
1603
- declare const TIKTOK_AUDIENCE_REQUIRED_HINT = "Choose who can view this video before publishing.";
1604
- /** TikTok Required UX: clients must notify users a published post may take a few
1605
- * minutes to process. No exact string is mandated; this conveys it. */
761
+ /** Shown when a photo post has no audience picked yet. */
762
+ declare const TIKTOK_AUDIENCE_REQUIRED_HINT = "Choose who can view this post before publishing.";
763
+ /** Why branded content can't be combined with a private audience. */
764
+ declare const TIKTOK_BRANDED_CONTENT_PRIVATE_DISABLED_REASON = "Branded content visibility cannot be set to private.";
765
+ /** A published post may take a few minutes to process; tells the user so. */
1606
766
  declare const TIKTOK_PROCESSING_NOTICE = "After you publish, it may take a few minutes for your post to process and appear on your TikTok profile.";
1607
767
  /**
1608
- * The initial value for a TikTok post: nothing pre-selected. TikTok's Required UX
1609
- * mandates the user actively choose — no default privacy, every interaction OFF,
1610
- * no disclosure. The panel still greys the interactions the creator forbids.
768
+ * The initial value for a TikTok post: nothing pre-selected. We make the user
769
+ * actively choose — no default audience, every interaction OFF, no disclosure.
770
+ * The panel still greys the interactions the creator forbids.
1611
771
  */
1612
772
  declare function defaultTikTokOptions(): TikTokOptionsValue;
1613
- /** The audience choices for the dropdown — one per level the creator allows. */
1614
- declare function privacyChoices(options: readonly TikTokPrivacyLevel[]): TikTokPrivacyChoice[];
1615
773
  /** Narrow a raw dropdown value to a `TikTokPrivacyLevel` against the creator's
1616
774
  * allowed options — returns `undefined` for anything not offered (no cast). */
1617
775
  declare function parsePrivacyLevel(value: string, options: readonly TikTokPrivacyLevel[]): TikTokPrivacyLevel | undefined;
1618
776
  /**
1619
- * The audience levels to offer. Branded content can ONLY be public/friends —
1620
- * TikTok forbids posting it SELF_ONLY (private) — so that option is dropped when
1621
- * branded content is disclosed. Otherwise every creator-allowed level is offered.
777
+ * The audience choices for a PHOTO post — one per creator-allowed level. While
778
+ * branded content is disclosed, `SELF_ONLY` stays visible but disabled with the
779
+ * reason (branded content can't be private); it is never silently removed or
780
+ * swapped, so the user's selection is never changed behind their back.
1622
781
  */
1623
- declare function audiencePrivacyOptions(options: readonly TikTokPrivacyLevel[], value: TikTokOptionsValue): TikTokPrivacyLevel[];
1624
- /** No audience picked yet — must BLOCK publish (TikTok mandates an explicit
1625
- * choice with no default; the API rejects a missing `privacy_level` too). */
1626
- declare function audienceUnselected(value: TikTokOptionsValue): boolean;
782
+ declare function audiencePrivacyOptions(options: readonly TikTokPrivacyLevel[], value: TikTokOptionsValue): AudiencePrivacyChoice[];
783
+ /** A photo post with no audience picked yet — must BLOCK publish (the API
784
+ * requires `privacy_level` on photos and we offer no default). A video never
785
+ * needs one: TikTok publishes every video publicly. */
786
+ declare function audienceUnselected(value: TikTokOptionsValue, isVideo: boolean): boolean;
1627
787
  /** Disclosure is on but neither brand option is chosen — TikTok requires ≥1. */
1628
788
  declare function commercialDisclosureIncomplete(value: TikTokOptionsValue): boolean;
1629
789
  /** True when the post is disclosed as branded content (drives the BC declaration). */
@@ -1637,12 +797,15 @@ declare function commercialLabelNotice(value: TikTokOptionsValue): string | null
1637
797
  /** Toggle the master disclosure switch. Turning it OFF clears both brand
1638
798
  * selections (a hidden control must not keep sending a stale selection). */
1639
799
  declare function setCommercialDisclosure(value: TikTokOptionsValue, on: boolean): TikTokOptionsValue;
800
+ /** Set one brand option. Never touches the audience (see
801
+ * `brandedContentDisabledReason` for how a private audience locks branded content). */
802
+ declare function setBrandKind(value: TikTokOptionsValue, kind: TikTokBrandKind, on: boolean): TikTokOptionsValue;
1640
803
  /**
1641
- * Set one brand option. Enabling branded content while a private audience is
1642
- * picked clears the audience (branded content can't be SELF_ONLY; no default — the
1643
- * user re-picks from the now-narrowed options).
804
+ * Why "Branded content" is locked, or undefined when it can be toggled. With a
805
+ * private audience already picked the option stays visible but disabled WITH the
806
+ * reason — an already-checked box stays untickable.
1644
807
  */
1645
- declare function setBrandKind(value: TikTokOptionsValue, kind: TikTokBrandKind, on: boolean): TikTokOptionsValue;
808
+ declare function brandedContentDisabledReason(value: TikTokOptionsValue): string | undefined;
1646
809
  /** True when the creator does NOT permit this interaction (so it's locked off). */
1647
810
  declare function isInteractionForbidden(info: TikTokCreatorInfo, key: TikTokInteractionKey): boolean;
1648
811
  /** The interaction toggles to render — video shows Comment/Duet/Stitch (each
@@ -1654,17 +817,38 @@ declare function interactionValueKey(key: TikTokInteractionKey): keyof TikTokOpt
1654
817
  declare function toggleInteraction(value: TikTokOptionsValue, key: TikTokInteractionKey, on: boolean): TikTokOptionsValue;
1655
818
  /**
1656
819
  * Map the composer's positive value into the SDK's `tiktok` settings — INVERTING
1657
- * `allow_*` into TikTok's `disable_*`. `disable_duet`/`disable_stitch`/`is_aigc`
1658
- * are video-only (the API rejects them on a photo post), so a photo post sends
1659
- * just `privacy_level` + `disable_comment` + the brand toggles.
820
+ * `allow_*` into TikTok's `disable_*`. The API rejects video-only fields
821
+ * (`disable_duet`/`disable_stitch`/`is_ai_generated`) on a photo and
822
+ * `privacy_level` on a video (`field_placement_invalid`), so each post kind sends
823
+ * only its own.
1660
824
  */
1661
825
  declare function tiktokSettings(value: TikTokOptionsValue, isVideo: boolean): NonNullable<SettingsFor<'tiktok'>>;
826
+ /** A fetched post's TikTok variant settings (the read shape) — derived from the
827
+ * contract, never re-declared. */
828
+ type TikTokVariantSettings = Extract<Post['variants'][number], {
829
+ platform: 'tiktok';
830
+ }>['settings'];
831
+ /**
832
+ * The inverse of {@link tiktokSettings}: rebuild the composer's controlled
833
+ * options from a fetched post's TikTok settings — the open-a-draft / scheduled
834
+ * path. `disable_*` flags invert back to positive "allow"; disclosure is on when
835
+ * either brand flag is.
836
+ */
837
+ declare function tiktokOptionsFromSettings(settings: TikTokVariantSettings): TikTokOptionsValue;
838
+ /**
839
+ * A render-ready block message when the selected video exceeds the creator's
840
+ * `max_video_duration_sec`, else `null`. Video-only. Never false-blocks: missing
841
+ * creator-info (still loading), no video asset, or a duration the probe hasn't
842
+ * reported yet (`source.duration_ms === null`) all return `null` — it only fires
843
+ * on a KNOWN over-limit duration.
844
+ */
845
+ declare function tiktokDurationError(media: readonly MediaResource[], info: TikTokCreatorInfo | null, isVideo: boolean): string | null;
1662
846
  /**
1663
847
  * Is the TikTok post ready to publish (client-side gate mirroring the API)?
1664
- * Audience must be chosen and, if disclosure is on, a brand kind must be picked.
848
+ * A photo needs an audience; any post with disclosure on needs a brand kind.
1665
849
  * The caption-cap + media-count checks live with their own components.
1666
850
  */
1667
- declare function tiktokOptionsReady(value: TikTokOptionsValue): boolean;
851
+ declare function tiktokOptionsReady(value: TikTokOptionsValue, isVideo: boolean): boolean;
1668
852
 
1669
853
  /**
1670
854
  * A media attachment — just the uploaded asset's id. The post SHAPE (`post_type`
@@ -1752,4 +936,4 @@ declare function buildCreatePost(input: ComposePostInput, connections: readonly
1752
936
  */
1753
937
  declare function buildUpdatePost(input: ComposeUpdateInput, connections?: readonly ConnectionRef[]): UpdatePostInput;
1754
938
 
1755
- export { type AdTreeNode, 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, GoogleAdTreeNode, GoogleAttachAssetGroupAssetData, GoogleAttachAssetGroupAssetErrors, GoogleAttachAssetGroupAssetResponses, GoogleCreateAdData, GoogleCreateAdErrors, GoogleCreateAdGroupCriterionData, GoogleCreateAdGroupCriterionErrors, GoogleCreateAdGroupCriterionResponses, GoogleCreateAdGroupData, GoogleCreateAdGroupErrors, GoogleCreateAdGroupResponses, GoogleCreateAdResponses, GoogleCreateAssetGroupData, GoogleCreateAssetGroupErrors, GoogleCreateAssetGroupResponses, GoogleCreateAssetGroupSignalData, GoogleCreateAssetGroupSignalErrors, GoogleCreateAssetGroupSignalResponses, GoogleCreateBudgetData, GoogleCreateBudgetErrors, GoogleCreateBudgetResponses, GoogleCreateCampaignCriterionData, GoogleCreateCampaignCriterionErrors, GoogleCreateCampaignCriterionResponses, GoogleCreateCampaignData, GoogleCreateCampaignErrors, GoogleCreateCampaignResponses, GoogleCreateConversionActionData, GoogleCreateConversionActionErrors, GoogleCreateConversionActionResponses, GoogleCreateDisplayAdData, GoogleCreateDisplayAdErrors, GoogleCreateDisplayAdResponses, GoogleCreateKeywordData, GoogleCreateKeywordErrors, GoogleCreateKeywordResponses, GoogleCreatePerformanceMaxData, GoogleCreatePerformanceMaxErrors, GoogleCreatePerformanceMaxResponses, GoogleEditAccountData, GoogleEditAccountErrors, GoogleEditAccountResponses, GoogleEditAdData, GoogleEditAdErrors, GoogleEditAdGroupData, GoogleEditAdGroupErrors, GoogleEditAdGroupResponses, GoogleEditAdResponses, GoogleEditAssetGroupData, GoogleEditAssetGroupErrors, GoogleEditAssetGroupResponses, GoogleEditBudgetData, GoogleEditBudgetErrors, GoogleEditBudgetResponses, GoogleEditCampaignData, GoogleEditCampaignErrors, GoogleEditCampaignResponses, GoogleEditDisplayAdData, GoogleEditDisplayAdErrors, GoogleEditDisplayAdResponses, GoogleEnableAdData, GoogleEnableAdErrors, GoogleEnableAdGroupData, GoogleEnableAdGroupErrors, GoogleEnableAdGroupResponses, GoogleEnableAdResponses, GoogleEnableAssetGroupData, GoogleEnableAssetGroupErrors, GoogleEnableAssetGroupResponses, GoogleEnableCampaignData, GoogleEnableCampaignErrors, GoogleEnableCampaignResponses, GoogleEnableKeywordData, GoogleEnableKeywordErrors, GoogleEnableKeywordResponses, GoogleGetAccountData, GoogleGetAccountErrors, GoogleGetAccountResponses, GoogleGetAdData, GoogleGetAdErrors, GoogleGetAdGroupData, GoogleGetAdGroupErrors, GoogleGetAdGroupResponses, GoogleGetAdResponses, GoogleGetAdTreeData, GoogleGetAdTreeErrors, GoogleGetAdTreeResponses, GoogleGetAssetGroupData, GoogleGetAssetGroupErrors, GoogleGetAssetGroupResponses, GoogleGetCampaignData, GoogleGetCampaignErrors, GoogleGetCampaignResponses, GoogleGetConversionActionData, GoogleGetConversionActionErrors, GoogleGetConversionActionResponses, GoogleGetConversionStatusData, GoogleGetConversionStatusErrors, GoogleGetConversionStatusResponses, GoogleGetInsightsData, GoogleGetInsightsErrors, GoogleGetInsightsResponses, GoogleGetKeywordData, GoogleGetKeywordErrors, GoogleGetKeywordResponses, GoogleListAdGroupCriteriaData, GoogleListAdGroupCriteriaErrors, GoogleListAdGroupCriteriaResponses, GoogleListAdGroupsData, GoogleListAdGroupsErrors, GoogleListAdGroupsResponses, GoogleListAdsData, GoogleListAdsErrors, GoogleListAdsResponses, GoogleListAssetGroupAssetsData, GoogleListAssetGroupAssetsErrors, GoogleListAssetGroupAssetsResponses, GoogleListAssetGroupSignalsData, GoogleListAssetGroupSignalsErrors, GoogleListAssetGroupSignalsResponses, GoogleListAssetGroupsData, GoogleListAssetGroupsErrors, GoogleListAssetGroupsResponses, GoogleListAudiencesData, GoogleListAudiencesErrors, GoogleListAudiencesResponses, GoogleListCampaignCriteriaData, GoogleListCampaignCriteriaErrors, GoogleListCampaignCriteriaResponses, GoogleListCampaignsData, GoogleListCampaignsErrors, GoogleListCampaignsResponses, GoogleListConversionActionsData, GoogleListConversionActionsErrors, GoogleListConversionActionsResponses, GoogleListConversionGoalsData, GoogleListConversionGoalsErrors, GoogleListConversionGoalsResponses, GoogleListConversionRequestsData, GoogleListConversionRequestsErrors, GoogleListConversionRequestsResponses, GoogleListKeywordsData, GoogleListKeywordsErrors, GoogleListKeywordsResponses, GooglePauseAdData, GooglePauseAdErrors, GooglePauseAdGroupData, GooglePauseAdGroupErrors, GooglePauseAdGroupResponses, GooglePauseAdResponses, GooglePauseAssetGroupData, GooglePauseAssetGroupErrors, GooglePauseAssetGroupResponses, GooglePauseCampaignData, GooglePauseCampaignErrors, GooglePauseCampaignResponses, GooglePauseKeywordData, GooglePauseKeywordErrors, GooglePauseKeywordResponses, GoogleRemoveAdData, GoogleRemoveAdErrors, GoogleRemoveAdGroupCriterionData, GoogleRemoveAdGroupCriterionErrors, GoogleRemoveAdGroupCriterionResponses, GoogleRemoveAdGroupData, GoogleRemoveAdGroupErrors, GoogleRemoveAdGroupResponses, GoogleRemoveAdResponses, GoogleRemoveAssetGroupAssetData, GoogleRemoveAssetGroupAssetErrors, GoogleRemoveAssetGroupAssetResponses, GoogleRemoveAssetGroupData, GoogleRemoveAssetGroupErrors, GoogleRemoveAssetGroupResponses, GoogleRemoveAssetGroupSignalData, GoogleRemoveAssetGroupSignalErrors, GoogleRemoveAssetGroupSignalResponses, GoogleRemoveBudgetData, GoogleRemoveBudgetErrors, GoogleRemoveBudgetResponses, GoogleRemoveCampaignCriterionData, GoogleRemoveCampaignCriterionErrors, GoogleRemoveCampaignCriterionResponses, GoogleRemoveCampaignData, GoogleRemoveCampaignErrors, GoogleRemoveCampaignResponses, GoogleRemoveConversionActionData, GoogleRemoveConversionActionErrors, GoogleRemoveConversionActionResponses, GoogleRemoveKeywordData, GoogleRemoveKeywordErrors, GoogleRemoveKeywordResponses, GoogleRunGaqlData, GoogleRunGaqlErrors, GoogleRunGaqlResponses, GoogleSearchGeoTargetsData, GoogleSearchGeoTargetsErrors, GoogleSearchGeoTargetsResponses, GoogleSendConversionsData, GoogleSendConversionsErrors, GoogleSendConversionsResponses, GoogleSetAdGroupBidsData, GoogleSetAdGroupBidsErrors, GoogleSetAdGroupBidsResponses, GoogleSetCampaignBiddingData, GoogleSetCampaignBiddingErrors, GoogleSetCampaignBiddingResponses, GoogleSetCampaignGeoSettingsData, GoogleSetCampaignGeoSettingsErrors, GoogleSetCampaignGeoSettingsResponses, GoogleSetCampaignTargetingSettingData, GoogleSetCampaignTargetingSettingErrors, GoogleSetCampaignTargetingSettingResponses, GoogleSetConversionGoalData, GoogleSetConversionGoalErrors, GoogleSetConversionGoalResponses, GoogleSetKeywordBidData, GoogleSetKeywordBidErrors, GoogleSetKeywordBidResponses, GoogleUpdateConversionActionData, GoogleUpdateConversionActionErrors, GoogleUpdateConversionActionResponses, GoogleUploadImageAssetData, GoogleUploadImageAssetErrors, GoogleUploadImageAssetResponses, GoogleUploadYoutubeVideoAssetData, GoogleUploadYoutubeVideoAssetErrors, GoogleUploadYoutubeVideoAssetResponses, 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, MetaAccountData, MetaAccountErrors, MetaAccountResponses, MetaAdData, MetaAdErrors, MetaAdResponses, MetaAdsData, MetaAdsErrors, MetaAdsResponses, MetaAdsetData, MetaAdsetErrors, MetaAdsetResponses, MetaAdsetsData, MetaAdsetsErrors, MetaAdsetsResponses, MetaCampaignData, MetaCampaignErrors, MetaCampaignResponses, MetaCampaignsData, MetaCampaignsErrors, MetaCampaignsResponses, MetaInsightsData, MetaInsightsErrors, MetaInsightsResponses, 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, 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_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 TikTokPrivacyChoice, type TikTokPrivacyLevel, TiktokAdsCreateAdData, TiktokAdsCreateAdErrors, TiktokAdsCreateAdGroupData, TiktokAdsCreateAdGroupErrors, TiktokAdsCreateAdGroupResponses, TiktokAdsCreateAdResponses, TiktokAdsCreateCampaignData, TiktokAdsCreateCampaignErrors, TiktokAdsCreateCampaignResponses, TiktokAdsCreateIdentityData, TiktokAdsCreateIdentityErrors, TiktokAdsCreateIdentityResponses, TiktokAdsGetAdTreeData, TiktokAdsGetAdTreeErrors, TiktokAdsGetAdTreeResponses, TiktokAdsGetInsightsData, TiktokAdsGetInsightsErrors, TiktokAdsGetInsightsResponses, TiktokAdsListAdGroupsData, TiktokAdsListAdGroupsErrors, TiktokAdsListAdGroupsResponses, TiktokAdsListAdsData, TiktokAdsListAdsErrors, TiktokAdsListAdsResponses, TiktokAdsListAdvertisersData, TiktokAdsListAdvertisersErrors, TiktokAdsListAdvertisersResponses, TiktokAdsListBusinessCentersData, TiktokAdsListBusinessCentersErrors, TiktokAdsListBusinessCentersResponses, TiktokAdsListCampaignsData, TiktokAdsListCampaignsErrors, TiktokAdsListCampaignsResponses, TiktokAdsListIdentitiesData, TiktokAdsListIdentitiesErrors, TiktokAdsListIdentitiesResponses, TiktokAdsRemoveAdData, TiktokAdsRemoveAdErrors, TiktokAdsRemoveAdGroupData, TiktokAdsRemoveAdGroupErrors, TiktokAdsRemoveAdGroupResponses, TiktokAdsRemoveAdResponses, TiktokAdsRemoveCampaignData, TiktokAdsRemoveCampaignErrors, TiktokAdsRemoveCampaignResponses, TiktokAdsUpdateAdGroupBudgetData, TiktokAdsUpdateAdGroupBudgetErrors, TiktokAdsUpdateAdGroupBudgetResponses, TiktokAdsUpdateAdGroupStatusData, TiktokAdsUpdateAdGroupStatusErrors, TiktokAdsUpdateAdGroupStatusResponses, TiktokAdsUpdateAdStatusData, TiktokAdsUpdateAdStatusErrors, TiktokAdsUpdateAdStatusResponses, TiktokAdsUpdateCampaignBudgetData, TiktokAdsUpdateCampaignBudgetErrors, TiktokAdsUpdateCampaignBudgetResponses, TiktokAdsUpdateCampaignStatusData, TiktokAdsUpdateCampaignStatusErrors, TiktokAdsUpdateCampaignStatusResponses, 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, buildCreatePost, buildUpdatePost, captionMaxFor, commercialDisclosureIncomplete, commercialLabelNotice, connectionsConnect, connectionsDelete, connectionsGet, connectionsListAccounts, connectionsListByProfile, connectionsSelect, defaultTikTokOptions, failedVariants, googleAttachAssetGroupAsset, googleCreateAd, googleCreateAdGroup, googleCreateAdGroupCriterion, googleCreateAssetGroup, googleCreateAssetGroupSignal, googleCreateBudget, googleCreateCampaign, googleCreateCampaignCriterion, googleCreateConversionAction, googleCreateDisplayAd, googleCreateKeyword, googleCreatePerformanceMax, googleEditAccount, googleEditAd, googleEditAdGroup, googleEditAssetGroup, googleEditBudget, googleEditCampaign, googleEditDisplayAd, googleEnableAd, googleEnableAdGroup, googleEnableAssetGroup, googleEnableCampaign, googleEnableKeyword, googleGetAccount, googleGetAd, googleGetAdGroup, googleGetAdTree, googleGetAssetGroup, googleGetCampaign, googleGetConversionAction, googleGetConversionStatus, googleGetInsights, googleGetKeyword, googleListAdGroupCriteria, googleListAdGroups, googleListAds, googleListAssetGroupAssets, googleListAssetGroupSignals, googleListAssetGroups, googleListAudiences, googleListCampaignCriteria, googleListCampaigns, googleListConversionActions, googleListConversionGoals, googleListConversionRequests, googleListKeywords, googlePauseAd, googlePauseAdGroup, googlePauseAssetGroup, googlePauseCampaign, googlePauseKeyword, googleRemoveAd, googleRemoveAdGroup, googleRemoveAdGroupCriterion, googleRemoveAssetGroup, googleRemoveAssetGroupAsset, googleRemoveAssetGroupSignal, googleRemoveBudget, googleRemoveCampaign, googleRemoveCampaignCriterion, googleRemoveConversionAction, googleRemoveKeyword, googleRunGaql, googleSearchGeoTargets, googleSendConversions, googleSetAdGroupBids, googleSetCampaignBidding, googleSetCampaignGeoSettings, googleSetCampaignTargetingSetting, googleSetConversionGoal, googleSetKeywordBid, googleUpdateConversionAction, googleUploadImageAsset, googleUploadYoutubeVideoAsset, groupAdTree, interactionRows, interactionValueKey, isInteractionForbidden, isPostPlatform, isPublished, linkedinPollDurationLabel, logsGet, logsList, mediaAbort, mediaComplete, mediaCreate, mediaDelete, mediaGet, mediaList, mediaListParts, mediaSignPart, mediaUpdate, metaAccount, metaAd, metaAds, metaAdset, metaAdsets, metaCampaign, metaCampaigns, metaInsights, parsePrivacyLevel, postsCreate, postsDelete, postsGet, postsList, postsUpdate, postsValidate, privacyChoices, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, setBrandKind, setCommercialDisclosure, tiktokAdsCreateAd, tiktokAdsCreateAdGroup, tiktokAdsCreateCampaign, tiktokAdsCreateIdentity, tiktokAdsGetAdTree, tiktokAdsGetInsights, tiktokAdsListAdGroups, tiktokAdsListAds, tiktokAdsListAdvertisers, tiktokAdsListBusinessCenters, tiktokAdsListCampaigns, tiktokAdsListIdentities, tiktokAdsRemoveAd, tiktokAdsRemoveAdGroup, tiktokAdsRemoveCampaign, tiktokAdsUpdateAdGroupBudget, tiktokAdsUpdateAdGroupStatus, tiktokAdsUpdateAdStatus, tiktokAdsUpdateCampaignBudget, tiktokAdsUpdateCampaignStatus, tiktokCreatorInfo, tiktokOptionsReady, tiktokPrivacyLabel, tiktokSettings, toggleInteraction, tokensMint, uploadFile, waitForMedia, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint, xPollDurationLabel };
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 };