@zernio/node 0.2.117 → 0.2.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +47 -7
- package/dist/index.d.ts +47 -7
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +5 -3
- package/src/generated/types.gen.ts +47 -7
package/dist/index.d.mts
CHANGED
|
@@ -2876,9 +2876,9 @@ type SnapchatPlatformData = {
|
|
|
2876
2876
|
*/
|
|
2877
2877
|
type contentType3 = 'story' | 'saved_story' | 'spotlight';
|
|
2878
2878
|
type SocialAccount = {
|
|
2879
|
-
_id
|
|
2880
|
-
platform
|
|
2881
|
-
profileId
|
|
2879
|
+
_id: string;
|
|
2880
|
+
platform: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'whatsapp' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads';
|
|
2881
|
+
profileId: (string | Profile);
|
|
2882
2882
|
username?: string;
|
|
2883
2883
|
displayName?: string;
|
|
2884
2884
|
/**
|
|
@@ -2889,7 +2889,7 @@ type SocialAccount = {
|
|
|
2889
2889
|
* Full profile URL for the connected account on its platform.
|
|
2890
2890
|
*/
|
|
2891
2891
|
profileUrl?: string;
|
|
2892
|
-
isActive
|
|
2892
|
+
isActive: boolean;
|
|
2893
2893
|
/**
|
|
2894
2894
|
* Follower count (only included if user has analytics add-on)
|
|
2895
2895
|
*/
|
|
@@ -5950,11 +5950,11 @@ type ListAccountsData = {
|
|
|
5950
5950
|
};
|
|
5951
5951
|
};
|
|
5952
5952
|
type ListAccountsResponse = ({
|
|
5953
|
-
accounts
|
|
5953
|
+
accounts: Array<SocialAccount>;
|
|
5954
5954
|
/**
|
|
5955
5955
|
* Whether user has analytics add-on access
|
|
5956
5956
|
*/
|
|
5957
|
-
hasAnalyticsAccess
|
|
5957
|
+
hasAnalyticsAccess: boolean;
|
|
5958
5958
|
/**
|
|
5959
5959
|
* Only present when page/limit params are provided
|
|
5960
5960
|
*/
|
|
@@ -10468,7 +10468,10 @@ type SendPrivateReplyToCommentData = {
|
|
|
10468
10468
|
message: string;
|
|
10469
10469
|
/**
|
|
10470
10470
|
* Optional quick-reply chips appended to the message. Visible only in the
|
|
10471
|
-
* Instagram and Messenger apps (not on web). Maximum 13 entries.
|
|
10471
|
+
* Instagram and Messenger apps (not on web). Maximum 13 entries. Mutually
|
|
10472
|
+
* exclusive with `buttons`. Note: chips do NOT render in the Instagram
|
|
10473
|
+
* Message Requests folder where DMs from non-followers land — use `buttons`
|
|
10474
|
+
* instead for cold reach.
|
|
10472
10475
|
*
|
|
10473
10476
|
*/
|
|
10474
10477
|
quickReplies?: Array<{
|
|
@@ -10485,6 +10488,43 @@ type SendPrivateReplyToCommentData = {
|
|
|
10485
10488
|
*/
|
|
10486
10489
|
imageUrl?: string;
|
|
10487
10490
|
}>;
|
|
10491
|
+
/**
|
|
10492
|
+
* Optional 1-3 inline buttons rendered as part of the same message bubble
|
|
10493
|
+
* via Meta's button_template. Visible in the Instagram Message Requests
|
|
10494
|
+
* folder (unlike quick replies). Mutually exclusive with `quickReplies`.
|
|
10495
|
+
*
|
|
10496
|
+
*/
|
|
10497
|
+
buttons?: Array<({
|
|
10498
|
+
type: 'url';
|
|
10499
|
+
/**
|
|
10500
|
+
* Label shown on the button.
|
|
10501
|
+
*/
|
|
10502
|
+
title: string;
|
|
10503
|
+
/**
|
|
10504
|
+
* URL opened when the button is tapped.
|
|
10505
|
+
*/
|
|
10506
|
+
url: string;
|
|
10507
|
+
} | {
|
|
10508
|
+
type: 'postback';
|
|
10509
|
+
/**
|
|
10510
|
+
* Label shown on the button.
|
|
10511
|
+
*/
|
|
10512
|
+
title: string;
|
|
10513
|
+
/**
|
|
10514
|
+
* Opaque value returned in the inbound webhook when the user taps the button.
|
|
10515
|
+
*/
|
|
10516
|
+
payload: string;
|
|
10517
|
+
} | {
|
|
10518
|
+
type: 'phone';
|
|
10519
|
+
/**
|
|
10520
|
+
* Label shown on the button. Facebook only.
|
|
10521
|
+
*/
|
|
10522
|
+
title: string;
|
|
10523
|
+
/**
|
|
10524
|
+
* E.164 phone number dialed when tapped. Facebook only.
|
|
10525
|
+
*/
|
|
10526
|
+
phone: string;
|
|
10527
|
+
})>;
|
|
10488
10528
|
};
|
|
10489
10529
|
path: {
|
|
10490
10530
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -2876,9 +2876,9 @@ type SnapchatPlatformData = {
|
|
|
2876
2876
|
*/
|
|
2877
2877
|
type contentType3 = 'story' | 'saved_story' | 'spotlight';
|
|
2878
2878
|
type SocialAccount = {
|
|
2879
|
-
_id
|
|
2880
|
-
platform
|
|
2881
|
-
profileId
|
|
2879
|
+
_id: string;
|
|
2880
|
+
platform: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'whatsapp' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads';
|
|
2881
|
+
profileId: (string | Profile);
|
|
2882
2882
|
username?: string;
|
|
2883
2883
|
displayName?: string;
|
|
2884
2884
|
/**
|
|
@@ -2889,7 +2889,7 @@ type SocialAccount = {
|
|
|
2889
2889
|
* Full profile URL for the connected account on its platform.
|
|
2890
2890
|
*/
|
|
2891
2891
|
profileUrl?: string;
|
|
2892
|
-
isActive
|
|
2892
|
+
isActive: boolean;
|
|
2893
2893
|
/**
|
|
2894
2894
|
* Follower count (only included if user has analytics add-on)
|
|
2895
2895
|
*/
|
|
@@ -5950,11 +5950,11 @@ type ListAccountsData = {
|
|
|
5950
5950
|
};
|
|
5951
5951
|
};
|
|
5952
5952
|
type ListAccountsResponse = ({
|
|
5953
|
-
accounts
|
|
5953
|
+
accounts: Array<SocialAccount>;
|
|
5954
5954
|
/**
|
|
5955
5955
|
* Whether user has analytics add-on access
|
|
5956
5956
|
*/
|
|
5957
|
-
hasAnalyticsAccess
|
|
5957
|
+
hasAnalyticsAccess: boolean;
|
|
5958
5958
|
/**
|
|
5959
5959
|
* Only present when page/limit params are provided
|
|
5960
5960
|
*/
|
|
@@ -10468,7 +10468,10 @@ type SendPrivateReplyToCommentData = {
|
|
|
10468
10468
|
message: string;
|
|
10469
10469
|
/**
|
|
10470
10470
|
* Optional quick-reply chips appended to the message. Visible only in the
|
|
10471
|
-
* Instagram and Messenger apps (not on web). Maximum 13 entries.
|
|
10471
|
+
* Instagram and Messenger apps (not on web). Maximum 13 entries. Mutually
|
|
10472
|
+
* exclusive with `buttons`. Note: chips do NOT render in the Instagram
|
|
10473
|
+
* Message Requests folder where DMs from non-followers land — use `buttons`
|
|
10474
|
+
* instead for cold reach.
|
|
10472
10475
|
*
|
|
10473
10476
|
*/
|
|
10474
10477
|
quickReplies?: Array<{
|
|
@@ -10485,6 +10488,43 @@ type SendPrivateReplyToCommentData = {
|
|
|
10485
10488
|
*/
|
|
10486
10489
|
imageUrl?: string;
|
|
10487
10490
|
}>;
|
|
10491
|
+
/**
|
|
10492
|
+
* Optional 1-3 inline buttons rendered as part of the same message bubble
|
|
10493
|
+
* via Meta's button_template. Visible in the Instagram Message Requests
|
|
10494
|
+
* folder (unlike quick replies). Mutually exclusive with `quickReplies`.
|
|
10495
|
+
*
|
|
10496
|
+
*/
|
|
10497
|
+
buttons?: Array<({
|
|
10498
|
+
type: 'url';
|
|
10499
|
+
/**
|
|
10500
|
+
* Label shown on the button.
|
|
10501
|
+
*/
|
|
10502
|
+
title: string;
|
|
10503
|
+
/**
|
|
10504
|
+
* URL opened when the button is tapped.
|
|
10505
|
+
*/
|
|
10506
|
+
url: string;
|
|
10507
|
+
} | {
|
|
10508
|
+
type: 'postback';
|
|
10509
|
+
/**
|
|
10510
|
+
* Label shown on the button.
|
|
10511
|
+
*/
|
|
10512
|
+
title: string;
|
|
10513
|
+
/**
|
|
10514
|
+
* Opaque value returned in the inbound webhook when the user taps the button.
|
|
10515
|
+
*/
|
|
10516
|
+
payload: string;
|
|
10517
|
+
} | {
|
|
10518
|
+
type: 'phone';
|
|
10519
|
+
/**
|
|
10520
|
+
* Label shown on the button. Facebook only.
|
|
10521
|
+
*/
|
|
10522
|
+
title: string;
|
|
10523
|
+
/**
|
|
10524
|
+
* E.164 phone number dialed when tapped. Facebook only.
|
|
10525
|
+
*/
|
|
10526
|
+
phone: string;
|
|
10527
|
+
})>;
|
|
10488
10528
|
};
|
|
10489
10529
|
path: {
|
|
10490
10530
|
/**
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -2174,9 +2174,11 @@ export const unlikeInboxComment = <ThrowOnError extends boolean = false>(options
|
|
|
2174
2174
|
/**
|
|
2175
2175
|
* Send private reply
|
|
2176
2176
|
* Send a private message to the author of a comment. Supported on Instagram and Facebook only.
|
|
2177
|
-
* One reply per comment, must be sent within 7 days. Optionally
|
|
2178
|
-
*
|
|
2179
|
-
*
|
|
2177
|
+
* One reply per comment, must be sent within 7 days. Optionally attach interactive elements:
|
|
2178
|
+
* `quickReplies` (chips above the keyboard, max 13) or `buttons` (1-3 inline postback/url
|
|
2179
|
+
* buttons rendered in the same bubble via Meta's button_template). Buttons are recommended
|
|
2180
|
+
* for cold reach since chips do not render in the Instagram Message Requests folder.
|
|
2181
|
+
* `quickReplies` and `buttons` are mutually exclusive.
|
|
2180
2182
|
*
|
|
2181
2183
|
*/
|
|
2182
2184
|
export const sendPrivateReplyToComment = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SendPrivateReplyToCommentData, ThrowOnError>) => {
|
|
@@ -2378,9 +2378,9 @@ export type SnapchatPlatformData = {
|
|
|
2378
2378
|
export type contentType3 = 'story' | 'saved_story' | 'spotlight';
|
|
2379
2379
|
|
|
2380
2380
|
export type SocialAccount = {
|
|
2381
|
-
_id
|
|
2382
|
-
platform
|
|
2383
|
-
profileId
|
|
2381
|
+
_id: string;
|
|
2382
|
+
platform: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'whatsapp' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads';
|
|
2383
|
+
profileId: (string | Profile);
|
|
2384
2384
|
username?: string;
|
|
2385
2385
|
displayName?: string;
|
|
2386
2386
|
/**
|
|
@@ -2391,7 +2391,7 @@ export type SocialAccount = {
|
|
|
2391
2391
|
* Full profile URL for the connected account on its platform.
|
|
2392
2392
|
*/
|
|
2393
2393
|
profileUrl?: string;
|
|
2394
|
-
isActive
|
|
2394
|
+
isActive: boolean;
|
|
2395
2395
|
/**
|
|
2396
2396
|
* Follower count (only included if user has analytics add-on)
|
|
2397
2397
|
*/
|
|
@@ -5659,11 +5659,11 @@ export type ListAccountsData = {
|
|
|
5659
5659
|
};
|
|
5660
5660
|
|
|
5661
5661
|
export type ListAccountsResponse = ({
|
|
5662
|
-
accounts
|
|
5662
|
+
accounts: Array<SocialAccount>;
|
|
5663
5663
|
/**
|
|
5664
5664
|
* Whether user has analytics add-on access
|
|
5665
5665
|
*/
|
|
5666
|
-
hasAnalyticsAccess
|
|
5666
|
+
hasAnalyticsAccess: boolean;
|
|
5667
5667
|
/**
|
|
5668
5668
|
* Only present when page/limit params are provided
|
|
5669
5669
|
*/
|
|
@@ -10507,7 +10507,10 @@ export type SendPrivateReplyToCommentData = {
|
|
|
10507
10507
|
message: string;
|
|
10508
10508
|
/**
|
|
10509
10509
|
* Optional quick-reply chips appended to the message. Visible only in the
|
|
10510
|
-
* Instagram and Messenger apps (not on web). Maximum 13 entries.
|
|
10510
|
+
* Instagram and Messenger apps (not on web). Maximum 13 entries. Mutually
|
|
10511
|
+
* exclusive with `buttons`. Note: chips do NOT render in the Instagram
|
|
10512
|
+
* Message Requests folder where DMs from non-followers land — use `buttons`
|
|
10513
|
+
* instead for cold reach.
|
|
10511
10514
|
*
|
|
10512
10515
|
*/
|
|
10513
10516
|
quickReplies?: Array<{
|
|
@@ -10524,6 +10527,43 @@ export type SendPrivateReplyToCommentData = {
|
|
|
10524
10527
|
*/
|
|
10525
10528
|
imageUrl?: string;
|
|
10526
10529
|
}>;
|
|
10530
|
+
/**
|
|
10531
|
+
* Optional 1-3 inline buttons rendered as part of the same message bubble
|
|
10532
|
+
* via Meta's button_template. Visible in the Instagram Message Requests
|
|
10533
|
+
* folder (unlike quick replies). Mutually exclusive with `quickReplies`.
|
|
10534
|
+
*
|
|
10535
|
+
*/
|
|
10536
|
+
buttons?: Array<({
|
|
10537
|
+
type: 'url';
|
|
10538
|
+
/**
|
|
10539
|
+
* Label shown on the button.
|
|
10540
|
+
*/
|
|
10541
|
+
title: string;
|
|
10542
|
+
/**
|
|
10543
|
+
* URL opened when the button is tapped.
|
|
10544
|
+
*/
|
|
10545
|
+
url: string;
|
|
10546
|
+
} | {
|
|
10547
|
+
type: 'postback';
|
|
10548
|
+
/**
|
|
10549
|
+
* Label shown on the button.
|
|
10550
|
+
*/
|
|
10551
|
+
title: string;
|
|
10552
|
+
/**
|
|
10553
|
+
* Opaque value returned in the inbound webhook when the user taps the button.
|
|
10554
|
+
*/
|
|
10555
|
+
payload: string;
|
|
10556
|
+
} | {
|
|
10557
|
+
type: 'phone';
|
|
10558
|
+
/**
|
|
10559
|
+
* Label shown on the button. Facebook only.
|
|
10560
|
+
*/
|
|
10561
|
+
title: string;
|
|
10562
|
+
/**
|
|
10563
|
+
* E.164 phone number dialed when tapped. Facebook only.
|
|
10564
|
+
*/
|
|
10565
|
+
phone: string;
|
|
10566
|
+
})>;
|
|
10527
10567
|
};
|
|
10528
10568
|
path: {
|
|
10529
10569
|
/**
|