@zernio/node 0.2.448 → 0.2.450
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 +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +4 -0
- package/src/generated/types.gen.ts +6 -3
package/dist/index.d.mts
CHANGED
|
@@ -6646,7 +6646,7 @@ type WebhookPayloadConversationStarted = {
|
|
|
6646
6646
|
* Internal conversation ID
|
|
6647
6647
|
*/
|
|
6648
6648
|
id: string;
|
|
6649
|
-
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms';
|
|
6649
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'slack';
|
|
6650
6650
|
platformConversationId: string;
|
|
6651
6651
|
/**
|
|
6652
6652
|
* Contact's platform identifier (IGSID, PSID, wa_id, etc.)
|
|
@@ -6678,7 +6678,7 @@ type WebhookPayloadConversationStarted = {
|
|
|
6678
6678
|
timestamp: string;
|
|
6679
6679
|
};
|
|
6680
6680
|
type event10 = 'conversation.started';
|
|
6681
|
-
type platform8 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms';
|
|
6681
|
+
type platform8 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'slack';
|
|
6682
6682
|
/**
|
|
6683
6683
|
* Webhook payload for post.external.created / post.external.updated /
|
|
6684
6684
|
* post.external.deleted. Fired by Zernio's background sync when it detects a
|
|
@@ -15354,7 +15354,7 @@ type SearchInboxConversationsData = {
|
|
|
15354
15354
|
/**
|
|
15355
15355
|
* Filter by platform (searchable platforms only)
|
|
15356
15356
|
*/
|
|
15357
|
-
platform?: 'facebook' | 'instagram' | 'telegram' | 'whatsapp' | 'sms';
|
|
15357
|
+
platform?: 'facebook' | 'instagram' | 'telegram' | 'whatsapp' | 'sms' | 'slack';
|
|
15358
15358
|
/**
|
|
15359
15359
|
* Filter by profile ID
|
|
15360
15360
|
*/
|
|
@@ -16819,6 +16819,9 @@ type GetInboxPostCommentsResponse = ({
|
|
|
16819
16819
|
} | null;
|
|
16820
16820
|
pagination?: {
|
|
16821
16821
|
hasMore?: boolean;
|
|
16822
|
+
/**
|
|
16823
|
+
* Only present when hasMore is true. Absent on the last page, so treat its absence as the end of the thread.
|
|
16824
|
+
*/
|
|
16822
16825
|
cursor?: (string) | null;
|
|
16823
16826
|
};
|
|
16824
16827
|
meta?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -6646,7 +6646,7 @@ type WebhookPayloadConversationStarted = {
|
|
|
6646
6646
|
* Internal conversation ID
|
|
6647
6647
|
*/
|
|
6648
6648
|
id: string;
|
|
6649
|
-
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms';
|
|
6649
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'slack';
|
|
6650
6650
|
platformConversationId: string;
|
|
6651
6651
|
/**
|
|
6652
6652
|
* Contact's platform identifier (IGSID, PSID, wa_id, etc.)
|
|
@@ -6678,7 +6678,7 @@ type WebhookPayloadConversationStarted = {
|
|
|
6678
6678
|
timestamp: string;
|
|
6679
6679
|
};
|
|
6680
6680
|
type event10 = 'conversation.started';
|
|
6681
|
-
type platform8 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms';
|
|
6681
|
+
type platform8 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'slack';
|
|
6682
6682
|
/**
|
|
6683
6683
|
* Webhook payload for post.external.created / post.external.updated /
|
|
6684
6684
|
* post.external.deleted. Fired by Zernio's background sync when it detects a
|
|
@@ -15354,7 +15354,7 @@ type SearchInboxConversationsData = {
|
|
|
15354
15354
|
/**
|
|
15355
15355
|
* Filter by platform (searchable platforms only)
|
|
15356
15356
|
*/
|
|
15357
|
-
platform?: 'facebook' | 'instagram' | 'telegram' | 'whatsapp' | 'sms';
|
|
15357
|
+
platform?: 'facebook' | 'instagram' | 'telegram' | 'whatsapp' | 'sms' | 'slack';
|
|
15358
15358
|
/**
|
|
15359
15359
|
* Filter by profile ID
|
|
15360
15360
|
*/
|
|
@@ -16819,6 +16819,9 @@ type GetInboxPostCommentsResponse = ({
|
|
|
16819
16819
|
} | null;
|
|
16820
16820
|
pagination?: {
|
|
16821
16821
|
hasMore?: boolean;
|
|
16822
|
+
/**
|
|
16823
|
+
* Only present when hasMore is true. Absent on the last page, so treat its absence as the end of the thread.
|
|
16824
|
+
*/
|
|
16822
16825
|
cursor?: (string) | null;
|
|
16823
16826
|
};
|
|
16824
16827
|
meta?: {
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.450",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.450",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -3204,6 +3204,10 @@ export const deleteTelegramCommands = <ThrowOnError extends boolean = false>(opt
|
|
|
3204
3204
|
* the Marketing API token (Facebook side) or the connected Instagram account's token
|
|
3205
3205
|
* (Instagram side); a row whose count can't be read is omitted.
|
|
3206
3206
|
*
|
|
3207
|
+
* Pagination walks each account's platform listing. Following `nextCursor` reaches past
|
|
3208
|
+
* the first page on Facebook and Instagram only, since they are the platforms that
|
|
3209
|
+
* support a server-side date window; on the others the listing stops at its first page.
|
|
3210
|
+
*
|
|
3207
3211
|
*/
|
|
3208
3212
|
export const listInboxComments = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListInboxCommentsData, ThrowOnError>) => {
|
|
3209
3213
|
return (options?.client ?? client).get<ListInboxCommentsResponse, ListInboxCommentsError, ThrowOnError>({
|
|
@@ -5688,7 +5688,7 @@ export type WebhookPayloadConversationStarted = {
|
|
|
5688
5688
|
* Internal conversation ID
|
|
5689
5689
|
*/
|
|
5690
5690
|
id: string;
|
|
5691
|
-
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms';
|
|
5691
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'slack';
|
|
5692
5692
|
platformConversationId: string;
|
|
5693
5693
|
/**
|
|
5694
5694
|
* Contact's platform identifier (IGSID, PSID, wa_id, etc.)
|
|
@@ -5722,7 +5722,7 @@ export type WebhookPayloadConversationStarted = {
|
|
|
5722
5722
|
|
|
5723
5723
|
export type event10 = 'conversation.started';
|
|
5724
5724
|
|
|
5725
|
-
export type platform8 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms';
|
|
5725
|
+
export type platform8 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'slack';
|
|
5726
5726
|
|
|
5727
5727
|
/**
|
|
5728
5728
|
* Webhook payload for post.external.created / post.external.updated /
|
|
@@ -15013,7 +15013,7 @@ export type SearchInboxConversationsData = {
|
|
|
15013
15013
|
/**
|
|
15014
15014
|
* Filter by platform (searchable platforms only)
|
|
15015
15015
|
*/
|
|
15016
|
-
platform?: 'facebook' | 'instagram' | 'telegram' | 'whatsapp' | 'sms';
|
|
15016
|
+
platform?: 'facebook' | 'instagram' | 'telegram' | 'whatsapp' | 'sms' | 'slack';
|
|
15017
15017
|
/**
|
|
15018
15018
|
* Filter by profile ID
|
|
15019
15019
|
*/
|
|
@@ -16548,6 +16548,9 @@ export type GetInboxPostCommentsResponse = ({
|
|
|
16548
16548
|
} | null;
|
|
16549
16549
|
pagination?: {
|
|
16550
16550
|
hasMore?: boolean;
|
|
16551
|
+
/**
|
|
16552
|
+
* Only present when hasMore is true. Absent on the last page, so treat its absence as the end of the thread.
|
|
16553
|
+
*/
|
|
16551
16554
|
cursor?: (string) | null;
|
|
16552
16555
|
};
|
|
16553
16556
|
meta?: {
|