@periskope/types 0.6.455 → 0.6.456

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.
@@ -432,31 +432,31 @@ export type Rule = OverrideProperties<Tables<'tbl_automation_rules'>, {
432
432
  export declare const RuleInfoSchemaMap: {
433
433
  message: {
434
434
  triggers: readonly ["message.created", "message.updated", "message.flagged", "message.unflagged", "message.deleted"];
435
- variableMaps: (Record<"message.org_id" | "message.chat_id" | "message.org_phone" | "message.author" | "message.body" | "message.flag_status" | "message.has_quoted_msg" | "message.media" | "message.message_id" | "message.message_ticket_id" | "message.message_type" | "message.performed_by" | "message.sender_phone" | "message.timestamp" | "message.is_last_message", VariableNameValueType> | Record<"sender.org_id" | "sender.contact_id" | "sender.contact_name" | "sender.is_internal" | "sender.is_admin" | "sender.labels", VariableNameValueType> | Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType>)[];
435
+ variableMaps: (Record<"message.author" | "message.body" | "message.chat_id" | "message.flag_status" | "message.has_quoted_msg" | "message.media" | "message.message_id" | "message.message_ticket_id" | "message.message_type" | "message.org_id" | "message.org_phone" | "message.performed_by" | "message.sender_phone" | "message.timestamp" | "message.is_last_message", VariableNameValueType> | Record<"sender.org_id" | "sender.contact_id" | "sender.contact_name" | "sender.is_internal" | "sender.is_admin" | "sender.labels", VariableNameValueType> | Record<"chat.chat_id" | "chat.org_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.created_at" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType>)[];
436
436
  };
437
437
  ticket: {
438
438
  triggers: readonly ["ticket.created", "ticket.updated", "ticket.closed", "ticket.label.updated", "ticket.message.attached"];
439
- variableMaps: (Record<"message.org_id" | "message.chat_id" | "message.org_phone" | "message.author" | "message.body" | "message.flag_status" | "message.has_quoted_msg" | "message.media" | "message.message_id" | "message.message_ticket_id" | "message.message_type" | "message.performed_by" | "message.sender_phone" | "message.timestamp" | "message.is_last_message", VariableNameValueType> | Record<"sender.org_id" | "sender.contact_id" | "sender.contact_name" | "sender.is_internal" | "sender.is_admin" | "sender.labels", VariableNameValueType> | Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"ticket.created_at" | "ticket.org_id" | "ticket.chat_id" | "ticket.ticket_id" | "ticket.assignee" | "ticket.due_date" | "ticket.priority" | "ticket.status" | "ticket.is_deleted" | "ticket.labels" | "ticket.custom_properties" | "ticket.subject" | "ticket.raised_by", VariableNameValueType>)[];
439
+ variableMaps: (Record<"message.author" | "message.body" | "message.chat_id" | "message.flag_status" | "message.has_quoted_msg" | "message.media" | "message.message_id" | "message.message_ticket_id" | "message.message_type" | "message.org_id" | "message.org_phone" | "message.performed_by" | "message.sender_phone" | "message.timestamp" | "message.is_last_message", VariableNameValueType> | Record<"sender.org_id" | "sender.contact_id" | "sender.contact_name" | "sender.is_internal" | "sender.is_admin" | "sender.labels", VariableNameValueType> | Record<"chat.chat_id" | "chat.org_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.created_at" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"ticket.is_deleted" | "ticket.chat_id" | "ticket.org_id" | "ticket.labels" | "ticket.created_at" | "ticket.custom_properties" | "ticket.status" | "ticket.subject" | "ticket.assignee" | "ticket.due_date" | "ticket.priority" | "ticket.raised_by" | "ticket.ticket_id", VariableNameValueType>)[];
440
440
  };
441
441
  chat: {
442
442
  triggers: readonly ["chat.created", "chat.label.updated"];
443
- variableMaps: Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType>[];
443
+ variableMaps: Record<"chat.chat_id" | "chat.org_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.created_at" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType>[];
444
444
  };
445
445
  reaction: {
446
446
  triggers: readonly ["reaction.added"];
447
- variableMaps: (Record<"message.org_id" | "message.chat_id" | "message.org_phone" | "message.author" | "message.body" | "message.flag_status" | "message.has_quoted_msg" | "message.media" | "message.message_id" | "message.message_ticket_id" | "message.message_type" | "message.performed_by" | "message.sender_phone" | "message.timestamp" | "message.is_last_message", VariableNameValueType> | Record<"sender.org_id" | "sender.contact_id" | "sender.contact_name" | "sender.is_internal" | "sender.is_admin" | "sender.labels", VariableNameValueType> | Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"reaction.chat_id" | "reaction.reaction" | "reaction.message_id" | "reaction.sender_id" | "reaction.reaction_id", VariableNameValueType>)[];
447
+ variableMaps: (Record<"message.author" | "message.body" | "message.chat_id" | "message.flag_status" | "message.has_quoted_msg" | "message.media" | "message.message_id" | "message.message_ticket_id" | "message.message_type" | "message.org_id" | "message.org_phone" | "message.performed_by" | "message.sender_phone" | "message.timestamp" | "message.is_last_message", VariableNameValueType> | Record<"sender.org_id" | "sender.contact_id" | "sender.contact_name" | "sender.is_internal" | "sender.is_admin" | "sender.labels", VariableNameValueType> | Record<"chat.chat_id" | "chat.org_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.created_at" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"reaction.chat_id" | "reaction.message_id" | "reaction.reaction" | "reaction.sender_id" | "reaction.reaction_id", VariableNameValueType>)[];
448
448
  };
449
449
  task: {
450
450
  triggers: readonly ["task.created", "task.assignee.updated"];
451
- variableMaps: (Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"task.created_at" | "task.org_id" | "task.assignee" | "task.due_date" | "task.notes" | "task.priority" | "task.status" | "task.task_id" | "task.title", VariableNameValueType>)[];
451
+ variableMaps: (Record<"chat.chat_id" | "chat.org_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.created_at" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"task.org_id" | "task.created_at" | "task.status" | "task.assignee" | "task.due_date" | "task.priority" | "task.notes" | "task.task_id" | "task.title", VariableNameValueType>)[];
452
452
  };
453
453
  call: {
454
454
  triggers: readonly ["call.created"];
455
- variableMaps: (Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"call_notification.org_id" | "call_notification.chat_id" | "call_notification.author" | "call_notification.timestamp" | "call_notification.notification_id" | "call_notification.isVideo" | "call_notification.isOutgoing" | "call_notification.call_result", VariableNameValueType>)[];
455
+ variableMaps: (Record<"chat.chat_id" | "chat.org_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.created_at" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"call_notification.author" | "call_notification.chat_id" | "call_notification.org_id" | "call_notification.timestamp" | "call_notification.notification_id" | "call_notification.isVideo" | "call_notification.isOutgoing" | "call_notification.call_result", VariableNameValueType>)[];
456
456
  };
457
457
  member: {
458
458
  triggers: readonly ["member.joined"];
459
- variableMaps: (Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"member_notification.type" | "member_notification.org_id" | "member_notification.chat_id" | "member_notification.org_phone" | "member_notification.timestamp" | "member_notification.notification_id" | "member_notification.recipientids", VariableNameValueType>)[];
459
+ variableMaps: (Record<"chat.chat_id" | "chat.org_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.created_at" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"member_notification.chat_id" | "member_notification.org_id" | "member_notification.org_phone" | "member_notification.timestamp" | "member_notification.type" | "member_notification.notification_id" | "member_notification.recipientids", VariableNameValueType>)[];
460
460
  };
461
461
  };
462
462
  export declare const additionalAssigneeOptions: {
@@ -665,7 +665,7 @@ export type Database = {
665
665
  Row: {
666
666
  agent_type: string | null;
667
667
  ai_config: Json;
668
- id: string;
668
+ job_id: string;
669
669
  job_name: string | null;
670
670
  last_run_at: string | null;
671
671
  last_updated_at: string | null;
@@ -678,7 +678,7 @@ export type Database = {
678
678
  Insert: {
679
679
  agent_type?: string | null;
680
680
  ai_config: Json;
681
- id: string;
681
+ job_id: string;
682
682
  job_name?: string | null;
683
683
  last_run_at?: string | null;
684
684
  last_updated_at?: string | null;
@@ -691,7 +691,7 @@ export type Database = {
691
691
  Update: {
692
692
  agent_type?: string | null;
693
693
  ai_config?: Json;
694
- id?: string;
694
+ job_id?: string;
695
695
  job_name?: string | null;
696
696
  last_run_at?: string | null;
697
697
  last_updated_at?: string | null;
@@ -987,11 +987,8 @@ export type Database = {
987
987
  message_payload: Json | null;
988
988
  org_id: string;
989
989
  org_phone: string | null;
990
- org_phones: string[] | null;
991
990
  performed_at: string | null;
992
991
  performed_by: string | null;
993
- previous_retries: Json | null;
994
- retry_count: number;
995
992
  scheduled_at: string | null;
996
993
  variables: Json | null;
997
994
  };
@@ -1004,11 +1001,8 @@ export type Database = {
1004
1001
  message_payload?: Json | null;
1005
1002
  org_id: string;
1006
1003
  org_phone?: string | null;
1007
- org_phones?: string[] | null;
1008
1004
  performed_at?: string | null;
1009
1005
  performed_by?: string | null;
1010
- previous_retries?: Json | null;
1011
- retry_count?: number;
1012
1006
  scheduled_at?: string | null;
1013
1007
  variables?: Json | null;
1014
1008
  };
@@ -1021,11 +1015,8 @@ export type Database = {
1021
1015
  message_payload?: Json | null;
1022
1016
  org_id?: string;
1023
1017
  org_phone?: string | null;
1024
- org_phones?: string[] | null;
1025
1018
  performed_at?: string | null;
1026
1019
  performed_by?: string | null;
1027
- previous_retries?: Json | null;
1028
- retry_count?: number;
1029
1020
  scheduled_at?: string | null;
1030
1021
  variables?: Json | null;
1031
1022
  };
@@ -3175,9 +3166,7 @@ export type Database = {
3175
3166
  pending_chats: number | null;
3176
3167
  performed_at: string | null;
3177
3168
  performed_by: string | null;
3178
- previous_retries: Json | null;
3179
3169
  read_percentage: number | null;
3180
- retry_count: number | null;
3181
3170
  scheduled_at: string | null;
3182
3171
  sent_chats: number | null;
3183
3172
  total_chats: number | null;