11import { GrainIcon } from '@/components/icons'
22import type { TriggerConfig } from '@/triggers/types'
3- import { buildHighlightOutputs , grainSetupInstructions } from './utils'
3+ import { buildHighlightOutputs , grainSetupInstructions , grainTriggerOptions } from './utils'
44
55export const grainHighlightCreatedTrigger : TriggerConfig = {
66 id : 'grain_highlight_created' ,
@@ -11,6 +11,15 @@ export const grainHighlightCreatedTrigger: TriggerConfig = {
1111 icon : GrainIcon ,
1212
1313 subBlocks : [
14+ {
15+ id : 'selectedTriggerId' ,
16+ title : 'Trigger Type' ,
17+ type : 'dropdown' ,
18+ mode : 'trigger' ,
19+ options : grainTriggerOptions ,
20+ value : ( ) => 'grain_highlight_created' ,
21+ required : true ,
22+ } ,
1423 {
1524 id : 'apiKey' ,
1625 title : 'API Key' ,
@@ -25,42 +34,6 @@ export const grainHighlightCreatedTrigger: TriggerConfig = {
2534 value : 'grain_highlight_created' ,
2635 } ,
2736 } ,
28- {
29- id : 'includeHighlights' ,
30- title : 'Include Highlights' ,
31- type : 'switch' ,
32- description : 'Include highlights/clips in webhook payload.' ,
33- defaultValue : false ,
34- mode : 'trigger' ,
35- condition : {
36- field : 'selectedTriggerId' ,
37- value : 'grain_highlight_created' ,
38- } ,
39- } ,
40- {
41- id : 'includeParticipants' ,
42- title : 'Include Participants' ,
43- type : 'switch' ,
44- description : 'Include participant list in webhook payload.' ,
45- defaultValue : false ,
46- mode : 'trigger' ,
47- condition : {
48- field : 'selectedTriggerId' ,
49- value : 'grain_highlight_created' ,
50- } ,
51- } ,
52- {
53- id : 'includeAiSummary' ,
54- title : 'Include AI Summary' ,
55- type : 'switch' ,
56- description : 'Include AI-generated summary in webhook payload.' ,
57- defaultValue : false ,
58- mode : 'trigger' ,
59- condition : {
60- field : 'selectedTriggerId' ,
61- value : 'grain_highlight_created' ,
62- } ,
63- } ,
6437 {
6538 id : 'triggerInstructions' ,
6639 title : 'Setup Instructions' ,
0 commit comments