@zernio/node 0.2.437 → 0.2.438
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +2 -1
- package/src/generated/types.gen.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -16212,7 +16212,7 @@ type SendTypingIndicatorData = {
|
|
|
16212
16212
|
type SendTypingIndicatorResponse = ({
|
|
16213
16213
|
success?: boolean;
|
|
16214
16214
|
});
|
|
16215
|
-
type SendTypingIndicatorError = ({
|
|
16215
|
+
type SendTypingIndicatorError = (ErrorResponse | {
|
|
16216
16216
|
error?: string;
|
|
16217
16217
|
} | unknown);
|
|
16218
16218
|
type MarkConversationReadData = {
|
package/dist/index.d.ts
CHANGED
|
@@ -16212,7 +16212,7 @@ type SendTypingIndicatorData = {
|
|
|
16212
16212
|
type SendTypingIndicatorResponse = ({
|
|
16213
16213
|
success?: boolean;
|
|
16214
16214
|
});
|
|
16215
|
-
type SendTypingIndicatorError = ({
|
|
16215
|
+
type SendTypingIndicatorError = (ErrorResponse | {
|
|
16216
16216
|
error?: string;
|
|
16217
16217
|
} | unknown);
|
|
16218
16218
|
type MarkConversationReadData = {
|
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.438",
|
|
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.438",
|
|
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
|
@@ -2968,11 +2968,12 @@ export const deleteInboxMessage = <ThrowOnError extends boolean = false>(options
|
|
|
2968
2968
|
* Send typing indicator
|
|
2969
2969
|
* Show a typing indicator in a conversation. Platform support:
|
|
2970
2970
|
* - Facebook Messenger: Shows "Page is typing..." for 20 seconds
|
|
2971
|
+
* - Instagram: Shows "typing..." to the recipient (works for both Instagram Login and Facebook Login accounts). The recipient must be signed in to Instagram to see it.
|
|
2971
2972
|
* - Telegram: Shows "Bot is typing..." for 5 seconds
|
|
2972
2973
|
* - WhatsApp: Shows "typing..." for up to 25 seconds. Requires a recent inbound message in the conversation (Meta references the inbound message id) and also marks that message as read as a side-effect.
|
|
2973
2974
|
* - All others: Returns 200 but no-op (platform doesn't support it)
|
|
2974
2975
|
*
|
|
2975
|
-
* Typing indicators are best-effort. The endpoint always returns 200 even if the platform call fails.
|
|
2976
|
+
* Typing indicators are best-effort. The endpoint always returns 200 even if the platform call fails; `success` reports whether a typing indicator was actually sent to the platform (`false` on unsupported platforms or when the platform call failed).
|
|
2976
2977
|
*
|
|
2977
2978
|
*/
|
|
2978
2979
|
export const sendTypingIndicator = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SendTypingIndicatorData, ThrowOnError>) => {
|
|
@@ -15897,7 +15897,7 @@ export type SendTypingIndicatorResponse = ({
|
|
|
15897
15897
|
success?: boolean;
|
|
15898
15898
|
});
|
|
15899
15899
|
|
|
15900
|
-
export type SendTypingIndicatorError = ({
|
|
15900
|
+
export type SendTypingIndicatorError = (ErrorResponse | {
|
|
15901
15901
|
error?: string;
|
|
15902
15902
|
} | unknown);
|
|
15903
15903
|
|