@hostwebhook/node-types 1.59.0 → 1.61.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.
@@ -60,6 +60,20 @@ exports.CREDENTIAL_TYPES = [
60
60
  // Notion sólo se rellena tras mandarla a revisión de Notion, así que el
61
61
  // camino interno es el único que funciona el primer día.
62
62
  { type: 'notion_internal' },
63
+ // El OAuth de HostWebhook contra Notion: el usuario autoriza y elige qué
64
+ // páginas comparte, sin salir del producto.
65
+ //
66
+ // Va aparte de `notion_internal` por la misma razón que `discord_oauth` va
67
+ // aparte de `discord_bot`: lo que guardan es distinto. Ahí hay un secreto
68
+ // del usuario; aquí, un access_token y un refresh_token de NUESTRA app, más
69
+ // el `workspace_id` que Notion devuelve en el mismo intercambio.
70
+ //
71
+ // Y para que conste, porque estuvo escrito al revés en el ADR-0005 antes de
72
+ // corregirlo: montar esto NO espera a ninguna revisión de Notion. El
73
+ // formulario de Distribution entrega client id, secret y URL de
74
+ // autorización al pulsar Submit; la revisión de 5-10 días es para salir en
75
+ // su galería, o sea para que te encuentren, no para que funcione.
76
+ { type: 'notion_oauth' },
63
77
  ];
64
78
  /**
65
79
  * Plain string array — what the Mongoose `enum` field and the
@@ -33,12 +33,16 @@ exports.DRIVE_TOOLKIT_SPECS = [
33
33
  label: 'Upload file',
34
34
  toolName: 'upload_to_drive',
35
35
  group: ENTRAN_Y_SALEN,
36
- description: 'Upload a file from the current event payload into Google Drive. Requires an `_file` ref in the payload (created by an upstream node — multipart ingress, File Transform, or another Drive download). Streams from R2; never holds the full file in memory.',
36
+ description: 'Upload a file into Google Drive. TWO ways to hand it the bytes. (1) `contentBase64` — the file contents, base64. Use this one when YOU hold the file: an MCP client, an assistant with an attachment, anything outside a running flow. Nothing has to be online first. If the file does not fit in a single call, send it in chunks with partIndex/partTotal — see those parameters. (2) Leave `contentBase64` out and it takes the `_file` ref from the current event payload, put there by an upstream node (multipart ingress, File Transform, another Drive download). The payload route streams from R2, never holds the file in memory, and needs no chunking at any size.',
37
37
  parameters: [
38
- p('fileName', 'Optional. Override the destination file name. Defaults to the _file ref originalName.', false),
39
- p('sourceField', 'Optional. Payload field path holding the _file ref. Defaults to "_file".', false),
38
+ p('fileName', 'Optional with a payload _file (defaults to its originalName). REQUIRED with contentBase64 — there is no ref to inherit a name from.', false),
39
+ p('contentBase64', 'Optional. File contents, base64-encoded — or ONE chunk of them when using partIndex/partTotal. Raw base64; a `data:` URL prefix is stripped if you send one. Max 8 MB decoded in a single call, 1 MB per chunk.', false),
40
+ p('partTotal', 'Optional. How many chunks the file is split into. Set it to send a file that does not fit in one call: the limit is the size of each MESSAGE, not of the file, so chunking lifts it entirely. Leave it out for a normal one-call upload.', false),
41
+ p('partIndex', 'Which chunk this is, ZERO-BASED (0 to partTotal-1). Required whenever partTotal is set.', false),
42
+ p('uploadId', 'Ties the chunks together. Leave it out on the first chunk — the response gives you one — and pass that same value on every chunk after it. While chunks are missing the call answers 202 with how many arrived and which one is next; the last one uploads the file and returns normally.', false),
43
+ p('sourceField', 'Optional. Payload field path holding the _file ref. Defaults to "_file". Ignored when contentBase64 is set.', false),
40
44
  p('parentFolderId', 'Optional. Drive folder ID to upload into. Empty = root.', false),
41
- p('mimeType', 'Optional. Override the MIME type. Defaults to the _file ref mimeType.', false),
45
+ p('mimeType', 'Optional. Override the MIME type. Defaults to the _file ref mimeType, or application/octet-stream with contentBase64.', false),
42
46
  ],
43
47
  },
44
48
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostwebhook/node-types",
3
- "version": "1.59.0",
3
+ "version": "1.61.0",
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",