@zernio/node 0.2.1485 → 0.2.1487
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 +47 -9
- package/dist/index.d.ts +47 -9
- 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 +15 -1
- package/src/generated/types.gen.ts +46 -6
|
@@ -29001,6 +29001,50 @@ export type CreateInviteTokenError = (unknown | ErrorResponse | {
|
|
|
29001
29001
|
required_group?: 'publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks' | 'commerce' | 'creator_campaigns' | 'money' | 'calendar' | 'files';
|
|
29002
29002
|
});
|
|
29003
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
|
+
|
|
29004
29048
|
export type GetConnectUrlData = {
|
|
29005
29049
|
path: {
|
|
29006
29050
|
/**
|
|
@@ -54665,9 +54709,7 @@ export type UpdateAdResponse = ({
|
|
|
54665
54709
|
message?: string;
|
|
54666
54710
|
});
|
|
54667
54711
|
|
|
54668
|
-
export type UpdateAdError = (unknown | ErrorResponse
|
|
54669
|
-
error?: string;
|
|
54670
|
-
});
|
|
54712
|
+
export type UpdateAdError = (unknown | ErrorResponse);
|
|
54671
54713
|
|
|
54672
54714
|
export type DeleteAdData = {
|
|
54673
54715
|
path: {
|
|
@@ -54679,9 +54721,7 @@ export type DeleteAdResponse = ({
|
|
|
54679
54721
|
message?: string;
|
|
54680
54722
|
});
|
|
54681
54723
|
|
|
54682
|
-
export type DeleteAdError = (ErrorResponse
|
|
54683
|
-
error?: string;
|
|
54684
|
-
});
|
|
54724
|
+
export type DeleteAdError = (ErrorResponse);
|
|
54685
54725
|
|
|
54686
54726
|
export type UpdateAdStatusData = {
|
|
54687
54727
|
body: {
|