n8n-nodes-test-node 1.0.1 → 1.0.3

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
@@ -15,14 +15,14 @@ npm install n8n-nodes-test-node
15
15
  ## What was generated
16
16
 
17
17
  - 12 resource(s), 60 operation(s).
18
- - Credential type **remoteChromiumCDPAutomationAPIApi**, with an editable **Base URL** field (the spec declared no security requirements, so this credential only holds the Base URL).
18
+ - Credential type **remoteChromiumCDPAutomationAPIApi**, with an editable **Base URL** field plus API Key / Bearer token field(s) per the spec's security scheme.
19
19
  - Default Base URL: `https://api.example.com/v1` (override it in the credential's "Base URL" field to point at a different environment)
20
20
 
21
21
  ## Limitations
22
22
 
23
23
  - Only OpenAPI 3.x is supported.
24
24
  - Only **API Key** (header or query) and **HTTP Bearer** authentication are supported. OAuth2, Basic Auth, and mutual TLS are not.
25
- - Request bodies with nested objects, arrays, or `oneOf`/`anyOf`/`allOf` schemas are exposed as a single raw "Body (JSON)" field rather than individual fields.
25
+ - Request bodies with nested objects, arrays, or genuine `oneOf`/`anyOf`/`allOf` type unions are exposed as a single raw "Body (JSON)" field rather than individual fields. A nullable/optional primitive field (OpenAPI 3.1's `anyOf: [{type: 'string'}, {type: 'null'}]`, as FastAPI/Pydantic generates for `Optional[str]`) is still recognized as simple and gets its own field.
26
26
  - If the spec declared more than one supported auth scheme, they were combined into a single credential covering all of them, rather than offering a choice.
27
27
 
28
28
  ## Regenerating
@@ -1,8 +1,9 @@
1
- import type { ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
2
  export declare class RemoteChromiumCDPAutomationAPIApi implements ICredentialType {
3
3
  name: string;
4
4
  displayName: string;
5
5
  documentationUrl: string;
6
6
  properties: INodeProperties[];
7
+ authenticate: IAuthenticateGeneric;
7
8
  test: ICredentialTestRequest;
8
9
  }
@@ -15,7 +15,24 @@ class RemoteChromiumCDPAutomationAPIApi {
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
+ {
19
+ displayName: 'X-API-Key (API Key)',
20
+ name: 'xAPIKey',
21
+ type: 'string',
22
+ typeOptions: { password: true },
23
+ default: '',
24
+ required: true,
25
+ description: 'Sent as the "X-API-Key" header on every request.',
26
+ },
18
27
  ];
28
+ this.authenticate = {
29
+ type: 'generic',
30
+ properties: {
31
+ headers: {
32
+ 'X-API-Key': '={{$credentials.xAPIKey}}',
33
+ },
34
+ },
35
+ };
19
36
  this.test = {
20
37
  request: {
21
38
  baseURL: '={{$credentials.baseUrl}}',