@@ -47,7 +47,6 @@ export const RootlyBlock: BlockConfig<RootlyResponse> = {
4747 type : 'short-input' ,
4848 placeholder : 'Incident title' ,
4949 condition : { field : 'operation' , value : 'rootly_create_incident' } ,
50- required : { field : 'operation' , value : 'rootly_create_incident' } ,
5150 } ,
5251 {
5352 id : 'createSummary' ,
@@ -78,6 +77,9 @@ export const RootlyBlock: BlockConfig<RootlyResponse> = {
7877 { label : 'Resolved' , id : 'resolved' } ,
7978 { label : 'Closed' , id : 'closed' } ,
8079 { label : 'Cancelled' , id : 'cancelled' } ,
80+ { label : 'Scheduled' , id : 'scheduled' } ,
81+ { label : 'In Progress' , id : 'in_progress' } ,
82+ { label : 'Completed' , id : 'completed' } ,
8183 ] ,
8284 value : ( ) => '' ,
8385 condition : { field : 'operation' , value : 'rootly_create_incident' } ,
@@ -215,6 +217,9 @@ export const RootlyBlock: BlockConfig<RootlyResponse> = {
215217 { label : 'Resolved' , id : 'resolved' } ,
216218 { label : 'Closed' , id : 'closed' } ,
217219 { label : 'Cancelled' , id : 'cancelled' } ,
220+ { label : 'Scheduled' , id : 'scheduled' } ,
221+ { label : 'In Progress' , id : 'in_progress' } ,
222+ { label : 'Completed' , id : 'completed' } ,
218223 ] ,
219224 condition : { field : 'operation' , value : 'rootly_update_incident' } ,
220225 } ,
@@ -266,6 +271,74 @@ export const RootlyBlock: BlockConfig<RootlyResponse> = {
266271 condition : { field : 'operation' , value : 'rootly_update_incident' } ,
267272 mode : 'advanced' ,
268273 } ,
274+ {
275+ id : 'updateKind' ,
276+ title : 'Kind' ,
277+ type : 'dropdown' ,
278+ options : [
279+ { label : 'Unchanged' , id : '' } ,
280+ { label : 'Normal' , id : 'normal' } ,
281+ { label : 'Test' , id : 'test' } ,
282+ { label : 'Example' , id : 'example' } ,
283+ { label : 'Backfilled' , id : 'backfilled' } ,
284+ { label : 'Scheduled' , id : 'scheduled' } ,
285+ ] ,
286+ value : ( ) => '' ,
287+ condition : { field : 'operation' , value : 'rootly_update_incident' } ,
288+ mode : 'advanced' ,
289+ } ,
290+ {
291+ id : 'updatePrivate' ,
292+ title : 'Private' ,
293+ type : 'dropdown' ,
294+ options : [
295+ { label : 'Unchanged' , id : '' } ,
296+ { label : 'Yes' , id : 'true' } ,
297+ { label : 'No' , id : 'false' } ,
298+ ] ,
299+ value : ( ) => '' ,
300+ condition : { field : 'operation' , value : 'rootly_update_incident' } ,
301+ mode : 'advanced' ,
302+ } ,
303+ {
304+ id : 'updateIncidentTypeIds' ,
305+ title : 'Incident Type IDs' ,
306+ type : 'short-input' ,
307+ placeholder : 'Comma-separated incident type IDs' ,
308+ condition : { field : 'operation' , value : 'rootly_update_incident' } ,
309+ mode : 'advanced' ,
310+ } ,
311+ {
312+ id : 'updateFunctionalityIds' ,
313+ title : 'Functionality IDs' ,
314+ type : 'short-input' ,
315+ placeholder : 'Comma-separated functionality IDs' ,
316+ condition : { field : 'operation' , value : 'rootly_update_incident' } ,
317+ mode : 'advanced' ,
318+ } ,
319+ {
320+ id : 'updateLabels' ,
321+ title : 'Labels' ,
322+ type : 'short-input' ,
323+ placeholder : '{"platform":"osx","version":"1.29"}' ,
324+ condition : { field : 'operation' , value : 'rootly_update_incident' } ,
325+ mode : 'advanced' ,
326+ wandConfig : {
327+ enabled : true ,
328+ prompt :
329+ 'Generate a JSON object of key-value label pairs for a Rootly incident. Example: {"platform":"osx","version":"1.29","region":"us-east-1"}. Return ONLY the JSON object - no explanations, no extra text.' ,
330+ placeholder : 'Describe the labels (e.g., "platform osx, version 1.29")...' ,
331+ generationType : 'json-object' ,
332+ } ,
333+ } ,
334+ {
335+ id : 'cancellationMessage' ,
336+ title : 'Cancellation Message' ,
337+ type : 'long-input' ,
338+ placeholder : 'Why was the incident cancelled?' ,
339+ condition : { field : 'operation' , value : 'rootly_update_incident' } ,
340+ mode : 'advanced' ,
341+ } ,
269342
270343 // List Incidents fields
271344 {
@@ -282,6 +355,9 @@ export const RootlyBlock: BlockConfig<RootlyResponse> = {
282355 { label : 'Resolved' , id : 'resolved' } ,
283356 { label : 'Closed' , id : 'closed' } ,
284357 { label : 'Cancelled' , id : 'cancelled' } ,
358+ { label : 'Scheduled' , id : 'scheduled' } ,
359+ { label : 'In Progress' , id : 'in_progress' } ,
360+ { label : 'Completed' , id : 'completed' } ,
285361 ] ,
286362 condition : { field : 'operation' , value : 'rootly_list_incidents' } ,
287363 } ,
@@ -378,7 +454,7 @@ export const RootlyBlock: BlockConfig<RootlyResponse> = {
378454 type : 'short-input' ,
379455 placeholder : 'Alert source (e.g., api, datadog)' ,
380456 condition : { field : 'operation' , value : 'rootly_create_alert' } ,
381- mode : 'advanced' ,
457+ required : { field : 'operation' , value : 'rootly_create_alert' } ,
382458 } ,
383459 {
384460 id : 'alertServiceIds' ,
@@ -420,8 +496,6 @@ export const RootlyBlock: BlockConfig<RootlyResponse> = {
420496 { label : 'Default' , id : '' } ,
421497 { label : 'Open' , id : 'open' } ,
422498 { label : 'Triggered' , id : 'triggered' } ,
423- { label : 'Acknowledged' , id : 'acknowledged' } ,
424- { label : 'Resolved' , id : 'resolved' } ,
425499 ] ,
426500 value : ( ) => '' ,
427501 condition : { field : 'operation' , value : 'rootly_create_alert' } ,
@@ -455,6 +529,7 @@ export const RootlyBlock: BlockConfig<RootlyResponse> = {
455529 { label : 'Triggered' , id : 'triggered' } ,
456530 { label : 'Acknowledged' , id : 'acknowledged' } ,
457531 { label : 'Resolved' , id : 'resolved' } ,
532+ { label : 'Deferred' , id : 'deferred' } ,
458533 ] ,
459534 condition : { field : 'operation' , value : 'rootly_list_alerts' } ,
460535 } ,
@@ -564,6 +639,13 @@ export const RootlyBlock: BlockConfig<RootlyResponse> = {
564639 } ,
565640
566641 // List Severities fields
642+ {
643+ id : 'severitiesSearch' ,
644+ title : 'Search' ,
645+ type : 'short-input' ,
646+ placeholder : 'Search severities...' ,
647+ condition : { field : 'operation' , value : 'rootly_list_severities' } ,
648+ } ,
567649 {
568650 id : 'severitiesPageSize' ,
569651 title : 'Page Size' ,
@@ -634,9 +716,9 @@ export const RootlyBlock: BlockConfig<RootlyResponse> = {
634716 // List Incident Types fields
635717 {
636718 id : 'incidentTypesSearch' ,
637- title : 'Search ' ,
719+ title : 'Name Filter ' ,
638720 type : 'short-input' ,
639- placeholder : 'Search incident types ...' ,
721+ placeholder : 'Filter by name ...' ,
640722 condition : { field : 'operation' , value : 'rootly_list_incident_types' } ,
641723 } ,
642724 {
@@ -783,11 +865,17 @@ export const RootlyBlock: BlockConfig<RootlyResponse> = {
783865 summary : params . updateSummary ,
784866 status : params . updateStatus ,
785867 severityId : params . updateSeverityId ,
868+ kind : params . updateKind ,
869+ private : params . updatePrivate ? params . updatePrivate === 'true' : undefined ,
786870 mitigationMessage : params . mitigationMessage ,
787871 resolutionMessage : params . resolutionMessage ,
872+ cancellationMessage : params . cancellationMessage ,
788873 serviceIds : params . updateServiceIds ,
789874 environmentIds : params . updateEnvironmentIds ,
790875 groupIds : params . updateGroupIds ,
876+ incidentTypeIds : params . updateIncidentTypeIds ,
877+ functionalityIds : params . updateFunctionalityIds ,
878+ labels : params . updateLabels ,
791879 }
792880
793881 case 'rootly_list_incidents' :
@@ -856,6 +944,7 @@ export const RootlyBlock: BlockConfig<RootlyResponse> = {
856944 case 'rootly_list_severities' :
857945 return {
858946 ...baseParams ,
947+ search : params . severitiesSearch ,
859948 pageSize : params . severitiesPageSize ? Number ( params . severitiesPageSize ) : undefined ,
860949 pageNumber : params . severitiesPageNumber
861950 ? Number ( params . severitiesPageNumber )
@@ -951,6 +1040,12 @@ export const RootlyBlock: BlockConfig<RootlyResponse> = {
9511040 updateServiceIds : { type : 'string' , description : 'Updated service IDs' } ,
9521041 updateEnvironmentIds : { type : 'string' , description : 'Updated environment IDs' } ,
9531042 updateGroupIds : { type : 'string' , description : 'Updated team IDs' } ,
1043+ updateKind : { type : 'string' , description : 'Updated kind' } ,
1044+ updatePrivate : { type : 'string' , description : 'Whether incident is private' } ,
1045+ updateIncidentTypeIds : { type : 'string' , description : 'Updated incident type IDs' } ,
1046+ updateFunctionalityIds : { type : 'string' , description : 'Updated functionality IDs' } ,
1047+ updateLabels : { type : 'string' , description : 'Updated labels as JSON' } ,
1048+ cancellationMessage : { type : 'string' , description : 'Cancellation message' } ,
9541049 listIncidentsStatus : { type : 'string' , description : 'Filter by status' } ,
9551050 listIncidentsSearch : { type : 'string' , description : 'Search incidents' } ,
9561051 listIncidentsSeverity : { type : 'string' , description : 'Filter by severity' } ,
@@ -983,6 +1078,7 @@ export const RootlyBlock: BlockConfig<RootlyResponse> = {
9831078 servicesSearch : { type : 'string' , description : 'Search services' } ,
9841079 servicesPageSize : { type : 'string' , description : 'Services page size' } ,
9851080 servicesPageNumber : { type : 'string' , description : 'Services page number' } ,
1081+ severitiesSearch : { type : 'string' , description : 'Search severities' } ,
9861082 severitiesPageSize : { type : 'string' , description : 'Severities page size' } ,
9871083 severitiesPageNumber : { type : 'string' , description : 'Severities page number' } ,
9881084 teamsSearch : { type : 'string' , description : 'Search teams' } ,
@@ -1024,6 +1120,7 @@ export const RootlyBlock: BlockConfig<RootlyResponse> = {
10241120 visibility : { type : 'string' , description : 'Event visibility' } ,
10251121 occurredAt : { type : 'string' , description : 'When the event occurred' } ,
10261122 createdAt : { type : 'string' , description : 'Creation date' } ,
1123+ updatedAt : { type : 'string' , description : 'Last update date' } ,
10271124 services : {
10281125 type : 'json' ,
10291126 description : 'List of services (id, name, slug, description, color)' ,
0 commit comments