import { FirefliesIcon } from '@/components/icons' import type { TriggerConfig } from '@/triggers/types' export const firefliesTranscriptionCompleteTrigger: TriggerConfig = { id: 'fireflies_transcription_complete', name: 'Fireflies Transcription Complete', provider: 'fireflies', description: 'Trigger workflow when a Fireflies meeting transcription is complete', version: '1.0.0', icon: FirefliesIcon, subBlocks: [ { id: 'webhookUrlDisplay', title: 'Webhook URL', type: 'short-input', readOnly: true, showCopyButton: true, useWebhookUrl: true, placeholder: 'Webhook URL will be generated', mode: 'trigger', }, { id: 'webhookSecret', title: 'Webhook Secret', type: 'short-input', placeholder: 'Enter your 16-32 character secret', description: 'Secret key for HMAC signature verification (set in Fireflies dashboard)', password: true, required: false, mode: 'trigger', }, { id: 'triggerInstructions', title: 'Setup Instructions', hideFromPreview: true, type: 'text', defaultValue: [ 'Go to app.fireflies.ai/settings', 'Navigate to the Developer settings tab', 'In the Webhook or Webhooks V2 section, paste the Webhook URL above', 'Enter a Secret (16-32 characters) and save it here as well', 'Click Save in Fireflies to activate the webhook', 'Both Webhook V1 and V2 formats are supported automatically', ] .map( (instruction, index) => `