n8n-nodes-test-node 1.0.15 → 1.0.16

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # n8n-nodes-test-node
2
2
 
3
- Auto-generated n8n community node for the **Gofile API** API (spec version 2025-05-16), built from its OpenAPI document.
3
+ Auto-generated n8n community node for the **Remote Chromium CDP Automation API** API (spec version 2.0.0), built from its OpenAPI document.
4
4
 
5
5
  ## Install
6
6
 
@@ -14,19 +14,10 @@ npm install n8n-nodes-test-node
14
14
 
15
15
  ## What was generated
16
16
 
17
- - Node type(s) in this package: **gofileAPI**, **gofileAPITool** (AI Agent tool), **gofileAPIFiles** (file upload/download), **gofileAPIFilesTool** (file upload/download, AI Agent tool).
18
- - 2 resource(s), 14 operation(s) (identical parameter set on the regular and tool nodes -- they share the same credential and routing, differing only in identity and how they present themselves).
19
- - 1 file upload/download operation(s), handled by the separate **Files** node -- see "File upload/download" below for why they're not part of the main node.
20
- - Credential type **gofileAPIApi**, with an editable **Base URL** field, plus: API Key / Bearer token field(s) per the spec's security scheme.
21
- - Default Base URL: `https://api.gofile.io` (override it in the credential's "Base URL" field to point at a different environment)
22
-
23
- ## File upload/download
24
-
25
- Operations whose request body is a `multipart/form-data` file upload, or whose response is binary (an image, PDF, or other non-JSON file), are generated as a **separate node** ("...Files") rather than folded into the main one. This is deliberate, not a limitation of the source spec: n8n's declarative request-routing (what the main node is built with, so it needs no hand-written request logic) is confirmed broken for binary payloads -- it JSON-serializes binary data instead of sending real bytes ([n8n-io/n8n#17823](https://github.com/n8n-io/n8n/issues/17823)). The Files node is instead a small, hand-written (programmatic) node using n8n's HTTP helpers directly, which handle binary correctly.
26
-
27
- - **Uploads**: set "Input Binary Field" to the name of the binary property on the incoming item that holds the file (n8n's convention -- usually `data`, e.g. from a **Read/Write File** or **HTTP Request** node upstream).
28
- - **Downloads**: set "Output Binary Field" to the name the downloaded file should be written to on the output item (also usually `data`, ready for a **Read/Write File** node or another HTTP call downstream).
29
- - The Files node shares the exact same credential as the main node.
17
+ - Node type(s) in this package: **remoteChromiumCDPAutomationAPI**, **remoteChromiumCDPAutomationAPITool** (AI Agent tool).
18
+ - 13 resource(s), 74 operation(s) (identical parameter set on the regular and tool nodes -- they share the same credential and routing, differing only in identity and how they present themselves).
19
+ - Credential type **remoteChromiumCDPAutomationAPIApi**, with an editable **Base URL** field, plus: API Key / Bearer token field(s) per the spec's security scheme.
20
+ - Default Base URL: `https://api.example.com/v1` (the spec declared no `servers[0].url`, so this is a placeholder -- edit the credential's "Base URL" field before using the node)
30
21
 
31
22
  ## Using the AI Agent tool node
32
23
 
@@ -1,5 +1,5 @@
1
1
  import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
- export declare class GofileAPIApi implements ICredentialType {
2
+ export declare class RemoteChromiumCDPAutomationAPIApi implements ICredentialType {
3
3
  name: string;
4
4
  displayName: string;
5
5
  documentationUrl: string;
@@ -1,45 +1,45 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GofileAPIApi = void 0;
4
- class GofileAPIApi {
3
+ exports.RemoteChromiumCDPAutomationAPIApi = void 0;
4
+ class RemoteChromiumCDPAutomationAPIApi {
5
5
  constructor() {
6
- this.name = 'gofileAPIApi';
7
- this.displayName = 'Gofile API';
6
+ this.name = 'remoteChromiumCDPAutomationAPIApi';
7
+ this.displayName = 'Remote Chromium CDP Automation API';
8
8
  this.documentationUrl = '';
9
9
  this.properties = [
10
10
  {
11
11
  displayName: 'Base URL',
12
12
  name: 'baseUrl',
13
13
  type: 'string',
14
- default: 'https://api.gofile.io',
14
+ default: 'https://api.example.com/v1',
15
15
  required: true,
16
16
  description: 'Base URL every request is sent to. Change this to point the node at a different environment (staging, self-hosted, etc.).',
17
17
  },
18
18
  {
19
- displayName: 'Bearer Token',
20
- name: 'bearerAuthToken',
19
+ displayName: 'X-API-Key (API Key)',
20
+ name: 'xAPIKey',
21
21
  type: 'string',
22
22
  typeOptions: { password: true },
23
23
  default: '',
24
24
  required: true,
25
- description: 'Sent as "Authorization: Bearer <token>" on every request.',
25
+ description: 'Sent as the "X-API-Key" header on every request.',
26
26
  },
27
27
  ];
28
28
  this.authenticate = {
29
29
  type: 'generic',
30
30
  properties: {
31
31
  headers: {
32
- Authorization: '=Bearer {{$credentials.bearerAuthToken}}',
32
+ 'X-API-Key': '={{$credentials.xAPIKey}}',
33
33
  },
34
34
  },
35
35
  };
36
36
  this.test = {
37
37
  request: {
38
38
  baseURL: '={{$credentials.baseUrl}}',
39
- url: '/accounts/getid',
39
+ url: '/health',
40
40
  method: 'GET',
41
41
  },
42
42
  };
43
43
  }
44
44
  }
45
- exports.GofileAPIApi = GofileAPIApi;
45
+ exports.RemoteChromiumCDPAutomationAPIApi = RemoteChromiumCDPAutomationAPIApi;
@@ -1,4 +1,4 @@
1
1
  import type { INodeType, INodeTypeDescription } from 'n8n-workflow';
2
- export declare class GofileAPIToolNode implements INodeType {
2
+ export declare class RemoteChromiumCDPAutomationAPINode implements INodeType {
3
3
  description: INodeTypeDescription;
4
4
  }