@periskope/types 0.6.264 → 0.6.265
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 +181 -106
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/supabase.types.js +77 -0
- package/dist/types.d.ts +6 -1
- package/dist/types.d.ts.map +1 -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 +100 -100
- package/src/rules.types.ts +2109 -2109
- package/src/supabase.types.ts +283 -198
- package/src/types.ts +1237 -1232
- package/tsconfig.json +18 -18
- package/update_package.ps1 +21 -21
- package/tsconfig.tsbuildinfo +0 -1
package/src/supabase.types.ts
CHANGED
|
@@ -1,31 +1,6 @@
|
|
|
1
1
|
export type Json = { [key: string]: any } | any
|
|
2
2
|
|
|
3
3
|
export type Database = {
|
|
4
|
-
graphql_public: {
|
|
5
|
-
Tables: {
|
|
6
|
-
[_ in never]: never
|
|
7
|
-
}
|
|
8
|
-
Views: {
|
|
9
|
-
[_ in never]: never
|
|
10
|
-
}
|
|
11
|
-
Functions: {
|
|
12
|
-
graphql: {
|
|
13
|
-
Args: {
|
|
14
|
-
operationName?: string
|
|
15
|
-
query?: string
|
|
16
|
-
variables?: Json
|
|
17
|
-
extensions?: Json
|
|
18
|
-
}
|
|
19
|
-
Returns: Json
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
Enums: {
|
|
23
|
-
[_ in never]: never
|
|
24
|
-
}
|
|
25
|
-
CompositeTypes: {
|
|
26
|
-
[_ in never]: never
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
4
|
internal: {
|
|
30
5
|
Tables: {
|
|
31
6
|
config: {
|
|
@@ -212,45 +187,6 @@ export type Database = {
|
|
|
212
187
|
}
|
|
213
188
|
public: {
|
|
214
189
|
Tables: {
|
|
215
|
-
tbl_ai_contexts: {
|
|
216
|
-
Row: {
|
|
217
|
-
answer: string
|
|
218
|
-
attachments: Json | null
|
|
219
|
-
context_id: string
|
|
220
|
-
created_at: string | null
|
|
221
|
-
document_id: string | null
|
|
222
|
-
embedding: string
|
|
223
|
-
metadata: Json | null
|
|
224
|
-
org_id: string
|
|
225
|
-
question: string
|
|
226
|
-
type: Database["public"]["Enums"]["enum_ai_context_type"] | null
|
|
227
|
-
}
|
|
228
|
-
Insert: {
|
|
229
|
-
answer: string
|
|
230
|
-
attachments?: Json | null
|
|
231
|
-
context_id?: string
|
|
232
|
-
created_at?: string | null
|
|
233
|
-
document_id?: string | null
|
|
234
|
-
embedding: string
|
|
235
|
-
metadata?: Json | null
|
|
236
|
-
org_id: string
|
|
237
|
-
question: string
|
|
238
|
-
type?: Database["public"]["Enums"]["enum_ai_context_type"] | null
|
|
239
|
-
}
|
|
240
|
-
Update: {
|
|
241
|
-
answer?: string
|
|
242
|
-
attachments?: Json | null
|
|
243
|
-
context_id?: string
|
|
244
|
-
created_at?: string | null
|
|
245
|
-
document_id?: string | null
|
|
246
|
-
embedding?: string
|
|
247
|
-
metadata?: Json | null
|
|
248
|
-
org_id?: string
|
|
249
|
-
question?: string
|
|
250
|
-
type?: Database["public"]["Enums"]["enum_ai_context_type"] | null
|
|
251
|
-
}
|
|
252
|
-
Relationships: []
|
|
253
|
-
}
|
|
254
190
|
tbl_api_logs: {
|
|
255
191
|
Row: {
|
|
256
192
|
org_id: string
|
|
@@ -754,6 +690,7 @@ export type Database = {
|
|
|
754
690
|
body: string | null
|
|
755
691
|
chat_id: string | null
|
|
756
692
|
from_me: boolean | null
|
|
693
|
+
is_deleted: boolean | null
|
|
757
694
|
is_private_note: boolean
|
|
758
695
|
media: Json | null
|
|
759
696
|
mentioned_ids: string[] | null
|
|
@@ -775,6 +712,7 @@ export type Database = {
|
|
|
775
712
|
body?: string | null
|
|
776
713
|
chat_id?: string | null
|
|
777
714
|
from_me?: boolean | null
|
|
715
|
+
is_deleted?: boolean | null
|
|
778
716
|
is_private_note?: boolean
|
|
779
717
|
media?: Json | null
|
|
780
718
|
mentioned_ids?: string[] | null
|
|
@@ -796,6 +734,7 @@ export type Database = {
|
|
|
796
734
|
body?: string | null
|
|
797
735
|
chat_id?: string | null
|
|
798
736
|
from_me?: boolean | null
|
|
737
|
+
is_deleted?: boolean | null
|
|
799
738
|
is_private_note?: boolean
|
|
800
739
|
media?: Json | null
|
|
801
740
|
mentioned_ids?: string[] | null
|
|
@@ -891,7 +830,6 @@ export type Database = {
|
|
|
891
830
|
}
|
|
892
831
|
tbl_chat_properties: {
|
|
893
832
|
Row: {
|
|
894
|
-
ai_metadata: Json | null
|
|
895
833
|
assigned_to: string | null
|
|
896
834
|
chat_access: Json | null
|
|
897
835
|
chat_id: string
|
|
@@ -907,11 +845,11 @@ export type Database = {
|
|
|
907
845
|
label_ids: Json | null
|
|
908
846
|
latest_message_timestamp: string | null
|
|
909
847
|
org_id: string
|
|
848
|
+
snooze_metadata: Json | null
|
|
910
849
|
updated_at: string | null
|
|
911
850
|
zohodesk_metadata: Json | null
|
|
912
851
|
}
|
|
913
852
|
Insert: {
|
|
914
|
-
ai_metadata?: Json | null
|
|
915
853
|
assigned_to?: string | null
|
|
916
854
|
chat_access?: Json | null
|
|
917
855
|
chat_id: string
|
|
@@ -927,11 +865,11 @@ export type Database = {
|
|
|
927
865
|
label_ids?: Json | null
|
|
928
866
|
latest_message_timestamp?: string | null
|
|
929
867
|
org_id: string
|
|
868
|
+
snooze_metadata?: Json | null
|
|
930
869
|
updated_at?: string | null
|
|
931
870
|
zohodesk_metadata?: Json | null
|
|
932
871
|
}
|
|
933
872
|
Update: {
|
|
934
|
-
ai_metadata?: Json | null
|
|
935
873
|
assigned_to?: string | null
|
|
936
874
|
chat_access?: Json | null
|
|
937
875
|
chat_id?: string
|
|
@@ -947,6 +885,7 @@ export type Database = {
|
|
|
947
885
|
label_ids?: Json | null
|
|
948
886
|
latest_message_timestamp?: string | null
|
|
949
887
|
org_id?: string
|
|
888
|
+
snooze_metadata?: Json | null
|
|
950
889
|
updated_at?: string | null
|
|
951
890
|
zohodesk_metadata?: Json | null
|
|
952
891
|
}
|
|
@@ -1209,7 +1148,7 @@ export type Database = {
|
|
|
1209
1148
|
is_my_contact: boolean | null
|
|
1210
1149
|
is_user: boolean | null
|
|
1211
1150
|
is_wa_contact: boolean | null
|
|
1212
|
-
label_ids: Json
|
|
1151
|
+
label_ids: Json
|
|
1213
1152
|
name: string | null
|
|
1214
1153
|
number: string | null
|
|
1215
1154
|
org_id: string
|
|
@@ -1238,7 +1177,7 @@ export type Database = {
|
|
|
1238
1177
|
is_my_contact?: boolean | null
|
|
1239
1178
|
is_user?: boolean | null
|
|
1240
1179
|
is_wa_contact?: boolean | null
|
|
1241
|
-
label_ids?: Json
|
|
1180
|
+
label_ids?: Json
|
|
1242
1181
|
name?: string | null
|
|
1243
1182
|
number?: string | null
|
|
1244
1183
|
org_id: string
|
|
@@ -1267,7 +1206,7 @@ export type Database = {
|
|
|
1267
1206
|
is_my_contact?: boolean | null
|
|
1268
1207
|
is_user?: boolean | null
|
|
1269
1208
|
is_wa_contact?: boolean | null
|
|
1270
|
-
label_ids?: Json
|
|
1209
|
+
label_ids?: Json
|
|
1271
1210
|
name?: string | null
|
|
1272
1211
|
number?: string | null
|
|
1273
1212
|
org_id?: string
|
|
@@ -1717,13 +1656,6 @@ export type Database = {
|
|
|
1717
1656
|
user_id?: string | null
|
|
1718
1657
|
}
|
|
1719
1658
|
Relationships: [
|
|
1720
|
-
{
|
|
1721
|
-
foreignKeyName: "tbl_org_members_fkey_auth_users"
|
|
1722
|
-
columns: ["user_id"]
|
|
1723
|
-
isOneToOne: false
|
|
1724
|
-
referencedRelation: "users"
|
|
1725
|
-
referencedColumns: ["id"]
|
|
1726
|
-
},
|
|
1727
1659
|
{
|
|
1728
1660
|
foreignKeyName: "tbl_org_members_fkey_tbl_org"
|
|
1729
1661
|
columns: ["org_id"]
|
|
@@ -2247,7 +2179,6 @@ export type Database = {
|
|
|
2247
2179
|
view_chats: {
|
|
2248
2180
|
Row: {
|
|
2249
2181
|
add_members_admins_only: boolean | null
|
|
2250
|
-
ai_metadata: Json | null
|
|
2251
2182
|
assigned_to: string | null
|
|
2252
2183
|
chat_access: Json | null
|
|
2253
2184
|
chat_id: string | null
|
|
@@ -2261,6 +2192,7 @@ export type Database = {
|
|
|
2261
2192
|
flag_count_map: Json | null
|
|
2262
2193
|
freshdesk_metadata: Json | null
|
|
2263
2194
|
group_description: string | null
|
|
2195
|
+
group_metadata: Json | null
|
|
2264
2196
|
hubspot_metadata: Json | null
|
|
2265
2197
|
info_admins_only: boolean | null
|
|
2266
2198
|
initiated_by: string | null
|
|
@@ -2275,6 +2207,7 @@ export type Database = {
|
|
|
2275
2207
|
org_id: string | null
|
|
2276
2208
|
org_phone: string | null
|
|
2277
2209
|
pinned_messages: Json | null
|
|
2210
|
+
snooze_metadata: Json | null
|
|
2278
2211
|
updated_at: string | null
|
|
2279
2212
|
zohodesk_metadata: Json | null
|
|
2280
2213
|
}
|
|
@@ -2391,51 +2324,34 @@ export type Database = {
|
|
|
2391
2324
|
}
|
|
2392
2325
|
Functions: {
|
|
2393
2326
|
check_feature_flag_access: {
|
|
2394
|
-
Args: {
|
|
2395
|
-
org_id_input: string
|
|
2396
|
-
feature_input: string
|
|
2397
|
-
}
|
|
2327
|
+
Args: { org_id_input: string; feature_input: string }
|
|
2398
2328
|
Returns: boolean
|
|
2399
2329
|
}
|
|
2400
2330
|
custom_access_token_hook: {
|
|
2401
|
-
Args: {
|
|
2402
|
-
event: Json
|
|
2403
|
-
}
|
|
2331
|
+
Args: { event: Json }
|
|
2404
2332
|
Returns: Json
|
|
2405
2333
|
}
|
|
2406
2334
|
delete_org: {
|
|
2407
|
-
Args: {
|
|
2408
|
-
org_id_input: string
|
|
2409
|
-
}
|
|
2335
|
+
Args: { org_id_input: string }
|
|
2410
2336
|
Returns: Json
|
|
2411
2337
|
}
|
|
2412
2338
|
drop_partition: {
|
|
2413
|
-
Args: {
|
|
2414
|
-
org_id_input: string
|
|
2415
|
-
}
|
|
2339
|
+
Args: { org_id_input: string }
|
|
2416
2340
|
Returns: boolean
|
|
2417
2341
|
}
|
|
2418
2342
|
find_discrepancies: {
|
|
2419
|
-
Args: {
|
|
2420
|
-
p_org_id: string
|
|
2421
|
-
}
|
|
2343
|
+
Args: { p_org_id: string }
|
|
2422
2344
|
Returns: {
|
|
2423
2345
|
a_chat_id: string
|
|
2424
2346
|
discrepancy_count: number
|
|
2425
2347
|
}[]
|
|
2426
2348
|
}
|
|
2427
2349
|
gen_id: {
|
|
2428
|
-
Args: {
|
|
2429
|
-
prefix: string
|
|
2430
|
-
size?: number
|
|
2431
|
-
alphabet?: string
|
|
2432
|
-
}
|
|
2350
|
+
Args: { prefix: string; size?: number; alphabet?: string }
|
|
2433
2351
|
Returns: string
|
|
2434
2352
|
}
|
|
2435
2353
|
gen_ticket_id: {
|
|
2436
|
-
Args: {
|
|
2437
|
-
org_id_input: string
|
|
2438
|
-
}
|
|
2354
|
+
Args: { org_id_input: string }
|
|
2439
2355
|
Returns: string
|
|
2440
2356
|
}
|
|
2441
2357
|
generate_access_token: {
|
|
@@ -2457,10 +2373,7 @@ export type Database = {
|
|
|
2457
2373
|
Returns: Json
|
|
2458
2374
|
}
|
|
2459
2375
|
get_chat_labels_data: {
|
|
2460
|
-
Args: {
|
|
2461
|
-
org_id_input: string
|
|
2462
|
-
chat_ids_input?: string[]
|
|
2463
|
-
}
|
|
2376
|
+
Args: { org_id_input: string; chat_ids_input?: string[] }
|
|
2464
2377
|
Returns: Json[]
|
|
2465
2378
|
}
|
|
2466
2379
|
get_chat_rule_info: {
|
|
@@ -2514,10 +2427,7 @@ export type Database = {
|
|
|
2514
2427
|
Returns: Json
|
|
2515
2428
|
}
|
|
2516
2429
|
get_export_members_data: {
|
|
2517
|
-
Args: {
|
|
2518
|
-
org_id_input: string
|
|
2519
|
-
chat_id_input?: string[]
|
|
2520
|
-
}
|
|
2430
|
+
Args: { org_id_input: string; chat_id_input?: string[] }
|
|
2521
2431
|
Returns: Json
|
|
2522
2432
|
}
|
|
2523
2433
|
get_export_tickets_data: {
|
|
@@ -2532,9 +2442,7 @@ export type Database = {
|
|
|
2532
2442
|
Returns: Json
|
|
2533
2443
|
}
|
|
2534
2444
|
get_feature_flags: {
|
|
2535
|
-
Args: {
|
|
2536
|
-
org_id_input: string
|
|
2537
|
-
}
|
|
2445
|
+
Args: { org_id_input: string }
|
|
2538
2446
|
Returns: Json
|
|
2539
2447
|
}
|
|
2540
2448
|
get_formatted_cp_values: {
|
|
@@ -2546,9 +2454,7 @@ export type Database = {
|
|
|
2546
2454
|
Returns: Json
|
|
2547
2455
|
}
|
|
2548
2456
|
get_integration_data: {
|
|
2549
|
-
Args: {
|
|
2550
|
-
org_id_input?: string
|
|
2551
|
-
}
|
|
2457
|
+
Args: { org_id_input?: string }
|
|
2552
2458
|
Returns: Json
|
|
2553
2459
|
}
|
|
2554
2460
|
get_message_rule_info: {
|
|
@@ -2571,28 +2477,19 @@ export type Database = {
|
|
|
2571
2477
|
Returns: Json
|
|
2572
2478
|
}
|
|
2573
2479
|
get_old_credits: {
|
|
2574
|
-
Args: {
|
|
2575
|
-
org_id_input?: string
|
|
2576
|
-
}
|
|
2480
|
+
Args: { org_id_input?: string }
|
|
2577
2481
|
Returns: Json
|
|
2578
2482
|
}
|
|
2579
2483
|
get_org: {
|
|
2580
|
-
Args: {
|
|
2581
|
-
org_id_input?: string
|
|
2582
|
-
}
|
|
2484
|
+
Args: { org_id_input?: string }
|
|
2583
2485
|
Returns: Json
|
|
2584
2486
|
}
|
|
2585
2487
|
get_org_credits: {
|
|
2586
|
-
Args: {
|
|
2587
|
-
org_id_input?: string
|
|
2588
|
-
}
|
|
2488
|
+
Args: { org_id_input?: string }
|
|
2589
2489
|
Returns: Json
|
|
2590
2490
|
}
|
|
2591
2491
|
get_org_phones: {
|
|
2592
|
-
Args: {
|
|
2593
|
-
org_id_input?: string
|
|
2594
|
-
phone_id_input?: string
|
|
2595
|
-
}
|
|
2492
|
+
Args: { org_id_input?: string; phone_id_input?: string }
|
|
2596
2493
|
Returns: Json
|
|
2597
2494
|
}
|
|
2598
2495
|
get_reaction_rule_info: {
|
|
@@ -2606,13 +2503,6 @@ export type Database = {
|
|
|
2606
2503
|
}
|
|
2607
2504
|
Returns: Json
|
|
2608
2505
|
}
|
|
2609
|
-
get_relevant_context: {
|
|
2610
|
-
Args: {
|
|
2611
|
-
org_id_input: string
|
|
2612
|
-
query_embedding_input: string
|
|
2613
|
-
}
|
|
2614
|
-
Returns: Json
|
|
2615
|
-
}
|
|
2616
2506
|
get_team_metrics_between_dates: {
|
|
2617
2507
|
Args: {
|
|
2618
2508
|
org_id_input: string
|
|
@@ -2664,10 +2554,7 @@ export type Database = {
|
|
|
2664
2554
|
Returns: string
|
|
2665
2555
|
}
|
|
2666
2556
|
refresh_chat_properties: {
|
|
2667
|
-
Args: {
|
|
2668
|
-
org_id_input: string
|
|
2669
|
-
chat_id_input?: string
|
|
2670
|
-
}
|
|
2557
|
+
Args: { org_id_input: string; chat_id_input?: string }
|
|
2671
2558
|
Returns: undefined
|
|
2672
2559
|
}
|
|
2673
2560
|
update_chat_properties: {
|
|
@@ -2802,11 +2689,7 @@ export type Database = {
|
|
|
2802
2689
|
Returns: undefined
|
|
2803
2690
|
}
|
|
2804
2691
|
update_org_metadata: {
|
|
2805
|
-
Args: {
|
|
2806
|
-
org_id_input: string
|
|
2807
|
-
key_input?: string
|
|
2808
|
-
value_input?: Json
|
|
2809
|
-
}
|
|
2692
|
+
Args: { org_id_input: string; key_input?: string; value_input?: Json }
|
|
2810
2693
|
Returns: undefined
|
|
2811
2694
|
}
|
|
2812
2695
|
update_rule_log_entry: {
|
|
@@ -2821,7 +2704,6 @@ export type Database = {
|
|
|
2821
2704
|
}
|
|
2822
2705
|
}
|
|
2823
2706
|
Enums: {
|
|
2824
|
-
enum_ai_context_type: "faq" | "document"
|
|
2825
2707
|
enum_broadcast_status: "inprogress" | "completed" | "stopped" | "expired"
|
|
2826
2708
|
enum_chat_colors:
|
|
2827
2709
|
| "#B4876E"
|
|
@@ -2956,6 +2838,7 @@ export type Database = {
|
|
|
2956
2838
|
created_at: string | null
|
|
2957
2839
|
id: string
|
|
2958
2840
|
last_accessed_at: string | null
|
|
2841
|
+
level: number | null
|
|
2959
2842
|
metadata: Json | null
|
|
2960
2843
|
name: string | null
|
|
2961
2844
|
owner: string | null
|
|
@@ -2970,6 +2853,7 @@ export type Database = {
|
|
|
2970
2853
|
created_at?: string | null
|
|
2971
2854
|
id?: string
|
|
2972
2855
|
last_accessed_at?: string | null
|
|
2856
|
+
level?: number | null
|
|
2973
2857
|
metadata?: Json | null
|
|
2974
2858
|
name?: string | null
|
|
2975
2859
|
owner?: string | null
|
|
@@ -2984,6 +2868,7 @@ export type Database = {
|
|
|
2984
2868
|
created_at?: string | null
|
|
2985
2869
|
id?: string
|
|
2986
2870
|
last_accessed_at?: string | null
|
|
2871
|
+
level?: number | null
|
|
2987
2872
|
metadata?: Json | null
|
|
2988
2873
|
name?: string | null
|
|
2989
2874
|
owner?: string | null
|
|
@@ -3003,6 +2888,38 @@ export type Database = {
|
|
|
3003
2888
|
},
|
|
3004
2889
|
]
|
|
3005
2890
|
}
|
|
2891
|
+
prefixes: {
|
|
2892
|
+
Row: {
|
|
2893
|
+
bucket_id: string
|
|
2894
|
+
created_at: string | null
|
|
2895
|
+
level: number
|
|
2896
|
+
name: string
|
|
2897
|
+
updated_at: string | null
|
|
2898
|
+
}
|
|
2899
|
+
Insert: {
|
|
2900
|
+
bucket_id: string
|
|
2901
|
+
created_at?: string | null
|
|
2902
|
+
level?: number
|
|
2903
|
+
name: string
|
|
2904
|
+
updated_at?: string | null
|
|
2905
|
+
}
|
|
2906
|
+
Update: {
|
|
2907
|
+
bucket_id?: string
|
|
2908
|
+
created_at?: string | null
|
|
2909
|
+
level?: number
|
|
2910
|
+
name?: string
|
|
2911
|
+
updated_at?: string | null
|
|
2912
|
+
}
|
|
2913
|
+
Relationships: [
|
|
2914
|
+
{
|
|
2915
|
+
foreignKeyName: "prefixes_bucketId_fkey"
|
|
2916
|
+
columns: ["bucket_id"]
|
|
2917
|
+
isOneToOne: false
|
|
2918
|
+
referencedRelation: "buckets"
|
|
2919
|
+
referencedColumns: ["id"]
|
|
2920
|
+
},
|
|
2921
|
+
]
|
|
2922
|
+
}
|
|
3006
2923
|
s3_multipart_uploads: {
|
|
3007
2924
|
Row: {
|
|
3008
2925
|
bucket_id: string
|
|
@@ -3106,31 +3023,40 @@ export type Database = {
|
|
|
3106
3023
|
[_ in never]: never
|
|
3107
3024
|
}
|
|
3108
3025
|
Functions: {
|
|
3026
|
+
add_prefixes: {
|
|
3027
|
+
Args: { _bucket_id: string; _name: string }
|
|
3028
|
+
Returns: undefined
|
|
3029
|
+
}
|
|
3109
3030
|
can_insert_object: {
|
|
3110
|
-
Args: {
|
|
3111
|
-
bucketid: string
|
|
3112
|
-
name: string
|
|
3113
|
-
owner: string
|
|
3114
|
-
metadata: Json
|
|
3115
|
-
}
|
|
3031
|
+
Args: { bucketid: string; name: string; owner: string; metadata: Json }
|
|
3116
3032
|
Returns: undefined
|
|
3117
3033
|
}
|
|
3034
|
+
delete_prefix: {
|
|
3035
|
+
Args: { _bucket_id: string; _name: string }
|
|
3036
|
+
Returns: boolean
|
|
3037
|
+
}
|
|
3118
3038
|
extension: {
|
|
3119
|
-
Args: {
|
|
3120
|
-
name: string
|
|
3121
|
-
}
|
|
3039
|
+
Args: { name: string }
|
|
3122
3040
|
Returns: string
|
|
3123
3041
|
}
|
|
3124
3042
|
filename: {
|
|
3125
|
-
Args: {
|
|
3126
|
-
name: string
|
|
3127
|
-
}
|
|
3043
|
+
Args: { name: string }
|
|
3128
3044
|
Returns: string
|
|
3129
3045
|
}
|
|
3130
3046
|
foldername: {
|
|
3131
|
-
Args: {
|
|
3132
|
-
|
|
3133
|
-
|
|
3047
|
+
Args: { name: string }
|
|
3048
|
+
Returns: string[]
|
|
3049
|
+
}
|
|
3050
|
+
get_level: {
|
|
3051
|
+
Args: { name: string }
|
|
3052
|
+
Returns: number
|
|
3053
|
+
}
|
|
3054
|
+
get_prefix: {
|
|
3055
|
+
Args: { name: string }
|
|
3056
|
+
Returns: string
|
|
3057
|
+
}
|
|
3058
|
+
get_prefixes: {
|
|
3059
|
+
Args: { name: string }
|
|
3134
3060
|
Returns: string[]
|
|
3135
3061
|
}
|
|
3136
3062
|
get_size_by_bucket: {
|
|
@@ -3195,6 +3121,63 @@ export type Database = {
|
|
|
3195
3121
|
metadata: Json
|
|
3196
3122
|
}[]
|
|
3197
3123
|
}
|
|
3124
|
+
search_legacy_v1: {
|
|
3125
|
+
Args: {
|
|
3126
|
+
prefix: string
|
|
3127
|
+
bucketname: string
|
|
3128
|
+
limits?: number
|
|
3129
|
+
levels?: number
|
|
3130
|
+
offsets?: number
|
|
3131
|
+
search?: string
|
|
3132
|
+
sortcolumn?: string
|
|
3133
|
+
sortorder?: string
|
|
3134
|
+
}
|
|
3135
|
+
Returns: {
|
|
3136
|
+
name: string
|
|
3137
|
+
id: string
|
|
3138
|
+
updated_at: string
|
|
3139
|
+
created_at: string
|
|
3140
|
+
last_accessed_at: string
|
|
3141
|
+
metadata: Json
|
|
3142
|
+
}[]
|
|
3143
|
+
}
|
|
3144
|
+
search_v1_optimised: {
|
|
3145
|
+
Args: {
|
|
3146
|
+
prefix: string
|
|
3147
|
+
bucketname: string
|
|
3148
|
+
limits?: number
|
|
3149
|
+
levels?: number
|
|
3150
|
+
offsets?: number
|
|
3151
|
+
search?: string
|
|
3152
|
+
sortcolumn?: string
|
|
3153
|
+
sortorder?: string
|
|
3154
|
+
}
|
|
3155
|
+
Returns: {
|
|
3156
|
+
name: string
|
|
3157
|
+
id: string
|
|
3158
|
+
updated_at: string
|
|
3159
|
+
created_at: string
|
|
3160
|
+
last_accessed_at: string
|
|
3161
|
+
metadata: Json
|
|
3162
|
+
}[]
|
|
3163
|
+
}
|
|
3164
|
+
search_v2: {
|
|
3165
|
+
Args: {
|
|
3166
|
+
prefix: string
|
|
3167
|
+
bucket_name: string
|
|
3168
|
+
limits?: number
|
|
3169
|
+
levels?: number
|
|
3170
|
+
start_after?: string
|
|
3171
|
+
}
|
|
3172
|
+
Returns: {
|
|
3173
|
+
key: string
|
|
3174
|
+
name: string
|
|
3175
|
+
id: string
|
|
3176
|
+
updated_at: string
|
|
3177
|
+
created_at: string
|
|
3178
|
+
metadata: Json
|
|
3179
|
+
}[]
|
|
3180
|
+
}
|
|
3198
3181
|
}
|
|
3199
3182
|
Enums: {
|
|
3200
3183
|
[_ in never]: never
|
|
@@ -3205,27 +3188,29 @@ export type Database = {
|
|
|
3205
3188
|
}
|
|
3206
3189
|
}
|
|
3207
3190
|
|
|
3208
|
-
type
|
|
3191
|
+
type DefaultSchema = Database[Extract<keyof Database, "public">]
|
|
3209
3192
|
|
|
3210
3193
|
export type Tables<
|
|
3211
|
-
|
|
3212
|
-
| keyof (
|
|
3194
|
+
DefaultSchemaTableNameOrOptions extends
|
|
3195
|
+
| keyof (DefaultSchema["Tables"] & DefaultSchema["Views"])
|
|
3213
3196
|
| { schema: keyof Database },
|
|
3214
|
-
TableName extends
|
|
3215
|
-
|
|
3216
|
-
|
|
3197
|
+
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3198
|
+
schema: keyof Database
|
|
3199
|
+
}
|
|
3200
|
+
? keyof (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
|
|
3201
|
+
Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
|
|
3217
3202
|
: never = never,
|
|
3218
|
-
> =
|
|
3219
|
-
? (Database[
|
|
3220
|
-
Database[
|
|
3203
|
+
> = DefaultSchemaTableNameOrOptions extends { schema: keyof Database }
|
|
3204
|
+
? (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
|
|
3205
|
+
Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3221
3206
|
Row: infer R
|
|
3222
3207
|
}
|
|
3223
3208
|
? R
|
|
3224
3209
|
: never
|
|
3225
|
-
:
|
|
3226
|
-
|
|
3227
|
-
? (
|
|
3228
|
-
|
|
3210
|
+
: DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] &
|
|
3211
|
+
DefaultSchema["Views"])
|
|
3212
|
+
? (DefaultSchema["Tables"] &
|
|
3213
|
+
DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
3229
3214
|
Row: infer R
|
|
3230
3215
|
}
|
|
3231
3216
|
? R
|
|
@@ -3233,20 +3218,22 @@ export type Tables<
|
|
|
3233
3218
|
: never
|
|
3234
3219
|
|
|
3235
3220
|
export type TablesInsert<
|
|
3236
|
-
|
|
3237
|
-
| keyof
|
|
3221
|
+
DefaultSchemaTableNameOrOptions extends
|
|
3222
|
+
| keyof DefaultSchema["Tables"]
|
|
3238
3223
|
| { schema: keyof Database },
|
|
3239
|
-
TableName extends
|
|
3240
|
-
|
|
3224
|
+
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3225
|
+
schema: keyof Database
|
|
3226
|
+
}
|
|
3227
|
+
? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
3241
3228
|
: never = never,
|
|
3242
|
-
> =
|
|
3243
|
-
? Database[
|
|
3229
|
+
> = DefaultSchemaTableNameOrOptions extends { schema: keyof Database }
|
|
3230
|
+
? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3244
3231
|
Insert: infer I
|
|
3245
3232
|
}
|
|
3246
3233
|
? I
|
|
3247
3234
|
: never
|
|
3248
|
-
:
|
|
3249
|
-
?
|
|
3235
|
+
: DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
|
|
3236
|
+
? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3250
3237
|
Insert: infer I
|
|
3251
3238
|
}
|
|
3252
3239
|
? I
|
|
@@ -3254,20 +3241,22 @@ export type TablesInsert<
|
|
|
3254
3241
|
: never
|
|
3255
3242
|
|
|
3256
3243
|
export type TablesUpdate<
|
|
3257
|
-
|
|
3258
|
-
| keyof
|
|
3244
|
+
DefaultSchemaTableNameOrOptions extends
|
|
3245
|
+
| keyof DefaultSchema["Tables"]
|
|
3259
3246
|
| { schema: keyof Database },
|
|
3260
|
-
TableName extends
|
|
3261
|
-
|
|
3247
|
+
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3248
|
+
schema: keyof Database
|
|
3249
|
+
}
|
|
3250
|
+
? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
3262
3251
|
: never = never,
|
|
3263
|
-
> =
|
|
3264
|
-
? Database[
|
|
3252
|
+
> = DefaultSchemaTableNameOrOptions extends { schema: keyof Database }
|
|
3253
|
+
? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3265
3254
|
Update: infer U
|
|
3266
3255
|
}
|
|
3267
3256
|
? U
|
|
3268
3257
|
: never
|
|
3269
|
-
:
|
|
3270
|
-
?
|
|
3258
|
+
: DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
|
|
3259
|
+
? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3271
3260
|
Update: infer U
|
|
3272
3261
|
}
|
|
3273
3262
|
? U
|
|
@@ -3275,14 +3264,110 @@ export type TablesUpdate<
|
|
|
3275
3264
|
: never
|
|
3276
3265
|
|
|
3277
3266
|
export type Enums<
|
|
3278
|
-
|
|
3279
|
-
| keyof
|
|
3267
|
+
DefaultSchemaEnumNameOrOptions extends
|
|
3268
|
+
| keyof DefaultSchema["Enums"]
|
|
3280
3269
|
| { schema: keyof Database },
|
|
3281
|
-
EnumName extends
|
|
3282
|
-
|
|
3270
|
+
EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
3271
|
+
schema: keyof Database
|
|
3272
|
+
}
|
|
3273
|
+
? keyof Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
|
|
3274
|
+
: never = never,
|
|
3275
|
+
> = DefaultSchemaEnumNameOrOptions extends { schema: keyof Database }
|
|
3276
|
+
? Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName]
|
|
3277
|
+
: DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"]
|
|
3278
|
+
? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions]
|
|
3279
|
+
: never
|
|
3280
|
+
|
|
3281
|
+
export type CompositeTypes<
|
|
3282
|
+
PublicCompositeTypeNameOrOptions extends
|
|
3283
|
+
| keyof DefaultSchema["CompositeTypes"]
|
|
3284
|
+
| { schema: keyof Database },
|
|
3285
|
+
CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
3286
|
+
schema: keyof Database
|
|
3287
|
+
}
|
|
3288
|
+
? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
|
|
3283
3289
|
: never = never,
|
|
3284
|
-
> =
|
|
3285
|
-
? Database[
|
|
3286
|
-
:
|
|
3287
|
-
?
|
|
3290
|
+
> = PublicCompositeTypeNameOrOptions extends { schema: keyof Database }
|
|
3291
|
+
? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
|
|
3292
|
+
: PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"]
|
|
3293
|
+
? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
|
|
3288
3294
|
: never
|
|
3295
|
+
|
|
3296
|
+
export const Constants = {
|
|
3297
|
+
internal: {
|
|
3298
|
+
Enums: {},
|
|
3299
|
+
},
|
|
3300
|
+
public: {
|
|
3301
|
+
Enums: {
|
|
3302
|
+
enum_broadcast_status: ["inprogress", "completed", "stopped", "expired"],
|
|
3303
|
+
enum_chat_colors: [
|
|
3304
|
+
"#B4876E",
|
|
3305
|
+
"#A5B337",
|
|
3306
|
+
"#06CF9C",
|
|
3307
|
+
"#25D366",
|
|
3308
|
+
"#02A698",
|
|
3309
|
+
"#7D9EF1",
|
|
3310
|
+
"#007BFC",
|
|
3311
|
+
"#5E47DE",
|
|
3312
|
+
"#7F66FF",
|
|
3313
|
+
"#9333EA",
|
|
3314
|
+
"#FA6533",
|
|
3315
|
+
"#C4532D",
|
|
3316
|
+
"#DC2626",
|
|
3317
|
+
"#FF2E74",
|
|
3318
|
+
"#DB2777",
|
|
3319
|
+
],
|
|
3320
|
+
enum_chat_tickets_status: ["open", "inprogress", "closed", "archived"],
|
|
3321
|
+
enum_credit_transaction_type: ["credit", "debit"],
|
|
3322
|
+
enum_integration_name: [
|
|
3323
|
+
"org.created",
|
|
3324
|
+
"org.updated",
|
|
3325
|
+
"org.member.created",
|
|
3326
|
+
"org.member.updated",
|
|
3327
|
+
"org.subscription.trial_will_end",
|
|
3328
|
+
"chat.created",
|
|
3329
|
+
"chat.updated",
|
|
3330
|
+
"chat.notification.created",
|
|
3331
|
+
"message.created",
|
|
3332
|
+
"message.updated",
|
|
3333
|
+
"message.deleted",
|
|
3334
|
+
"message.ack.updated",
|
|
3335
|
+
"reaction.created",
|
|
3336
|
+
"reaction.updated",
|
|
3337
|
+
"ticket.created",
|
|
3338
|
+
"ticket.updated",
|
|
3339
|
+
"ticket.deleted",
|
|
3340
|
+
"org.integrations.updated",
|
|
3341
|
+
"message.flagged",
|
|
3342
|
+
"message.unflagged",
|
|
3343
|
+
"chat.label.updated",
|
|
3344
|
+
"reaction.added",
|
|
3345
|
+
"message.ticket.attached",
|
|
3346
|
+
"org.phone.created",
|
|
3347
|
+
"org.phone.connected",
|
|
3348
|
+
"org.phone.disconnected",
|
|
3349
|
+
"org.phone.qr",
|
|
3350
|
+
"org.phone.updated",
|
|
3351
|
+
],
|
|
3352
|
+
enum_integration_type: [
|
|
3353
|
+
"zapier",
|
|
3354
|
+
"pabbly",
|
|
3355
|
+
"api",
|
|
3356
|
+
"webhook",
|
|
3357
|
+
"hubspot",
|
|
3358
|
+
"freshdesk",
|
|
3359
|
+
"slack",
|
|
3360
|
+
"jira",
|
|
3361
|
+
"salesforce",
|
|
3362
|
+
"zohodesk",
|
|
3363
|
+
"gsheets",
|
|
3364
|
+
],
|
|
3365
|
+
enum_member_role: ["admin", "member"],
|
|
3366
|
+
},
|
|
3367
|
+
},
|
|
3368
|
+
storage: {
|
|
3369
|
+
Enums: {},
|
|
3370
|
+
},
|
|
3371
|
+
} as const
|
|
3372
|
+
|
|
3373
|
+
|