@periskope/types 0.6.288-1 → 0.6.290

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1042,6 +1042,7 @@ export type Database = {
1042
1042
  created_at: string
1043
1043
  custom_properties: Json | null
1044
1044
  due_date: string | null
1045
+ first_assigned_at: string | null
1045
1046
  freshdesk_metadata: Json | null
1046
1047
  hubspot_metadata: Json | null
1047
1048
  is_deleted: boolean
@@ -1066,6 +1067,7 @@ export type Database = {
1066
1067
  created_at?: string
1067
1068
  custom_properties?: Json | null
1068
1069
  due_date?: string | null
1070
+ first_assigned_at?: string | null
1069
1071
  freshdesk_metadata?: Json | null
1070
1072
  hubspot_metadata?: Json | null
1071
1073
  is_deleted?: boolean
@@ -1092,6 +1094,7 @@ export type Database = {
1092
1094
  created_at?: string
1093
1095
  custom_properties?: Json | null
1094
1096
  due_date?: string | null
1097
+ first_assigned_at?: string | null
1095
1098
  freshdesk_metadata?: Json | null
1096
1099
  hubspot_metadata?: Json | null
1097
1100
  is_deleted?: boolean
@@ -2392,6 +2395,7 @@ export type Database = {
2392
2395
  info_admins_only: boolean | null
2393
2396
  initiated_by: string | null
2394
2397
  invite_link: string | null
2398
+ is_archived: boolean | null
2395
2399
  is_exited: boolean | null
2396
2400
  is_muted: boolean | null
2397
2401
  label_ids: Json | null
@@ -2402,6 +2406,7 @@ export type Database = {
2402
2406
  messages_admins_only: boolean | null
2403
2407
  org_id: string | null
2404
2408
  org_phone: string | null
2409
+ parent_community_id: string | null
2405
2410
  pinned_messages: Json | null
2406
2411
  snooze_metadata: Json | null
2407
2412
  updated_at: string | null
@@ -2576,6 +2581,14 @@ export type Database = {
2576
2581
  }
2577
2582
  Returns: Json
2578
2583
  }
2584
+ get_chat_workflow_info: {
2585
+ Args: {
2586
+ chat_id_input: string
2587
+ org_id_input: string
2588
+ org_phone_input: string
2589
+ }
2590
+ Returns: Json
2591
+ }
2579
2592
  get_chats: {
2580
2593
  Args: {
2581
2594
  org_id_input: string
@@ -2660,6 +2673,16 @@ export type Database = {
2660
2673
  }
2661
2674
  Returns: Json
2662
2675
  }
2676
+ get_message_workflow_info: {
2677
+ Args: {
2678
+ chat_id_input: string
2679
+ org_id_input: string
2680
+ org_phone_input: string
2681
+ message_id_input: string
2682
+ sender_id_input: string
2683
+ }
2684
+ Returns: Json
2685
+ }
2663
2686
  get_messages_notifications_reactions: {
2664
2687
  Args: {
2665
2688
  org_id_input: string
@@ -2710,6 +2733,15 @@ export type Database = {
2710
2733
  }
2711
2734
  Returns: Json
2712
2735
  }
2736
+ get_sender_workflow_info: {
2737
+ Args: {
2738
+ chat_id_input: string
2739
+ org_id_input: string
2740
+ org_phone_input: string
2741
+ contact_id_input: string
2742
+ }
2743
+ Returns: Json
2744
+ }
2713
2745
  get_team_metrics_between_dates: {
2714
2746
  Args: {
2715
2747
  org_id_input: string
package/src/types.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  import type { default as _Stripe } from 'stripe';
2
2
  import { Merge, OverrideProperties } from 'type-fest';
3
3
  import { Filter, Rule } from './rules.types';
4
- import { Enums, Tables, TablesInsert, TablesUpdate } from './supabase.types';
5
- import { WorkflowActionTypes } from './workflows.types';
4
+ import { Tables, TablesInsert, TablesUpdate } from './supabase.types';
6
5
 
7
6
  /* ----------------------------- TYPE SHORTHANDS ---------------------------- */
8
7
 
@@ -812,6 +811,7 @@ export type TicketInfoType = {
812
811
  closed_at: string;
813
812
  closed_by: string;
814
813
  closed_message: string;
814
+ first_assigned_at: string | null;
815
815
  };
816
816
  attached_messages: {
817
817
  body: string;
@@ -1,7 +1,8 @@
1
1
  import { Merge, OverrideProperties } from 'type-fest';
2
- import { AppendTypes } from './rules.types';
3
2
  import { Tables } from './supabase.types';
4
- import { ChatInfoType, TaskType } from './types';
3
+ import { TaskType } from './types';
4
+ import { AppendTypes } from './rules.types';
5
+
5
6
 
6
7
  /***************************** WORKFLOWS *****************************/
7
8
 
@@ -13,7 +14,7 @@ export type NormalWorkflowActions = {
13
14
 
14
15
  export type SplitPathActions = {
15
16
  id: string;
16
- action_metadata: SplitPathAction;
17
+ action_metadata: SplitPathWorkflowAction;
17
18
  };
18
19
 
19
20
  export type WorkflowAction = NormalWorkflowActions | SplitPathActions;
@@ -210,17 +211,46 @@ export type WorkflowRawDataTypes = {
210
211
  members: string[];
211
212
  }
212
213
  >;
214
+ chat_label: Tables<'tbl_chat_properties'>;
213
215
  ticket: Tables<'tbl_chat_tickets'>;
214
216
  task: Tables<'tbl_org_tasks'>;
215
217
  sender: Tables<'tbl_contacts'> & Tables<'tbl_chat_participants'>;
216
218
  };
217
219
 
220
+ export type GetMessageWorkflowDataTypes = {
221
+ message: WorkflowRawDataTypes['message'];
222
+ sender: WorkflowRawDataTypes['sender'];
223
+ chat: WorkflowRawDataTypes['chat'];
224
+ };
225
+
226
+ export type GetChatWorkflowDataTypes = {
227
+ chat: WorkflowRawDataTypes['chat'];
228
+ };
229
+
230
+ export type GetTicketWorkflowDataTypes = {
231
+ ticket: WorkflowRawDataTypes['ticket'];
232
+ message: WorkflowRawDataTypes['message'];
233
+ sender: WorkflowRawDataTypes['sender'];
234
+ chat: WorkflowRawDataTypes['chat'];
235
+ };
236
+
237
+ export type GetTaskWorkflowDataTypes = {
238
+ task: WorkflowRawDataTypes['task'];
239
+ associated_object: TaskType['associated_object_metadata'];
240
+ };
241
+
242
+ export type GetReactionWorkflowDataTypes = {
243
+ reaction: WorkflowRawDataTypes['reaction'];
244
+ sender: WorkflowRawDataTypes['sender'];
245
+ message: WorkflowRawDataTypes['message'];
246
+ chat: WorkflowRawDataTypes['chat'];
247
+ };
248
+
218
249
  export type MessageWorkflowDataTypes = AppendTypes<
219
250
  {
220
251
  message: WorkflowRawDataTypes['message'];
221
252
  sender: WorkflowRawDataTypes['sender'];
222
253
  chat: WorkflowRawDataTypes['chat'];
223
- ticket: WorkflowRawDataTypes['ticket'];
224
254
  },
225
255
  '.'
226
256
  >;
@@ -229,7 +259,8 @@ export type ReactionWorkflowDataTypes = AppendTypes<
229
259
  {
230
260
  reaction: WorkflowRawDataTypes['reaction'];
231
261
  sender: WorkflowRawDataTypes['sender'];
232
- message: MessageWorkflowDataTypes;
262
+ message: WorkflowRawDataTypes['message'];
263
+ chat: WorkflowRawDataTypes['chat'];
233
264
  },
234
265
  '.'
235
266
  >;
@@ -237,7 +268,9 @@ export type ReactionWorkflowDataTypes = AppendTypes<
237
268
  export type TicketWorkflowDataTypes = AppendTypes<
238
269
  {
239
270
  ticket: WorkflowRawDataTypes['ticket'];
240
- message: MessageWorkflowDataTypes;
271
+ message: WorkflowRawDataTypes['message'];
272
+ sender: WorkflowRawDataTypes['sender'];
273
+ chat: WorkflowRawDataTypes['chat'];
241
274
  },
242
275
  '.'
243
276
  >;
@@ -284,22 +317,22 @@ export type WorkflowDataType<T extends Triggers = Triggers> = T extends
284
317
  | Triggers.MESSAGE_UNFLAGGED
285
318
  ? MessageWorkflowDataTypes
286
319
  : T extends
287
- | Triggers.CHAT_CREATED
288
- | Triggers.CHAT_LABEL_UPDATED
289
- | Triggers.CHAT_CLOSED
290
- ? ChatWorkflowDataTypes
291
- : T extends
292
- | Triggers.TICKET_CREATED
293
- | Triggers.TICKET_UPDATED
294
- | Triggers.TICKET_DELETED
295
- | Triggers.TICKET_CLOSED
296
- | Triggers.TICKET_DUE
297
- ? TicketWorkflowDataTypes
298
- : T extends Triggers.REACTION_ADDED
299
- ? ReactionWorkflowDataTypes
300
- : T extends Triggers.TASK_CREATED | Triggers.TASK_DUE
301
- ? TaskWorkflowDataTypes
302
- : never;
320
+ | Triggers.CHAT_CREATED
321
+ | Triggers.CHAT_LABEL_UPDATED
322
+ | Triggers.CHAT_CLOSED
323
+ ? ChatWorkflowDataTypes
324
+ : T extends
325
+ | Triggers.TICKET_CREATED
326
+ | Triggers.TICKET_UPDATED
327
+ | Triggers.TICKET_DELETED
328
+ | Triggers.TICKET_CLOSED
329
+ | Triggers.TICKET_DUE
330
+ ? TicketWorkflowDataTypes
331
+ : T extends Triggers.REACTION_ADDED
332
+ ? ReactionWorkflowDataTypes
333
+ : T extends Triggers.TASK_CREATED | Triggers.TASK_DUE
334
+ ? TaskWorkflowDataTypes
335
+ : never;
303
336
 
304
337
  /***************************** ACTION TYPES *****************************/
305
338
 
@@ -311,32 +344,18 @@ export type SendMessageToChatWorkflowAction = {
311
344
  url: string;
312
345
  type: 'image' | 'video' | 'audio' | 'document';
313
346
  name: string;
314
- };
315
- is_reply?: boolean;
347
+ } | null;
316
348
  debounce?: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}` | null;
317
349
  chat_id: `${string}${'@g.us' | '@c.us'}` | 'trigger_chat' | null;
318
350
  unflag_chat?: boolean;
319
- };
320
- };
321
-
322
- export type SendReplyWorkflowAction = {
323
- type: 'send_reply_message';
324
- metadata: {
325
- message: string;
326
- media?: {
327
- url: string;
328
- type: 'image' | 'video' | 'audio' | 'document';
329
- name: string;
330
- };
331
- debounce?: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}` | null;
332
- unflag_chat?: boolean;
351
+ as_reply?: boolean;
333
352
  };
334
353
  };
335
354
 
336
355
  export type CreateTicketWorkflowAction = {
337
356
  type: 'create_ticket';
338
357
  metadata: {
339
- subject: string;
358
+ subject: string | null;
340
359
  assignee:
341
360
  | {
342
361
  round_robin: true;
@@ -344,13 +363,13 @@ export type CreateTicketWorkflowAction = {
344
363
  assignee_check_for?: 'shift_times' | 'online_offline' | 'all';
345
364
  }
346
365
  | {
347
- email: string;
366
+ email: string | null;
348
367
  round_robin: false;
349
368
  };
350
369
  priority?: '0' | '1' | '2' | '3' | '4';
351
370
  status: 'open' | 'inprogress' | 'closed';
352
371
  labels: string[];
353
- due_date: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}` | null;
372
+ due_in: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}` | null;
354
373
  };
355
374
  };
356
375
 
@@ -391,7 +410,7 @@ export type AssignTicketWorkflowAction = {
391
410
  assignee_check_for?: 'shift_times' | 'online_offline' | 'all';
392
411
  }
393
412
  | {
394
- email: string;
413
+ email: string | null;
395
414
  round_robin: false;
396
415
  };
397
416
  };
@@ -443,7 +462,7 @@ export type AssignChatWorkflowAction = {
443
462
  assignee_check_for?: 'shift_times' | 'online_offline' | 'all';
444
463
  }
445
464
  | {
446
- email: string;
465
+ email: string | null;
447
466
  round_robin: false;
448
467
  };
449
468
  };
@@ -452,7 +471,7 @@ export type AssignChatWorkflowAction = {
452
471
  export type ForwardMessageWorkflowAction = {
453
472
  type: 'forward_message';
454
473
  metadata: {
455
- chat_id: `${string}${'@g.us' | '@c.us'}`;
474
+ chat_id: `${string}${'@g.us' | '@c.us'}` | null;
456
475
  };
457
476
  };
458
477
 
@@ -480,14 +499,14 @@ export type ValidateWorkflowAction = {
480
499
  metadata: WorkflowConditionGroup;
481
500
  };
482
501
 
483
- export type DelayAction = {
502
+ export type DelayWorkflowAction = {
484
503
  type: 'delay';
485
504
  metadata: {
486
505
  delay: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}`;
487
506
  };
488
507
  };
489
508
 
490
- export type SendSlackNotification = {
509
+ export type SendSlackNotificationWorkflowAction = {
491
510
  type: 'send_slack_notification';
492
511
  metadata: {
493
512
  slack_payload: string;
@@ -495,7 +514,7 @@ export type SendSlackNotification = {
495
514
  };
496
515
  };
497
516
 
498
- export type SplitPathAction = {
517
+ export type SplitPathWorkflowAction = {
499
518
  type: 'split_path';
500
519
  metadata: {
501
520
  paths: Array<{
@@ -506,8 +525,8 @@ export type SplitPathAction = {
506
525
  };
507
526
 
508
527
  // experimental
509
- export type AIPromptCheckWorkflowAction = {
510
- type: 'ai_prompt_check';
528
+ export type AIPromptWorkflowAction = {
529
+ type: 'ai_prompt';
511
530
  metadata: {
512
531
  query: string;
513
532
  body: string;
@@ -516,7 +535,6 @@ export type AIPromptCheckWorkflowAction = {
516
535
 
517
536
  export type NormalWorkflowActionTypes =
518
537
  | SendMessageToChatWorkflowAction
519
- | SendReplyWorkflowAction
520
538
  | CreateTicketWorkflowAction
521
539
  | AttachToLatestTicket
522
540
  | NotifyHTTPWorkflowAction
@@ -534,11 +552,200 @@ export type NormalWorkflowActionTypes =
534
552
  | DeleteMessageWorkflowAction
535
553
  | CloseChatWorkflowAction
536
554
  | ValidateWorkflowAction
537
- | DelayAction
538
- | SendSlackNotification
539
- | AIPromptCheckWorkflowAction;
555
+ | DelayWorkflowAction
556
+ | SendSlackNotificationWorkflowAction
557
+ | AIPromptWorkflowAction;
558
+
559
+ export type WorkflowActionsTypeMap = {
560
+ send_message_to_chat: SendMessageToChatWorkflowAction;
561
+ create_ticket: CreateTicketWorkflowAction;
562
+ attach_to_latest_ticket: AttachToLatestTicket;
563
+ notify_http: NotifyHTTPWorkflowAction;
564
+ flag_message: FlagMessageWorkflowAction;
565
+ unflag_message: UnflagMessageWorkflowAction;
566
+ assign_ticket: AssignTicketWorkflowAction;
567
+ close_ticket: CloseTicketWorkflowAction;
568
+ add_chat_label: AddChatLabelWorkflowAction;
569
+ remove_chat_label: RemoveChatLabelWorkflowAction;
570
+ add_ticket_label: AddTicketLabelWorkflowAction;
571
+ remove_ticket_label: RemoveTicketLabelWorkflowAction;
572
+ assign_chat: AssignChatWorkflowAction;
573
+ forward_message: ForwardMessageWorkflowAction;
574
+ send_email: SendEmailWorkflowAction;
575
+ delete_message: DeleteMessageWorkflowAction;
576
+ close_chat: CloseChatWorkflowAction;
577
+ validate_action: ValidateWorkflowAction;
578
+ delay: DelayWorkflowAction;
579
+ send_slack_notification: SendSlackNotificationWorkflowAction;
580
+ ai_prompt: AIPromptWorkflowAction;
581
+ split_path: SplitPathWorkflowAction;
582
+ };
583
+
584
+ export type WorkflowActionTypes =
585
+ | NormalWorkflowActionTypes
586
+ | SplitPathWorkflowAction;
587
+
588
+ export type WorkflowActionCategory =
589
+ | 'message'
590
+ | 'ticket'
591
+ | 'chat'
592
+ | 'custom'
593
+ | 'flow'
594
+ | 'ai';
595
+
596
+ export const ActionCategoryMap: Record<
597
+ WorkflowActionTypes['type'],
598
+ WorkflowActionCategory
599
+ > = {
600
+ send_message_to_chat: 'message',
601
+ create_ticket: 'ticket',
602
+ attach_to_latest_ticket: 'ticket',
603
+ notify_http: 'custom',
604
+ flag_message: 'message',
605
+ unflag_message: 'message',
606
+ assign_ticket: 'ticket',
607
+ close_ticket: 'ticket',
608
+ add_chat_label: 'chat',
609
+ remove_chat_label: 'chat',
610
+ add_ticket_label: 'ticket',
611
+ remove_ticket_label: 'ticket',
612
+ assign_chat: 'chat',
613
+ forward_message: 'message',
614
+ send_email: 'custom',
615
+ delete_message: 'message',
616
+ close_chat: 'chat',
617
+ validate_action: 'flow',
618
+ delay: 'flow',
619
+ send_slack_notification: 'custom',
620
+ ai_prompt: 'ai',
621
+ split_path: 'flow',
622
+ };
623
+
624
+ export const CategoryNameMap: Record<WorkflowActionCategory, string> = {
625
+ message: 'Message',
626
+ ticket: 'Ticket',
627
+ chat: 'Chat',
628
+ custom: 'Custom',
629
+ flow: 'Flow',
630
+ ai: 'AI',
631
+ };
540
632
 
541
- export type WorkflowActionTypes = NormalWorkflowActionTypes | SplitPathAction;
633
+ export const TriggerNameMap: Record<Triggers, string> = {
634
+ 'chat.closed': 'Chat Closed',
635
+ 'chat.created': 'Chat Created',
636
+ 'chat.label.updated': 'Chat Label Updated',
637
+ 'message.created': 'Message Created',
638
+ 'message.deleted': 'Message Deleted',
639
+ 'message.flagged': 'Message Flagged',
640
+ 'message.unflagged': 'Message Unflagged',
641
+ 'message.updated': 'Message Updated',
642
+ 'reaction.added': 'Reaction Added',
643
+ 'ticket.closed': 'Ticket Closed',
644
+ 'ticket.created': 'Ticket Created',
645
+ 'ticket.deleted': 'Ticket Deleted',
646
+ 'ticket.due': 'Ticket Due',
647
+ 'ticket.updated': 'Ticket Updated',
648
+ 'task.created': 'Task Created',
649
+ 'task.due': 'Task Due',
650
+ };
651
+
652
+ export const WorkflowActionNameMap: Record<
653
+ WorkflowType['actions'][number]['action_metadata']['type'],
654
+ {
655
+ title: string;
656
+ description: string;
657
+ }
658
+ > = {
659
+ add_chat_label: {
660
+ title: 'Add Chat Label',
661
+ description: 'Add a label to the trigger chat',
662
+ },
663
+ add_ticket_label: {
664
+ title: 'Add Ticket Label',
665
+ description: 'Add a label to the trigger ticket',
666
+ },
667
+ assign_chat: {
668
+ title: 'Assign Chat',
669
+ description: 'Assign a chat to org user',
670
+ },
671
+ attach_to_latest_ticket: {
672
+ title: 'Attach to Latest Ticket',
673
+ description: 'Attach to the latest ticket of trigger chat',
674
+ },
675
+ close_chat: {
676
+ title: 'Close Chat',
677
+ description: 'Close the chat',
678
+ },
679
+ close_ticket: {
680
+ title: 'Close Ticket',
681
+ description: 'Close the trigger ticket or ticket attached to the message',
682
+ },
683
+ create_ticket: {
684
+ title: 'Create Ticket',
685
+ description: 'Create a ticket attached to the trigger message',
686
+ },
687
+ delay: {
688
+ title: 'Delay',
689
+ description: 'Add a delay to next sequential actions',
690
+ },
691
+ ai_prompt: {
692
+ title: 'AI Prompt',
693
+ description: 'Analyse, filter, categorise, and generate text using AI',
694
+ },
695
+ flag_message: {
696
+ title: 'Flag Message',
697
+ description: 'Flag the trigger message or message attached to the ticket',
698
+ },
699
+ remove_chat_label: {
700
+ title: 'Remove Chat Label',
701
+ description: 'Remove a label from the trigger chat',
702
+ },
703
+ remove_ticket_label: {
704
+ title: 'Remove Ticket Label',
705
+ description:
706
+ 'Remove a label from the trigger ticket or ticket attached to the message',
707
+ },
708
+ send_email: {
709
+ title: 'Send Email',
710
+ description: 'Send custom text to an email',
711
+ },
712
+ send_message_to_chat: {
713
+ title: 'Send Message to Chat',
714
+ description: 'Send a message to the chat attached to the trigger',
715
+ },
716
+ send_slack_notification: {
717
+ title: 'Send Slack Notification',
718
+ description: 'Send a slack notification',
719
+ },
720
+ split_path: {
721
+ title: 'Split Path',
722
+ description: 'Split the workflow path based on the condition',
723
+ },
724
+ unflag_message: {
725
+ title: 'Unflag Message',
726
+ description: 'Unflag the trigger message or message attached to the ticket',
727
+ },
728
+ validate_action: {
729
+ title: 'Validate Action',
730
+ description: 'Validate the action based on multiple criterias',
731
+ },
732
+ notify_http: {
733
+ title: 'Notify HTTP',
734
+ description: 'Send a custom HTTP request to an endpoint',
735
+ },
736
+ assign_ticket: {
737
+ title: 'Assign Ticket',
738
+ description: 'Assign a ticket to an org user',
739
+ },
740
+ forward_message: {
741
+ title: 'Forward Message',
742
+ description: 'Forward a message to a chat',
743
+ },
744
+ delete_message: {
745
+ title: 'Delete Message',
746
+ description: 'Delete the trigger message or message attached to the ticket',
747
+ },
748
+ };
542
749
 
543
750
  export type SendMessageToChatActionReturnInfo = {
544
751
  message_details: {
@@ -574,54 +781,6 @@ export type ActionInfo = {
574
781
  add_chat_label: AddChatLabelActionReturnInfo;
575
782
  };
576
783
 
577
- export const TriggerNameMap: Record<Triggers, string> = {
578
- 'chat.closed': 'Chat Closed',
579
- 'chat.created': 'Chat Created',
580
- 'chat.label.updated': 'Chat Label Updated',
581
- 'message.created': 'Message Created',
582
- 'message.deleted': 'Message Deleted',
583
- 'message.flagged': 'Message Flagged',
584
- 'message.unflagged': 'Message Unflagged',
585
- 'message.updated': 'Message Updated',
586
- 'reaction.added': 'Reaction Added',
587
- 'ticket.closed': 'Ticket Closed',
588
- 'ticket.created': 'Ticket Created',
589
- 'ticket.deleted': 'Ticket Deleted',
590
- 'ticket.due': 'Ticket Due',
591
- 'ticket.updated': 'Ticket Updated',
592
- 'task.created': 'Task Created',
593
- 'task.due': 'Task Due',
594
- };
595
-
596
- export const WorkflowActionNameMap: Record<
597
- WorkflowType['actions'][number]['action_metadata']['type'],
598
- string
599
- > = {
600
- add_chat_label: 'Add Chat Label',
601
- add_ticket_label: 'Add Ticket Label',
602
- assign_chat: 'Assign Chat',
603
- assign_ticket: 'Assign Ticket',
604
- attach_to_latest_ticket: 'Attach to Latest Ticket',
605
- close_chat: 'Close Chat',
606
- close_ticket: 'Close Ticket',
607
- create_ticket: 'Create Ticket',
608
- delete_message: 'Delete Message',
609
- delay: 'Delay',
610
- ai_prompt_check: 'AI Prompt',
611
- flag_message: 'Flag Message',
612
- forward_message: 'Forward Message',
613
- notify_http: 'Notify HTTP',
614
- remove_chat_label: 'Remove Chat Label',
615
- remove_ticket_label: 'Remove Ticket Label',
616
- send_email: 'Send Email',
617
- send_message_to_chat: 'Send Message to Chat',
618
- send_reply_message: 'Send Reply Message',
619
- send_slack_notification: 'Send Slack Notification',
620
- split_path: 'Split Path',
621
- unflag_message: 'Unflag Message',
622
- validate_action: 'Validate Action',
623
- };
624
-
625
784
  // Example workflow type ->
626
785
 
627
786
  // const demoWorkflow: WorkflowType = {
package/tsconfig.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "extends": "../../tsconfig.json",
3
3
  "include": [
4
- "src/**/*"
5
- // "src/index.ts",
4
+ "src/**/*",
5
+ "src/index.ts",
6
+ "index.d.ts"
6
7
  ],
7
8
  "exclude": [
8
9
  "node_modules",