@hostwebhook/node-types 1.13.0 → 1.13.1

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.
@@ -33,6 +33,7 @@ exports.NODE_CONNECTIONS = {
33
33
  // ── Source nodes ──
34
34
  endpoint: { acceptsInputFrom: [], canOutputTo: PROCESSING_OUTPUTS },
35
35
  scheduledWebhook: { acceptsInputFrom: [], canOutputTo: PROCESSING_OUTPUTS },
36
+ chatTrigger: { acceptsInputFrom: [], canOutputTo: PROCESSING_OUTPUTS },
36
37
  // ── Pipeline processing nodes ──
37
38
  filter: { acceptsInputFrom: STANDARD_INPUTS, canOutputTo: PROCESSING_OUTPUTS },
38
39
  transform: { acceptsInputFrom: STANDARD_INPUTS, canOutputTo: PROCESSING_OUTPUTS },
package/dist/dispatch.js CHANGED
@@ -41,6 +41,7 @@ exports.NODE_DISPATCH = {
41
41
  alert: { service: 'alertService', collection: 'alerts', hasFilters: false, outputFields: [], customDispatch: true },
42
42
  endpoint: { service: 'endpointsService', collection: 'endpoints', hasFilters: false, outputFields: ['outputNodes'], customDispatch: true },
43
43
  scheduledWebhook: { service: 'scheduledWebhooksService', collection: 'scheduledwebhooks', hasFilters: false, outputFields: ['outputNodes'], customDispatch: true },
44
+ chatTrigger: { service: 'chatTriggersService', collection: 'chattriggers', hasFilters: false, outputFields: ['outputNodes'], customDispatch: true },
44
45
  // ── Annotations ──
45
46
  stickyNote: { service: 'stickyNotesService', collection: 'stickynotes', hasFilters: false, outputFields: ['outputNodes'], customDispatch: true },
46
47
  };
package/dist/registry.js CHANGED
@@ -23,6 +23,12 @@ exports.NODE_REGISTRY = {
23
23
  stateKey: 'scheduledWebhooks', allStateKey: 'allScheduledWebhooks',
24
24
  color: '#2dd4bf', testable: true,
25
25
  },
26
+ chatTrigger: {
27
+ type: 'chatTrigger', prefix: 'chat', label: 'Chat Trigger',
28
+ group: 'Sources', detailPath: '/dashboard/chat-triggers', apiPath: '/chat-triggers',
29
+ stateKey: 'chatTriggers', allStateKey: 'allChatTriggers',
30
+ color: '#06b6d4', testable: false,
31
+ },
26
32
  // ── Flow Control ──
27
33
  filter: {
28
34
  type: 'filter', prefix: 'fi', label: 'Filter',
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /** All valid node type identifiers */
2
- export type NodeType = 'endpoint' | 'scheduledWebhook' | 'filter' | 'transform' | 'schemaValidator' | 'conditional' | 'delay' | 'rateLimiter' | 'aggregator' | 'cache' | 'code' | 'ai' | 'merge' | 'approval' | 'split' | 'loop' | 'markdown' | 'fileTransform' | 'router' | 'emailAction' | 'httpAction' | 'mongoAction' | 'notificationAction' | 'sheetsAction' | 'calendarAction' | 'docsAction' | 'firecrawlAction' | 'alert' | 'stickyNote';
2
+ export type NodeType = 'endpoint' | 'scheduledWebhook' | 'chatTrigger' | 'filter' | 'transform' | 'schemaValidator' | 'conditional' | 'delay' | 'rateLimiter' | 'aggregator' | 'cache' | 'code' | 'ai' | 'merge' | 'approval' | 'split' | 'loop' | 'markdown' | 'fileTransform' | 'router' | 'emailAction' | 'httpAction' | 'mongoAction' | 'notificationAction' | 'sheetsAction' | 'calendarAction' | 'docsAction' | 'firecrawlAction' | 'alert' | 'stickyNote';
3
3
  /** Node role in the pipeline */
4
4
  export type NodeRole = 'source' | 'processing' | 'flowControl' | 'routing' | 'action' | 'monitoring';
5
5
  /** Handle positions on the canvas node */
package/dist/ui.js CHANGED
@@ -10,6 +10,7 @@ exports.NODE_UI = {
10
10
  // ── Source nodes ──
11
11
  endpoint: { fromNodes: true, toNodes: true, isSource: true },
12
12
  scheduledWebhook: { fromNodes: false, toNodes: true, isSource: true, outputHandles: ['right', 'bottom'], dotHandles: { output: ['right-out', 'bottom-out'] } },
13
+ chatTrigger: { fromNodes: false, toNodes: true, isSource: true, outputHandles: ['right'], dotHandles: { output: ['right-out'] } },
13
14
  // ── Pipeline processing nodes ──
14
15
  filter: { fromNodes: true, toNodes: true, special: { loopBackAllowed: true } },
15
16
  transform: { fromNodes: true, toNodes: true, special: { loopBackAllowed: true } },
@@ -48,6 +49,7 @@ exports.NODE_UI = {
48
49
  exports.PREFIX_TO_TYPE = [
49
50
  { prefix: 'ep-', type: 'endpoint', canvasType: 'endpoint' },
50
51
  { prefix: 'sw-', type: 'scheduledWebhook', canvasType: 'scheduledWebhook' },
52
+ { prefix: 'chat-', type: 'chatTrigger', canvasType: 'chatTrigger' },
51
53
  { prefix: 'al-', type: 'alert', canvasType: 'alert' },
52
54
  { prefix: 'ea-', type: 'emailAction', canvasType: 'emailAction' },
53
55
  { prefix: 'ha-', type: 'httpAction', canvasType: 'httpAction' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostwebhook/node-types",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "Shared node type definitions, connection rules, and dispatch config for HostWebhook",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",