@periskope/types 0.6.376 → 0.6.377
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/dist/rules.types.d.ts +11 -2
- package/dist/rules.types.d.ts.map +1 -1
- package/dist/rules.types.js +30 -0
- package/dist/supabase.types.d.ts +375 -111
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/supabase.types.js +3 -2
- package/dist/types.d.ts +10 -81
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/rules.types.ts +43 -2
- package/src/supabase.types.ts +368 -113
- package/src/types.ts +10 -85
- package/tsconfig.tsbuildinfo +1 -1
- package/.turbo/daemon/2a480df21ee2b3e0-turbo.log.2025-07-29 +0 -1
package/dist/supabase.types.d.ts
CHANGED
|
@@ -979,7 +979,6 @@ export type Database = {
|
|
|
979
979
|
snooze_metadata: Json | null;
|
|
980
980
|
updated_at: string | null;
|
|
981
981
|
zohodesk_metadata: Json | null;
|
|
982
|
-
zohocrm_metadata: Json | null;
|
|
983
982
|
};
|
|
984
983
|
Insert: {
|
|
985
984
|
ai_metadata?: Json | null;
|
|
@@ -1004,7 +1003,6 @@ export type Database = {
|
|
|
1004
1003
|
snooze_metadata?: Json | null;
|
|
1005
1004
|
updated_at?: string | null;
|
|
1006
1005
|
zohodesk_metadata?: Json | null;
|
|
1007
|
-
zohocrm_metadata?: Json | null;
|
|
1008
1006
|
};
|
|
1009
1007
|
Update: {
|
|
1010
1008
|
ai_metadata?: Json | null;
|
|
@@ -1029,7 +1027,6 @@ export type Database = {
|
|
|
1029
1027
|
snooze_metadata?: Json | null;
|
|
1030
1028
|
updated_at?: string | null;
|
|
1031
1029
|
zohodesk_metadata?: Json | null;
|
|
1032
|
-
zohocrm_metadata?: Json | null;
|
|
1033
1030
|
};
|
|
1034
1031
|
Relationships: [];
|
|
1035
1032
|
};
|
|
@@ -2529,7 +2526,11 @@ export type Database = {
|
|
|
2529
2526
|
view_org: {
|
|
2530
2527
|
Row: {
|
|
2531
2528
|
access_scopes: Json | null;
|
|
2529
|
+
additional_phone_limit: number | null;
|
|
2530
|
+
additional_user_limit: number | null;
|
|
2532
2531
|
ai_settings: Json | null;
|
|
2532
|
+
allocated_phone_limit: number | null;
|
|
2533
|
+
allocated_user_limit: number | null;
|
|
2533
2534
|
created_at: string | null;
|
|
2534
2535
|
is_enterprise: boolean | null;
|
|
2535
2536
|
is_free_trial: boolean | null;
|
|
@@ -2537,7 +2538,6 @@ export type Database = {
|
|
|
2537
2538
|
is_hubspot_connected: boolean | null;
|
|
2538
2539
|
is_platform: boolean | null;
|
|
2539
2540
|
is_zohodesk_connected: boolean | null;
|
|
2540
|
-
is_zohocrm_connected: boolean | null;
|
|
2541
2541
|
org_alias: string | null;
|
|
2542
2542
|
org_id: string | null;
|
|
2543
2543
|
org_image: string | null;
|
|
@@ -2558,7 +2558,11 @@ export type Database = {
|
|
|
2558
2558
|
};
|
|
2559
2559
|
Insert: {
|
|
2560
2560
|
access_scopes?: never;
|
|
2561
|
+
additional_phone_limit?: never;
|
|
2562
|
+
additional_user_limit?: never;
|
|
2561
2563
|
ai_settings?: Json | null;
|
|
2564
|
+
allocated_phone_limit?: never;
|
|
2565
|
+
allocated_user_limit?: never;
|
|
2562
2566
|
created_at?: string | null;
|
|
2563
2567
|
is_enterprise?: never;
|
|
2564
2568
|
is_free_trial?: never;
|
|
@@ -2566,7 +2570,6 @@ export type Database = {
|
|
|
2566
2570
|
is_hubspot_connected?: never;
|
|
2567
2571
|
is_platform?: boolean | null;
|
|
2568
2572
|
is_zohodesk_connected?: never;
|
|
2569
|
-
is_zohocrm_connected?: never;
|
|
2570
2573
|
org_alias?: string | null;
|
|
2571
2574
|
org_id?: string | null;
|
|
2572
2575
|
org_image?: string | null;
|
|
@@ -2587,7 +2590,11 @@ export type Database = {
|
|
|
2587
2590
|
};
|
|
2588
2591
|
Update: {
|
|
2589
2592
|
access_scopes?: never;
|
|
2593
|
+
additional_phone_limit?: never;
|
|
2594
|
+
additional_user_limit?: never;
|
|
2590
2595
|
ai_settings?: Json | null;
|
|
2596
|
+
allocated_phone_limit?: never;
|
|
2597
|
+
allocated_user_limit?: never;
|
|
2591
2598
|
created_at?: string | null;
|
|
2592
2599
|
is_enterprise?: never;
|
|
2593
2600
|
is_free_trial?: never;
|
|
@@ -2595,7 +2602,6 @@ export type Database = {
|
|
|
2595
2602
|
is_hubspot_connected?: never;
|
|
2596
2603
|
is_platform?: boolean | null;
|
|
2597
2604
|
is_zohodesk_connected?: never;
|
|
2598
|
-
is_zohocrm_connected?: never;
|
|
2599
2605
|
org_alias?: string | null;
|
|
2600
2606
|
org_id?: string | null;
|
|
2601
2607
|
org_image?: string | null;
|
|
@@ -2660,8 +2666,8 @@ export type Database = {
|
|
|
2660
2666
|
};
|
|
2661
2667
|
check_feature_flag_access: {
|
|
2662
2668
|
Args: {
|
|
2663
|
-
org_id_input: string;
|
|
2664
2669
|
feature_input: string;
|
|
2670
|
+
org_id_input: string;
|
|
2665
2671
|
};
|
|
2666
2672
|
Returns: boolean;
|
|
2667
2673
|
};
|
|
@@ -2670,8 +2676,8 @@ export type Database = {
|
|
|
2670
2676
|
chat_properties_row: Database["public"]["Tables"]["tbl_chat_properties"]["Row"];
|
|
2671
2677
|
};
|
|
2672
2678
|
Returns: {
|
|
2673
|
-
result_chat_id: string;
|
|
2674
2679
|
new_chat_access: Json;
|
|
2680
|
+
result_chat_id: string;
|
|
2675
2681
|
}[];
|
|
2676
2682
|
};
|
|
2677
2683
|
custom_access_token_hook: {
|
|
@@ -2682,23 +2688,23 @@ export type Database = {
|
|
|
2682
2688
|
};
|
|
2683
2689
|
delete_org_data_in_batches: {
|
|
2684
2690
|
Args: {
|
|
2685
|
-
org_id_input: string;
|
|
2686
|
-
table_names_input: string[];
|
|
2687
2691
|
batch_size_input: number;
|
|
2688
2692
|
loop_size_input: number;
|
|
2693
|
+
org_id_input: string;
|
|
2694
|
+
table_names_input: string[];
|
|
2689
2695
|
};
|
|
2690
2696
|
Returns: {
|
|
2691
2697
|
deleted_org_id: string;
|
|
2698
|
+
remaining_rows: number;
|
|
2692
2699
|
table_name: string;
|
|
2693
2700
|
total_deleted_rows: number;
|
|
2694
|
-
remaining_rows: number;
|
|
2695
2701
|
}[];
|
|
2696
2702
|
};
|
|
2697
2703
|
gen_id: {
|
|
2698
2704
|
Args: {
|
|
2705
|
+
alphabet?: string;
|
|
2699
2706
|
prefix: string;
|
|
2700
2707
|
size?: number;
|
|
2701
|
-
alphabet?: string;
|
|
2702
2708
|
};
|
|
2703
2709
|
Returns: string;
|
|
2704
2710
|
};
|
|
@@ -2710,10 +2716,10 @@ export type Database = {
|
|
|
2710
2716
|
};
|
|
2711
2717
|
generate_access_token: {
|
|
2712
2718
|
Args: {
|
|
2719
|
+
metadata_input?: Json;
|
|
2713
2720
|
name_input?: string;
|
|
2714
|
-
type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
2715
2721
|
org_id_input?: string;
|
|
2716
|
-
|
|
2722
|
+
type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
2717
2723
|
};
|
|
2718
2724
|
Returns: Json;
|
|
2719
2725
|
};
|
|
@@ -2728,15 +2734,15 @@ export type Database = {
|
|
|
2728
2734
|
};
|
|
2729
2735
|
get_chat_labels_data: {
|
|
2730
2736
|
Args: {
|
|
2731
|
-
org_id_input: string;
|
|
2732
2737
|
chat_ids_input?: string[];
|
|
2738
|
+
org_id_input: string;
|
|
2733
2739
|
};
|
|
2734
2740
|
Returns: Json[];
|
|
2735
2741
|
};
|
|
2736
2742
|
get_chat_properties_by_chat_ids: {
|
|
2737
2743
|
Args: {
|
|
2738
|
-
org_id_input: string;
|
|
2739
2744
|
chat_id_input?: string[];
|
|
2745
|
+
org_id_input: string;
|
|
2740
2746
|
};
|
|
2741
2747
|
Returns: Json;
|
|
2742
2748
|
};
|
|
@@ -2758,12 +2764,12 @@ export type Database = {
|
|
|
2758
2764
|
};
|
|
2759
2765
|
get_chats: {
|
|
2760
2766
|
Args: {
|
|
2761
|
-
org_id_input: string;
|
|
2762
|
-
chat_id_input?: string[];
|
|
2763
|
-
with_members?: boolean;
|
|
2764
|
-
last_updated_at?: string;
|
|
2765
2767
|
batch_limit?: number;
|
|
2766
2768
|
batch_offset?: number;
|
|
2769
|
+
chat_id_input?: string[];
|
|
2770
|
+
last_updated_at?: string;
|
|
2771
|
+
org_id_input: string;
|
|
2772
|
+
with_members?: boolean;
|
|
2767
2773
|
};
|
|
2768
2774
|
Returns: Json;
|
|
2769
2775
|
};
|
|
@@ -2777,48 +2783,48 @@ export type Database = {
|
|
|
2777
2783
|
};
|
|
2778
2784
|
get_contacts: {
|
|
2779
2785
|
Args: {
|
|
2780
|
-
org_id_input: string;
|
|
2781
2786
|
contact_ids_input?: string[];
|
|
2782
|
-
sync_phone_contacts?: boolean;
|
|
2783
|
-
search_input?: string;
|
|
2784
|
-
label_ids_input?: string[];
|
|
2785
2787
|
is_internal_input?: boolean;
|
|
2786
|
-
|
|
2788
|
+
label_ids_input?: string[];
|
|
2787
2789
|
limit_input?: number;
|
|
2790
|
+
offset_input?: number;
|
|
2791
|
+
org_id_input: string;
|
|
2792
|
+
search_input?: string;
|
|
2793
|
+
sync_phone_contacts?: boolean;
|
|
2788
2794
|
};
|
|
2789
2795
|
Returns: Json;
|
|
2790
2796
|
};
|
|
2791
2797
|
get_export_chats_data: {
|
|
2792
2798
|
Args: {
|
|
2793
|
-
org_id_input: string;
|
|
2794
2799
|
chat_id_input?: string[];
|
|
2795
2800
|
chat_type_input?: string;
|
|
2796
|
-
start_date_input?: string;
|
|
2797
2801
|
end_date_input?: string;
|
|
2798
2802
|
limit_input?: number;
|
|
2799
2803
|
offset_input?: number;
|
|
2804
|
+
org_id_input: string;
|
|
2805
|
+
start_date_input?: string;
|
|
2800
2806
|
};
|
|
2801
2807
|
Returns: Json;
|
|
2802
2808
|
};
|
|
2803
2809
|
get_export_members_data: {
|
|
2804
2810
|
Args: {
|
|
2805
|
-
org_id_input: string;
|
|
2806
2811
|
chat_id_input?: string[];
|
|
2807
|
-
offset_input?: number;
|
|
2808
2812
|
limit_input?: number;
|
|
2813
|
+
offset_input?: number;
|
|
2814
|
+
org_id_input: string;
|
|
2809
2815
|
};
|
|
2810
2816
|
Returns: Json;
|
|
2811
2817
|
};
|
|
2812
2818
|
get_export_tickets_data: {
|
|
2813
2819
|
Args: {
|
|
2820
|
+
end_date_input?: string;
|
|
2821
|
+
limit_input?: number;
|
|
2822
|
+
offset_input?: number;
|
|
2814
2823
|
org_id_input: string;
|
|
2815
|
-
|
|
2824
|
+
priority_input?: number;
|
|
2816
2825
|
start_date_input?: string;
|
|
2817
|
-
end_date_input?: string;
|
|
2818
2826
|
status_input?: Database["public"]["Enums"]["enum_chat_tickets_status"];
|
|
2819
|
-
|
|
2820
|
-
offset_input?: number;
|
|
2821
|
-
limit_input?: number;
|
|
2827
|
+
ticket_id_input?: string[];
|
|
2822
2828
|
};
|
|
2823
2829
|
Returns: Json;
|
|
2824
2830
|
};
|
|
@@ -2830,9 +2836,9 @@ export type Database = {
|
|
|
2830
2836
|
};
|
|
2831
2837
|
get_formatted_cp_values: {
|
|
2832
2838
|
Args: {
|
|
2833
|
-
org_id_input: string;
|
|
2834
|
-
custom_properties_value_input?: Json;
|
|
2835
2839
|
cp_type?: string;
|
|
2840
|
+
custom_properties_value_input?: Json;
|
|
2841
|
+
org_id_input: string;
|
|
2836
2842
|
rules_format?: boolean;
|
|
2837
2843
|
};
|
|
2838
2844
|
Returns: Json;
|
|
@@ -2845,8 +2851,8 @@ export type Database = {
|
|
|
2845
2851
|
};
|
|
2846
2852
|
get_message_rule_info: {
|
|
2847
2853
|
Args: {
|
|
2848
|
-
message_id_input: string;
|
|
2849
2854
|
chat_id_input: string;
|
|
2855
|
+
message_id_input: string;
|
|
2850
2856
|
org_id_input: string;
|
|
2851
2857
|
org_phone_input: string;
|
|
2852
2858
|
sender_id_input: string;
|
|
@@ -2856,19 +2862,19 @@ export type Database = {
|
|
|
2856
2862
|
get_message_workflow_info: {
|
|
2857
2863
|
Args: {
|
|
2858
2864
|
chat_id_input: string;
|
|
2865
|
+
message_id_input: string;
|
|
2859
2866
|
org_id_input: string;
|
|
2860
2867
|
org_phone_input: string;
|
|
2861
|
-
message_id_input: string;
|
|
2862
2868
|
sender_id_input: string;
|
|
2863
2869
|
};
|
|
2864
2870
|
Returns: Json;
|
|
2865
2871
|
};
|
|
2866
2872
|
get_messages_notifications_reactions: {
|
|
2867
2873
|
Args: {
|
|
2868
|
-
org_id_input: string;
|
|
2869
2874
|
chat_id_input?: string[];
|
|
2870
2875
|
limit_input?: number;
|
|
2871
2876
|
offset_input?: number;
|
|
2877
|
+
org_id_input: string;
|
|
2872
2878
|
};
|
|
2873
2879
|
Returns: Json;
|
|
2874
2880
|
};
|
|
@@ -2893,58 +2899,58 @@ export type Database = {
|
|
|
2893
2899
|
};
|
|
2894
2900
|
get_phone_chat_map: {
|
|
2895
2901
|
Args: {
|
|
2896
|
-
org_id_input: string;
|
|
2897
2902
|
chat_ids_input: string[];
|
|
2903
|
+
org_id_input: string;
|
|
2898
2904
|
};
|
|
2899
2905
|
Returns: Json;
|
|
2900
2906
|
};
|
|
2901
2907
|
get_reaction_rule_info: {
|
|
2902
2908
|
Args: {
|
|
2903
|
-
reaction_id_input: string;
|
|
2904
|
-
message_id_input: string;
|
|
2905
2909
|
chat_id_input: string;
|
|
2910
|
+
message_id_input: string;
|
|
2906
2911
|
org_id_input: string;
|
|
2907
2912
|
org_phone_input: string;
|
|
2913
|
+
reaction_id_input: string;
|
|
2908
2914
|
sender_id_input: string;
|
|
2909
2915
|
};
|
|
2910
2916
|
Returns: Json;
|
|
2911
2917
|
};
|
|
2912
2918
|
get_relevant_context: {
|
|
2913
2919
|
Args: {
|
|
2920
|
+
confidence_score_input?: number;
|
|
2914
2921
|
org_id_input: string;
|
|
2915
2922
|
query_embedding_input: string;
|
|
2916
|
-
confidence_score_input?: number;
|
|
2917
2923
|
};
|
|
2918
2924
|
Returns: Json;
|
|
2919
2925
|
};
|
|
2920
2926
|
get_sender_workflow_info: {
|
|
2921
2927
|
Args: {
|
|
2922
2928
|
chat_id_input: string;
|
|
2929
|
+
contact_id_input: string;
|
|
2923
2930
|
org_id_input: string;
|
|
2924
2931
|
org_phone_input: string;
|
|
2925
|
-
contact_id_input: string;
|
|
2926
2932
|
};
|
|
2927
2933
|
Returns: Json;
|
|
2928
2934
|
};
|
|
2929
2935
|
get_task_rule_info: {
|
|
2930
2936
|
Args: {
|
|
2931
|
-
task_id_input: string;
|
|
2932
|
-
task_type_input: string;
|
|
2933
|
-
org_id_input: string;
|
|
2934
2937
|
chat_id_input?: string;
|
|
2938
|
+
message_id_input?: string;
|
|
2939
|
+
org_id_input: string;
|
|
2935
2940
|
org_phone_input?: string;
|
|
2936
2941
|
sender_id_input?: string;
|
|
2942
|
+
task_id_input: string;
|
|
2943
|
+
task_type_input: string;
|
|
2937
2944
|
ticket_id_input?: string;
|
|
2938
|
-
message_id_input?: string;
|
|
2939
2945
|
unique_message_id_input?: string;
|
|
2940
2946
|
};
|
|
2941
2947
|
Returns: Json;
|
|
2942
2948
|
};
|
|
2943
2949
|
get_ticket_info: {
|
|
2944
2950
|
Args: {
|
|
2945
|
-
ticket_id_input?: string;
|
|
2946
|
-
org_id_input?: string;
|
|
2947
2951
|
chat_id_input?: string;
|
|
2952
|
+
org_id_input?: string;
|
|
2953
|
+
ticket_id_input?: string;
|
|
2948
2954
|
unique_message_id_input?: string;
|
|
2949
2955
|
with_attached_messages?: boolean;
|
|
2950
2956
|
};
|
|
@@ -2952,20 +2958,20 @@ export type Database = {
|
|
|
2952
2958
|
};
|
|
2953
2959
|
get_ticket_rule_info: {
|
|
2954
2960
|
Args: {
|
|
2955
|
-
ticket_id_input: string;
|
|
2956
|
-
unique_message_id_input: string;
|
|
2957
2961
|
chat_id_input: string;
|
|
2958
2962
|
org_id_input: string;
|
|
2963
|
+
ticket_id_input: string;
|
|
2964
|
+
unique_message_id_input: string;
|
|
2959
2965
|
};
|
|
2960
2966
|
Returns: Json;
|
|
2961
2967
|
};
|
|
2962
2968
|
get_tickets: {
|
|
2963
2969
|
Args: {
|
|
2964
|
-
org_id_input: string;
|
|
2965
|
-
ticket_id_input?: string[];
|
|
2966
|
-
last_updated_at?: string;
|
|
2967
2970
|
batch_limit?: number;
|
|
2968
2971
|
batch_offset?: number;
|
|
2972
|
+
last_updated_at?: string;
|
|
2973
|
+
org_id_input: string;
|
|
2974
|
+
ticket_id_input?: string[];
|
|
2969
2975
|
};
|
|
2970
2976
|
Returns: Json;
|
|
2971
2977
|
};
|
|
@@ -2979,29 +2985,29 @@ export type Database = {
|
|
|
2979
2985
|
};
|
|
2980
2986
|
refresh_chat_properties: {
|
|
2981
2987
|
Args: {
|
|
2982
|
-
org_id_input: string;
|
|
2983
2988
|
chat_id_input?: string;
|
|
2989
|
+
org_id_input: string;
|
|
2984
2990
|
};
|
|
2985
2991
|
Returns: undefined;
|
|
2986
2992
|
};
|
|
2987
2993
|
update_chat_properties: {
|
|
2988
2994
|
Args: {
|
|
2989
|
-
column_name: string;
|
|
2990
|
-
org_id_input: string;
|
|
2991
2995
|
chat_id_input: string[];
|
|
2996
|
+
column_name: string;
|
|
2992
2997
|
column_value_input?: string;
|
|
2993
2998
|
key_input?: string;
|
|
2999
|
+
org_id_input: string;
|
|
2994
3000
|
value_input?: Json;
|
|
2995
3001
|
};
|
|
2996
3002
|
Returns: undefined;
|
|
2997
3003
|
};
|
|
2998
3004
|
update_chat_unread_count: {
|
|
2999
3005
|
Args: {
|
|
3000
|
-
org_id_input: string;
|
|
3001
3006
|
chat_id_input: string[];
|
|
3002
|
-
sync_unread_count?: boolean;
|
|
3003
3007
|
email_input?: string;
|
|
3008
|
+
org_id_input: string;
|
|
3004
3009
|
org_phone_input?: string;
|
|
3010
|
+
sync_unread_count?: boolean;
|
|
3005
3011
|
};
|
|
3006
3012
|
Returns: {
|
|
3007
3013
|
archived: boolean | null;
|
|
@@ -3038,21 +3044,21 @@ export type Database = {
|
|
|
3038
3044
|
update_custom_properties: {
|
|
3039
3045
|
Args: {
|
|
3040
3046
|
org_id_input: string;
|
|
3041
|
-
row_properties_map: Json;
|
|
3042
3047
|
replace_properties?: boolean;
|
|
3048
|
+
row_properties_map: Json;
|
|
3043
3049
|
};
|
|
3044
3050
|
Returns: undefined;
|
|
3045
3051
|
};
|
|
3046
3052
|
update_flag: {
|
|
3047
3053
|
Args: {
|
|
3048
|
-
|
|
3054
|
+
chat_id_input?: string;
|
|
3049
3055
|
flag_metadata_input: Json;
|
|
3050
3056
|
flag_status_input?: boolean;
|
|
3051
|
-
|
|
3052
|
-
|
|
3057
|
+
full_update?: boolean;
|
|
3058
|
+
org_id_input: string;
|
|
3053
3059
|
org_phone_input?: string;
|
|
3054
3060
|
replace?: boolean;
|
|
3055
|
-
|
|
3061
|
+
unique_message_id_input?: string;
|
|
3056
3062
|
};
|
|
3057
3063
|
Returns: {
|
|
3058
3064
|
ack: string | null;
|
|
@@ -3111,29 +3117,29 @@ export type Database = {
|
|
|
3111
3117
|
};
|
|
3112
3118
|
update_jsonb_column: {
|
|
3113
3119
|
Args: {
|
|
3114
|
-
table_name_input: string;
|
|
3115
3120
|
column_name_input: string;
|
|
3116
3121
|
id_name_input: string;
|
|
3117
3122
|
id_value_input: string;
|
|
3118
3123
|
json_input: Json;
|
|
3119
|
-
replace_input?: boolean;
|
|
3120
3124
|
org_id_input?: string;
|
|
3125
|
+
replace_input?: boolean;
|
|
3126
|
+
table_name_input: string;
|
|
3121
3127
|
};
|
|
3122
3128
|
Returns: undefined;
|
|
3123
3129
|
};
|
|
3124
3130
|
update_labels: {
|
|
3125
3131
|
Args: {
|
|
3126
3132
|
org_id_input: string;
|
|
3127
|
-
tbl_type: string;
|
|
3128
|
-
row_label_map: Json;
|
|
3129
3133
|
replace_labels?: boolean;
|
|
3134
|
+
row_label_map: Json;
|
|
3135
|
+
tbl_type: string;
|
|
3130
3136
|
};
|
|
3131
3137
|
Returns: undefined;
|
|
3132
3138
|
};
|
|
3133
3139
|
update_org_metadata: {
|
|
3134
3140
|
Args: {
|
|
3135
|
-
org_id_input: string;
|
|
3136
3141
|
key_input?: string;
|
|
3142
|
+
org_id_input: string;
|
|
3137
3143
|
value_input?: Json;
|
|
3138
3144
|
};
|
|
3139
3145
|
Returns: undefined;
|
|
@@ -3141,21 +3147,30 @@ export type Database = {
|
|
|
3141
3147
|
update_override_chat_access: {
|
|
3142
3148
|
Args: {
|
|
3143
3149
|
org_id_input: string;
|
|
3144
|
-
row_properties_map: Json;
|
|
3145
3150
|
replace_properties?: boolean;
|
|
3151
|
+
row_properties_map: Json;
|
|
3146
3152
|
};
|
|
3147
3153
|
Returns: undefined;
|
|
3148
3154
|
};
|
|
3149
3155
|
update_rule_log_entry: {
|
|
3150
3156
|
Args: {
|
|
3151
|
-
log_id_input: string;
|
|
3152
3157
|
action_id?: string;
|
|
3153
3158
|
action_update?: Json;
|
|
3154
3159
|
conditions_update?: Json;
|
|
3160
|
+
log_id_input: string;
|
|
3155
3161
|
metadata_update?: Json;
|
|
3156
3162
|
};
|
|
3157
3163
|
Returns: Json;
|
|
3158
3164
|
};
|
|
3165
|
+
upsert_participants: {
|
|
3166
|
+
Args: {
|
|
3167
|
+
chat_id_input: string;
|
|
3168
|
+
org_id_input: string;
|
|
3169
|
+
org_phone_input: string;
|
|
3170
|
+
participants_input: Json;
|
|
3171
|
+
};
|
|
3172
|
+
Returns: undefined;
|
|
3173
|
+
};
|
|
3159
3174
|
};
|
|
3160
3175
|
Enums: {
|
|
3161
3176
|
enum_ai_context_type: "faq" | "document";
|
|
@@ -3164,7 +3179,7 @@ export type Database = {
|
|
|
3164
3179
|
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
3165
3180
|
enum_credit_transaction_type: "credit" | "debit";
|
|
3166
3181
|
enum_integration_name: "org.created" | "org.updated" | "org.member.created" | "org.member.updated" | "org.subscription.trial_will_end" | "chat.created" | "chat.updated" | "chat.notification.created" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted" | "org.integrations.updated" | "message.flagged" | "message.unflagged" | "chat.label.updated" | "reaction.added" | "message.ticket.attached" | "org.phone.created" | "org.phone.connected" | "org.phone.disconnected" | "org.phone.qr" | "org.phone.updated" | "note.created" | "chat.custom_properties.updated";
|
|
3167
|
-
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk" | "
|
|
3182
|
+
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk" | "gsheets";
|
|
3168
3183
|
enum_member_role: "admin" | "member";
|
|
3169
3184
|
};
|
|
3170
3185
|
CompositeTypes: {
|
|
@@ -3184,6 +3199,7 @@ export type Database = {
|
|
|
3184
3199
|
owner: string | null;
|
|
3185
3200
|
owner_id: string | null;
|
|
3186
3201
|
public: boolean | null;
|
|
3202
|
+
type: Database["storage"]["Enums"]["buckettype"];
|
|
3187
3203
|
updated_at: string | null;
|
|
3188
3204
|
};
|
|
3189
3205
|
Insert: {
|
|
@@ -3196,6 +3212,7 @@ export type Database = {
|
|
|
3196
3212
|
owner?: string | null;
|
|
3197
3213
|
owner_id?: string | null;
|
|
3198
3214
|
public?: boolean | null;
|
|
3215
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
3199
3216
|
updated_at?: string | null;
|
|
3200
3217
|
};
|
|
3201
3218
|
Update: {
|
|
@@ -3208,10 +3225,112 @@ export type Database = {
|
|
|
3208
3225
|
owner?: string | null;
|
|
3209
3226
|
owner_id?: string | null;
|
|
3210
3227
|
public?: boolean | null;
|
|
3228
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
3211
3229
|
updated_at?: string | null;
|
|
3212
3230
|
};
|
|
3213
3231
|
Relationships: [];
|
|
3214
3232
|
};
|
|
3233
|
+
buckets_analytics: {
|
|
3234
|
+
Row: {
|
|
3235
|
+
created_at: string;
|
|
3236
|
+
format: string;
|
|
3237
|
+
id: string;
|
|
3238
|
+
type: Database["storage"]["Enums"]["buckettype"];
|
|
3239
|
+
updated_at: string;
|
|
3240
|
+
};
|
|
3241
|
+
Insert: {
|
|
3242
|
+
created_at?: string;
|
|
3243
|
+
format?: string;
|
|
3244
|
+
id: string;
|
|
3245
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
3246
|
+
updated_at?: string;
|
|
3247
|
+
};
|
|
3248
|
+
Update: {
|
|
3249
|
+
created_at?: string;
|
|
3250
|
+
format?: string;
|
|
3251
|
+
id?: string;
|
|
3252
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
3253
|
+
updated_at?: string;
|
|
3254
|
+
};
|
|
3255
|
+
Relationships: [];
|
|
3256
|
+
};
|
|
3257
|
+
iceberg_namespaces: {
|
|
3258
|
+
Row: {
|
|
3259
|
+
bucket_id: string;
|
|
3260
|
+
created_at: string;
|
|
3261
|
+
id: string;
|
|
3262
|
+
name: string;
|
|
3263
|
+
updated_at: string;
|
|
3264
|
+
};
|
|
3265
|
+
Insert: {
|
|
3266
|
+
bucket_id: string;
|
|
3267
|
+
created_at?: string;
|
|
3268
|
+
id?: string;
|
|
3269
|
+
name: string;
|
|
3270
|
+
updated_at?: string;
|
|
3271
|
+
};
|
|
3272
|
+
Update: {
|
|
3273
|
+
bucket_id?: string;
|
|
3274
|
+
created_at?: string;
|
|
3275
|
+
id?: string;
|
|
3276
|
+
name?: string;
|
|
3277
|
+
updated_at?: string;
|
|
3278
|
+
};
|
|
3279
|
+
Relationships: [
|
|
3280
|
+
{
|
|
3281
|
+
foreignKeyName: "iceberg_namespaces_bucket_id_fkey";
|
|
3282
|
+
columns: ["bucket_id"];
|
|
3283
|
+
isOneToOne: false;
|
|
3284
|
+
referencedRelation: "buckets_analytics";
|
|
3285
|
+
referencedColumns: ["id"];
|
|
3286
|
+
}
|
|
3287
|
+
];
|
|
3288
|
+
};
|
|
3289
|
+
iceberg_tables: {
|
|
3290
|
+
Row: {
|
|
3291
|
+
bucket_id: string;
|
|
3292
|
+
created_at: string;
|
|
3293
|
+
id: string;
|
|
3294
|
+
location: string;
|
|
3295
|
+
name: string;
|
|
3296
|
+
namespace_id: string;
|
|
3297
|
+
updated_at: string;
|
|
3298
|
+
};
|
|
3299
|
+
Insert: {
|
|
3300
|
+
bucket_id: string;
|
|
3301
|
+
created_at?: string;
|
|
3302
|
+
id?: string;
|
|
3303
|
+
location: string;
|
|
3304
|
+
name: string;
|
|
3305
|
+
namespace_id: string;
|
|
3306
|
+
updated_at?: string;
|
|
3307
|
+
};
|
|
3308
|
+
Update: {
|
|
3309
|
+
bucket_id?: string;
|
|
3310
|
+
created_at?: string;
|
|
3311
|
+
id?: string;
|
|
3312
|
+
location?: string;
|
|
3313
|
+
name?: string;
|
|
3314
|
+
namespace_id?: string;
|
|
3315
|
+
updated_at?: string;
|
|
3316
|
+
};
|
|
3317
|
+
Relationships: [
|
|
3318
|
+
{
|
|
3319
|
+
foreignKeyName: "iceberg_tables_bucket_id_fkey";
|
|
3320
|
+
columns: ["bucket_id"];
|
|
3321
|
+
isOneToOne: false;
|
|
3322
|
+
referencedRelation: "buckets_analytics";
|
|
3323
|
+
referencedColumns: ["id"];
|
|
3324
|
+
},
|
|
3325
|
+
{
|
|
3326
|
+
foreignKeyName: "iceberg_tables_namespace_id_fkey";
|
|
3327
|
+
columns: ["namespace_id"];
|
|
3328
|
+
isOneToOne: false;
|
|
3329
|
+
referencedRelation: "iceberg_namespaces";
|
|
3330
|
+
referencedColumns: ["id"];
|
|
3331
|
+
}
|
|
3332
|
+
];
|
|
3333
|
+
};
|
|
3215
3334
|
migrations: {
|
|
3216
3335
|
Row: {
|
|
3217
3336
|
executed_at: string | null;
|
|
@@ -3239,6 +3358,7 @@ export type Database = {
|
|
|
3239
3358
|
created_at: string | null;
|
|
3240
3359
|
id: string;
|
|
3241
3360
|
last_accessed_at: string | null;
|
|
3361
|
+
level: number | null;
|
|
3242
3362
|
metadata: Json | null;
|
|
3243
3363
|
name: string | null;
|
|
3244
3364
|
owner: string | null;
|
|
@@ -3253,6 +3373,7 @@ export type Database = {
|
|
|
3253
3373
|
created_at?: string | null;
|
|
3254
3374
|
id?: string;
|
|
3255
3375
|
last_accessed_at?: string | null;
|
|
3376
|
+
level?: number | null;
|
|
3256
3377
|
metadata?: Json | null;
|
|
3257
3378
|
name?: string | null;
|
|
3258
3379
|
owner?: string | null;
|
|
@@ -3267,6 +3388,7 @@ export type Database = {
|
|
|
3267
3388
|
created_at?: string | null;
|
|
3268
3389
|
id?: string;
|
|
3269
3390
|
last_accessed_at?: string | null;
|
|
3391
|
+
level?: number | null;
|
|
3270
3392
|
metadata?: Json | null;
|
|
3271
3393
|
name?: string | null;
|
|
3272
3394
|
owner?: string | null;
|
|
@@ -3286,6 +3408,38 @@ export type Database = {
|
|
|
3286
3408
|
}
|
|
3287
3409
|
];
|
|
3288
3410
|
};
|
|
3411
|
+
prefixes: {
|
|
3412
|
+
Row: {
|
|
3413
|
+
bucket_id: string;
|
|
3414
|
+
created_at: string | null;
|
|
3415
|
+
level: number;
|
|
3416
|
+
name: string;
|
|
3417
|
+
updated_at: string | null;
|
|
3418
|
+
};
|
|
3419
|
+
Insert: {
|
|
3420
|
+
bucket_id: string;
|
|
3421
|
+
created_at?: string | null;
|
|
3422
|
+
level?: number;
|
|
3423
|
+
name: string;
|
|
3424
|
+
updated_at?: string | null;
|
|
3425
|
+
};
|
|
3426
|
+
Update: {
|
|
3427
|
+
bucket_id?: string;
|
|
3428
|
+
created_at?: string | null;
|
|
3429
|
+
level?: number;
|
|
3430
|
+
name?: string;
|
|
3431
|
+
updated_at?: string | null;
|
|
3432
|
+
};
|
|
3433
|
+
Relationships: [
|
|
3434
|
+
{
|
|
3435
|
+
foreignKeyName: "prefixes_bucketId_fkey";
|
|
3436
|
+
columns: ["bucket_id"];
|
|
3437
|
+
isOneToOne: false;
|
|
3438
|
+
referencedRelation: "buckets";
|
|
3439
|
+
referencedColumns: ["id"];
|
|
3440
|
+
}
|
|
3441
|
+
];
|
|
3442
|
+
};
|
|
3289
3443
|
s3_multipart_uploads: {
|
|
3290
3444
|
Row: {
|
|
3291
3445
|
bucket_id: string;
|
|
@@ -3389,15 +3543,36 @@ export type Database = {
|
|
|
3389
3543
|
[_ in never]: never;
|
|
3390
3544
|
};
|
|
3391
3545
|
Functions: {
|
|
3546
|
+
add_prefixes: {
|
|
3547
|
+
Args: {
|
|
3548
|
+
_bucket_id: string;
|
|
3549
|
+
_name: string;
|
|
3550
|
+
};
|
|
3551
|
+
Returns: undefined;
|
|
3552
|
+
};
|
|
3392
3553
|
can_insert_object: {
|
|
3393
3554
|
Args: {
|
|
3394
3555
|
bucketid: string;
|
|
3556
|
+
metadata: Json;
|
|
3395
3557
|
name: string;
|
|
3396
3558
|
owner: string;
|
|
3397
|
-
metadata: Json;
|
|
3398
3559
|
};
|
|
3399
3560
|
Returns: undefined;
|
|
3400
3561
|
};
|
|
3562
|
+
delete_leaf_prefixes: {
|
|
3563
|
+
Args: {
|
|
3564
|
+
bucket_ids: string[];
|
|
3565
|
+
names: string[];
|
|
3566
|
+
};
|
|
3567
|
+
Returns: undefined;
|
|
3568
|
+
};
|
|
3569
|
+
delete_prefix: {
|
|
3570
|
+
Args: {
|
|
3571
|
+
_bucket_id: string;
|
|
3572
|
+
_name: string;
|
|
3573
|
+
};
|
|
3574
|
+
Returns: boolean;
|
|
3575
|
+
};
|
|
3401
3576
|
extension: {
|
|
3402
3577
|
Args: {
|
|
3403
3578
|
name: string;
|
|
@@ -3416,125 +3591,212 @@ export type Database = {
|
|
|
3416
3591
|
};
|
|
3417
3592
|
Returns: string[];
|
|
3418
3593
|
};
|
|
3594
|
+
get_level: {
|
|
3595
|
+
Args: {
|
|
3596
|
+
name: string;
|
|
3597
|
+
};
|
|
3598
|
+
Returns: number;
|
|
3599
|
+
};
|
|
3600
|
+
get_prefix: {
|
|
3601
|
+
Args: {
|
|
3602
|
+
name: string;
|
|
3603
|
+
};
|
|
3604
|
+
Returns: string;
|
|
3605
|
+
};
|
|
3606
|
+
get_prefixes: {
|
|
3607
|
+
Args: {
|
|
3608
|
+
name: string;
|
|
3609
|
+
};
|
|
3610
|
+
Returns: string[];
|
|
3611
|
+
};
|
|
3419
3612
|
get_size_by_bucket: {
|
|
3420
3613
|
Args: Record<PropertyKey, never>;
|
|
3421
3614
|
Returns: {
|
|
3422
|
-
size: number;
|
|
3423
3615
|
bucket_id: string;
|
|
3616
|
+
size: number;
|
|
3424
3617
|
}[];
|
|
3425
3618
|
};
|
|
3426
3619
|
list_multipart_uploads_with_delimiter: {
|
|
3427
3620
|
Args: {
|
|
3428
3621
|
bucket_id: string;
|
|
3429
|
-
prefix_param: string;
|
|
3430
3622
|
delimiter_param: string;
|
|
3431
3623
|
max_keys?: number;
|
|
3432
3624
|
next_key_token?: string;
|
|
3433
3625
|
next_upload_token?: string;
|
|
3626
|
+
prefix_param: string;
|
|
3434
3627
|
};
|
|
3435
3628
|
Returns: {
|
|
3436
|
-
key: string;
|
|
3437
|
-
id: string;
|
|
3438
3629
|
created_at: string;
|
|
3630
|
+
id: string;
|
|
3631
|
+
key: string;
|
|
3439
3632
|
}[];
|
|
3440
3633
|
};
|
|
3441
3634
|
list_objects_with_delimiter: {
|
|
3442
3635
|
Args: {
|
|
3443
3636
|
bucket_id: string;
|
|
3444
|
-
prefix_param: string;
|
|
3445
3637
|
delimiter_param: string;
|
|
3446
3638
|
max_keys?: number;
|
|
3447
|
-
start_after?: string;
|
|
3448
3639
|
next_token?: string;
|
|
3640
|
+
prefix_param: string;
|
|
3641
|
+
start_after?: string;
|
|
3449
3642
|
};
|
|
3450
3643
|
Returns: {
|
|
3451
|
-
name: string;
|
|
3452
3644
|
id: string;
|
|
3453
3645
|
metadata: Json;
|
|
3646
|
+
name: string;
|
|
3454
3647
|
updated_at: string;
|
|
3455
3648
|
}[];
|
|
3456
3649
|
};
|
|
3650
|
+
lock_top_prefixes: {
|
|
3651
|
+
Args: {
|
|
3652
|
+
bucket_ids: string[];
|
|
3653
|
+
names: string[];
|
|
3654
|
+
};
|
|
3655
|
+
Returns: undefined;
|
|
3656
|
+
};
|
|
3457
3657
|
operation: {
|
|
3458
3658
|
Args: Record<PropertyKey, never>;
|
|
3459
3659
|
Returns: string;
|
|
3460
3660
|
};
|
|
3461
3661
|
search: {
|
|
3462
3662
|
Args: {
|
|
3463
|
-
prefix: string;
|
|
3464
3663
|
bucketname: string;
|
|
3664
|
+
levels?: number;
|
|
3465
3665
|
limits?: number;
|
|
3666
|
+
offsets?: number;
|
|
3667
|
+
prefix: string;
|
|
3668
|
+
search?: string;
|
|
3669
|
+
sortcolumn?: string;
|
|
3670
|
+
sortorder?: string;
|
|
3671
|
+
};
|
|
3672
|
+
Returns: {
|
|
3673
|
+
created_at: string;
|
|
3674
|
+
id: string;
|
|
3675
|
+
last_accessed_at: string;
|
|
3676
|
+
metadata: Json;
|
|
3677
|
+
name: string;
|
|
3678
|
+
updated_at: string;
|
|
3679
|
+
}[];
|
|
3680
|
+
};
|
|
3681
|
+
search_legacy_v1: {
|
|
3682
|
+
Args: {
|
|
3683
|
+
bucketname: string;
|
|
3466
3684
|
levels?: number;
|
|
3685
|
+
limits?: number;
|
|
3467
3686
|
offsets?: number;
|
|
3687
|
+
prefix: string;
|
|
3468
3688
|
search?: string;
|
|
3469
3689
|
sortcolumn?: string;
|
|
3470
3690
|
sortorder?: string;
|
|
3471
3691
|
};
|
|
3472
3692
|
Returns: {
|
|
3693
|
+
created_at: string;
|
|
3694
|
+
id: string;
|
|
3695
|
+
last_accessed_at: string;
|
|
3696
|
+
metadata: Json;
|
|
3473
3697
|
name: string;
|
|
3698
|
+
updated_at: string;
|
|
3699
|
+
}[];
|
|
3700
|
+
};
|
|
3701
|
+
search_v1_optimised: {
|
|
3702
|
+
Args: {
|
|
3703
|
+
bucketname: string;
|
|
3704
|
+
levels?: number;
|
|
3705
|
+
limits?: number;
|
|
3706
|
+
offsets?: number;
|
|
3707
|
+
prefix: string;
|
|
3708
|
+
search?: string;
|
|
3709
|
+
sortcolumn?: string;
|
|
3710
|
+
sortorder?: string;
|
|
3711
|
+
};
|
|
3712
|
+
Returns: {
|
|
3713
|
+
created_at: string;
|
|
3474
3714
|
id: string;
|
|
3715
|
+
last_accessed_at: string;
|
|
3716
|
+
metadata: Json;
|
|
3717
|
+
name: string;
|
|
3475
3718
|
updated_at: string;
|
|
3719
|
+
}[];
|
|
3720
|
+
};
|
|
3721
|
+
search_v2: {
|
|
3722
|
+
Args: {
|
|
3723
|
+
bucket_name: string;
|
|
3724
|
+
levels?: number;
|
|
3725
|
+
limits?: number;
|
|
3726
|
+
prefix: string;
|
|
3727
|
+
sort_column?: string;
|
|
3728
|
+
sort_column_after?: string;
|
|
3729
|
+
sort_order?: string;
|
|
3730
|
+
start_after?: string;
|
|
3731
|
+
};
|
|
3732
|
+
Returns: {
|
|
3476
3733
|
created_at: string;
|
|
3734
|
+
id: string;
|
|
3735
|
+
key: string;
|
|
3477
3736
|
last_accessed_at: string;
|
|
3478
3737
|
metadata: Json;
|
|
3738
|
+
name: string;
|
|
3739
|
+
updated_at: string;
|
|
3479
3740
|
}[];
|
|
3480
3741
|
};
|
|
3481
3742
|
};
|
|
3482
3743
|
Enums: {
|
|
3483
|
-
|
|
3744
|
+
buckettype: "STANDARD" | "ANALYTICS";
|
|
3484
3745
|
};
|
|
3485
3746
|
CompositeTypes: {
|
|
3486
3747
|
[_ in never]: never;
|
|
3487
3748
|
};
|
|
3488
3749
|
};
|
|
3489
3750
|
};
|
|
3490
|
-
type
|
|
3751
|
+
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
|
|
3752
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
|
|
3491
3753
|
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
3492
|
-
schema: keyof
|
|
3754
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3493
3755
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3494
|
-
schema: keyof
|
|
3495
|
-
} ? keyof (
|
|
3496
|
-
schema: keyof
|
|
3497
|
-
} ? (
|
|
3756
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3757
|
+
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3758
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3759
|
+
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3498
3760
|
Row: infer R;
|
|
3499
3761
|
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
3500
3762
|
Row: infer R;
|
|
3501
3763
|
} ? R : never : never;
|
|
3502
3764
|
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
3503
|
-
schema: keyof
|
|
3765
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3504
3766
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3505
|
-
schema: keyof
|
|
3506
|
-
} ? keyof
|
|
3507
|
-
schema: keyof
|
|
3508
|
-
} ?
|
|
3767
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3768
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3769
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3770
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3509
3771
|
Insert: infer I;
|
|
3510
3772
|
} ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3511
3773
|
Insert: infer I;
|
|
3512
3774
|
} ? I : never : never;
|
|
3513
3775
|
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
3514
|
-
schema: keyof
|
|
3776
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3515
3777
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3516
|
-
schema: keyof
|
|
3517
|
-
} ? keyof
|
|
3518
|
-
schema: keyof
|
|
3519
|
-
} ?
|
|
3778
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3779
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3780
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3781
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3520
3782
|
Update: infer U;
|
|
3521
3783
|
} ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3522
3784
|
Update: infer U;
|
|
3523
3785
|
} ? U : never : never;
|
|
3524
3786
|
export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
|
|
3525
|
-
schema: keyof
|
|
3787
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3526
3788
|
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
3527
|
-
schema: keyof
|
|
3528
|
-
} ? keyof
|
|
3529
|
-
schema: keyof
|
|
3530
|
-
} ?
|
|
3789
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3790
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
3791
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3792
|
+
} ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
|
|
3531
3793
|
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
3532
|
-
schema: keyof
|
|
3794
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3533
3795
|
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
3534
|
-
schema: keyof
|
|
3535
|
-
} ? keyof
|
|
3536
|
-
schema: keyof
|
|
3537
|
-
} ?
|
|
3796
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3797
|
+
} ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
3798
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3799
|
+
} ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
3538
3800
|
export declare const Constants: {
|
|
3539
3801
|
readonly internal: {
|
|
3540
3802
|
readonly Enums: {};
|
|
@@ -3547,12 +3809,14 @@ export declare const Constants: {
|
|
|
3547
3809
|
readonly enum_chat_tickets_status: readonly ["open", "inprogress", "closed", "archived"];
|
|
3548
3810
|
readonly enum_credit_transaction_type: readonly ["credit", "debit"];
|
|
3549
3811
|
readonly enum_integration_name: readonly ["org.created", "org.updated", "org.member.created", "org.member.updated", "org.subscription.trial_will_end", "chat.created", "chat.updated", "chat.notification.created", "message.created", "message.updated", "message.deleted", "message.ack.updated", "reaction.created", "reaction.updated", "ticket.created", "ticket.updated", "ticket.deleted", "org.integrations.updated", "message.flagged", "message.unflagged", "chat.label.updated", "reaction.added", "message.ticket.attached", "org.phone.created", "org.phone.connected", "org.phone.disconnected", "org.phone.qr", "org.phone.updated", "note.created", "chat.custom_properties.updated"];
|
|
3550
|
-
readonly enum_integration_type: readonly ["zapier", "pabbly", "api", "webhook", "hubspot", "freshdesk", "slack", "jira", "salesforce", "zohodesk", "
|
|
3812
|
+
readonly enum_integration_type: readonly ["zapier", "pabbly", "api", "webhook", "hubspot", "freshdesk", "slack", "jira", "salesforce", "zohodesk", "gsheets"];
|
|
3551
3813
|
readonly enum_member_role: readonly ["admin", "member"];
|
|
3552
3814
|
};
|
|
3553
3815
|
};
|
|
3554
3816
|
readonly storage: {
|
|
3555
|
-
readonly Enums: {
|
|
3817
|
+
readonly Enums: {
|
|
3818
|
+
readonly buckettype: readonly ["STANDARD", "ANALYTICS"];
|
|
3819
|
+
};
|
|
3556
3820
|
};
|
|
3557
3821
|
};
|
|
3558
3822
|
export {};
|