@hostwebhook/node-types 1.15.0 → 1.17.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.
- package/dist/gmail-operations.d.ts +1 -1
- package/dist/gmail-operations.js +1 -0
- package/dist/registry.d.ts +13 -0
- package/dist/registry.js +4 -0
- package/package.json +1 -1
|
@@ -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", "replyToThread", "getMessage", "listMessages", "deleteMessage", "markRead", "markUnread", "addLabel", "removeLabel", "listLabels", "createLabel", "getThread", "trashThread", "untrashThread"];
|
|
15
|
+
export declare const GMAIL_OPERATIONS: readonly ["send", "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
package/dist/registry.d.ts
CHANGED
|
@@ -28,6 +28,19 @@ export interface NodeRegistryEntry {
|
|
|
28
28
|
color: string;
|
|
29
29
|
/** Whether this node supports test execution */
|
|
30
30
|
testable: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Optional per-instance predicate marking a node as "tool-only".
|
|
33
|
+
* When this returns true, the canvas should hide every connectable
|
|
34
|
+
* handle so the user cannot draw pipeline edges to/from this node —
|
|
35
|
+
* it lives instead inside an upstream AI Node's tools[] list.
|
|
36
|
+
*
|
|
37
|
+
* Lets new toolkit-style nodes opt-in without per-component hardcoding
|
|
38
|
+
* in the dashboard. Currently only emailAction(aiEnabled=true) uses
|
|
39
|
+
* this; serviceTrigger or future Slack/Discord toolkits could too.
|
|
40
|
+
*
|
|
41
|
+
* Predicate must be pure (no side effects) — called on every render.
|
|
42
|
+
*/
|
|
43
|
+
isToolOnly?: (entity: Record<string, unknown>) => boolean;
|
|
31
44
|
}
|
|
32
45
|
export declare const NODE_REGISTRY: Record<NodeType, NodeRegistryEntry>;
|
|
33
46
|
/** Get registry entry by canonical type */
|
package/dist/registry.js
CHANGED
|
@@ -145,6 +145,10 @@ exports.NODE_REGISTRY = {
|
|
|
145
145
|
group: 'Actions', detailPath: '/dashboard/email-actions', apiPath: '/email-actions',
|
|
146
146
|
stateKey: 'emailActions', allStateKey: 'allEmailActions',
|
|
147
147
|
color: '#f472b6', testable: true,
|
|
148
|
+
// AI Toolkit mode wires the node through the upstream AI Node's
|
|
149
|
+
// tools[] list, not via canvas edges — hide handles to prevent
|
|
150
|
+
// accidental misrouting that would silently fire with empty fields.
|
|
151
|
+
isToolOnly: (e) => e.aiEnabled === true,
|
|
148
152
|
},
|
|
149
153
|
httpAction: {
|
|
150
154
|
type: 'httpAction', prefix: 'ha', label: 'HTTP Action',
|
package/package.json
CHANGED