@periskope/types 0.6.465 → 0.6.467

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.
package/src/types.ts CHANGED
@@ -581,12 +581,31 @@ export type PhoneQueueStatusType = {
581
581
  pending: number;
582
582
  };
583
583
 
584
+ export type PhoneRestrictionStateType = {
585
+ is_restricted: boolean;
586
+ timelock_active: boolean;
587
+ enforcement_type: string | null;
588
+ enforcement_ends_at: string | null;
589
+ message_cap: {
590
+ total_quota?: number;
591
+ used_quota?: number;
592
+ cycle_start_timestamp?: string;
593
+ cycle_end_timestamp?: string;
594
+ server_sent_timestamp?: string;
595
+ ote_status?: string;
596
+ mv_status?: string;
597
+ capping_status?: 'NONE' | 'FIRST_WARNING' | 'SECOND_WARNING' | 'CAPPED';
598
+ } | null;
599
+ checked_at: string;
600
+ };
601
+
584
602
  export type PhoneType = OverrideProperties<
585
603
  Tables<'tbl_org_phones'>,
586
604
  {
587
605
  queue_status: {
588
606
  [key: string]: PhoneQueueStatusType;
589
607
  };
608
+ restriction_state: PhoneRestrictionStateType | null;
590
609
  }
591
610
  >;
592
611
 
@@ -1287,6 +1306,7 @@ export type MessageRuleInfoType = {
1287
1306
  >,
1288
1307
  {
1289
1308
  is_last_message: boolean;
1309
+ flagged_by: string | null;
1290
1310
  }
1291
1311
  >;
1292
1312
  };