@periskope/types 0.6.263 → 0.6.264

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.
@@ -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: Json | null
219
+ context_id: string
220
+ created_at: string | null
221
+ document_id: string | null
222
+ embedding: string
223
+ metadata: Json | null
224
+ org_id: string
225
+ question: string
226
+ type: Database["public"]["Enums"]["enum_ai_context_type"] | null
227
+ }
228
+ Insert: {
229
+ answer: string
230
+ attachments?: Json | null
231
+ context_id?: string
232
+ created_at?: string | null
233
+ document_id?: string | null
234
+ embedding: string
235
+ metadata?: Json | null
236
+ org_id: string
237
+ question: string
238
+ type?: Database["public"]["Enums"]["enum_ai_context_type"] | null
239
+ }
240
+ Update: {
241
+ answer?: string
242
+ attachments?: Json | null
243
+ context_id?: string
244
+ created_at?: string | null
245
+ document_id?: string | null
246
+ embedding?: string
247
+ metadata?: Json | null
248
+ org_id?: string
249
+ question?: string
250
+ type?: Database["public"]["Enums"]["enum_ai_context_type"] | null
251
+ }
252
+ Relationships: []
253
+ }
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"]
@@ -1893,63 +1967,6 @@ export type Database = {
1893
1967
  },
1894
1968
  ]
1895
1969
  }
