@periskope/types 0.6.260 → 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/supabase.types.d.ts +104 -174
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/supabase.types.js +0 -76
- package/dist/types.d.ts +1 -0
- 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 +199 -277
- package/src/types.ts +1232 -1231
- package/tsconfig.json +18 -18
- package/tsconfig.tsbuildinfo +1 -0
- package/update_package.ps1 +21 -21
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"]
|
|
@@ -2173,6 +2244,7 @@ export type Database = {
|
|
|
2173
2244
|
view_chats: {
|
|
2174
2245
|
Row: {
|
|
2175
2246
|
add_members_admins_only: boolean | null
|
|
2247
|
+
ai_metadata: Json | null
|
|
2176
2248
|
assigned_to: string | null
|
|
2177
2249
|
chat_access: Json | null
|
|
2178
2250
|
chat_id: string | null
|
|
@@ -2316,34 +2388,51 @@ export type Database = {
|
|
|
2316
2388
|
}
|
|
2317
2389
|
Functions: {
|
|
2318
2390
|
check_feature_flag_access: {
|
|
2319
|
-
Args: {
|
|
2391
|
+
Args: {
|
|
2392
|
+
org_id_input: string
|
|
2393
|
+
feature_input: string
|
|
2394
|
+
}
|
|
2320
2395
|
Returns: boolean
|
|
2321
2396
|
}
|
|
2322
2397
|
custom_access_token_hook: {
|
|
2323
|
-
Args: {
|
|
2398
|
+
Args: {
|
|
2399
|
+
event: Json
|
|
2400
|
+
}
|
|
2324
2401
|
Returns: Json
|
|
2325
2402
|
}
|
|
2326
2403
|
delete_org: {
|
|
2327
|
-
Args: {
|
|
2404
|
+
Args: {
|
|
2405
|
+
org_id_input: string
|
|
2406
|
+
}
|
|
2328
2407
|
Returns: Json
|
|
2329
2408
|
}
|
|
2330
2409
|
drop_partition: {
|
|
2331
|
-
Args: {
|
|
2410
|
+
Args: {
|
|
2411
|
+
org_id_input: string
|
|
2412
|
+
}
|
|
2332
2413
|
Returns: boolean
|
|
2333
2414
|
}
|
|
2334
2415
|
find_discrepancies: {
|
|
2335
|
-
Args: {
|
|
2416
|
+
Args: {
|
|
2417
|
+
p_org_id: string
|
|
2418
|
+
}
|
|
2336
2419
|
Returns: {
|
|
2337
2420
|
a_chat_id: string
|
|
2338
2421
|
discrepancy_count: number
|
|
2339
2422
|
}[]
|
|
2340
2423
|
}
|
|
2341
2424
|
gen_id: {
|
|
2342
|
-
Args: {
|
|
2425
|
+
Args: {
|
|
2426
|
+
prefix: string
|
|
2427
|
+
size?: number
|
|
2428
|
+
alphabet?: string
|
|
2429
|
+
}
|
|
2343
2430
|
Returns: string
|
|
2344
2431
|
}
|
|
2345
2432
|
gen_ticket_id: {
|
|
2346
|
-
Args: {
|
|
2433
|
+
Args: {
|
|
2434
|
+
org_id_input: string
|
|
2435
|
+
}
|
|
2347
2436
|
Returns: string
|
|
2348
2437
|
}
|
|
2349
2438
|
generate_access_token: {
|
|
@@ -2365,7 +2454,10 @@ export type Database = {
|
|
|
2365
2454
|
Returns: Json
|
|
2366
2455
|
}
|
|
2367
2456
|
get_chat_labels_data: {
|
|
2368
|
-
Args: {
|
|
2457
|
+
Args: {
|
|
2458
|
+
org_id_input: string
|
|
2459
|
+
chat_ids_input?: string[]
|
|
2460
|
+
}
|
|
2369
2461
|
Returns: Json[]
|
|
2370
2462
|
}
|
|
2371
2463
|
get_chat_rule_info: {
|
|
@@ -2419,7 +2511,10 @@ export type Database = {
|
|
|
2419
2511
|
Returns: Json
|
|
2420
2512
|
}
|
|
2421
2513
|
get_export_members_data: {
|
|
2422
|
-
Args: {
|
|
2514
|
+
Args: {
|
|
2515
|
+
org_id_input: string
|
|
2516
|
+
chat_id_input?: string[]
|
|
2517
|
+
}
|
|
2423
2518
|
Returns: Json
|
|
2424
2519
|
}
|
|
2425
2520
|
get_export_tickets_data: {
|
|
@@ -2434,7 +2529,9 @@ export type Database = {
|
|
|
2434
2529
|
Returns: Json
|
|
2435
2530
|
}
|
|
2436
2531
|
get_feature_flags: {
|
|
2437
|
-
Args: {
|
|
2532
|
+
Args: {
|
|
2533
|
+
org_id_input: string
|
|
2534
|
+
}
|
|
2438
2535
|
Returns: Json
|
|
2439
2536
|
}
|
|
2440
2537
|
get_formatted_cp_values: {
|
|
@@ -2446,7 +2543,9 @@ export type Database = {
|
|
|
2446
2543
|
Returns: Json
|
|
2447
2544
|
}
|
|
2448
2545
|
get_integration_data: {
|
|
2449
|
-
Args: {
|
|
2546
|
+
Args: {
|
|
2547
|
+
org_id_input?: string
|
|
2548
|
+
}
|
|
2450
2549
|
Returns: Json
|
|
2451
2550
|
}
|
|
2452
2551
|
get_message_rule_info: {
|
|
@@ -2469,19 +2568,28 @@ export type Database = {
|
|
|
2469
2568
|
Returns: Json
|
|
2470
2569
|
}
|
|
2471
2570
|
get_old_credits: {
|
|
2472
|
-
Args: {
|
|
2571
|
+
Args: {
|
|
2572
|
+
org_id_input?: string
|
|
2573
|
+
}
|
|
2473
2574
|
Returns: Json
|
|
2474
2575
|
}
|
|
2475
2576
|
get_org: {
|
|
2476
|
-
Args: {
|
|
2577
|
+
Args: {
|
|
2578
|
+
org_id_input?: string
|
|
2579
|
+
}
|
|
2477
2580
|
Returns: Json
|
|
2478
2581
|
}
|
|
2479
2582
|
get_org_credits: {
|
|
2480
|
-
Args: {
|
|
2583
|
+
Args: {
|
|
2584
|
+
org_id_input?: string
|
|
2585
|
+
}
|
|
2481
2586
|
Returns: Json
|
|
2482
2587
|
}
|
|
2483
2588
|
get_org_phones: {
|
|
2484
|
-
Args: {
|
|
2589
|
+
Args: {
|
|
2590
|
+
org_id_input?: string
|
|
2591
|
+
phone_id_input?: string
|
|
2592
|
+
}
|
|
2485
2593
|
Returns: Json
|
|
2486
2594
|
}
|
|
2487
2595
|
get_reaction_rule_info: {
|
|
@@ -2495,6 +2603,13 @@ export type Database = {
|
|
|
2495
2603
|
}
|
|
2496
2604
|
Returns: Json
|
|
2497
2605
|
}
|
|
2606
|
+
get_relevant_context: {
|
|
2607
|
+
Args: {
|
|
2608
|
+
org_id_input: string
|
|
2609
|
+
query_embedding_input: string
|
|
2610
|
+
}
|
|
2611
|
+
Returns: Json
|
|
2612
|
+
}
|
|
2498
2613
|
get_team_metrics_between_dates: {
|
|
2499
2614
|
Args: {
|
|
2500
2615
|
org_id_input: string
|
|
@@ -2546,7 +2661,10 @@ export type Database = {
|
|
|
2546
2661
|
Returns: string
|
|
2547
2662
|
}
|
|
2548
2663
|
refresh_chat_properties: {
|
|
2549
|
-
Args: {
|
|
2664
|
+
Args: {
|
|
2665
|
+
org_id_input: string
|
|
2666
|
+
chat_id_input?: string
|
|
2667
|
+
}
|
|
2550
2668
|
Returns: undefined
|
|
2551
2669
|
}
|
|
2552
2670
|
update_chat_properties: {
|
|
@@ -2681,7 +2799,11 @@ export type Database = {
|
|
|
2681
2799
|
Returns: undefined
|
|
2682
2800
|
}
|
|
2683
2801
|
update_org_metadata: {
|
|
2684
|
-
Args: {
|
|
2802
|
+
Args: {
|
|
2803
|
+
org_id_input: string
|
|
2804
|
+
key_input?: string
|
|
2805
|
+
value_input?: Json
|
|
2806
|
+
}
|
|
2685
2807
|
Returns: undefined
|
|
2686
2808
|
}
|
|
2687
2809
|
update_rule_log_entry: {
|
|
@@ -2696,6 +2818,7 @@ export type Database = {
|
|
|
2696
2818
|
}
|
|
2697
2819
|
}
|
|
2698
2820
|
Enums: {
|
|
2821
|
+
enum_ai_context_type: "faq" | "document"
|
|
2699
2822
|
enum_broadcast_status: "inprogress" | "completed" | "stopped" | "expired"
|
|
2700
2823
|
enum_chat_colors:
|
|
2701
2824
|
| "#B4876E"
|
|
@@ -2720,9 +2843,6 @@ export type Database = {
|
|
|
2720
2843
|
| "org.updated"
|
|
2721
2844
|
| "org.member.created"
|
|
2722
2845
|
| "org.member.updated"
|
|
2723
|
-
| "org.phone.created"
|
|
2724
|
-
| "org.phone.connected"
|
|
2725
|
-
| "org.phone.disconnected"
|
|
2726
2846
|
| "org.subscription.trial_will_end"
|
|
2727
2847
|
| "chat.created"
|
|
2728
2848
|
| "chat.updated"
|
|
@@ -2742,7 +2862,11 @@ export type Database = {
|
|
|
2742
2862
|
| "chat.label.updated"
|
|
2743
2863
|
| "reaction.added"
|
|
2744
2864
|
| "message.ticket.attached"
|
|
2865
|
+
| "org.phone.created"
|
|
2866
|
+
| "org.phone.connected"
|
|
2867
|
+
| "org.phone.disconnected"
|
|
2745
2868
|
| "org.phone.qr"
|
|
2869
|
+
| "org.phone.updated"
|
|
2746
2870
|
enum_integration_type:
|
|
2747
2871
|
| "zapier"
|
|
2748
2872
|
| "pabbly"
|
|
@@ -2829,7 +2953,6 @@ export type Database = {
|
|
|
2829
2953
|
created_at: string | null
|
|
2830
2954
|
id: string
|
|
2831
2955
|
last_accessed_at: string | null
|
|
2832
|
-
level: number | null
|
|
2833
2956
|
metadata: Json | null
|
|
2834
2957
|
name: string | null
|
|
2835
2958
|
owner: string | null
|
|
@@ -2844,7 +2967,6 @@ export type Database = {
|
|
|
2844
2967
|
created_at?: string | null
|
|
2845
2968
|
id?: string
|
|
2846
2969
|
last_accessed_at?: string | null
|
|
2847
|
-
level?: number | null
|
|
2848
2970
|
metadata?: Json | null
|
|
2849
2971
|
name?: string | null
|
|
2850
2972
|
owner?: string | null
|
|
@@ -2859,7 +2981,6 @@ export type Database = {
|
|
|
2859
2981
|
created_at?: string | null
|
|
2860
2982
|
id?: string
|
|
2861
2983
|
last_accessed_at?: string | null
|
|
2862
|
-
level?: number | null
|
|
2863
2984
|
metadata?: Json | null
|
|
2864
2985
|
name?: string | null
|
|
2865
2986
|
owner?: string | null
|
|
@@ -2879,38 +3000,6 @@ export type Database = {
|
|
|
2879
3000
|
},
|
|
2880
3001
|
]
|
|
2881
3002
|
}
|
|
2882
|
-
prefixes: {
|
|
2883
|
-
Row: {
|
|
2884
|
-
bucket_id: string
|
|
2885
|
-
created_at: string | null
|
|
2886
|
-
level: number
|
|
2887
|
-
name: string
|
|
2888
|
-
updated_at: string | null
|
|
2889
|
-
}
|
|
2890
|
-
Insert: {
|
|
2891
|
-
bucket_id: string
|
|
2892
|
-
created_at?: string | null
|
|
2893
|
-
level?: number
|
|
2894
|
-
name: string
|
|
2895
|
-
updated_at?: string | null
|
|
2896
|
-
}
|
|
2897
|
-
Update: {
|
|
2898
|
-
bucket_id?: string
|
|
2899
|
-
created_at?: string | null
|
|
2900
|
-
level?: number
|
|
2901
|
-
name?: string
|
|
2902
|
-
updated_at?: string | null
|
|
2903
|
-
}
|
|
2904
|
-
Relationships: [
|
|
2905
|
-
{
|
|
2906
|
-
foreignKeyName: "prefixes_bucketId_fkey"
|
|
2907
|
-
columns: ["bucket_id"]
|
|
2908
|
-
isOneToOne: false
|
|
2909
|
-
referencedRelation: "buckets"
|
|
2910
|
-
referencedColumns: ["id"]
|
|
2911
|
-
},
|
|
2912
|
-
]
|
|
2913
|
-
}
|
|
2914
3003
|
s3_multipart_uploads: {
|
|
2915
3004
|
Row: {
|
|
2916
3005
|
bucket_id: string
|
|
@@ -3014,40 +3103,31 @@ export type Database = {
|
|
|
3014
3103
|
[_ in never]: never
|
|
3015
3104
|
}
|
|
3016
3105
|
Functions: {
|
|
3017
|
-
add_prefixes: {
|
|
3018
|
-
Args: { _bucket_id: string; _name: string }
|
|
3019
|
-
Returns: undefined
|
|
3020
|
-
}
|
|
3021
3106
|
can_insert_object: {
|
|
3022
|
-
Args: {
|
|
3107
|
+
Args: {
|
|
3108
|
+
bucketid: string
|
|
3109
|
+
name: string
|
|
3110
|
+
owner: string
|
|
3111
|
+
metadata: Json
|
|
3112
|
+
}
|
|
3023
3113
|
Returns: undefined
|
|
3024
3114
|
}
|
|
3025
|
-
delete_prefix: {
|
|
3026
|
-
Args: { _bucket_id: string; _name: string }
|
|
3027
|
-
Returns: boolean
|
|
3028
|
-
}
|
|
3029
3115
|
extension: {
|
|
3030
|
-
Args: {
|
|
3116
|
+
Args: {
|
|
3117
|
+
name: string
|
|
3118
|
+
}
|
|
3031
3119
|
Returns: string
|
|
3032
3120
|
}
|
|
3033
3121
|
filename: {
|
|
3034
|
-
Args: {
|
|
3122
|
+
Args: {
|
|
3123
|
+
name: string
|
|
3124
|
+
}
|
|
3035
3125
|
Returns: string
|
|
3036
3126
|
}
|
|
3037
3127
|
foldername: {
|
|
3038
|
-
Args: {
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
get_level: {
|
|
3042
|
-
Args: { name: string }
|
|
3043
|
-
Returns: number
|
|
3044
|
-
}
|
|
3045
|
-
get_prefix: {
|
|
3046
|
-
Args: { name: string }
|
|
3047
|
-
Returns: string
|
|
3048
|
-
}
|
|
3049
|
-
get_prefixes: {
|
|
3050
|
-
Args: { name: string }
|
|
3128
|
+
Args: {
|
|
3129
|
+
name: string
|
|
3130
|
+
}
|
|
3051
3131
|
Returns: string[]
|
|
3052
3132
|
}
|
|
3053
3133
|
get_size_by_bucket: {
|
|
@@ -3112,63 +3192,6 @@ export type Database = {
|
|
|
3112
3192
|
metadata: Json
|
|
3113
3193
|
}[]
|
|
3114
3194
|
}
|
|
3115
|
-
search_legacy_v1: {
|
|
3116
|
-
Args: {
|
|
3117
|
-
prefix: string
|
|
3118
|
-
bucketname: string
|
|
3119
|
-
limits?: number
|
|
3120
|
-
levels?: number
|
|
3121
|
-
offsets?: number
|
|
3122
|
-
search?: string
|
|
3123
|
-
sortcolumn?: string
|
|
3124
|
-
sortorder?: string
|
|
3125
|
-
}
|
|
3126
|
-
Returns: {
|
|
3127
|
-
name: string
|
|
3128
|
-
id: string
|
|
3129
|
-
updated_at: string
|
|
3130
|
-
created_at: string
|
|
3131
|
-
last_accessed_at: string
|
|
3132
|
-
metadata: Json
|
|
3133
|
-
}[]
|
|
3134
|
-
}
|
|
3135
|
-
search_v1_optimised: {
|
|
3136
|
-
Args: {
|
|
3137
|
-
prefix: string
|
|
3138
|
-
bucketname: string
|
|
3139
|
-
limits?: number
|
|
3140
|
-
levels?: number
|
|
3141
|
-
offsets?: number
|
|
3142
|
-
search?: string
|
|
3143
|
-
sortcolumn?: string
|
|
3144
|
-
sortorder?: string
|
|
3145
|
-
}
|
|
3146
|
-
Returns: {
|
|
3147
|
-
name: string
|
|
3148
|
-
id: string
|
|
3149
|
-
updated_at: string
|
|
3150
|
-
created_at: string
|
|
3151
|
-
last_accessed_at: string
|
|
3152
|
-
metadata: Json
|
|
3153
|
-
}[]
|
|
3154
|
-
}
|
|
3155
|
-
search_v2: {
|
|
3156
|
-
Args: {
|
|
3157
|
-
prefix: string
|
|
3158
|
-
bucket_name: string
|
|
3159
|
-
limits?: number
|
|
3160
|
-
levels?: number
|
|
3161
|
-
start_after?: string
|
|
3162
|
-
}
|
|
3163
|
-
Returns: {
|
|
3164
|
-
key: string
|
|
3165
|
-
name: string
|
|
3166
|
-
id: string
|
|
3167
|
-
updated_at: string
|
|
3168
|
-
created_at: string
|
|
3169
|
-
metadata: Json
|
|
3170
|
-
}[]
|
|
3171
|
-
}
|
|
3172
3195
|
}
|
|
3173
3196
|
Enums: {
|
|
3174
3197
|
[_ in never]: never
|
|
@@ -3179,29 +3202,27 @@ export type Database = {
|
|
|
3179
3202
|
}
|
|
3180
3203
|
}
|
|
3181
3204
|
|
|
3182
|
-
type
|
|
3205
|
+
type PublicSchema = Database[Extract<keyof Database, "public">]
|
|
3183
3206
|
|
|
3184
3207
|
export type Tables<
|
|
3185
|
-
|
|
3186
|
-
| keyof (
|
|
3208
|
+
PublicTableNameOrOptions extends
|
|
3209
|
+
| keyof (PublicSchema["Tables"] & PublicSchema["Views"])
|
|
3187
3210
|
| { schema: keyof Database },
|
|
3188
|
-
TableName extends
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
? keyof (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
|
|
3192
|
-
Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
|
|
3211
|
+
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3212
|
+
? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] &
|
|
3213
|
+
Database[PublicTableNameOrOptions["schema"]]["Views"])
|
|
3193
3214
|
: never = never,
|
|
3194
|
-
> =
|
|
3195
|
-
? (Database[
|
|
3196
|
-
Database[
|
|
3215
|
+
> = PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3216
|
+
? (Database[PublicTableNameOrOptions["schema"]]["Tables"] &
|
|
3217
|
+
Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3197
3218
|
Row: infer R
|
|
3198
3219
|
}
|
|
3199
3220
|
? R
|
|
3200
3221
|
: never
|
|
3201
|
-
:
|
|
3202
|
-
|
|
3203
|
-
? (
|
|
3204
|
-
|
|
3222
|
+
: PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] &
|
|
3223
|
+
PublicSchema["Views"])
|
|
3224
|
+
? (PublicSchema["Tables"] &
|
|
3225
|
+
PublicSchema["Views"])[PublicTableNameOrOptions] extends {
|
|
3205
3226
|
Row: infer R
|
|
3206
3227
|
}
|
|
3207
3228
|
? R
|
|
@@ -3209,22 +3230,20 @@ export type Tables<
|
|
|
3209
3230
|
: never
|
|
3210
3231
|
|
|
3211
3232
|
export type TablesInsert<
|
|
3212
|
-
|
|
3213
|
-
| keyof
|
|
3233
|
+
PublicTableNameOrOptions extends
|
|
3234
|
+
| keyof PublicSchema["Tables"]
|
|
3214
3235
|
| { schema: keyof Database },
|
|
3215
|
-
TableName extends
|
|
3216
|
-
|
|
3217
|
-
}
|
|
3218
|
-
? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
3236
|
+
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3237
|
+
? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
|
|
3219
3238
|
: never = never,
|
|
3220
|
-
> =
|
|
3221
|
-
? Database[
|
|
3239
|
+
> = PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3240
|
+
? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3222
3241
|
Insert: infer I
|
|
3223
3242
|
}
|
|
3224
3243
|
? I
|
|
3225
3244
|
: never
|
|
3226
|
-
:
|
|
3227
|
-
?
|
|
3245
|
+
: PublicTableNameOrOptions extends keyof PublicSchema["Tables"]
|
|
3246
|
+
? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
3228
3247
|
Insert: infer I
|
|
3229
3248
|
}
|
|
3230
3249
|
? I
|
|
@@ -3232,22 +3251,20 @@ export type TablesInsert<
|
|
|
3232
3251
|
: never
|
|
3233
3252
|
|
|
3234
3253
|
export type TablesUpdate<
|
|
3235
|
-
|
|
3236
|
-
| keyof
|
|
3254
|
+
PublicTableNameOrOptions extends
|
|
3255
|
+
| keyof PublicSchema["Tables"]
|
|
3237
3256
|
| { schema: keyof Database },
|
|
3238
|
-
TableName extends
|
|
3239
|
-
|
|
3240
|
-
}
|
|
3241
|
-
? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
3257
|
+
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3258
|
+
? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
|
|
3242
3259
|
: never = never,
|
|
3243
|
-
> =
|
|
3244
|
-
? Database[
|
|
3260
|
+
> = PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3261
|
+
? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3245
3262
|
Update: infer U
|
|
3246
3263
|
}
|
|
3247
3264
|
? U
|
|
3248
3265
|
: never
|
|
3249
|
-
:
|
|
3250
|
-
?
|
|
3266
|
+
: PublicTableNameOrOptions extends keyof PublicSchema["Tables"]
|
|
3267
|
+
? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
3251
3268
|
Update: infer U
|
|
3252
3269
|
}
|
|
3253
3270
|
? U
|
|
@@ -3255,109 +3272,14 @@ export type TablesUpdate<
|
|
|
3255
3272
|
: never
|
|
3256
3273
|
|
|
3257
3274
|
export type Enums<
|
|
3258
|
-
|
|
3259
|
-
| keyof
|
|
3275
|
+
PublicEnumNameOrOptions extends
|
|
3276
|
+
| keyof PublicSchema["Enums"]
|
|
3260
3277
|
| { schema: keyof Database },
|
|
3261
|
-
EnumName extends
|
|
3262
|
-
|
|
3263
|
-
}
|
|
3264
|
-
? keyof Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
|
|
3265
|
-
: never = never,
|
|
3266
|
-
> = DefaultSchemaEnumNameOrOptions extends { schema: keyof Database }
|
|
3267
|
-
? Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName]
|
|
3268
|
-
: DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"]
|
|
3269
|
-
? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions]
|
|
3270
|
-
: never
|
|
3271
|
-
|
|
3272
|
-
export type CompositeTypes<
|
|
3273
|
-
PublicCompositeTypeNameOrOptions extends
|
|
3274
|
-
| keyof DefaultSchema["CompositeTypes"]
|
|
3275
|
-
| { schema: keyof Database },
|
|
3276
|
-
CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
3277
|
-
schema: keyof Database
|
|
3278
|
-
}
|
|
3279
|
-
? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
|
|
3278
|
+
EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database }
|
|
3279
|
+
? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"]
|
|
3280
3280
|
: never = never,
|
|
3281
|
-
> =
|
|
3282
|
-
? Database[
|
|
3283
|
-
:
|
|
3284
|
-
?
|
|
3281
|
+
> = PublicEnumNameOrOptions extends { schema: keyof Database }
|
|
3282
|
+
? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName]
|
|
3283
|
+
: PublicEnumNameOrOptions extends keyof PublicSchema["Enums"]
|
|
3284
|
+
? PublicSchema["Enums"][PublicEnumNameOrOptions]
|
|
3285
3285
|
: never
|
|
3286
|
-
|
|
3287
|
-
export const Constants = {
|
|
3288
|
-
internal: {
|
|
3289
|
-
Enums: {},
|
|
3290
|
-
},
|
|
3291
|
-
public: {
|
|
3292
|
-
Enums: {
|
|
3293
|
-
enum_broadcast_status: ["inprogress", "completed", "stopped", "expired"],
|
|
3294
|
-
enum_chat_colors: [
|
|
3295
|
-
"#B4876E",
|
|
3296
|
-
"#A5B337",
|
|
3297
|
-
"#06CF9C",
|
|
3298
|
-
"#25D366",
|
|
3299
|
-
"#02A698",
|
|
3300
|
-
"#7D9EF1",
|
|
3301
|
-
"#007BFC",
|
|
3302
|
-
"#5E47DE",
|
|
3303
|
-
"#7F66FF",
|
|
3304
|
-
"#9333EA",
|
|
3305
|
-
"#FA6533",
|
|
3306
|
-
"#C4532D",
|
|
3307
|
-
"#DC2626",
|
|
3308
|
-
"#FF2E74",
|
|
3309
|
-
"#DB2777",
|
|
3310
|
-
],
|
|
3311
|
-
enum_chat_tickets_status: ["open", "inprogress", "closed", "archived"],
|
|
3312
|
-
enum_credit_transaction_type: ["credit", "debit"],
|
|
3313
|
-
enum_integration_name: [
|
|
3314
|
-
"org.created",
|
|
3315
|
-
"org.updated",
|
|
3316
|
-
"org.member.created",
|
|
3317
|
-
"org.member.updated",
|
|
3318
|
-
"org.phone.created",
|
|
3319
|
-
"org.phone.connected",
|
|
3320
|
-
"org.phone.disconnected",
|
|
3321
|
-
"org.subscription.trial_will_end",
|
|
3322
|
-
"chat.created",
|
|
3323
|
-
"chat.updated",
|
|
3324
|
-
"chat.notification.created",
|
|
3325
|
-
"message.created",
|
|
3326
|
-
"message.updated",
|
|
3327
|
-
"message.deleted",
|
|
3328
|
-
"message.ack.updated",
|
|
3329
|
-
"reaction.created",
|
|
3330
|
-
"reaction.updated",
|
|
3331
|
-
"ticket.created",
|
|
3332
|
-
"ticket.updated",
|
|
3333
|
-
"ticket.deleted",
|
|
3334
|
-
"org.integrations.updated",
|
|
3335
|
-
"message.flagged",
|
|
3336
|
-
"message.unflagged",
|
|
3337
|
-
"chat.label.updated",
|
|
3338
|
-
"reaction.added",
|
|
3339
|
-
"message.ticket.attached",
|
|
3340
|
-
"org.phone.qr",
|
|
3341
|
-
],
|
|
3342
|
-
enum_integration_type: [
|
|
3343
|
-
"zapier",
|
|
3344
|
-
"pabbly",
|
|
3345
|
-
"api",
|
|
3346
|
-
"webhook",
|
|
3347
|
-
"hubspot",
|
|
3348
|
-
"freshdesk",
|
|
3349
|
-
"slack",
|
|
3350
|
-
"jira",
|
|
3351
|
-
"salesforce",
|
|
3352
|
-
"zohodesk",
|
|
3353
|
-
"gsheets",
|
|
3354
|
-
],
|
|
3355
|
-
enum_member_role: ["admin", "member"],
|
|
3356
|
-
},
|
|
3357
|
-
},
|
|
3358
|
-
storage: {
|
|
3359
|
-
Enums: {},
|
|
3360
|
-
},
|
|
3361
|
-
} as const
|
|
3362
|
-
|
|
3363
|
-
|