@hostwebhook/node-types 1.69.0 → 1.71.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.
Files changed (101) hide show
  1. package/dist/bucket-operations.d.ts +88 -0
  2. package/dist/bucket-operations.js +140 -0
  3. package/dist/calendar-toolkit.d.ts +1 -1
  4. package/dist/connections.d.ts +1 -1
  5. package/dist/connections.js +1 -0
  6. package/dist/discord-operations.d.ts +1 -1
  7. package/dist/discord-operations.js +4 -4
  8. package/dist/discord-toolkit.d.ts +1 -1
  9. package/dist/discord-toolkit.js +3 -3
  10. package/dist/dispatch.d.ts +1 -1
  11. package/dist/dispatch.js +1 -0
  12. package/dist/docs-toolkit.d.ts +1 -1
  13. package/dist/drive-toolkit.d.ts +1 -1
  14. package/dist/esm/bucket-operations.d.ts +88 -0
  15. package/dist/esm/bucket-operations.js +136 -0
  16. package/dist/esm/calendar-operations.d.ts +67 -0
  17. package/dist/esm/calendar-operations.js +176 -0
  18. package/dist/esm/calendar-toolkit.d.ts +50 -0
  19. package/dist/esm/calendar-toolkit.js +152 -0
  20. package/dist/esm/capacidad-de-credencial.d.ts +75 -0
  21. package/dist/esm/capacidad-de-credencial.js +68 -0
  22. package/dist/esm/connections.d.ts +17 -0
  23. package/dist/esm/connections.js +107 -0
  24. package/dist/esm/credentials.d.ts +144 -0
  25. package/dist/esm/credentials.js +199 -0
  26. package/dist/esm/discord-operations.d.ts +104 -0
  27. package/dist/esm/discord-operations.js +407 -0
  28. package/dist/esm/discord-toolkit.d.ts +64 -0
  29. package/dist/esm/discord-toolkit.js +260 -0
  30. package/dist/esm/dispatch.d.ts +16 -0
  31. package/dist/esm/dispatch.js +77 -0
  32. package/dist/esm/docs-operations.d.ts +99 -0
  33. package/dist/esm/docs-operations.js +127 -0
  34. package/dist/esm/docs-toolkit.d.ts +42 -0
  35. package/dist/esm/docs-toolkit.js +97 -0
  36. package/dist/esm/drive-operations.d.ts +103 -0
  37. package/dist/esm/drive-operations.js +319 -0
  38. package/dist/esm/drive-toolkit.d.ts +54 -0
  39. package/dist/esm/drive-toolkit.js +177 -0
  40. package/dist/esm/github-operations.d.ts +147 -0
  41. package/dist/esm/github-operations.js +551 -0
  42. package/dist/esm/gmail-operations.d.ts +190 -0
  43. package/dist/esm/gmail-operations.js +560 -0
  44. package/dist/esm/google-analytics-operations.d.ts +99 -0
  45. package/dist/esm/google-analytics-operations.js +222 -0
  46. package/dist/esm/google-contacts-operations.d.ts +93 -0
  47. package/dist/esm/google-contacts-operations.js +363 -0
  48. package/dist/esm/index.d.ts +68 -0
  49. package/dist/esm/index.js +51 -0
  50. package/dist/esm/jira-operations.d.ts +164 -0
  51. package/dist/esm/jira-operations.js +470 -0
  52. package/dist/esm/llm-models.d.ts +101 -0
  53. package/dist/esm/llm-models.js +230 -0
  54. package/dist/esm/mailchimp-operations.d.ts +56 -0
  55. package/dist/esm/mailchimp-operations.js +155 -0
  56. package/dist/esm/mongo-operations.d.ts +61 -0
  57. package/dist/esm/mongo-operations.js +120 -0
  58. package/dist/esm/notion-operations.d.ts +125 -0
  59. package/dist/esm/notion-operations.js +511 -0
  60. package/dist/esm/openrouter.d.ts +142 -0
  61. package/dist/esm/openrouter.js +99 -0
  62. package/dist/esm/package.json +4 -0
  63. package/dist/esm/postgres-operations.d.ts +60 -0
  64. package/dist/esm/postgres-operations.js +75 -0
  65. package/dist/esm/registry.d.ts +160 -0
  66. package/dist/esm/registry.js +885 -0
  67. package/dist/esm/sheets-operations.d.ts +78 -0
  68. package/dist/esm/sheets-operations.js +150 -0
  69. package/dist/esm/sheets-toolkit.d.ts +49 -0
  70. package/dist/esm/sheets-toolkit.js +127 -0
  71. package/dist/esm/shopify-operations.d.ts +95 -0
  72. package/dist/esm/shopify-operations.js +259 -0
  73. package/dist/esm/slack-operations.d.ts +81 -0
  74. package/dist/esm/slack-operations.js +244 -0
  75. package/dist/esm/slack-toolkit.d.ts +60 -0
  76. package/dist/esm/slack-toolkit.js +235 -0
  77. package/dist/esm/telegram-operations.d.ts +104 -0
  78. package/dist/esm/telegram-operations.js +351 -0
  79. package/dist/esm/telegram-toolkit.d.ts +52 -0
  80. package/dist/esm/telegram-toolkit.js +183 -0
  81. package/dist/esm/types.d.ts +149 -0
  82. package/dist/esm/types.js +8 -0
  83. package/dist/esm/ui.d.ts +13 -0
  84. package/dist/esm/ui.js +152 -0
  85. package/dist/esm/whatsapp-operations.d.ts +23 -0
  86. package/dist/esm/whatsapp-operations.js +36 -0
  87. package/dist/index.d.ts +68 -66
  88. package/dist/index.js +193 -187
  89. package/dist/openrouter.d.ts +1 -1
  90. package/dist/registry.d.ts +4 -4
  91. package/dist/registry.js +540 -210
  92. package/dist/sheets-toolkit.d.ts +1 -1
  93. package/dist/slack-operations.d.ts +1 -1
  94. package/dist/slack-operations.js +4 -4
  95. package/dist/slack-toolkit.d.ts +1 -1
  96. package/dist/slack-toolkit.js +3 -3
  97. package/dist/telegram-toolkit.d.ts +1 -1
  98. package/dist/types.d.ts +1 -1
  99. package/dist/ui.d.ts +1 -1
  100. package/dist/ui.js +2 -0
  101. package/package.json +21 -3
