@postrun/js 0.1.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/LICENSE +202 -0
- package/README.md +136 -0
- package/dist/chunk-A545VJ5X.js +2023 -0
- package/dist/chunk-A545VJ5X.js.map +1 -0
- package/dist/chunk-IMU3SG45.js +3163 -0
- package/dist/chunk-IMU3SG45.js.map +1 -0
- package/dist/index.cjs +5476 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +882 -0
- package/dist/index.d.ts +882 -0
- package/dist/index.js +194 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/index.cjs +3383 -0
- package/dist/schemas/index.cjs.map +1 -0
- package/dist/schemas/index.d.cts +3392 -0
- package/dist/schemas/index.d.ts +3392 -0
- package/dist/schemas/index.js +3 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/server.cjs +4077 -0
- package/dist/server.cjs.map +1 -0
- package/dist/server.d.cts +34 -0
- package/dist/server.d.ts +34 -0
- package/dist/server.js +30 -0
- package/dist/server.js.map +1 -0
- package/dist/types.gen-DGCs7eB8.d.cts +22283 -0
- package/dist/types.gen-DGCs7eB8.d.ts +22283 -0
- package/package.json +55 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,882 @@
|
|
|
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';
|
|
3
|
+
import * as z from 'zod';
|
|
4
|
+
|
|
5
|
+
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
6
|
+
/**
|
|
7
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
8
|
+
* individual options. This might be also useful if you want to implement a
|
|
9
|
+
* custom client.
|
|
10
|
+
*/
|
|
11
|
+
client?: Client;
|
|
12
|
+
/**
|
|
13
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
14
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
15
|
+
*/
|
|
16
|
+
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* List profiles
|
|
20
|
+
*
|
|
21
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `profiles:read` (the response is limited to the profiles the token is scoped to).
|
|
22
|
+
*
|
|
23
|
+
* Lists the profiles under your account, newest first.
|
|
24
|
+
*/
|
|
25
|
+
declare const profilesList: <ThrowOnError extends boolean = true>(options?: Options<ProfilesListData, ThrowOnError>) => RequestResult<ProfilesListResponses, ProfilesListErrors, ThrowOnError>;
|
|
26
|
+
/**
|
|
27
|
+
* Create a profile
|
|
28
|
+
*
|
|
29
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `profiles:write` with account-wide profile scope (`all`); a profile-scoped token cannot create.
|
|
30
|
+
*
|
|
31
|
+
* Creates a profile — a client/brand workspace under your account, and the unit connections attach to.
|
|
32
|
+
*/
|
|
33
|
+
declare const profilesCreate: <ThrowOnError extends boolean = true>(options: Options<ProfilesCreateData, ThrowOnError>) => RequestResult<ProfilesCreateResponses, ProfilesCreateErrors, ThrowOnError>;
|
|
34
|
+
/**
|
|
35
|
+
* Delete a profile
|
|
36
|
+
*
|
|
37
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `profiles:write` scoped to the target profile.
|
|
38
|
+
*
|
|
39
|
+
* Deletes a profile. The profile must have no connections — delete its connections first.
|
|
40
|
+
*/
|
|
41
|
+
declare const profilesDelete: <ThrowOnError extends boolean = true>(options: Options<ProfilesDeleteData, ThrowOnError>) => RequestResult<ProfilesDeleteResponses, ProfilesDeleteErrors, ThrowOnError>;
|
|
42
|
+
/**
|
|
43
|
+
* Retrieve a profile
|
|
44
|
+
*
|
|
45
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `profiles:read` scoped to the target profile.
|
|
46
|
+
*
|
|
47
|
+
* Retrieves a single profile by id.
|
|
48
|
+
*/
|
|
49
|
+
declare const profilesGet: <ThrowOnError extends boolean = true>(options: Options<ProfilesGetData, ThrowOnError>) => RequestResult<ProfilesGetResponses, ProfilesGetErrors, ThrowOnError>;
|
|
50
|
+
/**
|
|
51
|
+
* Update a profile
|
|
52
|
+
*
|
|
53
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `profiles:write` scoped to the target profile.
|
|
54
|
+
*
|
|
55
|
+
* Updates a profile. Send only the fields you want to change; provide at least one.
|
|
56
|
+
*/
|
|
57
|
+
declare const profilesUpdate: <ThrowOnError extends boolean = true>(options: Options<ProfilesUpdateData, ThrowOnError>) => RequestResult<ProfilesUpdateResponses, ProfilesUpdateErrors, ThrowOnError>;
|
|
58
|
+
/**
|
|
59
|
+
* List a profile's connections
|
|
60
|
+
*
|
|
61
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `connections:read` scoped to the target profile.
|
|
62
|
+
*
|
|
63
|
+
* Lists the external accounts connected to a profile, most recent first. Returns 404 if the profile doesn't exist in your account.
|
|
64
|
+
*/
|
|
65
|
+
declare const connectionsListByProfile: <ThrowOnError extends boolean = true>(options: Options<ConnectionsListByProfileData, ThrowOnError>) => RequestResult<ConnectionsListByProfileResponses, ConnectionsListByProfileErrors, ThrowOnError>;
|
|
66
|
+
/**
|
|
67
|
+
* Delete a connection
|
|
68
|
+
*
|
|
69
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `connections:write` scoped to the profile that owns the connection.
|
|
70
|
+
*
|
|
71
|
+
* Deletes a connection. Returns a deletion marker; returns 404 if it does not exist in your account.
|
|
72
|
+
*/
|
|
73
|
+
declare const connectionsDelete: <ThrowOnError extends boolean = true>(options: Options<ConnectionsDeleteData, ThrowOnError>) => RequestResult<ConnectionsDeleteResponses, ConnectionsDeleteErrors, ThrowOnError>;
|
|
74
|
+
/**
|
|
75
|
+
* Retrieve a connection
|
|
76
|
+
*
|
|
77
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `connections:read` scoped to the profile that owns the connection.
|
|
78
|
+
*
|
|
79
|
+
* Retrieves a single connection by id.
|
|
80
|
+
*/
|
|
81
|
+
declare const connectionsGet: <ThrowOnError extends boolean = true>(options: Options<ConnectionsGetData, ThrowOnError>) => RequestResult<ConnectionsGetResponses, ConnectionsGetErrors, ThrowOnError>;
|
|
82
|
+
/**
|
|
83
|
+
* Select a connection account
|
|
84
|
+
*
|
|
85
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `connections:write` scoped to the profile that owns the connection.
|
|
86
|
+
*
|
|
87
|
+
* Activates a pending connection by choosing which external account (e.g. which Meta ad account) it uses. The account must be one reachable through the connection’s OAuth grant; its canonical name + currency are resolved server-side from discovery, so the stored display values can’t be spoofed by the caller.
|
|
88
|
+
*/
|
|
89
|
+
declare const connectionsSelect: <ThrowOnError extends boolean = true>(options: Options<ConnectionsSelectData, ThrowOnError>) => RequestResult<ConnectionsSelectResponses, ConnectionsSelectErrors, ThrowOnError>;
|
|
90
|
+
/**
|
|
91
|
+
* List a connection’s discoverable accounts
|
|
92
|
+
*
|
|
93
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `connections:read` scoped to the profile that owns the connection.
|
|
94
|
+
*
|
|
95
|
+
* Lists the external ad accounts reachable through this connection’s OAuth grant — the picker shown after OAuth, while the connection is still pending account selection. Returns 404 if the connection does not exist in your account, and 501 if account discovery is not yet supported for the connection’s platform.
|
|
96
|
+
*/
|
|
97
|
+
declare const connectionsListAccounts: <ThrowOnError extends boolean = true>(options: Options<ConnectionsListAccountsData, ThrowOnError>) => RequestResult<ConnectionsListAccountsResponses, ConnectionsListAccountsErrors, ThrowOnError>;
|
|
98
|
+
/**
|
|
99
|
+
* Connect a platform account
|
|
100
|
+
*
|
|
101
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `connections:write` scoped to the target profile.
|
|
102
|
+
*
|
|
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
|
+
*/
|
|
105
|
+
declare const connectionsConnect: <ThrowOnError extends boolean = true>(options: Options<ConnectionsConnectData, ThrowOnError>) => RequestResult<ConnectionsConnectResponses, ConnectionsConnectErrors, ThrowOnError>;
|
|
106
|
+
/**
|
|
107
|
+
* Upload media
|
|
108
|
+
*
|
|
109
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `media:write` scoped to the target profile.
|
|
110
|
+
*
|
|
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.
|
|
112
|
+
*/
|
|
113
|
+
declare const mediaCreate: <ThrowOnError extends boolean = true>(options: Options<MediaCreateData, ThrowOnError>) => RequestResult<MediaCreateResponses, MediaCreateErrors, ThrowOnError>;
|
|
114
|
+
/**
|
|
115
|
+
* Delete media
|
|
116
|
+
*
|
|
117
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `media:write` scoped to the profile that owns the media asset.
|
|
118
|
+
*
|
|
119
|
+
* Deletes a media asset and its stored renditions.
|
|
120
|
+
*/
|
|
121
|
+
declare const mediaDelete: <ThrowOnError extends boolean = true>(options: Options<MediaDeleteData, ThrowOnError>) => RequestResult<MediaDeleteResponses, MediaDeleteErrors, ThrowOnError>;
|
|
122
|
+
/**
|
|
123
|
+
* Retrieve media
|
|
124
|
+
*
|
|
125
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `media:read` scoped to the profile that owns the media asset.
|
|
126
|
+
*
|
|
127
|
+
* Retrieves a media asset, including its per-platform processing status and renditions.
|
|
128
|
+
*/
|
|
129
|
+
declare const mediaGet: <ThrowOnError extends boolean = true>(options: Options<MediaGetData, ThrowOnError>) => RequestResult<MediaGetResponses, MediaGetErrors, ThrowOnError>;
|
|
130
|
+
/**
|
|
131
|
+
* Update media
|
|
132
|
+
*
|
|
133
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `media:write` scoped to the profile that owns the media asset.
|
|
134
|
+
*
|
|
135
|
+
* Updates a media asset (alt text, metadata, external_id) or adds `targets` to pre-warm more platforms. Send only the fields to change.
|
|
136
|
+
*/
|
|
137
|
+
declare const mediaUpdate: <ThrowOnError extends boolean = true>(options: Options<MediaUpdateData, ThrowOnError>) => RequestResult<MediaUpdateResponses, MediaUpdateErrors, ThrowOnError>;
|
|
138
|
+
/**
|
|
139
|
+
* List posts
|
|
140
|
+
*
|
|
141
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `posts:read` (the response is limited to the profiles the token is scoped to).
|
|
142
|
+
*
|
|
143
|
+
* Lists the posts under your account, newest first. Filter by profile or your own external_id.
|
|
144
|
+
*/
|
|
145
|
+
declare const postsList: <ThrowOnError extends boolean = true>(options?: Options<PostsListData, ThrowOnError>) => RequestResult<PostsListResponses, PostsListErrors, ThrowOnError>;
|
|
146
|
+
/**
|
|
147
|
+
* Create a post
|
|
148
|
+
*
|
|
149
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `posts:write` scoped to the target profile.
|
|
150
|
+
*
|
|
151
|
+
* Composes a post + its per-channel variants. `publish` decides the outcome: `now` publishes immediately, `schedule` publishes at `schedule_at`, `draft` just stores it.
|
|
152
|
+
*/
|
|
153
|
+
declare const postsCreate: <ThrowOnError extends boolean = true>(options: Options<PostsCreateData, ThrowOnError>) => RequestResult<PostsCreateResponses, PostsCreateErrors, ThrowOnError>;
|
|
154
|
+
/**
|
|
155
|
+
* Delete a post
|
|
156
|
+
*
|
|
157
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `posts:write` scoped to the profile that owns the post.
|
|
158
|
+
*
|
|
159
|
+
* Deletes a post and its variants. Returns a deletion marker; 404 if it does not exist in your account. Already-published posts are not retracted from the platform.
|
|
160
|
+
*/
|
|
161
|
+
declare const postsDelete: <ThrowOnError extends boolean = true>(options: Options<PostsDeleteData, ThrowOnError>) => RequestResult<PostsDeleteResponses, PostsDeleteErrors, ThrowOnError>;
|
|
162
|
+
/**
|
|
163
|
+
* Retrieve a post
|
|
164
|
+
*
|
|
165
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `posts:read` scoped to the profile that owns the post.
|
|
166
|
+
*
|
|
167
|
+
* Retrieves a single post by id, including its per-channel variants and their derived status.
|
|
168
|
+
*/
|
|
169
|
+
declare const postsGet: <ThrowOnError extends boolean = true>(options: Options<PostsGetData, ThrowOnError>) => RequestResult<PostsGetResponses, PostsGetErrors, ThrowOnError>;
|
|
170
|
+
/**
|
|
171
|
+
* Update a post
|
|
172
|
+
*
|
|
173
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `posts:write` scoped to the profile that owns the post.
|
|
174
|
+
*
|
|
175
|
+
* Edits a post and/or transitions its publish state (`draft` / `schedule` / `now`). Valid only while the post is draft or scheduled. Send only the fields to change; providing `variants` replaces the whole set.
|
|
176
|
+
*/
|
|
177
|
+
declare const postsUpdate: <ThrowOnError extends boolean = true>(options: Options<PostsUpdateData, ThrowOnError>) => RequestResult<PostsUpdateResponses, PostsUpdateErrors, ThrowOnError>;
|
|
178
|
+
/**
|
|
179
|
+
* Retrieve the Meta ad account
|
|
180
|
+
*
|
|
181
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
182
|
+
*
|
|
183
|
+
* Retrieves the Meta ad account this connection is linked to — name, currency, status, and spend. Monetary fields are in the account currency’s minor units.
|
|
184
|
+
*/
|
|
185
|
+
declare const metaAccount: <ThrowOnError extends boolean = true>(options: Options<MetaAccountData, ThrowOnError>) => RequestResult<MetaAccountResponses, MetaAccountErrors, ThrowOnError>;
|
|
186
|
+
/**
|
|
187
|
+
* Retrieve Meta ad insights
|
|
188
|
+
*
|
|
189
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
190
|
+
*
|
|
191
|
+
* Retrieves performance insights for the connection’s Meta ad account, aggregated at the chosen `level` over a date window. Metric values are strings, in the account currency’s units.
|
|
192
|
+
*/
|
|
193
|
+
declare const metaInsights: <ThrowOnError extends boolean = true>(options: Options<MetaInsightsData, ThrowOnError>) => RequestResult<MetaInsightsResponses, MetaInsightsErrors, ThrowOnError>;
|
|
194
|
+
/**
|
|
195
|
+
* List Meta campaigns
|
|
196
|
+
*
|
|
197
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
198
|
+
*
|
|
199
|
+
* Lists the campaigns under the connection’s Meta ad account, with each campaign’s status, objective, and budgets (budgets in the account currency’s minor units).
|
|
200
|
+
*/
|
|
201
|
+
declare const metaCampaigns: <ThrowOnError extends boolean = true>(options: Options<MetaCampaignsData, ThrowOnError>) => RequestResult<MetaCampaignsResponses, MetaCampaignsErrors, ThrowOnError>;
|
|
202
|
+
/**
|
|
203
|
+
* Retrieve a Meta campaign
|
|
204
|
+
*
|
|
205
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
206
|
+
*
|
|
207
|
+
* Retrieves a single campaign under the connection’s Meta ad account by its campaign id — status, objective, and budgets.
|
|
208
|
+
*/
|
|
209
|
+
declare const metaCampaign: <ThrowOnError extends boolean = true>(options: Options<MetaCampaignData, ThrowOnError>) => RequestResult<MetaCampaignResponses, MetaCampaignErrors, ThrowOnError>;
|
|
210
|
+
/**
|
|
211
|
+
* List Meta ad sets
|
|
212
|
+
*
|
|
213
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
214
|
+
*
|
|
215
|
+
* Lists the ad sets under the connection’s Meta ad account, with each ad set’s status, parent campaign, budgets, and optimization (budgets in the account currency’s minor units).
|
|
216
|
+
*/
|
|
217
|
+
declare const metaAdsets: <ThrowOnError extends boolean = true>(options: Options<MetaAdsetsData, ThrowOnError>) => RequestResult<MetaAdsetsResponses, MetaAdsetsErrors, ThrowOnError>;
|
|
218
|
+
/**
|
|
219
|
+
* Retrieve a Meta ad set
|
|
220
|
+
*
|
|
221
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
222
|
+
*
|
|
223
|
+
* Retrieves a single ad set under the connection’s Meta ad account by its ad set id — status, parent campaign, budgets, and optimization.
|
|
224
|
+
*/
|
|
225
|
+
declare const metaAdset: <ThrowOnError extends boolean = true>(options: Options<MetaAdsetData, ThrowOnError>) => RequestResult<MetaAdsetResponses, MetaAdsetErrors, ThrowOnError>;
|
|
226
|
+
/**
|
|
227
|
+
* List Meta ads
|
|
228
|
+
*
|
|
229
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
230
|
+
*
|
|
231
|
+
* Lists the ads under the connection’s Meta ad account, with each ad’s status, parent ad set and campaign ids, and timestamps.
|
|
232
|
+
*/
|
|
233
|
+
declare const metaAds: <ThrowOnError extends boolean = true>(options: Options<MetaAdsData, ThrowOnError>) => RequestResult<MetaAdsResponses, MetaAdsErrors, ThrowOnError>;
|
|
234
|
+
/**
|
|
235
|
+
* Retrieve a Meta ad
|
|
236
|
+
*
|
|
237
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
238
|
+
*
|
|
239
|
+
* Retrieves a single ad under the connection’s Meta ad account by its ad id — status, parent ad set and campaign ids, and timestamps.
|
|
240
|
+
*/
|
|
241
|
+
declare const metaAd: <ThrowOnError extends boolean = true>(options: Options<MetaAdData, ThrowOnError>) => RequestResult<MetaAdResponses, MetaAdErrors, ThrowOnError>;
|
|
242
|
+
/**
|
|
243
|
+
* Retrieve the connected Google Ads account
|
|
244
|
+
*
|
|
245
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
246
|
+
*
|
|
247
|
+
* Returns the Google Ads account (the `customer` resource) backing this connection — id, descriptive name, currency, time zone, status, and whether it is a manager (MCC) or test account.
|
|
248
|
+
*/
|
|
249
|
+
declare const googleGetAccount: <ThrowOnError extends boolean = true>(options: Options<GoogleGetAccountData, ThrowOnError>) => RequestResult<GoogleGetAccountResponses, GoogleGetAccountErrors, ThrowOnError>;
|
|
250
|
+
/**
|
|
251
|
+
* Google Ads performance insights
|
|
252
|
+
*
|
|
253
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
254
|
+
*
|
|
255
|
+
* Performance metrics for the connection’s account, at a chosen level (account / campaign / ad group), for a date range, with optional breakdowns. The flagship cross-checked read; use `/gaql` for anything outside this shape.
|
|
256
|
+
*/
|
|
257
|
+
declare const googleGetInsights: <ThrowOnError extends boolean = true>(options: Options<GoogleGetInsightsData, ThrowOnError>) => RequestResult<GoogleGetInsightsResponses, GoogleGetInsightsErrors, ThrowOnError>;
|
|
258
|
+
/**
|
|
259
|
+
* Run a raw GAQL query
|
|
260
|
+
*
|
|
261
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
262
|
+
*
|
|
263
|
+
* Runs a raw Google Ads Query Language (GAQL) query against the connection’s account and returns the native rows. Read-only (GAQL only does `SELECT`). The power-user escape hatch beneath the typed reads.
|
|
264
|
+
*/
|
|
265
|
+
declare const googleRunGaql: <ThrowOnError extends boolean = true>(options: Options<GoogleRunGaqlData, ThrowOnError>) => RequestResult<GoogleRunGaqlResponses, GoogleRunGaqlErrors, ThrowOnError>;
|
|
266
|
+
/**
|
|
267
|
+
* Create a Google Ads campaign budget
|
|
268
|
+
*
|
|
269
|
+
* **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
|
|
270
|
+
*
|
|
271
|
+
* Creates a standalone daily campaign budget (the `campaign_budget` resource) on the connection’s account. Money write — secret-key-only. Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name to chain into a campaign.
|
|
272
|
+
*/
|
|
273
|
+
declare const googleCreateBudget: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateBudgetData, ThrowOnError>) => RequestResult<GoogleCreateBudgetResponses, GoogleCreateBudgetErrors, ThrowOnError>;
|
|
274
|
+
/**
|
|
275
|
+
* Delete a Google Ads campaign budget
|
|
276
|
+
*
|
|
277
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
278
|
+
*
|
|
279
|
+
* Removes a campaign budget by numeric id (Google’s native remove). Pass `dry_run: true` to validate the removal against Google without applying it.
|
|
280
|
+
*/
|
|
281
|
+
declare const googleDeleteBudget: <ThrowOnError extends boolean = true>(options: Options<GoogleDeleteBudgetData, ThrowOnError>) => RequestResult<GoogleDeleteBudgetResponses, GoogleDeleteBudgetErrors, ThrowOnError>;
|
|
282
|
+
/**
|
|
283
|
+
* Edit a Google Ads campaign budget
|
|
284
|
+
*
|
|
285
|
+
* **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
|
|
286
|
+
*
|
|
287
|
+
* Updates a budget’s daily amount (in micros) by numeric id. Money write — secret-key-only. Pass `dry_run: true` to validate against Google without applying.
|
|
288
|
+
*/
|
|
289
|
+
declare const googleEditBudget: <ThrowOnError extends boolean = true>(options: Options<GoogleEditBudgetData, ThrowOnError>) => RequestResult<GoogleEditBudgetResponses, GoogleEditBudgetErrors, ThrowOnError>;
|
|
290
|
+
/**
|
|
291
|
+
* List Google Ads campaigns
|
|
292
|
+
*
|
|
293
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
294
|
+
*
|
|
295
|
+
* Returns the campaigns (the `campaign` resource) on the connection’s account — id, name, status, advertising channel type, and bidding strategy type.
|
|
296
|
+
*/
|
|
297
|
+
declare const googleListCampaigns: <ThrowOnError extends boolean = true>(options: Options<GoogleListCampaignsData, ThrowOnError>) => RequestResult<GoogleListCampaignsResponses, GoogleListCampaignsErrors, ThrowOnError>;
|
|
298
|
+
/**
|
|
299
|
+
* Create a Google Ads campaign
|
|
300
|
+
*
|
|
301
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
302
|
+
*
|
|
303
|
+
* Creates a Search or Display campaign (the `campaign` resource) on the connection’s account, attached to an existing budget. Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name.
|
|
304
|
+
*/
|
|
305
|
+
declare const googleCreateCampaign: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateCampaignData, ThrowOnError>) => RequestResult<GoogleCreateCampaignResponses, GoogleCreateCampaignErrors, ThrowOnError>;
|
|
306
|
+
/**
|
|
307
|
+
* Delete a Google Ads campaign
|
|
308
|
+
*
|
|
309
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
310
|
+
*
|
|
311
|
+
* Removes a campaign by numeric id (Google’s native remove). Pass `dry_run: true` to validate the removal against Google without applying it.
|
|
312
|
+
*/
|
|
313
|
+
declare const googleDeleteCampaign: <ThrowOnError extends boolean = true>(options: Options<GoogleDeleteCampaignData, ThrowOnError>) => RequestResult<GoogleDeleteCampaignResponses, GoogleDeleteCampaignErrors, ThrowOnError>;
|
|
314
|
+
/**
|
|
315
|
+
* Retrieve a Google Ads campaign
|
|
316
|
+
*
|
|
317
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
318
|
+
*
|
|
319
|
+
* Returns a single campaign (the `campaign` resource) by its numeric id on the connection’s account — id, name, status, advertising channel type, and bidding strategy type.
|
|
320
|
+
*/
|
|
321
|
+
declare const googleGetCampaign: <ThrowOnError extends boolean = true>(options: Options<GoogleGetCampaignData, ThrowOnError>) => RequestResult<GoogleGetCampaignResponses, GoogleGetCampaignErrors, ThrowOnError>;
|
|
322
|
+
/**
|
|
323
|
+
* Edit a Google Ads campaign
|
|
324
|
+
*
|
|
325
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
326
|
+
*
|
|
327
|
+
* Updates a campaign’s non-money fields (its name) by numeric id. Status has its own pause/enable endpoints; bids are a separate money write. Pass `dry_run: true` to validate against Google without applying.
|
|
328
|
+
*/
|
|
329
|
+
declare const googleEditCampaign: <ThrowOnError extends boolean = true>(options: Options<GoogleEditCampaignData, ThrowOnError>) => RequestResult<GoogleEditCampaignResponses, GoogleEditCampaignErrors, ThrowOnError>;
|
|
330
|
+
/**
|
|
331
|
+
* Pause a Google Ads campaign
|
|
332
|
+
*
|
|
333
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
334
|
+
*
|
|
335
|
+
* Pauses a campaign by its numeric id (reversible). Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
|
|
336
|
+
*/
|
|
337
|
+
declare const googlePauseCampaign: <ThrowOnError extends boolean = true>(options: Options<GooglePauseCampaignData, ThrowOnError>) => RequestResult<GooglePauseCampaignResponses, GooglePauseCampaignErrors, ThrowOnError>;
|
|
338
|
+
/**
|
|
339
|
+
* Enable a Google Ads campaign
|
|
340
|
+
*
|
|
341
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
342
|
+
*
|
|
343
|
+
* Enables (resumes) a campaign by its numeric id. Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
|
|
344
|
+
*/
|
|
345
|
+
declare const googleEnableCampaign: <ThrowOnError extends boolean = true>(options: Options<GoogleEnableCampaignData, ThrowOnError>) => RequestResult<GoogleEnableCampaignResponses, GoogleEnableCampaignErrors, ThrowOnError>;
|
|
346
|
+
/**
|
|
347
|
+
* List Google Ads ad groups
|
|
348
|
+
*
|
|
349
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
350
|
+
*
|
|
351
|
+
* Lists the ad groups (Google’s equivalent of an ad set) in the Google Ads account backing this connection — id, name, status, type, and parent campaign.
|
|
352
|
+
*/
|
|
353
|
+
declare const googleListAdGroups: <ThrowOnError extends boolean = true>(options: Options<GoogleListAdGroupsData, ThrowOnError>) => RequestResult<GoogleListAdGroupsResponses, GoogleListAdGroupsErrors, ThrowOnError>;
|
|
354
|
+
/**
|
|
355
|
+
* Create a Google Ads ad group
|
|
356
|
+
*
|
|
357
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
358
|
+
*
|
|
359
|
+
* Creates an ad group (the `ad_group` resource) under a campaign on the connection’s account. Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name to chain into ads and keywords.
|
|
360
|
+
*/
|
|
361
|
+
declare const googleCreateAdGroup: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateAdGroupData, ThrowOnError>) => RequestResult<GoogleCreateAdGroupResponses, GoogleCreateAdGroupErrors, ThrowOnError>;
|
|
362
|
+
/**
|
|
363
|
+
* Delete a Google Ads ad group
|
|
364
|
+
*
|
|
365
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
366
|
+
*
|
|
367
|
+
* Removes an ad group by numeric id (Google’s native remove). Pass `dry_run: true` to validate the removal against Google without applying it.
|
|
368
|
+
*/
|
|
369
|
+
declare const googleDeleteAdGroup: <ThrowOnError extends boolean = true>(options: Options<GoogleDeleteAdGroupData, ThrowOnError>) => RequestResult<GoogleDeleteAdGroupResponses, GoogleDeleteAdGroupErrors, ThrowOnError>;
|
|
370
|
+
/**
|
|
371
|
+
* Retrieve a Google Ads ad group
|
|
372
|
+
*
|
|
373
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
374
|
+
*
|
|
375
|
+
* Returns a single ad group by its numeric id from the Google Ads account backing this connection — id, name, status, type, and parent campaign.
|
|
376
|
+
*/
|
|
377
|
+
declare const googleGetAdGroup: <ThrowOnError extends boolean = true>(options: Options<GoogleGetAdGroupData, ThrowOnError>) => RequestResult<GoogleGetAdGroupResponses, GoogleGetAdGroupErrors, ThrowOnError>;
|
|
378
|
+
/**
|
|
379
|
+
* Edit a Google Ads ad group
|
|
380
|
+
*
|
|
381
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
382
|
+
*
|
|
383
|
+
* Updates an ad group’s non-money fields (its name) by numeric id. Status has its own pause/enable endpoints; bids are a separate money write. Pass `dry_run: true` to validate without applying.
|
|
384
|
+
*/
|
|
385
|
+
declare const googleEditAdGroup: <ThrowOnError extends boolean = true>(options: Options<GoogleEditAdGroupData, ThrowOnError>) => RequestResult<GoogleEditAdGroupResponses, GoogleEditAdGroupErrors, ThrowOnError>;
|
|
386
|
+
/**
|
|
387
|
+
* Set a Google Ads ad group’s bids
|
|
388
|
+
*
|
|
389
|
+
* **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
|
|
390
|
+
*
|
|
391
|
+
* Sets an ad group’s manual bids (cpc/cpm/target CPA in micros, target ROAS as a ratio) by numeric id. Money write — secret-key-only. Pass `dry_run: true` to validate without applying.
|
|
392
|
+
*/
|
|
393
|
+
declare const googleSetAdGroupBids: <ThrowOnError extends boolean = true>(options: Options<GoogleSetAdGroupBidsData, ThrowOnError>) => RequestResult<GoogleSetAdGroupBidsResponses, GoogleSetAdGroupBidsErrors, ThrowOnError>;
|
|
394
|
+
/**
|
|
395
|
+
* Pause a Google Ads ad group
|
|
396
|
+
*
|
|
397
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
398
|
+
*
|
|
399
|
+
* Pauses an ad group by its numeric id (reversible). Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
|
|
400
|
+
*/
|
|
401
|
+
declare const googlePauseAdGroup: <ThrowOnError extends boolean = true>(options: Options<GooglePauseAdGroupData, ThrowOnError>) => RequestResult<GooglePauseAdGroupResponses, GooglePauseAdGroupErrors, ThrowOnError>;
|
|
402
|
+
/**
|
|
403
|
+
* Enable a Google Ads ad group
|
|
404
|
+
*
|
|
405
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
406
|
+
*
|
|
407
|
+
* Enables (resumes) an ad group by its numeric id. Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
|
|
408
|
+
*/
|
|
409
|
+
declare const googleEnableAdGroup: <ThrowOnError extends boolean = true>(options: Options<GoogleEnableAdGroupData, ThrowOnError>) => RequestResult<GoogleEnableAdGroupResponses, GoogleEnableAdGroupErrors, ThrowOnError>;
|
|
410
|
+
/**
|
|
411
|
+
* List Google Ads ads
|
|
412
|
+
*
|
|
413
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
414
|
+
*
|
|
415
|
+
* Returns the ads (the `ad_group_ad` resource) on the connection’s account — id, name, creative type, serving status, and the owning ad group.
|
|
416
|
+
*/
|
|
417
|
+
declare const googleListAds: <ThrowOnError extends boolean = true>(options: Options<GoogleListAdsData, ThrowOnError>) => RequestResult<GoogleListAdsResponses, GoogleListAdsErrors, ThrowOnError>;
|
|
418
|
+
/**
|
|
419
|
+
* Create a Google Ads responsive search ad
|
|
420
|
+
*
|
|
421
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
422
|
+
*
|
|
423
|
+
* Creates a Responsive Search Ad (the `ad_group_ad` resource, inline text — no image assets) under an ad group on the connection’s account. Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name.
|
|
424
|
+
*/
|
|
425
|
+
declare const googleCreateAd: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateAdData, ThrowOnError>) => RequestResult<GoogleCreateAdResponses, GoogleCreateAdErrors, ThrowOnError>;
|
|
426
|
+
/**
|
|
427
|
+
* Delete a Google Ads ad
|
|
428
|
+
*
|
|
429
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
430
|
+
*
|
|
431
|
+
* Removes an ad (an `ad_group_ad`) by its numeric id (Google’s native remove). Pass `dry_run: true` to validate the removal against Google without applying it.
|
|
432
|
+
*/
|
|
433
|
+
declare const googleDeleteAd: <ThrowOnError extends boolean = true>(options: Options<GoogleDeleteAdData, ThrowOnError>) => RequestResult<GoogleDeleteAdResponses, GoogleDeleteAdErrors, ThrowOnError>;
|
|
434
|
+
/**
|
|
435
|
+
* Retrieve a Google Ads ad
|
|
436
|
+
*
|
|
437
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
438
|
+
*
|
|
439
|
+
* Returns a single ad (the `ad_group_ad` resource) by its numeric id on the connection’s account — id, name, creative type, serving status, and the owning ad group.
|
|
440
|
+
*/
|
|
441
|
+
declare const googleGetAd: <ThrowOnError extends boolean = true>(options: Options<GoogleGetAdData, ThrowOnError>) => RequestResult<GoogleGetAdResponses, GoogleGetAdErrors, ThrowOnError>;
|
|
442
|
+
/**
|
|
443
|
+
* Create a Google Ads responsive display ad
|
|
444
|
+
*
|
|
445
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
446
|
+
*
|
|
447
|
+
* Creates a Responsive Display Ad (the `ad_group_ad` resource) under a Display ad group on the connection’s account, assembled from already-uploaded image-asset resource_names (upload them first via POST /v1/google/{connection_id}/assets). Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name.
|
|
448
|
+
*/
|
|
449
|
+
declare const googleCreateDisplayAd: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateDisplayAdData, ThrowOnError>) => RequestResult<GoogleCreateDisplayAdResponses, GoogleCreateDisplayAdErrors, ThrowOnError>;
|
|
450
|
+
/**
|
|
451
|
+
* Pause a Google Ads ad
|
|
452
|
+
*
|
|
453
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
454
|
+
*
|
|
455
|
+
* Pauses an ad by its numeric id (reversible). Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
|
|
456
|
+
*/
|
|
457
|
+
declare const googlePauseAd: <ThrowOnError extends boolean = true>(options: Options<GooglePauseAdData, ThrowOnError>) => RequestResult<GooglePauseAdResponses, GooglePauseAdErrors, ThrowOnError>;
|
|
458
|
+
/**
|
|
459
|
+
* Enable a Google Ads ad
|
|
460
|
+
*
|
|
461
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
462
|
+
*
|
|
463
|
+
* Enables (resumes) an ad by its numeric id. Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
|
|
464
|
+
*/
|
|
465
|
+
declare const googleEnableAd: <ThrowOnError extends boolean = true>(options: Options<GoogleEnableAdData, ThrowOnError>) => RequestResult<GoogleEnableAdResponses, GoogleEnableAdErrors, ThrowOnError>;
|
|
466
|
+
/**
|
|
467
|
+
* List Google Ads keywords
|
|
468
|
+
*
|
|
469
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
470
|
+
*
|
|
471
|
+
* Lists the keywords (`ad_group_criterion` of type KEYWORD) in the connection’s account — each with its criterion id, text, match type, status, negative flag, and owning ad group.
|
|
472
|
+
*/
|
|
473
|
+
declare const googleListKeywords: <ThrowOnError extends boolean = true>(options: Options<GoogleListKeywordsData, ThrowOnError>) => RequestResult<GoogleListKeywordsResponses, GoogleListKeywordsErrors, ThrowOnError>;
|
|
474
|
+
/**
|
|
475
|
+
* Create a Google Ads keyword
|
|
476
|
+
*
|
|
477
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
478
|
+
*
|
|
479
|
+
* Creates a keyword (an `ad_group_criterion` of type KEYWORD) under an ad group on the connection’s account. Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name.
|
|
480
|
+
*/
|
|
481
|
+
declare const googleCreateKeyword: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateKeywordData, ThrowOnError>) => RequestResult<GoogleCreateKeywordResponses, GoogleCreateKeywordErrors, ThrowOnError>;
|
|
482
|
+
/**
|
|
483
|
+
* Delete a Google Ads keyword
|
|
484
|
+
*
|
|
485
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
486
|
+
*
|
|
487
|
+
* Removes a keyword (an `ad_group_criterion`) by its criterion id (Google’s native remove). Pass `dry_run: true` to validate the removal against Google without applying it.
|
|
488
|
+
*/
|
|
489
|
+
declare const googleDeleteKeyword: <ThrowOnError extends boolean = true>(options: Options<GoogleDeleteKeywordData, ThrowOnError>) => RequestResult<GoogleDeleteKeywordResponses, GoogleDeleteKeywordErrors, ThrowOnError>;
|
|
490
|
+
/**
|
|
491
|
+
* Retrieve a Google Ads keyword
|
|
492
|
+
*
|
|
493
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
494
|
+
*
|
|
495
|
+
* Returns one keyword (`ad_group_criterion` of type KEYWORD) by its criterion id, from the connection’s account — text, match type, status, negative flag, and owning ad group.
|
|
496
|
+
*/
|
|
497
|
+
declare const googleGetKeyword: <ThrowOnError extends boolean = true>(options: Options<GoogleGetKeywordData, ThrowOnError>) => RequestResult<GoogleGetKeywordResponses, GoogleGetKeywordErrors, ThrowOnError>;
|
|
498
|
+
/**
|
|
499
|
+
* Set a Google Ads keyword’s bid
|
|
500
|
+
*
|
|
501
|
+
* **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
|
|
502
|
+
*
|
|
503
|
+
* Sets a keyword’s manual CPC bid (in micros) by criterion id. Money write — secret-key-only. Pass `dry_run: true` to validate without applying.
|
|
504
|
+
*/
|
|
505
|
+
declare const googleSetKeywordBid: <ThrowOnError extends boolean = true>(options: Options<GoogleSetKeywordBidData, ThrowOnError>) => RequestResult<GoogleSetKeywordBidResponses, GoogleSetKeywordBidErrors, ThrowOnError>;
|
|
506
|
+
/**
|
|
507
|
+
* Pause a Google Ads keyword
|
|
508
|
+
*
|
|
509
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
510
|
+
*
|
|
511
|
+
* Pauses a keyword (`ad_group_criterion`) by its criterion id (reversible). Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
|
|
512
|
+
*/
|
|
513
|
+
declare const googlePauseKeyword: <ThrowOnError extends boolean = true>(options: Options<GooglePauseKeywordData, ThrowOnError>) => RequestResult<GooglePauseKeywordResponses, GooglePauseKeywordErrors, ThrowOnError>;
|
|
514
|
+
/**
|
|
515
|
+
* Enable a Google Ads keyword
|
|
516
|
+
*
|
|
517
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
518
|
+
*
|
|
519
|
+
* Enables (resumes) a keyword (`ad_group_criterion`) by its criterion id. Pass `dry_run: true` to preview without applying. Returns the new status and whether it executed.
|
|
520
|
+
*/
|
|
521
|
+
declare const googleEnableKeyword: <ThrowOnError extends boolean = true>(options: Options<GoogleEnableKeywordData, ThrowOnError>) => RequestResult<GoogleEnableKeywordResponses, GoogleEnableKeywordErrors, ThrowOnError>;
|
|
522
|
+
/**
|
|
523
|
+
* List Google Ads conversion actions
|
|
524
|
+
*
|
|
525
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
526
|
+
*
|
|
527
|
+
* Returns the conversion actions (the `conversion_action` resource) on the connection’s account — id, name, status, type, category, origin, primary-goal flag, counting type, value settings, and tag snippets.
|
|
528
|
+
*/
|
|
529
|
+
declare const googleListConversionActions: <ThrowOnError extends boolean = true>(options: Options<GoogleListConversionActionsData, ThrowOnError>) => RequestResult<GoogleListConversionActionsResponses, GoogleListConversionActionsErrors, ThrowOnError>;
|
|
530
|
+
/**
|
|
531
|
+
* Create a Google Ads conversion action
|
|
532
|
+
*
|
|
533
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
534
|
+
*
|
|
535
|
+
* Creates a conversion action (the `conversion_action` resource) — a website tag (WEBPAGE) or an offline/API-reported action (UPLOAD_CLICKS) — on the connection’s account. Pass `dry_run: true` to validate against Google without creating. Returns the new resource id + resource_name.
|
|
536
|
+
*/
|
|
537
|
+
declare const googleCreateConversionAction: <ThrowOnError extends boolean = true>(options: Options<GoogleCreateConversionActionData, ThrowOnError>) => RequestResult<GoogleCreateConversionActionResponses, GoogleCreateConversionActionErrors, ThrowOnError>;
|
|
538
|
+
/**
|
|
539
|
+
* Retrieve a Google Ads conversion action
|
|
540
|
+
*
|
|
541
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
542
|
+
*
|
|
543
|
+
* Returns a single conversion action (the `conversion_action` resource) by its numeric id on the connection’s account.
|
|
544
|
+
*/
|
|
545
|
+
declare const googleGetConversionAction: <ThrowOnError extends boolean = true>(options: Options<GoogleGetConversionActionData, ThrowOnError>) => RequestResult<GoogleGetConversionActionResponses, GoogleGetConversionActionErrors, ThrowOnError>;
|
|
546
|
+
/**
|
|
547
|
+
* List Google Ads conversion goals
|
|
548
|
+
*
|
|
549
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
|
|
550
|
+
*
|
|
551
|
+
* Returns the conversion goals (the `customer_conversion_goal` resource) on the connection’s account — category, origin, and whether each is biddable. Google auto-creates these per category × origin.
|
|
552
|
+
*/
|
|
553
|
+
declare const googleListConversionGoals: <ThrowOnError extends boolean = true>(options: Options<GoogleListConversionGoalsData, ThrowOnError>) => RequestResult<GoogleListConversionGoalsResponses, GoogleListConversionGoalsErrors, ThrowOnError>;
|
|
554
|
+
/**
|
|
555
|
+
* Set a Google Ads conversion goal’s biddable flag
|
|
556
|
+
*
|
|
557
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
558
|
+
*
|
|
559
|
+
* Sets whether a conversion goal (selected by category × origin) is biddable — a primary goal Google optimises toward, or a secondary observation-only goal. Pass `dry_run: true` to preview without applying. Returns the goal and whether it executed.
|
|
560
|
+
*/
|
|
561
|
+
declare const googleSetConversionGoal: <ThrowOnError extends boolean = true>(options: Options<GoogleSetConversionGoalData, ThrowOnError>) => RequestResult<GoogleSetConversionGoalResponses, GoogleSetConversionGoalErrors, ThrowOnError>;
|
|
562
|
+
/**
|
|
563
|
+
* Upload Google Ads offline conversions
|
|
564
|
+
*
|
|
565
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
566
|
+
*
|
|
567
|
+
* Uploads offline click conversions (the `UploadClickConversions` call) against the connection’s account — report conversions that happened off-site against the click (gclid/gbraid/wbraid) or first-party identifiers that drove them. Partial failure is per-row: the response reports how many rows succeeded/failed and Google’s own error for each failed row. Pass `dry_run: true` to validate the batch against Google without recording anything.
|
|
568
|
+
*/
|
|
569
|
+
declare const googleUploadConversions: <ThrowOnError extends boolean = true>(options: Options<GoogleUploadConversionsData, ThrowOnError>) => RequestResult<GoogleUploadConversionsResponses, GoogleUploadConversionsErrors, ThrowOnError>;
|
|
570
|
+
/**
|
|
571
|
+
* Upload a Google Ads image asset
|
|
572
|
+
*
|
|
573
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
574
|
+
*
|
|
575
|
+
* Uploads a Postrun image asset (its validated Google Ads rendition) to the connection’s account as an `image` asset, returning the new resource id + resource_name to chain into an ad/asset assembly. Pass `dry_run: true` to validate against Google without creating anything (Google’s native validate_only). The media asset must have a ready Google Ads rendition, else a 409.
|
|
576
|
+
*/
|
|
577
|
+
declare const googleUploadImageAsset: <ThrowOnError extends boolean = true>(options: Options<GoogleUploadImageAssetData, ThrowOnError>) => RequestResult<GoogleUploadImageAssetResponses, GoogleUploadImageAssetErrors, ThrowOnError>;
|
|
578
|
+
/**
|
|
579
|
+
* List request logs
|
|
580
|
+
*
|
|
581
|
+
* **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
|
|
582
|
+
*
|
|
583
|
+
* Lists the API activity for your account — one entry per action, newest first. Filter by profile, connection, platform, status, source, action, or time range.
|
|
584
|
+
*/
|
|
585
|
+
declare const logsList: <ThrowOnError extends boolean = true>(options?: Options<LogsListData, ThrowOnError>) => RequestResult<LogsListResponses, LogsListErrors, ThrowOnError>;
|
|
586
|
+
/**
|
|
587
|
+
* Retrieve a request log
|
|
588
|
+
*
|
|
589
|
+
* **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
|
|
590
|
+
*
|
|
591
|
+
* Retrieves a single request log entry by id.
|
|
592
|
+
*/
|
|
593
|
+
declare const logsGet: <ThrowOnError extends boolean = true>(options: Options<LogsGetData, ThrowOnError>) => RequestResult<LogsGetResponses, LogsGetErrors, ThrowOnError>;
|
|
594
|
+
/**
|
|
595
|
+
* List webhook endpoints
|
|
596
|
+
*
|
|
597
|
+
* **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
|
|
598
|
+
*
|
|
599
|
+
* Lists the webhook endpoints registered for your account.
|
|
600
|
+
*/
|
|
601
|
+
declare const webhooksListEndpoints: <ThrowOnError extends boolean = true>(options?: Options<WebhooksListEndpointsData, ThrowOnError>) => RequestResult<WebhooksListEndpointsResponses, WebhooksListEndpointsErrors, ThrowOnError>;
|
|
602
|
+
/**
|
|
603
|
+
* Create a webhook endpoint
|
|
604
|
+
*
|
|
605
|
+
* **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
|
|
606
|
+
*
|
|
607
|
+
* Registers a URL to receive the chosen event types. Delivery, retries, and signing are handled for you.
|
|
608
|
+
*/
|
|
609
|
+
declare const webhooksCreateEndpoint: <ThrowOnError extends boolean = true>(options: Options<WebhooksCreateEndpointData, ThrowOnError>) => RequestResult<WebhooksCreateEndpointResponses, WebhooksCreateEndpointErrors, ThrowOnError>;
|
|
610
|
+
/**
|
|
611
|
+
* Delete a webhook endpoint
|
|
612
|
+
*
|
|
613
|
+
* **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
|
|
614
|
+
*
|
|
615
|
+
* Deletes a webhook endpoint. Delivery to it stops immediately.
|
|
616
|
+
*/
|
|
617
|
+
declare const webhooksDeleteEndpoint: <ThrowOnError extends boolean = true>(options: Options<WebhooksDeleteEndpointData, ThrowOnError>) => RequestResult<WebhooksDeleteEndpointResponses, WebhooksDeleteEndpointErrors, ThrowOnError>;
|
|
618
|
+
/**
|
|
619
|
+
* Retrieve a webhook endpoint
|
|
620
|
+
*
|
|
621
|
+
* **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
|
|
622
|
+
*
|
|
623
|
+
* Retrieves a single webhook endpoint by id.
|
|
624
|
+
*/
|
|
625
|
+
declare const webhooksGetEndpoint: <ThrowOnError extends boolean = true>(options: Options<WebhooksGetEndpointData, ThrowOnError>) => RequestResult<WebhooksGetEndpointResponses, WebhooksGetEndpointErrors, ThrowOnError>;
|
|
626
|
+
/**
|
|
627
|
+
* Update a webhook endpoint
|
|
628
|
+
*
|
|
629
|
+
* **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
|
|
630
|
+
*
|
|
631
|
+
* Updates a webhook endpoint. Send only the fields you want to change; provide at least one.
|
|
632
|
+
*/
|
|
633
|
+
declare const webhooksUpdateEndpoint: <ThrowOnError extends boolean = true>(options: Options<WebhooksUpdateEndpointData, ThrowOnError>) => RequestResult<WebhooksUpdateEndpointResponses, WebhooksUpdateEndpointErrors, ThrowOnError>;
|
|
634
|
+
/**
|
|
635
|
+
* Create a webhook portal link
|
|
636
|
+
*
|
|
637
|
+
* **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
|
|
638
|
+
*
|
|
639
|
+
* Mints a one-time App Portal URL where you (or your customer) self-serve webhook delivery logs and signing secrets.
|
|
640
|
+
*/
|
|
641
|
+
declare const webhooksCreatePortal: <ThrowOnError extends boolean = true>(options?: Options<WebhooksCreatePortalData, ThrowOnError>) => RequestResult<WebhooksCreatePortalResponses, WebhooksCreatePortalErrors, ThrowOnError>;
|
|
642
|
+
/**
|
|
643
|
+
* List webhook event types
|
|
644
|
+
*
|
|
645
|
+
* **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
|
|
646
|
+
*
|
|
647
|
+
* Lists the event types you can subscribe an endpoint to (the catalog).
|
|
648
|
+
*/
|
|
649
|
+
declare const webhooksListEventTypes: <ThrowOnError extends boolean = true>(options?: Options<WebhooksListEventTypesData, ThrowOnError>) => RequestResult<WebhooksListEventTypesResponses, WebhooksListEventTypesErrors, ThrowOnError>;
|
|
650
|
+
/**
|
|
651
|
+
* Send a test event
|
|
652
|
+
*
|
|
653
|
+
* **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
|
|
654
|
+
*
|
|
655
|
+
* Emits a `webhook.ping` event to your subscribed endpoints so you can verify delivery end to end.
|
|
656
|
+
*/
|
|
657
|
+
declare const webhooksPing: <ThrowOnError extends boolean = true>(options: Options<WebhooksPingData, ThrowOnError>) => RequestResult<WebhooksPingResponses, WebhooksPingErrors, ThrowOnError>;
|
|
658
|
+
/**
|
|
659
|
+
* Mint a scoped frontend token
|
|
660
|
+
*
|
|
661
|
+
* **Authentication.** Secret `pr_` API key only — this endpoint cannot be called with a browser token.
|
|
662
|
+
*
|
|
663
|
+
* Mints a short-lived, profile-scoped token from your secret `pr_` key. Call this from your backend; the returned token is safe to hand to a browser, which then calls the Postrun API directly. The secret key never touches the browser.
|
|
664
|
+
*/
|
|
665
|
+
declare const tokensMint: <ThrowOnError extends boolean = true>(options: Options<TokensMintData, ThrowOnError>) => RequestResult<TokensMintResponses, TokensMintErrors, ThrowOnError>;
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* The closed set of machine-readable Postrun error codes — DERIVED from the
|
|
669
|
+
* generated `ErrorCode` component union (emitted from the API's `ErrorCodeSchema`
|
|
670
|
+
* via the OpenAPI spec), never hand-listed. Branch on `PostrunError.code` and the
|
|
671
|
+
* compiler narrows + autocompletes the exact set the API can return. Each member
|
|
672
|
+
* documents itself at https://docs.postrun.ai/errors/<code>.
|
|
673
|
+
*/
|
|
674
|
+
type PostrunErrorCode = ErrorCode;
|
|
675
|
+
/**
|
|
676
|
+
* The RFC 9457 problem body the Postrun API returns on every transport error —
|
|
677
|
+
* its `encodeProblem` emits `{ type, title, status, code, detail, request_id?,
|
|
678
|
+
* errors? }`, with the human message in `detail`.
|
|
679
|
+
*
|
|
680
|
+
* Modeled here with a tolerant Zod schema rather than DERIVED from the generated
|
|
681
|
+
* types ON PURPOSE: the OpenAPI spec narrows `code` per-endpoint+status, so there
|
|
682
|
+
* is no single generated "problem body" type to derive from — we parse the real
|
|
683
|
+
* body here and surface the closed `code` union via `PostrunErrorCode`.
|
|
684
|
+
*/
|
|
685
|
+
declare const ProblemSchema: z.ZodObject<{
|
|
686
|
+
type: z.ZodOptional<z.ZodString>;
|
|
687
|
+
title: z.ZodOptional<z.ZodString>;
|
|
688
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
689
|
+
code: z.ZodOptional<z.ZodString>;
|
|
690
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
691
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
692
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
693
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
694
|
+
field: z.ZodString;
|
|
695
|
+
code: z.ZodString;
|
|
696
|
+
detail: z.ZodString;
|
|
697
|
+
}, z.core.$strip>>>;
|
|
698
|
+
}, z.core.$strip>;
|
|
699
|
+
type PostrunProblem = z.infer<typeof ProblemSchema>;
|
|
700
|
+
/** One invalid field on a validation (422) failure. */
|
|
701
|
+
type PostrunFieldError = NonNullable<PostrunProblem['errors']>[number];
|
|
702
|
+
/** A typed error thrown by the client on a failed request. */
|
|
703
|
+
declare class PostrunError extends Error {
|
|
704
|
+
readonly status: number;
|
|
705
|
+
/** The machine-readable code to branch on (closed union), if the body had one. */
|
|
706
|
+
readonly code?: PostrunErrorCode;
|
|
707
|
+
/** The request id for support/debugging (our `request_id`, or RFC `instance`). */
|
|
708
|
+
readonly request_id?: string;
|
|
709
|
+
/** Per-field validation problems on a 422, surfaced for convenience. */
|
|
710
|
+
readonly fieldErrors: PostrunFieldError[];
|
|
711
|
+
readonly problem?: PostrunProblem;
|
|
712
|
+
constructor(status: number, rawProblem?: unknown);
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Resource and input shapes, DERIVED from the generated Hey API operation types
|
|
717
|
+
* (`*Data` = request `{ body, path, query }`, `*Response` = success body). Never
|
|
718
|
+
* hand-declared — there is exactly one definition of each, sourced from the
|
|
719
|
+
* contract, so `pnpm generate` keeps them in lockstep with the live API.
|
|
720
|
+
*/
|
|
721
|
+
/** A profile — a client/brand workspace. */
|
|
722
|
+
type Profile = ProfilesGetResponse;
|
|
723
|
+
/** A page of profiles (the list envelope). */
|
|
724
|
+
type ProfileList = ProfilesListResponse;
|
|
725
|
+
/** Query parameters for listing profiles (filters + pagination). */
|
|
726
|
+
type ListProfilesQuery = NonNullable<ProfilesListData['query']>;
|
|
727
|
+
/** Request body to create a profile. */
|
|
728
|
+
type CreateProfileInput = NonNullable<ProfilesCreateData['body']>;
|
|
729
|
+
/** Request body to update a profile (send only what changes). */
|
|
730
|
+
type UpdateProfileInput = NonNullable<ProfilesUpdateData['body']>;
|
|
731
|
+
/** A connected social/ads account on a profile. */
|
|
732
|
+
type Connection = ConnectionsGetResponse;
|
|
733
|
+
/** A page of a profile's connections. */
|
|
734
|
+
type ConnectionList = ConnectionsListByProfileResponse;
|
|
735
|
+
/** The session returned when starting a connect (OAuth) flow. */
|
|
736
|
+
type ConnectSession = ConnectionsConnectResponse;
|
|
737
|
+
/** A platform a connection can start an OAuth connect flow for. */
|
|
738
|
+
type ConnectablePlatform = NonNullable<ConnectionsConnectData['body']>['platform'];
|
|
739
|
+
/** Accounts discoverable on a pending connection, for the selection step. */
|
|
740
|
+
type DiscoverableAccountList = ConnectionsListAccountsResponse;
|
|
741
|
+
/** Request body to select an account on a pending connection. */
|
|
742
|
+
type SelectAccountInput = NonNullable<ConnectionsSelectData['body']>;
|
|
743
|
+
/** The create/update post body, derived from the contract. */
|
|
744
|
+
type CreatePostBody = NonNullable<PostsCreateData['body']>;
|
|
745
|
+
/**
|
|
746
|
+
* One channel's variant on WRITE — the per-platform discriminated-union member
|
|
747
|
+
* with fully typed native `settings`. Preferred over the read resource's variant
|
|
748
|
+
* for anything that inspects settings (on read, `settings` is an opaque record);
|
|
749
|
+
* it is also the compose-time shape, which is exactly what a live preview renders.
|
|
750
|
+
*/
|
|
751
|
+
type PostVariantInput = CreatePostBody['variants'][number];
|
|
752
|
+
/** The X (Twitter) member of the write variant union — typed native settings
|
|
753
|
+
* (`quote_tweet_id`, `reply`, `poll`, …). Narrowed from the contract, never
|
|
754
|
+
* hand-declared. */
|
|
755
|
+
type XPostVariant = Extract<PostVariantInput, {
|
|
756
|
+
platform: 'x';
|
|
757
|
+
}>;
|
|
758
|
+
/** The LinkedIn member of the write variant union — typed native settings
|
|
759
|
+
* (`content_kind`, `visibility`, `article`, `poll`, `document`, `mentions`).
|
|
760
|
+
* Narrowed from the contract, never hand-declared. */
|
|
761
|
+
type LinkedInPostVariant = Extract<PostVariantInput, {
|
|
762
|
+
platform: 'linkedin';
|
|
763
|
+
}>;
|
|
764
|
+
/** A post — its variants, schedule, and derived status (the read resource). */
|
|
765
|
+
type Post = PostsGetResponse;
|
|
766
|
+
/** A page of posts (the calendar/queue list). */
|
|
767
|
+
type PostList = PostsListResponse;
|
|
768
|
+
/** Query parameters for listing posts (filters + pagination). */
|
|
769
|
+
type ListPostsQuery = NonNullable<PostsListData['query']>;
|
|
770
|
+
/**
|
|
771
|
+
* A post's derived rollup status — the values accepted by the list `status`
|
|
772
|
+
* filter (draft / scheduled / publishing / partially_published / published /
|
|
773
|
+
* failed). Sourced from the generated query contract, never hand-listed.
|
|
774
|
+
*/
|
|
775
|
+
type PostStatus = NonNullable<ListPostsQuery['status']>[number];
|
|
776
|
+
/** The full create-post request body — what `buildCreatePost` produces. */
|
|
777
|
+
type CreatePostInput = CreatePostBody;
|
|
778
|
+
/** The update-post request body — what `buildUpdatePost` produces. */
|
|
779
|
+
type UpdatePostInput = NonNullable<PostsUpdateData['body']>;
|
|
780
|
+
/** A posting platform — the variant discriminator (x / linkedin / …). */
|
|
781
|
+
type PostPlatform = PostVariantInput['platform'];
|
|
782
|
+
/** The allowed `post_type` union for a given platform. */
|
|
783
|
+
type PostTypeFor<P extends PostPlatform> = Extract<PostVariantInput, {
|
|
784
|
+
platform: P;
|
|
785
|
+
}>['post_type'];
|
|
786
|
+
/** The native `settings` shape for a given platform (typed per channel). */
|
|
787
|
+
type SettingsFor<P extends PostPlatform> = Extract<PostVariantInput, {
|
|
788
|
+
platform: P;
|
|
789
|
+
}>['settings'];
|
|
790
|
+
/** Publish mode: `now` | `schedule` | `draft`. */
|
|
791
|
+
type PublishMode = NonNullable<CreatePostBody['publish']>;
|
|
792
|
+
/** Customer metadata on a post (the shared scalar map). */
|
|
793
|
+
type PostMetadata = NonNullable<CreatePostBody['metadata']>;
|
|
794
|
+
/** A media asset (image/video/gif/document) with its per-platform renditions. */
|
|
795
|
+
type MediaResource = MediaGetResponse;
|
|
796
|
+
/** A media asset's kind (image / video / gif / document), from the contract. */
|
|
797
|
+
type MediaKind = MediaResource['kind'];
|
|
798
|
+
/** A media render target — a post platform or `google_ads`. */
|
|
799
|
+
type MediaTarget = NonNullable<NonNullable<MediaCreateData['body']>['targets']>[number];
|
|
800
|
+
/** The create-media response: the resource plus a signed upload target. */
|
|
801
|
+
type CreateMediaResult = MediaCreateResponse;
|
|
802
|
+
/** The signed direct-to-storage upload target returned on create. */
|
|
803
|
+
type UploadTarget = NonNullable<CreateMediaResult['upload']>;
|
|
804
|
+
/** Request body to create a media asset. */
|
|
805
|
+
type CreateMediaInput = NonNullable<MediaCreateData['body']>;
|
|
806
|
+
/** Request body to update a media asset (alt text / metadata / extend targets). */
|
|
807
|
+
type UpdateMediaInput = NonNullable<MediaUpdateData['body']>;
|
|
808
|
+
|
|
809
|
+
/** A media attachment — the uploaded asset (or just its id + kind). */
|
|
810
|
+
type MediaInput = Pick<MediaResource, 'id' | 'kind'>;
|
|
811
|
+
/** Base content, shared across channels unless a channel overrides it. */
|
|
812
|
+
interface PostContent {
|
|
813
|
+
body?: string;
|
|
814
|
+
media?: readonly MediaInput[];
|
|
815
|
+
}
|
|
816
|
+
/**
|
|
817
|
+
* One channel's config. The SDK owns the plumbing (connection, media, assembly)
|
|
818
|
+
* and derives `post_type` from the media; the CUSTOMER owns `settings` — the
|
|
819
|
+
* platform's native, fully-typed config. An Instagram setting on an X channel is
|
|
820
|
+
* a compile error. `postType` is an optional override of the derived value.
|
|
821
|
+
*/
|
|
822
|
+
interface ChannelConfig<P extends PostPlatform> {
|
|
823
|
+
settings: SettingsFor<P>;
|
|
824
|
+
postType?: PostTypeFor<P>;
|
|
825
|
+
body?: string;
|
|
826
|
+
media?: readonly MediaInput[];
|
|
827
|
+
connectionId?: string;
|
|
828
|
+
}
|
|
829
|
+
/** Channels keyed by platform — each value typed to that platform. */
|
|
830
|
+
type Channels = {
|
|
831
|
+
[P in PostPlatform]?: ChannelConfig<P>;
|
|
832
|
+
};
|
|
833
|
+
interface ComposePostInput {
|
|
834
|
+
profileId: string;
|
|
835
|
+
content?: PostContent;
|
|
836
|
+
channels: Channels;
|
|
837
|
+
publish?: PublishMode;
|
|
838
|
+
scheduleAt?: string;
|
|
839
|
+
externalId?: string;
|
|
840
|
+
metadata?: PostMetadata;
|
|
841
|
+
tags?: readonly string[];
|
|
842
|
+
notes?: string;
|
|
843
|
+
dryRun?: boolean;
|
|
844
|
+
}
|
|
845
|
+
/** A post edit. Omit `channels` for a light edit; include it to rebuild variants. */
|
|
846
|
+
interface ComposeUpdateInput {
|
|
847
|
+
content?: PostContent;
|
|
848
|
+
channels?: Channels;
|
|
849
|
+
publish?: PublishMode;
|
|
850
|
+
scheduleAt?: string;
|
|
851
|
+
externalId?: string;
|
|
852
|
+
metadata?: PostMetadata;
|
|
853
|
+
tags?: readonly string[];
|
|
854
|
+
notes?: string;
|
|
855
|
+
dryRun?: boolean;
|
|
856
|
+
}
|
|
857
|
+
/** The connections a build resolves against (accepts a full `Connection[]`). */
|
|
858
|
+
type ConnectionRef = Pick<Connection, 'id' | 'platform'>;
|
|
859
|
+
/** Thrown when a post can't be composed (no connection, unsupported media, …). */
|
|
860
|
+
declare class ComposeError extends Error {
|
|
861
|
+
constructor(message: string);
|
|
862
|
+
}
|
|
863
|
+
/** Narrow any platform string to a posting platform. */
|
|
864
|
+
declare function isPostPlatform(value: string): value is PostPlatform;
|
|
865
|
+
/** Posting platforms — the single source, derived from the handler registry
|
|
866
|
+
* (the `.filter` type-guard narrows `string[]` → `PostPlatform[]`, cast-free). */
|
|
867
|
+
declare const POST_PLATFORMS: PostPlatform[];
|
|
868
|
+
/**
|
|
869
|
+
* Turn an ergonomic `{ content, channels }` input into the exact
|
|
870
|
+
* `CreatePostInput` the API expects — resolving each channel's connection,
|
|
871
|
+
* attaching the shared/overridden media, and deriving `post_type` from that
|
|
872
|
+
* media. The customer never assembles `variants[]` or sees a `connection_id`,
|
|
873
|
+
* and owns each channel's typed `settings`.
|
|
874
|
+
*/
|
|
875
|
+
declare function buildCreatePost(input: ComposePostInput, connections: readonly ConnectionRef[]): CreatePostInput;
|
|
876
|
+
/**
|
|
877
|
+
* Build an `UpdatePostInput`. With `channels`, the full variant set is rebuilt
|
|
878
|
+
* (the API's PATCH replaces it); without it, only the envelope changes.
|
|
879
|
+
*/
|
|
880
|
+
declare function buildUpdatePost(input: ComposeUpdateInput, connections?: readonly ConnectionRef[]): UpdatePostInput;
|
|
881
|
+
|
|
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 };
|