@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.
@@ -794,6 +794,60 @@ export type Database = {
794
794
  }
795
795
  Relationships: []
796
796
  }
797
+ tbl_ai_training_runs: {
798
+ Row: {
799
+ attempts: number
800
+ created_at: string
801
+ created_count: number | null
802
+ dispatched_at: string | null
803
+ error: string | null
804
+ org_id: string
805
+ performed_at: string | null
806
+ period_end: string
807
+ period_start: string
808
+ run_id: string
809
+ status: Database["public"]["Enums"]["enum_ai_training_runs_status"]
810
+ trigger: Database["public"]["Enums"]["enum_ai_training_runs_trigger"]
811
+ updated_at: string
812
+ updated_count: number | null
813
+ week_start: string
814
+ }
815
+ Insert: {
816
+ attempts?: number
817
+ created_at?: string
818
+ created_count?: number | null
819
+ dispatched_at?: string | null
820
+ error?: string | null
821
+ org_id: string
822
+ performed_at?: string | null
823
+ period_end: string
824
+ period_start: string
825
+ run_id?: string
826
+ status?: Database["public"]["Enums"]["enum_ai_training_runs_status"]
827
+ trigger?: Database["public"]["Enums"]["enum_ai_training_runs_trigger"]
828
+ updated_at?: string
829
+ updated_count?: number | null
830
+ week_start: string
831
+ }
832
+ Update: {
833
+ attempts?: number
834
+ created_at?: string
835
+ created_count?: number | null
836
+ dispatched_at?: string | null
837
+ error?: string | null
838
+ org_id?: string
839
+ performed_at?: string | null
840
+ period_end?: string
841
+ period_start?: string
842
+ run_id?: string
843
+ status?: Database["public"]["Enums"]["enum_ai_training_runs_status"]
844
+ trigger?: Database["public"]["Enums"]["enum_ai_training_runs_trigger"]
845
+ updated_at?: string
846
+ updated_count?: number | null
847
+ week_start?: string
848
+ }
849
+ Relationships: []
850
+ }
797
851
  tbl_api_logs: {
798
852
  Row: {
799
853
  org_id: string
@@ -830,6 +884,73 @@ export type Database = {
830
884
  }
831
885
  Relationships: []
832
886
  }
887
+ tbl_api_tokens: {
888
+ Row: {
889
+ exp: string
890
+ iat: string
891
+ id: string
892
+ is_revealed: boolean
893
+ name: string
894
+ org_id: string
895
+ refresh_token_hash: string | null
896
+ role: string
897
+ token: string
898
+ token_hash: string
899
+ token_metadata: Json
900
+ type: string
901
+ }
902
+ Insert: {
903
+ exp: string
904
+ iat: string
905
+ id: string
906
+ is_revealed?: boolean
907
+ name: string
908
+ org_id: string
909
+ refresh_token_hash?: string | null
910
+ role: string
911
+ token: string
912
+ token_hash: string
913
+ token_metadata?: Json
914
+ type: string
915
+ }
916
+ Update: {
917
+ exp?: string
918
+ iat?: string
919
+ id?: string
920
+ is_revealed?: boolean
921
+ name?: string
922
+ org_id?: string
923
+ refresh_token_hash?: string | null
924
+ role?: string
925
+ token?: string
926
+ token_hash?: string
927
+ token_metadata?: Json
928
+ type?: string
929
+ }
930
+ Relationships: [
931
+ {
932
+ foreignKeyName: "tbl_api_tokens_org_id_fkey"
933
+ columns: ["org_id"]
934
+ isOneToOne: false
935
+ referencedRelation: "tbl_org"
936
+ referencedColumns: ["org_id"]
937
+ },
938
+ {
939
+ foreignKeyName: "tbl_api_tokens_org_id_fkey"
940
+ columns: ["org_id"]
941
+ isOneToOne: false
942
+ referencedRelation: "view_org"
943
+ referencedColumns: ["org_id"]
944
+ },
945
+ {
946
+ foreignKeyName: "tbl_api_tokens_org_id_fkey"
947
+ columns: ["org_id"]
948
+ isOneToOne: false
949
+ referencedRelation: "view_org_all"
950
+ referencedColumns: ["org_id"]
951
+ },
952
+ ]
953
+ }
833
954
  tbl_automation_rules: {
834
955
  Row: {
835
956
  actions: Json
@@ -895,29 +1016,29 @@ export type Database = {
895
1016
  Row: {
896
1017
  chat_ids: string[]
897
1018
  created_at: string
898
- updated_at: string | null
899
1019
  created_by: string | null
900
1020
  org_id: string
901
1021
  template_id: string
902
1022
  template_name: string
1023
+ updated_at: string | null
903
1024
  }
904
1025
  Insert: {
905
1026
  chat_ids?: string[]
906
1027
  created_at?: string
907
- updated_at?: string | null
908
1028
  created_by?: string | null
909
1029
  org_id: string
910
1030
  template_id?: string
911
1031
  template_name: string
1032
+ updated_at?: string | null
912
1033
  }
913
1034
  Update: {
914
1035
  chat_ids?: string[]
915
1036
  created_at?: string
916
- updated_at?: string | null
917
1037
  created_by?: string | null
918
1038
  org_id?: string
919
1039
  template_id?: string
920
1040
  template_name?: string
1041
+ updated_at?: string | null
921
1042
  }
922
1043
  Relationships: [
923
1044
  {
@@ -956,9 +1077,9 @@ export type Database = {
956
1077
  message_id: string | null
957
1078
  org_id: string
958
1079
  org_phone: string | null
1080
+ poll_results: Json | null
959
1081
  read_count: number | null
960
1082
  remarks: string | null
961
- poll_results: Json | null
962
1083
  }
963
1084
  Insert: {
964
1085
  broadcast_id: string
@@ -972,9 +1093,9 @@ export type Database = {
972
1093
  message_id?: string | null
973
1094
  org_id: string
974
1095
  org_phone?: string | null
1096
+ poll_results?: Json | null
975
1097
  read_count?: number | null
976
1098
  remarks?: string | null
977
- poll_results?: Json | null
978
1099
  }
979
1100
  Update: {
980
1101
  broadcast_id?: string
@@ -988,9 +1109,9 @@ export type Database = {
988
1109
  message_id?: string | null
989
1110
  org_id?: string
990
1111
  org_phone?: string | null
1112
+ poll_results?: Json | null
991
1113
  read_count?: number | null
992
1114
  remarks?: string | null
993
- poll_results?: Json | null
994
1115
  }
995
1116
  Relationships: [
996
1117
  {
@@ -1167,6 +1288,42 @@ export type Database = {
1167
1288
  },
1168
1289
  ]
1169
1290
  }
1291
+ tbl_chat_audit_logs: {
1292
+ Row: {
1293
+ action: string | null
1294
+ chat_id: string | null
1295
+ log_id: string
1296
+ new_record: Json | null
1297
+ old_record: Json | null
1298
+ org_id: string | null
1299
+ performed_by: string | null
1300
+ timestamp: string
1301
+ type: string | null
1302
+ }
1303
+ Insert: {
1304
+ action?: string | null
1305
+ chat_id?: string | null
1306
+ log_id?: string
1307
+ new_record?: Json | null
1308
+ old_record?: Json | null
1309
+ org_id?: string | null
1310
+ performed_by?: string | null
1311
+ timestamp?: string
1312
+ type?: string | null
1313
+ }
1314
+ Update: {
1315
+ action?: string | null
1316
+ chat_id?: string | null
1317
+ log_id?: string
1318
+ new_record?: Json | null
1319
+ old_record?: Json | null
1320
+ org_id?: string | null
1321
+ performed_by?: string | null
1322
+ timestamp?: string
1323
+ type?: string | null
1324
+ }
1325
+ Relationships: []
1326
+ }
1170
1327
  tbl_chat_logs: {
1171
1328
  Row: {
1172
1329
  action: string | null
@@ -1811,6 +1968,7 @@ export type Database = {
1811
1968
  is_read_only: boolean | null
1812
1969
  latest_mention_at: string | null
1813
1970
  latest_message: Json | null
1971
+ latest_message_timestamp: string | null
1814
1972
  member_count: number | null
1815
1973
  member_unread_count: Json | null
1816
1974
  mute_expiration: number | null
@@ -1842,6 +2000,7 @@ export type Database = {
1842
2000
  is_read_only?: boolean | null
1843
2001
  latest_mention_at?: string | null
1844
2002
  latest_message?: Json | null
2003
+ latest_message_timestamp?: string | null
1845
2004
  member_count?: number | null
1846
2005
  member_unread_count?: Json | null
1847
2006
  mute_expiration?: number | null
@@ -1873,6 +2032,7 @@ export type Database = {
1873
2032
  is_read_only?: boolean | null
1874
2033
  latest_mention_at?: string | null
1875
2034
  latest_message?: Json | null
2035
+ latest_message_timestamp?: string | null
1876
2036
  member_count?: number | null
1877
2037
  member_unread_count?: Json | null
1878
2038
  mute_expiration?: number | null
@@ -2249,59 +2409,6 @@ export type Database = {
2249
2409
  },
2250
2410
  ]
2251
2411
  }
2252
- tbl_api_tokens: {
2253
- Row: {
2254
- exp: string
2255
- iat: string
2256
- id: string
2257
- is_revealed: boolean
2258
- name: string
2259
- org_id: string
2260
- refresh_token_hash: string | null
2261
- role: string
2262
- token: string
2263
- token_hash: string
2264
- token_metadata: Json
2265
- type: string
2266
- }
2267
- Insert: {
2268
- exp: string
2269
- iat: string
2270
- id: string
2271
- is_revealed?: boolean
2272
- name: string
2273
- org_id: string
2274
- refresh_token_hash?: string | null
2275
- role: string
2276
- token: string
2277
- token_hash: string
2278
- token_metadata?: Json
2279
- type: string
2280
- }
2281
- Update: {
2282
- exp?: string
2283
- iat?: string
2284
- id?: string
2285
- is_revealed?: boolean
2286
- name?: string
2287
- org_id?: string
2288
- refresh_token_hash?: string | null
2289
- role?: string
2290
- token?: string
2291
- token_hash?: string
2292
- token_metadata?: Json
2293
- type?: string
2294
- }
2295
- Relationships: [
2296
- {
2297
- foreignKeyName: "tbl_api_tokens_org_id_fkey"
2298
- columns: ["org_id"]
2299
- isOneToOne: false
2300
- referencedRelation: "tbl_org"
2301
- referencedColumns: ["org_id"]
2302
- },
2303
- ]
2304
- }
2305
2412
  tbl_integration_tokens: {
2306
2413
  Row: {
2307
2414
  exp: string
@@ -2381,51 +2488,6 @@ export type Database = {
2381
2488
  }
2382
2489
  Relationships: []
2383
2490
  }
2384
- tbl_mcp_tokens: {
2385
- Row: {
2386
- access_token_expires_at: string
2387
- access_token_hash: string
2388
- client_id: string
2389
- client_name: string | null
2390
- created_at: string
2391
- id: string
2392
- integration_token_id: string
2393
- org_id: string
2394
- phone_scopes: string[] | null
2395
- refresh_token_expires_at: string
2396
- refresh_token_hash: string
2397
- revoked_at: string | null
2398
- }
2399
- Insert: {
2400
- access_token_expires_at: string
2401
- access_token_hash: string
2402
- client_id: string
2403
- client_name?: string | null
2404
- created_at?: string
2405
- id?: string
2406
- integration_token_id: string
2407
- org_id: string
2408
- phone_scopes?: string[] | null
2409
- refresh_token_expires_at: string
2410
- refresh_token_hash: string
2411
- revoked_at?: string | null
2412
- }
2413
- Update: {
2414
- access_token_expires_at?: string
2415
- access_token_hash?: string
2416
- client_id?: string
2417
- client_name?: string | null
2418
- created_at?: string
2419
- id?: string
2420
- integration_token_id?: string
2421
- org_id?: string
2422
- phone_scopes?: string[] | null
2423
- refresh_token_expires_at?: string
2424
- refresh_token_hash?: string
2425
- revoked_at?: string | null
2426
- }
2427
- Relationships: []
2428
- }
2429
2491
  tbl_org: {
2430
2492
  Row: {
2431
2493
  ai_settings: Json | null
@@ -2628,12 +2690,15 @@ export type Database = {
2628
2690
  library: string | null
2629
2691
  org_id: string
2630
2692
  org_phone: string | null
2693
+ passkey_code: string | null
2694
+ passkey_request: Json | null
2631
2695
  phone_id: string
2632
2696
  phone_image: string | null
2633
2697
  phone_name: string | null
2634
2698
  phone_state: Json | null
2635
2699
  qr_code: string | null
2636
2700
  queue_status: Json | null
2701
+ restriction_state: Json | null
2637
2702
  server_image: string | null
2638
2703
  server_ip: string | null
2639
2704
  server_name: string | null
@@ -2653,12 +2718,15 @@ export type Database = {
2653
2718
  library?: string | null
2654
2719
  org_id: string
2655
2720
  org_phone?: string | null
2721
+ passkey_code?: string | null
2722
+ passkey_request?: Json | null
2656
2723
  phone_id?: string
2657
2724
  phone_image?: string | null
2658
2725
  phone_name?: string | null
2659
2726
  phone_state?: Json | null
2660
2727
  qr_code?: string | null
2661
2728
  queue_status?: Json | null
2729
+ restriction_state?: Json | null
2662
2730
  server_image?: string | null
2663
2731
  server_ip?: string | null
2664
2732
  server_name?: string | null
@@ -2678,12 +2746,15 @@ export type Database = {
2678
2746
  library?: string | null
2679
2747
  org_id?: string
2680
2748
  org_phone?: string | null
2749
+ passkey_code?: string | null
2750
+ passkey_request?: Json | null
2681
2751
  phone_id?: string
2682
2752
  phone_image?: string | null
2683
2753
  phone_name?: string | null
2684
2754
  phone_state?: Json | null
2685
2755
  qr_code?: string | null
2686
2756
  queue_status?: Json | null
2757
+ restriction_state?: Json | null
2687
2758
  server_image?: string | null
2688
2759
  server_ip?: string | null
2689
2760
  server_name?: string | null
@@ -2996,7 +3067,6 @@ export type Database = {
2996
3067
  chat_ids: string[]
2997
3068
  created_at: string
2998
3069
  delay: number | null
2999
- scheduled_id: string
3000
3070
  is_active: boolean
3001
3071
  message_payload: Json
3002
3072
  next_occurrence_at: string
@@ -3005,6 +3075,7 @@ export type Database = {
3005
3075
  org_phones: string[] | null
3006
3076
  performed_by: string | null
3007
3077
  repeat_config: Json
3078
+ scheduled_id: string
3008
3079
  updated_at: string
3009
3080
  variables: Json | null
3010
3081
  }
@@ -3012,7 +3083,6 @@ export type Database = {
3012
3083
  chat_ids: string[]
3013
3084
  created_at?: string
3014
3085
  delay?: number | null
3015
- scheduled_id?: string
3016
3086
  is_active?: boolean
3017
3087
  message_payload: Json
3018
3088
  next_occurrence_at: string
@@ -3021,6 +3091,7 @@ export type Database = {
3021
3091
  org_phones?: string[] | null
3022
3092
  performed_by?: string | null
3023
3093
  repeat_config: Json
3094
+ scheduled_id?: string
3024
3095
  updated_at?: string
3025
3096
  variables?: Json | null
3026
3097
  }
@@ -3028,7 +3099,6 @@ export type Database = {
3028
3099
  chat_ids?: string[]
3029
3100
  created_at?: string
3030
3101
  delay?: number | null
3031
- scheduled_id?: string
3032
3102
  is_active?: boolean
3033
3103
  message_payload?: Json
3034
3104
  next_occurrence_at?: string
@@ -3037,6 +3107,7 @@ export type Database = {
3037
3107
  org_phones?: string[] | null
3038
3108
  performed_by?: string | null
3039
3109
  repeat_config?: Json
3110
+ scheduled_id?: string
3040
3111
  updated_at?: string
3041
3112
  variables?: Json | null
3042
3113
  }
@@ -3048,6 +3119,20 @@ export type Database = {
3048
3119
  referencedRelation: "tbl_org"
3049
3120
  referencedColumns: ["org_id"]
3050
3121
  },
3122
+ {
3123
+ foreignKeyName: "tbl_recurring_broadcasts_org_id_fkey"
3124
+ columns: ["org_id"]
3125
+ isOneToOne: false
3126
+ referencedRelation: "view_org"
3127
+ referencedColumns: ["org_id"]
3128
+ },
3129
+ {
3130
+ foreignKeyName: "tbl_recurring_broadcasts_org_id_fkey"
3131
+ columns: ["org_id"]
3132
+ isOneToOne: false
3133
+ referencedRelation: "view_org_all"
3134
+ referencedColumns: ["org_id"]
3135
+ },
3051
3136
  ]
3052
3137
  }
3053
3138
  tbl_recurring_messages: {
@@ -3402,6 +3487,39 @@ export type Database = {
3402
3487
  },
3403
3488
  ]
3404
3489
  }
3490
+ tbl_usage_records: {
3491
+ Row: {
3492
+ amount: number
3493
+ created_at: string
3494
+ id: string
3495
+ metadata: Json | null
3496
+ org_id: string
3497
+ source: string
3498
+ transaction_type: Database["public"]["Enums"]["enum_credit_transaction_type"]
3499
+ unit_type: string
3500
+ }
3501
+ Insert: {
3502
+ amount?: number
3503
+ created_at?: string
3504
+ id?: string
3505
+ metadata?: Json | null
3506
+ org_id: string
3507
+ source: string
3508
+ transaction_type?: Database["public"]["Enums"]["enum_credit_transaction_type"]
3509
+ unit_type?: string
3510
+ }
3511
+ Update: {
3512
+ amount?: number
3513
+ created_at?: string
3514
+ id?: string
3515
+ metadata?: Json | null
3516
+ org_id?: string
3517
+ source?: string
3518
+ transaction_type?: Database["public"]["Enums"]["enum_credit_transaction_type"]
3519
+ unit_type?: string
3520
+ }
3521
+ Relationships: []
3522
+ }
3405
3523
  }
3406
3524
  Views: {
3407
3525
  view_broadcast_logs: {
@@ -3412,8 +3530,12 @@ export type Database = {
3412
3530
  | null
3413
3531
  created_at: string | null
3414
3532
  delivered_percentage: number | null
3533
+ due_at: string | null
3415
3534
  failed_chats: number | null
3535
+ is_active: boolean | null
3416
3536
  message_payload: Json | null
3537
+ next_occurrence_at: string | null
3538
+ occurrence_count: number | null
3417
3539
  org_id: string | null
3418
3540
  parent_broadcast_id: string | null
3419
3541
  pending_chats: number | null
@@ -3421,18 +3543,14 @@ export type Database = {
3421
3543
  performed_by: string | null
3422
3544
  previous_retries: Json | null
3423
3545
  read_percentage: number | null
3546
+ repeat_config: Json | null
3424
3547
  retry_count: number | null
3425
3548
  scheduled_at: string | null
3426
3549
  sent_chats: number | null
3427
- is_active: boolean | null
3428
- next_occurrence_at: string | null
3429
- occurrence_count: number | null
3430
- repeat_config: Json | null
3431
3550
  total_chats: number | null
3432
3551
  total_delivered_count: number | null
3433
3552
  total_member_count: number | null
3434
3553
  total_read_count: number | null
3435
- due_at: string | null
3436
3554
  }
3437
3555
  Relationships: [
3438
3556
  {
@@ -3522,9 +3640,11 @@ export type Database = {
3522
3640
  is_archived: boolean | null
3523
3641
  is_exited: boolean | null
3524
3642
  is_muted: boolean | null
3643
+ join_approval_mode: boolean | null
3525
3644
  label_ids: Json | null
3526
3645
  latest_mention_at: string | null
3527
3646
  latest_message: Json | null
3647
+ latest_message_timestamp: string | null
3528
3648
  member_closed_at: Json | null
3529
3649
  member_count: number | null
3530
3650
  member_unread_count: Json | null
@@ -3783,10 +3903,6 @@ export type Database = {
3783
3903
  Args: { chat_ids_input?: string[]; org_id_input: string }
3784
3904
  Returns: Json[]
3785
3905
  }
3786
- get_mcp_connections: {
3787
- Args: { org_id_input: string }
3788
- Returns: Json
3789
- }
3790
3906
  get_chat_properties_by_chat_ids: {
3791
3907
  Args: { chat_id_input?: string[]; org_id_input: string }
3792
3908
  Returns: Json
@@ -3849,22 +3965,39 @@ export type Database = {
3849
3965
  Returns: Json
3850
3966
  }
3851
3967
  get_counts: {
3852
- Args: { org_id_input: string; sync_wa_unread_count?: boolean, org_phone_input?: string[] }
3853
- Returns: Json
3854
- }
3855
- get_export_chats_data: {
3856
3968
  Args: {
3857
- chat_id_input?: string[]
3858
- chat_type_input?: string
3859
- end_date_input?: string
3860
- filter_by_input?: string
3861
- limit_input?: number
3862
- offset_input?: number
3863
3969
  org_id_input: string
3864
- start_date_input?: string
3970
+ org_phone_input?: string[]
3971
+ sync_wa_unread_count?: boolean
3865
3972
  }
3866
3973
  Returns: Json
3867
3974
  }
3975
+ get_export_chats_data:
3976
+ | {
3977
+ Args: {
3978
+ chat_id_input?: string[]
3979
+ chat_type_input?: string
3980
+ end_date_input?: string
3981
+ limit_input?: number
3982
+ offset_input?: number
3983
+ org_id_input: string
3984
+ start_date_input?: string
3985
+ }
3986
+ Returns: Json
3987
+ }
3988
+ | {
3989
+ Args: {
3990
+ chat_id_input?: string[]
3991
+ chat_type_input?: string
3992
+ end_date_input?: string
3993
+ filter_by_input?: string
3994
+ limit_input?: number
3995
+ offset_input?: number
3996
+ org_id_input: string
3997
+ start_date_input?: string
3998
+ }
3999
+ Returns: Json
4000
+ }
3868
4001
  get_export_members_data: {
3869
4002
  Args: {
3870
4003
  chat_id_input?: string[]
@@ -3897,38 +4030,34 @@ export type Database = {
3897
4030
  }
3898
4031
  Returns: Json
3899
4032
  }
3900
- get_message_rule_info: {
3901
- Args: {
3902
- chat_id_input: string
3903
- message_id_input: string
3904
- org_id_input: string
3905
- org_phone_input: string
3906
- sender_id_input: string
3907
- }
3908
- Returns: Json
3909
- }
3910
-
3911
- get_integration_data: {
3912
- Args: { org_id_input?: string }
3913
- Returns: Json
3914
- }
4033
+ get_integration_data: { Args: { org_id_input?: string }; Returns: Json }
4034
+ get_mcp_connections: { Args: { org_id_input: string }; Returns: Json }
3915
4035
  get_media_library: {
3916
4036
  Args: {
3917
- org_id_input: string
3918
- type_input: string
3919
- search_query?: string
3920
4037
  limit_input?: number
3921
4038
  offset_input?: number
4039
+ org_id_input: string
4040
+ search_query?: string
4041
+ type_input: string
3922
4042
  }
3923
4043
  Returns: {
4044
+ created_at: string
3924
4045
  id: string
4046
+ metadata: Json
3925
4047
  name: string
3926
- created_at: string
3927
4048
  updated_at: string
3928
- metadata: Json
3929
4049
  }[]
3930
4050
  }
3931
-
4051
+ get_message_rule_info: {
4052
+ Args: {
4053
+ chat_id_input: string
4054
+ message_id_input: string
4055
+ org_id_input: string
4056
+ org_phone_input: string
4057
+ sender_id_input: string
4058
+ }
4059
+ Returns: Json
4060
+ }
3932
4061
  get_message_workflow_info: {
3933
4062
  Args: {
3934
4063
  chat_id_input: string
@@ -4079,10 +4208,7 @@ export type Database = {
4079
4208
  Args: { chat_id_input?: string; org_id_input: string }
4080
4209
  Returns: undefined
4081
4210
  }
4082
- revoke_mcp_connection: {
4083
- Args: { id_input: string }
4084
- Returns: undefined
4085
- }
4211
+ revoke_mcp_connection: { Args: { id_input: string }; Returns: undefined }
4086
4212
  update_chat_properties: {
4087
4213
  Args: {
4088
4214
  chat_id_input: string[]
@@ -4122,6 +4248,7 @@ export type Database = {
4122
4248
  is_read_only: boolean | null
4123
4249
  latest_mention_at: string | null
4124
4250
  latest_message: Json | null
4251
+ latest_message_timestamp: string | null
4125
4252
  member_count: number | null
4126
4253
  member_unread_count: Json | null
4127
4254
  mute_expiration: number | null
@@ -4278,6 +4405,8 @@ export type Database = {
4278
4405
  }
4279
4406
  Enums: {
4280
4407
  enum_ai_context_type: "faq" | "document" | "self-learned"
4408
+ enum_ai_training_runs_status: "pending" | "running" | "dispatched" | "failed" | "complete"
4409
+ enum_ai_training_runs_trigger: "scheduled" | "manual"
4281
4410
  enum_broadcast_status: "inprogress" | "completed" | "stopped" | "expired"
4282
4411
  enum_chat_colors:
4283
4412
  | "#B4876E"
@@ -4473,6 +4602,8 @@ export const Constants = {
4473
4602
  public: {
4474
4603
  Enums: {
4475
4604
  enum_ai_context_type: ["faq", "document", "self-learned"],
4605
+ enum_ai_training_runs_status: ["pending", "running", "dispatched", "failed", "complete"],
4606
+ enum_ai_training_runs_trigger: ["scheduled", "manual"],
4476
4607
  enum_broadcast_status: ["inprogress", "completed", "stopped", "expired"],
4477
4608
  enum_chat_colors: [
4478
4609
  "#B4876E",
@@ -4538,10 +4669,8 @@ export const Constants = {
4538
4669
  "zohodesk",
4539
4670
  "gsheets",
4540
4671
  "zohocrm",
4541
- "mcp",
4542
4672
  ],
4543
4673
  enum_member_role: ["admin", "member"],
4544
4674
  },
4545
4675
  },
4546
4676
  } as const
4547
-