1896
- tbl_org_workflows: {
1897
- Row: {
1898
- actions: Json
1899
- created_at: string
1900
- deleted_at: string | null
1901
- id: string
1902
- is_active: boolean
1903
- name: string
1904
- org_id: string
1905
- trigger: string
1906
- trigger_metadata: Json
1907
- updated_at: string
1908
- updated_by: string
1909
- }
1910
- Insert: {
1911
- actions?: Json
1912
- created_at?: string
1913
- deleted_at?: string | null
1914
- id?: string
1915
- is_active?: boolean
1916
- name: string
1917
- org_id: string
1918
- trigger: string
1919
- trigger_metadata?: Json
1920
- updated_at?: string
1921
- updated_by: string
1922
- }
1923
- Update: {
1924
- actions?: Json
1925
- created_at?: string
1926
- deleted_at?: string | null
1927
- id?: string
1928
- is_active?: boolean
1929
- name?: string
1930
- org_id?: string
1931
- trigger?: string
1932
- trigger_metadata?: Json
1933
- updated_at?: string
1934
- updated_by?: string
1935
- }
1936
- Relationships: [
1937
- {
1938
- foreignKeyName: "tbl_org_workflows_org_id_fkey"
1939
- columns: ["org_id"]
1940
- isOneToOne: false
1941
- referencedRelation: "tbl_org"
1942
- referencedColumns: ["org_id"]
1943
- },
1944
- {
1945
- foreignKeyName: "tbl_org_workflows_org_id_fkey"
1946
- columns: ["org_id"]
1947
- isOneToOne: false
1948
- referencedRelation: "view_org"
1949
- referencedColumns: ["org_id"]
1950
- },
1951
- ]
1952
- }
1953
1970
  tbl_quick_replies: {
1954
1971
  Row: {
1955
1972
  command: string | null
@@ -2230,6 +2247,7 @@ export type Database = {
2230
2247
  view_chats: {
2231
2248
  Row: {
2232
2249
  add_members_admins_only: boolean | null
2250
+ ai_metadata: Json | null
2233
2251
  assigned_to: string | null
2234
2252
  chat_access: Json | null
2235
2253
  chat_id: string | null
@@ -2373,34 +2391,51 @@ export type Database = {
2373
2391
  }
2374
2392
  Functions: {
2375
2393
  check_feature_flag_access: {
2376
- Args: { org_id_input: string; feature_input: string }
2394
+ Args: {
2395
+ org_id_input: string
2396
+ feature_input: string
2397
+ }
2377
2398
  Returns: boolean
2378
2399
  }
2379
2400
  custom_access_token_hook: {
2380
- Args: { event: Json }
2401
+ Args: {
2402
+ event: Json
2403
+ }
2381
2404
  Returns: Json
2382
2405
  }
2383
2406
  delete_org: {
2384
- Args: { org_id_input: string }
2407
+ Args: {
2408
+ org_id_input: string
2409
+ }
2385
2410
  Returns: Json
2386
2411
  }
2387
2412
  drop_partition: {
2388
- Args: { org_id_input: string }
2413
+ Args: {
2414
+ org_id_input: string
2415
+ }
2389
2416
  Returns: boolean
2390
2417
  }
2391
2418
  find_discrepancies: {
2392
- Args: { p_org_id: string }
2419
+ Args: {
2420
+ p_org_id: string
2421
+ }
2393
2422
  Returns: {
2394
2423
  a_chat_id: string
2395
2424
  discrepancy_count: number
2396
2425
  }[]
2397
2426
  }
2398
2427
  gen_id: {
2399
- Args: { prefix: string; size?: number; alphabet?: string }
2428
+ Args: {
2429
+ prefix: string
2430
+ size?: number
2431
+ alphabet?: string
2432
+ }
2400
2433
  Returns: string
2401
2434
  }
2402
2435
  gen_ticket_id: {
2403
- Args: { org_id_input: string }
2436
+ Args: {
2437
+ org_id_input: string
2438
+ }
2404
2439
  Returns: string
2405
2440
  }
2406
2441
  generate_access_token: {
@@ -2422,7 +2457,10 @@ export type Database = {
2422
2457
  Returns: Json
2423
2458
  }
2424
2459
  get_chat_labels_data: {
2425
- Args: { org_id_input: string; chat_ids_input?: string[] }
2460
+ Args: {
2461
+ org_id_input: string
2462
+ chat_ids_input?: string[]
2463
+ }
2426
2464
  Returns: Json[]
2427
2465
  }
2428
2466
  get_chat_rule_info: {
@@ -2476,7 +2514,10 @@ export type Database = {
2476
2514
  Returns: Json
2477
2515
  }
2478
2516
  get_export_members_data: {
2479
- Args: { org_id_input: string; chat_id_input?: string[] }
2517
+ Args: {
2518
+ org_id_input: string
2519
+ chat_id_input?: string[]
2520
+ }
2480
2521
  Returns: Json
2481
2522
  }
2482
2523
  get_export_tickets_data: {
@@ -2491,7 +2532,9 @@ export type Database = {
2491
2532
  Returns: Json
2492
2533
  }
2493
2534
  get_feature_flags: {
2494
- Args: { org_id_input: string }
2535
+ Args: {
2536
+ org_id_input: string
2537
+ }
2495
2538
  Returns: Json
2496
2539
  }
2497
2540
  get_formatted_cp_values: {
@@ -2503,7 +2546,9 @@ export type Database = {
2503
2546
  Returns: Json
2504
2547
  }
2505
2548
  get_integration_data: {
2506
- Args: { org_id_input?: string }
2549
+ Args: {
2550
+ org_id_input?: string
2551
+ }
2507
2552
  Returns: Json
2508
2553
  }
2509
2554
  get_message_rule_info: {
@@ -2526,19 +2571,28 @@ export type Database = {
2526
2571
  Returns: Json
2527
2572
  }
2528
2573
  get_old_credits: {
2529
- Args: { org_id_input?: string }
2574
+ Args: {
2575
+ org_id_input?: string
2576
+ }
2530
2577
  Returns: Json
2531
2578
  }
2532
2579
  get_org: {
2533
- Args: { org_id_input?: string }
2580
+ Args: {
2581
+ org_id_input?: string
2582
+ }
2534
2583
  Returns: Json
2535
2584
  }
2536
2585
  get_org_credits: {
2537
- Args: { org_id_input?: string }
2586
+ Args: {
2587
+ org_id_input?: string
2588
+ }
2538
2589
  Returns: Json
2539
2590
  }
2540
2591
  get_org_phones: {
2541
- Args: { org_id_input?: string; phone_id_input?: string }
2592
+ Args: {
2593
+ org_id_input?: string
2594
+ phone_id_input?: string
2595
+ }
2542
2596
  Returns: Json
2543
2597
  }
2544
2598
  get_reaction_rule_info: {
@@ -2552,6 +2606,13 @@ export type Database = {
2552
2606
  }
2553
2607
  Returns: Json
2554
2608
  }
2609
+ get_relevant_context: {
2610
+ Args: {
2611
+ org_id_input: string
2612
+ query_embedding_input: string
2613
+ }
2614
+ Returns: Json
2615
+ }
2555
2616
  get_team_metrics_between_dates: {
2556
2617
  Args: {
2557
2618
  org_id_input: string
@@ -2603,7 +2664,10 @@ export type Database = {
2603
2664
  Returns: string
2604
2665
  }
2605
2666
  refresh_chat_properties: {
2606
- Args: { org_id_input: string; chat_id_input?: string }
2667
+ Args: {
2668
+ org_id_input: string
2669
+ chat_id_input?: string
2670
+ }
2607
2671
  Returns: undefined
2608
2672
  }
2609
2673
  update_chat_properties: {
@@ -2738,7 +2802,11 @@ export type Database = {
2738
2802
  Returns: undefined
2739
2803
  }
2740
2804
  update_org_metadata: {
2741
- Args: { org_id_input: string; key_input?: string; value_input?: Json }
2805
+ Args: {
2806
+ org_id_input: string
2807
+ key_input?: string
2808
+ value_input?: Json
2809
+ }
2742
2810
  Returns: undefined
2743
2811
  }
2744
2812
  update_rule_log_entry: {
@@ -2753,6 +2821,7 @@ export type Database = {
2753
2821
  }
2754
2822
  }
2755
2823
  Enums: {
2824
+ enum_ai_context_type: "faq" | "document"
2756
2825
  enum_broadcast_status: "inprogress" | "completed" | "stopped" | "expired"
2757
2826
  enum_chat_colors:
2758
2827
  | "#B4876E"
@@ -2797,10 +2866,10 @@ export type Database = {
2797
2866
  | "reaction.added"
2798
2867
  | "message.ticket.attached"
2799
2868
  | "org.phone.created"
2800
- | "org.phone.updated"
2801
2869
  | "org.phone.connected"
2802
2870
  | "org.phone.disconnected"
2803
2871
  | "org.phone.qr"
2872
+ | "org.phone.updated"
2804
2873
  enum_integration_type:
2805
2874
  | "zapier"
2806
2875
  | "pabbly"
@@ -2887,7 +2956,6 @@ export type Database = {
2887
2956
  created_at: string | null
2888
2957
  id: string
2889
2958
  last_accessed_at: string | null
2890
- level: number | null
2891
2959
  metadata: Json | null
2892
2960
  name: string | null
2893
2961
  owner: string | null
@@ -2902,7 +2970,6 @@ export type Database = {
2902
2970
  created_at?: string | null
2903
2971
  id?: string
2904
2972
  last_accessed_at?: string | null
2905
- level?: number | null
2906
2973
  metadata?: Json | null
2907
2974
  name?: string | null
2908
2975
  owner?: string | null
@@ -2917,7 +2984,6 @@ export type Database = {
2917
2984
  created_at?: string | null
2918
2985
  id?: string
2919
2986
  last_accessed_at?: string | null
2920
- level?: number | null
2921
2987
  metadata?: Json | null
2922
2988
  name?: string | null
2923
2989
  owner?: string | null
@@ -2937,38 +3003,6 @@ export type Database = {
2937
3003
  },
2938
3004
  ]
2939
3005
  }
2940
- prefixes: {
2941
- Row: {
2942
- bucket_id: string
2943
- created_at: string | null
2944
- level: number
2945
- name: string
2946
- updated_at: string | null
2947
- }
2948
- Insert: {
2949
- bucket_id: string
2950
- created_at?: string | null
2951
- level?: number
2952
- name: string
2953
- updated_at?: string | null
2954
- }
2955
- Update: {
2956
- bucket_id?: string
2957
- created_at?: string | null
2958
- level?: number
2959
- name?: string
2960
- updated_at?: string | null
2961
- }
2962
- Relationships: [
2963
- {
2964
- foreignKeyName: "prefixes_bucketId_fkey"
2965
- columns: ["bucket_id"]
2966
- isOneToOne: false
2967
- referencedRelation: "buckets"
2968
- referencedColumns: ["id"]
2969
- },
2970
- ]
2971
- }
2972
3006
  s3_multipart_uploads: {
2973
3007
  Row: {
2974
3008
  bucket_id: string
@@ -3072,40 +3106,31 @@ export type Database = {
3072
3106
  [_ in never]: never
3073
3107
  }
3074
3108
  Functions: {
3075
- add_prefixes: {
3076
- Args: { _bucket_id: string; _name: string }
3077
- Returns: undefined
3078
- }
3079
3109
  can_insert_object: {
3080
- Args: { bucketid: string; name: string; owner: string; metadata: Json }
3110
+ Args: {
3111
+ bucketid: string
3112
+ name: string
3113
+ owner: string
3114
+ metadata: Json
3115
+ }
3081
3116
  Returns: undefined
3082
3117
  }
3083
- delete_prefix: {
3084
- Args: { _bucket_id: string; _name: string }
3085
- Returns: boolean
3086
- }
3087
3118
  extension: {
3088
- Args: { name: string }
3119
+ Args: {
3120
+ name: string
3121
+ }
3089
3122
  Returns: string
3090
3123
  }
3091
3124
  filename: {
3092
- Args: { name: string }
3125
+ Args: {
3126
+ name: string
3127
+ }
3093
3128
  Returns: string
3094
3129
  }
3095
3130
  foldername: {
3096
- Args: { name: string }
3097
- Returns: string[]
3098
- }
3099
- get_level: {
3100
- Args: { name: string }
3101
- Returns: number
3102
- }
3103
- get_prefix: {
3104
- Args: { name: string }
3105
- Returns: string
3106
- }
3107
- get_prefixes: {
3108
- Args: { name: string }
3131
+ Args: {
3132
+ name: string
3133
+ }
3109
3134
  Returns: string[]
3110
3135
  }
3111
3136
  get_size_by_bucket: {
@@ -3170,63 +3195,6 @@ export type Database = {
3170
3195
  metadata: Json
3171
3196
  }[]
3172
3197
  }
3173
- search_legacy_v1: {
3174
- Args: {
3175
- prefix: string
3176
- bucketname: string
3177
- limits?: number
3178
- levels?: number
3179
- offsets?: number
3180
- search?: string
3181
- sortcolumn?: string
3182
- sortorder?: string
3183
- }
3184
- Returns: {
3185
- name: string
3186
- id: string
3187
- updated_at: string
3188
- created_at: string
3189
- last_accessed_at: string
3190
- metadata: Json
3191
- }[]
3192
- }
3193
- search_v1_optimised: {
3194
- Args: {
3195
- prefix: string
3196
- bucketname: string
3197
- limits?: number
3198
- levels?: number
3199
- offsets?: number
3200
- search?: string
3201
- sortcolumn?: string
3202
- sortorder?: string
3203
- }
3204
- Returns: {
3205
- name: string
3206
- id: string
3207
- updated_at: string
3208
- created_at: string
3209
- last_accessed_at: string
3210
- metadata: Json
3211
- }[]
3212
- }
3213
- search_v2: {
3214
- Args: {
3215
- prefix: string
3216
- bucket_name: string
3217
- limits?: number
3218
- levels?: number
3219
- start_after?: string
3220
- }
3221
- Returns: {
3222
- key: string
3223
- name: string
3224
- id: string
3225
- updated_at: string
3226
- created_at: string
3227
- metadata: Json
3228
- }[]
3229
- }
3230
3198
  }
3231
3199
  Enums: {
3232
3200
  [_ in never]: never
@@ -3237,29 +3205,27 @@ export type Database = {
3237
3205
  }
3238
3206
  }
3239
3207
 
3240
- type DefaultSchema = Database[Extract<keyof Database, "public">]
3208
+ type PublicSchema = Database[Extract<keyof Database, "public">]
3241
3209
 
3242
3210
  export type Tables<
3243
- DefaultSchemaTableNameOrOptions extends
3244
- | keyof (DefaultSchema["Tables"] & DefaultSchema["Views"])
3211
+ PublicTableNameOrOptions extends
3212
+ | keyof (PublicSchema["Tables"] & PublicSchema["Views"])
3245
3213
  | { schema: keyof Database },
3246
- TableName extends DefaultSchemaTableNameOrOptions extends {
3247
- schema: keyof Database
3248
- }
3249
- ? keyof (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
3250
- Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
3214
+ TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
3215
+ ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] &
3216
+ Database[PublicTableNameOrOptions["schema"]]["Views"])
3251
3217
  : never = never,
3252
- > = DefaultSchemaTableNameOrOptions extends { schema: keyof Database }
3253
- ? (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
3254
- Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
3218
+ > = PublicTableNameOrOptions extends { schema: keyof Database }
3219
+ ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] &
3220
+ Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
3255
3221
  Row: infer R
3256
3222
  }
3257
3223
  ? R
3258
3224
  : never
3259
- : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] &
3260
- DefaultSchema["Views"])
3261
- ? (DefaultSchema["Tables"] &
3262
- DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
3225
+ : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] &
3226
+ PublicSchema["Views"])
3227
+ ? (PublicSchema["Tables"] &
3228
+ PublicSchema["Views"])[PublicTableNameOrOptions] extends {
3263
3229
  Row: infer R
3264
3230
  }
3265
3231
  ? R
@@ -3267,22 +3233,20 @@ export type Tables<
3267
3233
  : never
3268
3234
 
3269
3235
  export type TablesInsert<
3270
- DefaultSchemaTableNameOrOptions extends
3271
- | keyof DefaultSchema["Tables"]
3236
+ PublicTableNameOrOptions extends
3237
+ | keyof PublicSchema["Tables"]
3272
3238
  | { schema: keyof Database },
3273
- TableName extends DefaultSchemaTableNameOrOptions extends {
3274
- schema: keyof Database
3275
- }
3276
- ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
3239
+ TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
3240
+ ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
3277
3241
  : never = never,
3278
- > = DefaultSchemaTableNameOrOptions extends { schema: keyof Database }
3279
- ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
3242
+ > = PublicTableNameOrOptions extends { schema: keyof Database }
3243
+ ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
3280
3244
  Insert: infer I
3281
3245
  }
3282
3246
  ? I
3283
3247
  : never
3284
- : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
3285
- ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
3248
+ : PublicTableNameOrOptions extends keyof PublicSchema["Tables"]
3249
+ ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
3286
3250
  Insert: infer I
3287
3251
  }
3288
3252
  ? I
@@ -3290,22 +3254,20 @@ export type TablesInsert<
3290
3254
  : never
3291
3255
 
3292
3256
  export type TablesUpdate<
3293
- DefaultSchemaTableNameOrOptions extends
3294
- | keyof DefaultSchema["Tables"]
3257
+ PublicTableNameOrOptions extends
3258
+ | keyof PublicSchema["Tables"]
3295
3259
  | { schema: keyof Database },
3296
- TableName extends DefaultSchemaTableNameOrOptions extends {
3297
- schema: keyof Database
3298
- }
3299
- ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
3260
+ TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
3261
+ ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
3300
3262
  : never = never,
3301
- > = DefaultSchemaTableNameOrOptions extends { schema: keyof Database }
3302
- ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
3263
+ > = PublicTableNameOrOptions extends { schema: keyof Database }
3264
+ ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
3303
3265
  Update: infer U
3304
3266
  }
3305
3267
  ? U
3306
3268
  : never
3307
- : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
3308
- ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
3269
+ : PublicTableNameOrOptions extends keyof PublicSchema["Tables"]
3270
+ ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
3309
3271
  Update: infer U
3310
3272
  }
3311
3273
  ? U
@@ -3313,109 +3275,14 @@ export type TablesUpdate<
3313
3275
  : never
3314
3276
 
3315
3277
  export type Enums<
3316
- DefaultSchemaEnumNameOrOptions extends
3317
- | keyof DefaultSchema["Enums"]
3318
- | { schema: keyof Database },
3319
- EnumName extends DefaultSchemaEnumNameOrOptions extends {
3320
- schema: keyof Database
3321
- }
3322
- ? keyof Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
3323
- : never = never,
3324
- > = DefaultSchemaEnumNameOrOptions extends { schema: keyof Database }
3325
- ? Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName]
3326
- : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"]
3327
- ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions]
3328
- : never
3329
-
3330
- export type CompositeTypes<
3331
- PublicCompositeTypeNameOrOptions extends
3332
- | keyof DefaultSchema["CompositeTypes"]
3278
+ PublicEnumNameOrOptions extends
3279
+ | keyof PublicSchema["Enums"]
3333
3280
  | { schema: keyof Database },
3334
- CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
3335
- schema: keyof Database
3336
- }
3337
- ? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
3281
+ EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database }
3282
+ ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"]
3338
3283
  : never = never,
3339
- > = PublicCompositeTypeNameOrOptions extends { schema: keyof Database }
3340
- ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
3341
- : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"]
3342
- ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
3284
+ > = PublicEnumNameOrOptions extends { schema: keyof Database }
3285
+ ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName]
3286
+ : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"]
3287
+ ? PublicSchema["Enums"][PublicEnumNameOrOptions]
3343
3288
  : never
3344
-
3345
- export const Constants = {
3346
- internal: {
3347
- Enums: {},
3348
- },
3349
- public: {
3350
- Enums: {
3351
- enum_broadcast_status: ["inprogress", "completed", "stopped", "expired"],
3352
- enum_chat_colors: [
3353
- "#B4876E",
3354
- "#A5B337",
3355
- "#06CF9C",
3356
- "#25D366",
3357
- "#02A698",
3358
- "#7D9EF1",
3359
- "#007BFC",
3360
- "#5E47DE",
3361
- "#7F66FF",
3362
- "#9333EA",
3363
- "#FA6533",
3364
- "#C4532D",
3365
- "#DC2626",
3366
- "#FF2E74",
3367
- "#DB2777",
3368
- ],
3369
- enum_chat_tickets_status: ["open", "inprogress", "closed", "archived"],
3370
- enum_credit_transaction_type: ["credit", "debit"],
3371
- enum_integration_name: [
3372
- "org.created",
3373
- "org.updated",
3374
- "org.member.created",
3375
- "org.member.updated",
3376
- "org.phone.created",
3377
- "org.phone.connected",
3378
- "org.phone.disconnected",
3379
- "org.subscription.trial_will_end",
3380
- "chat.created",
3381
- "chat.updated",
3382
- "chat.notification.created",
3383
- "message.created",
3384
- "message.updated",
3385
- "message.deleted",
3386
- "message.ack.updated",
3387
- "reaction.created",
3388
- "reaction.updated",
3389
- "ticket.created",
3390
- "ticket.updated",
3391
- "ticket.deleted",
3392
- "org.integrations.updated",
3393
- "message.flagged",
3394
- "message.unflagged",
3395
- "chat.label.updated",
3396
- "reaction.added",
3397
- "message.ticket.attached",
3398
- "org.phone.qr",
3399
- ],
3400
- enum_integration_type: [
3401
- "zapier",
3402
- "pabbly",
3403
- "api",
3404
- "webhook",
3405
- "hubspot",
3406
- "freshdesk",
3407
- "slack",
3408
- "jira",
3409
- "salesforce",
3410
- "zohodesk",
3411
- "gsheets",
3412
- ],
3413
- enum_member_role: ["admin", "member"],
3414
- },
3415
- },
3416
- storage: {
3417
- Enums: {},
3418
- },
3419
- } as const
3420
-
3421
-