@pgflow/core 0.0.0-array-map-steps-cd94242a-20251008042921 → 0.0.0-condition-4354fcb6-20260108134756

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.
@@ -123,9 +123,12 @@ export type Database = {
123
123
  failed_at: string | null;
124
124
  flow_slug: string;
125
125
  initial_tasks: number | null;
126
+ output: Json | null;
126
127
  remaining_deps: number;
127
128
  remaining_tasks: number | null;
128
129
  run_id: string;
130
+ skip_reason: string | null;
131
+ skipped_at: string | null;
129
132
  started_at: string | null;
130
133
  status: string;
131
134
  step_slug: string;
@@ -137,9 +140,12 @@ export type Database = {
137
140
  failed_at?: string | null;
138
141
  flow_slug: string;
139
142
  initial_tasks?: number | null;
143
+ output?: Json | null;
140
144
  remaining_deps?: number;
141
145
  remaining_tasks?: number | null;
142
146
  run_id: string;
147
+ skip_reason?: string | null;
148
+ skipped_at?: string | null;
143
149
  started_at?: string | null;
144
150
  status?: string;
145
151
  step_slug: string;
@@ -151,9 +157,12 @@ export type Database = {
151
157
  failed_at?: string | null;
152
158
  flow_slug?: string;
153
159
  initial_tasks?: number | null;
160
+ output?: Json | null;
154
161
  remaining_deps?: number;
155
162
  remaining_tasks?: number | null;
156
163
  run_id?: string;
164
+ skip_reason?: string | null;
165
+ skipped_at?: string | null;
157
166
  started_at?: string | null;
158
167
  status?: string;
159
168
  step_slug?: string;
@@ -264,6 +273,8 @@ export type Database = {
264
273
  };
265
274
  steps: {
266
275
  Row: {
276
+ condition_not_pattern: Json | null;
277
+ condition_pattern: Json | null;
267
278
  created_at: string;
268
279
  deps_count: number;
269
280
  flow_slug: string;
@@ -274,8 +285,12 @@ export type Database = {
274
285
  step_index: number;
275
286
  step_slug: string;
276
287
  step_type: string;
288
+ when_failed: string;
289
+ when_unmet: string;
277
290
  };
278
291
  Insert: {
292
+ condition_not_pattern?: Json | null;
293
+ condition_pattern?: Json | null;
279
294
  created_at?: string;
280
295
  deps_count?: number;
281
296
  flow_slug: string;
@@ -286,8 +301,12 @@ export type Database = {
286
301
  step_index?: number;
287
302
  step_slug: string;
288
303
  step_type?: string;
304
+ when_failed?: string;
305
+ when_unmet?: string;
289
306
  };
290
307
  Update: {
308
+ condition_not_pattern?: Json | null;
309
+ condition_pattern?: Json | null;
291
310
  created_at?: string;
292
311
  deps_count?: number;
293
312
  flow_slug?: string;
@@ -298,6 +317,8 @@ export type Database = {
298
317
  step_index?: number;
299
318
  step_slug?: string;
300
319
  step_type?: string;
320
+ when_failed?: string;
321
+ when_unmet?: string;
301
322
  };
302
323
  Relationships: [
303
324
  {
@@ -309,6 +330,33 @@ export type Database = {
309
330
  }
310
331
  ];
311
332
  };
333
+ worker_functions: {
334
+ Row: {
335
+ created_at: string;
336
+ debounce: unknown;
337
+ enabled: boolean;
338
+ function_name: string;
339
+ last_invoked_at: string | null;
340
+ updated_at: string;
341
+ };
342
+ Insert: {
343
+ created_at?: string;
344
+ debounce?: unknown;
345
+ enabled?: boolean;
346
+ function_name: string;
347
+ last_invoked_at?: string | null;
348
+ updated_at?: string;
349
+ };
350
+ Update: {
351
+ created_at?: string;
352
+ debounce?: unknown;
353
+ enabled?: boolean;
354
+ function_name?: string;
355
+ last_invoked_at?: string | null;
356
+ updated_at?: string;
357
+ };
358
+ Relationships: [];
359
+ };
312
360
  workers: {
313
361
  Row: {
314
362
  deprecated_at: string | null;
@@ -316,6 +364,7 @@ export type Database = {
316
364
  last_heartbeat_at: string;
317
365
  queue_name: string;
318
366
  started_at: string;
367
+ stopped_at: string | null;
319
368
  worker_id: string;
320
369
  };
321
370
  Insert: {
@@ -324,6 +373,7 @@ export type Database = {
324
373
  last_heartbeat_at?: string;
325
374
  queue_name: string;
326
375
  started_at?: string;
376
+ stopped_at?: string | null;
327
377
  worker_id: string;
328
378
  };
329
379
  Update: {
@@ -332,6 +382,7 @@ export type Database = {
332
382
  last_heartbeat_at?: string;
333
383
  queue_name?: string;
334
384
  started_at?: string;
385
+ stopped_at?: string | null;
335
386
  worker_id?: string;
336
387
  };
337
388
  Relationships: [];
@@ -341,18 +392,52 @@ export type Database = {
341
392
  [_ in never]: never;
342
393
  };
343
394
  Functions: {
344
- add_step: {
395
+ _cascade_force_skip_steps: {
345
396
  Args: {
346
- flow_slug: string;
397
+ run_id: string;
398
+ skip_reason: string;
347
399
  step_slug: string;
400
+ };
401
+ Returns: number;
402
+ };
403
+ _compare_flow_shapes: {
404
+ Args: {
405
+ p_db: Json;
406
+ p_local: Json;
407
+ };
408
+ Returns: string[];
409
+ };
410
+ _create_flow_from_shape: {
411
+ Args: {
412
+ p_flow_slug: string;
413
+ p_shape: Json;
414
+ };
415
+ Returns: undefined;
416
+ };
417
+ _get_flow_shape: {
418
+ Args: {
419
+ p_flow_slug: string;
420
+ };
421
+ Returns: Json;
422
+ };
423
+ add_step: {
424
+ Args: {
425
+ base_delay?: number;
426
+ condition_not_pattern?: Json;
427
+ condition_pattern?: Json;
348
428
  deps_slugs?: string[];
429
+ flow_slug: string;
349
430
  max_attempts?: number;
350
- base_delay?: number;
351
- timeout?: number;
352
431
  start_delay?: number;
432
+ step_slug: string;
353
433
  step_type?: string;
434
+ timeout?: number;
435
+ when_failed?: string;
436
+ when_unmet?: string;
354
437
  };
355
438
  Returns: {
439
+ condition_not_pattern: Json | null;
440
+ condition_pattern: Json | null;
356
441
  created_at: string;
357
442
  deps_count: number;
358
443
  flow_slug: string;
@@ -363,12 +448,20 @@ export type Database = {
363
448
  step_index: number;
364
449
  step_slug: string;
365
450
  step_type: string;
451
+ when_failed: string;
452
+ when_unmet: string;
453
+ };
454
+ SetofOptions: {
455
+ from: "*";
456
+ to: "steps";
457
+ isOneToOne: true;
458
+ isSetofReturn: false;
366
459
  };
367
460
  };
368
461
  calculate_retry_delay: {
369
462
  Args: {
370
- base_delay: number;
371
463
  attempts_count: number;
464
+ base_delay: number;
372
465
  };
373
466
  Returns: number;
374
467
  };
@@ -378,12 +471,26 @@ export type Database = {
378
471
  };
379
472
  Returns: number;
380
473
  };
474
+ cascade_resolve_conditions: {
475
+ Args: {
476
+ run_id: string;
477
+ };
478
+ Returns: boolean;
479
+ };
480
+ cleanup_ensure_workers_logs: {
481
+ Args: {
482
+ retention_hours?: number;
483
+ };
484
+ Returns: {
485
+ cron_deleted: number;
486
+ }[];
487
+ };
381
488
  complete_task: {
382
489
  Args: {
490
+ output: Json;
383
491
  run_id: string;
384
492
  step_slug: string;
385
493
  task_index: number;
386
- output: Json;
387
494
  };
388
495
  Returns: {
389
496
  attempts_count: number;
@@ -401,12 +508,18 @@ export type Database = {
401
508
  step_slug: string;
402
509
  task_index: number;
403
510
  }[];
511
+ SetofOptions: {
512
+ from: "*";
513
+ to: "step_tasks";
514
+ isOneToOne: false;
515
+ isSetofReturn: true;
516
+ };
404
517
  };
405
518
  create_flow: {
406
519
  Args: {
520
+ base_delay?: number;
407
521
  flow_slug: string;
408
522
  max_attempts?: number;
409
- base_delay?: number;
410
523
  timeout?: number;
411
524
  };
412
525
  Returns: {
@@ -416,13 +529,41 @@ export type Database = {
416
529
  opt_max_attempts: number;
417
530
  opt_timeout: number;
418
531
  };
532
+ SetofOptions: {
533
+ from: "*";
534
+ to: "flows";
535
+ isOneToOne: true;
536
+ isSetofReturn: false;
537
+ };
538
+ };
539
+ delete_flow_and_data: {
540
+ Args: {
541
+ p_flow_slug: string;
542
+ };
543
+ Returns: undefined;
544
+ };
545
+ ensure_flow_compiled: {
546
+ Args: {
547
+ allow_data_loss?: boolean;
548
+ flow_slug: string;
549
+ shape: Json;
550
+ };
551
+ Returns: Json;
552
+ };
553
+ ensure_workers: {
554
+ Args: never;
555
+ Returns: {
556
+ function_name: string;
557
+ invoked: boolean;
558
+ request_id: number;
559
+ }[];
419
560
  };
420
561
  fail_task: {
421
562
  Args: {
563
+ error_message: string;
422
564
  run_id: string;
423
565
  step_slug: string;
424
566
  task_index: number;
425
- error_message: string;
426
567
  };
427
568
  Returns: {
428
569
  attempts_count: number;
@@ -440,6 +581,12 @@ export type Database = {
440
581
  step_slug: string;
441
582
  task_index: number;
442
583
  }[];
584
+ SetofOptions: {
585
+ from: "*";
586
+ to: "step_tasks";
587
+ isOneToOne: false;
588
+ isSetofReturn: true;
589
+ };
443
590
  };
444
591
  get_run_with_states: {
445
592
  Args: {
@@ -447,12 +594,22 @@ export type Database = {
447
594
  };
448
595
  Returns: Json;
449
596
  };
597
+ is_local: {
598
+ Args: never;
599
+ Returns: boolean;
600
+ };
450
601
  is_valid_slug: {
451
602
  Args: {
452
603
  slug: string;
453
604
  };
454
605
  Returns: boolean;
455
606
  };
607
+ mark_worker_stopped: {
608
+ Args: {
609
+ worker_id: string;
610
+ };
611
+ Returns: undefined;
612
+ };
456
613
  maybe_complete_run: {
457
614
  Args: {
458
615
  run_id: string;
@@ -461,32 +618,40 @@ export type Database = {
461
618
  };
462
619
  poll_for_tasks: {
463
620
  Args: {
464
- queue_name: string;
465
- vt: number;
466
- qty: number;
467
621
  max_poll_seconds?: number;
468
622
  poll_interval_ms?: number;
469
- };
470
- Returns: Database["pgflow"]["CompositeTypes"]["step_task_record"][];
471
- };
472
- read_with_poll: {
473
- Args: {
623
+ qty: number;
474
624
  queue_name: string;
475
625
  vt: number;
476
- qty: number;
477
- max_poll_seconds?: number;
478
- poll_interval_ms?: number;
479
- conditional?: Json;
480
626
  };
481
- Returns: Database["pgmq"]["CompositeTypes"]["message_record"][];
627
+ Returns: Database["pgflow"]["CompositeTypes"]["step_task_record"][];
628
+ SetofOptions: {
629
+ from: "*";
630
+ to: "step_task_record";
631
+ isOneToOne: false;
632
+ isSetofReturn: true;
633
+ };
482
634
  };
483
635
  set_vt_batch: {
484
636
  Args: {
485
- queue_name: string;
486
637
  msg_ids: number[];
638
+ queue_name: string;
487
639
  vt_offsets: number[];
488
640
  };
489
- Returns: Database["pgmq"]["CompositeTypes"]["message_record"][];
641
+ Returns: {
642
+ enqueued_at: string;
643
+ headers: Json;
644
+ message: Json;
645
+ msg_id: number;
646
+ read_ct: number;
647
+ vt: string;
648
+ }[];
649
+ };
650
+ setup_ensure_workers_cron: {
651
+ Args: {
652
+ cron_interval?: string;
653
+ };
654
+ Returns: string;
490
655
  };
491
656
  start_flow: {
492
657
  Args: {
@@ -505,6 +670,12 @@ export type Database = {
505
670
  started_at: string;
506
671
  status: string;
507
672
  }[];
673
+ SetofOptions: {
674
+ from: "*";
675
+ to: "runs";
676
+ isOneToOne: false;
677
+ isSetofReturn: true;
678
+ };
508
679
  };
509
680
  start_flow_with_states: {
510
681
  Args: {
@@ -527,6 +698,18 @@ export type Database = {
527
698
  worker_id: string;
528
699
  };
529
700
  Returns: Database["pgflow"]["CompositeTypes"]["step_task_record"][];
701
+ SetofOptions: {
702
+ from: "*";
703
+ to: "step_task_record";
704
+ isOneToOne: false;
705
+ isSetofReturn: true;
706
+ };
707
+ };
708
+ track_worker_function: {
709
+ Args: {
710
+ function_name: string;
711
+ };
712
+ Returns: undefined;
530
713
  };
531
714
  };
532
715
  Enums: {
@@ -540,6 +723,7 @@ export type Database = {
540
723
  input: Json | null;
541
724
  msg_id: number | null;
542
725
  task_index: number | null;
726
+ flow_input: Json | null;
543
727
  };
544
728
  };
545
729
  };
@@ -578,9 +762,15 @@ export type Database = {
578
762
  Returns: boolean;
579
763
  };
580
764
  _ensure_pg_partman_installed: {
581
- Args: Record<PropertyKey, never>;
765
+ Args: never;
582
766
  Returns: undefined;
583
767
  };
768
+ _extension_exists: {
769
+ Args: {
770
+ extension_name: string;
771
+ };
772
+ Returns: boolean;
773
+ };
584
774
  _get_partition_col: {
585
775
  Args: {
586
776
  partition_interval: string;
@@ -588,29 +778,32 @@ export type Database = {
588
778
  Returns: string;
589
779
  };
590
780
  _get_pg_partman_major_version: {
591
- Args: Record<PropertyKey, never>;
781
+ Args: never;
592
782
  Returns: number;
593
783
  };
594
784
  _get_pg_partman_schema: {
595
- Args: Record<PropertyKey, never>;
785
+ Args: never;
596
786
  Returns: string;
597
787
  };
598
788
  archive: {
599
789
  Args: {
600
- queue_name: string;
601
790
  msg_id: number;
602
- } | {
603
791
  queue_name: string;
604
- msg_ids: number[];
605
792
  };
606
793
  Returns: boolean;
794
+ } | {
795
+ Args: {
796
+ msg_ids: number[];
797
+ queue_name: string;
798
+ };
799
+ Returns: number[];
607
800
  };
608
801
  convert_archive_partitioned: {
609
802
  Args: {
610
- table_name: string;
803
+ leading_partition?: number;
611
804
  partition_interval?: string;
612
805
  retention_interval?: string;
613
- leading_partition?: number;
806
+ table_name: string;
614
807
  };
615
808
  Returns: undefined;
616
809
  };
@@ -628,8 +821,8 @@ export type Database = {
628
821
  };
629
822
  create_partitioned: {
630
823
  Args: {
631
- queue_name: string;
632
824
  partition_interval?: string;
825
+ queue_name: string;
633
826
  retention_interval?: string;
634
827
  };
635
828
  Returns: undefined;
@@ -642,13 +835,16 @@ export type Database = {
642
835
  };
643
836
  delete: {
644
837
  Args: {
645
- queue_name: string;
646
838
  msg_id: number;
647
- } | {
648
839
  queue_name: string;
649
- msg_ids: number[];
650
840
  };
651
841
  Returns: boolean;
842
+ } | {
843
+ Args: {
844
+ msg_ids: number[];
845
+ queue_name: string;
846
+ };
847
+ Returns: number[];
652
848
  };
653
849
  detach_archive: {
654
850
  Args: {
@@ -661,33 +857,63 @@ export type Database = {
661
857
  queue_name: string;
662
858
  };
663
859
  Returns: boolean;
860
+ } | {
861
+ Args: {
862
+ partitioned: boolean;
863
+ queue_name: string;
864
+ };
865
+ Returns: boolean;
664
866
  };
665
867
  format_table_name: {
666
868
  Args: {
667
- queue_name: string;
668
869
  prefix: string;
870
+ queue_name: string;
669
871
  };
670
872
  Returns: string;
671
873
  };
672
874
  list_queues: {
673
- Args: Record<PropertyKey, never>;
875
+ Args: never;
674
876
  Returns: Database["pgmq"]["CompositeTypes"]["queue_record"][];
877
+ SetofOptions: {
878
+ from: "*";
879
+ to: "queue_record";
880
+ isOneToOne: false;
881
+ isSetofReturn: true;
882
+ };
675
883
  };
676
884
  metrics: {
677
885
  Args: {
678
886
  queue_name: string;
679
887
  };
680
888
  Returns: Database["pgmq"]["CompositeTypes"]["metrics_result"];
889
+ SetofOptions: {
890
+ from: "*";
891
+ to: "metrics_result";
892
+ isOneToOne: true;
893
+ isSetofReturn: false;
894
+ };
681
895
  };
682
896
  metrics_all: {
683
- Args: Record<PropertyKey, never>;
897
+ Args: never;
684
898
  Returns: Database["pgmq"]["CompositeTypes"]["metrics_result"][];
899
+ SetofOptions: {
900
+ from: "*";
901
+ to: "metrics_result";
902
+ isOneToOne: false;
903
+ isSetofReturn: true;
904
+ };
685
905
  };
686
906
  pop: {
687
907
  Args: {
688
908
  queue_name: string;
689
909
  };
690
910
  Returns: Database["pgmq"]["CompositeTypes"]["message_record"][];
911
+ SetofOptions: {
912
+ from: "*";
913
+ to: "message_record";
914
+ isOneToOne: false;
915
+ isSetofReturn: true;
916
+ };
691
917
  };
692
918
  purge_queue: {
693
919
  Args: {
@@ -697,45 +923,137 @@ export type Database = {
697
923
  };
698
924
  read: {
699
925
  Args: {
926
+ conditional?: Json;
927
+ qty: number;
700
928
  queue_name: string;
701
929
  vt: number;
702
- qty: number;
703
930
  };
704
931
  Returns: Database["pgmq"]["CompositeTypes"]["message_record"][];
932
+ SetofOptions: {
933
+ from: "*";
934
+ to: "message_record";
935
+ isOneToOne: false;
936
+ isSetofReturn: true;
937
+ };
705
938
  };
706
939
  read_with_poll: {
707
940
  Args: {
708
- queue_name: string;
709
- vt: number;
710
- qty: number;
941
+ conditional?: Json;
711
942
  max_poll_seconds?: number;
712
943
  poll_interval_ms?: number;
944
+ qty: number;
945
+ queue_name: string;
946
+ vt: number;
713
947
  };
714
948
  Returns: Database["pgmq"]["CompositeTypes"]["message_record"][];
949
+ SetofOptions: {
950
+ from: "*";
951
+ to: "message_record";
952
+ isOneToOne: false;
953
+ isSetofReturn: true;
954
+ };
715
955
  };
716
956
  send: {
717
957
  Args: {
958
+ delay: string;
959
+ headers: Json;
960
+ msg: Json;
961
+ queue_name: string;
962
+ };
963
+ Returns: number[];
964
+ } | {
965
+ Args: {
966
+ delay: string;
967
+ msg: Json;
718
968
  queue_name: string;
969
+ };
970
+ Returns: number[];
971
+ } | {
972
+ Args: {
719
973
  msg: Json;
720
- delay?: number;
974
+ queue_name: string;
975
+ };
976
+ Returns: number[];
977
+ } | {
978
+ Args: {
979
+ delay: number;
980
+ msg: Json;
981
+ queue_name: string;
982
+ };
983
+ Returns: number[];
984
+ } | {
985
+ Args: {
986
+ headers: Json;
987
+ msg: Json;
988
+ queue_name: string;
989
+ };
990
+ Returns: number[];
991
+ } | {
992
+ Args: {
993
+ delay: number;
994
+ headers: Json;
995
+ msg: Json;
996
+ queue_name: string;
721
997
  };
722
998
  Returns: number[];
723
999
  };
724
1000
  send_batch: {
725
1001
  Args: {
1002
+ delay: string;
1003
+ headers: Json[];
1004
+ msgs: Json[];
1005
+ queue_name: string;
1006
+ };
1007
+ Returns: number[];
1008
+ } | {
1009
+ Args: {
1010
+ delay: string;
1011
+ msgs: Json[];
1012
+ queue_name: string;
1013
+ };
1014
+ Returns: number[];
1015
+ } | {
1016
+ Args: {
1017
+ msgs: Json[];
726
1018
  queue_name: string;
1019
+ };
1020
+ Returns: number[];
1021
+ } | {
1022
+ Args: {
1023
+ delay: number;
727
1024
  msgs: Json[];
728
- delay?: number;
1025
+ queue_name: string;
1026
+ };
1027
+ Returns: number[];
1028
+ } | {
1029
+ Args: {
1030
+ headers: Json[];
1031
+ msgs: Json[];
1032
+ queue_name: string;
1033
+ };
1034
+ Returns: number[];
1035
+ } | {
1036
+ Args: {
1037
+ delay: number;
1038
+ headers: Json[];
1039
+ msgs: Json[];
1040
+ queue_name: string;
729
1041
  };
730
1042
  Returns: number[];
731
1043
  };
732
1044
  set_vt: {
733
1045
  Args: {
734
- queue_name: string;
735
1046
  msg_id: number;
1047
+ queue_name: string;
736
1048
  vt: number;
737
1049
  };
738
1050
  Returns: Database["pgmq"]["CompositeTypes"]["message_record"][];
1051
+ SetofOptions: {
1052
+ from: "*";
1053
+ to: "message_record";
1054
+ isOneToOne: false;
1055
+ isSetofReturn: true;
1056
+ };
739
1057
  };
740
1058
  validate_queue_name: {
741
1059
  Args: {
@@ -754,6 +1072,7 @@ export type Database = {
754
1072
  enqueued_at: string | null;
755
1073
  vt: string | null;
756
1074
  message: Json | null;
1075
+ headers: Json | null;
757
1076
  };
758
1077
  metrics_result: {
759
1078
  queue_name: string | null;
@@ -762,6 +1081,7 @@ export type Database = {
762
1081
  oldest_msg_age_sec: number | null;
763
1082
  total_messages: number | null;
764
1083
  scrape_time: string | null;
1084
+ queue_visible_length: number | null;
765
1085
  };
766
1086
  queue_record: {
767
1087
  queue_name: string | null;
@@ -772,54 +1092,55 @@ export type Database = {
772
1092
  };
773
1093
  };
774
1094
  };
775
- type DefaultSchema = Database[Extract<keyof Database, "public">];
1095
+ type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
1096
+ type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
776
1097
  export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
777
- schema: keyof Database;
1098
+ schema: keyof DatabaseWithoutInternals;
778
1099
  }, TableName extends DefaultSchemaTableNameOrOptions extends {
779
- schema: keyof Database;
780
- } ? keyof (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
781
- schema: keyof Database;
782
- } ? (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
1100
+ schema: keyof DatabaseWithoutInternals;
1101
+ } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
1102
+ schema: keyof DatabaseWithoutInternals;
1103
+ } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
783
1104
  Row: infer R;
784
1105
  } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
785
1106
  Row: infer R;
786
1107
  } ? R : never : never;
787
1108
  export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
788
- schema: keyof Database;
1109
+ schema: keyof DatabaseWithoutInternals;
789
1110
  }, TableName extends DefaultSchemaTableNameOrOptions extends {
790
- schema: keyof Database;
791
- } ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
792
- schema: keyof Database;
793
- } ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
1111
+ schema: keyof DatabaseWithoutInternals;
1112
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
1113
+ schema: keyof DatabaseWithoutInternals;
1114
+ } ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
794
1115
  Insert: infer I;
795
1116
  } ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
796
1117
  Insert: infer I;
797
1118
  } ? I : never : never;
798
1119
  export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
799
- schema: keyof Database;
1120
+ schema: keyof DatabaseWithoutInternals;
800
1121
  }, TableName extends DefaultSchemaTableNameOrOptions extends {
801
- schema: keyof Database;
802
- } ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
803
- schema: keyof Database;
804
- } ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
1122
+ schema: keyof DatabaseWithoutInternals;
1123
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
1124
+ schema: keyof DatabaseWithoutInternals;
1125
+ } ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
805
1126
  Update: infer U;
806
1127
  } ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
807
1128
  Update: infer U;
808
1129
  } ? U : never : never;
809
1130
  export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
810
- schema: keyof Database;
1131
+ schema: keyof DatabaseWithoutInternals;
811
1132
  }, EnumName extends DefaultSchemaEnumNameOrOptions extends {
812
- schema: keyof Database;
813
- } ? keyof Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
814
- schema: keyof Database;
815
- } ? Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
1133
+ schema: keyof DatabaseWithoutInternals;
1134
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
1135
+ schema: keyof DatabaseWithoutInternals;
1136
+ } ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
816
1137
  export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
817
- schema: keyof Database;
1138
+ schema: keyof DatabaseWithoutInternals;
818
1139
  }, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
819
- schema: keyof Database;
820
- } ? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
821
- schema: keyof Database;
822
- } ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
1140
+ schema: keyof DatabaseWithoutInternals;
1141
+ } ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
1142
+ schema: keyof DatabaseWithoutInternals;
1143
+ } ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
823
1144
  export declare const Constants: {
824
1145
  readonly pgflow: {
825
1146
  readonly Enums: {};