@periskope/types 0.6.285 → 0.6.287

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.
@@ -121,6 +121,45 @@ export type Database = {
121
121
  };
122
122
  Relationships: [];
123
123
  };
124
+ tbl_org_warmup: {
125
+ Row: {
126
+ created_at: string;
127
+ id: string;
128
+ is_active: boolean;
129
+ org_id: string;
130
+ org_phone: string;
131
+ phone_id: string;
132
+ started_at: string | null;
133
+ started_by: string | null;
134
+ timezone: string | null;
135
+ warmup_chats: Json;
136
+ };
137
+ Insert: {
138
+ created_at?: string;
139
+ id?: string;
140
+ is_active?: boolean;
141
+ org_id: string;
142
+ org_phone: string;
143
+ phone_id: string;
144
+ started_at?: string | null;
145
+ started_by?: string | null;
146
+ timezone?: string | null;
147
+ warmup_chats?: Json;
148
+ };
149
+ Update: {
150
+ created_at?: string;
151
+ id?: string;
152
+ is_active?: boolean;
153
+ org_id?: string;
154
+ org_phone?: string;
155
+ phone_id?: string;
156
+ started_at?: string | null;
157
+ started_by?: string | null;
158
+ timezone?: string | null;
159
+ warmup_chats?: Json;
160
+ };
161
+ Relationships: [];
162
+ };
124
163
  tbl_tools_whatsapp_links: {
125
164
  Row: {
126
165
  created_at: string;
@@ -880,6 +919,7 @@ export type Database = {
880
919
  flag_count_map: Json | null;
881
920
  freshdesk_metadata: Json | null;
882
921
  hubspot_metadata: Json | null;
922
+ is_archived: boolean;
883
923
  label_ids: Json | null;
884
924
  latest_message_timestamp: string | null;
885
925
  org_id: string;
@@ -901,6 +941,7 @@ export type Database = {
901
941
  flag_count_map?: Json | null;
902
942
  freshdesk_metadata?: Json | null;
903
943
  hubspot_metadata?: Json | null;
944
+ is_archived?: boolean;
904
945
  label_ids?: Json | null;
905
946
  latest_message_timestamp?: string | null;
906
947
  org_id: string;
@@ -922,6 +963,7 @@ export type Database = {
922
963
  flag_count_map?: Json | null;
923
964
  freshdesk_metadata?: Json | null;
924
965
  hubspot_metadata?: Json | null;
966
+ is_archived?: boolean;
925
967
  label_ids?: Json | null;
926
968
  latest_message_timestamp?: string | null;
927
969
  org_id?: string;
@@ -2146,6 +2188,50 @@ export type Database = {
2146
2188
  }
2147
2189
  ];
2148
2190
  };
2191
+ tbl_ticket_audit_logs: {
2192
+ Row: {
2193
+ action: string | null;
2194
+ log_id: string;
2195
+ new_record: Json | null;
2196
+ old_record: Json | null;
2197
+ org_id: string | null;
2198
+ performed_by: string | null;
2199
+ ticket_id: string | null;
2200
+ timestamp: string;
2201
+ type: string | null;
2202
+ };
2203
+ Insert: {
2204
+ action?: string | null;
2205
+ log_id?: string;
2206
+ new_record?: Json | null;
2207
+ old_record?: Json | null;
2208
+ org_id?: string | null;
2209
+ performed_by?: string | null;
2210
+ ticket_id?: string | null;
2211
+ timestamp?: string;
2212
+ type?: string | null;
2213
+ };
2214
+ Update: {
2215
+ action?: string | null;
2216
+ log_id?: string;
2217
+ new_record?: Json | null;
2218
+ old_record?: Json | null;
2219
+ org_id?: string | null;
2220
+ performed_by?: string | null;
2221
+ ticket_id?: string | null;
2222
+ timestamp?: string;
2223
+ type?: string | null;
2224
+ };
2225
+ Relationships: [
2226
+ {
2227
+ foreignKeyName: "tbl_ticket_audit_logs_fkey";
2228
+ columns: ["org_id", "ticket_id"];
2229
+ isOneToOne: false;
2230
+ referencedRelation: "tbl_chat_tickets";
2231
+ referencedColumns: ["org_id", "ticket_id"];
2232
+ }
2233
+ ];
2234
+ };
2149
2235
  };
2150
2236
  Views: {
2151
2237
  view_broadcast_logs: {
@@ -2426,6 +2512,13 @@ export type Database = {
2426
2512
  };
2427
2513
  Returns: Json[];
2428
2514
  };
2515
+ get_chat_properties_by_chat_ids: {
2516
+ Args: {
2517
+ org_id_input: string;
2518
+ chat_id_input?: string[];
2519
+ };
2520
+ Returns: Json;
2521
+ };
2429
2522
  get_chat_rule_info: {
2430
2523
  Args: {
2431
2524
  chat_id_input: string;
@@ -2476,13 +2569,6 @@ export type Database = {
2476
2569
  };
2477
2570
  Returns: Json;
2478
2571
  };
2479
- get_chat_properties_by_chat_ids: {
2480
- Args: {
2481
- org_id_input: string;
2482
- chat_id_input?: string[];
2483
- };
2484
- Returns: Json;
2485
- };
2486
2572
  get_export_members_data: {
2487
2573
  Args: {
2488
2574
  org_id_input: string;
@@ -2588,6 +2674,10 @@ export type Database = {
2588
2674
  Args: {
2589
2675
  org_id_input: string;
2590
2676
  query_embedding_input: string;
2677
+ } | {
2678
+ org_id_input: string;
2679
+ query_embedding_input: string;
2680
+ confidence_score_input: number;
2591
2681
  };
2592
2682
  Returns: Json;
2593
2683
  };
@@ -2715,6 +2805,7 @@ export type Database = {
2715
2805
  unique_message_id_input?: string;
2716
2806
  org_phone_input?: string;
2717
2807
  replace?: boolean;
2808
+ full_update?: boolean;
2718
2809
  };
2719
2810
  Returns: {
2720
2811
  ack: string | null;