@postrun/js 0.1.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.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 MediaUpdateData, bL as MediaUpdateResponses, bM as MediaUpdateErrors, bN as MetaAccountData, bO as MetaAccountResponses, bP as MetaAccountErrors, bQ as MetaAdData, bR as MetaAdResponses, bS as MetaAdErrors, bT as MetaAdsData, bU as MetaAdsResponses, bV as MetaAdsErrors, bW as MetaAdsetData, bX as MetaAdsetResponses, bY as MetaAdsetErrors, bZ as MetaAdsetsData, b_ as MetaAdsetsResponses, b$ as MetaAdsetsErrors, c0 as MetaCampaignData, c1 as MetaCampaignResponses, c2 as MetaCampaignErrors, c3 as MetaCampaignsData, c4 as MetaCampaignsResponses, c5 as MetaCampaignsErrors, c6 as MetaInsightsData, c7 as MetaInsightsResponses, c8 as MetaInsightsErrors, c9 as PostsCreateData, ca as PostsCreateResponses, cb as PostsCreateErrors, cc as PostsDeleteData, cd as PostsDeleteResponses, ce as PostsDeleteErrors, cf as PostsGetData, cg as PostsGetResponses, ch as PostsGetErrors, ci as PostsListData, cj as PostsListResponses, ck as PostsListErrors, cl as PostsUpdateData, cm as PostsUpdateResponses, cn as PostsUpdateErrors, co as ProfilesCreateData, cp as ProfilesCreateResponses, cq as ProfilesCreateErrors, cr as ProfilesDeleteData, cs as ProfilesDeleteResponses, ct as ProfilesDeleteErrors, cu as ProfilesGetData, cv as ProfilesGetResponses, cw as ProfilesGetErrors, cx as ProfilesListData, cy as ProfilesListResponses, cz as ProfilesListErrors, cA as ProfilesUpdateData, cB as ProfilesUpdateResponses, cC as ProfilesUpdateErrors, cD as TokensMintData, cE as TokensMintResponses, cF as TokensMintErrors, cG as WebhooksCreateEndpointData, cH as WebhooksCreateEndpointResponses, cI as WebhooksCreateEndpointErrors, cJ as WebhooksCreatePortalData, cK as WebhooksCreatePortalResponses, cL as WebhooksCreatePortalErrors, cM as WebhooksDeleteEndpointData, cN as WebhooksDeleteEndpointResponses, cO as WebhooksDeleteEndpointErrors, cP as WebhooksGetEndpointData, cQ as WebhooksGetEndpointResponses, cR as WebhooksGetEndpointErrors, cS as WebhooksListEndpointsData, cT as WebhooksListEndpointsResponses, cU as WebhooksListEndpointsErrors, cV as WebhooksListEventTypesData, cW as WebhooksListEventTypesResponses, cX as WebhooksListEventTypesErrors, cY as WebhooksPingData, cZ as WebhooksPingResponses, c_ as WebhooksPingErrors, c$ as WebhooksUpdateEndpointData, d0 as WebhooksUpdateEndpointResponses, d1 as WebhooksUpdateEndpointErrors, d2 as ErrorCode, d3 as MediaGetResponse, d4 as ConnectionsConnectResponse, d5 as ConnectionsGetResponse, d6 as ConnectionsListByProfileResponse, d7 as MediaCreateResponse, d8 as ConnectionsListAccountsResponse, d9 as PostsGetResponse, da as PostsListResponse, db as ProfilesGetResponse, dc as ProfilesListResponse } from './types.gen-DGCs7eB8.cjs';
2
- export { dd as ClientOptions, de as ConnectionsConnectError, df as ConnectionsDeleteError, dg as ConnectionsDeleteResponse, dh as ConnectionsGetError, di as ConnectionsListAccountsError, dj as ConnectionsListByProfileError, dk as ConnectionsSelectError, dl as ConnectionsSelectResponse, dm as GoogleCreateAdError, dn as GoogleCreateAdGroupError, dp as GoogleCreateAdGroupResponse, dq as GoogleCreateAdResponse, dr as GoogleCreateBudgetError, ds as GoogleCreateBudgetResponse, dt as GoogleCreateCampaignError, du as GoogleCreateCampaignResponse, dv as GoogleCreateConversionActionError, dw as GoogleCreateConversionActionResponse, dx as GoogleCreateDisplayAdError, dy as GoogleCreateDisplayAdResponse, dz as GoogleCreateKeywordError, dA as GoogleCreateKeywordResponse, dB as GoogleDeleteAdError, dC as GoogleDeleteAdGroupError, dD as GoogleDeleteAdGroupResponse, dE as GoogleDeleteAdResponse, dF as GoogleDeleteBudgetError, dG as GoogleDeleteBudgetResponse, dH as GoogleDeleteCampaignError, dI as GoogleDeleteCampaignResponse, dJ as GoogleDeleteKeywordError, dK as GoogleDeleteKeywordResponse, dL as GoogleEditAdGroupError, dM as GoogleEditAdGroupResponse, dN as GoogleEditBudgetError, dO as GoogleEditBudgetResponse, dP as GoogleEditCampaignError, dQ as GoogleEditCampaignResponse, dR as GoogleEnableAdError, dS as GoogleEnableAdGroupError, dT as GoogleEnableAdGroupResponse, dU as GoogleEnableAdResponse, dV as GoogleEnableCampaignError, dW as GoogleEnableCampaignResponse, dX as GoogleEnableKeywordError, dY as GoogleEnableKeywordResponse, dZ as GoogleGetAccountError, d_ as GoogleGetAccountResponse, d$ as GoogleGetAdError, e0 as GoogleGetAdGroupError, e1 as GoogleGetAdGroupResponse, e2 as GoogleGetAdResponse, e3 as GoogleGetCampaignError, e4 as GoogleGetCampaignResponse, e5 as GoogleGetConversionActionError, e6 as GoogleGetConversionActionResponse, e7 as GoogleGetInsightsError, e8 as GoogleGetInsightsResponse, e9 as GoogleGetKeywordError, ea as GoogleGetKeywordResponse, eb as GoogleListAdGroupsError, ec as GoogleListAdGroupsResponse, ed as GoogleListAdsError, ee as GoogleListAdsResponse, ef as GoogleListCampaignsError, eg as GoogleListCampaignsResponse, eh as GoogleListConversionActionsError, ei as GoogleListConversionActionsResponse, ej as GoogleListConversionGoalsError, ek as GoogleListConversionGoalsResponse, el as GoogleListKeywordsError, em as GoogleListKeywordsResponse, en as GooglePauseAdError, eo as GooglePauseAdGroupError, ep as GooglePauseAdGroupResponse, eq as GooglePauseAdResponse, er as GooglePauseCampaignError, es as GooglePauseCampaignResponse, et as GooglePauseKeywordError, eu as GooglePauseKeywordResponse, ev as GoogleRunGaqlError, ew as GoogleRunGaqlResponse, ex as GoogleSetAdGroupBidsError, ey as GoogleSetAdGroupBidsResponse, ez as GoogleSetConversionGoalError, eA as GoogleSetConversionGoalResponse, eB as GoogleSetKeywordBidError, eC as GoogleSetKeywordBidResponse, eD as GoogleUploadConversionsError, eE as GoogleUploadConversionsResponse, eF as GoogleUploadImageAssetError, eG as GoogleUploadImageAssetResponse, eH as LogsGetError, eI as LogsGetResponse, eJ as LogsListError, eK as LogsListResponse, eL as MediaCreateError, eM as MediaDeleteError, eN as MediaDeleteResponse, eO as MediaGetError, eP as MediaUpdateError, eQ as MediaUpdateResponse, eR as MetaAccountError, eS as MetaAccountResponse, eT as MetaAdError, eU as MetaAdResponse, eV as MetaAdsError, eW as MetaAdsResponse, eX as MetaAdsetError, eY as MetaAdsetResponse, eZ as MetaAdsetsError, e_ as MetaAdsetsResponse, e$ as MetaCampaignError, f0 as MetaCampaignResponse, f1 as MetaCampaignsError, f2 as MetaCampaignsResponse, f3 as MetaInsightsError, f4 as MetaInsightsResponse, f5 as PostrunClient, f6 as PostrunClientOptions, f7 as PostsCreateError, f8 as PostsCreateResponse, f9 as PostsDeleteError, fa as PostsDeleteResponse, fb as PostsGetError, fc as PostsListError, fd as PostsUpdateError, fe as PostsUpdateResponse, ff as ProfilesCreateError, fg as ProfilesCreateResponse, fh as ProfilesDeleteError, fi as ProfilesDeleteResponse, fj as ProfilesGetError, fk as ProfilesListError, fl as ProfilesUpdateError, fm as ProfilesUpdateResponse, fn as TokensMintError, fo as TokensMintResponse, fp as WebhooksCreateEndpointError, fq as WebhooksCreateEndpointResponse, fr as WebhooksCreatePortalError, fs as WebhooksCreatePortalResponse, ft as WebhooksDeleteEndpointError, fu as WebhooksDeleteEndpointResponse, fv as WebhooksGetEndpointError, fw as WebhooksGetEndpointResponse, fx as WebhooksListEndpointsError, fy as WebhooksListEndpointsResponse, fz as WebhooksListEventTypesError, fA as WebhooksListEventTypesResponse, fB as WebhooksPingError, fC as WebhooksPingResponse, fD as WebhooksUpdateEndpointError, fE as WebhooksUpdateEndpointResponse, fF as createPostrunClient } from './types.gen-DGCs7eB8.cjs';
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 ProfilesCreateData, cs as ProfilesCreateResponses, ct as ProfilesCreateErrors, cu as ProfilesDeleteData, cv as ProfilesDeleteResponses, cw as ProfilesDeleteErrors, cx as ProfilesGetData, cy as ProfilesGetResponses, cz as ProfilesGetErrors, cA as ProfilesListData, cB as ProfilesListResponses, cC as ProfilesListErrors, cD as ProfilesUpdateData, cE as ProfilesUpdateResponses, cF as ProfilesUpdateErrors, cG as TokensMintData, cH as TokensMintResponses, cI as TokensMintErrors, cJ as WebhooksCreateEndpointData, cK as WebhooksCreateEndpointResponses, cL as WebhooksCreateEndpointErrors, cM as WebhooksCreatePortalData, cN as WebhooksCreatePortalResponses, cO as WebhooksCreatePortalErrors, cP as WebhooksDeleteEndpointData, cQ as WebhooksDeleteEndpointResponses, cR as WebhooksDeleteEndpointErrors, cS as WebhooksGetEndpointData, cT as WebhooksGetEndpointResponses, cU as WebhooksGetEndpointErrors, cV as WebhooksListEndpointsData, cW as WebhooksListEndpointsResponses, cX as WebhooksListEndpointsErrors, cY as WebhooksListEventTypesData, cZ as WebhooksListEventTypesResponses, c_ as WebhooksListEventTypesErrors, c$ as WebhooksPingData, d0 as WebhooksPingResponses, d1 as WebhooksPingErrors, d2 as WebhooksUpdateEndpointData, d3 as WebhooksUpdateEndpointResponses, d4 as WebhooksUpdateEndpointErrors, d5 as ErrorCode, d6 as MediaGetResponse, d7 as ConnectionsConnectResponse, d8 as ConnectionsGetResponse, d9 as ConnectionsListByProfileResponse, da as MediaCreateResponse, db as ConnectionsListAccountsResponse, dc as MediaListResponse, dd as PostsGetResponse, de as PostsListResponse, df as ProfilesGetResponse, dg as ProfilesListResponse } from './types.gen-BHE-5ice.cjs';
2
+ export { dh as ClientOptions, di as ConnectionsConnectError, dj as ConnectionsDeleteError, dk as ConnectionsDeleteResponse, dl as ConnectionsGetError, dm as ConnectionsListAccountsError, dn as ConnectionsListByProfileError, dp as ConnectionsSelectError, dq as ConnectionsSelectResponse, dr as GoogleCreateAdError, ds as GoogleCreateAdGroupError, dt as GoogleCreateAdGroupResponse, du as GoogleCreateAdResponse, dv as GoogleCreateBudgetError, dw as GoogleCreateBudgetResponse, dx as GoogleCreateCampaignError, dy as GoogleCreateCampaignResponse, dz as GoogleCreateConversionActionError, dA as GoogleCreateConversionActionResponse, dB as GoogleCreateDisplayAdError, dC as GoogleCreateDisplayAdResponse, dD as GoogleCreateKeywordError, dE as GoogleCreateKeywordResponse, dF as GoogleDeleteAdError, dG as GoogleDeleteAdGroupError, dH as GoogleDeleteAdGroupResponse, dI as GoogleDeleteAdResponse, dJ as GoogleDeleteBudgetError, dK as GoogleDeleteBudgetResponse, dL as GoogleDeleteCampaignError, dM as GoogleDeleteCampaignResponse, dN as GoogleDeleteKeywordError, dO as GoogleDeleteKeywordResponse, dP as GoogleEditAdGroupError, dQ as GoogleEditAdGroupResponse, dR as GoogleEditBudgetError, dS as GoogleEditBudgetResponse, dT as GoogleEditCampaignError, dU as GoogleEditCampaignResponse, dV as GoogleEnableAdError, dW as GoogleEnableAdGroupError, dX as GoogleEnableAdGroupResponse, dY as GoogleEnableAdResponse, dZ as GoogleEnableCampaignError, d_ as GoogleEnableCampaignResponse, d$ as GoogleEnableKeywordError, e0 as GoogleEnableKeywordResponse, e1 as GoogleGetAccountError, e2 as GoogleGetAccountResponse, e3 as GoogleGetAdError, e4 as GoogleGetAdGroupError, e5 as GoogleGetAdGroupResponse, e6 as GoogleGetAdResponse, e7 as GoogleGetCampaignError, e8 as GoogleGetCampaignResponse, e9 as GoogleGetConversionActionError, ea as GoogleGetConversionActionResponse, eb as GoogleGetInsightsError, ec as GoogleGetInsightsResponse, ed as GoogleGetKeywordError, ee as GoogleGetKeywordResponse, ef as GoogleListAdGroupsError, eg as GoogleListAdGroupsResponse, eh as GoogleListAdsError, ei as GoogleListAdsResponse, ej as GoogleListCampaignsError, ek as GoogleListCampaignsResponse, el as GoogleListConversionActionsError, em as GoogleListConversionActionsResponse, en as GoogleListConversionGoalsError, eo as GoogleListConversionGoalsResponse, ep as GoogleListKeywordsError, eq as GoogleListKeywordsResponse, er as GooglePauseAdError, es as GooglePauseAdGroupError, et as GooglePauseAdGroupResponse, eu as GooglePauseAdResponse, ev as GooglePauseCampaignError, ew as GooglePauseCampaignResponse, ex as GooglePauseKeywordError, ey as GooglePauseKeywordResponse, ez as GoogleRunGaqlError, eA as GoogleRunGaqlResponse, eB as GoogleSetAdGroupBidsError, eC as GoogleSetAdGroupBidsResponse, eD as GoogleSetConversionGoalError, eE as GoogleSetConversionGoalResponse, eF as GoogleSetKeywordBidError, eG as GoogleSetKeywordBidResponse, eH as GoogleUploadConversionsError, eI as GoogleUploadConversionsResponse, eJ as GoogleUploadImageAssetError, eK as GoogleUploadImageAssetResponse, eL as LogsGetError, eM as LogsGetResponse, eN as LogsListError, eO as LogsListResponse, eP as MediaCreateError, eQ as MediaDeleteError, eR as MediaDeleteResponse, eS as MediaGetError, eT as MediaListError, eU as MediaUpdateError, eV as MediaUpdateResponse, eW as MetaAccountError, eX as MetaAccountResponse, eY as MetaAdError, eZ as MetaAdResponse, e_ as MetaAdsError, e$ as MetaAdsResponse, f0 as MetaAdsetError, f1 as MetaAdsetResponse, f2 as MetaAdsetsError, f3 as MetaAdsetsResponse, f4 as MetaCampaignError, f5 as MetaCampaignResponse, f6 as MetaCampaignsError, f7 as MetaCampaignsResponse, f8 as MetaInsightsError, f9 as MetaInsightsResponse, fa as PostrunClient, fb as PostrunClientOptions, fc as PostsCreateError, fd as PostsCreateResponse, fe as PostsDeleteError, ff as PostsDeleteResponse, fg as PostsGetError, fh as PostsListError, fi as PostsUpdateError, fj as PostsUpdateResponse, fk as ProfilesCreateError, fl as ProfilesCreateResponse, fm as ProfilesDeleteError, fn as ProfilesDeleteResponse, fo as ProfilesGetError, fp as ProfilesListError, fq as ProfilesUpdateError, fr as ProfilesUpdateResponse, fs as TokensMintError, ft as TokensMintResponse, fu as WebhooksCreateEndpointError, fv as WebhooksCreateEndpointResponse, fw as WebhooksCreatePortalError, fx as WebhooksCreatePortalResponse, fy as WebhooksDeleteEndpointError, fz as WebhooksDeleteEndpointResponse, fA as WebhooksGetEndpointError, fB as WebhooksGetEndpointResponse, fC as WebhooksListEndpointsError, fD as WebhooksListEndpointsResponse, fE as WebhooksListEventTypesError, fF as WebhooksListEventTypesResponse, fG as WebhooksPingError, fH as WebhooksPingResponse, fI as WebhooksUpdateEndpointError, fJ as WebhooksUpdateEndpointResponse, fK as createPostrunClient } from './types.gen-BHE-5ice.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> & {
@@ -36,7 +36,7 @@ declare const profilesCreate: <ThrowOnError extends boolean = true>(options: Opt
36
36
  *
37
37
  * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `profiles:write` scoped to the target profile.
38
38
  *
39
- * Deletes a profile. The profile must have no connections — delete its connections first.
39
+ * Deletes a profile. The profile must have no connections — delete its connections first (and a connection in turn cannot be deleted while a post still publishes through it).
40
40
  */
41
41
  declare const profilesDelete: <ThrowOnError extends boolean = true>(options: Options<ProfilesDeleteData, ThrowOnError>) => RequestResult<ProfilesDeleteResponses, ProfilesDeleteErrors, ThrowOnError>;
42
42
  /**
@@ -68,7 +68,7 @@ declare const connectionsListByProfile: <ThrowOnError extends boolean = true>(op
68
68
  *
69
69
  * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `connections:write` scoped to the profile that owns the connection.
70
70
  *
71
- * Deletes a connection. Returns a deletion marker; returns 404 if it does not exist in your account.
71
+ * Deletes a connection. Returns a deletion marker; returns 404 if it does not exist in your account, and 409 if one or more posts still publish through it (delete those posts first).
72
72
  */
73
73
  declare const connectionsDelete: <ThrowOnError extends boolean = true>(options: Options<ConnectionsDeleteData, ThrowOnError>) => RequestResult<ConnectionsDeleteResponses, ConnectionsDeleteErrors, ThrowOnError>;
74
74
  /**
@@ -103,12 +103,20 @@ declare const connectionsListAccounts: <ThrowOnError extends boolean = true>(opt
103
103
  * Starts an OAuth connect flow for a platform on this profile. Returns a short-lived session the client uses to authorize; the connection is created once authorization succeeds.
104
104
  */
105
105
  declare const connectionsConnect: <ThrowOnError extends boolean = true>(options: Options<ConnectionsConnectData, ThrowOnError>) => RequestResult<ConnectionsConnectResponses, ConnectionsConnectErrors, ThrowOnError>;
106
+ /**
107
+ * List media
108
+ *
109
+ * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `media:read` (the response is limited to the profiles the token is scoped to).
110
+ *
111
+ * Lists the media assets under your account, newest first. Filter by profile, status, kind, your own external_id, or metadata.
112
+ */
113
+ declare const mediaList: <ThrowOnError extends boolean = true>(options?: Options<MediaListData, ThrowOnError>) => RequestResult<MediaListResponses, MediaListErrors, ThrowOnError>;
106
114
  /**
107
115
  * Upload media
108
116
  *
109
117
  * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `media:write` scoped to the target profile.
110
118
  *
111
- * Creates a media asset and returns a signed direct upload target (PUT the bytes from the browser). `source_url` is reserved/unsupported in v1 supplying it returns SOURCE_URL_UNSUPPORTED.
119
+ * Creates a media asset. Two ways to supply the bytes: (1) omit `source_url` and PUT the bytes to the returned signed upload target (the direct-upload path; `upload` is non-null), or (2) supply a public `https` `source_url` and we fetch the bytes server-side, validate, transform, and store them (the import path; `upload` is null). Either way the asset settles through the same probe/transform flow.
112
120
  */
113
121
  declare const mediaCreate: <ThrowOnError extends boolean = true>(options: Options<MediaCreateData, ThrowOnError>) => RequestResult<MediaCreateResponses, MediaCreateErrors, ThrowOnError>;
114
122
  /**
@@ -732,6 +740,12 @@ type UpdateProfileInput = NonNullable<ProfilesUpdateData['body']>;
732
740
  type Connection = ConnectionsGetResponse;
733
741
  /** A page of a profile's connections. */
734
742
  type ConnectionList = ConnectionsListByProfileResponse;
743
+ /** Query filters for listing a profile's connections (kind / status / pagination). */
744
+ type ListConnectionsQuery = NonNullable<ConnectionsListByProfileData['query']>;
745
+ /** A connection's kind — `posting` (social) or `ads`. From the contract. */
746
+ type ConnectionKind = NonNullable<ListConnectionsQuery['kind']>;
747
+ /** A connection's lifecycle status — `pending` / `active` / `needs_reauth`. */
748
+ type ConnectionStatus = NonNullable<ListConnectionsQuery['status']>;
735
749
  /** The session returned when starting a connect (OAuth) flow. */
736
750
  type ConnectSession = ConnectionsConnectResponse;
737
751
  /** A platform a connection can start an OAuth connect flow for. */
@@ -793,8 +807,13 @@ type PublishMode = NonNullable<CreatePostBody['publish']>;
793
807
  type PostMetadata = NonNullable<CreatePostBody['metadata']>;
794
808
  /** A media asset (image/video/gif/document) with its per-platform renditions. */
795
809
  type MediaResource = MediaGetResponse;
796
- /** A media asset's kind (image / video / gif / document), from the contract. */
797
- type MediaKind = MediaResource['kind'];
810
+ /**
811
+ * A media asset's kind (image / video / gif / document), from the contract. The
812
+ * resource's `kind` is nullable only in the transient pre-detection `uploading`
813
+ * window; this is the concrete family, so it strips that null — what you pass to
814
+ * create/upload and switch over on a settled asset.
815
+ */
816
+ type MediaKind = NonNullable<MediaResource['kind']>;
798
817
  /** A media render target — a post platform or `google_ads`. */
799
818
  type MediaTarget = NonNullable<NonNullable<MediaCreateData['body']>['targets']>[number];
800
819
  /** The create-media response: the resource plus a signed upload target. */
@@ -805,6 +824,31 @@ type UploadTarget = NonNullable<CreateMediaResult['upload']>;
805
824
  type CreateMediaInput = NonNullable<MediaCreateData['body']>;
806
825
  /** Request body to update a media asset (alt text / metadata / extend targets). */
807
826
  type UpdateMediaInput = NonNullable<MediaUpdateData['body']>;
827
+ /** A page of media assets (the list envelope). */
828
+ type MediaList = MediaListResponse;
829
+ /** Query parameters for listing media (filters + pagination). */
830
+ type ListMediaQuery = NonNullable<MediaListData['query']>;
831
+ /**
832
+ * A media asset's lifecycle state — the values the list `status` filter accepts
833
+ * (uploading / processing / ready / failed). From the contract, never hand-listed.
834
+ */
835
+ type MediaStatus = NonNullable<ListMediaQuery['status']>;
836
+ /**
837
+ * Customer metadata — a flat scalar map (`string | number | boolean`; ≤50 keys,
838
+ * keys ≤40 chars, ≤500-char strings, 16 KiB serialized). The contract uses this
839
+ * SAME shape on every stored resource (profiles / posts / media); this alias is
840
+ * derived from the media write body as a stable representative, so it's the type
841
+ * to annotate metadata you send — never `Record<string, unknown>`. (The three
842
+ * resources share one structural shape in the spec; were the API ever to diverge
843
+ * one, prefer that resource's own `*['metadata']` for it.)
844
+ */
845
+ type Metadata = NonNullable<CreateMediaInput['metadata']>;
846
+ /**
847
+ * A metadata filter for list endpoints — the same scalar map, matched by exact
848
+ * containment (multiple keys ANDed; omit for no filter). Pass the object directly
849
+ * from the SDK/React hooks; the client URL-encodes it for the REST query.
850
+ */
851
+ type MetadataFilter = NonNullable<ListMediaQuery['metadata']>;
808
852
 
809
853
  /** A media attachment — the uploaded asset (or just its id + kind). */
810
854
  type MediaInput = Pick<MediaResource, 'id' | 'kind'>;
@@ -879,4 +923,4 @@ declare function buildCreatePost(input: ComposePostInput, connections: readonly
879
923
  */
880
924
  declare function buildUpdatePost(input: ComposeUpdateInput, connections?: readonly ConnectionRef[]): UpdatePostInput;
881
925
 
882
- export { type ChannelConfig, type Channels, ComposeError, type ComposePostInput, type ComposeUpdateInput, type ConnectSession, type ConnectablePlatform, type Connection, type ConnectionList, type ConnectionRef, 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 LinkedInPostVariant, 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 MediaResource, 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 Options, POST_PLATFORMS, type Post, type PostContent, type PostList, type PostMetadata, type PostPlatform, type PostStatus, type PostTypeFor, 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, 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, TokensMintData, TokensMintErrors, TokensMintResponses, type UpdateMediaInput, type UpdatePostInput, type UpdateProfileInput, type UploadTarget, 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 XPostVariant, buildCreatePost, buildUpdatePost, connectionsConnect, connectionsDelete, connectionsGet, connectionsListAccounts, connectionsListByProfile, connectionsSelect, 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, isPostPlatform, logsGet, logsList, mediaCreate, mediaDelete, mediaGet, mediaUpdate, metaAccount, metaAd, metaAds, metaAdset, metaAdsets, metaCampaign, metaCampaigns, metaInsights, postsCreate, postsDelete, postsGet, postsList, postsUpdate, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, tokensMint, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint };
926
+ 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 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 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, 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, TokensMintData, TokensMintErrors, TokensMintResponses, type UpdateMediaInput, type UpdatePostInput, type UpdateProfileInput, type UploadTarget, 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 XPostVariant, buildCreatePost, buildUpdatePost, connectionsConnect, connectionsDelete, connectionsGet, connectionsListAccounts, connectionsListByProfile, connectionsSelect, 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, isPostPlatform, logsGet, logsList, mediaCreate, mediaDelete, mediaGet, mediaList, mediaUpdate, metaAccount, metaAd, metaAds, metaAdset, metaAdsets, metaCampaign, metaCampaigns, metaInsights, postsCreate, postsDelete, postsGet, postsList, postsUpdate, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, tokensMint, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint };
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 MediaUpdateData, bL as MediaUpdateResponses, bM as MediaUpdateErrors, bN as MetaAccountData, bO as MetaAccountResponses, bP as MetaAccountErrors, bQ as MetaAdData, bR as MetaAdResponses, bS as MetaAdErrors, bT as MetaAdsData, bU as MetaAdsResponses, bV as MetaAdsErrors, bW as MetaAdsetData, bX as MetaAdsetResponses, bY as MetaAdsetErrors, bZ as MetaAdsetsData, b_ as MetaAdsetsResponses, b$ as MetaAdsetsErrors, c0 as MetaCampaignData, c1 as MetaCampaignResponses, c2 as MetaCampaignErrors, c3 as MetaCampaignsData, c4 as MetaCampaignsResponses, c5 as MetaCampaignsErrors, c6 as MetaInsightsData, c7 as MetaInsightsResponses, c8 as MetaInsightsErrors, c9 as PostsCreateData, ca as PostsCreateResponses, cb as PostsCreateErrors, cc as PostsDeleteData, cd as PostsDeleteResponses, ce as PostsDeleteErrors, cf as PostsGetData, cg as PostsGetResponses, ch as PostsGetErrors, ci as PostsListData, cj as PostsListResponses, ck as PostsListErrors, cl as PostsUpdateData, cm as PostsUpdateResponses, cn as PostsUpdateErrors, co as ProfilesCreateData, cp as ProfilesCreateResponses, cq as ProfilesCreateErrors, cr as ProfilesDeleteData, cs as ProfilesDeleteResponses, ct as ProfilesDeleteErrors, cu as ProfilesGetData, cv as ProfilesGetResponses, cw as ProfilesGetErrors, cx as ProfilesListData, cy as ProfilesListResponses, cz as ProfilesListErrors, cA as ProfilesUpdateData, cB as ProfilesUpdateResponses, cC as ProfilesUpdateErrors, cD as TokensMintData, cE as TokensMintResponses, cF as TokensMintErrors, cG as WebhooksCreateEndpointData, cH as WebhooksCreateEndpointResponses, cI as WebhooksCreateEndpointErrors, cJ as WebhooksCreatePortalData, cK as WebhooksCreatePortalResponses, cL as WebhooksCreatePortalErrors, cM as WebhooksDeleteEndpointData, cN as WebhooksDeleteEndpointResponses, cO as WebhooksDeleteEndpointErrors, cP as WebhooksGetEndpointData, cQ as WebhooksGetEndpointResponses, cR as WebhooksGetEndpointErrors, cS as WebhooksListEndpointsData, cT as WebhooksListEndpointsResponses, cU as WebhooksListEndpointsErrors, cV as WebhooksListEventTypesData, cW as WebhooksListEventTypesResponses, cX as WebhooksListEventTypesErrors, cY as WebhooksPingData, cZ as WebhooksPingResponses, c_ as WebhooksPingErrors, c$ as WebhooksUpdateEndpointData, d0 as WebhooksUpdateEndpointResponses, d1 as WebhooksUpdateEndpointErrors, d2 as ErrorCode, d3 as MediaGetResponse, d4 as ConnectionsConnectResponse, d5 as ConnectionsGetResponse, d6 as ConnectionsListByProfileResponse, d7 as MediaCreateResponse, d8 as ConnectionsListAccountsResponse, d9 as PostsGetResponse, da as PostsListResponse, db as ProfilesGetResponse, dc as ProfilesListResponse } from './types.gen-DGCs7eB8.js';
2
- export { dd as ClientOptions, de as ConnectionsConnectError, df as ConnectionsDeleteError, dg as ConnectionsDeleteResponse, dh as ConnectionsGetError, di as ConnectionsListAccountsError, dj as ConnectionsListByProfileError, dk as ConnectionsSelectError, dl as ConnectionsSelectResponse, dm as GoogleCreateAdError, dn as GoogleCreateAdGroupError, dp as GoogleCreateAdGroupResponse, dq as GoogleCreateAdResponse, dr as GoogleCreateBudgetError, ds as GoogleCreateBudgetResponse, dt as GoogleCreateCampaignError, du as GoogleCreateCampaignResponse, dv as GoogleCreateConversionActionError, dw as GoogleCreateConversionActionResponse, dx as GoogleCreateDisplayAdError, dy as GoogleCreateDisplayAdResponse, dz as GoogleCreateKeywordError, dA as GoogleCreateKeywordResponse, dB as GoogleDeleteAdError, dC as GoogleDeleteAdGroupError, dD as GoogleDeleteAdGroupResponse, dE as GoogleDeleteAdResponse, dF as GoogleDeleteBudgetError, dG as GoogleDeleteBudgetResponse, dH as GoogleDeleteCampaignError, dI as GoogleDeleteCampaignResponse, dJ as GoogleDeleteKeywordError, dK as GoogleDeleteKeywordResponse, dL as GoogleEditAdGroupError, dM as GoogleEditAdGroupResponse, dN as GoogleEditBudgetError, dO as GoogleEditBudgetResponse, dP as GoogleEditCampaignError, dQ as GoogleEditCampaignResponse, dR as GoogleEnableAdError, dS as GoogleEnableAdGroupError, dT as GoogleEnableAdGroupResponse, dU as GoogleEnableAdResponse, dV as GoogleEnableCampaignError, dW as GoogleEnableCampaignResponse, dX as GoogleEnableKeywordError, dY as GoogleEnableKeywordResponse, dZ as GoogleGetAccountError, d_ as GoogleGetAccountResponse, d$ as GoogleGetAdError, e0 as GoogleGetAdGroupError, e1 as GoogleGetAdGroupResponse, e2 as GoogleGetAdResponse, e3 as GoogleGetCampaignError, e4 as GoogleGetCampaignResponse, e5 as GoogleGetConversionActionError, e6 as GoogleGetConversionActionResponse, e7 as GoogleGetInsightsError, e8 as GoogleGetInsightsResponse, e9 as GoogleGetKeywordError, ea as GoogleGetKeywordResponse, eb as GoogleListAdGroupsError, ec as GoogleListAdGroupsResponse, ed as GoogleListAdsError, ee as GoogleListAdsResponse, ef as GoogleListCampaignsError, eg as GoogleListCampaignsResponse, eh as GoogleListConversionActionsError, ei as GoogleListConversionActionsResponse, ej as GoogleListConversionGoalsError, ek as GoogleListConversionGoalsResponse, el as GoogleListKeywordsError, em as GoogleListKeywordsResponse, en as GooglePauseAdError, eo as GooglePauseAdGroupError, ep as GooglePauseAdGroupResponse, eq as GooglePauseAdResponse, er as GooglePauseCampaignError, es as GooglePauseCampaignResponse, et as GooglePauseKeywordError, eu as GooglePauseKeywordResponse, ev as GoogleRunGaqlError, ew as GoogleRunGaqlResponse, ex as GoogleSetAdGroupBidsError, ey as GoogleSetAdGroupBidsResponse, ez as GoogleSetConversionGoalError, eA as GoogleSetConversionGoalResponse, eB as GoogleSetKeywordBidError, eC as GoogleSetKeywordBidResponse, eD as GoogleUploadConversionsError, eE as GoogleUploadConversionsResponse, eF as GoogleUploadImageAssetError, eG as GoogleUploadImageAssetResponse, eH as LogsGetError, eI as LogsGetResponse, eJ as LogsListError, eK as LogsListResponse, eL as MediaCreateError, eM as MediaDeleteError, eN as MediaDeleteResponse, eO as MediaGetError, eP as MediaUpdateError, eQ as MediaUpdateResponse, eR as MetaAccountError, eS as MetaAccountResponse, eT as MetaAdError, eU as MetaAdResponse, eV as MetaAdsError, eW as MetaAdsResponse, eX as MetaAdsetError, eY as MetaAdsetResponse, eZ as MetaAdsetsError, e_ as MetaAdsetsResponse, e$ as MetaCampaignError, f0 as MetaCampaignResponse, f1 as MetaCampaignsError, f2 as MetaCampaignsResponse, f3 as MetaInsightsError, f4 as MetaInsightsResponse, f5 as PostrunClient, f6 as PostrunClientOptions, f7 as PostsCreateError, f8 as PostsCreateResponse, f9 as PostsDeleteError, fa as PostsDeleteResponse, fb as PostsGetError, fc as PostsListError, fd as PostsUpdateError, fe as PostsUpdateResponse, ff as ProfilesCreateError, fg as ProfilesCreateResponse, fh as ProfilesDeleteError, fi as ProfilesDeleteResponse, fj as ProfilesGetError, fk as ProfilesListError, fl as ProfilesUpdateError, fm as ProfilesUpdateResponse, fn as TokensMintError, fo as TokensMintResponse, fp as WebhooksCreateEndpointError, fq as WebhooksCreateEndpointResponse, fr as WebhooksCreatePortalError, fs as WebhooksCreatePortalResponse, ft as WebhooksDeleteEndpointError, fu as WebhooksDeleteEndpointResponse, fv as WebhooksGetEndpointError, fw as WebhooksGetEndpointResponse, fx as WebhooksListEndpointsError, fy as WebhooksListEndpointsResponse, fz as WebhooksListEventTypesError, fA as WebhooksListEventTypesResponse, fB as WebhooksPingError, fC as WebhooksPingResponse, fD as WebhooksUpdateEndpointError, fE as WebhooksUpdateEndpointResponse, fF as createPostrunClient } from './types.gen-DGCs7eB8.js';
1
+ import { T as TDataShape, O as Options$1, C as Client, a as ClientMeta, b as ConnectionsConnectData, R as RequestResult, c as ConnectionsConnectResponses, d as ConnectionsConnectErrors, e as ConnectionsDeleteData, f as ConnectionsDeleteResponses, g as ConnectionsDeleteErrors, h as ConnectionsGetData, i as ConnectionsGetResponses, j as ConnectionsGetErrors, k as ConnectionsListAccountsData, l as ConnectionsListAccountsResponses, m as ConnectionsListAccountsErrors, n as ConnectionsListByProfileData, o as ConnectionsListByProfileResponses, p as ConnectionsListByProfileErrors, q as ConnectionsSelectData, r as ConnectionsSelectResponses, s as ConnectionsSelectErrors, 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 ProfilesCreateData, cs as ProfilesCreateResponses, ct as ProfilesCreateErrors, cu as ProfilesDeleteData, cv as ProfilesDeleteResponses, cw as ProfilesDeleteErrors, cx as ProfilesGetData, cy as ProfilesGetResponses, cz as ProfilesGetErrors, cA as ProfilesListData, cB as ProfilesListResponses, cC as ProfilesListErrors, cD as ProfilesUpdateData, cE as ProfilesUpdateResponses, cF as ProfilesUpdateErrors, cG as TokensMintData, cH as TokensMintResponses, cI as TokensMintErrors, cJ as WebhooksCreateEndpointData, cK as WebhooksCreateEndpointResponses, cL as WebhooksCreateEndpointErrors, cM as WebhooksCreatePortalData, cN as WebhooksCreatePortalResponses, cO as WebhooksCreatePortalErrors, cP as WebhooksDeleteEndpointData, cQ as WebhooksDeleteEndpointResponses, cR as WebhooksDeleteEndpointErrors, cS as WebhooksGetEndpointData, cT as WebhooksGetEndpointResponses, cU as WebhooksGetEndpointErrors, cV as WebhooksListEndpointsData, cW as WebhooksListEndpointsResponses, cX as WebhooksListEndpointsErrors, cY as WebhooksListEventTypesData, cZ as WebhooksListEventTypesResponses, c_ as WebhooksListEventTypesErrors, c$ as WebhooksPingData, d0 as WebhooksPingResponses, d1 as WebhooksPingErrors, d2 as WebhooksUpdateEndpointData, d3 as WebhooksUpdateEndpointResponses, d4 as WebhooksUpdateEndpointErrors, d5 as ErrorCode, d6 as MediaGetResponse, d7 as ConnectionsConnectResponse, d8 as ConnectionsGetResponse, d9 as ConnectionsListByProfileResponse, da as MediaCreateResponse, db as ConnectionsListAccountsResponse, dc as MediaListResponse, dd as PostsGetResponse, de as PostsListResponse, df as ProfilesGetResponse, dg as ProfilesListResponse } from './types.gen-BHE-5ice.js';
2
+ export { dh as ClientOptions, di as ConnectionsConnectError, dj as ConnectionsDeleteError, dk as ConnectionsDeleteResponse, dl as ConnectionsGetError, dm as ConnectionsListAccountsError, dn as ConnectionsListByProfileError, dp as ConnectionsSelectError, dq as ConnectionsSelectResponse, dr as GoogleCreateAdError, ds as GoogleCreateAdGroupError, dt as GoogleCreateAdGroupResponse, du as GoogleCreateAdResponse, dv as GoogleCreateBudgetError, dw as GoogleCreateBudgetResponse, dx as GoogleCreateCampaignError, dy as GoogleCreateCampaignResponse, dz as GoogleCreateConversionActionError, dA as GoogleCreateConversionActionResponse, dB as GoogleCreateDisplayAdError, dC as GoogleCreateDisplayAdResponse, dD as GoogleCreateKeywordError, dE as GoogleCreateKeywordResponse, dF as GoogleDeleteAdError, dG as GoogleDeleteAdGroupError, dH as GoogleDeleteAdGroupResponse, dI as GoogleDeleteAdResponse, dJ as GoogleDeleteBudgetError, dK as GoogleDeleteBudgetResponse, dL as GoogleDeleteCampaignError, dM as GoogleDeleteCampaignResponse, dN as GoogleDeleteKeywordError, dO as GoogleDeleteKeywordResponse, dP as GoogleEditAdGroupError, dQ as GoogleEditAdGroupResponse, dR as GoogleEditBudgetError, dS as GoogleEditBudgetResponse, dT as GoogleEditCampaignError, dU as GoogleEditCampaignResponse, dV as GoogleEnableAdError, dW as GoogleEnableAdGroupError, dX as GoogleEnableAdGroupResponse, dY as GoogleEnableAdResponse, dZ as GoogleEnableCampaignError, d_ as GoogleEnableCampaignResponse, d$ as GoogleEnableKeywordError, e0 as GoogleEnableKeywordResponse, e1 as GoogleGetAccountError, e2 as GoogleGetAccountResponse, e3 as GoogleGetAdError, e4 as GoogleGetAdGroupError, e5 as GoogleGetAdGroupResponse, e6 as GoogleGetAdResponse, e7 as GoogleGetCampaignError, e8 as GoogleGetCampaignResponse, e9 as GoogleGetConversionActionError, ea as GoogleGetConversionActionResponse, eb as GoogleGetInsightsError, ec as GoogleGetInsightsResponse, ed as GoogleGetKeywordError, ee as GoogleGetKeywordResponse, ef as GoogleListAdGroupsError, eg as GoogleListAdGroupsResponse, eh as GoogleListAdsError, ei as GoogleListAdsResponse, ej as GoogleListCampaignsError, ek as GoogleListCampaignsResponse, el as GoogleListConversionActionsError, em as GoogleListConversionActionsResponse, en as GoogleListConversionGoalsError, eo as GoogleListConversionGoalsResponse, ep as GoogleListKeywordsError, eq as GoogleListKeywordsResponse, er as GooglePauseAdError, es as GooglePauseAdGroupError, et as GooglePauseAdGroupResponse, eu as GooglePauseAdResponse, ev as GooglePauseCampaignError, ew as GooglePauseCampaignResponse, ex as GooglePauseKeywordError, ey as GooglePauseKeywordResponse, ez as GoogleRunGaqlError, eA as GoogleRunGaqlResponse, eB as GoogleSetAdGroupBidsError, eC as GoogleSetAdGroupBidsResponse, eD as GoogleSetConversionGoalError, eE as GoogleSetConversionGoalResponse, eF as GoogleSetKeywordBidError, eG as GoogleSetKeywordBidResponse, eH as GoogleUploadConversionsError, eI as GoogleUploadConversionsResponse, eJ as GoogleUploadImageAssetError, eK as GoogleUploadImageAssetResponse, eL as LogsGetError, eM as LogsGetResponse, eN as LogsListError, eO as LogsListResponse, eP as MediaCreateError, eQ as MediaDeleteError, eR as MediaDeleteResponse, eS as MediaGetError, eT as MediaListError, eU as MediaUpdateError, eV as MediaUpdateResponse, eW as MetaAccountError, eX as MetaAccountResponse, eY as MetaAdError, eZ as MetaAdResponse, e_ as MetaAdsError, e$ as MetaAdsResponse, f0 as MetaAdsetError, f1 as MetaAdsetResponse, f2 as MetaAdsetsError, f3 as MetaAdsetsResponse, f4 as MetaCampaignError, f5 as MetaCampaignResponse, f6 as MetaCampaignsError, f7 as MetaCampaignsResponse, f8 as MetaInsightsError, f9 as MetaInsightsResponse, fa as PostrunClient, fb as PostrunClientOptions, fc as PostsCreateError, fd as PostsCreateResponse, fe as PostsDeleteError, ff as PostsDeleteResponse, fg as PostsGetError, fh as PostsListError, fi as PostsUpdateError, fj as PostsUpdateResponse, fk as ProfilesCreateError, fl as ProfilesCreateResponse, fm as ProfilesDeleteError, fn as ProfilesDeleteResponse, fo as ProfilesGetError, fp as ProfilesListError, fq as ProfilesUpdateError, fr as ProfilesUpdateResponse, fs as TokensMintError, ft as TokensMintResponse, fu as WebhooksCreateEndpointError, fv as WebhooksCreateEndpointResponse, fw as WebhooksCreatePortalError, fx as WebhooksCreatePortalResponse, fy as WebhooksDeleteEndpointError, fz as WebhooksDeleteEndpointResponse, fA as WebhooksGetEndpointError, fB as WebhooksGetEndpointResponse, fC as WebhooksListEndpointsError, fD as WebhooksListEndpointsResponse, fE as WebhooksListEventTypesError, fF as WebhooksListEventTypesResponse, fG as WebhooksPingError, fH as WebhooksPingResponse, fI as WebhooksUpdateEndpointError, fJ as WebhooksUpdateEndpointResponse, fK as createPostrunClient } from './types.gen-BHE-5ice.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> & {
@@ -36,7 +36,7 @@ declare const profilesCreate: <ThrowOnError extends boolean = true>(options: Opt
36
36
  *
37
37
  * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `profiles:write` scoped to the target profile.
38
38
  *
39
- * Deletes a profile. The profile must have no connections — delete its connections first.
39
+ * Deletes a profile. The profile must have no connections — delete its connections first (and a connection in turn cannot be deleted while a post still publishes through it).
40
40
  */
41
41
  declare const profilesDelete: <ThrowOnError extends boolean = true>(options: Options<ProfilesDeleteData, ThrowOnError>) => RequestResult<ProfilesDeleteResponses, ProfilesDeleteErrors, ThrowOnError>;
42
42
  /**
@@ -68,7 +68,7 @@ declare const connectionsListByProfile: <ThrowOnError extends boolean = true>(op
68
68
  *
69
69
  * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `connections:write` scoped to the profile that owns the connection.
70
70
  *
71
- * Deletes a connection. Returns a deletion marker; returns 404 if it does not exist in your account.
71
+ * Deletes a connection. Returns a deletion marker; returns 404 if it does not exist in your account, and 409 if one or more posts still publish through it (delete those posts first).
72
72
  */
73
73
  declare const connectionsDelete: <ThrowOnError extends boolean = true>(options: Options<ConnectionsDeleteData, ThrowOnError>) => RequestResult<ConnectionsDeleteResponses, ConnectionsDeleteErrors, ThrowOnError>;
74
74
  /**
@@ -103,12 +103,20 @@ declare const connectionsListAccounts: <ThrowOnError extends boolean = true>(opt
103
103
  * Starts an OAuth connect flow for a platform on this profile. Returns a short-lived session the client uses to authorize; the connection is created once authorization succeeds.
104
104
  */
105
105
  declare const connectionsConnect: <ThrowOnError extends boolean = true>(options: Options<ConnectionsConnectData, ThrowOnError>) => RequestResult<ConnectionsConnectResponses, ConnectionsConnectErrors, ThrowOnError>;
106
+ /**
107
+ * List media
108
+ *
109
+ * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `media:read` (the response is limited to the profiles the token is scoped to).
110
+ *
111
+ * Lists the media assets under your account, newest first. Filter by profile, status, kind, your own external_id, or metadata.
112
+ */
113
+ declare const mediaList: <ThrowOnError extends boolean = true>(options?: Options<MediaListData, ThrowOnError>) => RequestResult<MediaListResponses, MediaListErrors, ThrowOnError>;
106
114
  /**
107
115
  * Upload media
108
116
  *
109
117
  * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `media:write` scoped to the target profile.
110
118
  *
111
- * Creates a media asset and returns a signed direct upload target (PUT the bytes from the browser). `source_url` is reserved/unsupported in v1 supplying it returns SOURCE_URL_UNSUPPORTED.
119
+ * Creates a media asset. Two ways to supply the bytes: (1) omit `source_url` and PUT the bytes to the returned signed upload target (the direct-upload path; `upload` is non-null), or (2) supply a public `https` `source_url` and we fetch the bytes server-side, validate, transform, and store them (the import path; `upload` is null). Either way the asset settles through the same probe/transform flow.
112
120
  */
113
121
  declare const mediaCreate: <ThrowOnError extends boolean = true>(options: Options<MediaCreateData, ThrowOnError>) => RequestResult<MediaCreateResponses, MediaCreateErrors, ThrowOnError>;
114
122
  /**
@@ -732,6 +740,12 @@ type UpdateProfileInput = NonNullable<ProfilesUpdateData['body']>;
732
740
  type Connection = ConnectionsGetResponse;
733
741
  /** A page of a profile's connections. */
734
742
  type ConnectionList = ConnectionsListByProfileResponse;
743
+ /** Query filters for listing a profile's connections (kind / status / pagination). */
744
+ type ListConnectionsQuery = NonNullable<ConnectionsListByProfileData['query']>;
745
+ /** A connection's kind — `posting` (social) or `ads`. From the contract. */
746
+ type ConnectionKind = NonNullable<ListConnectionsQuery['kind']>;
747
+ /** A connection's lifecycle status — `pending` / `active` / `needs_reauth`. */
748
+ type ConnectionStatus = NonNullable<ListConnectionsQuery['status']>;
735
749
  /** The session returned when starting a connect (OAuth) flow. */
736
750
  type ConnectSession = ConnectionsConnectResponse;
737
751
  /** A platform a connection can start an OAuth connect flow for. */
@@ -793,8 +807,13 @@ type PublishMode = NonNullable<CreatePostBody['publish']>;
793
807
  type PostMetadata = NonNullable<CreatePostBody['metadata']>;
794
808
  /** A media asset (image/video/gif/document) with its per-platform renditions. */
795
809
  type MediaResource = MediaGetResponse;
796
- /** A media asset's kind (image / video / gif / document), from the contract. */
797
- type MediaKind = MediaResource['kind'];
810
+ /**
811
+ * A media asset's kind (image / video / gif / document), from the contract. The
812
+ * resource's `kind` is nullable only in the transient pre-detection `uploading`
813
+ * window; this is the concrete family, so it strips that null — what you pass to
814
+ * create/upload and switch over on a settled asset.
815
+ */
816
+ type MediaKind = NonNullable<MediaResource['kind']>;
798
817
  /** A media render target — a post platform or `google_ads`. */
799
818
  type MediaTarget = NonNullable<NonNullable<MediaCreateData['body']>['targets']>[number];
800
819
  /** The create-media response: the resource plus a signed upload target. */
@@ -805,6 +824,31 @@ type UploadTarget = NonNullable<CreateMediaResult['upload']>;
805
824
  type CreateMediaInput = NonNullable<MediaCreateData['body']>;
806
825
  /** Request body to update a media asset (alt text / metadata / extend targets). */
807
826
  type UpdateMediaInput = NonNullable<MediaUpdateData['body']>;
827
+ /** A page of media assets (the list envelope). */
828
+ type MediaList = MediaListResponse;
829
+ /** Query parameters for listing media (filters + pagination). */
830
+ type ListMediaQuery = NonNullable<MediaListData['query']>;
831
+ /**
832
+ * A media asset's lifecycle state — the values the list `status` filter accepts
833
+ * (uploading / processing / ready / failed). From the contract, never hand-listed.
834
+ */
835
+ type MediaStatus = NonNullable<ListMediaQuery['status']>;
836
+ /**
837
+ * Customer metadata — a flat scalar map (`string | number | boolean`; ≤50 keys,
838
+ * keys ≤40 chars, ≤500-char strings, 16 KiB serialized). The contract uses this
839
+ * SAME shape on every stored resource (profiles / posts / media); this alias is
840
+ * derived from the media write body as a stable representative, so it's the type
841
+ * to annotate metadata you send — never `Record<string, unknown>`. (The three
842
+ * resources share one structural shape in the spec; were the API ever to diverge
843
+ * one, prefer that resource's own `*['metadata']` for it.)
844
+ */
845
+ type Metadata = NonNullable<CreateMediaInput['metadata']>;
846
+ /**
847
+ * A metadata filter for list endpoints — the same scalar map, matched by exact
848
+ * containment (multiple keys ANDed; omit for no filter). Pass the object directly
849
+ * from the SDK/React hooks; the client URL-encodes it for the REST query.
850
+ */
851
+ type MetadataFilter = NonNullable<ListMediaQuery['metadata']>;
808
852
 
809
853
  /** A media attachment — the uploaded asset (or just its id + kind). */
810
854
  type MediaInput = Pick<MediaResource, 'id' | 'kind'>;
@@ -879,4 +923,4 @@ declare function buildCreatePost(input: ComposePostInput, connections: readonly
879
923
  */
880
924
  declare function buildUpdatePost(input: ComposeUpdateInput, connections?: readonly ConnectionRef[]): UpdatePostInput;
881
925
 
882
- export { type ChannelConfig, type Channels, ComposeError, type ComposePostInput, type ComposeUpdateInput, type ConnectSession, type ConnectablePlatform, type Connection, type ConnectionList, type ConnectionRef, 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 LinkedInPostVariant, 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 MediaResource, 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 Options, POST_PLATFORMS, type Post, type PostContent, type PostList, type PostMetadata, type PostPlatform, type PostStatus, type PostTypeFor, 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, 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, TokensMintData, TokensMintErrors, TokensMintResponses, type UpdateMediaInput, type UpdatePostInput, type UpdateProfileInput, type UploadTarget, 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 XPostVariant, buildCreatePost, buildUpdatePost, connectionsConnect, connectionsDelete, connectionsGet, connectionsListAccounts, connectionsListByProfile, connectionsSelect, 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, isPostPlatform, logsGet, logsList, mediaCreate, mediaDelete, mediaGet, mediaUpdate, metaAccount, metaAd, metaAds, metaAdset, metaAdsets, metaCampaign, metaCampaigns, metaInsights, postsCreate, postsDelete, postsGet, postsList, postsUpdate, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, tokensMint, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint };
926
+ 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 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 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, 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, TokensMintData, TokensMintErrors, TokensMintResponses, type UpdateMediaInput, type UpdatePostInput, type UpdateProfileInput, type UploadTarget, 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 XPostVariant, buildCreatePost, buildUpdatePost, connectionsConnect, connectionsDelete, connectionsGet, connectionsListAccounts, connectionsListByProfile, connectionsSelect, 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, isPostPlatform, logsGet, logsList, mediaCreate, mediaDelete, mediaGet, mediaList, mediaUpdate, metaAccount, metaAd, metaAds, metaAdset, metaAdsets, metaCampaign, metaCampaigns, metaInsights, postsCreate, postsDelete, postsGet, postsList, postsUpdate, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, tokensMint, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
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, mediaUpdate, metaAccount, metaAd, metaAds, metaAdset, metaAdsets, metaCampaign, metaCampaigns, metaInsights, postsCreate, postsDelete, postsGet, postsList, postsUpdate, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, tokensMint, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint } from './chunk-A545VJ5X.js';
2
- import './chunk-IMU3SG45.js';
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, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, tokensMint, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint } from './chunk-YMVIGQGW.js';
2
+ import './chunk-4AAUQJXR.js';
3
3
 
