@hostwebhook/node-types 1.50.1 → 1.51.0
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.
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* extending this list, bumping the package, and re-installing in
|
|
12
12
|
* consumers — same pattern as Gmail / Calendar / Drive.
|
|
13
13
|
*/
|
|
14
|
-
export declare const TELEGRAM_OPERATIONS: readonly ["sendMessage", "replyToMessage", "sendPhoto", "sendDocument", "sendVoice", "editMessageText", "deleteMessage", "answerCallbackQuery", "forwardMessage", "sendPoll"];
|
|
14
|
+
export declare const TELEGRAM_OPERATIONS: readonly ["sendMessage", "replyToMessage", "sendPhoto", "sendDocument", "sendVoice", "sendAndWaitForResponse", "editMessageText", "deleteMessage", "answerCallbackQuery", "forwardMessage", "sendPoll"];
|
|
15
15
|
export type TelegramOperation = (typeof TELEGRAM_OPERATIONS)[number];
|
|
16
16
|
/** Type guard — useful when validating untrusted input (DTOs, tool calls). */
|
|
17
17
|
export declare function isTelegramOperation(value: unknown): value is TelegramOperation;
|
|
@@ -21,6 +21,17 @@ exports.TELEGRAM_OPERATIONS = [
|
|
|
21
21
|
'sendPhoto',
|
|
22
22
|
'sendDocument',
|
|
23
23
|
'sendVoice',
|
|
24
|
+
// Pause-the-pipeline op — sends a Telegram message with Approve /
|
|
25
|
+
// (optional) Disapprove inline buttons and waits for the recipient to
|
|
26
|
+
// tap one. When `allowFreeText` is on, a text reply in the same chat
|
|
27
|
+
// also resolves the wait. Backed by the same shared PendingApproval +
|
|
28
|
+
// send-and-wait infra emailAction uses, with a Telegram-specific
|
|
29
|
+
// resume path through service-triggers.processTelegramPush (intercepts
|
|
30
|
+
// callback_query.data === "swat:{token}:a|r" before normal dispatch).
|
|
31
|
+
// Output of the node carries `payload._waitResponse = { approved,
|
|
32
|
+
// decidedAt, ipAddress, comment?, responseText?, timedOut? }` for
|
|
33
|
+
// downstream Conditional nodes.
|
|
34
|
+
'sendAndWaitForResponse',
|
|
24
35
|
'editMessageText',
|
|
25
36
|
'deleteMessage',
|
|
26
37
|
'answerCallbackQuery',
|
package/package.json
CHANGED