@periskope/types 0.6.371 → 0.6.373
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/supabase.types.d.ts +361 -103
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/supabase.types.js +3 -1
- package/mod_json_type.ps1 +108 -108
- package/mod_json_type.sh +22 -22
- package/package.json +19 -19
- package/src/index.ts +4 -4
- package/src/object.types.ts +109 -109
- package/src/rules.types.ts +2625 -2625
- package/src/supabase.types.ts +356 -105
- package/src/types.ts +1608 -1608
- package/src/workflows.types.ts +955 -955
- package/tsconfig.json +37 -37
- package/update_package.ps1 +21 -21
- package/tsconfig.tsbuildinfo +0 -1
package/dist/supabase.types.d.ts
CHANGED
|
@@ -2654,8 +2654,8 @@ export type Database = {
|
|
|
2654
2654
|
};
|
|
2655
2655
|
check_feature_flag_access: {
|
|
2656
2656
|
Args: {
|
|
2657
|
-
org_id_input: string;
|
|
2658
2657
|
feature_input: string;
|
|
2658
|
+
org_id_input: string;
|
|
2659
2659
|
};
|
|
2660
2660
|
Returns: boolean;
|
|
2661
2661
|
};
|
|
@@ -2664,8 +2664,8 @@ export type Database = {
|
|
|
2664
2664
|
chat_properties_row: Database["public"]["Tables"]["tbl_chat_properties"]["Row"];
|
|
2665
2665
|
};
|
|
2666
2666
|
Returns: {
|
|
2667
|
-
result_chat_id: string;
|
|
2668
2667
|
new_chat_access: Json;
|
|
2668
|
+
result_chat_id: string;
|
|
2669
2669
|
}[];
|
|
2670
2670
|
};
|
|
2671
2671
|
custom_access_token_hook: {
|
|
@@ -2676,23 +2676,23 @@ export type Database = {
|
|
|
2676
2676
|
};
|
|
2677
2677
|
delete_org_data_in_batches: {
|
|
2678
2678
|
Args: {
|
|
2679
|
-
org_id_input: string;
|
|
2680
|
-
table_names_input: string[];
|
|
2681
2679
|
batch_size_input: number;
|
|
2682
2680
|
loop_size_input: number;
|
|
2681
|
+
org_id_input: string;
|
|
2682
|
+
table_names_input: string[];
|
|
2683
2683
|
};
|
|
2684
2684
|
Returns: {
|
|
2685
2685
|
deleted_org_id: string;
|
|
2686
|
+
remaining_rows: number;
|
|
2686
2687
|
table_name: string;
|
|
2687
2688
|
total_deleted_rows: number;
|
|
2688
|
-
remaining_rows: number;
|
|
2689
2689
|
}[];
|
|
2690
2690
|
};
|
|
2691
2691
|
gen_id: {
|
|
2692
2692
|
Args: {
|
|
2693
|
+
alphabet?: string;
|
|
2693
2694
|
prefix: string;
|
|
2694
2695
|
size?: number;
|
|
2695
|
-
alphabet?: string;
|
|
2696
2696
|
};
|
|
2697
2697
|
Returns: string;
|
|
2698
2698
|
};
|
|
@@ -2704,10 +2704,10 @@ export type Database = {
|
|
|
2704
2704
|
};
|
|
2705
2705
|
generate_access_token: {
|
|
2706
2706
|
Args: {
|
|
2707
|
+
metadata_input?: Json;
|
|
2707
2708
|
name_input?: string;
|
|
2708
|
-
type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
2709
2709
|
org_id_input?: string;
|
|
2710
|
-
|
|
2710
|
+
type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
2711
2711
|
};
|
|
2712
2712
|
Returns: Json;
|
|
2713
2713
|
};
|
|
@@ -2722,15 +2722,15 @@ export type Database = {
|
|
|
2722
2722
|
};
|
|
2723
2723
|
get_chat_labels_data: {
|
|
2724
2724
|
Args: {
|
|
2725
|
-
org_id_input: string;
|
|
2726
2725
|
chat_ids_input?: string[];
|
|
2726
|
+
org_id_input: string;
|
|
2727
2727
|
};
|
|
2728
2728
|
Returns: Json[];
|
|
2729
2729
|
};
|
|
2730
2730
|
get_chat_properties_by_chat_ids: {
|
|
2731
2731
|
Args: {
|
|
2732
|
-
org_id_input: string;
|
|
2733
2732
|
chat_id_input?: string[];
|
|
2733
|
+
org_id_input: string;
|
|
2734
2734
|
};
|
|
2735
2735
|
Returns: Json;
|
|
2736
2736
|
};
|
|
@@ -2752,12 +2752,12 @@ export type Database = {
|
|
|
2752
2752
|
};
|
|
2753
2753
|
get_chats: {
|
|
2754
2754
|
Args: {
|
|
2755
|
-
org_id_input: string;
|
|
2756
|
-
chat_id_input?: string[];
|
|
2757
|
-
with_members?: boolean;
|
|
2758
|
-
last_updated_at?: string;
|
|
2759
2755
|
batch_limit?: number;
|
|
2760
2756
|
batch_offset?: number;
|
|
2757
|
+
chat_id_input?: string[];
|
|
2758
|
+
last_updated_at?: string;
|
|
2759
|
+
org_id_input: string;
|
|
2760
|
+
with_members?: boolean;
|
|
2761
2761
|
};
|
|
2762
2762
|
Returns: Json;
|
|
2763
2763
|
};
|
|
@@ -2771,48 +2771,48 @@ export type Database = {
|
|
|
2771
2771
|
};
|
|
2772
2772
|
get_contacts: {
|
|
2773
2773
|
Args: {
|
|
2774
|
-
org_id_input: string;
|
|
2775
2774
|
contact_ids_input?: string[];
|
|
2776
|
-
sync_phone_contacts?: boolean;
|
|
2777
|
-
search_input?: string;
|
|
2778
|
-
label_ids_input?: string[];
|
|
2779
2775
|
is_internal_input?: boolean;
|
|
2780
|
-
|
|
2776
|
+
label_ids_input?: string[];
|
|
2781
2777
|
limit_input?: number;
|
|
2778
|
+
offset_input?: number;
|
|
2779
|
+
org_id_input: string;
|
|
2780
|
+
search_input?: string;
|
|
2781
|
+
sync_phone_contacts?: boolean;
|
|
2782
2782
|
};
|
|
2783
2783
|
Returns: Json;
|
|
2784
2784
|
};
|
|
2785
2785
|
get_export_chats_data: {
|
|
2786
2786
|
Args: {
|
|
2787
|
-
org_id_input: string;
|
|
2788
2787
|
chat_id_input?: string[];
|
|
2789
2788
|
chat_type_input?: string;
|
|
2790
|
-
start_date_input?: string;
|
|
2791
2789
|
end_date_input?: string;
|
|
2792
2790
|
limit_input?: number;
|
|
2793
2791
|
offset_input?: number;
|
|
2792
|
+
org_id_input: string;
|
|
2793
|
+
start_date_input?: string;
|
|
2794
2794
|
};
|
|
2795
2795
|
Returns: Json;
|
|
2796
2796
|
};
|
|
2797
2797
|
get_export_members_data: {
|
|
2798
2798
|
Args: {
|
|
2799
|
-
org_id_input: string;
|
|
2800
2799
|
chat_id_input?: string[];
|
|
2801
|
-
offset_input?: number;
|
|
2802
2800
|
limit_input?: number;
|
|
2801
|
+
offset_input?: number;
|
|
2802
|
+
org_id_input: string;
|
|
2803
2803
|
};
|
|
2804
2804
|
Returns: Json;
|
|
2805
2805
|
};
|
|
2806
2806
|
get_export_tickets_data: {
|
|
2807
2807
|
Args: {
|
|
2808
|
+
end_date_input?: string;
|
|
2809
|
+
limit_input?: number;
|
|
2810
|
+
offset_input?: number;
|
|
2808
2811
|
org_id_input: string;
|
|
2809
|
-
|
|
2812
|
+
priority_input?: number;
|
|
2810
2813
|
start_date_input?: string;
|
|
2811
|
-
end_date_input?: string;
|
|
2812
2814
|
status_input?: Database["public"]["Enums"]["enum_chat_tickets_status"];
|
|
2813
|
-
|
|
2814
|
-
offset_input?: number;
|
|
2815
|
-
limit_input?: number;
|
|
2815
|
+
ticket_id_input?: string[];
|
|
2816
2816
|
};
|
|
2817
2817
|
Returns: Json;
|
|
2818
2818
|
};
|
|
@@ -2824,9 +2824,9 @@ export type Database = {
|
|
|
2824
2824
|
};
|
|
2825
2825
|
get_formatted_cp_values: {
|
|
2826
2826
|
Args: {
|
|
2827
|
-
org_id_input: string;
|
|
2828
|
-
custom_properties_value_input?: Json;
|
|
2829
2827
|
cp_type?: string;
|
|
2828
|
+
custom_properties_value_input?: Json;
|
|
2829
|
+
org_id_input: string;
|
|
2830
2830
|
rules_format?: boolean;
|
|
2831
2831
|
};
|
|
2832
2832
|
Returns: Json;
|
|
@@ -2839,8 +2839,8 @@ export type Database = {
|
|
|
2839
2839
|
};
|
|
2840
2840
|
get_message_rule_info: {
|
|
2841
2841
|
Args: {
|
|
2842
|
-
message_id_input: string;
|
|
2843
2842
|
chat_id_input: string;
|
|
2843
|
+
message_id_input: string;
|
|
2844
2844
|
org_id_input: string;
|
|
2845
2845
|
org_phone_input: string;
|
|
2846
2846
|
sender_id_input: string;
|
|
@@ -2850,19 +2850,19 @@ export type Database = {
|
|
|
2850
2850
|
get_message_workflow_info: {
|
|
2851
2851
|
Args: {
|
|
2852
2852
|
chat_id_input: string;
|
|
2853
|
+
message_id_input: string;
|
|
2853
2854
|
org_id_input: string;
|
|
2854
2855
|
org_phone_input: string;
|
|
2855
|
-
message_id_input: string;
|
|
2856
2856
|
sender_id_input: string;
|
|
2857
2857
|
};
|
|
2858
2858
|
Returns: Json;
|
|
2859
2859
|
};
|
|
2860
2860
|
get_messages_notifications_reactions: {
|
|
2861
2861
|
Args: {
|
|
2862
|
-
org_id_input: string;
|
|
2863
2862
|
chat_id_input?: string[];
|
|
2864
2863
|
limit_input?: number;
|
|
2865
2864
|
offset_input?: number;
|
|
2865
|
+
org_id_input: string;
|
|
2866
2866
|
};
|
|
2867
2867
|
Returns: Json;
|
|
2868
2868
|
};
|
|
@@ -2887,58 +2887,58 @@ export type Database = {
|
|
|
2887
2887
|
};
|
|
2888
2888
|
get_phone_chat_map: {
|
|
2889
2889
|
Args: {
|
|
2890
|
-
org_id_input: string;
|
|
2891
2890
|
chat_ids_input: string[];
|
|
2891
|
+
org_id_input: string;
|
|
2892
2892
|
};
|
|
2893
2893
|
Returns: Json;
|
|
2894
2894
|
};
|
|
2895
2895
|
get_reaction_rule_info: {
|
|
2896
2896
|
Args: {
|
|
2897
|
-
reaction_id_input: string;
|
|
2898
|
-
message_id_input: string;
|
|
2899
2897
|
chat_id_input: string;
|
|
2898
|
+
message_id_input: string;
|
|
2900
2899
|
org_id_input: string;
|
|
2901
2900
|
org_phone_input: string;
|
|
2901
|
+
reaction_id_input: string;
|
|
2902
2902
|
sender_id_input: string;
|
|
2903
2903
|
};
|
|
2904
2904
|
Returns: Json;
|
|
2905
2905
|
};
|
|
2906
2906
|
get_relevant_context: {
|
|
2907
2907
|
Args: {
|
|
2908
|
+
confidence_score_input?: number;
|
|
2908
2909
|
org_id_input: string;
|
|
2909
2910
|
query_embedding_input: string;
|
|
2910
|
-
confidence_score_input?: number;
|
|
2911
2911
|
};
|
|
2912
2912
|
Returns: Json;
|
|
2913
2913
|
};
|
|
2914
2914
|
get_sender_workflow_info: {
|
|
2915
2915
|
Args: {
|
|
2916
2916
|
chat_id_input: string;
|
|
2917
|
+
contact_id_input: string;
|
|
2917
2918
|
org_id_input: string;
|
|
2918
2919
|
org_phone_input: string;
|
|
2919
|
-
contact_id_input: string;
|
|
2920
2920
|
};
|
|
2921
2921
|
Returns: Json;
|
|
2922
2922
|
};
|
|
2923
2923
|
get_task_rule_info: {
|
|
2924
2924
|
Args: {
|
|
2925
|
-
task_id_input: string;
|
|
2926
|
-
task_type_input: string;
|
|
2927
|
-
org_id_input: string;
|
|
2928
2925
|
chat_id_input?: string;
|
|
2926
|
+
message_id_input?: string;
|
|
2927
|
+
org_id_input: string;
|
|
2929
2928
|
org_phone_input?: string;
|
|
2930
2929
|
sender_id_input?: string;
|
|
2930
|
+
task_id_input: string;
|
|
2931
|
+
task_type_input: string;
|
|
2931
2932
|
ticket_id_input?: string;
|
|
2932
|
-
message_id_input?: string;
|
|
2933
2933
|
unique_message_id_input?: string;
|
|
2934
2934
|
};
|
|
2935
2935
|
Returns: Json;
|
|
2936
2936
|
};
|
|
2937
2937
|
get_ticket_info: {
|
|
2938
2938
|
Args: {
|
|
2939
|
-
ticket_id_input?: string;
|
|
2940
|
-
org_id_input?: string;
|
|
2941
2939
|
chat_id_input?: string;
|
|
2940
|
+
org_id_input?: string;
|
|
2941
|
+
ticket_id_input?: string;
|
|
2942
2942
|
unique_message_id_input?: string;
|
|
2943
2943
|
with_attached_messages?: boolean;
|
|
2944
2944
|
};
|
|
@@ -2946,20 +2946,20 @@ export type Database = {
|
|
|
2946
2946
|
};
|
|
2947
2947
|
get_ticket_rule_info: {
|
|
2948
2948
|
Args: {
|
|
2949
|
-
ticket_id_input: string;
|
|
2950
|
-
unique_message_id_input: string;
|
|
2951
2949
|
chat_id_input: string;
|
|
2952
2950
|
org_id_input: string;
|
|
2951
|
+
ticket_id_input: string;
|
|
2952
|
+
unique_message_id_input: string;
|
|
2953
2953
|
};
|
|
2954
2954
|
Returns: Json;
|
|
2955
2955
|
};
|
|
2956
2956
|
get_tickets: {
|
|
2957
2957
|
Args: {
|
|
2958
|
-
org_id_input: string;
|
|
2959
|
-
ticket_id_input?: string[];
|
|
2960
|
-
last_updated_at?: string;
|
|
2961
2958
|
batch_limit?: number;
|
|
2962
2959
|
batch_offset?: number;
|
|
2960
|
+
last_updated_at?: string;
|
|
2961
|
+
org_id_input: string;
|
|
2962
|
+
ticket_id_input?: string[];
|
|
2963
2963
|
};
|
|
2964
2964
|
Returns: Json;
|
|
2965
2965
|
};
|
|
@@ -2973,29 +2973,29 @@ export type Database = {
|
|
|
2973
2973
|
};
|
|
2974
2974
|
refresh_chat_properties: {
|
|
2975
2975
|
Args: {
|
|
2976
|
-
org_id_input: string;
|
|
2977
2976
|
chat_id_input?: string;
|
|
2977
|
+
org_id_input: string;
|
|
2978
2978
|
};
|
|
2979
2979
|
Returns: undefined;
|
|
2980
2980
|
};
|
|
2981
2981
|
update_chat_properties: {
|
|
2982
2982
|
Args: {
|
|
2983
|
-
column_name: string;
|
|
2984
|
-
org_id_input: string;
|
|
2985
2983
|
chat_id_input: string[];
|
|
2984
|
+
column_name: string;
|
|
2986
2985
|
column_value_input?: string;
|
|
2987
2986
|
key_input?: string;
|
|
2987
|
+
org_id_input: string;
|
|
2988
2988
|
value_input?: Json;
|
|
2989
2989
|
};
|
|
2990
2990
|
Returns: undefined;
|
|
2991
2991
|
};
|
|
2992
2992
|
update_chat_unread_count: {
|
|
2993
2993
|
Args: {
|
|
2994
|
-
org_id_input: string;
|
|
2995
2994
|
chat_id_input: string[];
|
|
2996
|
-
sync_unread_count?: boolean;
|
|
2997
2995
|
email_input?: string;
|
|
2996
|
+
org_id_input: string;
|
|
2998
2997
|
org_phone_input?: string;
|
|
2998
|
+
sync_unread_count?: boolean;
|
|
2999
2999
|
};
|
|
3000
3000
|
Returns: {
|
|
3001
3001
|
archived: boolean | null;
|
|
@@ -3032,21 +3032,21 @@ export type Database = {
|
|
|
3032
3032
|
update_custom_properties: {
|
|
3033
3033
|
Args: {
|
|
3034
3034
|
org_id_input: string;
|
|
3035
|
-
row_properties_map: Json;
|
|
3036
3035
|
replace_properties?: boolean;
|
|
3036
|
+
row_properties_map: Json;
|
|
3037
3037
|
};
|
|
3038
3038
|
Returns: undefined;
|
|
3039
3039
|
};
|
|
3040
3040
|
update_flag: {
|
|
3041
3041
|
Args: {
|
|
3042
|
-
|
|
3042
|
+
chat_id_input?: string;
|
|
3043
3043
|
flag_metadata_input: Json;
|
|
3044
3044
|
flag_status_input?: boolean;
|
|
3045
|
-
|
|
3046
|
-
|
|
3045
|
+
full_update?: boolean;
|
|
3046
|
+
org_id_input: string;
|
|
3047
3047
|
org_phone_input?: string;
|
|
3048
3048
|
replace?: boolean;
|
|
3049
|
-
|
|
3049
|
+
unique_message_id_input?: string;
|
|
3050
3050
|
};
|
|
3051
3051
|
Returns: {
|
|
3052
3052
|
ack: string | null;
|
|
@@ -3105,29 +3105,29 @@ export type Database = {
|
|
|
3105
3105
|
};
|
|
3106
3106
|
update_jsonb_column: {
|
|
3107
3107
|
Args: {
|
|
3108
|
-
table_name_input: string;
|
|
3109
3108
|
column_name_input: string;
|
|
3110
3109
|
id_name_input: string;
|
|
3111
3110
|
id_value_input: string;
|
|
3112
3111
|
json_input: Json;
|
|
3113
|
-
replace_input?: boolean;
|
|
3114
3112
|
org_id_input?: string;
|
|
3113
|
+
replace_input?: boolean;
|
|
3114
|
+
table_name_input: string;
|
|
3115
3115
|
};
|
|
3116
3116
|
Returns: undefined;
|
|
3117
3117
|
};
|
|
3118
3118
|
update_labels: {
|
|
3119
3119
|
Args: {
|
|
3120
3120
|
org_id_input: string;
|
|
3121
|
-
tbl_type: string;
|
|
3122
|
-
row_label_map: Json;
|
|
3123
3121
|
replace_labels?: boolean;
|
|
3122
|
+
row_label_map: Json;
|
|
3123
|
+
tbl_type: string;
|
|
3124
3124
|
};
|
|
3125
3125
|
Returns: undefined;
|
|
3126
3126
|
};
|
|
3127
3127
|
update_org_metadata: {
|
|
3128
3128
|
Args: {
|
|
3129
|
-
org_id_input: string;
|
|
3130
3129
|
key_input?: string;
|
|
3130
|
+
org_id_input: string;
|
|
3131
3131
|
value_input?: Json;
|
|
3132
3132
|
};
|
|
3133
3133
|
Returns: undefined;
|
|
@@ -3135,21 +3135,30 @@ export type Database = {
|
|
|
3135
3135
|
update_override_chat_access: {
|
|
3136
3136
|
Args: {
|
|
3137
3137
|
org_id_input: string;
|
|
3138
|
-
row_properties_map: Json;
|
|
3139
3138
|
replace_properties?: boolean;
|
|
3139
|
+
row_properties_map: Json;
|
|
3140
3140
|
};
|
|
3141
3141
|
Returns: undefined;
|
|
3142
3142
|
};
|
|
3143
3143
|
update_rule_log_entry: {
|
|
3144
3144
|
Args: {
|
|
3145
|
-
log_id_input: string;
|
|
3146
3145
|
action_id?: string;
|
|
3147
3146
|
action_update?: Json;
|
|
3148
3147
|
conditions_update?: Json;
|
|
3148
|
+
log_id_input: string;
|
|
3149
3149
|
metadata_update?: Json;
|
|
3150
3150
|
};
|
|
3151
3151
|
Returns: Json;
|
|
3152
3152
|
};
|
|
3153
|
+
upsert_participants: {
|
|
3154
|
+
Args: {
|
|
3155
|
+
chat_id_input: string;
|
|
3156
|
+
org_id_input: string;
|
|
3157
|
+
org_phone_input: string;
|
|
3158
|
+
participants_input: Json;
|
|
3159
|
+
};
|
|
3160
|
+
Returns: undefined;
|
|
3161
|
+
};
|
|
3153
3162
|
};
|
|
3154
3163
|
Enums: {
|
|
3155
3164
|
enum_ai_context_type: "faq" | "document";
|
|
@@ -3178,6 +3187,7 @@ export type Database = {
|
|
|
3178
3187
|
owner: string | null;
|
|
3179
3188
|
owner_id: string | null;
|
|
3180
3189
|
public: boolean | null;
|
|
3190
|
+
type: Database["storage"]["Enums"]["buckettype"];
|
|
3181
3191
|
updated_at: string | null;
|
|
3182
3192
|
};
|
|
3183
3193
|
Insert: {
|
|
@@ -3190,6 +3200,7 @@ export type Database = {
|
|
|
3190
3200
|
owner?: string | null;
|
|
3191
3201
|
owner_id?: string | null;
|
|
3192
3202
|
public?: boolean | null;
|
|
3203
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
3193
3204
|
updated_at?: string | null;
|
|
3194
3205
|
};
|
|
3195
3206
|
Update: {
|
|
@@ -3202,10 +3213,112 @@ export type Database = {
|
|
|
3202
3213
|
owner?: string | null;
|
|
3203
3214
|
owner_id?: string | null;
|
|
3204
3215
|
public?: boolean | null;
|
|
3216
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
3205
3217
|
updated_at?: string | null;
|
|
3206
3218
|
};
|
|
3207
3219
|
Relationships: [];
|
|
3208
3220
|
};
|
|
3221
|
+
buckets_analytics: {
|
|
3222
|
+
Row: {
|
|
3223
|
+
created_at: string;
|
|
3224
|
+
format: string;
|
|
3225
|
+
id: string;
|
|
3226
|
+
type: Database["storage"]["Enums"]["buckettype"];
|
|
3227
|
+
updated_at: string;
|
|
3228
|
+
};
|
|
3229
|
+
Insert: {
|
|
3230
|
+
created_at?: string;
|
|
3231
|
+
format?: string;
|
|
3232
|
+
id: string;
|
|
3233
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
3234
|
+
updated_at?: string;
|
|
3235
|
+
};
|
|
3236
|
+
Update: {
|
|
3237
|
+
created_at?: string;
|
|
3238
|
+
format?: string;
|
|
3239
|
+
id?: string;
|
|
3240
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
3241
|
+
updated_at?: string;
|
|
3242
|
+
};
|
|
3243
|
+
Relationships: [];
|
|
3244
|
+
};
|
|
3245
|
+
iceberg_namespaces: {
|
|
3246
|
+
Row: {
|
|
3247
|
+
bucket_id: string;
|
|
3248
|
+
created_at: string;
|
|
3249
|
+
id: string;
|
|
3250
|
+
name: string;
|
|
3251
|
+
updated_at: string;
|
|
3252
|
+
};
|
|
3253
|
+
Insert: {
|
|
3254
|
+
bucket_id: string;
|
|
3255
|
+
created_at?: string;
|
|
3256
|
+
id?: string;
|
|
3257
|
+
name: string;
|
|
3258
|
+
updated_at?: string;
|
|
3259
|
+
};
|
|
3260
|
+
Update: {
|
|
3261
|
+
bucket_id?: string;
|
|
3262
|
+
created_at?: string;
|
|
3263
|
+
id?: string;
|
|
3264
|
+
name?: string;
|
|
3265
|
+
updated_at?: string;
|
|
3266
|
+
};
|
|
3267
|
+
Relationships: [
|
|
3268
|
+
{
|
|
3269
|
+
foreignKeyName: "iceberg_namespaces_bucket_id_fkey";
|
|
3270
|
+
columns: ["bucket_id"];
|
|
3271
|
+
isOneToOne: false;
|
|
3272
|
+
referencedRelation: "buckets_analytics";
|
|
3273
|
+
referencedColumns: ["id"];
|
|
3274
|
+
}
|
|
3275
|
+
];
|
|
3276
|
+
};
|
|
3277
|
+
iceberg_tables: {
|
|
3278
|
+
Row: {
|
|
3279
|
+
bucket_id: string;
|
|
3280
|
+
created_at: string;
|
|
3281
|
+
id: string;
|
|
3282
|
+
location: string;
|
|
3283
|
+
name: string;
|
|
3284
|
+
namespace_id: string;
|
|
3285
|
+
updated_at: string;
|
|
3286
|
+
};
|
|
3287
|
+
Insert: {
|
|
3288
|
+
bucket_id: string;
|
|
3289
|
+
created_at?: string;
|
|
3290
|
+
id?: string;
|
|
3291
|
+
location: string;
|
|
3292
|
+
name: string;
|
|
3293
|
+
namespace_id: string;
|
|
3294
|
+
updated_at?: string;
|
|
3295
|
+
};
|
|
3296
|
+
Update: {
|
|
3297
|
+
bucket_id?: string;
|
|
3298
|
+
created_at?: string;
|
|
3299
|
+
id?: string;
|
|
3300
|
+
location?: string;
|
|
3301
|
+
name?: string;
|
|
3302
|
+
namespace_id?: string;
|
|
3303
|
+
updated_at?: string;
|
|
3304
|
+
};
|
|
3305
|
+
Relationships: [
|
|
3306
|
+
{
|
|
3307
|
+
foreignKeyName: "iceberg_tables_bucket_id_fkey";
|
|
3308
|
+
columns: ["bucket_id"];
|
|
3309
|
+
isOneToOne: false;
|
|
3310
|
+
referencedRelation: "buckets_analytics";
|
|
3311
|
+
referencedColumns: ["id"];
|
|
3312
|
+
},
|
|
3313
|
+
{
|
|
3314
|
+
foreignKeyName: "iceberg_tables_namespace_id_fkey";
|
|
3315
|
+
columns: ["namespace_id"];
|
|
3316
|
+
isOneToOne: false;
|
|
3317
|
+
referencedRelation: "iceberg_namespaces";
|
|
3318
|
+
referencedColumns: ["id"];
|
|
3319
|
+
}
|
|
3320
|
+
];
|
|
3321
|
+
};
|
|
3209
3322
|
migrations: {
|
|
3210
3323
|
Row: {
|
|
3211
3324
|
executed_at: string | null;
|
|
@@ -3233,6 +3346,7 @@ export type Database = {
|
|
|
3233
3346
|
created_at: string | null;
|
|
3234
3347
|
id: string;
|
|
3235
3348
|
last_accessed_at: string | null;
|
|
3349
|
+
level: number | null;
|
|
3236
3350
|
metadata: Json | null;
|
|
3237
3351
|
name: string | null;
|
|
3238
3352
|
owner: string | null;
|
|
@@ -3247,6 +3361,7 @@ export type Database = {
|
|
|
3247
3361
|
created_at?: string | null;
|
|
3248
3362
|
id?: string;
|
|
3249
3363
|
last_accessed_at?: string | null;
|
|
3364
|
+
level?: number | null;
|
|
3250
3365
|
metadata?: Json | null;
|
|
3251
3366
|
name?: string | null;
|
|
3252
3367
|
owner?: string | null;
|
|
@@ -3261,6 +3376,7 @@ export type Database = {
|
|
|
3261
3376
|
created_at?: string | null;
|
|
3262
3377
|
id?: string;
|
|
3263
3378
|
last_accessed_at?: string | null;
|
|
3379
|
+
level?: number | null;
|
|
3264
3380
|
metadata?: Json | null;
|
|
3265
3381
|
name?: string | null;
|
|
3266
3382
|
owner?: string | null;
|
|
@@ -3280,6 +3396,38 @@ export type Database = {
|
|
|
3280
3396
|
}
|
|
3281
3397
|
];
|
|
3282
3398
|
};
|
|
3399
|
+
prefixes: {
|
|
3400
|
+
Row: {
|
|
3401
|
+
bucket_id: string;
|
|
3402
|
+
created_at: string | null;
|
|
3403
|
+
level: number;
|
|
3404
|
+
name: string;
|
|
3405
|
+
updated_at: string | null;
|
|
3406
|
+
};
|
|
3407
|
+
Insert: {
|
|
3408
|
+
bucket_id: string;
|
|
3409
|
+
created_at?: string | null;
|
|
3410
|
+
level?: number;
|
|
3411
|
+
name: string;
|
|
3412
|
+
updated_at?: string | null;
|
|
3413
|
+
};
|
|
3414
|
+
Update: {
|
|
3415
|
+
bucket_id?: string;
|
|
3416
|
+
created_at?: string | null;
|
|
3417
|
+
level?: number;
|
|
3418
|
+
name?: string;
|
|
3419
|
+
updated_at?: string | null;
|
|
3420
|
+
};
|
|
3421
|
+
Relationships: [
|
|
3422
|
+
{
|
|
3423
|
+
foreignKeyName: "prefixes_bucketId_fkey";
|
|
3424
|
+
columns: ["bucket_id"];
|
|
3425
|
+
isOneToOne: false;
|
|
3426
|
+
referencedRelation: "buckets";
|
|
3427
|
+
referencedColumns: ["id"];
|
|
3428
|
+
}
|
|
3429
|
+
];
|
|
3430
|
+
};
|
|
3283
3431
|
s3_multipart_uploads: {
|
|
3284
3432
|
Row: {
|
|
3285
3433
|
bucket_id: string;
|
|
@@ -3383,15 +3531,36 @@ export type Database = {
|
|
|
3383
3531
|
[_ in never]: never;
|
|
3384
3532
|
};
|
|
3385
3533
|
Functions: {
|
|
3534
|
+
add_prefixes: {
|
|
3535
|
+
Args: {
|
|
3536
|
+
_bucket_id: string;
|
|
3537
|
+
_name: string;
|
|
3538
|
+
};
|
|
3539
|
+
Returns: undefined;
|
|
3540
|
+
};
|
|
3386
3541
|
can_insert_object: {
|
|
3387
3542
|
Args: {
|
|
3388
3543
|
bucketid: string;
|
|
3544
|
+
metadata: Json;
|
|
3389
3545
|
name: string;
|
|
3390
3546
|
owner: string;
|
|
3391
|
-
metadata: Json;
|
|
3392
3547
|
};
|
|
3393
3548
|
Returns: undefined;
|
|
3394
3549
|
};
|
|
3550
|
+
delete_leaf_prefixes: {
|
|
3551
|
+
Args: {
|
|
3552
|
+
bucket_ids: string[];
|
|
3553
|
+
names: string[];
|
|
3554
|
+
};
|
|
3555
|
+
Returns: undefined;
|
|
3556
|
+
};
|
|
3557
|
+
delete_prefix: {
|
|
3558
|
+
Args: {
|
|
3559
|
+
_bucket_id: string;
|
|
3560
|
+
_name: string;
|
|
3561
|
+
};
|
|
3562
|
+
Returns: boolean;
|
|
3563
|
+
};
|
|
3395
3564
|
extension: {
|
|
3396
3565
|
Args: {
|
|
3397
3566
|
name: string;
|
|
@@ -3410,125 +3579,212 @@ export type Database = {
|
|
|
3410
3579
|
};
|
|
3411
3580
|
Returns: string[];
|
|
3412
3581
|
};
|
|
3582
|
+
get_level: {
|
|
3583
|
+
Args: {
|
|
3584
|
+
name: string;
|
|
3585
|
+
};
|
|
3586
|
+
Returns: number;
|
|
3587
|
+
};
|
|
3588
|
+
get_prefix: {
|
|
3589
|
+
Args: {
|
|
3590
|
+
name: string;
|
|
3591
|
+
};
|
|
3592
|
+
Returns: string;
|
|
3593
|
+
};
|
|
3594
|
+
get_prefixes: {
|
|
3595
|
+
Args: {
|
|
3596
|
+
name: string;
|
|
3597
|
+
};
|
|
3598
|
+
Returns: string[];
|
|
3599
|
+
};
|
|
3413
3600
|
get_size_by_bucket: {
|
|
3414
3601
|
Args: Record<PropertyKey, never>;
|
|
3415
3602
|
Returns: {
|
|
3416
|
-
size: number;
|
|
3417
3603
|
bucket_id: string;
|
|
3604
|
+
size: number;
|
|
3418
3605
|
}[];
|
|
3419
3606
|
};
|
|
3420
3607
|
list_multipart_uploads_with_delimiter: {
|
|
3421
3608
|
Args: {
|
|
3422
3609
|
bucket_id: string;
|
|
3423
|
-
prefix_param: string;
|
|
3424
3610
|
delimiter_param: string;
|
|
3425
3611
|
max_keys?: number;
|
|
3426
3612
|
next_key_token?: string;
|
|
3427
3613
|
next_upload_token?: string;
|
|
3614
|
+
prefix_param: string;
|
|
3428
3615
|
};
|
|
3429
3616
|
Returns: {
|
|
3430
|
-
key: string;
|
|
3431
|
-
id: string;
|
|
3432
3617
|
created_at: string;
|
|
3618
|
+
id: string;
|
|
3619
|
+
key: string;
|
|
3433
3620
|
}[];
|
|
3434
3621
|
};
|
|
3435
3622
|
list_objects_with_delimiter: {
|
|
3436
3623
|
Args: {
|
|
3437
3624
|
bucket_id: string;
|
|
3438
|
-
prefix_param: string;
|
|
3439
3625
|
delimiter_param: string;
|
|
3440
3626
|
max_keys?: number;
|
|
3441
|
-
start_after?: string;
|
|
3442
3627
|
next_token?: string;
|
|
3628
|
+
prefix_param: string;
|
|
3629
|
+
start_after?: string;
|
|
3443
3630
|
};
|
|
3444
3631
|
Returns: {
|
|
3445
|
-
name: string;
|
|
3446
3632
|
id: string;
|
|
3447
3633
|
metadata: Json;
|
|
3634
|
+
name: string;
|
|
3448
3635
|
updated_at: string;
|
|
3449
3636
|
}[];
|
|
3450
3637
|
};
|
|
3638
|
+
lock_top_prefixes: {
|
|
3639
|
+
Args: {
|
|
3640
|
+
bucket_ids: string[];
|
|
3641
|
+
names: string[];
|
|
3642
|
+
};
|
|
3643
|
+
Returns: undefined;
|
|
3644
|
+
};
|
|
3451
3645
|
operation: {
|
|
3452
3646
|
Args: Record<PropertyKey, never>;
|
|
3453
3647
|
Returns: string;
|
|
3454
3648
|
};
|
|
3455
3649
|
search: {
|
|
3456
3650
|
Args: {
|
|
3457
|
-
prefix: string;
|
|
3458
3651
|
bucketname: string;
|
|
3652
|
+
levels?: number;
|
|
3459
3653
|
limits?: number;
|
|
3654
|
+
offsets?: number;
|
|
3655
|
+
prefix: string;
|
|
3656
|
+
search?: string;
|
|
3657
|
+
sortcolumn?: string;
|
|
3658
|
+
sortorder?: string;
|
|
3659
|
+
};
|
|
3660
|
+
Returns: {
|
|
3661
|
+
created_at: string;
|
|
3662
|
+
id: string;
|
|
3663
|
+
last_accessed_at: string;
|
|
3664
|
+
metadata: Json;
|
|
3665
|
+
name: string;
|
|
3666
|
+
updated_at: string;
|
|
3667
|
+
}[];
|
|
3668
|
+
};
|
|
3669
|
+
search_legacy_v1: {
|
|
3670
|
+
Args: {
|
|
3671
|
+
bucketname: string;
|
|
3460
3672
|
levels?: number;
|
|
3673
|
+
limits?: number;
|
|
3461
3674
|
offsets?: number;
|
|
3675
|
+
prefix: string;
|
|
3462
3676
|
search?: string;
|
|
3463
3677
|
sortcolumn?: string;
|
|
3464
3678
|
sortorder?: string;
|
|
3465
3679
|
};
|
|
3466
3680
|
Returns: {
|
|
3681
|
+
created_at: string;
|
|
3682
|
+
id: string;
|
|
3683
|
+
last_accessed_at: string;
|
|
3684
|
+
metadata: Json;
|
|
3467
3685
|
name: string;
|
|
3686
|
+
updated_at: string;
|
|
3687
|
+
}[];
|
|
3688
|
+
};
|
|
3689
|
+
search_v1_optimised: {
|
|
3690
|
+
Args: {
|
|
3691
|
+
bucketname: string;
|
|
3692
|
+
levels?: number;
|
|
3693
|
+
limits?: number;
|
|
3694
|
+
offsets?: number;
|
|
3695
|
+
prefix: string;
|
|
3696
|
+
search?: string;
|
|
3697
|
+
sortcolumn?: string;
|
|
3698
|
+
sortorder?: string;
|
|
3699
|
+
};
|
|
3700
|
+
Returns: {
|
|
3701
|
+
created_at: string;
|
|
3468
3702
|
id: string;
|
|
3703
|
+
last_accessed_at: string;
|
|
3704
|
+
metadata: Json;
|
|
3705
|
+
name: string;
|
|
3469
3706
|
updated_at: string;
|
|
3707
|
+
}[];
|
|
3708
|
+
};
|
|
3709
|
+
search_v2: {
|
|
3710
|
+
Args: {
|
|
3711
|
+
bucket_name: string;
|
|
3712
|
+
levels?: number;
|
|
3713
|
+
limits?: number;
|
|
3714
|
+
prefix: string;
|
|
3715
|
+
sort_column?: string;
|
|
3716
|
+
sort_column_after?: string;
|
|
3717
|
+
sort_order?: string;
|
|
3718
|
+
start_after?: string;
|
|
3719
|
+
};
|
|
3720
|
+
Returns: {
|
|
3470
3721
|
created_at: string;
|
|
3722
|
+
id: string;
|
|
3723
|
+
key: string;
|
|
3471
3724
|
last_accessed_at: string;
|
|
3472
3725
|
metadata: Json;
|
|
3726
|
+
name: string;
|
|
3727
|
+
updated_at: string;
|
|
3473
3728
|
}[];
|
|
3474
3729
|
};
|
|
3475
3730
|
};
|
|
3476
3731
|
Enums: {
|
|
3477
|
-
|
|
3732
|
+
buckettype: "STANDARD" | "ANALYTICS";
|
|
3478
3733
|
};
|
|
3479
3734
|
CompositeTypes: {
|
|
3480
3735
|
[_ in never]: never;
|
|
3481
3736
|
};
|
|
3482
3737
|
};
|
|
3483
3738
|
};
|
|
3484
|
-
type
|
|
3739
|
+
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
|
|
3740
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
|
|
3485
3741
|
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
3486
|
-
schema: keyof
|
|
3742
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3487
3743
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3488
|
-
schema: keyof
|
|
3489
|
-
} ? keyof (
|
|
3490
|
-
schema: keyof
|
|
3491
|
-
} ? (
|
|
3744
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3745
|
+
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3746
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3747
|
+
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3492
3748
|
Row: infer R;
|
|
3493
3749
|
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
3494
3750
|
Row: infer R;
|
|
3495
3751
|
} ? R : never : never;
|
|
3496
3752
|
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
3497
|
-
schema: keyof
|
|
3753
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3498
3754
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3499
|
-
schema: keyof
|
|
3500
|
-
} ? keyof
|
|
3501
|
-
schema: keyof
|
|
3502
|
-
} ?
|
|
3755
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3756
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3757
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3758
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3503
3759
|
Insert: infer I;
|
|
3504
3760
|
} ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3505
3761
|
Insert: infer I;
|
|
3506
3762
|
} ? I : never : never;
|
|
3507
3763
|
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
3508
|
-
schema: keyof
|
|
3764
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3509
3765
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3510
|
-
schema: keyof
|
|
3511
|
-
} ? keyof
|
|
3512
|
-
schema: keyof
|
|
3513
|
-
} ?
|
|
3766
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3767
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3768
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3769
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3514
3770
|
Update: infer U;
|
|
3515
3771
|
} ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3516
3772
|
Update: infer U;
|
|
3517
3773
|
} ? U : never : never;
|
|
3518
3774
|
export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
|
|
3519
|
-
schema: keyof
|
|
3775
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3520
3776
|
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
3521
|
-
schema: keyof
|
|
3522
|
-
} ? keyof
|
|
3523
|
-
schema: keyof
|
|
3524
|
-
} ?
|
|
3777
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3778
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
3779
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3780
|
+
} ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
|
|
3525
3781
|
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
3526
|
-
schema: keyof
|
|
3782
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3527
3783
|
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
3528
|
-
schema: keyof
|
|
3529
|
-
} ? keyof
|
|
3530
|
-
schema: keyof
|
|
3531
|
-
} ?
|
|
3784
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3785
|
+
} ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
3786
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3787
|
+
} ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
3532
3788
|
export declare const Constants: {
|
|
3533
3789
|
readonly internal: {
|
|
3534
3790
|
readonly Enums: {};
|
|
@@ -3546,7 +3802,9 @@ export declare const Constants: {
|
|
|
3546
3802
|
};
|
|
3547
3803
|
};
|
|
3548
3804
|
readonly storage: {
|
|
3549
|
-
readonly Enums: {
|
|
3805
|
+
readonly Enums: {
|
|
3806
|
+
readonly buckettype: readonly ["STANDARD", "ANALYTICS"];
|
|
3807
|
+
};
|
|
3550
3808
|
};
|
|
3551
3809
|
};
|
|
3552
3810
|
export {};
|