4
4
  // src/compose.ts
5
5
  var ComposeError = class extends Error {
@@ -105,11 +105,39 @@ var instagramHandler = {
105
105
  settings
106
106
  })
107
107
  };
108
+ var tiktokHandler = {
109
+ derivePostType: (media) => {
110
+ if (media.length === 0) {
111
+ throw new ComposeError("TikTok requires at least one media item.");
112
+ }
113
+ rejectDocuments(media, "TikTok");
114
+ const { images, videos } = countKinds(media);
115
+ if (images > 0 && videos > 0) {
116
+ throw new ComposeError(
117
+ "TikTok can't combine images and video in one post \u2014 split them into separate posts."
118
+ );
119
+ }
120
+ if (videos > 1) {
121
+ throw new ComposeError("TikTok allows at most one video per post.");
122
+ }
123
+ if (videos === 1) return "video";
124
+ return images >= 2 ? "carousel" : "single_image";
125
+ },
126
+ buildVariant: ({ settings, postType, connectionId, body, media }) => ({
127
+ platform: "tiktok",
128
+ post_type: postType,
129
+ connection_id: connectionId,
130
+ body,
131
+ media: [...media],
132
+ settings
133
+ })
134
+ };
108
135
  var PLATFORM_HANDLERS = {
109
136
  x: xHandler,
110
137
  linkedin: linkedInHandler,
111
138
  facebook_page: facebookHandler,
112
- instagram: instagramHandler
139
+ instagram: instagramHandler,
140
+ tiktok: tiktokHandler
113
141
  };
