import { ExtendedIntegrationPluginId, Plugin, SUPERBLOCKS_OPENAPI_TENANT_KEYWORD } from '../../types/index.js';
import { getNativeOpenApiPlugin } from './shared/index.js';

export const ConfluencePlugin: Plugin = getNativeOpenApiPlugin({
  name: 'Confluence Cloud',
  id: ExtendedIntegrationPluginId.CONFLUENCE,
  authMethods: {
    basic: { password: { label: 'API token', placeholder: 'my-api-token' } }
  },
  serverURL: `https://${SUPERBLOCKS_OPENAPI_TENANT_KEYWORD}.atlassian.net`,
  tenantInput: {
    label: 'Atlassian domain',
    placeholder: 'your-domain',
    subtitle: 'Your Atlassian organization domain (e.g. https://<your-domain>.atlassian.net)'
  }
});
