@zernio/node 0.2.1484 → 0.2.1486
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/README.md +1 -0
- package/dist/index.d.mts +77 -2
- package/dist/index.d.ts +77 -2
- package/dist/index.js +8 -1
- package/dist/index.mjs +8 -1
- package/package.json +1 -1
- package/src/client.ts +2 -0
- package/src/generated/sdk.gen.ts +19 -1
- package/src/generated/types.gen.ts +78 -1
|
@@ -15086,6 +15086,13 @@ export type SocialAccount = {
|
|
|
15086
15086
|
*
|
|
15087
15087
|
*/
|
|
15088
15088
|
enabled?: boolean;
|
|
15089
|
+
/**
|
|
15090
|
+
* Facebook accounts only (absent on every other platform). Whether this Facebook account syncs the Meta ads of the ad accounts it reaches, the way a `metaads` connection does.
|
|
15091
|
+
*
|
|
15092
|
+
* Off by default; set it with `PUT /v1/accounts/{accountId}`. Synced active ads count on the managed ads meter like ads from a Meta Ads connection.
|
|
15093
|
+
*
|
|
15094
|
+
*/
|
|
15095
|
+
metaAdsSyncEnabled?: boolean;
|
|
15089
15096
|
/**
|
|
15090
15097
|
* End of the account's publishing cooldown. Compare it with the current time: a value in the past means the cooldown has ended (the field is cleared on the next successful publish); null means no cooldown since the last successful publish.
|
|
15091
15098
|
*
|
|
@@ -27948,6 +27955,28 @@ export type UpdateAccountData = {
|
|
|
27948
27955
|
*/
|
|
27949
27956
|
inbox?: boolean;
|
|
27950
27957
|
};
|
|
27958
|
+
/**
|
|
27959
|
+
* Facebook only (400 `invalid_field_value` on any other platform). Off by default for every Facebook account.
|
|
27960
|
+
*
|
|
27961
|
+
* `true` makes this account sync the Meta ads of the ad accounts it reaches, like a `metaads` connection.
|
|
27962
|
+
*
|
|
27963
|
+
* - The first sync starts at once (14 days, then 90 days of history in the background) and fires `account.ads.initial_sync_completed` for this `accountId` with `platform: metaads`.
|
|
27964
|
+
* - It then refreshes on the Meta Ads schedule.
|
|
27965
|
+
* - Each switch from `false` to `true` runs another initial sync and fires the webhook again. Sending `true` while it is on changes nothing.
|
|
27966
|
+
* - Needs `ads_management` and `ads_read` on the account (403 `reconnect_required` otherwise, with `details.requiredPermissions`).
|
|
27967
|
+
* - Needs ads access (403 `ads_addon_required`) and room in the managed ads allowance (403 `ads_allowance_exceeded`).
|
|
27968
|
+
* - While a `metaads` connection has this account as `parentAccountId`, that connection syncs the ads instead.
|
|
27969
|
+
*
|
|
27970
|
+
* Synced active ads count on the managed ads meter like ads from a Meta Ads
|
|
27971
|
+
* connection.
|
|
27972
|
+
*
|
|
27973
|
+
* `false` stops the sync. Ads already synced are kept, never deleted: they
|
|
27974
|
+
* stop updating and stop counting on the meter, and a `metaads` connection
|
|
27975
|
+
* of yours that reaches the same ad account takes them over. Posting, inbox
|
|
27976
|
+
* and comments on the account are not affected.
|
|
27977
|
+
*
|
|
27978
|
+
*/
|
|
27979
|
+
metaAdsSyncEnabled?: boolean;
|
|
27951
27980
|
};
|
|
27952
27981
|
path: {
|
|
27953
27982
|
accountId: string;
|
|
@@ -27967,9 +27996,13 @@ export type UpdateAccountResponse = ({
|
|
|
27967
27996
|
analytics?: boolean;
|
|
27968
27997
|
inbox?: boolean;
|
|
27969
27998
|
};
|
|
27999
|
+
/**
|
|
28000
|
+
* The resulting setting, returned only when the request body included `metaAdsSyncEnabled`.
|
|
28001
|
+
*/
|
|
28002
|
+
metaAdsSyncEnabled?: boolean;
|
|
27970
28003
|
});
|
|
27971
28004
|
|
|
27972
|
-
export type UpdateAccountError = (
|
|
28005
|
+
export type UpdateAccountError = (ErrorResponse | unknown | {
|
|
27973
28006
|
error?: string;
|
|
27974
28007
|
});
|
|
27975
28008
|
|
|
@@ -28968,6 +29001,50 @@ export type CreateInviteTokenError = (unknown | ErrorResponse | {
|
|
|
28968
29001
|
required_group?: 'publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks' | 'commerce' | 'creator_campaigns' | 'money' | 'calendar' | 'files';
|
|
28969
29002
|
});
|
|
28970
29003
|
|
|
29004
|
+
export type CreatePlatformInviteData = {
|
|
29005
|
+
body: {
|
|
29006
|
+
/**
|
|
29007
|
+
* The profile the account is connected to.
|
|
29008
|
+
*/
|
|
29009
|
+
profileId: string;
|
|
29010
|
+
platform: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'threads' | 'tiktok' | 'youtube' | 'pinterest' | 'reddit' | 'bluesky' | 'snapchat' | 'googlebusiness';
|
|
29011
|
+
/**
|
|
29012
|
+
* Reconnect this existing account instead of adding a new one. It must belong to the profile and platform.
|
|
29013
|
+
*/
|
|
29014
|
+
accountId?: string;
|
|
29015
|
+
/**
|
|
29016
|
+
* Instagram only. instagram_login (the default) uses Instagram Login, facebook_login uses Facebook Login. A reconnect link keeps the method the account was connected with.
|
|
29017
|
+
*/
|
|
29018
|
+
loginMethod?: 'instagram_login' | 'facebook_login';
|
|
29019
|
+
/**
|
|
29020
|
+
* Days until the link expires.
|
|
29021
|
+
*/
|
|
29022
|
+
expiresInDays?: number;
|
|
29023
|
+
};
|
|
29024
|
+
};
|
|
29025
|
+
|
|
29026
|
+
export type CreatePlatformInviteResponse = ({
|
|
29027
|
+
invite?: {
|
|
29028
|
+
_id?: string;
|
|
29029
|
+
platform?: string;
|
|
29030
|
+
loginMethod?: ('instagram_login' | 'facebook_login') | null;
|
|
29031
|
+
accountId?: (string) | null;
|
|
29032
|
+
expiresAt?: string;
|
|
29033
|
+
inviteUrl?: string;
|
|
29034
|
+
};
|
|
29035
|
+
});
|
|
29036
|
+
|
|
29037
|
+
export type CreatePlatformInviteError = (ErrorResponse | {
|
|
29038
|
+
error?: string;
|
|
29039
|
+
code?: 'insufficient_permissions' | 'unclassified_resource';
|
|
29040
|
+
/**
|
|
29041
|
+
* The resource group the key needs for this operation. Absent on admin-plane and unclassified-path denials.
|
|
29042
|
+
*/
|
|
29043
|
+
required_group?: 'publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks' | 'commerce' | 'creator_campaigns' | 'money' | 'calendar' | 'files';
|
|
29044
|
+
} | {
|
|
29045
|
+
error?: string;
|
|
29046
|
+
});
|
|
29047
|
+
|
|
28971
29048
|
export type GetConnectUrlData = {
|
|
28972
29049
|
path: {
|
|
28973
29050
|
/**
|