114
142
  function isPostPlatform(value) {
115
143
  return Object.prototype.hasOwnProperty.call(PLATFORM_HANDLERS, value);
@@ -135,15 +163,22 @@ function buildChannel(handler, platform, config, content, connections) {
135
163
  media: media.map((item) => ({ media_id: item.id }))
136
164
  });
137
165
  }
166
+ function collectChannel(platform, channels, content, connections) {
167
+ const config = channels[platform];
168
+ if (!config) return void 0;
169
+ return buildChannel(
170
+ PLATFORM_HANDLERS[platform],
171
+ platform,
172
+ config,
173
+ content,
174
+ connections
175
+ );
176
+ }
138
177
  function buildVariants(content, channels, connections) {
139
- const variants = [];
140
- if (channels.x) variants.push(buildChannel(xHandler, "x", channels.x, content, connections));
141
- if (channels.linkedin)
142
- variants.push(buildChannel(linkedInHandler, "linkedin", channels.linkedin, content, connections));
143
- if (channels.facebook_page)
144
- variants.push(buildChannel(facebookHandler, "facebook_page", channels.facebook_page, content, connections));
145
- if (channels.instagram)
146
- variants.push(buildChannel(instagramHandler, "instagram", channels.instagram, content, connections));
178
+ const variants = POST_PLATFORMS.flatMap((platform) => {
179
+ const variant = collectChannel(platform, channels, content, connections);
180
+ return variant ? [variant] : [];
181
+ });
147
182
  if (variants.length === 0) {
148
183
  throw new ComposeError("At least one channel is required.");
149
184
  }