2022-06-30 17:09:31 +02:00
|
|
|
import {
|
2025-06-11 16:09:26 +00:00
|
|
|
// IAuthenticateGeneric, // Removed as 'authenticate' block is removed
|
|
|
|
|
// ICredentialTestRequest, // Removed as 'test' block is removed
|
2022-06-30 17:09:31 +02:00
|
|
|
ICredentialType,
|
|
|
|
|
INodeProperties,
|
|
|
|
|
} from 'n8n-workflow';
|
2019-10-03 08:53:03 +02:00
|
|
|
|
2025-06-11 16:09:26 +00:00
|
|
|
// import * as sunoApi from '../../utils/sunoApi'; // Would be used for a real test
|
2025-05-13 14:26:01 +01:00
|
|
|
|
2025-06-11 16:09:26 +00:00
|
|
|
export class SunoApi implements ICredentialType { // Renamed class
|
|
|
|
|
name = 'sunoApi'; // Renamed
|
|
|
|
|
displayName = 'Suno API'; // Renamed
|
|
|
|
|
documentationUrl = 'https://suno.ai/'; // Updated URL
|
2025-05-13 14:26:01 +01:00
|
|
|
|
2022-06-28 15:27:25 +02:00
|
|
|
properties: INodeProperties[] = [
|
2019-10-03 08:53:03 +02:00
|
|
|
{
|
2025-06-11 16:09:26 +00:00
|
|
|
displayName: 'Email',
|
|
|
|
|
name: 'email',
|
2022-06-28 15:27:25 +02:00
|
|
|
type: 'string',
|
2019-10-03 08:53:03 +02:00
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-06-29 17:25:14 +02:00
|
|
|
displayName: 'Password',
|
|
|
|
|
name: 'password',
|
2022-06-28 15:27:25 +02:00
|
|
|
type: 'string',
|
2022-06-29 17:25:14 +02:00
|
|
|
typeOptions: {
|
|
|
|
|
password: true,
|
|
|
|
|
},
|
2019-10-03 08:53:03 +02:00
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
];
|
2022-06-29 17:25:14 +02:00
|
|
|
|
2025-06-11 16:09:26 +00:00
|
|
|
// The 'authenticate' object is removed for this phase.
|
|
|
|
|
// Authentication will be handled by functions in utils/sunoApi.ts.
|
|
|
|
|
// authenticate: IAuthenticateGeneric = { ... };
|
2022-06-29 17:25:14 +02:00
|
|
|
|
2025-06-11 16:09:26 +00:00
|
|
|
// The 'test' object is removed for this phase.
|
|
|
|
|
// It will be added back when actual API endpoints for testing are known
|
|
|
|
|
// or if a more suitable mock test can be devised without calling sunoApi.ts directly.
|
|
|
|
|
// test: ICredentialTestRequest = { ... };
|
2019-10-03 08:53:03 +02:00
|
|
|
}
|