@@ -19,7 +19,7 @@
19
19
  * pueda usarse sin adaptador. Los textos van en inglés porque los lee el modelo
20
20
  * y quien mire la lista de herramientas del servidor MCP.
21
21
  */
22
- import type { SheetsOperation } from './sheets-operations';
22
+ import type { SheetsOperation } from './sheets-operations.js';
23
23
  export interface SheetsToolkitParameter {
24
24
  name: string;
25
25
  /** El esquema MCP sólo admite estos tres; lo estructurado viaja como JSON
@@ -11,7 +11,7 @@
11
11
  * publish, scheduled.list, etc.) extend this list — bump the package and
12
12
  * re-install in consumers, same pattern as Gmail / Calendar / Discord.
13
13
  */
14
- import { type CapacidadesPorCredencial } from './capacidad-de-credencial';
14
+ import { type CapacidadesPorCredencial } from './capacidad-de-credencial.js';
15
15
  export declare const SLACK_OPERATIONS: readonly ["sendMessage", "updateMessage", "deleteMessage", "sendEphemeral", "scheduleMessage", "getMessage", "listChannels", "getChannelHistory", "getThreadReplies", "createChannel", "inviteToChannel", "addReaction", "removeReaction", "listUsers", "getUserInfo", "uploadFile"];
16
16
  export type SlackOperation = (typeof SLACK_OPERATIONS)[number];
17
17
  /** Type guard — useful when validating untrusted input (DTOs, AI tool calls). */
@@ -18,7 +18,7 @@ exports.camposDeSlackNoDisponibles = camposDeSlackNoDisponibles;
18
18
  * publish, scheduled.list, etc.) extend this list — bump the package and
