@periskope/types 0.6.307 → 0.6.308
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 +184 -33
- package/dist/supabase.types.d.ts.map +1 -1
- package/package.json +17 -17
- package/src/supabase.types.ts +3537 -3528
- package/src/types.ts +219 -11
- package/tsconfig.tsbuildinfo +1 -0
package/dist/supabase.types.d.ts
CHANGED
|
@@ -1129,7 +1129,6 @@ export type Database = {
|
|
|
1129
1129
|
chat_type: string | null;
|
|
1130
1130
|
created_at: string;
|
|
1131
1131
|
created_by: string | null;
|
|
1132
|
-
flag_count: number | null;
|
|
1133
1132
|
group_metadata: Json | null;
|
|
1134
1133
|
id: Json | null;
|
|
1135
1134
|
initiated_by: string | null;
|
|
@@ -1159,7 +1158,6 @@ export type Database = {
|
|
|
1159
1158
|
chat_type?: string | null;
|
|
1160
1159
|
created_at?: string;
|
|
1161
1160
|
created_by?: string | null;
|
|
1162
|
-
flag_count?: number | null;
|
|
1163
1161
|
group_metadata?: Json | null;
|
|
1164
1162
|
id?: Json | null;
|
|
1165
1163
|
initiated_by?: string | null;
|
|
@@ -1189,7 +1187,6 @@ export type Database = {
|
|
|
1189
1187
|
chat_type?: string | null;
|
|
1190
1188
|
created_at?: string;
|
|
1191
1189
|
created_by?: string | null;
|
|
1192
|
-
flag_count?: number | null;
|
|
1193
1190
|
group_metadata?: Json | null;
|
|
1194
1191
|
id?: Json | null;
|
|
1195
1192
|
initiated_by?: string | null;
|
|
@@ -2382,7 +2379,6 @@ export type Database = {
|
|
|
2382
2379
|
closed_at: number | null;
|
|
2383
2380
|
created_at: string | null;
|
|
2384
2381
|
custom_properties: Json | null;
|
|
2385
|
-
flag_count: number | null;
|
|
2386
2382
|
flag_count_map: Json | null;
|
|
2387
2383
|
freshdesk_metadata: Json | null;
|
|
2388
2384
|
group_description: string | null;
|
|
@@ -2540,35 +2536,17 @@ export type Database = {
|
|
|
2540
2536
|
};
|
|
2541
2537
|
Returns: boolean;
|
|
2542
2538
|
};
|
|
2543
|
-
compute_chat_access: {
|
|
2544
|
-
Args: {
|
|
2545
|
-
org_id_input: string;
|
|
2546
|
-
chat_id_input?: string;
|
|
2547
|
-
};
|
|
2548
|
-
Returns: {
|
|
2549
|
-
result_chat_id: string;
|
|
2550
|
-
new_chat_access: Json;
|
|
2551
|
-
}[];
|
|
2552
|
-
};
|
|
2553
2539
|
custom_access_token_hook: {
|
|
2554
2540
|
Args: {
|
|
2555
2541
|
event: Json;
|
|
2556
2542
|
};
|
|
2557
2543
|
Returns: Json;
|
|
2558
2544
|
};
|
|
2559
|
-
|
|
2545
|
+
delete_org: {
|
|
2560
2546
|
Args: {
|
|
2561
2547
|
org_id_input: string;
|
|
2562
|
-
table_names_input: string[];
|
|
2563
|
-
batch_size_input: number;
|
|
2564
|
-
loop_size_input: number;
|
|
2565
2548
|
};
|
|
2566
|
-
Returns:
|
|
2567
|
-
deleted_org_id: string;
|
|
2568
|
-
table_name: string;
|
|
2569
|
-
total_deleted_rows: number;
|
|
2570
|
-
remaining_rows: number;
|
|
2571
|
-
}[];
|
|
2549
|
+
Returns: Json;
|
|
2572
2550
|
};
|
|
2573
2551
|
gen_id: {
|
|
2574
2552
|
Args: {
|
|
@@ -2651,6 +2629,33 @@ export type Database = {
|
|
|
2651
2629
|
};
|
|
2652
2630
|
Returns: Json;
|
|
2653
2631
|
};
|
|
2632
|
+
get_communities: {
|
|
2633
|
+
Args: {
|
|
2634
|
+
org_id_input: string;
|
|
2635
|
+
community_id_input?: string[];
|
|
2636
|
+
with_members?: boolean;
|
|
2637
|
+
last_updated_at?: string;
|
|
2638
|
+
batch_limit?: number;
|
|
2639
|
+
batch_offset?: number;
|
|
2640
|
+
};
|
|
2641
|
+
Returns: Json;
|
|
2642
|
+
};
|
|
2643
|
+
get_community_groups: {
|
|
2644
|
+
Args: {
|
|
2645
|
+
community_id_input: string;
|
|
2646
|
+
org_id_input: string;
|
|
2647
|
+
org_phone_input: string;
|
|
2648
|
+
};
|
|
2649
|
+
Returns: Json;
|
|
2650
|
+
};
|
|
2651
|
+
get_community_members: {
|
|
2652
|
+
Args: {
|
|
2653
|
+
community_id_input: string;
|
|
2654
|
+
org_id_input: string;
|
|
2655
|
+
org_phone_input: string;
|
|
2656
|
+
};
|
|
2657
|
+
Returns: Json;
|
|
2658
|
+
};
|
|
2654
2659
|
get_contacts: {
|
|
2655
2660
|
Args: {
|
|
2656
2661
|
org_id_input: string;
|
|
@@ -2700,7 +2705,7 @@ export type Database = {
|
|
|
2700
2705
|
};
|
|
2701
2706
|
get_formatted_cp_values: {
|
|
2702
2707
|
Args: {
|
|
2703
|
-
org_id_input
|
|
2708
|
+
org_id_input?: string;
|
|
2704
2709
|
custom_properties_value_input?: Json;
|
|
2705
2710
|
cp_type?: string;
|
|
2706
2711
|
rules_format?: boolean;
|
|
@@ -2742,6 +2747,12 @@ export type Database = {
|
|
|
2742
2747
|
};
|
|
2743
2748
|
Returns: Json;
|
|
2744
2749
|
};
|
|
2750
|
+
get_old_credits: {
|
|
2751
|
+
Args: {
|
|
2752
|
+
org_id_input?: string;
|
|
2753
|
+
};
|
|
2754
|
+
Returns: Json;
|
|
2755
|
+
};
|
|
2745
2756
|
get_org: {
|
|
2746
2757
|
Args: {
|
|
2747
2758
|
org_id_input?: string;
|
|
@@ -2783,7 +2794,10 @@ export type Database = {
|
|
|
2783
2794
|
Args: {
|
|
2784
2795
|
org_id_input: string;
|
|
2785
2796
|
query_embedding_input: string;
|
|
2786
|
-
|
|
2797
|
+
} | {
|
|
2798
|
+
org_id_input: string;
|
|
2799
|
+
query_embedding_input: string;
|
|
2800
|
+
confidence_score_input: number;
|
|
2787
2801
|
};
|
|
2788
2802
|
Returns: Json;
|
|
2789
2803
|
};
|
|
@@ -2796,6 +2810,15 @@ export type Database = {
|
|
|
2796
2810
|
};
|
|
2797
2811
|
Returns: Json;
|
|
2798
2812
|
};
|
|
2813
|
+
get_team_metrics_between_dates: {
|
|
2814
|
+
Args: {
|
|
2815
|
+
org_id_input: string;
|
|
2816
|
+
start_date: string;
|
|
2817
|
+
end_date: string;
|
|
2818
|
+
chat_id_input?: string[];
|
|
2819
|
+
};
|
|
2820
|
+
Returns: Json;
|
|
2821
|
+
};
|
|
2799
2822
|
get_ticket_info: {
|
|
2800
2823
|
Args: {
|
|
2801
2824
|
ticket_id_input?: string;
|
|
@@ -2815,15 +2838,16 @@ export type Database = {
|
|
|
2815
2838
|
};
|
|
2816
2839
|
Returns: Json;
|
|
2817
2840
|
};
|
|
2818
|
-
|
|
2841
|
+
get_universal_search_result: {
|
|
2819
2842
|
Args: {
|
|
2843
|
+
search_category_input: string;
|
|
2844
|
+
search_query_input: string;
|
|
2820
2845
|
org_id_input: string;
|
|
2821
|
-
ticket_id_input?: string[];
|
|
2822
|
-
last_updated_at?: string;
|
|
2823
|
-
batch_limit?: number;
|
|
2824
|
-
batch_offset?: number;
|
|
2825
2846
|
};
|
|
2826
|
-
Returns:
|
|
2847
|
+
Returns: {
|
|
2848
|
+
category: string;
|
|
2849
|
+
result: Json;
|
|
2850
|
+
}[];
|
|
2827
2851
|
};
|
|
2828
2852
|
list_org_from_user: {
|
|
2829
2853
|
Args: Record<PropertyKey, never>;
|
|
@@ -2833,6 +2857,10 @@ export type Database = {
|
|
|
2833
2857
|
Args: Record<PropertyKey, never>;
|
|
2834
2858
|
Returns: Database["public"]["Enums"]["enum_member_role"];
|
|
2835
2859
|
};
|
|
2860
|
+
notify_org_tasks: {
|
|
2861
|
+
Args: Record<PropertyKey, never>;
|
|
2862
|
+
Returns: string;
|
|
2863
|
+
};
|
|
2836
2864
|
refresh_chat_properties: {
|
|
2837
2865
|
Args: {
|
|
2838
2866
|
org_id_input: string;
|
|
@@ -2867,7 +2895,6 @@ export type Database = {
|
|
|
2867
2895
|
chat_type: string | null;
|
|
2868
2896
|
created_at: string;
|
|
2869
2897
|
created_by: string | null;
|
|
2870
|
-
flag_count: number | null;
|
|
2871
2898
|
group_metadata: Json | null;
|
|
2872
2899
|
id: Json | null;
|
|
2873
2900
|
initiated_by: string | null;
|
|
@@ -3086,6 +3113,7 @@ export type Database = {
|
|
|
3086
3113
|
created_at: string | null;
|
|
3087
3114
|
id: string;
|
|
3088
3115
|
last_accessed_at: string | null;
|
|
3116
|
+
level: number | null;
|
|
3089
3117
|
metadata: Json | null;
|
|
3090
3118
|
name: string | null;
|
|
3091
3119
|
owner: string | null;
|
|
@@ -3100,6 +3128,7 @@ export type Database = {
|
|
|
3100
3128
|
created_at?: string | null;
|
|
3101
3129
|
id?: string;
|
|
3102
3130
|
last_accessed_at?: string | null;
|
|
3131
|
+
level?: number | null;
|
|
3103
3132
|
metadata?: Json | null;
|
|
3104
3133
|
name?: string | null;
|
|
3105
3134
|
owner?: string | null;
|
|
@@ -3114,6 +3143,7 @@ export type Database = {
|
|
|
3114
3143
|
created_at?: string | null;
|
|
3115
3144
|
id?: string;
|
|
3116
3145
|
last_accessed_at?: string | null;
|
|
3146
|
+
level?: number | null;
|
|
3117
3147
|
metadata?: Json | null;
|
|
3118
3148
|
name?: string | null;
|
|
3119
3149
|
owner?: string | null;
|
|
@@ -3133,6 +3163,38 @@ export type Database = {
|
|
|
3133
3163
|
}
|
|
3134
3164
|
];
|
|
3135
3165
|
};
|
|
3166
|
+
prefixes: {
|
|
3167
|
+
Row: {
|
|
3168
|
+
bucket_id: string;
|
|
3169
|
+
created_at: string | null;
|
|
3170
|
+
level: number;
|
|
3171
|
+
name: string;
|
|
3172
|
+
updated_at: string | null;
|
|
3173
|
+
};
|
|
3174
|
+
Insert: {
|
|
3175
|
+
bucket_id: string;
|
|
3176
|
+
created_at?: string | null;
|
|
3177
|
+
level?: number;
|
|
3178
|
+
name: string;
|
|
3179
|
+
updated_at?: string | null;
|
|
3180
|
+
};
|
|
3181
|
+
Update: {
|
|
3182
|
+
bucket_id?: string;
|
|
3183
|
+
created_at?: string | null;
|
|
3184
|
+
level?: number;
|
|
3185
|
+
name?: string;
|
|
3186
|
+
updated_at?: string | null;
|
|
3187
|
+
};
|
|
3188
|
+
Relationships: [
|
|
3189
|
+
{
|
|
3190
|
+
foreignKeyName: "prefixes_bucketId_fkey";
|
|
3191
|
+
columns: ["bucket_id"];
|
|
3192
|
+
isOneToOne: false;
|
|
3193
|
+
referencedRelation: "buckets";
|
|
3194
|
+
referencedColumns: ["id"];
|
|
3195
|
+
}
|
|
3196
|
+
];
|
|
3197
|
+
};
|
|
3136
3198
|
s3_multipart_uploads: {
|
|
3137
3199
|
Row: {
|
|
3138
3200
|
bucket_id: string;
|
|
@@ -3236,6 +3298,13 @@ export type Database = {
|
|
|
3236
3298
|
[_ in never]: never;
|
|
3237
3299
|
};
|
|
3238
3300
|
Functions: {
|
|
3301
|
+
add_prefixes: {
|
|
3302
|
+
Args: {
|
|
3303
|
+
_bucket_id: string;
|
|
3304
|
+
_name: string;
|
|
3305
|
+
};
|
|
3306
|
+
Returns: undefined;
|
|
3307
|
+
};
|
|
3239
3308
|
can_insert_object: {
|
|
3240
3309
|
Args: {
|
|
3241
3310
|
bucketid: string;
|
|
@@ -3245,6 +3314,13 @@ export type Database = {
|
|
|
3245
3314
|
};
|
|
3246
3315
|
Returns: undefined;
|
|
3247
3316
|
};
|
|
3317
|
+
delete_prefix: {
|
|
3318
|
+
Args: {
|
|
3319
|
+
_bucket_id: string;
|
|
3320
|
+
_name: string;
|
|
3321
|
+
};
|
|
3322
|
+
Returns: boolean;
|
|
3323
|
+
};
|
|
3248
3324
|
extension: {
|
|
3249
3325
|
Args: {
|
|
3250
3326
|
name: string;
|
|
@@ -3263,6 +3339,24 @@ export type Database = {
|
|
|
3263
3339
|
};
|
|
3264
3340
|
Returns: string[];
|
|
3265
3341
|
};
|
|
3342
|
+
get_level: {
|
|
3343
|
+
Args: {
|
|
3344
|
+
name: string;
|
|
3345
|
+
};
|
|
3346
|
+
Returns: number;
|
|
3347
|
+
};
|
|
3348
|
+
get_prefix: {
|
|
3349
|
+
Args: {
|
|
3350
|
+
name: string;
|
|
3351
|
+
};
|
|
3352
|
+
Returns: string;
|
|
3353
|
+
};
|
|
3354
|
+
get_prefixes: {
|
|
3355
|
+
Args: {
|
|
3356
|
+
name: string;
|
|
3357
|
+
};
|
|
3358
|
+
Returns: string[];
|
|
3359
|
+
};
|
|
3266
3360
|
get_size_by_bucket: {
|
|
3267
3361
|
Args: Record<PropertyKey, never>;
|
|
3268
3362
|
Returns: {
|
|
@@ -3325,6 +3419,63 @@ export type Database = {
|
|
|
3325
3419
|
metadata: Json;
|
|
3326
3420
|
}[];
|
|
3327
3421
|
};
|
|
3422
|
+
search_legacy_v1: {
|
|
3423
|
+
Args: {
|
|
3424
|
+
prefix: string;
|
|
3425
|
+
bucketname: string;
|
|
3426
|
+
limits?: number;
|
|
3427
|
+
levels?: number;
|
|
3428
|
+
offsets?: number;
|
|
3429
|
+
search?: string;
|
|
3430
|
+
sortcolumn?: string;
|
|
3431
|
+
sortorder?: string;
|
|
3432
|
+
};
|
|
3433
|
+
Returns: {
|
|
3434
|
+
name: string;
|
|
3435
|
+
id: string;
|
|
3436
|
+
updated_at: string;
|
|
3437
|
+
created_at: string;
|
|
3438
|
+
last_accessed_at: string;
|
|
3439
|
+
metadata: Json;
|
|
3440
|
+
}[];
|
|
3441
|
+
};
|
|
3442
|
+
search_v1_optimised: {
|
|
3443
|
+
Args: {
|
|
3444
|
+
prefix: string;
|
|
3445
|
+
bucketname: string;
|
|
3446
|
+
limits?: number;
|
|
3447
|
+
levels?: number;
|
|
3448
|
+
offsets?: number;
|
|
3449
|
+
search?: string;
|
|
3450
|
+
sortcolumn?: string;
|
|
3451
|
+
sortorder?: string;
|
|
3452
|
+
};
|
|
3453
|
+
Returns: {
|
|
3454
|
+
name: string;
|
|
3455
|
+
id: string;
|
|
3456
|
+
updated_at: string;
|
|
3457
|
+
created_at: string;
|
|
3458
|
+
last_accessed_at: string;
|
|
3459
|
+
metadata: Json;
|
|
3460
|
+
}[];
|
|
3461
|
+
};
|
|
3462
|
+
search_v2: {
|
|
3463
|
+
Args: {
|
|
3464
|
+
prefix: string;
|
|
3465
|
+
bucket_name: string;
|
|
3466
|
+
limits?: number;
|
|
3467
|
+
levels?: number;
|
|
3468
|
+
start_after?: string;
|
|
3469
|
+
};
|
|
3470
|
+
Returns: {
|
|
3471
|
+
key: string;
|
|
3472
|
+
name: string;
|
|
3473
|
+
id: string;
|
|
3474
|
+
updated_at: string;
|
|
3475
|
+
created_at: string;
|
|
3476
|
+
metadata: Json;
|
|
3477
|
+
}[];
|
|
3478
|
+
};
|
|
3328
3479
|
};
|
|
3329
3480
|
Enums: {
|
|
3330
3481
|
[_ in never]: never;
|