@postrun/js 2.10.0 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-IK4QXQLM.js → chunk-QMBBAADH.js} +3 -3
- package/dist/{chunk-IK4QXQLM.js.map → chunk-QMBBAADH.js.map} +1 -1
- package/dist/{chunk-LATXGVUG.js → chunk-T4V4M2WL.js} +1353 -369
- package/dist/chunk-T4V4M2WL.js.map +1 -0
- package/dist/index.cjs +1459 -411
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -3
- package/dist/index.d.ts +27 -3
- package/dist/index.js +61 -3
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.cjs +1351 -367
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +1190 -206
- package/dist/schemas/index.d.ts +1190 -206
- package/dist/schemas/index.js +1 -1
- package/dist/server.cjs +1348 -364
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +2 -2
- package/dist/{types.gen-BUi197pC.d.cts → types.gen-CENLQ15A.d.cts} +2708 -996
- package/dist/{types.gen-BUi197pC.d.ts → types.gen-CENLQ15A.d.ts} +2708 -996
- package/package.json +3 -1
- package/dist/chunk-LATXGVUG.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TDataShape, O as Options$1, C as Client, a as ClientMeta, b as ConnectionsConnectData, R as RequestResult, c as ConnectionsConnectResponses, d as ConnectionsConnectErrors, e as ConnectionsDeleteData, f as ConnectionsDeleteResponses, g as ConnectionsDeleteErrors, h as ConnectionsGetData, i as ConnectionsGetResponses, j as ConnectionsGetErrors, k as 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 GoogleCreateAdData, t as GoogleCreateAdResponses, u as GoogleCreateAdErrors, v as GoogleCreateAdGroupData, w as GoogleCreateAdGroupResponses, x as GoogleCreateAdGroupErrors, y as GoogleCreateBudgetData, z as GoogleCreateBudgetResponses, A as GoogleCreateBudgetErrors, B as GoogleCreateCampaignData, D as GoogleCreateCampaignResponses, E as GoogleCreateCampaignErrors, F as GoogleCreateConversionActionData, H as GoogleCreateConversionActionResponses, I as GoogleCreateConversionActionErrors, J as GoogleCreateDisplayAdData, K as GoogleCreateDisplayAdResponses, L as GoogleCreateDisplayAdErrors, M as GoogleCreateKeywordData, N as GoogleCreateKeywordResponses, P as GoogleCreateKeywordErrors, Q as GoogleDeleteAdData, S as GoogleDeleteAdResponses, U as GoogleDeleteAdErrors, V as GoogleDeleteAdGroupData, W as GoogleDeleteAdGroupResponses, X as GoogleDeleteAdGroupErrors, Y as GoogleDeleteBudgetData, Z as GoogleDeleteBudgetResponses, _ as GoogleDeleteBudgetErrors, $ as GoogleDeleteCampaignData, a0 as GoogleDeleteCampaignResponses, a1 as GoogleDeleteCampaignErrors, a2 as GoogleDeleteKeywordData, a3 as GoogleDeleteKeywordResponses, a4 as GoogleDeleteKeywordErrors, a5 as GoogleEditAdGroupData, a6 as GoogleEditAdGroupResponses, a7 as GoogleEditAdGroupErrors, a8 as GoogleEditBudgetData, a9 as GoogleEditBudgetResponses, aa as GoogleEditBudgetErrors, ab as GoogleEditCampaignData, ac as GoogleEditCampaignResponses, ad as GoogleEditCampaignErrors, ae as GoogleEnableAdData, af as GoogleEnableAdResponses, ag as GoogleEnableAdErrors, ah as GoogleEnableAdGroupData, ai as GoogleEnableAdGroupResponses, aj as GoogleEnableAdGroupErrors, ak as GoogleEnableCampaignData, al as GoogleEnableCampaignResponses, am as GoogleEnableCampaignErrors, an as GoogleEnableKeywordData, ao as GoogleEnableKeywordResponses, ap as GoogleEnableKeywordErrors, aq as GoogleGetAccountData, ar as GoogleGetAccountResponses, as as GoogleGetAccountErrors, at as GoogleGetAdData, au as GoogleGetAdResponses, av as GoogleGetAdErrors, aw as GoogleGetAdGroupData, ax as GoogleGetAdGroupResponses, ay as GoogleGetAdGroupErrors, az as GoogleGetCampaignData, aA as GoogleGetCampaignResponses, aB as GoogleGetCampaignErrors, aC as GoogleGetConversionActionData, aD as GoogleGetConversionActionResponses, aE as GoogleGetConversionActionErrors, aF as GoogleGetInsightsData, aG as GoogleGetInsightsResponses, aH as GoogleGetInsightsErrors, aI as GoogleGetKeywordData, aJ as GoogleGetKeywordResponses, aK as GoogleGetKeywordErrors, aL as GoogleListAdGroupsData, aM as GoogleListAdGroupsResponses, aN as GoogleListAdGroupsErrors, aO as GoogleListAdsData, aP as GoogleListAdsResponses, aQ as GoogleListAdsErrors, aR as GoogleListCampaignsData, aS as GoogleListCampaignsResponses, aT as GoogleListCampaignsErrors, aU as GoogleListConversionActionsData, aV as GoogleListConversionActionsResponses, aW as GoogleListConversionActionsErrors, aX as GoogleListConversionGoalsData, aY as GoogleListConversionGoalsResponses, aZ as GoogleListConversionGoalsErrors, a_ as GoogleListKeywordsData, a$ as GoogleListKeywordsResponses, b0 as GoogleListKeywordsErrors, b1 as GooglePauseAdData, b2 as GooglePauseAdResponses, b3 as GooglePauseAdErrors, b4 as GooglePauseAdGroupData, b5 as GooglePauseAdGroupResponses, b6 as GooglePauseAdGroupErrors, b7 as GooglePauseCampaignData, b8 as GooglePauseCampaignResponses, b9 as GooglePauseCampaignErrors, ba as GooglePauseKeywordData, bb as GooglePauseKeywordResponses, bc as GooglePauseKeywordErrors, bd as GoogleRunGaqlData, be as GoogleRunGaqlResponses, bf as GoogleRunGaqlErrors, bg as GoogleSetAdGroupBidsData, bh as GoogleSetAdGroupBidsResponses, bi as GoogleSetAdGroupBidsErrors, bj as GoogleSetConversionGoalData, bk as GoogleSetConversionGoalResponses, bl as GoogleSetConversionGoalErrors, bm as GoogleSetKeywordBidData, bn as GoogleSetKeywordBidResponses, bo as GoogleSetKeywordBidErrors, bp as GoogleUploadConversionsData, bq as GoogleUploadConversionsResponses, br as GoogleUploadConversionsErrors, bs as GoogleUploadImageAssetData, bt as GoogleUploadImageAssetResponses, bu as GoogleUploadImageAssetErrors, bv as LogsGetData, bw as LogsGetResponses, bx as LogsGetErrors, by as LogsListData, bz as LogsListResponses, bA as LogsListErrors, bB as MediaCreateData, bC as MediaCreateResponses, bD as MediaCreateErrors, bE as MediaDeleteData, bF as MediaDeleteResponses, bG as MediaDeleteErrors, bH as MediaGetData, bI as MediaGetResponses, bJ as MediaGetErrors, bK as MediaListData, bL as MediaListResponses, bM as MediaListErrors, bN as MediaUpdateData, bO as MediaUpdateResponses, bP as MediaUpdateErrors, bQ as MetaAccountData, bR as MetaAccountResponses, bS as MetaAccountErrors, bT as MetaAdData, bU as MetaAdResponses, bV as MetaAdErrors, bW as MetaAdsData, bX as MetaAdsResponses, bY as MetaAdsErrors, bZ as MetaAdsetData, b_ as MetaAdsetResponses, b$ as MetaAdsetErrors, c0 as MetaAdsetsData, c1 as MetaAdsetsResponses, c2 as MetaAdsetsErrors, c3 as MetaCampaignData, c4 as MetaCampaignResponses, c5 as MetaCampaignErrors, c6 as MetaCampaignsData, c7 as MetaCampaignsResponses, c8 as MetaCampaignsErrors, c9 as MetaInsightsData, ca as MetaInsightsResponses, cb as MetaInsightsErrors, cc as PostsCreateData, cd as PostsCreateResponses, ce as PostsCreateErrors, cf as PostsDeleteData, cg as PostsDeleteResponses, ch as PostsDeleteErrors, ci as PostsGetData, cj as PostsGetResponses, ck as PostsGetErrors, cl as PostsListData, cm as PostsListResponses, cn as PostsListErrors, co as PostsUpdateData, cp as PostsUpdateResponses, cq as PostsUpdateErrors, cr as PostsValidateData, cs as PostsValidateResponses, ct as PostsValidateErrors, cu as ProfilesCreateData, cv as ProfilesCreateResponses, cw as ProfilesCreateErrors, cx as ProfilesDeleteData, cy as ProfilesDeleteResponses, cz as ProfilesDeleteErrors, cA as ProfilesGetData, cB as ProfilesGetResponses, cC as ProfilesGetErrors, cD as ProfilesListData, cE as ProfilesListResponses, cF as ProfilesListErrors, cG as ProfilesUpdateData, cH as ProfilesUpdateResponses, cI as ProfilesUpdateErrors, cJ as TiktokCreatorInfoData, cK as TiktokCreatorInfoResponses, cL as TiktokCreatorInfoErrors, cM as TokensMintData, cN as TokensMintResponses, cO as TokensMintErrors, cP as WebhooksCreateEndpointData, cQ as WebhooksCreateEndpointResponses, cR as WebhooksCreateEndpointErrors, cS as WebhooksCreatePortalData, cT as WebhooksCreatePortalResponses, cU as WebhooksCreatePortalErrors, cV as WebhooksDeleteEndpointData, cW as WebhooksDeleteEndpointResponses, cX as WebhooksDeleteEndpointErrors, cY as WebhooksGetEndpointData, cZ as WebhooksGetEndpointResponses, c_ as WebhooksGetEndpointErrors, c$ as WebhooksListEndpointsData, d0 as WebhooksListEndpointsResponses, d1 as WebhooksListEndpointsErrors, d2 as WebhooksListEventTypesData, d3 as WebhooksListEventTypesResponses, d4 as WebhooksListEventTypesErrors, d5 as WebhooksPingData, d6 as WebhooksPingResponses, d7 as WebhooksPingErrors, d8 as WebhooksUpdateEndpointData, d9 as WebhooksUpdateEndpointResponses, da as WebhooksUpdateEndpointErrors, db as ErrorCode, dc as MediaGetResponse, dd as ConnectionsConnectResponse, de as ConnectionsGetResponse, df as ConnectionsListByProfileResponse, dg as MediaCreateResponse, dh as ConnectionsListAccountsResponse, di as MediaListResponse, dj as PostsGetResponse, dk as PostsListResponse, dl as PostsValidateResponse, dm as ProfilesGetResponse, dn as ProfilesListResponse, dp as TiktokCreatorInfoResponse } from './types.gen-
|
|
2
|
-
export { dq as ClientOptions, dr as ConnectionsConnectError, ds as ConnectionsDeleteError, dt as ConnectionsDeleteResponse, du as ConnectionsGetError, dv as ConnectionsListAccountsError, dw as ConnectionsListByProfileError, dx as ConnectionsSelectError, dy as ConnectionsSelectResponse, dz as GoogleCreateAdError, dA as GoogleCreateAdGroupError, dB as GoogleCreateAdGroupResponse, dC as GoogleCreateAdResponse, dD as GoogleCreateBudgetError, dE as GoogleCreateBudgetResponse, dF as GoogleCreateCampaignError, dG as GoogleCreateCampaignResponse, dH as GoogleCreateConversionActionError, dI as GoogleCreateConversionActionResponse, dJ as GoogleCreateDisplayAdError, dK as GoogleCreateDisplayAdResponse, dL as GoogleCreateKeywordError, dM as GoogleCreateKeywordResponse, dN as GoogleDeleteAdError, dO as GoogleDeleteAdGroupError, dP as GoogleDeleteAdGroupResponse, dQ as GoogleDeleteAdResponse, dR as GoogleDeleteBudgetError, dS as GoogleDeleteBudgetResponse, dT as GoogleDeleteCampaignError, dU as GoogleDeleteCampaignResponse, dV as GoogleDeleteKeywordError, dW as GoogleDeleteKeywordResponse, dX as GoogleEditAdGroupError, dY as GoogleEditAdGroupResponse, dZ as GoogleEditBudgetError, d_ as GoogleEditBudgetResponse, d$ as GoogleEditCampaignError, e0 as GoogleEditCampaignResponse, e1 as GoogleEnableAdError, e2 as GoogleEnableAdGroupError, e3 as GoogleEnableAdGroupResponse, e4 as GoogleEnableAdResponse, e5 as GoogleEnableCampaignError, e6 as GoogleEnableCampaignResponse, e7 as GoogleEnableKeywordError, e8 as GoogleEnableKeywordResponse, e9 as GoogleGetAccountError, ea as GoogleGetAccountResponse, eb as GoogleGetAdError, ec as GoogleGetAdGroupError, ed as GoogleGetAdGroupResponse, ee as GoogleGetAdResponse, ef as GoogleGetCampaignError, eg as GoogleGetCampaignResponse, eh as GoogleGetConversionActionError, ei as GoogleGetConversionActionResponse, ej as GoogleGetInsightsError, ek as GoogleGetInsightsResponse, el as GoogleGetKeywordError, em as GoogleGetKeywordResponse, en as GoogleListAdGroupsError, eo as GoogleListAdGroupsResponse, ep as GoogleListAdsError, eq as GoogleListAdsResponse, er as GoogleListCampaignsError, es as GoogleListCampaignsResponse, et as GoogleListConversionActionsError, eu as GoogleListConversionActionsResponse, ev as GoogleListConversionGoalsError, ew as GoogleListConversionGoalsResponse, ex as GoogleListKeywordsError, ey as GoogleListKeywordsResponse, ez as GooglePauseAdError, eA as GooglePauseAdGroupError, eB as GooglePauseAdGroupResponse, eC as GooglePauseAdResponse, eD as GooglePauseCampaignError, eE as GooglePauseCampaignResponse, eF as GooglePauseKeywordError, eG as GooglePauseKeywordResponse, eH as GoogleRunGaqlError, eI as GoogleRunGaqlResponse, eJ as GoogleSetAdGroupBidsError, eK as GoogleSetAdGroupBidsResponse, eL as GoogleSetConversionGoalError, eM as GoogleSetConversionGoalResponse, eN as GoogleSetKeywordBidError, eO as GoogleSetKeywordBidResponse, eP as GoogleUploadConversionsError, eQ as GoogleUploadConversionsResponse, eR as GoogleUploadImageAssetError, eS as GoogleUploadImageAssetResponse, eT as LogsGetError, eU as LogsGetResponse, eV as LogsListError, eW as LogsListResponse, eX as MediaCreateError, eY as MediaDeleteError, eZ as MediaDeleteResponse, e_ as MediaGetError, e$ as MediaListError, f0 as MediaUpdateError, f1 as MediaUpdateResponse, f2 as MetaAccountError, f3 as MetaAccountResponse, f4 as MetaAdError, f5 as MetaAdResponse, f6 as MetaAdsError, f7 as MetaAdsResponse, f8 as MetaAdsetError, f9 as MetaAdsetResponse, fa as MetaAdsetsError, fb as MetaAdsetsResponse, fc as MetaCampaignError, fd as MetaCampaignResponse, fe as MetaCampaignsError, ff as MetaCampaignsResponse, fg as MetaInsightsError, fh as MetaInsightsResponse, fi as PostrunClient, fj as PostrunClientOptions, fk as PostsCreateError, fl as PostsCreateResponse, fm as PostsDeleteError, fn as PostsDeleteResponse, fo as PostsGetError, fp as PostsListError, fq as PostsUpdateError, fr as PostsUpdateResponse, fs as PostsValidateError, ft as ProfilesCreateError, fu as ProfilesCreateResponse, fv as ProfilesDeleteError, fw as ProfilesDeleteResponse, fx as ProfilesGetError, fy as ProfilesListError, fz as ProfilesUpdateError, fA as ProfilesUpdateResponse, fB as TiktokCreatorInfoError, fC as TokensMintError, fD as TokensMintResponse, fE as WebhooksCreateEndpointError, fF as WebhooksCreateEndpointResponse, fG as WebhooksCreatePortalError, fH as WebhooksCreatePortalResponse, fI as WebhooksDeleteEndpointError, fJ as WebhooksDeleteEndpointResponse, fK as WebhooksGetEndpointError, fL as WebhooksGetEndpointResponse, fM as WebhooksListEndpointsError, fN as WebhooksListEndpointsResponse, fO as WebhooksListEventTypesError, fP as WebhooksListEventTypesResponse, fQ as WebhooksPingError, fR as WebhooksPingResponse, fS as WebhooksUpdateEndpointError, fT as WebhooksUpdateEndpointResponse, fU as createPostrunClient } from './types.gen-
|
|
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 GoogleCreateAdData, t as GoogleCreateAdResponses, u as GoogleCreateAdErrors, v as GoogleCreateAdGroupData, w as GoogleCreateAdGroupResponses, x as GoogleCreateAdGroupErrors, y as GoogleCreateBudgetData, z as GoogleCreateBudgetResponses, A as GoogleCreateBudgetErrors, B as GoogleCreateCampaignData, D as GoogleCreateCampaignResponses, E as GoogleCreateCampaignErrors, F as GoogleCreateConversionActionData, H as GoogleCreateConversionActionResponses, I as GoogleCreateConversionActionErrors, J as GoogleCreateDisplayAdData, K as GoogleCreateDisplayAdResponses, L as GoogleCreateDisplayAdErrors, M as GoogleCreateKeywordData, N as GoogleCreateKeywordResponses, P as GoogleCreateKeywordErrors, Q as GoogleDeleteAdData, S as GoogleDeleteAdResponses, U as GoogleDeleteAdErrors, V as GoogleDeleteAdGroupData, W as GoogleDeleteAdGroupResponses, X as GoogleDeleteAdGroupErrors, Y as GoogleDeleteBudgetData, Z as GoogleDeleteBudgetResponses, _ as GoogleDeleteBudgetErrors, $ as GoogleDeleteCampaignData, a0 as GoogleDeleteCampaignResponses, a1 as GoogleDeleteCampaignErrors, a2 as GoogleDeleteKeywordData, a3 as GoogleDeleteKeywordResponses, a4 as GoogleDeleteKeywordErrors, a5 as GoogleEditAdGroupData, a6 as GoogleEditAdGroupResponses, a7 as GoogleEditAdGroupErrors, a8 as GoogleEditBudgetData, a9 as GoogleEditBudgetResponses, aa as GoogleEditBudgetErrors, ab as GoogleEditCampaignData, ac as GoogleEditCampaignResponses, ad as GoogleEditCampaignErrors, ae as GoogleEnableAdData, af as GoogleEnableAdResponses, ag as GoogleEnableAdErrors, ah as GoogleEnableAdGroupData, ai as GoogleEnableAdGroupResponses, aj as GoogleEnableAdGroupErrors, ak as GoogleEnableCampaignData, al as GoogleEnableCampaignResponses, am as GoogleEnableCampaignErrors, an as GoogleEnableKeywordData, ao as GoogleEnableKeywordResponses, ap as GoogleEnableKeywordErrors, aq as GoogleGetAccountData, ar as GoogleGetAccountResponses, as as GoogleGetAccountErrors, at as GoogleGetAdData, au as GoogleGetAdResponses, av as GoogleGetAdErrors, aw as GoogleGetAdGroupData, ax as GoogleGetAdGroupResponses, ay as GoogleGetAdGroupErrors, az as GoogleGetCampaignData, aA as GoogleGetCampaignResponses, aB as GoogleGetCampaignErrors, aC as GoogleGetConversionActionData, aD as GoogleGetConversionActionResponses, aE as GoogleGetConversionActionErrors, aF as GoogleGetInsightsData, aG as GoogleGetInsightsResponses, aH as GoogleGetInsightsErrors, aI as GoogleGetKeywordData, aJ as GoogleGetKeywordResponses, aK as GoogleGetKeywordErrors, aL as GoogleListAdGroupsData, aM as GoogleListAdGroupsResponses, aN as GoogleListAdGroupsErrors, aO as GoogleListAdsData, aP as GoogleListAdsResponses, aQ as GoogleListAdsErrors, aR as GoogleListCampaignsData, aS as GoogleListCampaignsResponses, aT as GoogleListCampaignsErrors, aU as GoogleListConversionActionsData, aV as GoogleListConversionActionsResponses, aW as GoogleListConversionActionsErrors, aX as GoogleListConversionGoalsData, aY as GoogleListConversionGoalsResponses, aZ as GoogleListConversionGoalsErrors, a_ as GoogleListKeywordsData, a$ as GoogleListKeywordsResponses, b0 as GoogleListKeywordsErrors, b1 as GooglePauseAdData, b2 as GooglePauseAdResponses, b3 as GooglePauseAdErrors, b4 as GooglePauseAdGroupData, b5 as GooglePauseAdGroupResponses, b6 as GooglePauseAdGroupErrors, b7 as GooglePauseCampaignData, b8 as GooglePauseCampaignResponses, b9 as GooglePauseCampaignErrors, ba as GooglePauseKeywordData, bb as GooglePauseKeywordResponses, bc as GooglePauseKeywordErrors, bd as GoogleRunGaqlData, be as GoogleRunGaqlResponses, bf as GoogleRunGaqlErrors, bg as GoogleSetAdGroupBidsData, bh as GoogleSetAdGroupBidsResponses, bi as GoogleSetAdGroupBidsErrors, bj as GoogleSetConversionGoalData, bk as GoogleSetConversionGoalResponses, bl as GoogleSetConversionGoalErrors, bm as GoogleSetKeywordBidData, bn as GoogleSetKeywordBidResponses, bo as GoogleSetKeywordBidErrors, bp as GoogleUploadConversionsData, bq as GoogleUploadConversionsResponses, br as GoogleUploadConversionsErrors, bs as GoogleUploadImageAssetData, bt as GoogleUploadImageAssetResponses, bu as GoogleUploadImageAssetErrors, bv as LogsGetData, bw as LogsGetResponses, bx as LogsGetErrors, by as LogsListData, bz as LogsListResponses, bA as LogsListErrors, bB as MediaCreateData, bC as MediaCreateResponses, bD as MediaCreateErrors, bE as MediaDeleteData, bF as MediaDeleteResponses, bG as MediaDeleteErrors, bH as MediaGetData, bI as MediaGetResponses, bJ as MediaGetErrors, bK as MediaListData, bL as MediaListResponses, bM as MediaListErrors, bN as MediaUpdateData, bO as MediaUpdateResponses, bP as MediaUpdateErrors, bQ as MetaAccountData, bR as MetaAccountResponses, bS as MetaAccountErrors, bT as MetaAdData, bU as MetaAdResponses, bV as MetaAdErrors, bW as MetaAdsData, bX as MetaAdsResponses, bY as MetaAdsErrors, bZ as MetaAdsetData, b_ as MetaAdsetResponses, b$ as MetaAdsetErrors, c0 as MetaAdsetsData, c1 as MetaAdsetsResponses, c2 as MetaAdsetsErrors, c3 as MetaCampaignData, c4 as MetaCampaignResponses, c5 as MetaCampaignErrors, c6 as MetaCampaignsData, c7 as MetaCampaignsResponses, c8 as MetaCampaignsErrors, c9 as MetaInsightsData, ca as MetaInsightsResponses, cb as MetaInsightsErrors, cc as PostsCreateData, cd as PostsCreateResponses, ce as PostsCreateErrors, cf as PostsDeleteData, cg as PostsDeleteResponses, ch as PostsDeleteErrors, ci as PostsGetData, cj as PostsGetResponses, ck as PostsGetErrors, cl as PostsListData, cm as PostsListResponses, cn as PostsListErrors, co as PostsUpdateData, cp as PostsUpdateResponses, cq as PostsUpdateErrors, cr as PostsValidateData, cs as PostsValidateResponses, ct as PostsValidateErrors, cu as ProfilesCreateData, cv as ProfilesCreateResponses, cw as ProfilesCreateErrors, cx as ProfilesDeleteData, cy as ProfilesDeleteResponses, cz as ProfilesDeleteErrors, cA as ProfilesGetData, cB as ProfilesGetResponses, cC as ProfilesGetErrors, cD as ProfilesListData, cE as ProfilesListResponses, cF as ProfilesListErrors, cG as ProfilesUpdateData, cH as ProfilesUpdateResponses, cI as ProfilesUpdateErrors, cJ as TiktokCreatorInfoData, cK as TiktokCreatorInfoResponses, cL as TiktokCreatorInfoErrors, cM as TokensMintData, cN as TokensMintResponses, cO as TokensMintErrors, cP as WebhooksCreateEndpointData, cQ as WebhooksCreateEndpointResponses, cR as WebhooksCreateEndpointErrors, cS as WebhooksCreatePortalData, cT as WebhooksCreatePortalResponses, cU as WebhooksCreatePortalErrors, cV as WebhooksDeleteEndpointData, cW as WebhooksDeleteEndpointResponses, cX as WebhooksDeleteEndpointErrors, cY as WebhooksGetEndpointData, cZ as WebhooksGetEndpointResponses, c_ as WebhooksGetEndpointErrors, c$ as WebhooksListEndpointsData, d0 as WebhooksListEndpointsResponses, d1 as WebhooksListEndpointsErrors, d2 as WebhooksListEventTypesData, d3 as WebhooksListEventTypesResponses, d4 as WebhooksListEventTypesErrors, d5 as WebhooksPingData, d6 as WebhooksPingResponses, d7 as WebhooksPingErrors, d8 as WebhooksUpdateEndpointData, d9 as WebhooksUpdateEndpointResponses, da as WebhooksUpdateEndpointErrors, db as ErrorCode, dc as MediaGetResponse, dd as ConnectionsConnectResponse, de as ConnectionsGetResponse, df as ConnectionsListByProfileResponse, dg as MediaCreateResponse, dh as ConnectionsListAccountsResponse, di as MediaListResponse, dj as PostsGetResponse, dk as PostsListResponse, dl as PostsValidateResponse, dm as ProfilesGetResponse, dn as ProfilesListResponse, dp as TiktokCreatorInfoResponse } from './types.gen-CENLQ15A.cjs';
|
|
2
|
+
export { dq as ClientOptions, dr as ConnectionsConnectError, ds as ConnectionsDeleteError, dt as ConnectionsDeleteResponse, du as ConnectionsGetError, dv as ConnectionsListAccountsError, dw as ConnectionsListByProfileError, dx as ConnectionsSelectError, dy as ConnectionsSelectResponse, dz as GoogleCreateAdError, dA as GoogleCreateAdGroupError, dB as GoogleCreateAdGroupResponse, dC as GoogleCreateAdResponse, dD as GoogleCreateBudgetError, dE as GoogleCreateBudgetResponse, dF as GoogleCreateCampaignError, dG as GoogleCreateCampaignResponse, dH as GoogleCreateConversionActionError, dI as GoogleCreateConversionActionResponse, dJ as GoogleCreateDisplayAdError, dK as GoogleCreateDisplayAdResponse, dL as GoogleCreateKeywordError, dM as GoogleCreateKeywordResponse, dN as GoogleDeleteAdError, dO as GoogleDeleteAdGroupError, dP as GoogleDeleteAdGroupResponse, dQ as GoogleDeleteAdResponse, dR as GoogleDeleteBudgetError, dS as GoogleDeleteBudgetResponse, dT as GoogleDeleteCampaignError, dU as GoogleDeleteCampaignResponse, dV as GoogleDeleteKeywordError, dW as GoogleDeleteKeywordResponse, dX as GoogleEditAdGroupError, dY as GoogleEditAdGroupResponse, dZ as GoogleEditBudgetError, d_ as GoogleEditBudgetResponse, d$ as GoogleEditCampaignError, e0 as GoogleEditCampaignResponse, e1 as GoogleEnableAdError, e2 as GoogleEnableAdGroupError, e3 as GoogleEnableAdGroupResponse, e4 as GoogleEnableAdResponse, e5 as GoogleEnableCampaignError, e6 as GoogleEnableCampaignResponse, e7 as GoogleEnableKeywordError, e8 as GoogleEnableKeywordResponse, e9 as GoogleGetAccountError, ea as GoogleGetAccountResponse, eb as GoogleGetAdError, ec as GoogleGetAdGroupError, ed as GoogleGetAdGroupResponse, ee as GoogleGetAdResponse, ef as GoogleGetCampaignError, eg as GoogleGetCampaignResponse, eh as GoogleGetConversionActionError, ei as GoogleGetConversionActionResponse, ej as GoogleGetInsightsError, ek as GoogleGetInsightsResponse, el as GoogleGetKeywordError, em as GoogleGetKeywordResponse, en as GoogleListAdGroupsError, eo as GoogleListAdGroupsResponse, ep as GoogleListAdsError, eq as GoogleListAdsResponse, er as GoogleListCampaignsError, es as GoogleListCampaignsResponse, et as GoogleListConversionActionsError, eu as GoogleListConversionActionsResponse, ev as GoogleListConversionGoalsError, ew as GoogleListConversionGoalsResponse, ex as GoogleListKeywordsError, ey as GoogleListKeywordsResponse, ez as GooglePauseAdError, eA as GooglePauseAdGroupError, eB as GooglePauseAdGroupResponse, eC as GooglePauseAdResponse, eD as GooglePauseCampaignError, eE as GooglePauseCampaignResponse, eF as GooglePauseKeywordError, eG as GooglePauseKeywordResponse, eH as GoogleRunGaqlError, eI as GoogleRunGaqlResponse, eJ as GoogleSetAdGroupBidsError, eK as GoogleSetAdGroupBidsResponse, eL as GoogleSetConversionGoalError, eM as GoogleSetConversionGoalResponse, eN as GoogleSetKeywordBidError, eO as GoogleSetKeywordBidResponse, eP as GoogleUploadConversionsError, eQ as GoogleUploadConversionsResponse, eR as GoogleUploadImageAssetError, eS as GoogleUploadImageAssetResponse, eT as LogsGetError, eU as LogsGetResponse, eV as LogsListError, eW as LogsListResponse, eX as MediaCreateError, eY as MediaDeleteError, eZ as MediaDeleteResponse, e_ as MediaGetError, e$ as MediaListError, f0 as MediaUpdateError, f1 as MediaUpdateResponse, f2 as MetaAccountError, f3 as MetaAccountResponse, f4 as MetaAdError, f5 as MetaAdResponse, f6 as MetaAdsError, f7 as MetaAdsResponse, f8 as MetaAdsetError, f9 as MetaAdsetResponse, fa as MetaAdsetsError, fb as MetaAdsetsResponse, fc as MetaCampaignError, fd as MetaCampaignResponse, fe as MetaCampaignsError, ff as MetaCampaignsResponse, fg as MetaInsightsError, fh as MetaInsightsResponse, fi as PostrunClient, fj as PostrunClientOptions, fk as PostsCreateError, fl as PostsCreateResponse, fm as PostsDeleteError, fn as PostsDeleteResponse, fo as PostsGetError, fp as PostsListError, fq as PostsUpdateError, fr as PostsUpdateResponse, fs as PostsValidateError, ft as ProfilesCreateError, fu as ProfilesCreateResponse, fv as ProfilesDeleteError, fw as ProfilesDeleteResponse, fx as ProfilesGetError, fy as ProfilesListError, fz as ProfilesUpdateError, fA as ProfilesUpdateResponse, fB as TiktokCreatorInfoError, fC as TokensMintError, fD as TokensMintResponse, fE as WebhooksCreateEndpointError, fF as WebhooksCreateEndpointResponse, fG as WebhooksCreatePortalError, fH as WebhooksCreatePortalResponse, fI as WebhooksDeleteEndpointError, fJ as WebhooksDeleteEndpointResponse, fK as WebhooksGetEndpointError, fL as WebhooksGetEndpointResponse, fM as WebhooksListEndpointsError, fN as WebhooksListEndpointsResponse, fO as WebhooksListEventTypesError, fP as WebhooksListEventTypesResponse, fQ as WebhooksPingError, fR as WebhooksPingResponse, fS as WebhooksUpdateEndpointError, fT as WebhooksUpdateEndpointResponse, fU as createPostrunClient } from './types.gen-CENLQ15A.cjs';
|
|
3
3
|
import * as z from 'zod';
|
|
4
4
|
|
|
5
5
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
@@ -945,6 +945,30 @@ type Metadata = NonNullable<CreateMediaInput['metadata']>;
|
|
|
945
945
|
*/
|
|
946
946
|
type MetadataFilter = NonNullable<ListMediaQuery['metadata']>;
|
|
947
947
|
|
|
948
|
+
/** A failed direct-to-storage upload, carrying the HTTP status (0 = network). */
|
|
949
|
+
declare class UploadError extends Error {
|
|
950
|
+
readonly status: number;
|
|
951
|
+
constructor(status: number, message: string);
|
|
952
|
+
}
|
|
953
|
+
interface UploadToTargetOptions {
|
|
954
|
+
/** Fraction uploaded, 0..1. Called as bytes flow and once with 1 on success. */
|
|
955
|
+
onProgress?: (fraction: number) => void;
|
|
956
|
+
/** Abort the in-flight upload (and stop retrying). */
|
|
957
|
+
signal?: AbortSignal;
|
|
958
|
+
/** Max retry attempts for retriable failures (network / 5xx / 429). Default 3. */
|
|
959
|
+
retries?: number;
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* PUT a file's bytes to a signed upload target, with progress, cancellation, and
|
|
963
|
+
* retry — the single home for the direct-to-storage upload. axios drives the XHR
|
|
964
|
+
* (the Fetch API can't report upload progress in browsers); `p-retry` composes the
|
|
965
|
+
* backoff so the loop is never hand-rolled. Network errors, 5xx, and 429 are
|
|
966
|
+
* retried; any other 4xx (e.g. an expired URL) is terminal; an aborted signal
|
|
967
|
+
* stops immediately. Throws `UploadError` (with the HTTP status) on a hard
|
|
968
|
+
* failure, or re-throws the original abort error on cancellation.
|
|
969
|
+
*/
|
|
970
|
+
declare function uploadToTarget(file: Blob, target: UploadTarget, opts?: UploadToTargetOptions): Promise<void>;
|
|
971
|
+
|
|
948
972
|
/**
|
|
949
973
|
* Map a TikTok privacy level to a short, human label for the composer's privacy
|
|
950
974
|
* dropdown — the presentation the API deliberately keeps OFF the wire (the
|
|
@@ -1193,4 +1217,4 @@ declare function buildCreatePost(input: ComposePostInput, connections: readonly
|
|
|
1193
1217
|
*/
|
|
1194
1218
|
declare function buildUpdatePost(input: ComposeUpdateInput, connections?: readonly ConnectionRef[]): UpdatePostInput;
|
|
1195
1219
|
|
|
1196
|
-
export { 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, GoogleCreateAdData, GoogleCreateAdErrors, GoogleCreateAdGroupData, GoogleCreateAdGroupErrors, GoogleCreateAdGroupResponses, GoogleCreateAdResponses, GoogleCreateBudgetData, GoogleCreateBudgetErrors, GoogleCreateBudgetResponses, GoogleCreateCampaignData, GoogleCreateCampaignErrors, GoogleCreateCampaignResponses, GoogleCreateConversionActionData, GoogleCreateConversionActionErrors, GoogleCreateConversionActionResponses, GoogleCreateDisplayAdData, GoogleCreateDisplayAdErrors, GoogleCreateDisplayAdResponses, GoogleCreateKeywordData, GoogleCreateKeywordErrors, GoogleCreateKeywordResponses, GoogleDeleteAdData, GoogleDeleteAdErrors, GoogleDeleteAdGroupData, GoogleDeleteAdGroupErrors, GoogleDeleteAdGroupResponses, GoogleDeleteAdResponses, GoogleDeleteBudgetData, GoogleDeleteBudgetErrors, GoogleDeleteBudgetResponses, GoogleDeleteCampaignData, GoogleDeleteCampaignErrors, GoogleDeleteCampaignResponses, GoogleDeleteKeywordData, GoogleDeleteKeywordErrors, GoogleDeleteKeywordResponses, GoogleEditAdGroupData, GoogleEditAdGroupErrors, GoogleEditAdGroupResponses, GoogleEditBudgetData, GoogleEditBudgetErrors, GoogleEditBudgetResponses, GoogleEditCampaignData, GoogleEditCampaignErrors, GoogleEditCampaignResponses, GoogleEnableAdData, GoogleEnableAdErrors, GoogleEnableAdGroupData, GoogleEnableAdGroupErrors, GoogleEnableAdGroupResponses, GoogleEnableAdResponses, GoogleEnableCampaignData, GoogleEnableCampaignErrors, GoogleEnableCampaignResponses, GoogleEnableKeywordData, GoogleEnableKeywordErrors, GoogleEnableKeywordResponses, GoogleGetAccountData, GoogleGetAccountErrors, GoogleGetAccountResponses, GoogleGetAdData, GoogleGetAdErrors, GoogleGetAdGroupData, GoogleGetAdGroupErrors, GoogleGetAdGroupResponses, GoogleGetAdResponses, GoogleGetCampaignData, GoogleGetCampaignErrors, GoogleGetCampaignResponses, GoogleGetConversionActionData, GoogleGetConversionActionErrors, GoogleGetConversionActionResponses, GoogleGetInsightsData, GoogleGetInsightsErrors, GoogleGetInsightsResponses, GoogleGetKeywordData, GoogleGetKeywordErrors, GoogleGetKeywordResponses, GoogleListAdGroupsData, GoogleListAdGroupsErrors, GoogleListAdGroupsResponses, GoogleListAdsData, GoogleListAdsErrors, GoogleListAdsResponses, GoogleListCampaignsData, GoogleListCampaignsErrors, GoogleListCampaignsResponses, GoogleListConversionActionsData, GoogleListConversionActionsErrors, GoogleListConversionActionsResponses, GoogleListConversionGoalsData, GoogleListConversionGoalsErrors, GoogleListConversionGoalsResponses, GoogleListKeywordsData, GoogleListKeywordsErrors, GoogleListKeywordsResponses, GooglePauseAdData, GooglePauseAdErrors, GooglePauseAdGroupData, GooglePauseAdGroupErrors, GooglePauseAdGroupResponses, GooglePauseAdResponses, GooglePauseCampaignData, GooglePauseCampaignErrors, GooglePauseCampaignResponses, GooglePauseKeywordData, GooglePauseKeywordErrors, GooglePauseKeywordResponses, GoogleRunGaqlData, GoogleRunGaqlErrors, GoogleRunGaqlResponses, GoogleSetAdGroupBidsData, GoogleSetAdGroupBidsErrors, GoogleSetAdGroupBidsResponses, GoogleSetConversionGoalData, GoogleSetConversionGoalErrors, GoogleSetConversionGoalResponses, GoogleSetKeywordBidData, GoogleSetKeywordBidErrors, GoogleSetKeywordBidResponses, GoogleUploadConversionsData, GoogleUploadConversionsErrors, GoogleUploadConversionsResponses, GoogleUploadImageAssetData, GoogleUploadImageAssetErrors, GoogleUploadImageAssetResponses, type InstagramPostVariant, type LinkedInPollDuration, type LinkedInPostVariant, type ListConnectionsQuery, type ListMediaQuery, type ListPostsQuery, type ListProfilesQuery, LogsGetData, LogsGetErrors, LogsGetResponses, LogsListData, LogsListErrors, LogsListResponses, MediaCreateData, MediaCreateErrors, MediaCreateResponse, MediaCreateResponses, MediaDeleteData, MediaDeleteErrors, MediaDeleteResponses, MediaGetData, MediaGetErrors, MediaGetResponse, MediaGetResponses, type MediaInput, type MediaKind, type MediaList, MediaListData, MediaListErrors, MediaListResponse, MediaListResponses, type MediaResource, 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 Options, POST_PLATFORMS, type Post, type PostContent, type PostList, type PostMetadata, type PostPlatform, type PostStatus, type PostTypeFor, type PostValidation, type PostVariant, type PostVariantError, type PostVariantInput, 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, TiktokCreatorInfoData, TiktokCreatorInfoErrors, TiktokCreatorInfoResponse, TiktokCreatorInfoResponses, TokensMintData, TokensMintErrors, TokensMintResponses, type UpdateMediaInput, type UpdatePostInput, type UpdateProfileInput, type UploadTarget, type ValidatePostInput, type ValidationIssue, 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, googleCreateAd, googleCreateAdGroup, googleCreateBudget, googleCreateCampaign, googleCreateConversionAction, googleCreateDisplayAd, googleCreateKeyword, googleDeleteAd, googleDeleteAdGroup, googleDeleteBudget, googleDeleteCampaign, googleDeleteKeyword, googleEditAdGroup, googleEditBudget, googleEditCampaign, googleEnableAd, googleEnableAdGroup, googleEnableCampaign, googleEnableKeyword, googleGetAccount, googleGetAd, googleGetAdGroup, googleGetCampaign, googleGetConversionAction, googleGetInsights, googleGetKeyword, googleListAdGroups, googleListAds, googleListCampaigns, googleListConversionActions, googleListConversionGoals, googleListKeywords, googlePauseAd, googlePauseAdGroup, googlePauseCampaign, googlePauseKeyword, googleRunGaql, googleSetAdGroupBids, googleSetConversionGoal, googleSetKeywordBid, googleUploadConversions, googleUploadImageAsset, interactionRows, interactionValueKey, isInteractionForbidden, isPostPlatform, isPublished, linkedinPollDurationLabel, logsGet, logsList, mediaCreate, mediaDelete, mediaGet, mediaList, mediaUpdate, metaAccount, metaAd, metaAds, metaAdset, metaAdsets, metaCampaign, metaCampaigns, metaInsights, parsePrivacyLevel, postsCreate, postsDelete, postsGet, postsList, postsUpdate, postsValidate, privacyChoices, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, setBrandKind, setCommercialDisclosure, tiktokCreatorInfo, tiktokOptionsReady, tiktokPrivacyLabel, tiktokSettings, toggleInteraction, tokensMint, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint, xPollDurationLabel };
|
|
1220
|
+
export { 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, GoogleCreateAdData, GoogleCreateAdErrors, GoogleCreateAdGroupData, GoogleCreateAdGroupErrors, GoogleCreateAdGroupResponses, GoogleCreateAdResponses, GoogleCreateBudgetData, GoogleCreateBudgetErrors, GoogleCreateBudgetResponses, GoogleCreateCampaignData, GoogleCreateCampaignErrors, GoogleCreateCampaignResponses, GoogleCreateConversionActionData, GoogleCreateConversionActionErrors, GoogleCreateConversionActionResponses, GoogleCreateDisplayAdData, GoogleCreateDisplayAdErrors, GoogleCreateDisplayAdResponses, GoogleCreateKeywordData, GoogleCreateKeywordErrors, GoogleCreateKeywordResponses, GoogleDeleteAdData, GoogleDeleteAdErrors, GoogleDeleteAdGroupData, GoogleDeleteAdGroupErrors, GoogleDeleteAdGroupResponses, GoogleDeleteAdResponses, GoogleDeleteBudgetData, GoogleDeleteBudgetErrors, GoogleDeleteBudgetResponses, GoogleDeleteCampaignData, GoogleDeleteCampaignErrors, GoogleDeleteCampaignResponses, GoogleDeleteKeywordData, GoogleDeleteKeywordErrors, GoogleDeleteKeywordResponses, GoogleEditAdGroupData, GoogleEditAdGroupErrors, GoogleEditAdGroupResponses, GoogleEditBudgetData, GoogleEditBudgetErrors, GoogleEditBudgetResponses, GoogleEditCampaignData, GoogleEditCampaignErrors, GoogleEditCampaignResponses, GoogleEnableAdData, GoogleEnableAdErrors, GoogleEnableAdGroupData, GoogleEnableAdGroupErrors, GoogleEnableAdGroupResponses, GoogleEnableAdResponses, GoogleEnableCampaignData, GoogleEnableCampaignErrors, GoogleEnableCampaignResponses, GoogleEnableKeywordData, GoogleEnableKeywordErrors, GoogleEnableKeywordResponses, GoogleGetAccountData, GoogleGetAccountErrors, GoogleGetAccountResponses, GoogleGetAdData, GoogleGetAdErrors, GoogleGetAdGroupData, GoogleGetAdGroupErrors, GoogleGetAdGroupResponses, GoogleGetAdResponses, GoogleGetCampaignData, GoogleGetCampaignErrors, GoogleGetCampaignResponses, GoogleGetConversionActionData, GoogleGetConversionActionErrors, GoogleGetConversionActionResponses, GoogleGetInsightsData, GoogleGetInsightsErrors, GoogleGetInsightsResponses, GoogleGetKeywordData, GoogleGetKeywordErrors, GoogleGetKeywordResponses, GoogleListAdGroupsData, GoogleListAdGroupsErrors, GoogleListAdGroupsResponses, GoogleListAdsData, GoogleListAdsErrors, GoogleListAdsResponses, GoogleListCampaignsData, GoogleListCampaignsErrors, GoogleListCampaignsResponses, GoogleListConversionActionsData, GoogleListConversionActionsErrors, GoogleListConversionActionsResponses, GoogleListConversionGoalsData, GoogleListConversionGoalsErrors, GoogleListConversionGoalsResponses, GoogleListKeywordsData, GoogleListKeywordsErrors, GoogleListKeywordsResponses, GooglePauseAdData, GooglePauseAdErrors, GooglePauseAdGroupData, GooglePauseAdGroupErrors, GooglePauseAdGroupResponses, GooglePauseAdResponses, GooglePauseCampaignData, GooglePauseCampaignErrors, GooglePauseCampaignResponses, GooglePauseKeywordData, GooglePauseKeywordErrors, GooglePauseKeywordResponses, GoogleRunGaqlData, GoogleRunGaqlErrors, GoogleRunGaqlResponses, GoogleSetAdGroupBidsData, GoogleSetAdGroupBidsErrors, GoogleSetAdGroupBidsResponses, GoogleSetConversionGoalData, GoogleSetConversionGoalErrors, GoogleSetConversionGoalResponses, GoogleSetKeywordBidData, GoogleSetKeywordBidErrors, GoogleSetKeywordBidResponses, GoogleUploadConversionsData, GoogleUploadConversionsErrors, GoogleUploadConversionsResponses, GoogleUploadImageAssetData, GoogleUploadImageAssetErrors, GoogleUploadImageAssetResponses, type InstagramPostVariant, type LinkedInPollDuration, type LinkedInPostVariant, type ListConnectionsQuery, type ListMediaQuery, type ListPostsQuery, type ListProfilesQuery, LogsGetData, LogsGetErrors, LogsGetResponses, LogsListData, LogsListErrors, LogsListResponses, MediaCreateData, MediaCreateErrors, MediaCreateResponse, MediaCreateResponses, MediaDeleteData, MediaDeleteErrors, MediaDeleteResponses, MediaGetData, MediaGetErrors, MediaGetResponse, MediaGetResponses, type MediaInput, type MediaKind, type MediaList, MediaListData, MediaListErrors, MediaListResponse, MediaListResponses, type MediaResource, 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 Options, POST_PLATFORMS, type Post, type PostContent, type PostList, type PostMetadata, type PostPlatform, type PostStatus, type PostTypeFor, type PostValidation, type PostVariant, type PostVariantError, type PostVariantInput, 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, TiktokCreatorInfoData, TiktokCreatorInfoErrors, TiktokCreatorInfoResponse, TiktokCreatorInfoResponses, TokensMintData, TokensMintErrors, TokensMintResponses, type UpdateMediaInput, type UpdatePostInput, type UpdateProfileInput, UploadError, type UploadTarget, type UploadToTargetOptions, type ValidatePostInput, type ValidationIssue, 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, googleCreateAd, googleCreateAdGroup, googleCreateBudget, googleCreateCampaign, googleCreateConversionAction, googleCreateDisplayAd, googleCreateKeyword, googleDeleteAd, googleDeleteAdGroup, googleDeleteBudget, googleDeleteCampaign, googleDeleteKeyword, googleEditAdGroup, googleEditBudget, googleEditCampaign, googleEnableAd, googleEnableAdGroup, googleEnableCampaign, googleEnableKeyword, googleGetAccount, googleGetAd, googleGetAdGroup, googleGetCampaign, googleGetConversionAction, googleGetInsights, googleGetKeyword, googleListAdGroups, googleListAds, googleListCampaigns, googleListConversionActions, googleListConversionGoals, googleListKeywords, googlePauseAd, googlePauseAdGroup, googlePauseCampaign, googlePauseKeyword, googleRunGaql, googleSetAdGroupBids, googleSetConversionGoal, googleSetKeywordBid, googleUploadConversions, googleUploadImageAsset, interactionRows, interactionValueKey, isInteractionForbidden, isPostPlatform, isPublished, linkedinPollDurationLabel, logsGet, logsList, mediaCreate, mediaDelete, mediaGet, mediaList, mediaUpdate, metaAccount, metaAd, metaAds, metaAdset, metaAdsets, metaCampaign, metaCampaigns, metaInsights, parsePrivacyLevel, postsCreate, postsDelete, postsGet, postsList, postsUpdate, postsValidate, privacyChoices, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, setBrandKind, setCommercialDisclosure, tiktokCreatorInfo, tiktokOptionsReady, tiktokPrivacyLabel, tiktokSettings, toggleInteraction, tokensMint, uploadToTarget, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint, xPollDurationLabel };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TDataShape, O as Options$1, C as Client, a as ClientMeta, b as ConnectionsConnectData, R as RequestResult, c as ConnectionsConnectResponses, d as ConnectionsConnectErrors, e as ConnectionsDeleteData, f as ConnectionsDeleteResponses, g as ConnectionsDeleteErrors, h as ConnectionsGetData, i as ConnectionsGetResponses, j as ConnectionsGetErrors, k as 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 GoogleCreateAdData, t as GoogleCreateAdResponses, u as GoogleCreateAdErrors, v as GoogleCreateAdGroupData, w as GoogleCreateAdGroupResponses, x as GoogleCreateAdGroupErrors, y as GoogleCreateBudgetData, z as GoogleCreateBudgetResponses, A as GoogleCreateBudgetErrors, B as GoogleCreateCampaignData, D as GoogleCreateCampaignResponses, E as GoogleCreateCampaignErrors, F as GoogleCreateConversionActionData, H as GoogleCreateConversionActionResponses, I as GoogleCreateConversionActionErrors, J as GoogleCreateDisplayAdData, K as GoogleCreateDisplayAdResponses, L as GoogleCreateDisplayAdErrors, M as GoogleCreateKeywordData, N as GoogleCreateKeywordResponses, P as GoogleCreateKeywordErrors, Q as GoogleDeleteAdData, S as GoogleDeleteAdResponses, U as GoogleDeleteAdErrors, V as GoogleDeleteAdGroupData, W as GoogleDeleteAdGroupResponses, X as GoogleDeleteAdGroupErrors, Y as GoogleDeleteBudgetData, Z as GoogleDeleteBudgetResponses, _ as GoogleDeleteBudgetErrors, $ as GoogleDeleteCampaignData, a0 as GoogleDeleteCampaignResponses, a1 as GoogleDeleteCampaignErrors, a2 as GoogleDeleteKeywordData, a3 as GoogleDeleteKeywordResponses, a4 as GoogleDeleteKeywordErrors, a5 as GoogleEditAdGroupData, a6 as GoogleEditAdGroupResponses, a7 as GoogleEditAdGroupErrors, a8 as GoogleEditBudgetData, a9 as GoogleEditBudgetResponses, aa as GoogleEditBudgetErrors, ab as GoogleEditCampaignData, ac as GoogleEditCampaignResponses, ad as GoogleEditCampaignErrors, ae as GoogleEnableAdData, af as GoogleEnableAdResponses, ag as GoogleEnableAdErrors, ah as GoogleEnableAdGroupData, ai as GoogleEnableAdGroupResponses, aj as GoogleEnableAdGroupErrors, ak as GoogleEnableCampaignData, al as GoogleEnableCampaignResponses, am as GoogleEnableCampaignErrors, an as GoogleEnableKeywordData, ao as GoogleEnableKeywordResponses, ap as GoogleEnableKeywordErrors, aq as GoogleGetAccountData, ar as GoogleGetAccountResponses, as as GoogleGetAccountErrors, at as GoogleGetAdData, au as GoogleGetAdResponses, av as GoogleGetAdErrors, aw as GoogleGetAdGroupData, ax as GoogleGetAdGroupResponses, ay as GoogleGetAdGroupErrors, az as GoogleGetCampaignData, aA as GoogleGetCampaignResponses, aB as GoogleGetCampaignErrors, aC as GoogleGetConversionActionData, aD as GoogleGetConversionActionResponses, aE as GoogleGetConversionActionErrors, aF as GoogleGetInsightsData, aG as GoogleGetInsightsResponses, aH as GoogleGetInsightsErrors, aI as GoogleGetKeywordData, aJ as GoogleGetKeywordResponses, aK as GoogleGetKeywordErrors, aL as GoogleListAdGroupsData, aM as GoogleListAdGroupsResponses, aN as GoogleListAdGroupsErrors, aO as GoogleListAdsData, aP as GoogleListAdsResponses, aQ as GoogleListAdsErrors, aR as GoogleListCampaignsData, aS as GoogleListCampaignsResponses, aT as GoogleListCampaignsErrors, aU as GoogleListConversionActionsData, aV as GoogleListConversionActionsResponses, aW as GoogleListConversionActionsErrors, aX as GoogleListConversionGoalsData, aY as GoogleListConversionGoalsResponses, aZ as GoogleListConversionGoalsErrors, a_ as GoogleListKeywordsData, a$ as GoogleListKeywordsResponses, b0 as GoogleListKeywordsErrors, b1 as GooglePauseAdData, b2 as GooglePauseAdResponses, b3 as GooglePauseAdErrors, b4 as GooglePauseAdGroupData, b5 as GooglePauseAdGroupResponses, b6 as GooglePauseAdGroupErrors, b7 as GooglePauseCampaignData, b8 as GooglePauseCampaignResponses, b9 as GooglePauseCampaignErrors, ba as GooglePauseKeywordData, bb as GooglePauseKeywordResponses, bc as GooglePauseKeywordErrors, bd as GoogleRunGaqlData, be as GoogleRunGaqlResponses, bf as GoogleRunGaqlErrors, bg as GoogleSetAdGroupBidsData, bh as GoogleSetAdGroupBidsResponses, bi as GoogleSetAdGroupBidsErrors, bj as GoogleSetConversionGoalData, bk as GoogleSetConversionGoalResponses, bl as GoogleSetConversionGoalErrors, bm as GoogleSetKeywordBidData, bn as GoogleSetKeywordBidResponses, bo as GoogleSetKeywordBidErrors, bp as GoogleUploadConversionsData, bq as GoogleUploadConversionsResponses, br as GoogleUploadConversionsErrors, bs as GoogleUploadImageAssetData, bt as GoogleUploadImageAssetResponses, bu as GoogleUploadImageAssetErrors, bv as LogsGetData, bw as LogsGetResponses, bx as LogsGetErrors, by as LogsListData, bz as LogsListResponses, bA as LogsListErrors, bB as MediaCreateData, bC as MediaCreateResponses, bD as MediaCreateErrors, bE as MediaDeleteData, bF as MediaDeleteResponses, bG as MediaDeleteErrors, bH as MediaGetData, bI as MediaGetResponses, bJ as MediaGetErrors, bK as MediaListData, bL as MediaListResponses, bM as MediaListErrors, bN as MediaUpdateData, bO as MediaUpdateResponses, bP as MediaUpdateErrors, bQ as MetaAccountData, bR as MetaAccountResponses, bS as MetaAccountErrors, bT as MetaAdData, bU as MetaAdResponses, bV as MetaAdErrors, bW as MetaAdsData, bX as MetaAdsResponses, bY as MetaAdsErrors, bZ as MetaAdsetData, b_ as MetaAdsetResponses, b$ as MetaAdsetErrors, c0 as MetaAdsetsData, c1 as MetaAdsetsResponses, c2 as MetaAdsetsErrors, c3 as MetaCampaignData, c4 as MetaCampaignResponses, c5 as MetaCampaignErrors, c6 as MetaCampaignsData, c7 as MetaCampaignsResponses, c8 as MetaCampaignsErrors, c9 as MetaInsightsData, ca as MetaInsightsResponses, cb as MetaInsightsErrors, cc as PostsCreateData, cd as PostsCreateResponses, ce as PostsCreateErrors, cf as PostsDeleteData, cg as PostsDeleteResponses, ch as PostsDeleteErrors, ci as PostsGetData, cj as PostsGetResponses, ck as PostsGetErrors, cl as PostsListData, cm as PostsListResponses, cn as PostsListErrors, co as PostsUpdateData, cp as PostsUpdateResponses, cq as PostsUpdateErrors, cr as PostsValidateData, cs as PostsValidateResponses, ct as PostsValidateErrors, cu as ProfilesCreateData, cv as ProfilesCreateResponses, cw as ProfilesCreateErrors, cx as ProfilesDeleteData, cy as ProfilesDeleteResponses, cz as ProfilesDeleteErrors, cA as ProfilesGetData, cB as ProfilesGetResponses, cC as ProfilesGetErrors, cD as ProfilesListData, cE as ProfilesListResponses, cF as ProfilesListErrors, cG as ProfilesUpdateData, cH as ProfilesUpdateResponses, cI as ProfilesUpdateErrors, cJ as TiktokCreatorInfoData, cK as TiktokCreatorInfoResponses, cL as TiktokCreatorInfoErrors, cM as TokensMintData, cN as TokensMintResponses, cO as TokensMintErrors, cP as WebhooksCreateEndpointData, cQ as WebhooksCreateEndpointResponses, cR as WebhooksCreateEndpointErrors, cS as WebhooksCreatePortalData, cT as WebhooksCreatePortalResponses, cU as WebhooksCreatePortalErrors, cV as WebhooksDeleteEndpointData, cW as WebhooksDeleteEndpointResponses, cX as WebhooksDeleteEndpointErrors, cY as WebhooksGetEndpointData, cZ as WebhooksGetEndpointResponses, c_ as WebhooksGetEndpointErrors, c$ as WebhooksListEndpointsData, d0 as WebhooksListEndpointsResponses, d1 as WebhooksListEndpointsErrors, d2 as WebhooksListEventTypesData, d3 as WebhooksListEventTypesResponses, d4 as WebhooksListEventTypesErrors, d5 as WebhooksPingData, d6 as WebhooksPingResponses, d7 as WebhooksPingErrors, d8 as WebhooksUpdateEndpointData, d9 as WebhooksUpdateEndpointResponses, da as WebhooksUpdateEndpointErrors, db as ErrorCode, dc as MediaGetResponse, dd as ConnectionsConnectResponse, de as ConnectionsGetResponse, df as ConnectionsListByProfileResponse, dg as MediaCreateResponse, dh as ConnectionsListAccountsResponse, di as MediaListResponse, dj as PostsGetResponse, dk as PostsListResponse, dl as PostsValidateResponse, dm as ProfilesGetResponse, dn as ProfilesListResponse, dp as TiktokCreatorInfoResponse } from './types.gen-
|
|
2
|
-
export { dq as ClientOptions, dr as ConnectionsConnectError, ds as ConnectionsDeleteError, dt as ConnectionsDeleteResponse, du as ConnectionsGetError, dv as ConnectionsListAccountsError, dw as ConnectionsListByProfileError, dx as ConnectionsSelectError, dy as ConnectionsSelectResponse, dz as GoogleCreateAdError, dA as GoogleCreateAdGroupError, dB as GoogleCreateAdGroupResponse, dC as GoogleCreateAdResponse, dD as GoogleCreateBudgetError, dE as GoogleCreateBudgetResponse, dF as GoogleCreateCampaignError, dG as GoogleCreateCampaignResponse, dH as GoogleCreateConversionActionError, dI as GoogleCreateConversionActionResponse, dJ as GoogleCreateDisplayAdError, dK as GoogleCreateDisplayAdResponse, dL as GoogleCreateKeywordError, dM as GoogleCreateKeywordResponse, dN as GoogleDeleteAdError, dO as GoogleDeleteAdGroupError, dP as GoogleDeleteAdGroupResponse, dQ as GoogleDeleteAdResponse, dR as GoogleDeleteBudgetError, dS as GoogleDeleteBudgetResponse, dT as GoogleDeleteCampaignError, dU as GoogleDeleteCampaignResponse, dV as GoogleDeleteKeywordError, dW as GoogleDeleteKeywordResponse, dX as GoogleEditAdGroupError, dY as GoogleEditAdGroupResponse, dZ as GoogleEditBudgetError, d_ as GoogleEditBudgetResponse, d$ as GoogleEditCampaignError, e0 as GoogleEditCampaignResponse, e1 as GoogleEnableAdError, e2 as GoogleEnableAdGroupError, e3 as GoogleEnableAdGroupResponse, e4 as GoogleEnableAdResponse, e5 as GoogleEnableCampaignError, e6 as GoogleEnableCampaignResponse, e7 as GoogleEnableKeywordError, e8 as GoogleEnableKeywordResponse, e9 as GoogleGetAccountError, ea as GoogleGetAccountResponse, eb as GoogleGetAdError, ec as GoogleGetAdGroupError, ed as GoogleGetAdGroupResponse, ee as GoogleGetAdResponse, ef as GoogleGetCampaignError, eg as GoogleGetCampaignResponse, eh as GoogleGetConversionActionError, ei as GoogleGetConversionActionResponse, ej as GoogleGetInsightsError, ek as GoogleGetInsightsResponse, el as GoogleGetKeywordError, em as GoogleGetKeywordResponse, en as GoogleListAdGroupsError, eo as GoogleListAdGroupsResponse, ep as GoogleListAdsError, eq as GoogleListAdsResponse, er as GoogleListCampaignsError, es as GoogleListCampaignsResponse, et as GoogleListConversionActionsError, eu as GoogleListConversionActionsResponse, ev as GoogleListConversionGoalsError, ew as GoogleListConversionGoalsResponse, ex as GoogleListKeywordsError, ey as GoogleListKeywordsResponse, ez as GooglePauseAdError, eA as GooglePauseAdGroupError, eB as GooglePauseAdGroupResponse, eC as GooglePauseAdResponse, eD as GooglePauseCampaignError, eE as GooglePauseCampaignResponse, eF as GooglePauseKeywordError, eG as GooglePauseKeywordResponse, eH as GoogleRunGaqlError, eI as GoogleRunGaqlResponse, eJ as GoogleSetAdGroupBidsError, eK as GoogleSetAdGroupBidsResponse, eL as GoogleSetConversionGoalError, eM as GoogleSetConversionGoalResponse, eN as GoogleSetKeywordBidError, eO as GoogleSetKeywordBidResponse, eP as GoogleUploadConversionsError, eQ as GoogleUploadConversionsResponse, eR as GoogleUploadImageAssetError, eS as GoogleUploadImageAssetResponse, eT as LogsGetError, eU as LogsGetResponse, eV as LogsListError, eW as LogsListResponse, eX as MediaCreateError, eY as MediaDeleteError, eZ as MediaDeleteResponse, e_ as MediaGetError, e$ as MediaListError, f0 as MediaUpdateError, f1 as MediaUpdateResponse, f2 as MetaAccountError, f3 as MetaAccountResponse, f4 as MetaAdError, f5 as MetaAdResponse, f6 as MetaAdsError, f7 as MetaAdsResponse, f8 as MetaAdsetError, f9 as MetaAdsetResponse, fa as MetaAdsetsError, fb as MetaAdsetsResponse, fc as MetaCampaignError, fd as MetaCampaignResponse, fe as MetaCampaignsError, ff as MetaCampaignsResponse, fg as MetaInsightsError, fh as MetaInsightsResponse, fi as PostrunClient, fj as PostrunClientOptions, fk as PostsCreateError, fl as PostsCreateResponse, fm as PostsDeleteError, fn as PostsDeleteResponse, fo as PostsGetError, fp as PostsListError, fq as PostsUpdateError, fr as PostsUpdateResponse, fs as PostsValidateError, ft as ProfilesCreateError, fu as ProfilesCreateResponse, fv as ProfilesDeleteError, fw as ProfilesDeleteResponse, fx as ProfilesGetError, fy as ProfilesListError, fz as ProfilesUpdateError, fA as ProfilesUpdateResponse, fB as TiktokCreatorInfoError, fC as TokensMintError, fD as TokensMintResponse, fE as WebhooksCreateEndpointError, fF as WebhooksCreateEndpointResponse, fG as WebhooksCreatePortalError, fH as WebhooksCreatePortalResponse, fI as WebhooksDeleteEndpointError, fJ as WebhooksDeleteEndpointResponse, fK as WebhooksGetEndpointError, fL as WebhooksGetEndpointResponse, fM as WebhooksListEndpointsError, fN as WebhooksListEndpointsResponse, fO as WebhooksListEventTypesError, fP as WebhooksListEventTypesResponse, fQ as WebhooksPingError, fR as WebhooksPingResponse, fS as WebhooksUpdateEndpointError, fT as WebhooksUpdateEndpointResponse, fU as createPostrunClient } from './types.gen-
|
|
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 GoogleCreateAdData, t as GoogleCreateAdResponses, u as GoogleCreateAdErrors, v as GoogleCreateAdGroupData, w as GoogleCreateAdGroupResponses, x as GoogleCreateAdGroupErrors, y as GoogleCreateBudgetData, z as GoogleCreateBudgetResponses, A as GoogleCreateBudgetErrors, B as GoogleCreateCampaignData, D as GoogleCreateCampaignResponses, E as GoogleCreateCampaignErrors, F as GoogleCreateConversionActionData, H as GoogleCreateConversionActionResponses, I as GoogleCreateConversionActionErrors, J as GoogleCreateDisplayAdData, K as GoogleCreateDisplayAdResponses, L as GoogleCreateDisplayAdErrors, M as GoogleCreateKeywordData, N as GoogleCreateKeywordResponses, P as GoogleCreateKeywordErrors, Q as GoogleDeleteAdData, S as GoogleDeleteAdResponses, U as GoogleDeleteAdErrors, V as GoogleDeleteAdGroupData, W as GoogleDeleteAdGroupResponses, X as GoogleDeleteAdGroupErrors, Y as GoogleDeleteBudgetData, Z as GoogleDeleteBudgetResponses, _ as GoogleDeleteBudgetErrors, $ as GoogleDeleteCampaignData, a0 as GoogleDeleteCampaignResponses, a1 as GoogleDeleteCampaignErrors, a2 as GoogleDeleteKeywordData, a3 as GoogleDeleteKeywordResponses, a4 as GoogleDeleteKeywordErrors, a5 as GoogleEditAdGroupData, a6 as GoogleEditAdGroupResponses, a7 as GoogleEditAdGroupErrors, a8 as GoogleEditBudgetData, a9 as GoogleEditBudgetResponses, aa as GoogleEditBudgetErrors, ab as GoogleEditCampaignData, ac as GoogleEditCampaignResponses, ad as GoogleEditCampaignErrors, ae as GoogleEnableAdData, af as GoogleEnableAdResponses, ag as GoogleEnableAdErrors, ah as GoogleEnableAdGroupData, ai as GoogleEnableAdGroupResponses, aj as GoogleEnableAdGroupErrors, ak as GoogleEnableCampaignData, al as GoogleEnableCampaignResponses, am as GoogleEnableCampaignErrors, an as GoogleEnableKeywordData, ao as GoogleEnableKeywordResponses, ap as GoogleEnableKeywordErrors, aq as GoogleGetAccountData, ar as GoogleGetAccountResponses, as as GoogleGetAccountErrors, at as GoogleGetAdData, au as GoogleGetAdResponses, av as GoogleGetAdErrors, aw as GoogleGetAdGroupData, ax as GoogleGetAdGroupResponses, ay as GoogleGetAdGroupErrors, az as GoogleGetCampaignData, aA as GoogleGetCampaignResponses, aB as GoogleGetCampaignErrors, aC as GoogleGetConversionActionData, aD as GoogleGetConversionActionResponses, aE as GoogleGetConversionActionErrors, aF as GoogleGetInsightsData, aG as GoogleGetInsightsResponses, aH as GoogleGetInsightsErrors, aI as GoogleGetKeywordData, aJ as GoogleGetKeywordResponses, aK as GoogleGetKeywordErrors, aL as GoogleListAdGroupsData, aM as GoogleListAdGroupsResponses, aN as GoogleListAdGroupsErrors, aO as GoogleListAdsData, aP as GoogleListAdsResponses, aQ as GoogleListAdsErrors, aR as GoogleListCampaignsData, aS as GoogleListCampaignsResponses, aT as GoogleListCampaignsErrors, aU as GoogleListConversionActionsData, aV as GoogleListConversionActionsResponses, aW as GoogleListConversionActionsErrors, aX as GoogleListConversionGoalsData, aY as GoogleListConversionGoalsResponses, aZ as GoogleListConversionGoalsErrors, a_ as GoogleListKeywordsData, a$ as GoogleListKeywordsResponses, b0 as GoogleListKeywordsErrors, b1 as GooglePauseAdData, b2 as GooglePauseAdResponses, b3 as GooglePauseAdErrors, b4 as GooglePauseAdGroupData, b5 as GooglePauseAdGroupResponses, b6 as GooglePauseAdGroupErrors, b7 as GooglePauseCampaignData, b8 as GooglePauseCampaignResponses, b9 as GooglePauseCampaignErrors, ba as GooglePauseKeywordData, bb as GooglePauseKeywordResponses, bc as GooglePauseKeywordErrors, bd as GoogleRunGaqlData, be as GoogleRunGaqlResponses, bf as GoogleRunGaqlErrors, bg as GoogleSetAdGroupBidsData, bh as GoogleSetAdGroupBidsResponses, bi as GoogleSetAdGroupBidsErrors, bj as GoogleSetConversionGoalData, bk as GoogleSetConversionGoalResponses, bl as GoogleSetConversionGoalErrors, bm as GoogleSetKeywordBidData, bn as GoogleSetKeywordBidResponses, bo as GoogleSetKeywordBidErrors, bp as GoogleUploadConversionsData, bq as GoogleUploadConversionsResponses, br as GoogleUploadConversionsErrors, bs as GoogleUploadImageAssetData, bt as GoogleUploadImageAssetResponses, bu as GoogleUploadImageAssetErrors, bv as LogsGetData, bw as LogsGetResponses, bx as LogsGetErrors, by as LogsListData, bz as LogsListResponses, bA as LogsListErrors, bB as MediaCreateData, bC as MediaCreateResponses, bD as MediaCreateErrors, bE as MediaDeleteData, bF as MediaDeleteResponses, bG as MediaDeleteErrors, bH as MediaGetData, bI as MediaGetResponses, bJ as MediaGetErrors, bK as MediaListData, bL as MediaListResponses, bM as MediaListErrors, bN as MediaUpdateData, bO as MediaUpdateResponses, bP as MediaUpdateErrors, bQ as MetaAccountData, bR as MetaAccountResponses, bS as MetaAccountErrors, bT as MetaAdData, bU as MetaAdResponses, bV as MetaAdErrors, bW as MetaAdsData, bX as MetaAdsResponses, bY as MetaAdsErrors, bZ as MetaAdsetData, b_ as MetaAdsetResponses, b$ as MetaAdsetErrors, c0 as MetaAdsetsData, c1 as MetaAdsetsResponses, c2 as MetaAdsetsErrors, c3 as MetaCampaignData, c4 as MetaCampaignResponses, c5 as MetaCampaignErrors, c6 as MetaCampaignsData, c7 as MetaCampaignsResponses, c8 as MetaCampaignsErrors, c9 as MetaInsightsData, ca as MetaInsightsResponses, cb as MetaInsightsErrors, cc as PostsCreateData, cd as PostsCreateResponses, ce as PostsCreateErrors, cf as PostsDeleteData, cg as PostsDeleteResponses, ch as PostsDeleteErrors, ci as PostsGetData, cj as PostsGetResponses, ck as PostsGetErrors, cl as PostsListData, cm as PostsListResponses, cn as PostsListErrors, co as PostsUpdateData, cp as PostsUpdateResponses, cq as PostsUpdateErrors, cr as PostsValidateData, cs as PostsValidateResponses, ct as PostsValidateErrors, cu as ProfilesCreateData, cv as ProfilesCreateResponses, cw as ProfilesCreateErrors, cx as ProfilesDeleteData, cy as ProfilesDeleteResponses, cz as ProfilesDeleteErrors, cA as ProfilesGetData, cB as ProfilesGetResponses, cC as ProfilesGetErrors, cD as ProfilesListData, cE as ProfilesListResponses, cF as ProfilesListErrors, cG as ProfilesUpdateData, cH as ProfilesUpdateResponses, cI as ProfilesUpdateErrors, cJ as TiktokCreatorInfoData, cK as TiktokCreatorInfoResponses, cL as TiktokCreatorInfoErrors, cM as TokensMintData, cN as TokensMintResponses, cO as TokensMintErrors, cP as WebhooksCreateEndpointData, cQ as WebhooksCreateEndpointResponses, cR as WebhooksCreateEndpointErrors, cS as WebhooksCreatePortalData, cT as WebhooksCreatePortalResponses, cU as WebhooksCreatePortalErrors, cV as WebhooksDeleteEndpointData, cW as WebhooksDeleteEndpointResponses, cX as WebhooksDeleteEndpointErrors, cY as WebhooksGetEndpointData, cZ as WebhooksGetEndpointResponses, c_ as WebhooksGetEndpointErrors, c$ as WebhooksListEndpointsData, d0 as WebhooksListEndpointsResponses, d1 as WebhooksListEndpointsErrors, d2 as WebhooksListEventTypesData, d3 as WebhooksListEventTypesResponses, d4 as WebhooksListEventTypesErrors, d5 as WebhooksPingData, d6 as WebhooksPingResponses, d7 as WebhooksPingErrors, d8 as WebhooksUpdateEndpointData, d9 as WebhooksUpdateEndpointResponses, da as WebhooksUpdateEndpointErrors, db as ErrorCode, dc as MediaGetResponse, dd as ConnectionsConnectResponse, de as ConnectionsGetResponse, df as ConnectionsListByProfileResponse, dg as MediaCreateResponse, dh as ConnectionsListAccountsResponse, di as MediaListResponse, dj as PostsGetResponse, dk as PostsListResponse, dl as PostsValidateResponse, dm as ProfilesGetResponse, dn as ProfilesListResponse, dp as TiktokCreatorInfoResponse } from './types.gen-CENLQ15A.js';
|
|
2
|
+
export { dq as ClientOptions, dr as ConnectionsConnectError, ds as ConnectionsDeleteError, dt as ConnectionsDeleteResponse, du as ConnectionsGetError, dv as ConnectionsListAccountsError, dw as ConnectionsListByProfileError, dx as ConnectionsSelectError, dy as ConnectionsSelectResponse, dz as GoogleCreateAdError, dA as GoogleCreateAdGroupError, dB as GoogleCreateAdGroupResponse, dC as GoogleCreateAdResponse, dD as GoogleCreateBudgetError, dE as GoogleCreateBudgetResponse, dF as GoogleCreateCampaignError, dG as GoogleCreateCampaignResponse, dH as GoogleCreateConversionActionError, dI as GoogleCreateConversionActionResponse, dJ as GoogleCreateDisplayAdError, dK as GoogleCreateDisplayAdResponse, dL as GoogleCreateKeywordError, dM as GoogleCreateKeywordResponse, dN as GoogleDeleteAdError, dO as GoogleDeleteAdGroupError, dP as GoogleDeleteAdGroupResponse, dQ as GoogleDeleteAdResponse, dR as GoogleDeleteBudgetError, dS as GoogleDeleteBudgetResponse, dT as GoogleDeleteCampaignError, dU as GoogleDeleteCampaignResponse, dV as GoogleDeleteKeywordError, dW as GoogleDeleteKeywordResponse, dX as GoogleEditAdGroupError, dY as GoogleEditAdGroupResponse, dZ as GoogleEditBudgetError, d_ as GoogleEditBudgetResponse, d$ as GoogleEditCampaignError, e0 as GoogleEditCampaignResponse, e1 as GoogleEnableAdError, e2 as GoogleEnableAdGroupError, e3 as GoogleEnableAdGroupResponse, e4 as GoogleEnableAdResponse, e5 as GoogleEnableCampaignError, e6 as GoogleEnableCampaignResponse, e7 as GoogleEnableKeywordError, e8 as GoogleEnableKeywordResponse, e9 as GoogleGetAccountError, ea as GoogleGetAccountResponse, eb as GoogleGetAdError, ec as GoogleGetAdGroupError, ed as GoogleGetAdGroupResponse, ee as GoogleGetAdResponse, ef as GoogleGetCampaignError, eg as GoogleGetCampaignResponse, eh as GoogleGetConversionActionError, ei as GoogleGetConversionActionResponse, ej as GoogleGetInsightsError, ek as GoogleGetInsightsResponse, el as GoogleGetKeywordError, em as GoogleGetKeywordResponse, en as GoogleListAdGroupsError, eo as GoogleListAdGroupsResponse, ep as GoogleListAdsError, eq as GoogleListAdsResponse, er as GoogleListCampaignsError, es as GoogleListCampaignsResponse, et as GoogleListConversionActionsError, eu as GoogleListConversionActionsResponse, ev as GoogleListConversionGoalsError, ew as GoogleListConversionGoalsResponse, ex as GoogleListKeywordsError, ey as GoogleListKeywordsResponse, ez as GooglePauseAdError, eA as GooglePauseAdGroupError, eB as GooglePauseAdGroupResponse, eC as GooglePauseAdResponse, eD as GooglePauseCampaignError, eE as GooglePauseCampaignResponse, eF as GooglePauseKeywordError, eG as GooglePauseKeywordResponse, eH as GoogleRunGaqlError, eI as GoogleRunGaqlResponse, eJ as GoogleSetAdGroupBidsError, eK as GoogleSetAdGroupBidsResponse, eL as GoogleSetConversionGoalError, eM as GoogleSetConversionGoalResponse, eN as GoogleSetKeywordBidError, eO as GoogleSetKeywordBidResponse, eP as GoogleUploadConversionsError, eQ as GoogleUploadConversionsResponse, eR as GoogleUploadImageAssetError, eS as GoogleUploadImageAssetResponse, eT as LogsGetError, eU as LogsGetResponse, eV as LogsListError, eW as LogsListResponse, eX as MediaCreateError, eY as MediaDeleteError, eZ as MediaDeleteResponse, e_ as MediaGetError, e$ as MediaListError, f0 as MediaUpdateError, f1 as MediaUpdateResponse, f2 as MetaAccountError, f3 as MetaAccountResponse, f4 as MetaAdError, f5 as MetaAdResponse, f6 as MetaAdsError, f7 as MetaAdsResponse, f8 as MetaAdsetError, f9 as MetaAdsetResponse, fa as MetaAdsetsError, fb as MetaAdsetsResponse, fc as MetaCampaignError, fd as MetaCampaignResponse, fe as MetaCampaignsError, ff as MetaCampaignsResponse, fg as MetaInsightsError, fh as MetaInsightsResponse, fi as PostrunClient, fj as PostrunClientOptions, fk as PostsCreateError, fl as PostsCreateResponse, fm as PostsDeleteError, fn as PostsDeleteResponse, fo as PostsGetError, fp as PostsListError, fq as PostsUpdateError, fr as PostsUpdateResponse, fs as PostsValidateError, ft as ProfilesCreateError, fu as ProfilesCreateResponse, fv as ProfilesDeleteError, fw as ProfilesDeleteResponse, fx as ProfilesGetError, fy as ProfilesListError, fz as ProfilesUpdateError, fA as ProfilesUpdateResponse, fB as TiktokCreatorInfoError, fC as TokensMintError, fD as TokensMintResponse, fE as WebhooksCreateEndpointError, fF as WebhooksCreateEndpointResponse, fG as WebhooksCreatePortalError, fH as WebhooksCreatePortalResponse, fI as WebhooksDeleteEndpointError, fJ as WebhooksDeleteEndpointResponse, fK as WebhooksGetEndpointError, fL as WebhooksGetEndpointResponse, fM as WebhooksListEndpointsError, fN as WebhooksListEndpointsResponse, fO as WebhooksListEventTypesError, fP as WebhooksListEventTypesResponse, fQ as WebhooksPingError, fR as WebhooksPingResponse, fS as WebhooksUpdateEndpointError, fT as WebhooksUpdateEndpointResponse, fU as createPostrunClient } from './types.gen-CENLQ15A.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> & {
|
|
@@ -945,6 +945,30 @@ type Metadata = NonNullable<CreateMediaInput['metadata']>;
|
|
|
945
945
|
*/
|
|
946
946
|
type MetadataFilter = NonNullable<ListMediaQuery['metadata']>;
|
|
947
947
|
|
|
948
|
+
/** A failed direct-to-storage upload, carrying the HTTP status (0 = network). */
|
|
949
|
+
declare class UploadError extends Error {
|
|
950
|
+
readonly status: number;
|
|
951
|
+
constructor(status: number, message: string);
|
|
952
|
+
}
|
|
953
|
+
interface UploadToTargetOptions {
|
|
954
|
+
/** Fraction uploaded, 0..1. Called as bytes flow and once with 1 on success. */
|
|
955
|
+
onProgress?: (fraction: number) => void;
|
|
956
|
+
/** Abort the in-flight upload (and stop retrying). */
|
|
957
|
+
signal?: AbortSignal;
|
|
958
|
+
/** Max retry attempts for retriable failures (network / 5xx / 429). Default 3. */
|
|
959
|
+
retries?: number;
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* PUT a file's bytes to a signed upload target, with progress, cancellation, and
|
|
963
|
+
* retry — the single home for the direct-to-storage upload. axios drives the XHR
|
|
964
|
+
* (the Fetch API can't report upload progress in browsers); `p-retry` composes the
|
|
965
|
+
* backoff so the loop is never hand-rolled. Network errors, 5xx, and 429 are
|
|
966
|
+
* retried; any other 4xx (e.g. an expired URL) is terminal; an aborted signal
|
|
967
|
+
* stops immediately. Throws `UploadError` (with the HTTP status) on a hard
|
|
968
|
+
* failure, or re-throws the original abort error on cancellation.
|
|
969
|
+
*/
|
|
970
|
+
declare function uploadToTarget(file: Blob, target: UploadTarget, opts?: UploadToTargetOptions): Promise<void>;
|
|
971
|
+
|
|
948
972
|
/**
|
|
949
973
|
* Map a TikTok privacy level to a short, human label for the composer's privacy
|
|
950
974
|
* dropdown — the presentation the API deliberately keeps OFF the wire (the
|
|
@@ -1193,4 +1217,4 @@ declare function buildCreatePost(input: ComposePostInput, connections: readonly
|
|
|
1193
1217
|
*/
|
|
1194
1218
|
declare function buildUpdatePost(input: ComposeUpdateInput, connections?: readonly ConnectionRef[]): UpdatePostInput;
|
|
1195
1219
|
|
|
1196
|
-
export { 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, GoogleCreateAdData, GoogleCreateAdErrors, GoogleCreateAdGroupData, GoogleCreateAdGroupErrors, GoogleCreateAdGroupResponses, GoogleCreateAdResponses, GoogleCreateBudgetData, GoogleCreateBudgetErrors, GoogleCreateBudgetResponses, GoogleCreateCampaignData, GoogleCreateCampaignErrors, GoogleCreateCampaignResponses, GoogleCreateConversionActionData, GoogleCreateConversionActionErrors, GoogleCreateConversionActionResponses, GoogleCreateDisplayAdData, GoogleCreateDisplayAdErrors, GoogleCreateDisplayAdResponses, GoogleCreateKeywordData, GoogleCreateKeywordErrors, GoogleCreateKeywordResponses, GoogleDeleteAdData, GoogleDeleteAdErrors, GoogleDeleteAdGroupData, GoogleDeleteAdGroupErrors, GoogleDeleteAdGroupResponses, GoogleDeleteAdResponses, GoogleDeleteBudgetData, GoogleDeleteBudgetErrors, GoogleDeleteBudgetResponses, GoogleDeleteCampaignData, GoogleDeleteCampaignErrors, GoogleDeleteCampaignResponses, GoogleDeleteKeywordData, GoogleDeleteKeywordErrors, GoogleDeleteKeywordResponses, GoogleEditAdGroupData, GoogleEditAdGroupErrors, GoogleEditAdGroupResponses, GoogleEditBudgetData, GoogleEditBudgetErrors, GoogleEditBudgetResponses, GoogleEditCampaignData, GoogleEditCampaignErrors, GoogleEditCampaignResponses, GoogleEnableAdData, GoogleEnableAdErrors, GoogleEnableAdGroupData, GoogleEnableAdGroupErrors, GoogleEnableAdGroupResponses, GoogleEnableAdResponses, GoogleEnableCampaignData, GoogleEnableCampaignErrors, GoogleEnableCampaignResponses, GoogleEnableKeywordData, GoogleEnableKeywordErrors, GoogleEnableKeywordResponses, GoogleGetAccountData, GoogleGetAccountErrors, GoogleGetAccountResponses, GoogleGetAdData, GoogleGetAdErrors, GoogleGetAdGroupData, GoogleGetAdGroupErrors, GoogleGetAdGroupResponses, GoogleGetAdResponses, GoogleGetCampaignData, GoogleGetCampaignErrors, GoogleGetCampaignResponses, GoogleGetConversionActionData, GoogleGetConversionActionErrors, GoogleGetConversionActionResponses, GoogleGetInsightsData, GoogleGetInsightsErrors, GoogleGetInsightsResponses, GoogleGetKeywordData, GoogleGetKeywordErrors, GoogleGetKeywordResponses, GoogleListAdGroupsData, GoogleListAdGroupsErrors, GoogleListAdGroupsResponses, GoogleListAdsData, GoogleListAdsErrors, GoogleListAdsResponses, GoogleListCampaignsData, GoogleListCampaignsErrors, GoogleListCampaignsResponses, GoogleListConversionActionsData, GoogleListConversionActionsErrors, GoogleListConversionActionsResponses, GoogleListConversionGoalsData, GoogleListConversionGoalsErrors, GoogleListConversionGoalsResponses, GoogleListKeywordsData, GoogleListKeywordsErrors, GoogleListKeywordsResponses, GooglePauseAdData, GooglePauseAdErrors, GooglePauseAdGroupData, GooglePauseAdGroupErrors, GooglePauseAdGroupResponses, GooglePauseAdResponses, GooglePauseCampaignData, GooglePauseCampaignErrors, GooglePauseCampaignResponses, GooglePauseKeywordData, GooglePauseKeywordErrors, GooglePauseKeywordResponses, GoogleRunGaqlData, GoogleRunGaqlErrors, GoogleRunGaqlResponses, GoogleSetAdGroupBidsData, GoogleSetAdGroupBidsErrors, GoogleSetAdGroupBidsResponses, GoogleSetConversionGoalData, GoogleSetConversionGoalErrors, GoogleSetConversionGoalResponses, GoogleSetKeywordBidData, GoogleSetKeywordBidErrors, GoogleSetKeywordBidResponses, GoogleUploadConversionsData, GoogleUploadConversionsErrors, GoogleUploadConversionsResponses, GoogleUploadImageAssetData, GoogleUploadImageAssetErrors, GoogleUploadImageAssetResponses, type InstagramPostVariant, type LinkedInPollDuration, type LinkedInPostVariant, type ListConnectionsQuery, type ListMediaQuery, type ListPostsQuery, type ListProfilesQuery, LogsGetData, LogsGetErrors, LogsGetResponses, LogsListData, LogsListErrors, LogsListResponses, MediaCreateData, MediaCreateErrors, MediaCreateResponse, MediaCreateResponses, MediaDeleteData, MediaDeleteErrors, MediaDeleteResponses, MediaGetData, MediaGetErrors, MediaGetResponse, MediaGetResponses, type MediaInput, type MediaKind, type MediaList, MediaListData, MediaListErrors, MediaListResponse, MediaListResponses, type MediaResource, 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 Options, POST_PLATFORMS, type Post, type PostContent, type PostList, type PostMetadata, type PostPlatform, type PostStatus, type PostTypeFor, type PostValidation, type PostVariant, type PostVariantError, type PostVariantInput, 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, TiktokCreatorInfoData, TiktokCreatorInfoErrors, TiktokCreatorInfoResponse, TiktokCreatorInfoResponses, TokensMintData, TokensMintErrors, TokensMintResponses, type UpdateMediaInput, type UpdatePostInput, type UpdateProfileInput, type UploadTarget, type ValidatePostInput, type ValidationIssue, 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, googleCreateAd, googleCreateAdGroup, googleCreateBudget, googleCreateCampaign, googleCreateConversionAction, googleCreateDisplayAd, googleCreateKeyword, googleDeleteAd, googleDeleteAdGroup, googleDeleteBudget, googleDeleteCampaign, googleDeleteKeyword, googleEditAdGroup, googleEditBudget, googleEditCampaign, googleEnableAd, googleEnableAdGroup, googleEnableCampaign, googleEnableKeyword, googleGetAccount, googleGetAd, googleGetAdGroup, googleGetCampaign, googleGetConversionAction, googleGetInsights, googleGetKeyword, googleListAdGroups, googleListAds, googleListCampaigns, googleListConversionActions, googleListConversionGoals, googleListKeywords, googlePauseAd, googlePauseAdGroup, googlePauseCampaign, googlePauseKeyword, googleRunGaql, googleSetAdGroupBids, googleSetConversionGoal, googleSetKeywordBid, googleUploadConversions, googleUploadImageAsset, interactionRows, interactionValueKey, isInteractionForbidden, isPostPlatform, isPublished, linkedinPollDurationLabel, logsGet, logsList, mediaCreate, mediaDelete, mediaGet, mediaList, mediaUpdate, metaAccount, metaAd, metaAds, metaAdset, metaAdsets, metaCampaign, metaCampaigns, metaInsights, parsePrivacyLevel, postsCreate, postsDelete, postsGet, postsList, postsUpdate, postsValidate, privacyChoices, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, setBrandKind, setCommercialDisclosure, tiktokCreatorInfo, tiktokOptionsReady, tiktokPrivacyLabel, tiktokSettings, toggleInteraction, tokensMint, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint, xPollDurationLabel };
|
|
1220
|
+
export { 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, GoogleCreateAdData, GoogleCreateAdErrors, GoogleCreateAdGroupData, GoogleCreateAdGroupErrors, GoogleCreateAdGroupResponses, GoogleCreateAdResponses, GoogleCreateBudgetData, GoogleCreateBudgetErrors, GoogleCreateBudgetResponses, GoogleCreateCampaignData, GoogleCreateCampaignErrors, GoogleCreateCampaignResponses, GoogleCreateConversionActionData, GoogleCreateConversionActionErrors, GoogleCreateConversionActionResponses, GoogleCreateDisplayAdData, GoogleCreateDisplayAdErrors, GoogleCreateDisplayAdResponses, GoogleCreateKeywordData, GoogleCreateKeywordErrors, GoogleCreateKeywordResponses, GoogleDeleteAdData, GoogleDeleteAdErrors, GoogleDeleteAdGroupData, GoogleDeleteAdGroupErrors, GoogleDeleteAdGroupResponses, GoogleDeleteAdResponses, GoogleDeleteBudgetData, GoogleDeleteBudgetErrors, GoogleDeleteBudgetResponses, GoogleDeleteCampaignData, GoogleDeleteCampaignErrors, GoogleDeleteCampaignResponses, GoogleDeleteKeywordData, GoogleDeleteKeywordErrors, GoogleDeleteKeywordResponses, GoogleEditAdGroupData, GoogleEditAdGroupErrors, GoogleEditAdGroupResponses, GoogleEditBudgetData, GoogleEditBudgetErrors, GoogleEditBudgetResponses, GoogleEditCampaignData, GoogleEditCampaignErrors, GoogleEditCampaignResponses, GoogleEnableAdData, GoogleEnableAdErrors, GoogleEnableAdGroupData, GoogleEnableAdGroupErrors, GoogleEnableAdGroupResponses, GoogleEnableAdResponses, GoogleEnableCampaignData, GoogleEnableCampaignErrors, GoogleEnableCampaignResponses, GoogleEnableKeywordData, GoogleEnableKeywordErrors, GoogleEnableKeywordResponses, GoogleGetAccountData, GoogleGetAccountErrors, GoogleGetAccountResponses, GoogleGetAdData, GoogleGetAdErrors, GoogleGetAdGroupData, GoogleGetAdGroupErrors, GoogleGetAdGroupResponses, GoogleGetAdResponses, GoogleGetCampaignData, GoogleGetCampaignErrors, GoogleGetCampaignResponses, GoogleGetConversionActionData, GoogleGetConversionActionErrors, GoogleGetConversionActionResponses, GoogleGetInsightsData, GoogleGetInsightsErrors, GoogleGetInsightsResponses, GoogleGetKeywordData, GoogleGetKeywordErrors, GoogleGetKeywordResponses, GoogleListAdGroupsData, GoogleListAdGroupsErrors, GoogleListAdGroupsResponses, GoogleListAdsData, GoogleListAdsErrors, GoogleListAdsResponses, GoogleListCampaignsData, GoogleListCampaignsErrors, GoogleListCampaignsResponses, GoogleListConversionActionsData, GoogleListConversionActionsErrors, GoogleListConversionActionsResponses, GoogleListConversionGoalsData, GoogleListConversionGoalsErrors, GoogleListConversionGoalsResponses, GoogleListKeywordsData, GoogleListKeywordsErrors, GoogleListKeywordsResponses, GooglePauseAdData, GooglePauseAdErrors, GooglePauseAdGroupData, GooglePauseAdGroupErrors, GooglePauseAdGroupResponses, GooglePauseAdResponses, GooglePauseCampaignData, GooglePauseCampaignErrors, GooglePauseCampaignResponses, GooglePauseKeywordData, GooglePauseKeywordErrors, GooglePauseKeywordResponses, GoogleRunGaqlData, GoogleRunGaqlErrors, GoogleRunGaqlResponses, GoogleSetAdGroupBidsData, GoogleSetAdGroupBidsErrors, GoogleSetAdGroupBidsResponses, GoogleSetConversionGoalData, GoogleSetConversionGoalErrors, GoogleSetConversionGoalResponses, GoogleSetKeywordBidData, GoogleSetKeywordBidErrors, GoogleSetKeywordBidResponses, GoogleUploadConversionsData, GoogleUploadConversionsErrors, GoogleUploadConversionsResponses, GoogleUploadImageAssetData, GoogleUploadImageAssetErrors, GoogleUploadImageAssetResponses, type InstagramPostVariant, type LinkedInPollDuration, type LinkedInPostVariant, type ListConnectionsQuery, type ListMediaQuery, type ListPostsQuery, type ListProfilesQuery, LogsGetData, LogsGetErrors, LogsGetResponses, LogsListData, LogsListErrors, LogsListResponses, MediaCreateData, MediaCreateErrors, MediaCreateResponse, MediaCreateResponses, MediaDeleteData, MediaDeleteErrors, MediaDeleteResponses, MediaGetData, MediaGetErrors, MediaGetResponse, MediaGetResponses, type MediaInput, type MediaKind, type MediaList, MediaListData, MediaListErrors, MediaListResponse, MediaListResponses, type MediaResource, 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 Options, POST_PLATFORMS, type Post, type PostContent, type PostList, type PostMetadata, type PostPlatform, type PostStatus, type PostTypeFor, type PostValidation, type PostVariant, type PostVariantError, type PostVariantInput, 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, TiktokCreatorInfoData, TiktokCreatorInfoErrors, TiktokCreatorInfoResponse, TiktokCreatorInfoResponses, TokensMintData, TokensMintErrors, TokensMintResponses, type UpdateMediaInput, type UpdatePostInput, type UpdateProfileInput, UploadError, type UploadTarget, type UploadToTargetOptions, type ValidatePostInput, type ValidationIssue, 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, googleCreateAd, googleCreateAdGroup, googleCreateBudget, googleCreateCampaign, googleCreateConversionAction, googleCreateDisplayAd, googleCreateKeyword, googleDeleteAd, googleDeleteAdGroup, googleDeleteBudget, googleDeleteCampaign, googleDeleteKeyword, googleEditAdGroup, googleEditBudget, googleEditCampaign, googleEnableAd, googleEnableAdGroup, googleEnableCampaign, googleEnableKeyword, googleGetAccount, googleGetAd, googleGetAdGroup, googleGetCampaign, googleGetConversionAction, googleGetInsights, googleGetKeyword, googleListAdGroups, googleListAds, googleListCampaigns, googleListConversionActions, googleListConversionGoals, googleListKeywords, googlePauseAd, googlePauseAdGroup, googlePauseCampaign, googlePauseKeyword, googleRunGaql, googleSetAdGroupBids, googleSetConversionGoal, googleSetKeywordBid, googleUploadConversions, googleUploadImageAsset, interactionRows, interactionValueKey, isInteractionForbidden, isPostPlatform, isPublished, linkedinPollDurationLabel, logsGet, logsList, mediaCreate, mediaDelete, mediaGet, mediaList, mediaUpdate, metaAccount, metaAd, metaAds, metaAdset, metaAdsets, metaCampaign, metaCampaigns, metaInsights, parsePrivacyLevel, postsCreate, postsDelete, postsGet, postsList, postsUpdate, postsValidate, privacyChoices, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, setBrandKind, setCommercialDisclosure, tiktokCreatorInfo, tiktokOptionsReady, tiktokPrivacyLabel, tiktokSettings, toggleInteraction, tokensMint, uploadToTarget, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint, xPollDurationLabel };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,67 @@
|
|
|
1
|
-
export { PostrunError, connectionsConnect, connectionsDelete, connectionsGet, connectionsListAccounts, connectionsListByProfile, connectionsSelect, createPostrunClient, googleCreateAd, googleCreateAdGroup, googleCreateBudget, googleCreateCampaign, googleCreateConversionAction, googleCreateDisplayAd, googleCreateKeyword, googleDeleteAd, googleDeleteAdGroup, googleDeleteBudget, googleDeleteCampaign, googleDeleteKeyword, googleEditAdGroup, googleEditBudget, googleEditCampaign, googleEnableAd, googleEnableAdGroup, googleEnableCampaign, googleEnableKeyword, googleGetAccount, googleGetAd, googleGetAdGroup, googleGetCampaign, googleGetConversionAction, googleGetInsights, googleGetKeyword, googleListAdGroups, googleListAds, googleListCampaigns, googleListConversionActions, googleListConversionGoals, googleListKeywords, googlePauseAd, googlePauseAdGroup, googlePauseCampaign, googlePauseKeyword, googleRunGaql, googleSetAdGroupBids, googleSetConversionGoal, googleSetKeywordBid, googleUploadConversions, googleUploadImageAsset, logsGet, logsList, mediaCreate, mediaDelete, mediaGet, mediaList, mediaUpdate, metaAccount, metaAd, metaAds, metaAdset, metaAdsets, metaCampaign, metaCampaigns, metaInsights, postsCreate, postsDelete, postsGet, postsList, postsUpdate, postsValidate, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, tiktokCreatorInfo, tokensMint, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { PostrunError, connectionsConnect, connectionsDelete, connectionsGet, connectionsListAccounts, connectionsListByProfile, connectionsSelect, createPostrunClient, googleCreateAd, googleCreateAdGroup, googleCreateBudget, googleCreateCampaign, googleCreateConversionAction, googleCreateDisplayAd, googleCreateKeyword, googleDeleteAd, googleDeleteAdGroup, googleDeleteBudget, googleDeleteCampaign, googleDeleteKeyword, googleEditAdGroup, googleEditBudget, googleEditCampaign, googleEnableAd, googleEnableAdGroup, googleEnableCampaign, googleEnableKeyword, googleGetAccount, googleGetAd, googleGetAdGroup, googleGetCampaign, googleGetConversionAction, googleGetInsights, googleGetKeyword, googleListAdGroups, googleListAds, googleListCampaigns, googleListConversionActions, googleListConversionGoals, googleListKeywords, googlePauseAd, googlePauseAdGroup, googlePauseCampaign, googlePauseKeyword, googleRunGaql, googleSetAdGroupBids, googleSetConversionGoal, googleSetKeywordBid, googleUploadConversions, googleUploadImageAsset, logsGet, logsList, mediaCreate, mediaDelete, mediaGet, mediaList, mediaUpdate, metaAccount, metaAd, metaAds, metaAdset, metaAdsets, metaCampaign, metaCampaigns, metaInsights, postsCreate, postsDelete, postsGet, postsList, postsUpdate, postsValidate, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, tiktokCreatorInfo, tokensMint, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint } from './chunk-QMBBAADH.js';
|
|
2
|
+
import './chunk-T4V4M2WL.js';
|
|
3
|
+
import axios, { isAxiosError } from 'axios';
|
|
4
|
+
import pRetry, { AbortError } from 'p-retry';
|
|
3
5
|
|
|
4
6
|
// src/resources.ts
|
|
5
7
|
var isPublished = (post) => post.status === "published";
|
|
6
8
|
var failedVariants = (post) => post.variants.filter((variant) => variant.status === "failed");
|
|
9
|
+
var UploadError = class extends Error {
|
|
10
|
+
status;
|
|
11
|
+
constructor(status, message) {
|
|
12
|
+
super(message);
|
|
13
|
+
this.name = "UploadError";
|
|
14
|
+
this.status = status;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
function isTerminal(status) {
|
|
18
|
+
return status >= 400 && status < 500 && status !== 429;
|
|
19
|
+
}
|
|
20
|
+
async function uploadToTarget(file, target, opts = {}) {
|
|
21
|
+
const { onProgress, signal } = opts;
|
|
22
|
+
async function putOnce() {
|
|
23
|
+
try {
|
|
24
|
+
await axios.request({
|
|
25
|
+
method: target.method,
|
|
26
|
+
url: target.url,
|
|
27
|
+
data: file,
|
|
28
|
+
headers: target.headers,
|
|
29
|
+
signal,
|
|
30
|
+
onUploadProgress: (event) => {
|
|
31
|
+
if (event.total) {
|
|
32
|
+
onProgress?.(event.loaded / event.total);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
onProgress?.(1);
|
|
37
|
+
} catch (error) {
|
|
38
|
+
if (signal?.aborted) {
|
|
39
|
+
throw error;
|
|
40
|
+
}
|
|
41
|
+
if (isAxiosError(error)) {
|
|
42
|
+
const status = error.response?.status ?? 0;
|
|
43
|
+
throw new UploadError(
|
|
44
|
+
status,
|
|
45
|
+
status ? `Upload failed (HTTP ${status}).` : "Upload failed: network error."
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
throw error;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
await pRetry(
|
|
52
|
+
async () => {
|
|
53
|
+
try {
|
|
54
|
+
await putOnce();
|
|
55
|
+
} catch (error) {
|
|
56
|
+
if (error instanceof UploadError && isTerminal(error.status)) {
|
|
57
|
+
throw new AbortError(error);
|
|
58
|
+
}
|
|
59
|
+
throw error;
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{ retries: opts.retries ?? 3, signal }
|
|
63
|
+
);
|
|
64
|
+
}
|
|
7
65
|
|
|
8
66
|
// src/tiktok.ts
|
|
9
67
|
function tiktokPrivacyLabel(value) {
|
|
@@ -356,6 +414,6 @@ function buildUpdatePost(input, connections = []) {
|
|
|
356
414
|
};
|
|
357
415
|
}
|
|
358
416
|
|
|
359
|
-
export { ComposeError, POST_PLATFORMS, TIKTOK_AUDIENCE_REQUIRED_HINT, TIKTOK_BRANDED_CONTENT_POLICY_URL, TIKTOK_CAPTION_MAX, TIKTOK_DISCLOSURE_REQUIRED_HINT, TIKTOK_MUSIC_CONFIRMATION_URL, TIKTOK_PROCESSING_NOTICE, audiencePrivacyOptions, audienceUnselected, brandedContentDeclared, buildCreatePost, buildUpdatePost, captionMaxFor, commercialDisclosureIncomplete, commercialLabelNotice, defaultTikTokOptions, failedVariants, interactionRows, interactionValueKey, isInteractionForbidden, isPostPlatform, isPublished, linkedinPollDurationLabel, parsePrivacyLevel, privacyChoices, setBrandKind, setCommercialDisclosure, tiktokOptionsReady, tiktokPrivacyLabel, tiktokSettings, toggleInteraction, xPollDurationLabel };
|
|
417
|
+
export { ComposeError, POST_PLATFORMS, TIKTOK_AUDIENCE_REQUIRED_HINT, TIKTOK_BRANDED_CONTENT_POLICY_URL, TIKTOK_CAPTION_MAX, TIKTOK_DISCLOSURE_REQUIRED_HINT, TIKTOK_MUSIC_CONFIRMATION_URL, TIKTOK_PROCESSING_NOTICE, UploadError, audiencePrivacyOptions, audienceUnselected, brandedContentDeclared, buildCreatePost, buildUpdatePost, captionMaxFor, commercialDisclosureIncomplete, commercialLabelNotice, defaultTikTokOptions, failedVariants, interactionRows, interactionValueKey, isInteractionForbidden, isPostPlatform, isPublished, linkedinPollDurationLabel, parsePrivacyLevel, privacyChoices, setBrandKind, setCommercialDisclosure, tiktokOptionsReady, tiktokPrivacyLabel, tiktokSettings, toggleInteraction, uploadToTarget, xPollDurationLabel };
|
|
360
418
|
//# sourceMappingURL=index.js.map
|
|
361
419
|
//# sourceMappingURL=index.js.map
|