19
19
  * re-install in consumers, same pattern as Gmail / Calendar / Discord.
20
20
  */
21
- const capacidad_de_credencial_1 = require("./capacidad-de-credencial");
21
+ const capacidad_de_credencial_js_1 = require("./capacidad-de-credencial.js");
22
22
  exports.SLACK_OPERATIONS = [
23
23
  // Messages
24
24
  'sendMessage',
@@ -239,13 +239,13 @@ exports.SLACK_CAPACIDADES_POR_CREDENCIAL = {
239
239
  };
240
240
  /** Las operaciones que ofrecer para una credencial de Slack. */
241
241
  function operacionesDeSlackPara(tipoDeCredencial) {
242
- return (0, capacidad_de_credencial_1.operacionesPara)(exports.SLACK_OPERATIONS, exports.SLACK_CAPACIDADES_POR_CREDENCIAL, tipoDeCredencial);
242
+ return (0, capacidad_de_credencial_js_1.operacionesPara)(exports.SLACK_OPERATIONS, exports.SLACK_CAPACIDADES_POR_CREDENCIAL, tipoDeCredencial);
243
243
  }
244
244
  /** Si esa credencial puede ejecutar esa operación de Slack. */
245
245
  function slackPuedeEjecutar(tipoDeCredencial, operacion) {
246
- return (0, capacidad_de_credencial_1.puedeEjecutar)(exports.SLACK_OPERATIONS, exports.SLACK_CAPACIDADES_POR_CREDENCIAL, tipoDeCredencial, operacion);
246
+ return (0, capacidad_de_credencial_js_1.puedeEjecutar)(exports.SLACK_OPERATIONS, exports.SLACK_CAPACIDADES_POR_CREDENCIAL, tipoDeCredencial, operacion);
247
247
  }
248
248
  /** Los campos que esa credencial de Slack no deja elegir. */
249
249
  function camposDeSlackNoDisponibles(tipoDeCredencial) {
250
- return (0, capacidad_de_credencial_1.camposNoDisponiblesPara)(exports.SLACK_CAPACIDADES_POR_CREDENCIAL, tipoDeCredencial);
250
+ return (0, capacidad_de_credencial_js_1.camposNoDisponiblesPara)(exports.SLACK_CAPACIDADES_POR_CREDENCIAL, tipoDeCredencial);
251
251
  }
@@ -22,7 +22,7 @@
22
22
  * pueda usarse sin adaptador. Los textos van en inglés porque los lee el modelo
23
23
  * y quien mire la lista de herramientas del servidor MCP.
24
24
  */
25
- import type { SlackOperation } from './slack-operations';
25
+ import type { SlackOperation } from './slack-operations.js';
26
26
  export interface SlackToolkitParameter {
27
27
  name: string;
28
28
  type: 'string' | 'number' | 'boolean';
@@ -26,7 +26,7 @@
26
26
  Object.defineProperty(exports, "__esModule", { value: true });
27
27
  exports.SLACK_TOOLKIT_BY_TOOL_NAME = exports.SLACK_TOOLKIT_SPECS = void 0;
28
28
  exports.herramientasDeSlackPara = herramientasDeSlackPara;
29
- const slack_operations_1 = require("./slack-operations");
29
+ const slack_operations_js_1 = require("./slack-operations.js");
30
30
  const p = (name, description, required = true, type = 'string') => ({ name, type, description, required });
31
31
  exports.SLACK_TOOLKIT_SPECS = [
32
32
  // ── Messages ─────────────────────────────────────────────────────
@@ -231,8 +231,8 @@ exports.SLACK_TOOLKIT_BY_TOOL_NAME = Object.fromEntries(exports.SLACK_TOOLKIT_SP
231
231
  * invitarle a elegir un canal que Slack va a ignorar sin decir nada.
232
232
  */
233
233
  function herramientasDeSlackPara(tipoDeCredencial) {
234
- const permitidas = new Set((0, slack_operations_1.operacionesDeSlackPara)(tipoDeCredencial));
235
- const fuera = (0, slack_operations_1.camposDeSlackNoDisponibles)(tipoDeCredencial);
234
+ const permitidas = new Set((0, slack_operations_js_1.operacionesDeSlackPara)(tipoDeCredencial));
235
+ const fuera = (0, slack_operations_js_1.camposDeSlackNoDisponibles)(tipoDeCredencial);
236
236
  return exports.SLACK_TOOLKIT_SPECS.filter((s) => permitidas.has(s.operation)).map((s) => fuera.size === 0
237
237
  ? s
238
238
  : { ...s, parameters: s.parameters.filter((p) => !fuera.has(p.name)) });
@@ -19,7 +19,7 @@
19
19
  * usarse sin adaptador. Los textos van en inglés porque los lee el modelo y
20
20
  * quien mire la lista de herramientas del servidor MCP.
21
21
  */
22
- import type { TelegramOperation } from './telegram-operations';
22
+ import type { TelegramOperation } from './telegram-operations.js';
23
23
  export interface TelegramToolkitParameter {
24
24
  name: string;
25
25
  type: 'string' | 'number' | 'boolean';
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /** All valid node type identifiers */
2
- export type NodeType = 'webhook' | 'scheduledWorkflow' | 'chatTrigger' | 'trigger' | 'voiceAgent' | 'filter' | 'transform' | 'schemaValidator' | 'conditional' | 'delay' | 'rateLimiter' | 'aggregator' | 'cache' | 'code' | 'ai' | 'merge' | 'approval' | 'split' | 'loop' | 'markdown' | 'fileTransform' | 'limit' | 'router' | 'emailAction' | 'gmailAction' | 'httpAction' | 'mongoAction' | 'postgresAction' | 'notificationAction' | 'sheetsAction' | 'calendarAction' | 'docsAction' | 'driveAction' | 'firecrawlAction' | 'telegramAction' | 'whatsappAction' | 'discordAction' | 'slackAction' | 'googleContactsAction' | 'googleAnalyticsAction' | 'notionAction' | 'vectorStore' | 'rssAction' | 'socialMediaAction' | 'mailchimpAction' | 'shopifyAction' | 'githubAction' | 'jiraAction' | 'stickyNote';
2
+ export type NodeType = 'webhook' | 'scheduledWorkflow' | 'chatTrigger' | 'trigger' | 'voiceAgent' | 'filter' | 'transform' | 'schemaValidator' | 'conditional' | 'delay' | 'rateLimiter' | 'aggregator' | 'cache' | 'code' | 'ai' | 'merge' | 'approval' | 'split' | 'loop' | 'markdown' | 'fileTransform' | 'limit' | 'router' | 'emailAction' | 'gmailAction' | 'httpAction' | 'mongoAction' | 'postgresAction' | 'notificationAction' | 'sheetsAction' | 'calendarAction' | 'docsAction' | 'driveAction' | 'firecrawlAction' | 'telegramAction' | 'whatsappAction' | 'discordAction' | 'slackAction' | 'googleContactsAction' | 'googleAnalyticsAction' | 'notionAction' | 'vectorStore' | 'rssAction' | 'socialMediaAction' | 'mailchimpAction' | 'shopifyAction' | 'githubAction' | 'jiraAction' | 'bucketAction' | '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.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Dashboard UI config — handle positions, dot visibility, canvas prefixes.
3
3
  * Only imported by the Dashboard. Broker and API don't need this.
4
4
  */
5
- import type { NodeType, NodeUIConfig, PrefixMapping } from './types';
5
+ import type { NodeType, NodeUIConfig, PrefixMapping } from './types.js';
6
6
  export declare const NODE_UI: Record<NodeType, NodeUIConfig>;
7
7
  /** Canvas prefix → node type mapping (used by FlowCanvas to identify node type from XYFlow node ID) */
8
8
  export declare const PREFIX_TO_TYPE: PrefixMapping[];
package/dist/ui.js CHANGED
@@ -79,6 +79,7 @@ exports.NODE_UI = {
79
79
  shopifyAction: { fromNodes: true, toNodes: true, inputHandles: ['left'], dotHandles: { input: ['left-in'], output: ['right-out'] }, special: { loopBackAllowed: true, routerTargetLabel: 'shopify' } },
80
80
  githubAction: { fromNodes: true, toNodes: true, inputHandles: ['left'], dotHandles: { input: ['left-in'], output: ['right-out'] }, special: { loopBackAllowed: true, routerTargetLabel: 'github' } },
81
81
  jiraAction: { fromNodes: true, toNodes: true, inputHandles: ['left'], dotHandles: { input: ['left-in'], output: ['right-out'] }, special: { loopBackAllowed: true, routerTargetLabel: 'jira' } },
82
+ bucketAction: { fromNodes: true, toNodes: true, inputHandles: ['left'], dotHandles: { input: ['left-in'], output: ['right-out'] }, special: { loopBackAllowed: true, routerTargetLabel: 'bucket' } },
82
83
  slackAction: { fromNodes: true, toNodes: true, inputHandles: ['left'], dotHandles: { input: ['left-in'], output: ['right-out'] }, special: { loopBackAllowed: true, routerTargetLabel: 'slack' } },
83
84
  googleContactsAction: { fromNodes: true, toNodes: true, inputHandles: ['left'], dotHandles: { input: ['left-in'], output: ['right-out'] }, special: { loopBackAllowed: true } },
84
85
  googleAnalyticsAction: { fromNodes: true, toNodes: true, inputHandles: ['left'], dotHandles: { input: ['left-in'], output: ['right-out'] }, special: { loopBackAllowed: true } },
@@ -106,6 +107,7 @@ exports.PREFIX_TO_TYPE = [
106
107
  { prefix: 'shp-', type: 'shopifyAction', canvasType: 'shopifyAction' },
107
108
  { prefix: 'gh-', type: 'githubAction', canvasType: 'githubAction' },
108
109
  { prefix: 'jr-', type: 'jiraAction', canvasType: 'jiraAction' },
110
+ { prefix: 'bkt-', type: 'bucketAction', canvasType: 'bucketAction' },
109
111
  { prefix: 'gc-', type: 'googleContactsAction', canvasType: 'googleContactsAction' },
110
112
  { prefix: 'gaa-', type: 'googleAnalyticsAction', canvasType: 'googleAnalyticsAction' },
111
113
  { prefix: 'ntn-', type: 'notionAction', canvasType: 'notionAction' },
package/package.json CHANGED
@@ -1,15 +1,31 @@
1
1
  {
2
2
  "name": "@hostwebhook/node-types",
3
- "version": "1.69.0",
3
+ "version": "1.71.0",
4
4
  "description": "Shared node type definitions, connection rules, and dispatch config for HostWebhook",
5
5
  "main": "dist/index.js",
6
+ "module": "dist/esm/index.js",
6
7
  "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./dist/esm/index.d.ts",
12
+ "default": "./dist/esm/index.js"
13
+ },
14
+ "require": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.js"
17
+ }
18
+ },
19
+ "./package.json": "./package.json",
20
+ "./dist/*": "./dist/*"
21
+ },
22
+ "sideEffects": false,
7
23
  "files": [
8
24
  "dist"
9
25
  ],
10
26
  "scripts": {
11
- "build": "tsc",
12
- "test": "tsc -p tsconfig.tests.json && vitest run",
27
+ "build": "tsc && tsc -p tsconfig.esm.json && node scripts/marca-la-rama-esm.mjs",
28
+ "test": "npm run build && tsc -p tsconfig.tests.json && vitest run",
13
29
  "prepublishOnly": "npm run build"
14
30
  },
15
31
  "keywords": [
@@ -19,6 +35,8 @@
19
35
  ],
20
36
  "license": "MIT",
21
37
  "devDependencies": {
38
+ "@types/node": "^25.3.3",
39
+ "esbuild": "^0.27.0",
22
40
  "typescript": "^5.0.0",
23
41
  "vitest": "^3.0.0"
24
42
  }