@hostwebhook/node-types 1.48.0 → 1.49.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.
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* dashboard owns the UI form schema, the api owns the dispatch logic),
|
|
13
13
|
* but the canonical list of valid operation strings lives here.
|
|
14
14
|
*/
|
|
15
|
-
export declare const GMAIL_OPERATIONS: readonly ["send", "createDraft", "sendDraft", "replyToThread", "getMessage", "listMessages", "deleteMessage", "markRead", "markUnread", "addLabel", "removeLabel", "listLabels", "createLabel", "getThread", "trashThread", "untrashThread"];
|
|
15
|
+
export declare const GMAIL_OPERATIONS: readonly ["send", "sendAndWaitForResponse", "createDraft", "sendDraft", "replyToThread", "getMessage", "listMessages", "deleteMessage", "markRead", "markUnread", "addLabel", "removeLabel", "listLabels", "createLabel", "getThread", "trashThread", "untrashThread"];
|
|
16
16
|
export type GmailOperation = (typeof GMAIL_OPERATIONS)[number];
|
|
17
17
|
/** Type guard — useful when validating untrusted input (DTOs, tool calls). */
|
|
18
18
|
export declare function isGmailOperation(value: unknown): value is GmailOperation;
|
package/dist/gmail-operations.js
CHANGED
|
@@ -18,6 +18,13 @@ exports.isGmailOperation = isGmailOperation;
|
|
|
18
18
|
*/
|
|
19
19
|
exports.GMAIL_OPERATIONS = [
|
|
20
20
|
'send',
|
|
21
|
+
// Pause-the-pipeline op — sends an email with Approve / (optional)
|
|
22
|
+
// Disapprove buttons and waits for the recipient to click before
|
|
23
|
+
// dispatching downstream. Backed by the shared send-and-wait infra in
|
|
24
|
+
// api/src/nodes/approval-nodes (PendingApproval + 1-click controller).
|
|
25
|
+
// Output of the node carries `payload._waitResponse = { approved,
|
|
26
|
+
// decidedAt, ipAddress, comment }` for downstream Conditional Nodes.
|
|
27
|
+
'sendAndWaitForResponse',
|
|
21
28
|
'createDraft',
|
|
22
29
|
'sendDraft',
|
|
23
30
|
'replyToThread',
|
package/package.json
CHANGED