@periskope/types 0.6.259 → 0.6.261
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 +3 -3
- package/dist/rules.types.d.ts.map +1 -1
- package/dist/rules.types.js +14 -81
- package/dist/supabase.types.d.ts +107 -174
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/supabase.types.js +0 -76
- package/dist/types.d.ts +1 -283
- package/dist/types.d.ts.map +1 -1
- package/package.json +17 -17
- package/src/rules.types.ts +22 -82
- package/src/supabase.types.ts +199 -275
- package/src/types.ts +1 -0
- package/tsconfig.tsbuildinfo +1 -1
package/src/supabase.types.ts
CHANGED
|
@@ -1,6 +1,31 @@
|
|
|
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
|
+
}
|
|
4
29
|
internal: {
|
|
5
30
|
Tables: {
|
|
6
31
|
config: {
|
|
@@ -187,6 +212,45 @@ export type Database = {
|
|
|
187
212
|
}
|
|
188
213
|
public: {
|
|
189
214
|
Tables: {
|
|
215
|
+
tbl_ai_contexts: {
|
|
216
|
+
Row: {
|
|
217
|
+
answer: string
|
|
218
|
+
attachments: string[] | 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?: string[] | 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?: string[] | 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
|
+
}
|
|
190
254
|
tbl_api_logs: {
|
|
191
255
|
Row: {
|
|
192
256
|
org_id: string
|
|
@@ -827,6 +891,7 @@ export type Database = {
|
|
|
827
891
|
}
|
|
828
892
|
tbl_chat_properties: {
|
|
829
893
|
Row: {
|
|
894
|
+
ai_metadata: Json | null
|
|
830
895
|
assigned_to: string | null
|
|
831
896
|
chat_access: Json | null
|
|
832
897
|
chat_id: string
|
|
@@ -846,6 +911,7 @@ export type Database = {
|
|
|
846
911
|
zohodesk_metadata: Json | null
|
|
847
912
|
}
|
|
848
913
|
Insert: {
|
|
914
|
+
ai_metadata?: Json | null
|
|
849
915
|
assigned_to?: string | null
|
|
850
916
|
chat_access?: Json | null
|
|
851
917
|
chat_id: string
|
|
@@ -865,6 +931,7 @@ export type Database = {
|
|
|
865
931
|
zohodesk_metadata?: Json | null
|
|
866
932
|
}
|
|
867
933
|
Update: {
|
|
934
|
+
ai_metadata?: Json | null
|
|
868
935
|
assigned_to?: string | null
|
|
869
936
|
chat_access?: Json | null
|
|
870
937
|
chat_id?: string
|
|
@@ -1142,7 +1209,6 @@ export type Database = {
|
|
|
1142
1209
|
is_my_contact: boolean | null
|
|
1143
1210
|
is_user: boolean | null
|
|
1144
1211
|
is_wa_contact: boolean | null
|
|
1145
|
-
label_ids: Json
|
|
1146
1212
|
name: string | null
|
|
1147
1213
|
number: string | null
|
|
1148
1214
|
org_id: string
|
|
@@ -1171,7 +1237,6 @@ export type Database = {
|
|
|
1171
1237
|
is_my_contact?: boolean | null
|
|
1172
1238
|
is_user?: boolean | null
|
|
1173
1239
|
is_wa_contact?: boolean | null
|
|
1174
|
-
label_ids?: Json
|
|
1175
1240
|
name?: string | null
|
|
1176
1241
|
number?: string | null
|
|
1177
1242
|
org_id: string
|
|
@@ -1200,7 +1265,6 @@ export type Database = {
|
|
|
1200
1265
|
is_my_contact?: boolean | null
|
|
1201
1266
|
is_user?: boolean | null
|
|
1202
1267
|
is_wa_contact?: boolean | null
|
|
1203
|
-
label_ids?: Json
|
|
1204
1268
|
name?: string | null
|
|
1205
1269
|
number?: string | null
|
|
1206
1270
|
org_id?: string
|
|
@@ -1650,6 +1714,13 @@ export type Database = {
|
|
|
1650
1714
|
user_id?: string | null
|
|
1651
1715
|
}
|
|
1652
1716
|
Relationships: [
|
|
1717
|
+
{
|
|
1718
|
+
foreignKeyName: "tbl_org_members_fkey_auth_users"
|
|
1719
|
+
columns: ["user_id"]
|
|
1720
|
+
isOneToOne: false
|
|
1721
|
+
referencedRelation: "users"
|
|
1722
|
+
referencedColumns: ["id"]
|
|
1723
|
+
},
|
|
1653
1724
|
{
|
|
1654
1725
|
foreignKeyName: "tbl_org_members_fkey_tbl_org"
|
|
1655
1726
|
columns: ["org_id"]
|
|
@@ -1673,6 +1744,7 @@ export type Database = {
|
|
|
1673
1744
|
is_browser_open: boolean
|
|
1674
1745
|
is_ready: boolean | null
|
|
1675
1746
|
label_ids: Json | null
|
|
1747
|
+
last_disconnect: Json | null
|
|
1676
1748
|
library: string | null
|
|
1677
1749
|
org_id: string
|
|
1678
1750
|
org_phone: string | null
|
|
@@ -1696,6 +1768,7 @@ export type Database = {
|
|
|
1696
1768
|
is_browser_open?: boolean
|
|
1697
1769
|
is_ready?: boolean | null
|
|
1698
1770
|
label_ids?: Json | null
|
|
1771
|
+
last_disconnect?: Json | null
|
|
1699
1772
|
library?: string | null
|
|
1700
1773
|
org_id: string
|
|
1701
1774
|
org_phone?: string | null
|
|
@@ -1719,6 +1792,7 @@ export type Database = {
|
|
|
1719
1792
|
is_browser_open?: boolean
|
|
1720
1793
|
is_ready?: boolean | null
|
|
1721
1794
|
label_ids?: Json | null
|
|
1795
|
+
last_disconnect?: Json | null
|
|
1722
1796
|
library?: string | null
|
|
1723
1797
|
org_id?: string
|
|
1724
1798
|
org_phone?: string | null
|
|
@@ -2170,6 +2244,7 @@ export type Database = {
|
|
|
2170
2244
|
view_chats: {
|
|
2171
2245
|
Row: {
|
|
2172
2246
|
add_members_admins_only: boolean | null
|
|
2247
|
+
ai_metadata: Json | null
|
|
2173
2248
|
assigned_to: string | null
|
|
2174
2249
|
chat_access: Json | null
|
|
2175
2250
|
chat_id: string | null
|
|
@@ -2313,34 +2388,51 @@ export type Database = {
|
|
|
2313
2388
|
}
|
|
2314
2389
|
Functions: {
|
|
2315
2390
|
check_feature_flag_access: {
|
|
2316
|
-
Args: {
|
|
2391
|
+
Args: {
|
|
2392
|
+
org_id_input: string
|
|
2393
|
+
feature_input: string
|
|
2394
|
+
}
|
|
2317
2395
|
Returns: boolean
|
|
2318
2396
|
}
|
|
2319
2397
|
custom_access_token_hook: {
|
|
2320
|
-
Args: {
|
|
2398
|
+
Args: {
|
|
2399
|
+
event: Json
|
|
2400
|
+
}
|
|
2321
2401
|
Returns: Json
|
|
2322
2402
|
}
|
|
2323
2403
|
delete_org: {
|
|
2324
|
-
Args: {
|
|
2404
|
+
Args: {
|
|
2405
|
+
org_id_input: string
|
|
2406
|
+
}
|
|
2325
2407
|
Returns: Json
|
|
2326
2408
|
}
|
|
2327
2409
|
drop_partition: {
|
|
2328
|
-
Args: {
|
|
2410
|
+
Args: {
|
|
2411
|
+
org_id_input: string
|
|
2412
|
+
}
|
|
2329
2413
|
Returns: boolean
|
|
2330
2414
|
}
|
|
2331
2415
|
find_discrepancies: {
|
|
2332
|
-
Args: {
|
|
2416
|
+
Args: {
|
|
2417
|
+
p_org_id: string
|
|
2418
|
+
}
|
|
2333
2419
|
Returns: {
|
|
2334
2420
|
a_chat_id: string
|
|
2335
2421
|
discrepancy_count: number
|
|
2336
2422
|
}[]
|
|
2337
2423
|
}
|
|
2338
2424
|
gen_id: {
|
|
2339
|
-
Args: {
|
|
2425
|
+
Args: {
|
|
2426
|
+
prefix: string
|
|
2427
|
+
size?: number
|
|
2428
|
+
alphabet?: string
|
|
2429
|
+
}
|
|
2340
2430
|
Returns: string
|
|
2341
2431
|
}
|
|
2342
2432
|
gen_ticket_id: {
|
|
2343
|
-
Args: {
|
|
2433
|
+
Args: {
|
|
2434
|
+
org_id_input: string
|
|
2435
|
+
}
|
|
2344
2436
|
Returns: string
|
|
2345
2437
|
}
|
|
2346
2438
|
generate_access_token: {
|
|
@@ -2362,7 +2454,10 @@ export type Database = {
|
|
|
2362
2454
|
Returns: Json
|
|
2363
2455
|
}
|
|
2364
2456
|
get_chat_labels_data: {
|
|
2365
|
-
Args: {
|
|
2457
|
+
Args: {
|
|
2458
|
+
org_id_input: string
|
|
2459
|
+
chat_ids_input?: string[]
|
|
2460
|
+
}
|
|
2366
2461
|
Returns: Json[]
|
|
2367
2462
|
}
|
|
2368
2463
|
get_chat_rule_info: {
|
|
@@ -2416,7 +2511,10 @@ export type Database = {
|
|
|
2416
2511
|
Returns: Json
|
|
2417
2512
|
}
|
|
2418
2513
|
get_export_members_data: {
|
|
2419
|
-
Args: {
|
|
2514
|
+
Args: {
|
|
2515
|
+
org_id_input: string
|
|
2516
|
+
chat_id_input?: string[]
|
|
2517
|
+
}
|
|
2420
2518
|
Returns: Json
|
|
2421
2519
|
}
|
|
2422
2520
|
get_export_tickets_data: {
|
|
@@ -2431,7 +2529,9 @@ export type Database = {
|
|
|
2431
2529
|
Returns: Json
|
|
2432
2530
|
}
|
|
2433
2531
|
get_feature_flags: {
|
|
2434
|
-
Args: {
|
|
2532
|
+
Args: {
|
|
2533
|
+
org_id_input: string
|
|
2534
|
+
}
|
|
2435
2535
|
Returns: Json
|
|
2436
2536
|
}
|
|
2437
2537
|
get_formatted_cp_values: {
|
|
@@ -2443,7 +2543,9 @@ export type Database = {
|
|
|
2443
2543
|
Returns: Json
|
|
2444
2544
|
}
|
|
2445
2545
|
get_integration_data: {
|
|
2446
|
-
Args: {
|
|
2546
|
+
Args: {
|
|
2547
|
+
org_id_input?: string
|
|
2548
|
+
}
|
|
2447
2549
|
Returns: Json
|
|
2448
2550
|
}
|
|
2449
2551
|
get_message_rule_info: {
|
|
@@ -2466,19 +2568,28 @@ export type Database = {
|
|
|
2466
2568
|
Returns: Json
|
|
2467
2569
|
}
|
|
2468
2570
|
get_old_credits: {
|
|
2469
|
-
Args: {
|
|
2571
|
+
Args: {
|
|
2572
|
+
org_id_input?: string
|
|
2573
|
+
}
|
|
2470
2574
|
Returns: Json
|
|
2471
2575
|
}
|
|
2472
2576
|
get_org: {
|
|
2473
|
-
Args: {
|
|
2577
|
+
Args: {
|
|
2578
|
+
org_id_input?: string
|
|
2579
|
+
}
|
|
2474
2580
|
Returns: Json
|
|
2475
2581
|
}
|
|
2476
2582
|
get_org_credits: {
|
|
2477
|
-
Args: {
|
|
2583
|
+
Args: {
|
|
2584
|
+
org_id_input?: string
|
|
2585
|
+
}
|
|
2478
2586
|
Returns: Json
|
|
2479
2587
|
}
|
|
2480
2588
|
get_org_phones: {
|
|
2481
|
-
Args: {
|
|
2589
|
+
Args: {
|
|
2590
|
+
org_id_input?: string
|
|
2591
|
+
phone_id_input?: string
|
|
2592
|
+
}
|
|
2482
2593
|
Returns: Json
|
|
2483
2594
|
}
|
|
2484
2595
|
get_reaction_rule_info: {
|
|
@@ -2492,6 +2603,13 @@ export type Database = {
|
|
|
2492
2603
|
}
|
|
2493
2604
|
Returns: Json
|
|
2494
2605
|
}
|
|
2606
|
+
get_relevant_context: {
|
|
2607
|
+
Args: {
|
|
2608
|
+
org_id_input: string
|
|
2609
|
+
query_embedding_input: string
|
|
2610
|
+
}
|
|
2611
|
+
Returns: Json
|
|
2612
|
+
}
|
|
2495
2613
|
get_team_metrics_between_dates: {
|
|
2496
2614
|
Args: {
|
|
2497
2615
|
org_id_input: string
|
|
@@ -2543,7 +2661,10 @@ export type Database = {
|
|
|
2543
2661
|
Returns: string
|
|
2544
2662
|
}
|
|
2545
2663
|
refresh_chat_properties: {
|
|
2546
|
-
Args: {
|
|
2664
|
+
Args: {
|
|
2665
|
+
org_id_input: string
|
|
2666
|
+
chat_id_input?: string
|
|
2667
|
+
}
|
|
2547
2668
|
Returns: undefined
|
|
2548
2669
|
}
|
|
2549
2670
|
update_chat_properties: {
|
|
@@ -2678,7 +2799,11 @@ export type Database = {
|
|
|
2678
2799
|
Returns: undefined
|
|
2679
2800
|
}
|
|
2680
2801
|
update_org_metadata: {
|
|
2681
|
-
Args: {
|
|
2802
|
+
Args: {
|
|
2803
|
+
org_id_input: string
|
|
2804
|
+
key_input?: string
|
|
2805
|
+
value_input?: Json
|
|
2806
|
+
}
|
|
2682
2807
|
Returns: undefined
|
|
2683
2808
|
}
|
|
2684
2809
|
update_rule_log_entry: {
|
|
@@ -2693,6 +2818,7 @@ export type Database = {
|
|
|
2693
2818
|
}
|
|
2694
2819
|
}
|
|
2695
2820
|
Enums: {
|
|
2821
|
+
enum_ai_context_type: "faq" | "document"
|
|
2696
2822
|
enum_broadcast_status: "inprogress" | "completed" | "stopped" | "expired"
|
|
2697
2823
|
enum_chat_colors:
|
|
2698
2824
|
| "#B4876E"
|
|
@@ -2737,10 +2863,10 @@ export type Database = {
|
|
|
2737
2863
|
| "reaction.added"
|
|
2738
2864
|
| "message.ticket.attached"
|
|
2739
2865
|
| "org.phone.created"
|
|
2740
|
-
| "org.phone.updated"
|
|
2741
2866
|
| "org.phone.connected"
|
|
2742
2867
|
| "org.phone.disconnected"
|
|
2743
2868
|
| "org.phone.qr"
|
|
2869
|
+
| "org.phone.updated"
|
|
2744
2870
|
enum_integration_type:
|
|
2745
2871
|
| "zapier"
|
|
2746
2872
|
| "pabbly"
|
|
@@ -2827,7 +2953,6 @@ export type Database = {
|
|
|
2827
2953
|
created_at: string | null
|
|
2828
2954
|
id: string
|
|
2829
2955
|
last_accessed_at: string | null
|
|
2830
|
-
level: number | null
|
|
2831
2956
|
metadata: Json | null
|
|
2832
2957
|
name: string | null
|
|
2833
2958
|
owner: string | null
|
|
@@ -2842,7 +2967,6 @@ export type Database = {
|
|
|
2842
2967
|
created_at?: string | null
|
|
2843
2968
|
id?: string
|
|
2844
2969
|
last_accessed_at?: string | null
|
|
2845
|
-
level?: number | null
|
|
2846
2970
|
metadata?: Json | null
|
|
2847
2971
|
name?: string | null
|
|
2848
2972
|
owner?: string | null
|
|
@@ -2857,7 +2981,6 @@ export type Database = {
|
|
|
2857
2981
|
created_at?: string | null
|
|
2858
2982
|
id?: string
|
|
2859
2983
|
last_accessed_at?: string | null
|
|
2860
|
-
level?: number | null
|
|
2861
2984
|
metadata?: Json | null
|
|
2862
2985
|
name?: string | null
|
|
2863
2986
|
owner?: string | null
|
|
@@ -2877,38 +3000,6 @@ export type Database = {
|
|
|
2877
3000
|
},
|
|
2878
3001
|
]
|
|
2879
3002
|
}
|
|
2880
|
-
prefixes: {
|
|
2881
|
-
Row: {
|
|
2882
|
-
bucket_id: string
|
|
2883
|
-
created_at: string | null
|
|
2884
|
-
level: number
|
|
2885
|
-
name: string
|
|
2886
|
-
updated_at: string | null
|
|
2887
|
-
}
|
|
2888
|
-
Insert: {
|
|
2889
|
-
bucket_id: string
|
|
2890
|
-
created_at?: string | null
|
|
2891
|
-
level?: number
|
|
2892
|
-
name: string
|
|
2893
|
-
updated_at?: string | null
|
|
2894
|
-
}
|
|
2895
|
-
Update: {
|
|
2896
|
-
bucket_id?: string
|
|
2897
|
-
created_at?: string | null
|
|
2898
|
-
level?: number
|
|
2899
|
-
name?: string
|
|
2900
|
-
updated_at?: string | null
|
|
2901
|
-
}
|
|
2902
|
-
Relationships: [
|
|
2903
|
-
{
|
|
2904
|
-
foreignKeyName: "prefixes_bucketId_fkey"
|
|
2905
|
-
columns: ["bucket_id"]
|
|
2906
|
-
isOneToOne: false
|
|
2907
|
-
referencedRelation: "buckets"
|
|
2908
|
-
referencedColumns: ["id"]
|
|
2909
|
-
},
|
|
2910
|
-
]
|
|
2911
|
-
}
|
|
2912
3003
|
s3_multipart_uploads: {
|
|
2913
3004
|
Row: {
|
|
2914
3005
|
bucket_id: string
|
|
@@ -3012,40 +3103,31 @@ export type Database = {
|
|
|
3012
3103
|
[_ in never]: never
|
|
3013
3104
|
}
|
|
3014
3105
|
Functions: {
|
|
3015
|
-
add_prefixes: {
|
|
3016
|
-
Args: { _bucket_id: string; _name: string }
|
|
3017
|
-
Returns: undefined
|
|
3018
|
-
}
|
|
3019
3106
|
can_insert_object: {
|
|
3020
|
-
Args: {
|
|
3107
|
+
Args: {
|
|
3108
|
+
bucketid: string
|
|
3109
|
+
name: string
|
|
3110
|
+
owner: string
|
|
3111
|
+
metadata: Json
|
|
3112
|
+
}
|
|
3021
3113
|
Returns: undefined
|
|
3022
3114
|
}
|
|
3023
|
-
delete_prefix: {
|
|
3024
|
-
Args: { _bucket_id: string; _name: string }
|
|
3025
|
-
Returns: boolean
|
|
3026
|
-
}
|
|
3027
3115
|
extension: {
|
|
3028
|
-
Args: {
|
|
3116
|
+
Args: {
|
|
3117
|
+
name: string
|
|
3118
|
+
}
|
|
3029
3119
|
Returns: string
|
|
3030
3120
|
}
|
|
3031
3121
|
filename: {
|
|
3032
|
-
Args: {
|
|
3122
|
+
Args: {
|
|
3123
|
+
name: string
|
|
3124
|
+
}
|
|
3033
3125
|
Returns: string
|
|
3034
3126
|
}
|
|
3035
3127
|
foldername: {
|
|
3036
|
-
Args: {
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
get_level: {
|
|
3040
|
-
Args: { name: string }
|
|
3041
|
-
Returns: number
|
|
3042
|
-
}
|
|
3043
|
-
get_prefix: {
|
|
3044
|
-
Args: { name: string }
|
|
3045
|
-
Returns: string
|
|
3046
|
-
}
|
|
3047
|
-
get_prefixes: {
|
|
3048
|
-
Args: { name: string }
|
|
3128
|
+
Args: {
|
|
3129
|
+
name: string
|
|
3130
|
+
}
|
|
3049
3131
|
Returns: string[]
|
|
3050
3132
|
}
|
|
3051
3133
|
get_size_by_bucket: {
|
|
@@ -3110,63 +3192,6 @@ export type Database = {
|
|
|
3110
3192
|
metadata: Json
|
|
3111
3193
|
}[]
|
|
3112
3194
|
}
|
|
3113
|
-
search_legacy_v1: {
|
|
3114
|
-
Args: {
|
|
3115
|
-
prefix: string
|
|
3116
|
-
bucketname: string
|
|
3117
|
-
limits?: number
|
|
3118
|
-
levels?: number
|
|
3119
|
-
offsets?: number
|
|
3120
|
-
search?: string
|
|
3121
|
-
sortcolumn?: string
|
|
3122
|
-
sortorder?: string
|
|
3123
|
-
}
|
|
3124
|
-
Returns: {
|
|
3125
|
-
name: string
|
|
3126
|
-
id: string
|
|
3127
|
-
updated_at: string
|
|
3128
|
-
created_at: string
|
|
3129
|
-
last_accessed_at: string
|
|
3130
|
-
metadata: Json
|
|
3131
|
-
}[]
|
|
3132
|
-
}
|
|
3133
|
-
search_v1_optimised: {
|
|
3134
|
-
Args: {
|
|
3135
|
-
prefix: string
|
|
3136
|
-
bucketname: string
|
|
3137
|
-
limits?: number
|
|
3138
|
-
levels?: number
|
|
3139
|
-
offsets?: number
|
|
3140
|
-
search?: string
|
|
3141
|
-
sortcolumn?: string
|
|
3142
|
-
sortorder?: string
|
|
3143
|
-
}
|
|
3144
|
-
Returns: {
|
|
3145
|
-
name: string
|
|
3146
|
-
id: string
|
|
3147
|
-
updated_at: string
|
|
3148
|
-
created_at: string
|
|
3149
|
-
last_accessed_at: string
|
|
3150
|
-
metadata: Json
|
|
3151
|
-
}[]
|
|
3152
|
-
}
|
|
3153
|
-
search_v2: {
|
|
3154
|
-
Args: {
|
|
3155
|
-
prefix: string
|
|
3156
|
-
bucket_name: string
|
|
3157
|
-
limits?: number
|
|
3158
|
-
levels?: number
|
|
3159
|
-
start_after?: string
|
|
3160
|
-
}
|
|
3161
|
-
Returns: {
|
|
3162
|
-
key: string
|
|
3163
|
-
name: string
|
|
3164
|
-
id: string
|
|
3165
|
-
updated_at: string
|
|
3166
|
-
created_at: string
|
|
3167
|
-
metadata: Json
|
|
3168
|
-
}[]
|
|
3169
|
-
}
|
|
3170
3195
|
}
|
|
3171
3196
|
Enums: {
|
|
3172
3197
|
[_ in never]: never
|
|
@@ -3177,29 +3202,27 @@ export type Database = {
|
|
|
3177
3202
|
}
|
|
3178
3203
|
}
|
|
3179
3204
|
|
|
3180
|
-
type
|
|
3205
|
+
type PublicSchema = Database[Extract<keyof Database, "public">]
|
|
3181
3206
|
|
|
3182
3207
|
export type Tables<
|
|
3183
|
-
|
|
3184
|
-
| keyof (
|
|
3208
|
+
PublicTableNameOrOptions extends
|
|
3209
|
+
| keyof (PublicSchema["Tables"] & PublicSchema["Views"])
|
|
3185
3210
|
| { schema: keyof Database },
|
|
3186
|
-
TableName extends
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
? keyof (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
|
|
3190
|
-
Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
|
|
3211
|
+
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3212
|
+
? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] &
|
|
3213
|
+
Database[PublicTableNameOrOptions["schema"]]["Views"])
|
|
3191
3214
|
: never = never,
|
|
3192
|
-
> =
|
|
3193
|
-
? (Database[
|
|
3194
|
-
Database[
|
|
3215
|
+
> = PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3216
|
+
? (Database[PublicTableNameOrOptions["schema"]]["Tables"] &
|
|
3217
|
+
Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3195
3218
|
Row: infer R
|
|
3196
3219
|
}
|
|
3197
3220
|
? R
|
|
3198
3221
|
: never
|
|
3199
|
-
:
|
|
3200
|
-
|
|
3201
|
-
? (
|
|
3202
|
-
|
|
3222
|
+
: PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] &
|
|
3223
|
+
PublicSchema["Views"])
|
|
3224
|
+
? (PublicSchema["Tables"] &
|
|
3225
|
+
PublicSchema["Views"])[PublicTableNameOrOptions] extends {
|
|
3203
3226
|
Row: infer R
|
|
3204
3227
|
}
|
|
3205
3228
|
? R
|
|
@@ -3207,22 +3230,20 @@ export type Tables<
|
|
|
3207
3230
|
: never
|
|
3208
3231
|
|
|
3209
3232
|
export type TablesInsert<
|
|
3210
|
-
|
|
3211
|
-
| keyof
|
|
3233
|
+
PublicTableNameOrOptions extends
|
|
3234
|
+
| keyof PublicSchema["Tables"]
|
|
3212
3235
|
| { schema: keyof Database },
|
|
3213
|
-
TableName extends
|
|
3214
|
-
|
|
3215
|
-
}
|
|
3216
|
-
? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
3236
|
+
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3237
|
+
? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
|
|
3217
3238
|
: never = never,
|
|
3218
|
-
> =
|
|
3219
|
-
? Database[
|
|
3239
|
+
> = PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3240
|
+
? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3220
3241
|
Insert: infer I
|
|
3221
3242
|
}
|
|
3222
3243
|
? I
|
|
3223
3244
|
: never
|
|
3224
|
-
:
|
|
3225
|
-
?
|
|
3245
|
+
: PublicTableNameOrOptions extends keyof PublicSchema["Tables"]
|
|
3246
|
+
? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
3226
3247
|
Insert: infer I
|
|
3227
3248
|
}
|
|
3228
3249
|
? I
|
|
@@ -3230,22 +3251,20 @@ export type TablesInsert<
|
|
|
3230
3251
|
: never
|
|
3231
3252
|
|
|
3232
3253
|
export type TablesUpdate<
|
|
3233
|
-
|
|
3234
|
-
| keyof
|
|
3254
|
+
PublicTableNameOrOptions extends
|
|
3255
|
+
| keyof PublicSchema["Tables"]
|
|
3235
3256
|
| { schema: keyof Database },
|
|
3236
|
-
TableName extends
|
|
3237
|
-
|
|
3238
|
-
}
|
|
3239
|
-
? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
3257
|
+
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3258
|
+
? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
|
|
3240
3259
|
: never = never,
|
|
3241
|
-
> =
|
|
3242
|
-
? Database[
|
|
3260
|
+
> = PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3261
|
+
? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3243
3262
|
Update: infer U
|
|
3244
3263
|
}
|
|
3245
3264
|
? U
|
|
3246
3265
|
: never
|
|
3247
|
-
:
|
|
3248
|
-
?
|
|
3266
|
+
: PublicTableNameOrOptions extends keyof PublicSchema["Tables"]
|
|
3267
|
+
? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
3249
3268
|
Update: infer U
|
|
3250
3269
|
}
|
|
3251
3270
|
? U
|
|
@@ -3253,109 +3272,14 @@ export type TablesUpdate<
|
|
|
3253
3272
|
: never
|
|
3254
3273
|
|
|
3255
3274
|
export type Enums<
|
|
3256
|
-
|
|
3257
|
-
| keyof
|
|
3275
|
+
PublicEnumNameOrOptions extends
|
|
3276
|
+
| keyof PublicSchema["Enums"]
|
|
3258
3277
|
| { schema: keyof Database },
|
|
3259
|
-
EnumName extends
|
|
3260
|
-
|
|
3261
|
-
}
|
|
3262
|
-
? keyof Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
|
|
3278
|
+
EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database }
|
|
3279
|
+
? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"]
|
|
3263
3280
|
: never = never,
|
|
3264
|
-
> =
|
|
3265
|
-
? Database[
|
|
3266
|
-
:
|
|
3267
|
-
?
|
|
3281
|
+
> = PublicEnumNameOrOptions extends { schema: keyof Database }
|
|
3282
|
+
? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName]
|
|
3283
|
+
: PublicEnumNameOrOptions extends keyof PublicSchema["Enums"]
|
|
3284
|
+
? PublicSchema["Enums"][PublicEnumNameOrOptions]
|
|
3268
3285
|
: never
|
|
3269
|
-
|
|
3270
|
-
export type CompositeTypes<
|
|
3271
|
-
PublicCompositeTypeNameOrOptions extends
|
|
3272
|
-
| keyof DefaultSchema["CompositeTypes"]
|
|
3273
|
-
| { schema: keyof Database },
|
|
3274
|
-
CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
3275
|
-
schema: keyof Database
|
|
3276
|
-
}
|
|
3277
|
-
? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
|
|
3278
|
-
: never = never,
|
|
3279
|
-
> = PublicCompositeTypeNameOrOptions extends { schema: keyof Database }
|
|
3280
|
-
? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
|
|
3281
|
-
: PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"]
|
|
3282
|
-
? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
|
|
3283
|
-
: never
|
|
3284
|
-
|
|
3285
|
-
export const Constants = {
|
|
3286
|
-
internal: {
|
|
3287
|
-
Enums: {},
|
|
3288
|
-
},
|
|
3289
|
-
public: {
|
|
3290
|
-
Enums: {
|
|
3291
|
-
enum_broadcast_status: ["inprogress", "completed", "stopped", "expired"],
|
|
3292
|
-
enum_chat_colors: [
|
|
3293
|
-
"#B4876E",
|
|
3294
|
-
"#A5B337",
|
|
3295
|
-
"#06CF9C",
|
|
3296
|
-
"#25D366",
|
|
3297
|
-
"#02A698",
|
|
3298
|
-
"#7D9EF1",
|
|
3299
|
-
"#007BFC",
|
|
3300
|
-
"#5E47DE",
|
|
3301
|
-
"#7F66FF",
|
|
3302
|
-
"#9333EA",
|
|
3303
|
-
"#FA6533",
|
|
3304
|
-
"#C4532D",
|
|
3305
|
-
"#DC2626",
|
|
3306
|
-
"#FF2E74",
|
|
3307
|
-
"#DB2777",
|
|
3308
|
-
],
|
|
3309
|
-
enum_chat_tickets_status: ["open", "inprogress", "closed", "archived"],
|
|
3310
|
-
enum_credit_transaction_type: ["credit", "debit"],
|
|
3311
|
-
enum_integration_name: [
|
|
3312
|
-
"org.created",
|
|
3313
|
-
"org.updated",
|
|
3314
|
-
"org.member.created",
|
|
3315
|
-
"org.member.updated",
|
|
3316
|
-
"org.phone.created",
|
|
3317
|
-
"org.phone.connected",
|
|
3318
|
-
"org.phone.disconnected",
|
|
3319
|
-
"org.subscription.trial_will_end",
|
|
3320
|
-
"chat.created",
|
|
3321
|
-
"chat.updated",
|
|
3322
|
-
"chat.notification.created",
|
|
3323
|
-
"message.created",
|
|
3324
|
-
"message.updated",
|
|
3325
|
-
"message.deleted",
|
|
3326
|
-
"message.ack.updated",
|
|
3327
|
-
"reaction.created",
|
|
3328
|
-
"reaction.updated",
|
|
3329
|
-
"ticket.created",
|
|
3330
|
-
"ticket.updated",
|
|
3331
|
-
"ticket.deleted",
|
|
3332
|
-
"org.integrations.updated",
|
|
3333
|
-
"message.flagged",
|
|
3334
|
-
"message.unflagged",
|
|
3335
|
-
"chat.label.updated",
|
|
3336
|
-
"reaction.added",
|
|
3337
|
-
"message.ticket.attached",
|
|
3338
|
-
"org.phone.qr",
|
|
3339
|
-
],
|
|
3340
|
-
enum_integration_type: [
|
|
3341
|
-
"zapier",
|
|
3342
|
-
"pabbly",
|
|
3343
|
-
"api",
|
|
3344
|
-
"webhook",
|
|
3345
|
-
"hubspot",
|
|
3346
|
-
"freshdesk",
|
|
3347
|
-
"slack",
|
|
3348
|
-
"jira",
|
|
3349
|
-
"salesforce",
|
|
3350
|
-
"zohodesk",
|
|
3351
|
-
"gsheets",
|
|
3352
|
-
],
|
|
3353
|
-
enum_member_role: ["admin", "member"],
|
|
3354
|
-
},
|
|
3355
|
-
},
|
|
3356
|
-
storage: {
|
|
3357
|
-
Enums: {},
|
|
3358
|
-
},
|
|
3359
|
-
} as const
|
|
3360
|
-
|
|
3361
|
-
|