@periskope/types 0.6.260 → 0.6.262
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 +107 -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 +202 -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,7 @@ 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
|
|
1212
|
+
label_ids: Json | null
|
|
1146
1213
|
name: string | null
|
|
1147
1214
|
number: string | null
|
|
1148
1215
|
org_id: string
|
|
@@ -1171,7 +1238,7 @@ export type Database = {
|
|
|
1171
1238
|
is_my_contact?: boolean | null
|
|
1172
1239
|
is_user?: boolean | null
|
|
1173
1240
|
is_wa_contact?: boolean | null
|
|
1174
|
-
label_ids?: Json
|
|
1241
|
+
label_ids?: Json | null
|
|
1175
1242
|
name?: string | null
|
|
1176
1243
|
number?: string | null
|
|
1177
1244
|
org_id: string
|
|
@@ -1200,7 +1267,7 @@ export type Database = {
|
|
|
1200
1267
|
is_my_contact?: boolean | null
|
|
1201
1268
|
is_user?: boolean | null
|
|
1202
1269
|
is_wa_contact?: boolean | null
|
|
1203
|
-
label_ids?: Json
|
|
1270
|
+
label_ids?: Json | null
|
|
1204
1271
|
name?: string | null
|
|
1205
1272
|
number?: string | null
|
|
1206
1273
|
org_id?: string
|
|
@@ -1650,6 +1717,13 @@ export type Database = {
|
|
|
1650
1717
|
user_id?: string | null
|
|
1651
1718
|
}
|
|
1652
1719
|
Relationships: [
|
|
1720
|
+
{
|
|
1721
|
+
foreignKeyName: "tbl_org_members_fkey_auth_users"
|
|
1722
|
+
columns: ["user_id"]
|
|
1723
|
+
isOneToOne: false
|
|
1724
|
+
referencedRelation: "users"
|
|
1725
|
+
referencedColumns: ["id"]
|
|
1726
|
+
},
|
|
1653
1727
|
{
|
|
1654
1728
|
foreignKeyName: "tbl_org_members_fkey_tbl_org"
|
|
1655
1729
|
columns: ["org_id"]
|
|
@@ -2173,6 +2247,7 @@ export type Database = {
|
|
|
2173
2247
|
view_chats: {
|
|
2174
2248
|
Row: {
|
|
2175
2249
|
add_members_admins_only: boolean | null
|
|
2250
|
+
ai_metadata: Json | null
|
|
2176
2251
|
assigned_to: string | null
|
|
2177
2252
|
chat_access: Json | null
|
|
2178
2253
|
chat_id: string | null
|
|
@@ -2316,34 +2391,51 @@ export type Database = {
|
|
|
2316
2391
|
}
|
|
2317
2392
|
Functions: {
|
|
2318
2393
|
check_feature_flag_access: {
|
|
2319
|
-
Args: {
|
|
2394
|
+
Args: {
|
|
2395
|
+
org_id_input: string
|
|
2396
|
+
feature_input: string
|
|
2397
|
+
}
|
|
2320
2398
|
Returns: boolean
|
|
2321
2399
|
}
|
|
2322
2400
|
custom_access_token_hook: {
|
|
2323
|
-
Args: {
|
|
2401
|
+
Args: {
|
|
2402
|
+
event: Json
|
|
2403
|
+
}
|
|
2324
2404
|
Returns: Json
|
|
2325
2405
|
}
|
|
2326
2406
|
delete_org: {
|
|
2327
|
-
Args: {
|
|
2407
|
+
Args: {
|
|
2408
|
+
org_id_input: string
|
|
2409
|
+
}
|
|
2328
2410
|
Returns: Json
|
|
2329
2411
|
}
|
|
2330
2412
|
drop_partition: {
|
|
2331
|
-
Args: {
|
|
2413
|
+
Args: {
|
|
2414
|
+
org_id_input: string
|
|
2415
|
+
}
|
|
2332
2416
|
Returns: boolean
|
|
2333
2417
|
}
|
|
2334
2418
|
find_discrepancies: {
|
|
2335
|
-
Args: {
|
|
2419
|
+
Args: {
|
|
2420
|
+
p_org_id: string
|
|
2421
|
+
}
|
|
2336
2422
|
Returns: {
|
|
2337
2423
|
a_chat_id: string
|
|
2338
2424
|
discrepancy_count: number
|
|
2339
2425
|
}[]
|
|
2340
2426
|
}
|
|
2341
2427
|
gen_id: {
|
|
2342
|
-
Args: {
|
|
2428
|
+
Args: {
|
|
2429
|
+
prefix: string
|
|
2430
|
+
size?: number
|
|
2431
|
+
alphabet?: string
|
|
2432
|
+
}
|
|
2343
2433
|
Returns: string
|
|
2344
2434
|
}
|
|
2345
2435
|
gen_ticket_id: {
|
|
2346
|
-
Args: {
|
|
2436
|
+
Args: {
|
|
2437
|
+
org_id_input: string
|
|
2438
|
+
}
|
|
2347
2439
|
Returns: string
|
|
2348
2440
|
}
|
|
2349
2441
|
generate_access_token: {
|
|
@@ -2365,7 +2457,10 @@ export type Database = {
|
|
|
2365
2457
|
Returns: Json
|
|
2366
2458
|
}
|
|
2367
2459
|
get_chat_labels_data: {
|
|
2368
|
-
Args: {
|
|
2460
|
+
Args: {
|
|
2461
|
+
org_id_input: string
|
|
2462
|
+
chat_ids_input?: string[]
|
|
2463
|
+
}
|
|
2369
2464
|
Returns: Json[]
|
|
2370
2465
|
}
|
|
2371
2466
|
get_chat_rule_info: {
|
|
@@ -2419,7 +2514,10 @@ export type Database = {
|
|
|
2419
2514
|
Returns: Json
|
|
2420
2515
|
}
|
|
2421
2516
|
get_export_members_data: {
|
|
2422
|
-
Args: {
|
|
2517
|
+
Args: {
|
|
2518
|
+
org_id_input: string
|
|
2519
|
+
chat_id_input?: string[]
|
|
2520
|
+
}
|
|
2423
2521
|
Returns: Json
|
|
2424
2522
|
}
|
|
2425
2523
|
get_export_tickets_data: {
|
|
@@ -2434,7 +2532,9 @@ export type Database = {
|
|
|
2434
2532
|
Returns: Json
|
|
2435
2533
|
}
|
|
2436
2534
|
get_feature_flags: {
|
|
2437
|
-
Args: {
|
|
2535
|
+
Args: {
|
|
2536
|
+
org_id_input: string
|
|
2537
|
+
}
|
|
2438
2538
|
Returns: Json
|
|
2439
2539
|
}
|
|
2440
2540
|
get_formatted_cp_values: {
|
|
@@ -2446,7 +2546,9 @@ export type Database = {
|
|
|
2446
2546
|
Returns: Json
|
|
2447
2547
|
}
|
|
2448
2548
|
get_integration_data: {
|
|
2449
|
-
Args: {
|
|
2549
|
+
Args: {
|
|
2550
|
+
org_id_input?: string
|
|
2551
|
+
}
|
|
2450
2552
|
Returns: Json
|
|
2451
2553
|
}
|
|
2452
2554
|
get_message_rule_info: {
|
|
@@ -2469,19 +2571,28 @@ export type Database = {
|
|
|
2469
2571
|
Returns: Json
|
|
2470
2572
|
}
|
|
2471
2573
|
get_old_credits: {
|
|
2472
|
-
Args: {
|
|
2574
|
+
Args: {
|
|
2575
|
+
org_id_input?: string
|
|
2576
|
+
}
|
|
2473
2577
|
Returns: Json
|
|
2474
2578
|
}
|
|
2475
2579
|
get_org: {
|
|
2476
|
-
Args: {
|
|
2580
|
+
Args: {
|
|
2581
|
+
org_id_input?: string
|
|
2582
|
+
}
|
|
2477
2583
|
Returns: Json
|
|
2478
2584
|
}
|
|
2479
2585
|
get_org_credits: {
|
|
2480
|
-
Args: {
|
|
2586
|
+
Args: {
|
|
2587
|
+
org_id_input?: string
|
|
2588
|
+
}
|
|
2481
2589
|
Returns: Json
|
|
2482
2590
|
}
|
|
2483
2591
|
get_org_phones: {
|
|
2484
|
-
Args: {
|
|
2592
|
+
Args: {
|
|
2593
|
+
org_id_input?: string
|
|
2594
|
+
phone_id_input?: string
|
|
2595
|
+
}
|
|
2485
2596
|
Returns: Json
|
|
2486
2597
|
}
|
|
2487
2598
|
get_reaction_rule_info: {
|
|
@@ -2495,6 +2606,13 @@ export type Database = {
|
|
|
2495
2606
|
}
|
|
2496
2607
|
Returns: Json
|
|
2497
2608
|
}
|
|
2609
|
+
get_relevant_context: {
|
|
2610
|
+
Args: {
|
|
2611
|
+
org_id_input: string
|
|
2612
|
+
query_embedding_input: string
|
|
2613
|
+
}
|
|
2614
|
+
Returns: Json
|
|
2615
|
+
}
|
|
2498
2616
|
get_team_metrics_between_dates: {
|
|
2499
2617
|
Args: {
|
|
2500
2618
|
org_id_input: string
|
|
@@ -2546,7 +2664,10 @@ export type Database = {
|
|
|
2546
2664
|
Returns: string
|
|
2547
2665
|
}
|
|
2548
2666
|
refresh_chat_properties: {
|
|
2549
|
-
Args: {
|
|
2667
|
+
Args: {
|
|
2668
|
+
org_id_input: string
|
|
2669
|
+
chat_id_input?: string
|
|
2670
|
+
}
|
|
2550
2671
|
Returns: undefined
|
|
2551
2672
|
}
|
|
2552
2673
|
update_chat_properties: {
|
|
@@ -2681,7 +2802,11 @@ export type Database = {
|
|
|
2681
2802
|
Returns: undefined
|
|
2682
2803
|
}
|
|
2683
2804
|
update_org_metadata: {
|
|
2684
|
-
Args: {
|
|
2805
|
+
Args: {
|
|
2806
|
+
org_id_input: string
|
|
2807
|
+
key_input?: string
|
|
2808
|
+
value_input?: Json
|
|
2809
|
+
}
|
|
2685
2810
|
Returns: undefined
|
|
2686
2811
|
}
|
|
2687
2812
|
update_rule_log_entry: {
|
|
@@ -2696,6 +2821,7 @@ export type Database = {
|
|
|
2696
2821
|
}
|
|
2697
2822
|
}
|
|
2698
2823
|
Enums: {
|
|
2824
|
+
enum_ai_context_type: "faq" | "document"
|
|
2699
2825
|
enum_broadcast_status: "inprogress" | "completed" | "stopped" | "expired"
|
|
2700
2826
|
enum_chat_colors:
|
|
2701
2827
|
| "#B4876E"
|
|
@@ -2720,9 +2846,6 @@ export type Database = {
|
|
|
2720
2846
|
| "org.updated"
|
|
2721
2847
|
| "org.member.created"
|
|
2722
2848
|
| "org.member.updated"
|
|
2723
|
-
| "org.phone.created"
|
|
2724
|
-
| "org.phone.connected"
|
|
2725
|
-
| "org.phone.disconnected"
|
|
2726
2849
|
| "org.subscription.trial_will_end"
|
|
2727
2850
|
| "chat.created"
|
|
2728
2851
|
| "chat.updated"
|
|
@@ -2742,7 +2865,11 @@ export type Database = {
|
|
|
2742
2865
|
| "chat.label.updated"
|
|
2743
2866
|
| "reaction.added"
|
|
2744
2867
|
| "message.ticket.attached"
|
|
2868
|
+
| "org.phone.created"
|
|
2869
|
+
| "org.phone.connected"
|
|
2870
|
+
| "org.phone.disconnected"
|
|
2745
2871
|
| "org.phone.qr"
|
|
2872
|
+
| "org.phone.updated"
|
|
2746
2873
|
enum_integration_type:
|
|
2747
2874
|
| "zapier"
|
|
2748
2875
|
| "pabbly"
|
|
@@ -2829,7 +2956,6 @@ export type Database = {
|
|
|
2829
2956
|
created_at: string | null
|
|
2830
2957
|
id: string
|
|
2831
2958
|
last_accessed_at: string | null
|
|
2832
|
-
level: number | null
|
|
2833
2959
|
metadata: Json | null
|
|
2834
2960
|
name: string | null
|
|
2835
2961
|
owner: string | null
|
|
@@ -2844,7 +2970,6 @@ export type Database = {
|
|
|
2844
2970
|
created_at?: string | null
|
|
2845
2971
|
id?: string
|
|
2846
2972
|
last_accessed_at?: string | null
|
|
2847
|
-
level?: number | null
|
|
2848
2973
|
metadata?: Json | null
|
|
2849
2974
|
name?: string | null
|
|
2850
2975
|
owner?: string | null
|
|
@@ -2859,7 +2984,6 @@ export type Database = {
|
|
|
2859
2984
|
created_at?: string | null
|
|
2860
2985
|
id?: string
|
|
2861
2986
|
last_accessed_at?: string | null
|
|
2862
|
-
level?: number | null
|
|
2863
2987
|
metadata?: Json | null
|
|
2864
2988
|
name?: string | null
|
|
2865
2989
|
owner?: string | null
|
|
@@ -2879,38 +3003,6 @@ export type Database = {
|
|
|
2879
3003
|
},
|
|
2880
3004
|
]
|
|
2881
3005
|
}
|
|
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
3006
|
s3_multipart_uploads: {
|
|
2915
3007
|
Row: {
|
|
2916
3008
|
bucket_id: string
|
|
@@ -3014,40 +3106,31 @@ export type Database = {
|
|
|
3014
3106
|
[_ in never]: never
|
|
3015
3107
|
}
|
|
3016
3108
|
Functions: {
|
|
3017
|
-
add_prefixes: {
|
|
3018
|
-
Args: { _bucket_id: string; _name: string }
|
|
3019
|
-
Returns: undefined
|
|
3020
|
-
}
|
|
3021
3109
|
can_insert_object: {
|
|
3022
|
-
Args: {
|
|
3110
|
+
Args: {
|
|
3111
|
+
bucketid: string
|
|
3112
|
+
name: string
|
|
3113
|
+
owner: string
|
|
3114
|
+
metadata: Json
|
|
3115
|
+
}
|
|
3023
3116
|
Returns: undefined
|
|
3024
3117
|
}
|
|
3025
|
-
delete_prefix: {
|
|
3026
|
-
Args: { _bucket_id: string; _name: string }
|
|
3027
|
-
Returns: boolean
|
|
3028
|
-
}
|
|
3029
3118
|
extension: {
|
|
3030
|
-
Args: {
|
|
3119
|
+
Args: {
|
|
3120
|
+
name: string
|
|
3121
|
+
}
|
|
3031
3122
|
Returns: string
|
|
3032
3123
|
}
|
|
3033
3124
|
filename: {
|
|
3034
|
-
Args: {
|
|
3125
|
+
Args: {
|
|
3126
|
+
name: string
|
|
3127
|
+
}
|
|
3035
3128
|
Returns: string
|
|
3036
3129
|
}
|
|
3037
3130
|
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 }
|
|
3131
|
+
Args: {
|
|
3132
|
+
name: string
|
|
3133
|
+
}
|
|
3051
3134
|
Returns: string[]
|
|
3052
3135
|
}
|
|
3053
3136
|
get_size_by_bucket: {
|
|
@@ -3112,63 +3195,6 @@ export type Database = {
|
|
|
3112
3195
|
metadata: Json
|
|
3113
3196
|
}[]
|
|
3114
3197
|
}
|
|
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
3198
|
}
|
|
3173
3199
|
Enums: {
|
|
3174
3200
|
[_ in never]: never
|
|
@@ -3179,29 +3205,27 @@ export type Database = {
|
|
|
3179
3205
|
}
|
|
3180
3206
|
}
|
|
3181
3207
|
|
|
3182
|
-
type
|
|
3208
|
+
type PublicSchema = Database[Extract<keyof Database, "public">]
|
|
3183
3209
|
|
|
3184
3210
|
export type Tables<
|
|
3185
|
-
|
|
3186
|
-
| keyof (
|
|
3211
|
+
PublicTableNameOrOptions extends
|
|
3212
|
+
| keyof (PublicSchema["Tables"] & PublicSchema["Views"])
|
|
3187
3213
|
| { schema: keyof Database },
|
|
3188
|
-
TableName extends
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
? keyof (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
|
|
3192
|
-
Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
|
|
3214
|
+
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3215
|
+
? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] &
|
|
3216
|
+
Database[PublicTableNameOrOptions["schema"]]["Views"])
|
|
3193
3217
|
: never = never,
|
|
3194
|
-
> =
|
|
3195
|
-
? (Database[
|
|
3196
|
-
Database[
|
|
3218
|
+
> = PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3219
|
+
? (Database[PublicTableNameOrOptions["schema"]]["Tables"] &
|
|
3220
|
+
Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3197
3221
|
Row: infer R
|
|
3198
3222
|
}
|
|
3199
3223
|
? R
|
|
3200
3224
|
: never
|
|
3201
|
-
:
|
|
3202
|
-
|
|
3203
|
-
? (
|
|
3204
|
-
|
|
3225
|
+
: PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] &
|
|
3226
|
+
PublicSchema["Views"])
|
|
3227
|
+
? (PublicSchema["Tables"] &
|
|
3228
|
+
PublicSchema["Views"])[PublicTableNameOrOptions] extends {
|
|
3205
3229
|
Row: infer R
|
|
3206
3230
|
}
|
|
3207
3231
|
? R
|
|
@@ -3209,22 +3233,20 @@ export type Tables<
|
|
|
3209
3233
|
: never
|
|
3210
3234
|
|
|
3211
3235
|
export type TablesInsert<
|
|
3212
|
-
|
|
3213
|
-
| keyof
|
|
3236
|
+
PublicTableNameOrOptions extends
|
|
3237
|
+
| keyof PublicSchema["Tables"]
|
|
3214
3238
|
| { schema: keyof Database },
|
|
3215
|
-
TableName extends
|
|
3216
|
-
|
|
3217
|
-
}
|
|
3218
|
-
? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
3239
|
+
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3240
|
+
? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
|
|
3219
3241
|
: never = never,
|
|
3220
|
-
> =
|
|
3221
|
-
? Database[
|
|
3242
|
+
> = PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3243
|
+
? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3222
3244
|
Insert: infer I
|
|
3223
3245
|
}
|
|
3224
3246
|
? I
|
|
3225
3247
|
: never
|
|
3226
|
-
:
|
|
3227
|
-
?
|
|
3248
|
+
: PublicTableNameOrOptions extends keyof PublicSchema["Tables"]
|
|
3249
|
+
? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
3228
3250
|
Insert: infer I
|
|
3229
3251
|
}
|
|
3230
3252
|
? I
|
|
@@ -3232,22 +3254,20 @@ export type TablesInsert<
|
|
|
3232
3254
|
: never
|
|
3233
3255
|
|
|
3234
3256
|
export type TablesUpdate<
|
|
3235
|
-
|
|
3236
|
-
| keyof
|
|
3257
|
+
PublicTableNameOrOptions extends
|
|
3258
|
+
| keyof PublicSchema["Tables"]
|
|
3237
3259
|
| { schema: keyof Database },
|
|
3238
|
-
TableName extends
|
|
3239
|
-
|
|
3240
|
-
}
|
|
3241
|
-
? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
3260
|
+
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3261
|
+
? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
|
|
3242
3262
|
: never = never,
|
|
3243
|
-
> =
|
|
3244
|
-
? Database[
|
|
3263
|
+
> = PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3264
|
+
? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3245
3265
|
Update: infer U
|
|
3246
3266
|
}
|
|
3247
3267
|
? U
|
|
3248
3268
|
: never
|
|
3249
|
-
:
|
|
3250
|
-
?
|
|
3269
|
+
: PublicTableNameOrOptions extends keyof PublicSchema["Tables"]
|
|
3270
|
+
? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
3251
3271
|
Update: infer U
|
|
3252
3272
|
}
|
|
3253
3273
|
? U
|
|
@@ -3255,109 +3275,14 @@ export type TablesUpdate<
|
|
|
3255
3275
|
: never
|
|
3256
3276
|
|
|
3257
3277
|
export type Enums<
|
|
3258
|
-
|
|
3259
|
-
| keyof
|
|
3260
|
-
| { schema: keyof Database },
|
|
3261
|
-
EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
3262
|
-
schema: keyof Database
|
|
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"]
|
|
3278
|
+
PublicEnumNameOrOptions extends
|
|
3279
|
+
| keyof PublicSchema["Enums"]
|
|
3275
3280
|
| { schema: keyof Database },
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
}
|
|
3279
|
-
? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
|
|
3281
|
+
EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database }
|
|
3282
|
+
? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"]
|
|
3280
3283
|
: never = never,
|
|
3281
|
-
> =
|
|
3282
|
-
? Database[
|
|
3283
|
-
:
|
|
3284
|
-
?
|
|
3284
|
+
> = PublicEnumNameOrOptions extends { schema: keyof Database }
|
|
3285
|
+
? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName]
|
|
3286
|
+
: PublicEnumNameOrOptions extends keyof PublicSchema["Enums"]
|
|
3287
|
+
? PublicSchema["Enums"][PublicEnumNameOrOptions]
|
|
3285
3288
|
: 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
|
-
|