@periskope/types 0.6.270 → 0.6.272
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 +353 -430
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/supabase.types.js +58 -59
- package/dist/types.d.ts +0 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/workflows.types.d.ts +307 -0
- package/dist/workflows.types.d.ts.map +1 -0
- package/dist/workflows.types.js +256 -0
- 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 +167 -194
- package/src/types.ts +1238 -1241
- 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: {
|
|
@@ -1698,6 +1723,13 @@ export type Database = {
|
|
|
1698
1723
|
user_id?: string | null
|
|
1699
1724
|
}
|
|
1700
1725
|
Relationships: [
|
|
1726
|
+
{
|
|
1727
|
+
foreignKeyName: "tbl_org_members_fkey_auth_users"
|
|
1728
|
+
columns: ["user_id"]
|
|
1729
|
+
isOneToOne: false
|
|
1730
|
+
referencedRelation: "users"
|
|
1731
|
+
referencedColumns: ["id"]
|
|
1732
|
+
},
|
|
1701
1733
|
{
|
|
1702
1734
|
foreignKeyName: "tbl_org_members_fkey_tbl_org"
|
|
1703
1735
|
columns: ["org_id"]
|
|
@@ -2245,7 +2277,6 @@ export type Database = {
|
|
|
2245
2277
|
label_ids: Json | null
|
|
2246
2278
|
latest_message: Json | null
|
|
2247
2279
|
member_count: number | null
|
|
2248
|
-
member_unread_count: Json | null
|
|
2249
2280
|
message_unread_count: number | null
|
|
2250
2281
|
messages_admins_only: boolean | null
|
|
2251
2282
|
org_id: string | null
|
|
@@ -2368,23 +2399,51 @@ export type Database = {
|
|
|
2368
2399
|
}
|
|
2369
2400
|
Functions: {
|
|
2370
2401
|
check_feature_flag_access: {
|
|
2371
|
-
Args: {
|
|
2402
|
+
Args: {
|
|
2403
|
+
org_id_input: string
|
|
2404
|
+
feature_input: string
|
|
2405
|
+
}
|
|
2372
2406
|
Returns: boolean
|
|
2373
2407
|
}
|
|
2374
2408
|
custom_access_token_hook: {
|
|
2375
|
-
Args: {
|
|
2409
|
+
Args: {
|
|
2410
|
+
event: Json
|
|
2411
|
+
}
|
|
2376
2412
|
Returns: Json
|
|
2377
2413
|
}
|
|
2378
2414
|
delete_org: {
|
|
2379
|
-
Args: {
|
|
2415
|
+
Args: {
|
|
2416
|
+
org_id_input: string
|
|
2417
|
+
}
|
|
2380
2418
|
Returns: Json
|
|
2381
2419
|
}
|
|
2420
|
+
drop_partition: {
|
|
2421
|
+
Args: {
|
|
2422
|
+
org_id_input: string
|
|
2423
|
+
}
|
|
2424
|
+
Returns: boolean
|
|
2425
|
+
}
|
|
2426
|
+
find_discrepancies: {
|
|
2427
|
+
Args: {
|
|
2428
|
+
p_org_id: string
|
|
2429
|
+
}
|
|
2430
|
+
Returns: {
|
|
2431
|
+
a_chat_id: string
|
|
2432
|
+
discrepancy_count: number
|
|
2433
|
+
}[]
|
|
2434
|
+
}
|
|
2382
2435
|
gen_id: {
|
|
2383
|
-
Args: {
|
|
2436
|
+
Args: {
|
|
2437
|
+
prefix: string
|
|
2438
|
+
size?: number
|
|
2439
|
+
alphabet?: string
|
|
2440
|
+
}
|
|
2384
2441
|
Returns: string
|
|
2385
2442
|
}
|
|
2386
2443
|
gen_ticket_id: {
|
|
2387
|
-
Args: {
|
|
2444
|
+
Args: {
|
|
2445
|
+
org_id_input: string
|
|
2446
|
+
}
|
|
2388
2447
|
Returns: string
|
|
2389
2448
|
}
|
|
2390
2449
|
generate_access_token: {
|
|
@@ -2406,7 +2465,10 @@ export type Database = {
|
|
|
2406
2465
|
Returns: Json
|
|
2407
2466
|
}
|
|
2408
2467
|
get_chat_labels_data: {
|
|
2409
|
-
Args: {
|
|
2468
|
+
Args: {
|
|
2469
|
+
org_id_input: string
|
|
2470
|
+
chat_ids_input?: string[]
|
|
2471
|
+
}
|
|
2410
2472
|
Returns: Json[]
|
|
2411
2473
|
}
|
|
2412
2474
|
get_chat_rule_info: {
|
|
@@ -2460,7 +2522,10 @@ export type Database = {
|
|
|
2460
2522
|
Returns: Json
|
|
2461
2523
|
}
|
|
2462
2524
|
get_export_members_data: {
|
|
2463
|
-
Args: {
|
|
2525
|
+
Args: {
|
|
2526
|
+
org_id_input: string
|
|
2527
|
+
chat_id_input?: string[]
|
|
2528
|
+
}
|
|
2464
2529
|
Returns: Json
|
|
2465
2530
|
}
|
|
2466
2531
|
get_export_tickets_data: {
|
|
@@ -2475,7 +2540,9 @@ export type Database = {
|
|
|
2475
2540
|
Returns: Json
|
|
2476
2541
|
}
|
|
2477
2542
|
get_feature_flags: {
|
|
2478
|
-
Args: {
|
|
2543
|
+
Args: {
|
|
2544
|
+
org_id_input: string
|
|
2545
|
+
}
|
|
2479
2546
|
Returns: Json
|
|
2480
2547
|
}
|
|
2481
2548
|
get_formatted_cp_values: {
|
|
@@ -2487,7 +2554,9 @@ export type Database = {
|
|
|
2487
2554
|
Returns: Json
|
|
2488
2555
|
}
|
|
2489
2556
|
get_integration_data: {
|
|
2490
|
-
Args: {
|
|
2557
|
+
Args: {
|
|
2558
|
+
org_id_input?: string
|
|
2559
|
+
}
|
|
2491
2560
|
Returns: Json
|
|
2492
2561
|
}
|
|
2493
2562
|
get_message_rule_info: {
|
|
@@ -2510,19 +2579,28 @@ export type Database = {
|
|
|
2510
2579
|
Returns: Json
|
|
2511
2580
|
}
|
|
2512
2581
|
get_old_credits: {
|
|
2513
|
-
Args: {
|
|
2582
|
+
Args: {
|
|
2583
|
+
org_id_input?: string
|
|
2584
|
+
}
|
|
2514
2585
|
Returns: Json
|
|
2515
2586
|
}
|
|
2516
2587
|
get_org: {
|
|
2517
|
-
Args: {
|
|
2588
|
+
Args: {
|
|
2589
|
+
org_id_input?: string
|
|
2590
|
+
}
|
|
2518
2591
|
Returns: Json
|
|
2519
2592
|
}
|
|
2520
2593
|
get_org_credits: {
|
|
2521
|
-
Args: {
|
|
2594
|
+
Args: {
|
|
2595
|
+
org_id_input?: string
|
|
2596
|
+
}
|
|
2522
2597
|
Returns: Json
|
|
2523
2598
|
}
|
|
2524
2599
|
get_org_phones: {
|
|
2525
|
-
Args: {
|
|
2600
|
+
Args: {
|
|
2601
|
+
org_id_input?: string
|
|
2602
|
+
phone_id_input?: string
|
|
2603
|
+
}
|
|
2526
2604
|
Returns: Json
|
|
2527
2605
|
}
|
|
2528
2606
|
get_reaction_rule_info: {
|
|
@@ -2537,7 +2615,10 @@ export type Database = {
|
|
|
2537
2615
|
Returns: Json
|
|
2538
2616
|
}
|
|
2539
2617
|
get_relevant_context: {
|
|
2540
|
-
Args: {
|
|
2618
|
+
Args: {
|
|
2619
|
+
org_id_input: string
|
|
2620
|
+
query_embedding_input: string
|
|
2621
|
+
}
|
|
2541
2622
|
Returns: Json
|
|
2542
2623
|
}
|
|
2543
2624
|
get_team_metrics_between_dates: {
|
|
@@ -2591,7 +2672,10 @@ export type Database = {
|
|
|
2591
2672
|
Returns: string
|
|
2592
2673
|
}
|
|
2593
2674
|
refresh_chat_properties: {
|
|
2594
|
-
Args: {
|
|
2675
|
+
Args: {
|
|
2676
|
+
org_id_input: string
|
|
2677
|
+
chat_id_input?: string
|
|
2678
|
+
}
|
|
2595
2679
|
Returns: undefined
|
|
2596
2680
|
}
|
|
2597
2681
|
update_chat_properties: {
|
|
@@ -2728,6 +2812,15 @@ export type Database = {
|
|
|
2728
2812
|
}
|
|
2729
2813
|
Returns: undefined
|
|
2730
2814
|
}
|
|
2815
|
+
delete_org_data_in_batches: {
|
|
2816
|
+
Args: {
|
|
2817
|
+
org_id_input: string
|
|
2818
|
+
table_names_input: string[]
|
|
2819
|
+
batch_size_input: number
|
|
2820
|
+
loop_size_input: number
|
|
2821
|
+
}
|
|
2822
|
+
Returns: unknown
|
|
2823
|
+
}
|
|
2731
2824
|
update_labels: {
|
|
2732
2825
|
Args: {
|
|
2733
2826
|
org_id_input: string
|
|
@@ -2738,7 +2831,11 @@ export type Database = {
|
|
|
2738
2831
|
Returns: undefined
|
|
2739
2832
|
}
|
|
2740
2833
|
update_org_metadata: {
|
|
2741
|
-
Args: {
|
|
2834
|
+
Args: {
|
|
2835
|
+
org_id_input: string
|
|
2836
|
+
key_input?: string
|
|
2837
|
+
value_input?: Json
|
|
2838
|
+
}
|
|
2742
2839
|
Returns: undefined
|
|
2743
2840
|
}
|
|
2744
2841
|
update_rule_log_entry: {
|
|
@@ -2888,7 +2985,6 @@ export type Database = {
|
|
|
2888
2985
|
created_at: string | null
|
|
2889
2986
|
id: string
|
|
2890
2987
|
last_accessed_at: string | null
|
|
2891
|
-
level: number | null
|
|
2892
2988
|
metadata: Json | null
|
|
2893
2989
|
name: string | null
|
|
2894
2990
|
owner: string | null
|
|
@@ -2903,7 +2999,6 @@ export type Database = {
|
|
|
2903
2999
|
created_at?: string | null
|
|
2904
3000
|
id?: string
|
|
2905
3001
|
last_accessed_at?: string | null
|
|
2906
|
-
level?: number | null
|
|
2907
3002
|
metadata?: Json | null
|
|
2908
3003
|
name?: string | null
|
|
2909
3004
|
owner?: string | null
|
|
@@ -2918,7 +3013,6 @@ export type Database = {
|
|
|
2918
3013
|
created_at?: string | null
|
|
2919
3014
|
id?: string
|
|
2920
3015
|
last_accessed_at?: string | null
|
|
2921
|
-
level?: number | null
|
|
2922
3016
|
metadata?: Json | null
|
|
2923
3017
|
name?: string | null
|
|
2924
3018
|
owner?: string | null
|
|
@@ -2938,38 +3032,6 @@ export type Database = {
|
|
|
2938
3032
|
},
|
|
2939
3033
|
]
|
|
2940
3034
|
}
|
|
2941
|
-
prefixes: {
|
|
2942
|
-
Row: {
|
|
2943
|
-
bucket_id: string
|
|
2944
|
-
created_at: string | null
|
|
2945
|
-
level: number
|
|
2946
|
-
name: string
|
|
2947
|
-
updated_at: string | null
|
|
2948
|
-
}
|
|
2949
|
-
Insert: {
|
|
2950
|
-
bucket_id: string
|
|
2951
|
-
created_at?: string | null
|
|
2952
|
-
level?: number
|
|
2953
|
-
name: string
|
|
2954
|
-
updated_at?: string | null
|
|
2955
|
-
}
|
|
2956
|
-
Update: {
|
|
2957
|
-
bucket_id?: string
|
|
2958
|
-
created_at?: string | null
|
|
2959
|
-
level?: number
|
|
2960
|
-
name?: string
|
|
2961
|
-
updated_at?: string | null
|
|
2962
|
-
}
|
|
2963
|
-
Relationships: [
|
|
2964
|
-
{
|
|
2965
|
-
foreignKeyName: "prefixes_bucketId_fkey"
|
|
2966
|
-
columns: ["bucket_id"]
|
|
2967
|
-
isOneToOne: false
|
|
2968
|
-
referencedRelation: "buckets"
|
|
2969
|
-
referencedColumns: ["id"]
|
|
2970
|
-
},
|
|
2971
|
-
]
|
|
2972
|
-
}
|
|
2973
3035
|
s3_multipart_uploads: {
|
|
2974
3036
|
Row: {
|
|
2975
3037
|
bucket_id: string
|
|
@@ -3073,40 +3135,31 @@ export type Database = {
|
|
|
3073
3135
|
[_ in never]: never
|
|
3074
3136
|
}
|
|
3075
3137
|
Functions: {
|
|
3076
|
-
add_prefixes: {
|
|
3077
|
-
Args: { _bucket_id: string; _name: string }
|
|
3078
|
-
Returns: undefined
|
|
3079
|
-
}
|
|
3080
3138
|
can_insert_object: {
|
|
3081
|
-
Args: {
|
|
3139
|
+
Args: {
|
|
3140
|
+
bucketid: string
|
|
3141
|
+
name: string
|
|
3142
|
+
owner: string
|
|
3143
|
+
metadata: Json
|
|
3144
|
+
}
|
|
3082
3145
|
Returns: undefined
|
|
3083
3146
|
}
|
|
3084
|
-
delete_prefix: {
|
|
3085
|
-
Args: { _bucket_id: string; _name: string }
|
|
3086
|
-
Returns: boolean
|
|
3087
|
-
}
|
|
3088
3147
|
extension: {
|
|
3089
|
-
Args: {
|
|
3148
|
+
Args: {
|
|
3149
|
+
name: string
|
|
3150
|
+
}
|
|
3090
3151
|
Returns: string
|
|
3091
3152
|
}
|
|
3092
3153
|
filename: {
|
|
3093
|
-
Args: {
|
|
3154
|
+
Args: {
|
|
3155
|
+
name: string
|
|
3156
|
+
}
|
|
3094
3157
|
Returns: string
|
|
3095
3158
|
}
|
|
3096
3159
|
foldername: {
|
|
3097
|
-
Args: {
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
get_level: {
|
|
3101
|
-
Args: { name: string }
|
|
3102
|
-
Returns: number
|
|
3103
|
-
}
|
|
3104
|
-
get_prefix: {
|
|
3105
|
-
Args: { name: string }
|
|
3106
|
-
Returns: string
|
|
3107
|
-
}
|
|
3108
|
-
get_prefixes: {
|
|
3109
|
-
Args: { name: string }
|
|
3160
|
+
Args: {
|
|
3161
|
+
name: string
|
|
3162
|
+
}
|
|
3110
3163
|
Returns: string[]
|
|
3111
3164
|
}
|
|
3112
3165
|
get_size_by_bucket: {
|
|
@@ -3171,63 +3224,6 @@ export type Database = {
|
|
|
3171
3224
|
metadata: Json
|
|
3172
3225
|
}[]
|
|
3173
3226
|
}
|
|
3174
|
-
search_legacy_v1: {
|
|
3175
|
-
Args: {
|
|
3176
|
-
prefix: string
|
|
3177
|
-
bucketname: string
|
|
3178
|
-
limits?: number
|
|
3179
|
-
levels?: number
|
|
3180
|
-
offsets?: number
|
|
3181
|
-
search?: string
|
|
3182
|
-
sortcolumn?: string
|
|
3183
|
-
sortorder?: string
|
|
3184
|
-
}
|
|
3185
|
-
Returns: {
|
|
3186
|
-
name: string
|
|
3187
|
-
id: string
|
|
3188
|
-
updated_at: string
|
|
3189
|
-
created_at: string
|
|
3190
|
-
last_accessed_at: string
|
|
3191
|
-
metadata: Json
|
|
3192
|
-
}[]
|
|
3193
|
-
}
|
|
3194
|
-
search_v1_optimised: {
|
|
3195
|
-
Args: {
|
|
3196
|
-
prefix: string
|
|
3197
|
-
bucketname: string
|
|
3198
|
-
limits?: number
|
|
3199
|
-
levels?: number
|
|
3200
|
-
offsets?: number
|
|
3201
|
-
search?: string
|
|
3202
|
-
sortcolumn?: string
|
|
3203
|
-
sortorder?: string
|
|
3204
|
-
}
|
|
3205
|
-
Returns: {
|
|
3206
|
-
name: string
|
|
3207
|
-
id: string
|
|
3208
|
-
updated_at: string
|
|
3209
|
-
created_at: string
|
|
3210
|
-
last_accessed_at: string
|
|
3211
|
-
metadata: Json
|
|
3212
|
-
}[]
|
|
3213
|
-
}
|
|
3214
|
-
search_v2: {
|
|
3215
|
-
Args: {
|
|
3216
|
-
prefix: string
|
|
3217
|
-
bucket_name: string
|
|
3218
|
-
limits?: number
|
|
3219
|
-
levels?: number
|
|
3220
|
-
start_after?: string
|
|
3221
|
-
}
|
|
3222
|
-
Returns: {
|
|
3223
|
-
key: string
|
|
3224
|
-
name: string
|
|
3225
|
-
id: string
|
|
3226
|
-
updated_at: string
|
|
3227
|
-
created_at: string
|
|
3228
|
-
metadata: Json
|
|
3229
|
-
}[]
|
|
3230
|
-
}
|
|
3231
3227
|
}
|
|
3232
3228
|
Enums: {
|
|
3233
3229
|
[_ in never]: never
|
|
@@ -3238,29 +3234,27 @@ export type Database = {
|
|
|
3238
3234
|
}
|
|
3239
3235
|
}
|
|
3240
3236
|
|
|
3241
|
-
type
|
|
3237
|
+
type PublicSchema = Database[Extract<keyof Database, "public">]
|
|
3242
3238
|
|
|
3243
3239
|
export type Tables<
|
|
3244
|
-
|
|
3245
|
-
| keyof (
|
|
3240
|
+
PublicTableNameOrOptions extends
|
|
3241
|
+
| keyof (PublicSchema["Tables"] & PublicSchema["Views"])
|
|
3246
3242
|
| { schema: keyof Database },
|
|
3247
|
-
TableName extends
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
? keyof (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
|
|
3251
|
-
Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
|
|
3243
|
+
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3244
|
+
? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] &
|
|
3245
|
+
Database[PublicTableNameOrOptions["schema"]]["Views"])
|
|
3252
3246
|
: never = never,
|
|
3253
|
-
> =
|
|
3254
|
-
? (Database[
|
|
3255
|
-
Database[
|
|
3247
|
+
> = PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3248
|
+
? (Database[PublicTableNameOrOptions["schema"]]["Tables"] &
|
|
3249
|
+
Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3256
3250
|
Row: infer R
|
|
3257
3251
|
}
|
|
3258
3252
|
? R
|
|
3259
3253
|
: never
|
|
3260
|
-
:
|
|
3261
|
-
|
|
3262
|
-
? (
|
|
3263
|
-
|
|
3254
|
+
: PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] &
|
|
3255
|
+
PublicSchema["Views"])
|
|
3256
|
+
? (PublicSchema["Tables"] &
|
|
3257
|
+
PublicSchema["Views"])[PublicTableNameOrOptions] extends {
|
|
3264
3258
|
Row: infer R
|
|
3265
3259
|
}
|
|
3266
3260
|
? R
|
|
@@ -3268,22 +3262,20 @@ export type Tables<
|
|
|
3268
3262
|
: never
|
|
3269
3263
|
|
|
3270
3264
|
export type TablesInsert<
|
|
3271
|
-
|
|
3272
|
-
| keyof
|
|
3265
|
+
PublicTableNameOrOptions extends
|
|
3266
|
+
| keyof PublicSchema["Tables"]
|
|
3273
3267
|
| { schema: keyof Database },
|
|
3274
|
-
TableName extends
|
|
3275
|
-
|
|
3276
|
-
}
|
|
3277
|
-
? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
3268
|
+
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3269
|
+
? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
|
|
3278
3270
|
: never = never,
|
|
3279
|
-
> =
|
|
3280
|
-
? Database[
|
|
3271
|
+
> = PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3272
|
+
? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3281
3273
|
Insert: infer I
|
|
3282
3274
|
}
|
|
3283
3275
|
? I
|
|
3284
3276
|
: never
|
|
3285
|
-
:
|
|
3286
|
-
?
|
|
3277
|
+
: PublicTableNameOrOptions extends keyof PublicSchema["Tables"]
|
|
3278
|
+
? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
3287
3279
|
Insert: infer I
|
|
3288
3280
|
}
|
|
3289
3281
|
? I
|
|
@@ -3291,22 +3283,20 @@ export type TablesInsert<
|
|
|
3291
3283
|
: never
|
|
3292
3284
|
|
|
3293
3285
|
export type TablesUpdate<
|
|
3294
|
-
|
|
3295
|
-
| keyof
|
|
3286
|
+
PublicTableNameOrOptions extends
|
|
3287
|
+
| keyof PublicSchema["Tables"]
|
|
3296
3288
|
| { schema: keyof Database },
|
|
3297
|
-
TableName extends
|
|
3298
|
-
|
|
3299
|
-
}
|
|
3300
|
-
? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
3289
|
+
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3290
|
+
? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
|
|
3301
3291
|
: never = never,
|
|
3302
|
-
> =
|
|
3303
|
-
? Database[
|
|
3292
|
+
> = PublicTableNameOrOptions extends { schema: keyof Database }
|
|
3293
|
+
? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3304
3294
|
Update: infer U
|
|
3305
3295
|
}
|
|
3306
3296
|
? U
|
|
3307
3297
|
: never
|
|
3308
|
-
:
|
|
3309
|
-
?
|
|
3298
|
+
: PublicTableNameOrOptions extends keyof PublicSchema["Tables"]
|
|
3299
|
+
? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
3310
3300
|
Update: infer U
|
|
3311
3301
|
}
|
|
3312
3302
|
? U
|
|
@@ -3314,34 +3304,18 @@ export type TablesUpdate<
|
|
|
3314
3304
|
: never
|
|
3315
3305
|
|
|
3316
3306
|
export type Enums<
|
|
3317
|
-
|
|
3318
|
-
| keyof
|
|
3307
|
+
PublicEnumNameOrOptions extends
|
|
3308
|
+
| keyof PublicSchema["Enums"]
|
|
3319
3309
|
| { schema: keyof Database },
|
|
3320
|
-
EnumName extends
|
|
3321
|
-
|
|
3322
|
-
}
|
|
3323
|
-
? keyof Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
|
|
3310
|
+
EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database }
|
|
3311
|
+
? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"]
|
|
3324
3312
|
: never = never,
|
|
3325
|
-
> =
|
|
3326
|
-
? Database[
|
|
3327
|
-
:
|
|
3328
|
-
?
|
|
3313
|
+
> = PublicEnumNameOrOptions extends { schema: keyof Database }
|
|
3314
|
+
? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName]
|
|
3315
|
+
: PublicEnumNameOrOptions extends keyof PublicSchema["Enums"]
|
|
3316
|
+
? PublicSchema["Enums"][PublicEnumNameOrOptions]
|
|
3329
3317
|
: never
|
|
3330
3318
|
|
|
3331
|
-
export type CompositeTypes<
|
|
3332
|
-
PublicCompositeTypeNameOrOptions extends
|
|
3333
|
-
| keyof DefaultSchema["CompositeTypes"]
|
|
3334
|
-
| { schema: keyof Database },
|
|
3335
|
-
CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
3336
|
-
schema: keyof Database
|
|
3337
|
-
}
|
|
3338
|
-
? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
|
|
3339
|
-
: never = never,
|
|
3340
|
-
> = PublicCompositeTypeNameOrOptions extends { schema: keyof Database }
|
|
3341
|
-
? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
|
|
3342
|
-
: PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"]
|
|
3343
|
-
? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
|
|
3344
|
-
: never
|
|
3345
3319
|
|
|
3346
3320
|
export const Constants = {
|
|
3347
3321
|
internal: {
|
|
@@ -3349,7 +3323,6 @@ export const Constants = {
|
|
|
3349
3323
|
},
|
|
3350
3324
|
public: {
|
|
3351
3325
|
Enums: {
|
|
3352
|
-
enum_ai_context_type: ["faq", "document"],
|
|
3353
3326
|
enum_broadcast_status: ["inprogress", "completed", "stopped", "expired"],
|
|
3354
3327
|
enum_chat_colors: [
|
|
3355
3328
|
"#B4876E",
|
|
@@ -3421,4 +3394,4 @@ export const Constants = {
|
|
|
3421
3394
|
},
|
|
3422
3395
|
} as const
|
|
3423
3396
|
|
|
3424
|
-
|
|
3397
|
+
|