first commit
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled

This commit is contained in:
2026-03-17 16:22:57 +03:30
commit 3d5eaf9445
15349 changed files with 2847338 additions and 0 deletions
@@ -0,0 +1,215 @@
import type { INodeProperties } from 'n8n-workflow';
export const companyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
required: true,
displayOptions: {
show: {
resource: ['company'],
},
},
options: [
{
name: 'Get Factor Scores',
value: 'getFactor',
description: 'Get company factor scores and issue counts',
action: 'Get a company factor scores and issue counts',
},
{
name: 'Get Historical Factor Scores',
value: 'getFactorHistorical',
description: "Get company's historical factor scores",
action: "Get a company's historical factor scores",
},
{
name: 'Get Historical Scores',
value: 'getHistoricalScore',
description: "Get company's historical scores",
action: "Get a company's historical scores",
},
{
name: 'Get Information and Scorecard',
value: 'getScorecard',
description: 'Get company information and summary of their scorecard',
action: 'Get company information and a summary of their scorecard',
},
{
name: 'Get Score Plan',
value: 'getScorePlan',
description: "Get company's score improvement plan",
action: "Get a company's score improvement plan",
},
],
default: 'getFactor',
},
];
export const companyFields: INodeProperties[] = [
{
displayName: 'Scorecard Identifier',
name: 'scorecardIdentifier',
description: 'Primary identifier of a company or scorecard, i.e. domain.',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
resource: ['company'],
operation: [
'getScorecard',
'getFactor',
'getFactorHistorical',
'getHistoricalScore',
'getScorePlan',
],
},
},
},
{
displayName: 'Score',
name: 'score',
description: 'Score target',
type: 'number',
displayOptions: {
show: {
resource: ['company'],
operation: ['getScorePlan'],
},
},
required: true,
default: 0,
},
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
resource: ['company'],
operation: ['getFactor', 'getFactorHistorical', 'getHistoricalScore', 'getScorePlan'],
},
},
default: false,
description: 'Whether to return all results or only up to a given limit',
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
displayOptions: {
show: {
resource: ['company'],
operation: ['getFactor', 'getFactorHistorical', 'getHistoricalScore', 'getScorePlan'],
returnAll: [false],
},
},
typeOptions: {
minValue: 1,
maxValue: 100,
},
default: 100,
description: 'Max number of results to return',
},
{
displayName: 'Simplify',
name: 'simple',
type: 'boolean',
displayOptions: {
show: {
resource: ['company'],
operation: ['getFactorHistorical', 'getHistoricalScore'],
},
},
default: true,
description: 'Whether to return a simplified version of the response instead of the raw data',
},
// company:getFactor
{
displayName: 'Filters',
name: 'filters',
displayOptions: {
show: {
resource: ['company'],
operation: ['getFactor'],
},
},
type: 'collection',
placeholder: 'Add Filter',
default: {},
options: [
{
displayName: 'Severity',
name: 'severity',
type: 'string',
default: '',
placeholder: '',
},
{
displayName: 'Severity In',
description: 'Filter issues by comma-separated severity list',
name: 'severity_in',
type: 'string',
default: '',
placeholder: '',
},
],
},
// company:getFactorHistorical
// company:getHistoricalScore
{
displayName: 'Options',
name: 'options',
displayOptions: {
show: {
resource: ['company'],
operation: ['getFactorHistorical', 'getHistoricalScore'],
},
},
type: 'collection',
placeholder: 'Add option',
default: {},
options: [
{
displayName: 'Date From',
description: 'History start date',
name: 'date_from',
type: 'dateTime',
default: '',
},
{
displayName: 'Date To',
description: 'History end date',
name: 'date_to',
type: 'dateTime',
default: '',
},
{
displayName: 'Timing',
description: 'Date granularity',
name: 'timing',
type: 'options',
options: [
{
name: 'Daily',
value: 'daily',
},
{
name: 'Weekly',
value: 'weekly',
},
{
name: 'Monthly',
value: 'monthly',
},
],
default: 'daily',
},
],
},
];
@@ -0,0 +1,145 @@
import type { INodeProperties } from 'n8n-workflow';
export const industryOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
required: true,
displayOptions: {
show: {
resource: ['industry'],
},
},
options: [
{
name: 'Get Factor Scores',
value: 'getFactor',
action: 'Get factor scores for an industry',
},
{
name: 'Get Historical Factor Scores',
value: 'getFactorHistorical',
action: 'Get historical factor scores for an industry',
},
{
name: 'Get Score',
value: 'getScore',
action: 'Get the score for an industry',
},
],
default: 'getFactor',
},
];
export const industryFields: INodeProperties[] = [
{
displayName: 'Industry',
name: 'industry',
type: 'options',
default: 'food',
options: [
{
name: 'Food',
value: 'food',
},
{
name: 'Healthcare',
value: 'healthcare',
},
{
name: 'Manofacturing',
value: 'manofacturing',
},
{
name: 'Retail',
value: 'retail',
},
{
name: 'Technology',
value: 'technology',
},
],
required: true,
displayOptions: {
show: {
resource: ['industry'],
operation: ['getScore', 'getFactor', 'getFactorHistorical'],
},
},
},
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
resource: ['industry'],
operation: ['getFactor', 'getFactorHistorical'],
},
},
default: false,
description: 'Whether to return all results or only up to a given limit',
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
displayOptions: {
show: {
resource: ['industry'],
operation: ['getFactor', 'getFactorHistorical'],
returnAll: [false],
},
},
typeOptions: {
minValue: 1,
maxValue: 100,
},
default: 100,
description: 'Max number of results to return',
},
{
displayName: 'Simplify',
name: 'simple',
type: 'boolean',
displayOptions: {
show: {
resource: ['industry'],
operation: ['getFactor', 'getFactorHistorical'],
},
},
default: true,
description: 'Whether to return a simplified version of the response instead of the raw data',
},
{
displayName: 'Options',
name: 'options',
displayOptions: {
show: {
resource: ['industry'],
operation: ['getFactorHistorical'],
},
},
type: 'collection',
placeholder: 'Add option',
default: {},
options: [
{
displayName: 'Date From',
description: 'History start date',
name: 'from',
type: 'dateTime',
default: '',
},
{
displayName: 'Date To',
description: 'History end date',
name: 'to',
type: 'dateTime',
default: '',
},
],
},
];
@@ -0,0 +1,158 @@
import type { INodeProperties } from 'n8n-workflow';
export const inviteOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
required: true,
displayOptions: {
show: {
resource: ['invite'],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create an invite for a company/user',
action: 'Create an invite',
},
],
default: 'create',
},
];
export const inviteFields: INodeProperties[] = [
{
displayName: 'Email',
name: 'email',
type: 'string',
placeholder: 'name@email.com',
default: '',
required: true,
displayOptions: {
show: {
resource: ['invite'],
operation: ['create'],
},
},
},
{
displayName: 'First Name',
name: 'firstName',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
resource: ['invite'],
operation: ['create'],
},
},
},
{
displayName: 'Last Name',
name: 'lastName',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
resource: ['invite'],
operation: ['create'],
},
},
},
{
displayName: 'Message',
name: 'message',
description: 'Message for the invitee',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
resource: ['invite'],
operation: ['create'],
},
},
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
displayOptions: {
show: {
resource: ['invite'],
operation: ['create'],
},
},
default: {},
options: [
{
displayName: 'Days to Resolve Issue',
description: 'Minimum days to resolve a scorecard issue',
name: 'days_to_resolve_issue',
type: 'number',
default: 0,
},
{
displayName: 'Domain',
description: 'Invitee company domain',
name: 'domain',
type: 'string',
default: '',
},
{
displayName: 'Grade to Maintain',
description: "Request the invitee's organisation to maintain a minimum grade",
name: 'grade_to_maintain',
type: 'string',
default: '',
},
{
displayName: 'Is Organisation Point of Contact',
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
description: "Is the invitee organisation's point of contact",
name: 'is_organization_point_of_contact',
type: 'boolean',
default: false,
},
{
displayName: 'Issue Description',
name: 'issue_desc',
type: 'string',
default: '',
},
{
displayName: 'Issue Title',
name: 'issue_title',
type: 'string',
default: '',
},
{
displayName: 'Issue Type',
name: 'issue_type',
type: 'string',
default: '',
},
{
displayName: 'Send Me a Copy',
name: 'sendme_copy',
description: 'Whether to send a copy of the invite to the requesting user',
type: 'boolean',
default: false,
},
{
displayName: 'Target URL',
name: 'target_url',
type: 'string',
description: 'Optional URL to take the invitee to when arriving to the platform',
default: '',
},
],
},
];
@@ -0,0 +1,161 @@
import type { INodeProperties } from 'n8n-workflow';
export const portfolioCompanyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
required: true,
displayOptions: {
show: {
resource: ['portfolioCompany'],
},
},
options: [
{
name: 'Add',
value: 'add',
description: 'Add a company to portfolio',
action: 'Add a portfolio company',
},
{
name: 'Get Many',
value: 'getAll',
description: 'Get many companies in a portfolio',
action: 'Get many portfolio companies',
},
{
name: 'Remove',
value: 'remove',
description: 'Remove a company from portfolio',
action: 'Remove a portfolio company',
},
],
default: 'add',
},
];
export const portfolioCompanyFields: INodeProperties[] = [
{
displayName: 'Portfolio ID',
name: 'portfolioId',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['portfolioCompany'],
operation: ['getAll', 'add', 'remove'],
},
},
},
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
resource: ['portfolioCompany'],
operation: ['getAll'],
},
},
default: false,
description: 'Whether to return all results or only up to a given limit',
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
displayOptions: {
show: {
resource: ['portfolioCompany'],
operation: ['getAll'],
returnAll: [false],
},
},
typeOptions: {
minValue: 1,
maxValue: 100,
},
default: 100,
description: 'Max number of results to return',
},
{
displayName: 'Filters',
name: 'filters',
displayOptions: {
show: {
resource: ['portfolioCompany'],
operation: ['getAll'],
},
},
type: 'collection',
placeholder: 'Add Filter',
default: {},
options: [
{
displayName: 'Grade',
name: 'grade',
type: 'string',
placeholder: '',
default: '',
description: 'Company score grade filter',
},
{
displayName: 'Industry',
name: 'industry',
type: 'string',
placeholder: '',
default: '',
description: 'Industry filter',
},
{
displayName: 'Issue Type',
name: 'issueType',
type: 'string',
placeholder: '',
description: 'Issue type filter',
default: '',
},
{
displayName: 'Status',
name: 'status',
type: 'options',
options: [
{
name: 'Active',
value: 'active',
},
{
name: 'Inactive',
value: 'inactive',
},
],
default: '',
},
{
displayName: 'Vulnerability',
name: 'vulnerability',
type: 'string',
placeholder: '',
description: 'CVE vulnerability filter',
default: '',
},
],
},
{
displayName: 'Domain',
name: 'domain',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['portfolioCompany'],
operation: ['add', 'remove'],
},
},
description: "Company's domain name",
},
];
@@ -0,0 +1,145 @@
import type { INodeProperties } from 'n8n-workflow';
export const portfolioOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
required: true,
displayOptions: {
show: {
resource: ['portfolio'],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create a portfolio',
action: 'Create a portfolio',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a portfolio',
action: 'Delete a portfolio',
},
{
name: 'Get Many',
value: 'getAll',
description: 'Get many portfolios',
action: 'Get many portfolios',
},
{
name: 'Update',
value: 'update',
description: 'Update a portfolio',
action: 'Update a portfolio',
},
],
default: 'create',
},
];
export const portfolioFields: INodeProperties[] = [
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
resource: ['portfolio'],
operation: ['getAll'],
},
},
default: false,
description: 'Whether to return all results or only up to a given limit',
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
displayOptions: {
show: {
resource: ['portfolio'],
operation: ['getAll'],
returnAll: [false],
},
},
typeOptions: {
minValue: 1,
maxValue: 100,
},
default: 100,
description: 'Max number of results to return',
},
{
displayName: 'Portfolio ID',
name: 'portfolioId',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['portfolio'],
operation: ['update', 'delete'],
},
},
},
{
displayName: 'Portfolio Name',
name: 'name',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['portfolio'],
operation: ['create', 'update'],
},
},
description: 'Name of the portfolio',
},
{
displayName: 'Description',
name: 'description',
type: 'string',
default: '',
displayOptions: {
show: {
resource: ['portfolio'],
operation: ['create', 'update'],
},
},
},
{
displayName: 'Privacy',
name: 'privacy',
type: 'options',
displayOptions: {
show: {
resource: ['portfolio'],
operation: ['create', 'update'],
},
},
options: [
{
name: 'Private',
value: 'private',
description: 'Only visible to you',
},
{
name: 'Shared',
value: 'shared',
description: 'Visible to everyone in your company',
},
{
name: 'Team',
value: 'team',
description: 'Visible to the people on your team',
},
],
default: 'shared',
},
];
@@ -0,0 +1,315 @@
import type { INodeProperties } from 'n8n-workflow';
export const reportOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
required: true,
displayOptions: {
show: {
resource: ['report'],
},
},
options: [
{
name: 'Download',
value: 'download',
description: 'Download a generated report',
action: 'Download a report',
},
{
name: 'Generate',
value: 'generate',
description: 'Generate a report',
action: 'Generate a report',
},
{
name: 'Get Many',
value: 'getAll',
description: 'Get list of recently generated report',
action: 'Get many reports',
},
],
default: 'getAll',
},
];
export const reportFields: INodeProperties[] = [
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
resource: ['report'],
operation: ['getAll'],
},
},
default: false,
description: 'Whether to return all results or only up to a given limit',
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
displayOptions: {
show: {
resource: ['report'],
operation: ['getAll'],
returnAll: [false],
},
},
typeOptions: {
minValue: 1,
maxValue: 100,
},
default: 100,
description: 'Max number of results to return',
},
{
displayName: 'Report',
name: 'report',
type: 'options',
required: true,
displayOptions: {
show: {
resource: ['report'],
operation: ['generate'],
},
},
options: [
{
name: 'Company Detailed',
value: 'detailed',
},
{
name: 'Company Events',
value: 'events-json',
},
{
name: 'Company Issues',
value: 'issues',
},
{
name: 'Company Partnership',
value: 'partnership',
},
{
name: 'Company Summary',
value: 'summary',
},
{
name: 'Full Scorecard',
value: 'full-scorecard-json',
},
{
name: 'Portfolio',
value: 'portfolio',
},
{
name: 'Scorecard Footprint',
value: 'scorecard-footprint',
},
],
default: 'detailed',
},
{
displayName: 'Scorecard Identifier',
name: 'scorecardIdentifier',
description: 'Primary identifier of a company or scorecard, i.e. domain.',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['report'],
operation: ['generate'],
report: [
'detailed',
'events-json',
'full-scorecard-json',
'issues',
'partnership',
'scorecard-footprint',
'summary',
],
},
},
},
{
displayName: 'Portfolio ID',
name: 'portfolioId',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['report'],
operation: ['generate'],
report: ['portfolio'],
},
},
},
{
displayName: 'Branding',
name: 'branding',
type: 'options',
displayOptions: {
show: {
resource: ['report'],
operation: ['generate'],
report: ['detailed', 'summary'],
},
},
options: [
{
name: 'SecurityScorecard',
value: 'securityscorecard',
},
{
name: 'Company and SecurityScorecard',
value: 'company_and_securityscorecard',
},
{
name: 'Company',
value: 'company',
},
],
default: 'securityscorecard',
},
{
displayName: 'Date',
name: 'date',
type: 'dateTime',
default: '',
required: true,
displayOptions: {
show: {
resource: ['report'],
operation: ['generate'],
report: ['events-json'],
},
},
},
{
displayName: 'Options',
name: 'options',
type: 'collection',
default: {},
placeholder: 'Add Field',
displayOptions: {
show: {
resource: ['report'],
operation: ['generate'],
report: ['issues', 'portfolio'],
},
},
options: [
{
displayName: 'Format',
name: 'format',
type: 'options',
default: 'pdf',
options: [
{
name: 'CSV',
value: 'csv',
},
{
name: 'PDF',
value: 'pdf',
},
],
},
],
},
{
displayName: 'Options',
name: 'options',
type: 'collection',
default: {},
placeholder: 'Add Field',
displayOptions: {
show: {
resource: ['report'],
operation: ['generate'],
report: ['scorecard-footprint'],
},
},
options: [
{
displayName: 'Countries',
name: 'countries',
type: 'string',
typeOptions: {
multipleValues: true,
},
default: [],
},
{
displayName: 'Format',
name: 'format',
type: 'options',
default: 'pdf',
options: [
{
name: 'CSV',
value: 'csv',
},
{
name: 'PDF',
value: 'pdf',
},
],
},
{
displayName: 'IPs',
name: 'ips',
type: 'string',
typeOptions: {
multipleValues: true,
},
default: [],
},
{
displayName: 'Subdomains',
name: 'subdomains',
type: 'string',
typeOptions: {
multipleValues: true,
},
default: [],
},
],
},
{
displayName: 'Report URL',
name: 'url',
type: 'string',
default: '',
required: true,
description: 'URL to a generated report',
displayOptions: {
show: {
resource: ['report'],
operation: ['download'],
},
},
},
{
displayName: 'Put Output File in Field',
name: 'binaryPropertyName',
type: 'string',
required: true,
default: 'data',
displayOptions: {
show: {
resource: ['report'],
operation: ['download'],
},
},
hint: 'The name of the output binary field to put the file in',
},
];