@pipe2-ai/sdk 0.1.2 → 0.3.0

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.
@@ -42,6 +42,10 @@ export type Scalars = {
42
42
  input: number;
43
43
  output: number;
44
44
  };
45
+ bigint: {
46
+ input: any;
47
+ output: any;
48
+ };
45
49
  bpchar: {
46
50
  input: any;
47
51
  output: any;
@@ -139,6 +143,10 @@ export type String_Comparison_Exp = {
139
143
  /** does the column match the given SQL regular expression */
140
144
  _similar?: InputMaybe<Scalars['String']['input']>;
141
145
  };
146
+ export type Abort_Multipart_Upload_Output = {
147
+ __typename?: 'abort_multipart_upload_output';
148
+ success: Scalars['Boolean']['output'];
149
+ };
142
150
  export type Add_Affiliate_Code_Output = {
143
151
  __typename?: 'add_affiliate_code_output';
144
152
  code_id: Scalars['String']['output'];
@@ -333,6 +341,7 @@ export type Assets = {
333
341
  pipeline_run?: Maybe<Pipeline_Runs>;
334
342
  pipeline_run_id?: Maybe<Scalars['uuid']['output']>;
335
343
  preview_frames?: Maybe<Array<Scalars['String']['output']>>;
344
+ size_bytes: Scalars['bigint']['output'];
336
345
  tags: Array<Scalars['String']['output']>;
337
346
  thumbnail_url?: Maybe<Scalars['String']['output']>;
338
347
  type: Scalars['String']['output'];
@@ -395,10 +404,12 @@ export type Assets_Aggregate_Order_By = {
395
404
  export type Assets_Avg_Fields = {
396
405
  __typename?: 'assets_avg_fields';
397
406
  duration_sec?: Maybe<Scalars['Float']['output']>;
407
+ size_bytes?: Maybe<Scalars['Float']['output']>;
398
408
  };
399
409
  /** order by avg() on columns of table "assets" */
400
410
  export type Assets_Avg_Order_By = {
401
411
  duration_sec?: InputMaybe<Order_By>;
412
+ size_bytes?: InputMaybe<Order_By>;
402
413
  };
403
414
  /** Boolean expression to filter rows from the table "assets". All fields are combined with a logical 'AND'. */
404
415
  export type Assets_Bool_Exp = {
@@ -412,6 +423,7 @@ export type Assets_Bool_Exp = {
412
423
  pipeline_run?: InputMaybe<Pipeline_Runs_Bool_Exp>;
413
424
  pipeline_run_id?: InputMaybe<Uuid_Comparison_Exp>;
414
425
  preview_frames?: InputMaybe<String_Array_Comparison_Exp>;
426
+ size_bytes?: InputMaybe<Bigint_Comparison_Exp>;
415
427
  tags?: InputMaybe<String_Array_Comparison_Exp>;
416
428
  thumbnail_url?: InputMaybe<String_Comparison_Exp>;
417
429
  type?: InputMaybe<String_Comparison_Exp>;
@@ -425,6 +437,7 @@ export type Assets_Max_Fields = {
425
437
  id?: Maybe<Scalars['uuid']['output']>;
426
438
  pipeline_run_id?: Maybe<Scalars['uuid']['output']>;
427
439
  preview_frames?: Maybe<Array<Scalars['String']['output']>>;
440
+ size_bytes?: Maybe<Scalars['bigint']['output']>;
428
441
  tags?: Maybe<Array<Scalars['String']['output']>>;
429
442
  thumbnail_url?: Maybe<Scalars['String']['output']>;
430
443
  type?: Maybe<Scalars['String']['output']>;
@@ -437,6 +450,7 @@ export type Assets_Max_Order_By = {
437
450
  id?: InputMaybe<Order_By>;
438
451
  pipeline_run_id?: InputMaybe<Order_By>;
439
452
  preview_frames?: InputMaybe<Order_By>;
453
+ size_bytes?: InputMaybe<Order_By>;
440
454
  tags?: InputMaybe<Order_By>;
441
455
  thumbnail_url?: InputMaybe<Order_By>;
442
456
  type?: InputMaybe<Order_By>;
@@ -450,6 +464,7 @@ export type Assets_Min_Fields = {
450
464
  id?: Maybe<Scalars['uuid']['output']>;
451
465
  pipeline_run_id?: Maybe<Scalars['uuid']['output']>;
452
466
  preview_frames?: Maybe<Array<Scalars['String']['output']>>;
467
+ size_bytes?: Maybe<Scalars['bigint']['output']>;
453
468
  tags?: Maybe<Array<Scalars['String']['output']>>;
454
469
  thumbnail_url?: Maybe<Scalars['String']['output']>;
455
470
  type?: Maybe<Scalars['String']['output']>;
@@ -462,6 +477,7 @@ export type Assets_Min_Order_By = {
462
477
  id?: InputMaybe<Order_By>;
463
478
  pipeline_run_id?: InputMaybe<Order_By>;
464
479
  preview_frames?: InputMaybe<Order_By>;
480
+ size_bytes?: InputMaybe<Order_By>;
465
481
  tags?: InputMaybe<Order_By>;
466
482
  thumbnail_url?: InputMaybe<Order_By>;
467
483
  type?: InputMaybe<Order_By>;
@@ -484,6 +500,7 @@ export type Assets_Order_By = {
484
500
  pipeline_run?: InputMaybe<Pipeline_Runs_Order_By>;
485
501
  pipeline_run_id?: InputMaybe<Order_By>;
486
502
  preview_frames?: InputMaybe<Order_By>;
503
+ size_bytes?: InputMaybe<Order_By>;
487
504
  tags?: InputMaybe<Order_By>;
488
505
  thumbnail_url?: InputMaybe<Order_By>;
489
506
  type?: InputMaybe<Order_By>;
@@ -508,6 +525,8 @@ export declare enum Assets_Select_Column {
508
525
  /** column name */
509
526
  PreviewFrames = "preview_frames",
510
527
  /** column name */
528
+ SizeBytes = "size_bytes",
529
+ /** column name */
511
530
  Tags = "tags",
512
531
  /** column name */
513
532
  ThumbnailUrl = "thumbnail_url",
@@ -524,28 +543,34 @@ export type Assets_Set_Input = {
524
543
  export type Assets_Stddev_Fields = {
525
544
  __typename?: 'assets_stddev_fields';
526
545
  duration_sec?: Maybe<Scalars['Float']['output']>;
546
+ size_bytes?: Maybe<Scalars['Float']['output']>;
527
547
  };
528
548
  /** order by stddev() on columns of table "assets" */
529
549
  export type Assets_Stddev_Order_By = {
530
550
  duration_sec?: InputMaybe<Order_By>;
551
+ size_bytes?: InputMaybe<Order_By>;
531
552
  };
532
553
  /** aggregate stddev_pop on columns */
533
554
  export type Assets_Stddev_Pop_Fields = {
534
555
  __typename?: 'assets_stddev_pop_fields';
535
556
  duration_sec?: Maybe<Scalars['Float']['output']>;
557
+ size_bytes?: Maybe<Scalars['Float']['output']>;
536
558
  };
537
559
  /** order by stddev_pop() on columns of table "assets" */
538
560
  export type Assets_Stddev_Pop_Order_By = {
539
561
  duration_sec?: InputMaybe<Order_By>;
562
+ size_bytes?: InputMaybe<Order_By>;
540
563
  };
541
564
  /** aggregate stddev_samp on columns */
542
565
  export type Assets_Stddev_Samp_Fields = {
543
566
  __typename?: 'assets_stddev_samp_fields';
544
567
  duration_sec?: Maybe<Scalars['Float']['output']>;
568
+ size_bytes?: Maybe<Scalars['Float']['output']>;
545
569
  };
546
570
  /** order by stddev_samp() on columns of table "assets" */
547
571
  export type Assets_Stddev_Samp_Order_By = {
548
572
  duration_sec?: InputMaybe<Order_By>;
573
+ size_bytes?: InputMaybe<Order_By>;
549
574
  };
550
575
  /** Streaming cursor of the table "assets" */
551
576
  export type Assets_Stream_Cursor_Input = {
@@ -562,6 +587,7 @@ export type Assets_Stream_Cursor_Value_Input = {
562
587
  metadata?: InputMaybe<Scalars['jsonb']['input']>;
563
588
  pipeline_run_id?: InputMaybe<Scalars['uuid']['input']>;
564
589
  preview_frames?: InputMaybe<Array<Scalars['String']['input']>>;
590
+ size_bytes?: InputMaybe<Scalars['bigint']['input']>;
565
591
  tags?: InputMaybe<Array<Scalars['String']['input']>>;
566
592
  thumbnail_url?: InputMaybe<Scalars['String']['input']>;
567
593
  type?: InputMaybe<Scalars['String']['input']>;
@@ -571,10 +597,12 @@ export type Assets_Stream_Cursor_Value_Input = {
571
597
  export type Assets_Sum_Fields = {
572
598
  __typename?: 'assets_sum_fields';
573
599
  duration_sec?: Maybe<Scalars['numeric']['output']>;
600
+ size_bytes?: Maybe<Scalars['bigint']['output']>;
574
601
  };
575
602
  /** order by sum() on columns of table "assets" */
576
603
  export type Assets_Sum_Order_By = {
577
604
  duration_sec?: InputMaybe<Order_By>;
605
+ size_bytes?: InputMaybe<Order_By>;
578
606
  };
579
607
  export type Assets_Updates = {
580
608
  /** sets the columns of the filtered rows to the given values */
@@ -586,28 +614,34 @@ export type Assets_Updates = {
586
614
  export type Assets_Var_Pop_Fields = {
587
615
  __typename?: 'assets_var_pop_fields';
588
616
  duration_sec?: Maybe<Scalars['Float']['output']>;
617
+ size_bytes?: Maybe<Scalars['Float']['output']>;
589
618
  };
590
619
  /** order by var_pop() on columns of table "assets" */
591
620
  export type Assets_Var_Pop_Order_By = {
592
621
  duration_sec?: InputMaybe<Order_By>;
622
+ size_bytes?: InputMaybe<Order_By>;
593
623
  };
594
624
  /** aggregate var_samp on columns */
595
625
  export type Assets_Var_Samp_Fields = {
596
626
  __typename?: 'assets_var_samp_fields';
597
627
  duration_sec?: Maybe<Scalars['Float']['output']>;
628
+ size_bytes?: Maybe<Scalars['Float']['output']>;
598
629
  };
599
630
  /** order by var_samp() on columns of table "assets" */
600
631
  export type Assets_Var_Samp_Order_By = {
601
632
  duration_sec?: InputMaybe<Order_By>;
633
+ size_bytes?: InputMaybe<Order_By>;
602
634
  };
603
635
  /** aggregate variance on columns */
604
636
  export type Assets_Variance_Fields = {
605
637
  __typename?: 'assets_variance_fields';
606
638
  duration_sec?: Maybe<Scalars['Float']['output']>;
639
+ size_bytes?: Maybe<Scalars['Float']['output']>;
607
640
  };
608
641
  /** order by variance() on columns of table "assets" */
609
642
  export type Assets_Variance_Order_By = {
610
643
  duration_sec?: InputMaybe<Order_By>;
644
+ size_bytes?: InputMaybe<Order_By>;
611
645
  };
612
646
  export type Auth_Flow = {
613
647
  __typename?: 'auth_flow';
@@ -621,6 +655,18 @@ export type Auth_Result = {
621
655
  token?: Maybe<Scalars['String']['output']>;
622
656
  whop_affiliate_id?: Maybe<Scalars['String']['output']>;
623
657
  };
658
+ /** Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. */
659
+ export type Bigint_Comparison_Exp = {
660
+ _eq?: InputMaybe<Scalars['bigint']['input']>;
661
+ _gt?: InputMaybe<Scalars['bigint']['input']>;
662
+ _gte?: InputMaybe<Scalars['bigint']['input']>;
663
+ _in?: InputMaybe<Array<Scalars['bigint']['input']>>;
664
+ _is_null?: InputMaybe<Scalars['Boolean']['input']>;
665
+ _lt?: InputMaybe<Scalars['bigint']['input']>;
666
+ _lte?: InputMaybe<Scalars['bigint']['input']>;
667
+ _neq?: InputMaybe<Scalars['bigint']['input']>;
668
+ _nin?: InputMaybe<Array<Scalars['bigint']['input']>>;
669
+ };
624
670
  /** Boolean expression to compare columns of type "bpchar". All fields are combined with logical 'AND'. */
625
671
  export type Bpchar_Comparison_Exp = {
626
672
  _eq?: InputMaybe<Scalars['bpchar']['input']>;
@@ -718,58 +764,228 @@ export type Credit_History_Entry = {
718
764
  amount: Scalars['Int']['output'];
719
765
  created_at: Scalars['String']['output'];
720
766
  description: Scalars['String']['output'];
767
+ pipeline_name?: Maybe<Scalars['String']['output']>;
768
+ pipeline_run_id?: Maybe<Scalars['String']['output']>;
769
+ pipeline_slug?: Maybe<Scalars['String']['output']>;
770
+ reservation_mc?: Maybe<Scalars['Int']['output']>;
771
+ status?: Maybe<Scalars['String']['output']>;
721
772
  type: Scalars['String']['output'];
722
773
  };
774
+ /** columns and relationships of "credit_pack_versions" */
775
+ export type Credit_Pack_Versions = {
776
+ __typename?: 'credit_pack_versions';
777
+ created_at: Scalars['timestamptz']['output'];
778
+ /** An object relationship */
779
+ credit_pack: Credit_Packs;
780
+ credit_pack_id: Scalars['uuid']['output'];
781
+ credits: Scalars['Int']['output'];
782
+ deprecated_at?: Maybe<Scalars['timestamptz']['output']>;
783
+ id: Scalars['uuid']['output'];
784
+ is_current: Scalars['Boolean']['output'];
785
+ price_cents: Scalars['Int']['output'];
786
+ version: Scalars['Int']['output'];
787
+ whop_plan_id?: Maybe<Scalars['String']['output']>;
788
+ };
789
+ /** order by aggregate values of table "credit_pack_versions" */
790
+ export type Credit_Pack_Versions_Aggregate_Order_By = {
791
+ avg?: InputMaybe<Credit_Pack_Versions_Avg_Order_By>;
792
+ count?: InputMaybe<Order_By>;
793
+ max?: InputMaybe<Credit_Pack_Versions_Max_Order_By>;
794
+ min?: InputMaybe<Credit_Pack_Versions_Min_Order_By>;
795
+ stddev?: InputMaybe<Credit_Pack_Versions_Stddev_Order_By>;
796
+ stddev_pop?: InputMaybe<Credit_Pack_Versions_Stddev_Pop_Order_By>;
797
+ stddev_samp?: InputMaybe<Credit_Pack_Versions_Stddev_Samp_Order_By>;
798
+ sum?: InputMaybe<Credit_Pack_Versions_Sum_Order_By>;
799
+ var_pop?: InputMaybe<Credit_Pack_Versions_Var_Pop_Order_By>;
800
+ var_samp?: InputMaybe<Credit_Pack_Versions_Var_Samp_Order_By>;
801
+ variance?: InputMaybe<Credit_Pack_Versions_Variance_Order_By>;
802
+ };
803
+ /** order by avg() on columns of table "credit_pack_versions" */
804
+ export type Credit_Pack_Versions_Avg_Order_By = {
805
+ credits?: InputMaybe<Order_By>;
806
+ price_cents?: InputMaybe<Order_By>;
807
+ version?: InputMaybe<Order_By>;
808
+ };
809
+ /** Boolean expression to filter rows from the table "credit_pack_versions". All fields are combined with a logical 'AND'. */
810
+ export type Credit_Pack_Versions_Bool_Exp = {
811
+ _and?: InputMaybe<Array<Credit_Pack_Versions_Bool_Exp>>;
812
+ _not?: InputMaybe<Credit_Pack_Versions_Bool_Exp>;
813
+ _or?: InputMaybe<Array<Credit_Pack_Versions_Bool_Exp>>;
814
+ created_at?: InputMaybe<Timestamptz_Comparison_Exp>;
815
+ credit_pack?: InputMaybe<Credit_Packs_Bool_Exp>;
816
+ credit_pack_id?: InputMaybe<Uuid_Comparison_Exp>;
817
+ credits?: InputMaybe<Int_Comparison_Exp>;
818
+ deprecated_at?: InputMaybe<Timestamptz_Comparison_Exp>;
819
+ id?: InputMaybe<Uuid_Comparison_Exp>;
820
+ is_current?: InputMaybe<Boolean_Comparison_Exp>;
821
+ price_cents?: InputMaybe<Int_Comparison_Exp>;
822
+ version?: InputMaybe<Int_Comparison_Exp>;
823
+ whop_plan_id?: InputMaybe<String_Comparison_Exp>;
824
+ };
825
+ /** order by max() on columns of table "credit_pack_versions" */
826
+ export type Credit_Pack_Versions_Max_Order_By = {
827
+ created_at?: InputMaybe<Order_By>;
828
+ credit_pack_id?: InputMaybe<Order_By>;
829
+ credits?: InputMaybe<Order_By>;
830
+ deprecated_at?: InputMaybe<Order_By>;
831
+ id?: InputMaybe<Order_By>;
832
+ price_cents?: InputMaybe<Order_By>;
833
+ version?: InputMaybe<Order_By>;
834
+ whop_plan_id?: InputMaybe<Order_By>;
835
+ };
836
+ /** order by min() on columns of table "credit_pack_versions" */
837
+ export type Credit_Pack_Versions_Min_Order_By = {
838
+ created_at?: InputMaybe<Order_By>;
839
+ credit_pack_id?: InputMaybe<Order_By>;
840
+ credits?: InputMaybe<Order_By>;
841
+ deprecated_at?: InputMaybe<Order_By>;
842
+ id?: InputMaybe<Order_By>;
843
+ price_cents?: InputMaybe<Order_By>;
844
+ version?: InputMaybe<Order_By>;
845
+ whop_plan_id?: InputMaybe<Order_By>;
846
+ };
847
+ /** Ordering options when selecting data from "credit_pack_versions". */
848
+ export type Credit_Pack_Versions_Order_By = {
849
+ created_at?: InputMaybe<Order_By>;
850
+ credit_pack?: InputMaybe<Credit_Packs_Order_By>;
851
+ credit_pack_id?: InputMaybe<Order_By>;
852
+ credits?: InputMaybe<Order_By>;
853
+ deprecated_at?: InputMaybe<Order_By>;
854
+ id?: InputMaybe<Order_By>;
855
+ is_current?: InputMaybe<Order_By>;
856
+ price_cents?: InputMaybe<Order_By>;
857
+ version?: InputMaybe<Order_By>;
858
+ whop_plan_id?: InputMaybe<Order_By>;
859
+ };
860
+ /** select columns of table "credit_pack_versions" */
861
+ export declare enum Credit_Pack_Versions_Select_Column {
862
+ /** column name */
863
+ CreatedAt = "created_at",
864
+ /** column name */
865
+ CreditPackId = "credit_pack_id",
866
+ /** column name */
867
+ Credits = "credits",
868
+ /** column name */
869
+ DeprecatedAt = "deprecated_at",
870
+ /** column name */
871
+ Id = "id",
872
+ /** column name */
873
+ IsCurrent = "is_current",
874
+ /** column name */
875
+ PriceCents = "price_cents",
876
+ /** column name */
877
+ Version = "version",
878
+ /** column name */
879
+ WhopPlanId = "whop_plan_id"
880
+ }
881
+ /** order by stddev() on columns of table "credit_pack_versions" */
882
+ export type Credit_Pack_Versions_Stddev_Order_By = {
883
+ credits?: InputMaybe<Order_By>;
884
+ price_cents?: InputMaybe<Order_By>;
885
+ version?: InputMaybe<Order_By>;
886
+ };
887
+ /** order by stddev_pop() on columns of table "credit_pack_versions" */
888
+ export type Credit_Pack_Versions_Stddev_Pop_Order_By = {
889
+ credits?: InputMaybe<Order_By>;
890
+ price_cents?: InputMaybe<Order_By>;
891
+ version?: InputMaybe<Order_By>;
892
+ };
893
+ /** order by stddev_samp() on columns of table "credit_pack_versions" */
894
+ export type Credit_Pack_Versions_Stddev_Samp_Order_By = {
895
+ credits?: InputMaybe<Order_By>;
896
+ price_cents?: InputMaybe<Order_By>;
897
+ version?: InputMaybe<Order_By>;
898
+ };
899
+ /** Streaming cursor of the table "credit_pack_versions" */
900
+ export type Credit_Pack_Versions_Stream_Cursor_Input = {
901
+ /** Stream column input with initial value */
902
+ initial_value: Credit_Pack_Versions_Stream_Cursor_Value_Input;
903
+ /** cursor ordering */
904
+ ordering?: InputMaybe<Cursor_Ordering>;
905
+ };
906
+ /** Initial value of the column from where the streaming should start */
907
+ export type Credit_Pack_Versions_Stream_Cursor_Value_Input = {
908
+ created_at?: InputMaybe<Scalars['timestamptz']['input']>;
909
+ credit_pack_id?: InputMaybe<Scalars['uuid']['input']>;
910
+ credits?: InputMaybe<Scalars['Int']['input']>;
911
+ deprecated_at?: InputMaybe<Scalars['timestamptz']['input']>;
912
+ id?: InputMaybe<Scalars['uuid']['input']>;
913
+ is_current?: InputMaybe<Scalars['Boolean']['input']>;
914
+ price_cents?: InputMaybe<Scalars['Int']['input']>;
915
+ version?: InputMaybe<Scalars['Int']['input']>;
916
+ whop_plan_id?: InputMaybe<Scalars['String']['input']>;
917
+ };
918
+ /** order by sum() on columns of table "credit_pack_versions" */
919
+ export type Credit_Pack_Versions_Sum_Order_By = {
920
+ credits?: InputMaybe<Order_By>;
921
+ price_cents?: InputMaybe<Order_By>;
922
+ version?: InputMaybe<Order_By>;
923
+ };
924
+ /** order by var_pop() on columns of table "credit_pack_versions" */
925
+ export type Credit_Pack_Versions_Var_Pop_Order_By = {
926
+ credits?: InputMaybe<Order_By>;
927
+ price_cents?: InputMaybe<Order_By>;
928
+ version?: InputMaybe<Order_By>;
929
+ };
930
+ /** order by var_samp() on columns of table "credit_pack_versions" */
931
+ export type Credit_Pack_Versions_Var_Samp_Order_By = {
932
+ credits?: InputMaybe<Order_By>;
933
+ price_cents?: InputMaybe<Order_By>;
934
+ version?: InputMaybe<Order_By>;
935
+ };
936
+ /** order by variance() on columns of table "credit_pack_versions" */
937
+ export type Credit_Pack_Versions_Variance_Order_By = {
938
+ credits?: InputMaybe<Order_By>;
939
+ price_cents?: InputMaybe<Order_By>;
940
+ version?: InputMaybe<Order_By>;
941
+ };
723
942
  /** columns and relationships of "credit_packs" */
724
943
  export type Credit_Packs = {
725
944
  __typename?: 'credit_packs';
726
- credits: Scalars['Int']['output'];
727
945
  id: Scalars['uuid']['output'];
728
946
  name: Scalars['String']['output'];
729
- price_cents: Scalars['Int']['output'];
730
947
  slug: Scalars['String']['output'];
731
948
  sort_order: Scalars['Int']['output'];
732
- whop_plan_id?: Maybe<Scalars['String']['output']>;
949
+ /** An array relationship */
950
+ versions: Array<Credit_Pack_Versions>;
951
+ };
952
+ /** columns and relationships of "credit_packs" */
953
+ export type Credit_PacksVersionsArgs = {
954
+ distinct_on?: InputMaybe<Array<Credit_Pack_Versions_Select_Column>>;
955
+ limit?: InputMaybe<Scalars['Int']['input']>;
956
+ offset?: InputMaybe<Scalars['Int']['input']>;
957
+ order_by?: InputMaybe<Array<Credit_Pack_Versions_Order_By>>;
958
+ where?: InputMaybe<Credit_Pack_Versions_Bool_Exp>;
733
959
  };
734
960
  /** Boolean expression to filter rows from the table "credit_packs". All fields are combined with a logical 'AND'. */
735
961
  export type Credit_Packs_Bool_Exp = {
736
962
  _and?: InputMaybe<Array<Credit_Packs_Bool_Exp>>;
737
963
  _not?: InputMaybe<Credit_Packs_Bool_Exp>;
738
964
  _or?: InputMaybe<Array<Credit_Packs_Bool_Exp>>;
739
- credits?: InputMaybe<Int_Comparison_Exp>;
740
965
  id?: InputMaybe<Uuid_Comparison_Exp>;
741
966
  name?: InputMaybe<String_Comparison_Exp>;
742
- price_cents?: InputMaybe<Int_Comparison_Exp>;
743
967
  slug?: InputMaybe<String_Comparison_Exp>;
744
968
  sort_order?: InputMaybe<Int_Comparison_Exp>;
745
- whop_plan_id?: InputMaybe<String_Comparison_Exp>;
969
+ versions?: InputMaybe<Credit_Pack_Versions_Bool_Exp>;
746
970
  };
747
971
  /** Ordering options when selecting data from "credit_packs". */
748
972
  export type Credit_Packs_Order_By = {
749
- credits?: InputMaybe<Order_By>;
750
973
  id?: InputMaybe<Order_By>;
751
974
  name?: InputMaybe<Order_By>;
752
- price_cents?: InputMaybe<Order_By>;
753
975
  slug?: InputMaybe<Order_By>;
754
976
  sort_order?: InputMaybe<Order_By>;
755
- whop_plan_id?: InputMaybe<Order_By>;
977
+ versions_aggregate?: InputMaybe<Credit_Pack_Versions_Aggregate_Order_By>;
756
978
  };
757
979
  /** select columns of table "credit_packs" */
758
980
  export declare enum Credit_Packs_Select_Column {
759
- /** column name */
760
- Credits = "credits",
761
981
  /** column name */
762
982
  Id = "id",
763
983
  /** column name */
764
984
  Name = "name",
765
985
  /** column name */
766
- PriceCents = "price_cents",
767
- /** column name */
768
986
  Slug = "slug",
769
987
  /** column name */
770
- SortOrder = "sort_order",
771
- /** column name */
772
- WhopPlanId = "whop_plan_id"
988
+ SortOrder = "sort_order"
773
989
  }
774
990
  /** Streaming cursor of the table "credit_packs" */
775
991
  export type Credit_Packs_Stream_Cursor_Input = {
@@ -780,13 +996,10 @@ export type Credit_Packs_Stream_Cursor_Input = {
780
996
  };
781
997
  /** Initial value of the column from where the streaming should start */
782
998
  export type Credit_Packs_Stream_Cursor_Value_Input = {
783
- credits?: InputMaybe<Scalars['Int']['input']>;
784
999
  id?: InputMaybe<Scalars['uuid']['input']>;
785
1000
  name?: InputMaybe<Scalars['String']['input']>;
786
- price_cents?: InputMaybe<Scalars['Int']['input']>;
787
1001
  slug?: InputMaybe<Scalars['String']['input']>;
788
1002
  sort_order?: InputMaybe<Scalars['Int']['input']>;
789
- whop_plan_id?: InputMaybe<Scalars['String']['input']>;
790
1003
  };
791
1004
  export type Current_User_Output = {
792
1005
  __typename?: 'current_user_output';
@@ -814,6 +1027,13 @@ export type Ensure_Affiliate_Output = {
814
1027
  affiliate_id: Scalars['String']['output'];
815
1028
  success: Scalars['Boolean']['output'];
816
1029
  };
1030
+ export type Estimate_Pipeline_Cost_Output = {
1031
+ __typename?: 'estimate_pipeline_cost_output';
1032
+ estimated_mc: Scalars['Int']['output'];
1033
+ is_metered: Scalars['Boolean']['output'];
1034
+ pipeline_slug: Scalars['String']['output'];
1035
+ reservation_mc: Scalars['Int']['output'];
1036
+ };
817
1037
  /** columns and relationships of "executions_visibility" */
818
1038
  export type Executions_Visibility = {
819
1039
  __typename?: 'executions_visibility';
@@ -915,9 +1135,20 @@ export type Jsonb_Comparison_Exp = {
915
1135
  _neq?: InputMaybe<Scalars['jsonb']['input']>;
916
1136
  _nin?: InputMaybe<Array<Scalars['jsonb']['input']>>;
917
1137
  };
1138
+ export type Multipart_Part_Input = {
1139
+ ETag: Scalars['String']['input'];
1140
+ PartNumber: Scalars['Int']['input'];
1141
+ };
1142
+ export type Multipart_Part_Url = {
1143
+ __typename?: 'multipart_part_url';
1144
+ part_number: Scalars['Int']['output'];
1145
+ url: Scalars['String']['output'];
1146
+ };
918
1147
  /** mutation root */
919
1148
  export type Mutation_Root = {
920
1149
  __typename?: 'mutation_root';
1150
+ /** Cancel an in-progress multipart upload (cleanup) */
1151
+ abort_multipart_upload: Abort_Multipart_Upload_Output;
921
1152
  /** Add a new primary affiliate code */
922
1153
  add_affiliate_code: Add_Affiliate_Code_Output;
923
1154
  /** Cancel a pending scheduled account deletion during the grace period. */
@@ -932,6 +1163,8 @@ export type Mutation_Root = {
932
1163
  change_name: Change_Name_Output;
933
1164
  /** Change the current user's password via Kratos settings flow */
934
1165
  change_password: Change_Password_Output;
1166
+ /** Finalize a multipart upload and register the asset row */
1167
+ complete_multipart_upload: Create_Asset_Output;
935
1168
  /** Validate a deletion JWT and schedule the account for deletion (token-authed, anonymous-allowed). */
936
1169
  confirm_account_deletion: Confirm_Account_Deletion_Output;
937
1170
  /** Create an asset record after S3 upload */
@@ -958,6 +1191,8 @@ export type Mutation_Root = {
958
1191
  request_account_deletion: Request_Account_Deletion_Output;
959
1192
  /** Mint a presigned S3 PUT URL for an avatar image */
960
1193
  request_avatar_upload: Request_Avatar_Upload_Output;
1194
+ /** Initiate an S3 multipart upload and return one presigned PUT URL per part */
1195
+ request_multipart_upload: Request_Multipart_Upload_Output;
961
1196
  /** Generate presigned S3 PUT URL for direct browser uploads */
962
1197
  request_upload: Request_Upload_Output;
963
1198
  /** Revoke a personal access token */
@@ -994,6 +1229,11 @@ export type Mutation_Root = {
994
1229
  update_notifications_many?: Maybe<Array<Maybe<Notifications_Mutation_Response>>>;
995
1230
  };
996
1231
  /** mutation root */
1232
+ export type Mutation_RootAbort_Multipart_UploadArgs = {
1233
+ key: Scalars['String']['input'];
1234
+ upload_id: Scalars['String']['input'];
1235
+ };
1236
+ /** mutation root */
997
1237
  export type Mutation_RootAdd_Affiliate_CodeArgs = {
998
1238
  code: Scalars['String']['input'];
999
1239
  redirect_path?: InputMaybe<Scalars['String']['input']>;
@@ -1016,14 +1256,21 @@ export type Mutation_RootChange_PasswordArgs = {
1016
1256
  new_password: Scalars['String']['input'];
1017
1257
  };
1018
1258
  /** mutation root */
1259
+ export type Mutation_RootComplete_Multipart_UploadArgs = {
1260
+ content_type: Scalars['String']['input'];
1261
+ key: Scalars['String']['input'];
1262
+ parts: Array<Multipart_Part_Input>;
1263
+ tags?: InputMaybe<Array<Scalars['String']['input']>>;
1264
+ upload_id: Scalars['String']['input'];
1265
+ };
1266
+ /** mutation root */
1019
1267
  export type Mutation_RootConfirm_Account_DeletionArgs = {
1020
1268
  token: Scalars['String']['input'];
1021
1269
  };
1022
1270
  /** mutation root */
1023
1271
  export type Mutation_RootCreate_AssetArgs = {
1272
+ key: Scalars['String']['input'];
1024
1273
  tags?: InputMaybe<Array<Scalars['String']['input']>>;
1025
- type: Scalars['String']['input'];
1026
- url: Scalars['String']['input'];
1027
1274
  };
1028
1275
  /** mutation root */
1029
1276
  export type Mutation_RootCreate_Personal_Access_TokenArgs = {
@@ -1056,6 +1303,13 @@ export type Mutation_RootRequest_Avatar_UploadArgs = {
1056
1303
  filename: Scalars['String']['input'];
1057
1304
  };
1058
1305
  /** mutation root */
1306
+ export type Mutation_RootRequest_Multipart_UploadArgs = {
1307
+ content_type: Scalars['String']['input'];
1308
+ filename: Scalars['String']['input'];
1309
+ part_size?: InputMaybe<Scalars['bigint']['input']>;
1310
+ total_size: Scalars['bigint']['input'];
1311
+ };
1312
+ /** mutation root */
1059
1313
  export type Mutation_RootRequest_UploadArgs = {
1060
1314
  content_type: Scalars['String']['input'];
1061
1315
  filename: Scalars['String']['input'];
@@ -1600,11 +1854,12 @@ export type Pipelines = {
1600
1854
  id: Scalars['uuid']['output'];
1601
1855
  input_schema: Scalars['jsonb']['output'];
1602
1856
  is_active: Scalars['Boolean']['output'];
1857
+ models: Array<Scalars['String']['output']>;
1603
1858
  name: Scalars['String']['output'];
1604
1859
  output_schema: Scalars['jsonb']['output'];
1605
1860
  preview_url?: Maybe<Scalars['String']['output']>;
1606
1861
  pricing: Scalars['jsonb']['output'];
1607
- required_providers: Array<Scalars['String']['output']>;
1862
+ providers: Array<Scalars['String']['output']>;
1608
1863
  seo_content?: Maybe<Scalars['String']['output']>;
1609
1864
  seo_faq?: Maybe<Scalars['jsonb']['output']>;
1610
1865
  slug: Scalars['String']['output'];
@@ -1649,11 +1904,12 @@ export type Pipelines_Bool_Exp = {
1649
1904
  id?: InputMaybe<Uuid_Comparison_Exp>;
1650
1905
  input_schema?: InputMaybe<Jsonb_Comparison_Exp>;
1651
1906
  is_active?: InputMaybe<Boolean_Comparison_Exp>;
1907
+ models?: InputMaybe<String_Array_Comparison_Exp>;
1652
1908
  name?: InputMaybe<String_Comparison_Exp>;
1653
1909
  output_schema?: InputMaybe<Jsonb_Comparison_Exp>;
1654
1910
  preview_url?: InputMaybe<String_Comparison_Exp>;
1655
1911
  pricing?: InputMaybe<Jsonb_Comparison_Exp>;
1656
- required_providers?: InputMaybe<String_Array_Comparison_Exp>;
1912
+ providers?: InputMaybe<String_Array_Comparison_Exp>;
1657
1913
  seo_content?: InputMaybe<String_Comparison_Exp>;
1658
1914
  seo_faq?: InputMaybe<Jsonb_Comparison_Exp>;
1659
1915
  slug?: InputMaybe<String_Comparison_Exp>;
@@ -1671,11 +1927,12 @@ export type Pipelines_Order_By = {
1671
1927
  id?: InputMaybe<Order_By>;
1672
1928
  input_schema?: InputMaybe<Order_By>;
1673
1929
  is_active?: InputMaybe<Order_By>;
1930
+ models?: InputMaybe<Order_By>;
1674
1931
  name?: InputMaybe<Order_By>;
1675
1932
  output_schema?: InputMaybe<Order_By>;
1676
1933
  preview_url?: InputMaybe<Order_By>;
1677
1934
  pricing?: InputMaybe<Order_By>;
1678
- required_providers?: InputMaybe<Order_By>;
1935
+ providers?: InputMaybe<Order_By>;
1679
1936
  seo_content?: InputMaybe<Order_By>;
1680
1937
  seo_faq?: InputMaybe<Order_By>;
1681
1938
  slug?: InputMaybe<Order_By>;
@@ -1702,6 +1959,8 @@ export declare enum Pipelines_Select_Column {
1702
1959
  /** column name */
1703
1960
  IsActive = "is_active",
1704
1961
  /** column name */
1962
+ Models = "models",
1963
+ /** column name */
1705
1964
  Name = "name",
1706
1965
  /** column name */
1707
1966
  OutputSchema = "output_schema",
@@ -1710,7 +1969,7 @@ export declare enum Pipelines_Select_Column {
1710
1969
  /** column name */
1711
1970
  Pricing = "pricing",
1712
1971
  /** column name */
1713
- RequiredProviders = "required_providers",
1972
+ Providers = "providers",
1714
1973
  /** column name */
1715
1974
  SeoContent = "seo_content",
1716
1975
  /** column name */
@@ -1742,11 +2001,12 @@ export type Pipelines_Stream_Cursor_Value_Input = {
1742
2001
  id?: InputMaybe<Scalars['uuid']['input']>;
1743
2002
  input_schema?: InputMaybe<Scalars['jsonb']['input']>;
1744
2003
  is_active?: InputMaybe<Scalars['Boolean']['input']>;
2004
+ models?: InputMaybe<Array<Scalars['String']['input']>>;
1745
2005
  name?: InputMaybe<Scalars['String']['input']>;
1746
2006
  output_schema?: InputMaybe<Scalars['jsonb']['input']>;
1747
2007
  preview_url?: InputMaybe<Scalars['String']['input']>;
1748
2008
  pricing?: InputMaybe<Scalars['jsonb']['input']>;
1749
- required_providers?: InputMaybe<Array<Scalars['String']['input']>>;
2009
+ providers?: InputMaybe<Array<Scalars['String']['input']>>;
1750
2010
  seo_content?: InputMaybe<Scalars['String']['input']>;
1751
2011
  seo_faq?: InputMaybe<Scalars['jsonb']['input']>;
1752
2012
  slug?: InputMaybe<Scalars['String']['input']>;
@@ -1754,23 +2014,250 @@ export type Pipelines_Stream_Cursor_Value_Input = {
1754
2014
  tags?: InputMaybe<Array<Scalars['String']['input']>>;
1755
2015
  ui_schema?: InputMaybe<Scalars['jsonb']['input']>;
1756
2016
  };
2017
+ /** columns and relationships of "plan_versions" */
2018
+ export type Plan_Versions = {
2019
+ __typename?: 'plan_versions';
2020
+ created_at: Scalars['timestamptz']['output'];
2021
+ deprecated_at?: Maybe<Scalars['timestamptz']['output']>;
2022
+ id: Scalars['uuid']['output'];
2023
+ is_current: Scalars['Boolean']['output'];
2024
+ /** Total library size cap in bytes. 0 means no quota seeded yet (treat as denied). */
2025
+ max_storage_bytes: Scalars['bigint']['output'];
2026
+ /** Per-asset-type upload caps as JSON: {"image": <bytes>, "video": <bytes>, "audio": <bytes>}. */
2027
+ max_upload_bytes: Scalars['jsonb']['output'];
2028
+ monthly_credits: Scalars['Int']['output'];
2029
+ /** An object relationship */
2030
+ plan: Plans;
2031
+ plan_id: Scalars['uuid']['output'];
2032
+ price_cents: Scalars['Int']['output'];
2033
+ /** An array relationship */
2034
+ subscriptions: Array<Subscriptions>;
2035
+ version: Scalars['Int']['output'];
2036
+ whop_plan_id?: Maybe<Scalars['String']['output']>;
2037
+ };
2038
+ /** columns and relationships of "plan_versions" */
2039
+ export type Plan_VersionsMax_Upload_BytesArgs = {
2040
+ path?: InputMaybe<Scalars['String']['input']>;
2041
+ };
2042
+ /** columns and relationships of "plan_versions" */
2043
+ export type Plan_VersionsSubscriptionsArgs = {
2044
+ distinct_on?: InputMaybe<Array<Subscriptions_Select_Column>>;
2045
+ limit?: InputMaybe<Scalars['Int']['input']>;
2046
+ offset?: InputMaybe<Scalars['Int']['input']>;
2047
+ order_by?: InputMaybe<Array<Subscriptions_Order_By>>;
2048
+ where?: InputMaybe<Subscriptions_Bool_Exp>;
2049
+ };
2050
+ /** order by aggregate values of table "plan_versions" */
2051
+ export type Plan_Versions_Aggregate_Order_By = {
2052
+ avg?: InputMaybe<Plan_Versions_Avg_Order_By>;
2053
+ count?: InputMaybe<Order_By>;
2054
+ max?: InputMaybe<Plan_Versions_Max_Order_By>;
2055
+ min?: InputMaybe<Plan_Versions_Min_Order_By>;
2056
+ stddev?: InputMaybe<Plan_Versions_Stddev_Order_By>;
2057
+ stddev_pop?: InputMaybe<Plan_Versions_Stddev_Pop_Order_By>;
2058
+ stddev_samp?: InputMaybe<Plan_Versions_Stddev_Samp_Order_By>;
2059
+ sum?: InputMaybe<Plan_Versions_Sum_Order_By>;
2060
+ var_pop?: InputMaybe<Plan_Versions_Var_Pop_Order_By>;
2061
+ var_samp?: InputMaybe<Plan_Versions_Var_Samp_Order_By>;
2062
+ variance?: InputMaybe<Plan_Versions_Variance_Order_By>;
2063
+ };
2064
+ /** order by avg() on columns of table "plan_versions" */
2065
+ export type Plan_Versions_Avg_Order_By = {
2066
+ /** Total library size cap in bytes. 0 means no quota seeded yet (treat as denied). */
2067
+ max_storage_bytes?: InputMaybe<Order_By>;
2068
+ monthly_credits?: InputMaybe<Order_By>;
2069
+ price_cents?: InputMaybe<Order_By>;
2070
+ version?: InputMaybe<Order_By>;
2071
+ };
2072
+ /** Boolean expression to filter rows from the table "plan_versions". All fields are combined with a logical 'AND'. */
2073
+ export type Plan_Versions_Bool_Exp = {
2074
+ _and?: InputMaybe<Array<Plan_Versions_Bool_Exp>>;
2075
+ _not?: InputMaybe<Plan_Versions_Bool_Exp>;
2076
+ _or?: InputMaybe<Array<Plan_Versions_Bool_Exp>>;
2077
+ created_at?: InputMaybe<Timestamptz_Comparison_Exp>;
2078
+ deprecated_at?: InputMaybe<Timestamptz_Comparison_Exp>;
2079
+ id?: InputMaybe<Uuid_Comparison_Exp>;
2080
+ is_current?: InputMaybe<Boolean_Comparison_Exp>;
2081
+ max_storage_bytes?: InputMaybe<Bigint_Comparison_Exp>;
2082
+ max_upload_bytes?: InputMaybe<Jsonb_Comparison_Exp>;
2083
+ monthly_credits?: InputMaybe<Int_Comparison_Exp>;
2084
+ plan?: InputMaybe<Plans_Bool_Exp>;
2085
+ plan_id?: InputMaybe<Uuid_Comparison_Exp>;
2086
+ price_cents?: InputMaybe<Int_Comparison_Exp>;
2087
+ subscriptions?: InputMaybe<Subscriptions_Bool_Exp>;
2088
+ version?: InputMaybe<Int_Comparison_Exp>;
2089
+ whop_plan_id?: InputMaybe<String_Comparison_Exp>;
2090
+ };
2091
+ /** order by max() on columns of table "plan_versions" */
2092
+ export type Plan_Versions_Max_Order_By = {
2093
+ created_at?: InputMaybe<Order_By>;
2094
+ deprecated_at?: InputMaybe<Order_By>;
2095
+ id?: InputMaybe<Order_By>;
2096
+ /** Total library size cap in bytes. 0 means no quota seeded yet (treat as denied). */
2097
+ max_storage_bytes?: InputMaybe<Order_By>;
2098
+ monthly_credits?: InputMaybe<Order_By>;
2099
+ plan_id?: InputMaybe<Order_By>;
2100
+ price_cents?: InputMaybe<Order_By>;
2101
+ version?: InputMaybe<Order_By>;
2102
+ whop_plan_id?: InputMaybe<Order_By>;
2103
+ };
2104
+ /** order by min() on columns of table "plan_versions" */
2105
+ export type Plan_Versions_Min_Order_By = {
2106
+ created_at?: InputMaybe<Order_By>;
2107
+ deprecated_at?: InputMaybe<Order_By>;
2108
+ id?: InputMaybe<Order_By>;
2109
+ /** Total library size cap in bytes. 0 means no quota seeded yet (treat as denied). */
2110
+ max_storage_bytes?: InputMaybe<Order_By>;
2111
+ monthly_credits?: InputMaybe<Order_By>;
2112
+ plan_id?: InputMaybe<Order_By>;
2113
+ price_cents?: InputMaybe<Order_By>;
2114
+ version?: InputMaybe<Order_By>;
2115
+ whop_plan_id?: InputMaybe<Order_By>;
2116
+ };
2117
+ /** Ordering options when selecting data from "plan_versions". */
2118
+ export type Plan_Versions_Order_By = {
2119
+ created_at?: InputMaybe<Order_By>;
2120
+ deprecated_at?: InputMaybe<Order_By>;
2121
+ id?: InputMaybe<Order_By>;
2122
+ is_current?: InputMaybe<Order_By>;
2123
+ max_storage_bytes?: InputMaybe<Order_By>;
2124
+ max_upload_bytes?: InputMaybe<Order_By>;
2125
+ monthly_credits?: InputMaybe<Order_By>;
2126
+ plan?: InputMaybe<Plans_Order_By>;
2127
+ plan_id?: InputMaybe<Order_By>;
2128
+ price_cents?: InputMaybe<Order_By>;
2129
+ subscriptions_aggregate?: InputMaybe<Subscriptions_Aggregate_Order_By>;
2130
+ version?: InputMaybe<Order_By>;
2131
+ whop_plan_id?: InputMaybe<Order_By>;
2132
+ };
2133
+ /** select columns of table "plan_versions" */
2134
+ export declare enum Plan_Versions_Select_Column {
2135
+ /** column name */
2136
+ CreatedAt = "created_at",
2137
+ /** column name */
2138
+ DeprecatedAt = "deprecated_at",
2139
+ /** column name */
2140
+ Id = "id",
2141
+ /** column name */
2142
+ IsCurrent = "is_current",
2143
+ /** column name */
2144
+ MaxStorageBytes = "max_storage_bytes",
2145
+ /** column name */
2146
+ MaxUploadBytes = "max_upload_bytes",
2147
+ /** column name */
2148
+ MonthlyCredits = "monthly_credits",
2149
+ /** column name */
2150
+ PlanId = "plan_id",
2151
+ /** column name */
2152
+ PriceCents = "price_cents",
2153
+ /** column name */
2154
+ Version = "version",
2155
+ /** column name */
2156
+ WhopPlanId = "whop_plan_id"
2157
+ }
2158
+ /** order by stddev() on columns of table "plan_versions" */
2159
+ export type Plan_Versions_Stddev_Order_By = {
2160
+ /** Total library size cap in bytes. 0 means no quota seeded yet (treat as denied). */
2161
+ max_storage_bytes?: InputMaybe<Order_By>;
2162
+ monthly_credits?: InputMaybe<Order_By>;
2163
+ price_cents?: InputMaybe<Order_By>;
2164
+ version?: InputMaybe<Order_By>;
2165
+ };
2166
+ /** order by stddev_pop() on columns of table "plan_versions" */
2167
+ export type Plan_Versions_Stddev_Pop_Order_By = {
2168
+ /** Total library size cap in bytes. 0 means no quota seeded yet (treat as denied). */
2169
+ max_storage_bytes?: InputMaybe<Order_By>;
2170
+ monthly_credits?: InputMaybe<Order_By>;
2171
+ price_cents?: InputMaybe<Order_By>;
2172
+ version?: InputMaybe<Order_By>;
2173
+ };
2174
+ /** order by stddev_samp() on columns of table "plan_versions" */
2175
+ export type Plan_Versions_Stddev_Samp_Order_By = {
2176
+ /** Total library size cap in bytes. 0 means no quota seeded yet (treat as denied). */
2177
+ max_storage_bytes?: InputMaybe<Order_By>;
2178
+ monthly_credits?: InputMaybe<Order_By>;
2179
+ price_cents?: InputMaybe<Order_By>;
2180
+ version?: InputMaybe<Order_By>;
2181
+ };
2182
+ /** Streaming cursor of the table "plan_versions" */
2183
+ export type Plan_Versions_Stream_Cursor_Input = {
2184
+ /** Stream column input with initial value */
2185
+ initial_value: Plan_Versions_Stream_Cursor_Value_Input;
2186
+ /** cursor ordering */
2187
+ ordering?: InputMaybe<Cursor_Ordering>;
2188
+ };
2189
+ /** Initial value of the column from where the streaming should start */
2190
+ export type Plan_Versions_Stream_Cursor_Value_Input = {
2191
+ created_at?: InputMaybe<Scalars['timestamptz']['input']>;
2192
+ deprecated_at?: InputMaybe<Scalars['timestamptz']['input']>;
2193
+ id?: InputMaybe<Scalars['uuid']['input']>;
2194
+ is_current?: InputMaybe<Scalars['Boolean']['input']>;
2195
+ /** Total library size cap in bytes. 0 means no quota seeded yet (treat as denied). */
2196
+ max_storage_bytes?: InputMaybe<Scalars['bigint']['input']>;
2197
+ /** Per-asset-type upload caps as JSON: {"image": <bytes>, "video": <bytes>, "audio": <bytes>}. */
2198
+ max_upload_bytes?: InputMaybe<Scalars['jsonb']['input']>;
2199
+ monthly_credits?: InputMaybe<Scalars['Int']['input']>;
2200
+ plan_id?: InputMaybe<Scalars['uuid']['input']>;
2201
+ price_cents?: InputMaybe<Scalars['Int']['input']>;
2202
+ version?: InputMaybe<Scalars['Int']['input']>;
2203
+ whop_plan_id?: InputMaybe<Scalars['String']['input']>;
2204
+ };
2205
+ /** order by sum() on columns of table "plan_versions" */
2206
+ export type Plan_Versions_Sum_Order_By = {
2207
+ /** Total library size cap in bytes. 0 means no quota seeded yet (treat as denied). */
2208
+ max_storage_bytes?: InputMaybe<Order_By>;
2209
+ monthly_credits?: InputMaybe<Order_By>;
2210
+ price_cents?: InputMaybe<Order_By>;
2211
+ version?: InputMaybe<Order_By>;
2212
+ };
2213
+ /** order by var_pop() on columns of table "plan_versions" */
2214
+ export type Plan_Versions_Var_Pop_Order_By = {
2215
+ /** Total library size cap in bytes. 0 means no quota seeded yet (treat as denied). */
2216
+ max_storage_bytes?: InputMaybe<Order_By>;
2217
+ monthly_credits?: InputMaybe<Order_By>;
2218
+ price_cents?: InputMaybe<Order_By>;
2219
+ version?: InputMaybe<Order_By>;
2220
+ };
2221
+ /** order by var_samp() on columns of table "plan_versions" */
2222
+ export type Plan_Versions_Var_Samp_Order_By = {
2223
+ /** Total library size cap in bytes. 0 means no quota seeded yet (treat as denied). */
2224
+ max_storage_bytes?: InputMaybe<Order_By>;
2225
+ monthly_credits?: InputMaybe<Order_By>;
2226
+ price_cents?: InputMaybe<Order_By>;
2227
+ version?: InputMaybe<Order_By>;
2228
+ };
2229
+ /** order by variance() on columns of table "plan_versions" */
2230
+ export type Plan_Versions_Variance_Order_By = {
2231
+ /** Total library size cap in bytes. 0 means no quota seeded yet (treat as denied). */
2232
+ max_storage_bytes?: InputMaybe<Order_By>;
2233
+ monthly_credits?: InputMaybe<Order_By>;
2234
+ price_cents?: InputMaybe<Order_By>;
2235
+ version?: InputMaybe<Order_By>;
2236
+ };
1757
2237
  /** columns and relationships of "plans" */
1758
2238
  export type Plans = {
1759
2239
  __typename?: 'plans';
1760
2240
  description?: Maybe<Scalars['String']['output']>;
1761
2241
  features: Scalars['jsonb']['output'];
1762
2242
  id: Scalars['uuid']['output'];
1763
- monthly_credits: Scalars['Int']['output'];
1764
2243
  name: Scalars['String']['output'];
1765
- price_cents: Scalars['Int']['output'];
1766
2244
  slug: Scalars['String']['output'];
1767
2245
  sort_order: Scalars['Int']['output'];
1768
- whop_plan_id?: Maybe<Scalars['String']['output']>;
2246
+ /** An array relationship */
2247
+ versions: Array<Plan_Versions>;
1769
2248
  };
1770
2249
  /** columns and relationships of "plans" */
1771
2250
  export type PlansFeaturesArgs = {
1772
2251
  path?: InputMaybe<Scalars['String']['input']>;
1773
2252
  };
2253
+ /** columns and relationships of "plans" */
2254
+ export type PlansVersionsArgs = {
2255
+ distinct_on?: InputMaybe<Array<Plan_Versions_Select_Column>>;
2256
+ limit?: InputMaybe<Scalars['Int']['input']>;
2257
+ offset?: InputMaybe<Scalars['Int']['input']>;
2258
+ order_by?: InputMaybe<Array<Plan_Versions_Order_By>>;
2259
+ where?: InputMaybe<Plan_Versions_Bool_Exp>;
2260
+ };
1774
2261
  /** Boolean expression to filter rows from the table "plans". All fields are combined with a logical 'AND'. */
1775
2262
  export type Plans_Bool_Exp = {
1776
2263
  _and?: InputMaybe<Array<Plans_Bool_Exp>>;
@@ -1779,24 +2266,20 @@ export type Plans_Bool_Exp = {
1779
2266
  description?: InputMaybe<String_Comparison_Exp>;
1780
2267
  features?: InputMaybe<Jsonb_Comparison_Exp>;
1781
2268
  id?: InputMaybe<Uuid_Comparison_Exp>;
1782
- monthly_credits?: InputMaybe<Int_Comparison_Exp>;
1783
2269
  name?: InputMaybe<String_Comparison_Exp>;
1784
- price_cents?: InputMaybe<Int_Comparison_Exp>;
1785
2270
  slug?: InputMaybe<String_Comparison_Exp>;
1786
2271
  sort_order?: InputMaybe<Int_Comparison_Exp>;
1787
- whop_plan_id?: InputMaybe<String_Comparison_Exp>;
2272
+ versions?: InputMaybe<Plan_Versions_Bool_Exp>;
1788
2273
  };
1789
2274
  /** Ordering options when selecting data from "plans". */
1790
2275
  export type Plans_Order_By = {
1791
2276
  description?: InputMaybe<Order_By>;
1792
2277
  features?: InputMaybe<Order_By>;
1793
2278
  id?: InputMaybe<Order_By>;
1794
- monthly_credits?: InputMaybe<Order_By>;
1795
2279
  name?: InputMaybe<Order_By>;
1796
- price_cents?: InputMaybe<Order_By>;
1797
2280
  slug?: InputMaybe<Order_By>;
1798
2281
  sort_order?: InputMaybe<Order_By>;
1799
- whop_plan_id?: InputMaybe<Order_By>;
2282
+ versions_aggregate?: InputMaybe<Plan_Versions_Aggregate_Order_By>;
1800
2283
  };
1801
2284
  /** select columns of table "plans" */
1802
2285
  export declare enum Plans_Select_Column {
@@ -1807,17 +2290,11 @@ export declare enum Plans_Select_Column {
1807
2290
  /** column name */
1808
2291
  Id = "id",
1809
2292
  /** column name */
1810
- MonthlyCredits = "monthly_credits",
1811
- /** column name */
1812
2293
  Name = "name",
1813
2294
  /** column name */
1814
- PriceCents = "price_cents",
1815
- /** column name */
1816
2295
  Slug = "slug",
1817
2296
  /** column name */
1818
- SortOrder = "sort_order",
1819
- /** column name */
1820
- WhopPlanId = "whop_plan_id"
2297
+ SortOrder = "sort_order"
1821
2298
  }
1822
2299
  /** Streaming cursor of the table "plans" */
1823
2300
  export type Plans_Stream_Cursor_Input = {
@@ -1831,12 +2308,9 @@ export type Plans_Stream_Cursor_Value_Input = {
1831
2308
  description?: InputMaybe<Scalars['String']['input']>;
1832
2309
  features?: InputMaybe<Scalars['jsonb']['input']>;
1833
2310
  id?: InputMaybe<Scalars['uuid']['input']>;
1834
- monthly_credits?: InputMaybe<Scalars['Int']['input']>;
1835
2311
  name?: InputMaybe<Scalars['String']['input']>;
1836
- price_cents?: InputMaybe<Scalars['Int']['input']>;
1837
2312
  slug?: InputMaybe<Scalars['String']['input']>;
1838
2313
  sort_order?: InputMaybe<Scalars['Int']['input']>;
1839
- whop_plan_id?: InputMaybe<Scalars['String']['input']>;
1840
2314
  };
1841
2315
  export type Query_Root = {
1842
2316
  __typename?: 'query_root';
@@ -1854,12 +2328,18 @@ export type Query_Root = {
1854
2328
  assets_aggregate: Assets_Aggregate;
1855
2329
  /** fetch data from the table: "assets" using primary key columns */
1856
2330
  assets_by_pk?: Maybe<Assets>;
2331
+ /** fetch data from the table: "credit_pack_versions" */
2332
+ credit_pack_versions: Array<Credit_Pack_Versions>;
2333
+ /** fetch data from the table: "credit_pack_versions" using primary key columns */
2334
+ credit_pack_versions_by_pk?: Maybe<Credit_Pack_Versions>;
1857
2335
  /** fetch data from the table: "credit_packs" */
1858
2336
  credit_packs: Array<Credit_Packs>;
1859
2337
  /** fetch data from the table: "credit_packs" using primary key columns */
1860
2338
  credit_packs_by_pk?: Maybe<Credit_Packs>;
1861
2339
  /** Get currently authenticated user from JWT claims */
1862
2340
  current_user: Current_User_Output;
2341
+ /** Read-only credit cost preview for a pipeline+input — used by CLI --estimate and FE cost previews */
2342
+ estimate_pipeline_cost?: Maybe<Estimate_Pipeline_Cost_Output>;
1863
2343
  /** fetch data from the table: "executions_visibility" */
1864
2344
  executions_visibility: Array<Executions_Visibility>;
1865
2345
  /** Get user credit balance from TigerBeetle */
@@ -1888,11 +2368,15 @@ export type Query_Root = {
1888
2368
  pipelines: Array<Pipelines>;
1889
2369
  /** fetch data from the table: "pipelines" using primary key columns */
1890
2370
  pipelines_by_pk?: Maybe<Pipelines>;
2371
+ /** fetch data from the table: "plan_versions" */
2372
+ plan_versions: Array<Plan_Versions>;
2373
+ /** fetch data from the table: "plan_versions" using primary key columns */
2374
+ plan_versions_by_pk?: Maybe<Plan_Versions>;
1891
2375
  /** fetch data from the table: "plans" */
1892
2376
  plans: Array<Plans>;
1893
2377
  /** fetch data from the table: "plans" using primary key columns */
1894
2378
  plans_by_pk?: Maybe<Plans>;
1895
- /** fetch data from the table: "subscriptions" */
2379
+ /** An array relationship */
1896
2380
  subscriptions: Array<Subscriptions>;
1897
2381
  /** fetch data from the table: "subscriptions" using primary key columns */
1898
2382
  subscriptions_by_pk?: Maybe<Subscriptions>;
@@ -1934,6 +2418,16 @@ export type Query_RootAssets_AggregateArgs = {
1934
2418
  export type Query_RootAssets_By_PkArgs = {
1935
2419
  id: Scalars['uuid']['input'];
1936
2420
  };
2421
+ export type Query_RootCredit_Pack_VersionsArgs = {
2422
+ distinct_on?: InputMaybe<Array<Credit_Pack_Versions_Select_Column>>;
2423
+ limit?: InputMaybe<Scalars['Int']['input']>;
2424
+ offset?: InputMaybe<Scalars['Int']['input']>;
2425
+ order_by?: InputMaybe<Array<Credit_Pack_Versions_Order_By>>;
2426
+ where?: InputMaybe<Credit_Pack_Versions_Bool_Exp>;
2427
+ };
2428
+ export type Query_RootCredit_Pack_Versions_By_PkArgs = {
2429
+ id: Scalars['uuid']['input'];
2430
+ };
1937
2431
  export type Query_RootCredit_PacksArgs = {
1938
2432
  distinct_on?: InputMaybe<Array<Credit_Packs_Select_Column>>;
1939
2433
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -1944,6 +2438,10 @@ export type Query_RootCredit_PacksArgs = {
1944
2438
  export type Query_RootCredit_Packs_By_PkArgs = {
1945
2439
  id: Scalars['uuid']['input'];
1946
2440
  };
2441
+ export type Query_RootEstimate_Pipeline_CostArgs = {
2442
+ input: Scalars['jsonb']['input'];
2443
+ pipeline_slug: Scalars['String']['input'];
2444
+ };
1947
2445
  export type Query_RootExecutions_VisibilityArgs = {
1948
2446
  distinct_on?: InputMaybe<Array<Executions_Visibility_Select_Column>>;
1949
2447
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -2005,6 +2503,16 @@ export type Query_RootPipelinesArgs = {
2005
2503
  export type Query_RootPipelines_By_PkArgs = {
2006
2504
  id: Scalars['uuid']['input'];
2007
2505
  };
2506
+ export type Query_RootPlan_VersionsArgs = {
2507
+ distinct_on?: InputMaybe<Array<Plan_Versions_Select_Column>>;
2508
+ limit?: InputMaybe<Scalars['Int']['input']>;
2509
+ offset?: InputMaybe<Scalars['Int']['input']>;
2510
+ order_by?: InputMaybe<Array<Plan_Versions_Order_By>>;
2511
+ where?: InputMaybe<Plan_Versions_Bool_Exp>;
2512
+ };
2513
+ export type Query_RootPlan_Versions_By_PkArgs = {
2514
+ id: Scalars['uuid']['input'];
2515
+ };
2008
2516
  export type Query_RootPlansArgs = {
2009
2517
  distinct_on?: InputMaybe<Array<Plans_Select_Column>>;
2010
2518
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -2049,6 +2557,14 @@ export type Request_Avatar_Upload_Output = {
2049
2557
  success: Scalars['Boolean']['output'];
2050
2558
  upload_url: Scalars['String']['output'];
2051
2559
  };
2560
+ export type Request_Multipart_Upload_Output = {
2561
+ __typename?: 'request_multipart_upload_output';
2562
+ asset_url: Scalars['String']['output'];
2563
+ key: Scalars['String']['output'];
2564
+ part_size: Scalars['bigint']['output'];
2565
+ part_urls: Array<Multipart_Part_Url>;
2566
+ upload_id: Scalars['String']['output'];
2567
+ };
2052
2568
  export type Request_Upload_Output = {
2053
2569
  __typename?: 'request_upload_output';
2054
2570
  asset_url: Scalars['String']['output'];
@@ -2092,6 +2608,12 @@ export type Subscription_Root = {
2092
2608
  assets_by_pk?: Maybe<Assets>;
2093
2609
  /** fetch data from the table in a streaming manner: "assets" */
2094
2610
  assets_stream: Array<Assets>;
2611
+ /** fetch data from the table: "credit_pack_versions" */
2612
+ credit_pack_versions: Array<Credit_Pack_Versions>;
2613
+ /** fetch data from the table: "credit_pack_versions" using primary key columns */
2614
+ credit_pack_versions_by_pk?: Maybe<Credit_Pack_Versions>;
2615
+ /** fetch data from the table in a streaming manner: "credit_pack_versions" */
2616
+ credit_pack_versions_stream: Array<Credit_Pack_Versions>;
2095
2617
  /** fetch data from the table: "credit_packs" */
2096
2618
  credit_packs: Array<Credit_Packs>;
2097
2619
  /** fetch data from the table: "credit_packs" using primary key columns */
@@ -2130,13 +2652,19 @@ export type Subscription_Root = {
2130
2652
  pipelines_by_pk?: Maybe<Pipelines>;
2131
2653
  /** fetch data from the table in a streaming manner: "pipelines" */
2132
2654
  pipelines_stream: Array<Pipelines>;
2655
+ /** fetch data from the table: "plan_versions" */
2656
+ plan_versions: Array<Plan_Versions>;
2657
+ /** fetch data from the table: "plan_versions" using primary key columns */
2658
+ plan_versions_by_pk?: Maybe<Plan_Versions>;
2659
+ /** fetch data from the table in a streaming manner: "plan_versions" */
2660
+ plan_versions_stream: Array<Plan_Versions>;
2133
2661
  /** fetch data from the table: "plans" */
2134
2662
  plans: Array<Plans>;
2135
2663
  /** fetch data from the table: "plans" using primary key columns */
2136
2664
  plans_by_pk?: Maybe<Plans>;
2137
2665
  /** fetch data from the table in a streaming manner: "plans" */
2138
2666
  plans_stream: Array<Plans>;
2139
- /** fetch data from the table: "subscriptions" */
2667
+ /** An array relationship */
2140
2668
  subscriptions: Array<Subscriptions>;
2141
2669
  /** fetch data from the table: "subscriptions" using primary key columns */
2142
2670
  subscriptions_by_pk?: Maybe<Subscriptions>;
@@ -2195,6 +2723,21 @@ export type Subscription_RootAssets_StreamArgs = {
2195
2723
  cursor: Array<InputMaybe<Assets_Stream_Cursor_Input>>;
2196
2724
  where?: InputMaybe<Assets_Bool_Exp>;
2197
2725
  };
2726
+ export type Subscription_RootCredit_Pack_VersionsArgs = {
2727
+ distinct_on?: InputMaybe<Array<Credit_Pack_Versions_Select_Column>>;
2728
+ limit?: InputMaybe<Scalars['Int']['input']>;
2729
+ offset?: InputMaybe<Scalars['Int']['input']>;
2730
+ order_by?: InputMaybe<Array<Credit_Pack_Versions_Order_By>>;
2731
+ where?: InputMaybe<Credit_Pack_Versions_Bool_Exp>;
2732
+ };
2733
+ export type Subscription_RootCredit_Pack_Versions_By_PkArgs = {
2734
+ id: Scalars['uuid']['input'];
2735
+ };
2736
+ export type Subscription_RootCredit_Pack_Versions_StreamArgs = {
2737
+ batch_size: Scalars['Int']['input'];
2738
+ cursor: Array<InputMaybe<Credit_Pack_Versions_Stream_Cursor_Input>>;
2739
+ where?: InputMaybe<Credit_Pack_Versions_Bool_Exp>;
2740
+ };
2198
2741
  export type Subscription_RootCredit_PacksArgs = {
2199
2742
  distinct_on?: InputMaybe<Array<Credit_Packs_Select_Column>>;
2200
2743
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -2296,6 +2839,21 @@ export type Subscription_RootPipelines_StreamArgs = {
2296
2839
  cursor: Array<InputMaybe<Pipelines_Stream_Cursor_Input>>;
2297
2840
  where?: InputMaybe<Pipelines_Bool_Exp>;
2298
2841
  };
2842
+ export type Subscription_RootPlan_VersionsArgs = {
2843
+ distinct_on?: InputMaybe<Array<Plan_Versions_Select_Column>>;
2844
+ limit?: InputMaybe<Scalars['Int']['input']>;
2845
+ offset?: InputMaybe<Scalars['Int']['input']>;
2846
+ order_by?: InputMaybe<Array<Plan_Versions_Order_By>>;
2847
+ where?: InputMaybe<Plan_Versions_Bool_Exp>;
2848
+ };
2849
+ export type Subscription_RootPlan_Versions_By_PkArgs = {
2850
+ id: Scalars['uuid']['input'];
2851
+ };
2852
+ export type Subscription_RootPlan_Versions_StreamArgs = {
2853
+ batch_size: Scalars['Int']['input'];
2854
+ cursor: Array<InputMaybe<Plan_Versions_Stream_Cursor_Input>>;
2855
+ where?: InputMaybe<Plan_Versions_Bool_Exp>;
2856
+ };
2299
2857
  export type Subscription_RootPlansArgs = {
2300
2858
  distinct_on?: InputMaybe<Array<Plans_Select_Column>>;
2301
2859
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -2337,8 +2895,17 @@ export type Subscriptions = {
2337
2895
  /** An object relationship */
2338
2896
  plan: Plans;
2339
2897
  plan_id: Scalars['uuid']['output'];
2898
+ /** An object relationship */
2899
+ plan_version: Plan_Versions;
2900
+ plan_version_id: Scalars['uuid']['output'];
2340
2901
  status: Scalars['String']['output'];
2341
2902
  };
2903
+ /** order by aggregate values of table "subscriptions" */
2904
+ export type Subscriptions_Aggregate_Order_By = {
2905
+ count?: InputMaybe<Order_By>;
2906
+ max?: InputMaybe<Subscriptions_Max_Order_By>;
2907
+ min?: InputMaybe<Subscriptions_Min_Order_By>;
2908
+ };
2342
2909
  /** Boolean expression to filter rows from the table "subscriptions". All fields are combined with a logical 'AND'. */
2343
2910
  export type Subscriptions_Bool_Exp = {
2344
2911
  _and?: InputMaybe<Array<Subscriptions_Bool_Exp>>;
@@ -2351,8 +2918,30 @@ export type Subscriptions_Bool_Exp = {
2351
2918
  period_start?: InputMaybe<Timestamptz_Comparison_Exp>;
2352
2919
  plan?: InputMaybe<Plans_Bool_Exp>;
2353
2920
  plan_id?: InputMaybe<Uuid_Comparison_Exp>;
2921
+ plan_version?: InputMaybe<Plan_Versions_Bool_Exp>;
2922
+ plan_version_id?: InputMaybe<Uuid_Comparison_Exp>;
2354
2923
  status?: InputMaybe<String_Comparison_Exp>;
2355
2924
  };
2925
+ /** order by max() on columns of table "subscriptions" */
2926
+ export type Subscriptions_Max_Order_By = {
2927
+ created_at?: InputMaybe<Order_By>;
2928
+ id?: InputMaybe<Order_By>;
2929
+ period_end?: InputMaybe<Order_By>;
2930
+ period_start?: InputMaybe<Order_By>;
2931
+ plan_id?: InputMaybe<Order_By>;
2932
+ plan_version_id?: InputMaybe<Order_By>;
2933
+ status?: InputMaybe<Order_By>;
2934
+ };
2935
+ /** order by min() on columns of table "subscriptions" */
2936
+ export type Subscriptions_Min_Order_By = {
2937
+ created_at?: InputMaybe<Order_By>;
2938
+ id?: InputMaybe<Order_By>;
2939
+ period_end?: InputMaybe<Order_By>;
2940
+ period_start?: InputMaybe<Order_By>;
2941
+ plan_id?: InputMaybe<Order_By>;
2942
+ plan_version_id?: InputMaybe<Order_By>;
2943
+ status?: InputMaybe<Order_By>;
2944
+ };
2356
2945
  /** Ordering options when selecting data from "subscriptions". */
2357
2946
  export type Subscriptions_Order_By = {
2358
2947
  cancel_at_period_end?: InputMaybe<Order_By>;
@@ -2362,6 +2951,8 @@ export type Subscriptions_Order_By = {
2362
2951
  period_start?: InputMaybe<Order_By>;
2363
2952
  plan?: InputMaybe<Plans_Order_By>;
2364
2953
  plan_id?: InputMaybe<Order_By>;
2954
+ plan_version?: InputMaybe<Plan_Versions_Order_By>;
2955
+ plan_version_id?: InputMaybe<Order_By>;
2365
2956
  status?: InputMaybe<Order_By>;
2366
2957
  };
2367
2958
  /** select columns of table "subscriptions" */
@@ -2379,6 +2970,8 @@ export declare enum Subscriptions_Select_Column {
2379
2970
  /** column name */
2380
2971
  PlanId = "plan_id",
2381
2972
  /** column name */
2973
+ PlanVersionId = "plan_version_id",
2974
+ /** column name */
2382
2975
  Status = "status"
2383
2976
  }
2384
2977
  /** Streaming cursor of the table "subscriptions" */
@@ -2396,6 +2989,7 @@ export type Subscriptions_Stream_Cursor_Value_Input = {
2396
2989
  period_end?: InputMaybe<Scalars['timestamptz']['input']>;
2397
2990
  period_start?: InputMaybe<Scalars['timestamptz']['input']>;
2398
2991
  plan_id?: InputMaybe<Scalars['uuid']['input']>;
2992
+ plan_version_id?: InputMaybe<Scalars['uuid']['input']>;
2399
2993
  status?: InputMaybe<Scalars['String']['input']>;
2400
2994
  };
2401
2995
  /** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */
@@ -2612,6 +3206,23 @@ export type GetMyReferralsQuery = {
2612
3206
  }>;
2613
3207
  };
2614
3208
  };
3209
+ export type GetMyStorageUsageQueryVariables = Exact<{
3210
+ [key: string]: never;
3211
+ }>;
3212
+ export type GetMyStorageUsageQuery = {
3213
+ __typename?: 'query_root';
3214
+ assets_aggregate: {
3215
+ __typename?: 'assets_aggregate';
3216
+ aggregate?: {
3217
+ __typename?: 'assets_aggregate_fields';
3218
+ count: number;
3219
+ sum?: {
3220
+ __typename?: 'assets_sum_fields';
3221
+ size_bytes?: any | null;
3222
+ } | null;
3223
+ } | null;
3224
+ };
3225
+ };
2615
3226
  export type GetAssetThumbnailQueryVariables = Exact<{
2616
3227
  id: Scalars['uuid']['input'];
2617
3228
  }>;
@@ -2680,9 +3291,58 @@ export type RequestUploadMutation = {
2680
3291
  key: string;
2681
3292
  };
2682
3293
  };
3294
+ export type RequestMultipartUploadMutationVariables = Exact<{
3295
+ filename: Scalars['String']['input'];
3296
+ content_type: Scalars['String']['input'];
3297
+ total_size: Scalars['bigint']['input'];
3298
+ part_size?: InputMaybe<Scalars['bigint']['input']>;
3299
+ }>;
3300
+ export type RequestMultipartUploadMutation = {
3301
+ __typename?: 'mutation_root';
3302
+ request_multipart_upload: {
3303
+ __typename?: 'request_multipart_upload_output';
3304
+ upload_id: string;
3305
+ key: string;
3306
+ asset_url: string;
3307
+ part_size: any;
3308
+ part_urls: Array<{
3309
+ __typename?: 'multipart_part_url';
3310
+ part_number: number;
3311
+ url: string;
3312
+ }>;
3313
+ };
3314
+ };
3315
+ export type CompleteMultipartUploadMutationVariables = Exact<{
3316
+ upload_id: Scalars['String']['input'];
3317
+ key: Scalars['String']['input'];
3318
+ content_type: Scalars['String']['input'];
3319
+ parts: Array<Multipart_Part_Input> | Multipart_Part_Input;
3320
+ tags?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
3321
+ }>;
3322
+ export type CompleteMultipartUploadMutation = {
3323
+ __typename?: 'mutation_root';
3324
+ complete_multipart_upload: {
3325
+ __typename?: 'create_asset_output';
3326
+ id: string;
3327
+ type: string;
3328
+ url: string;
3329
+ tags: Array<string>;
3330
+ created_at: string;
3331
+ };
3332
+ };
3333
+ export type AbortMultipartUploadMutationVariables = Exact<{
3334
+ upload_id: Scalars['String']['input'];
3335
+ key: Scalars['String']['input'];
3336
+ }>;
3337
+ export type AbortMultipartUploadMutation = {
3338
+ __typename?: 'mutation_root';
3339
+ abort_multipart_upload: {
3340
+ __typename?: 'abort_multipart_upload_output';
3341
+ success: boolean;
3342
+ };
3343
+ };
2683
3344
  export type CreateAssetMutationVariables = Exact<{
2684
- asset_type: Scalars['String']['input'];
2685
- url: Scalars['String']['input'];
3345
+ key: Scalars['String']['input'];
2686
3346
  tags?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
2687
3347
  }>;
2688
3348
  export type CreateAssetMutation = {
@@ -2856,6 +3516,11 @@ export type GetCreditHistoryQuery = {
2856
3516
  amount: number;
2857
3517
  description: string;
2858
3518
  created_at: string;
3519
+ pipeline_run_id?: string | null;
3520
+ pipeline_slug?: string | null;
3521
+ pipeline_name?: string | null;
3522
+ status?: string | null;
3523
+ reservation_mc?: number | null;
2859
3524
  }>;
2860
3525
  };
2861
3526
  export type GetNotificationsQueryVariables = Exact<{
@@ -2917,7 +3582,8 @@ export type GetPipelinesQuery = {
2917
3582
  category: string;
2918
3583
  icon_url?: string | null;
2919
3584
  preview_url?: string | null;
2920
- required_providers: Array<string>;
3585
+ providers: Array<string>;
3586
+ models: Array<string>;
2921
3587
  input_schema: any;
2922
3588
  ui_schema: any;
2923
3589
  output_schema: any;
@@ -2929,6 +3595,31 @@ export type GetPipelinesQuery = {
2929
3595
  cancellable: boolean;
2930
3596
  }>;
2931
3597
  };
3598
+ export type GetPipelinesPricingQueryVariables = Exact<{
3599
+ slugs: Array<Scalars['String']['input']> | Scalars['String']['input'];
3600
+ }>;
3601
+ export type GetPipelinesPricingQuery = {
3602
+ __typename?: 'query_root';
3603
+ pipelines: Array<{
3604
+ __typename?: 'pipelines';
3605
+ slug: string;
3606
+ pricing: any;
3607
+ }>;
3608
+ };
3609
+ export type EstimatePipelineCostQueryVariables = Exact<{
3610
+ pipeline_slug: Scalars['String']['input'];
3611
+ input: Scalars['jsonb']['input'];
3612
+ }>;
3613
+ export type EstimatePipelineCostQuery = {
3614
+ __typename?: 'query_root';
3615
+ estimate_pipeline_cost?: {
3616
+ __typename?: 'estimate_pipeline_cost_output';
3617
+ pipeline_slug: string;
3618
+ reservation_mc: number;
3619
+ estimated_mc: number;
3620
+ is_metered: boolean;
3621
+ } | null;
3622
+ };
2932
3623
  export type RunPipelineMutationVariables = Exact<{
2933
3624
  pipeline_slug: Scalars['String']['input'];
2934
3625
  input: Scalars['jsonb']['input'];
@@ -3123,11 +3814,17 @@ export type GetPlansQuery = {
3123
3814
  slug: string;
3124
3815
  name: string;
3125
3816
  description?: string | null;
3126
- monthly_credits: number;
3127
- price_cents: number;
3128
3817
  features: any;
3129
3818
  sort_order: number;
3130
- whop_plan_id?: string | null;
3819
+ versions: Array<{
3820
+ __typename?: 'plan_versions';
3821
+ id: any;
3822
+ whop_plan_id?: string | null;
3823
+ price_cents: number;
3824
+ monthly_credits: number;
3825
+ max_storage_bytes: any;
3826
+ max_upload_bytes: any;
3827
+ }>;
3131
3828
  }>;
3132
3829
  };
3133
3830
  export type GetCreditPacksQueryVariables = Exact<{
@@ -3140,10 +3837,14 @@ export type GetCreditPacksQuery = {
3140
3837
  id: any;
3141
3838
  slug: string;
3142
3839
  name: string;
3143
- credits: number;
3144
- price_cents: number;
3145
3840
  sort_order: number;
3146
- whop_plan_id?: string | null;
3841
+ versions: Array<{
3842
+ __typename?: 'credit_pack_versions';
3843
+ id: any;
3844
+ whop_plan_id?: string | null;
3845
+ price_cents: number;
3846
+ credits: number;
3847
+ }>;
3147
3848
  }>;
3148
3849
  };
3149
3850
  export type GetSubscriptionQueryVariables = Exact<{
@@ -3155,6 +3856,7 @@ export type GetSubscriptionQuery = {
3155
3856
  __typename?: 'subscriptions';
3156
3857
  id: any;
3157
3858
  plan_id: any;
3859
+ plan_version_id: any;
3158
3860
  status: string;
3159
3861
  period_start: any;
3160
3862
  period_end: any;
@@ -3163,9 +3865,17 @@ export type GetSubscriptionQuery = {
3163
3865
  __typename?: 'plans';
3164
3866
  slug: string;
3165
3867
  name: string;
3166
- monthly_credits: number;
3167
3868
  sort_order: number;
3168
3869
  };
3870
+ plan_version: {
3871
+ __typename?: 'plan_versions';
3872
+ id: any;
3873
+ version: number;
3874
+ monthly_credits: number;
3875
+ price_cents: number;
3876
+ max_storage_bytes: any;
3877
+ max_upload_bytes: any;
3878
+ };
3169
3879
  }>;
3170
3880
  };
3171
3881
  export type WatchPipelineRunSubscriptionVariables = Exact<{
@@ -3303,10 +4013,14 @@ export declare const GetMyAffiliateDocument: DocumentNode;
3303
4013
  export declare const AddAffiliateCodeDocument: DocumentNode;
3304
4014
  export declare const EnsureAffiliateDocument: DocumentNode;
3305
4015
  export declare const GetMyReferralsDocument: DocumentNode;
4016
+ export declare const GetMyStorageUsageDocument: DocumentNode;
3306
4017
  export declare const GetAssetThumbnailDocument: DocumentNode;
3307
4018
  export declare const GetAssetThumbnailsByIdsDocument: DocumentNode;
3308
4019
  export declare const GetUserAssetsDocument: DocumentNode;
3309
4020
  export declare const RequestUploadDocument: DocumentNode;
4021
+ export declare const RequestMultipartUploadDocument: DocumentNode;
4022
+ export declare const CompleteMultipartUploadDocument: DocumentNode;
4023
+ export declare const AbortMultipartUploadDocument: DocumentNode;
3310
4024
  export declare const CreateAssetDocument: DocumentNode;
3311
4025
  export declare const DeleteAssetActionDocument: DocumentNode;
3312
4026
  export declare const UpdateAssetTagsDocument: DocumentNode;
@@ -3325,6 +4039,8 @@ export declare const GetNotificationsDocument: DocumentNode;
3325
4039
  export declare const MarkNotificationReadDocument: DocumentNode;
3326
4040
  export declare const MarkAllNotificationsReadDocument: DocumentNode;
3327
4041
  export declare const GetPipelinesDocument: DocumentNode;
4042
+ export declare const GetPipelinesPricingDocument: DocumentNode;
4043
+ export declare const EstimatePipelineCostDocument: DocumentNode;
3328
4044
  export declare const RunPipelineDocument: DocumentNode;
3329
4045
  export declare const CancelPipelineRunDocument: DocumentNode;
3330
4046
  export declare const GetPipelineRunDocument: DocumentNode;
@@ -3356,10 +4072,14 @@ export declare function getSdk<C>(requester: Requester<C>): {
3356
4072
  AddAffiliateCode(variables: AddAffiliateCodeMutationVariables, options?: C): Promise<AddAffiliateCodeMutation>;
3357
4073
  EnsureAffiliate(variables?: EnsureAffiliateMutationVariables, options?: C): Promise<EnsureAffiliateMutation>;
3358
4074
  GetMyReferrals(variables?: GetMyReferralsQueryVariables, options?: C): Promise<GetMyReferralsQuery>;
4075
+ GetMyStorageUsage(variables?: GetMyStorageUsageQueryVariables, options?: C): Promise<GetMyStorageUsageQuery>;
3359
4076
  GetAssetThumbnail(variables: GetAssetThumbnailQueryVariables, options?: C): Promise<GetAssetThumbnailQuery>;
3360
4077
  GetAssetThumbnailsByIds(variables: GetAssetThumbnailsByIdsQueryVariables, options?: C): Promise<GetAssetThumbnailsByIdsQuery>;
3361
4078
  GetUserAssets(variables?: GetUserAssetsQueryVariables, options?: C): Promise<GetUserAssetsQuery>;
3362
4079
  RequestUpload(variables: RequestUploadMutationVariables, options?: C): Promise<RequestUploadMutation>;
4080
+ RequestMultipartUpload(variables: RequestMultipartUploadMutationVariables, options?: C): Promise<RequestMultipartUploadMutation>;
4081
+ CompleteMultipartUpload(variables: CompleteMultipartUploadMutationVariables, options?: C): Promise<CompleteMultipartUploadMutation>;
4082
+ AbortMultipartUpload(variables: AbortMultipartUploadMutationVariables, options?: C): Promise<AbortMultipartUploadMutation>;
3363
4083
  CreateAsset(variables: CreateAssetMutationVariables, options?: C): Promise<CreateAssetMutation>;
3364
4084
  DeleteAssetAction(variables: DeleteAssetActionMutationVariables, options?: C): Promise<DeleteAssetActionMutation>;
3365
4085
  UpdateAssetTags(variables: UpdateAssetTagsMutationVariables, options?: C): Promise<UpdateAssetTagsMutation>;
@@ -3378,6 +4098,8 @@ export declare function getSdk<C>(requester: Requester<C>): {
3378
4098
  MarkNotificationRead(variables: MarkNotificationReadMutationVariables, options?: C): Promise<MarkNotificationReadMutation>;
3379
4099
  MarkAllNotificationsRead(variables?: MarkAllNotificationsReadMutationVariables, options?: C): Promise<MarkAllNotificationsReadMutation>;
3380
4100
  GetPipelines(variables?: GetPipelinesQueryVariables, options?: C): Promise<GetPipelinesQuery>;
4101
+ GetPipelinesPricing(variables: GetPipelinesPricingQueryVariables, options?: C): Promise<GetPipelinesPricingQuery>;
4102
+ EstimatePipelineCost(variables: EstimatePipelineCostQueryVariables, options?: C): Promise<EstimatePipelineCostQuery>;
3381
4103
  RunPipeline(variables: RunPipelineMutationVariables, options?: C): Promise<RunPipelineMutation>;
3382
4104
  CancelPipelineRun(variables: CancelPipelineRunMutationVariables, options?: C): Promise<CancelPipelineRunMutation>;
3383
4105
  GetPipelineRun(variables: GetPipelineRunQueryVariables, options?: C): Promise<GetPipelineRunQuery>;