n8n-nodes-smartgent
Version:
SmartGent custom nodes for n8n - AI-powered automation and intelligent workflow integrations including LiteLLM chat completions, SharePoint file monitoring, and enterprise search
76 lines • 2.78 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.S3MinIO = void 0;
class S3MinIO {
constructor() {
this.name = 's3MinIO';
this.displayName = 'S3/MinIO';
this.documentationUrl = 'https://docs.aws.amazon.com/s3/';
this.properties = [
{
displayName: 'Access Key ID',
name: 'accessKeyId',
type: 'string',
default: '',
required: true,
description: 'The access key ID for your S3/MinIO account',
},
{
displayName: 'Secret Access Key',
name: 'secretAccessKey',
type: 'string',
typeOptions: { password: true },
default: '',
required: true,
description: 'The secret access key for your S3/MinIO account',
},
{
displayName: 'Region',
name: 'region',
type: 'string',
default: 'us-east-1',
required: true,
description: 'The region where your S3 bucket is located (for MinIO, use any valid region)',
},
{
displayName: 'Endpoint URL',
name: 'endpointUrl',
type: 'string',
default: '',
placeholder: 'https://s3.amazonaws.com (leave empty for AWS S3)',
description: 'Custom endpoint URL for MinIO or S3-compatible services. Leave empty for AWS S3.',
},
{
displayName: 'Force Path Style',
name: 'forcePathStyle',
type: 'boolean',
default: false,
description: 'Whether to force path-style URLs (required for MinIO)',
},
];
this.authenticate = {
type: 'generic',
properties: {},
};
this.test = {
request: {
baseURL: '={{$credentials.endpointUrl || "https://s3." + $credentials.region + ".amazonaws.com"}}',
url: '/',
method: 'GET',
skipSslCertificateValidation: true,
ignoreHttpStatusErrors: true,
},
rules: [
{
type: 'responseCode',
properties: {
value: 403,
message: 'Endpoint is reachable. 403 Forbidden is expected without authentication. Credentials will be validated when the node is used.',
},
},
],
};
}
}
exports.S3MinIO = S3MinIO;
//# sourceMappingURL=S3MinIO.credentials.js.map