@pipe2-ai/sdk 0.4.0 → 2026.7.1

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.
@@ -1135,6 +1135,80 @@ export type Jsonb_Comparison_Exp = {
1135
1135
  _neq?: InputMaybe<Scalars['jsonb']['input']>;
1136
1136
  _nin?: InputMaybe<Array<Scalars['jsonb']['input']>>;
1137
1137
  };
1138
+ /** columns and relationships of "models" */
1139
+ export type Models = {
1140
+ __typename?: 'models';
1141
+ description: Scalars['String']['output'];
1142
+ is_active: Scalars['Boolean']['output'];
1143
+ label: Scalars['String']['output'];
1144
+ /** An array relationship */
1145
+ pipeline_models: Array<Pipeline_Models>;
1146
+ provider: Scalars['String']['output'];
1147
+ slug: Scalars['String']['output'];
1148
+ sort_order: Scalars['Int']['output'];
1149
+ };
1150
+ /** columns and relationships of "models" */
1151
+ export type ModelsPipeline_ModelsArgs = {
1152
+ distinct_on?: InputMaybe<Array<Pipeline_Models_Select_Column>>;
1153
+ limit?: InputMaybe<Scalars['Int']['input']>;
1154
+ offset?: InputMaybe<Scalars['Int']['input']>;
1155
+ order_by?: InputMaybe<Array<Pipeline_Models_Order_By>>;
1156
+ where?: InputMaybe<Pipeline_Models_Bool_Exp>;
1157
+ };
1158
+ /** Boolean expression to filter rows from the table "models". All fields are combined with a logical 'AND'. */
1159
+ export type Models_Bool_Exp = {
1160
+ _and?: InputMaybe<Array<Models_Bool_Exp>>;
1161
+ _not?: InputMaybe<Models_Bool_Exp>;
1162
+ _or?: InputMaybe<Array<Models_Bool_Exp>>;
1163
+ description?: InputMaybe<String_Comparison_Exp>;
1164
+ is_active?: InputMaybe<Boolean_Comparison_Exp>;
1165
+ label?: InputMaybe<String_Comparison_Exp>;
1166
+ pipeline_models?: InputMaybe<Pipeline_Models_Bool_Exp>;
1167
+ provider?: InputMaybe<String_Comparison_Exp>;
1168
+ slug?: InputMaybe<String_Comparison_Exp>;
1169
+ sort_order?: InputMaybe<Int_Comparison_Exp>;
1170
+ };
1171
+ /** Ordering options when selecting data from "models". */
1172
+ export type Models_Order_By = {
1173
+ description?: InputMaybe<Order_By>;
1174
+ is_active?: InputMaybe<Order_By>;
1175
+ label?: InputMaybe<Order_By>;
1176
+ pipeline_models_aggregate?: InputMaybe<Pipeline_Models_Aggregate_Order_By>;
1177
+ provider?: InputMaybe<Order_By>;
1178
+ slug?: InputMaybe<Order_By>;
1179
+ sort_order?: InputMaybe<Order_By>;
1180
+ };
1181
+ /** select columns of table "models" */
1182
+ export declare enum Models_Select_Column {
1183
+ /** column name */
1184
+ Description = "description",
1185
+ /** column name */
1186
+ IsActive = "is_active",
1187
+ /** column name */
1188
+ Label = "label",
1189
+ /** column name */
1190
+ Provider = "provider",
1191
+ /** column name */
1192
+ Slug = "slug",
1193
+ /** column name */
1194
+ SortOrder = "sort_order"
1195
+ }
1196
+ /** Streaming cursor of the table "models" */
1197
+ export type Models_Stream_Cursor_Input = {
1198
+ /** Stream column input with initial value */
1199
+ initial_value: Models_Stream_Cursor_Value_Input;
1200
+ /** cursor ordering */
1201
+ ordering?: InputMaybe<Cursor_Ordering>;
1202
+ };
1203
+ /** Initial value of the column from where the streaming should start */
1204
+ export type Models_Stream_Cursor_Value_Input = {
1205
+ description?: InputMaybe<Scalars['String']['input']>;
1206
+ is_active?: InputMaybe<Scalars['Boolean']['input']>;
1207
+ label?: InputMaybe<Scalars['String']['input']>;
1208
+ provider?: InputMaybe<Scalars['String']['input']>;
1209
+ slug?: InputMaybe<Scalars['String']['input']>;
1210
+ sort_order?: InputMaybe<Scalars['Int']['input']>;
1211
+ };
1138
1212
  export type Multipart_Part_Input = {
1139
1213
  ETag: Scalars['String']['input'];
1140
1214
  PartNumber: Scalars['Int']['input'];
@@ -1622,6 +1696,119 @@ export type Personal_Access_Tokens_Stream_Cursor_Value_Input = {
1622
1696
  revoked_at?: InputMaybe<Scalars['timestamptz']['input']>;
1623
1697
  scopes?: InputMaybe<Array<Scalars['String']['input']>>;
1624
1698
  };
1699
+ /** columns and relationships of "pipeline_models" */
1700
+ export type Pipeline_Models = {
1701
+ __typename?: 'pipeline_models';
1702
+ /** An object relationship */
1703
+ model: Models;
1704
+ model_slug: Scalars['String']['output'];
1705
+ pipeline_slug: Scalars['String']['output'];
1706
+ sort_order: Scalars['Int']['output'];
1707
+ };
1708
+ /** order by aggregate values of table "pipeline_models" */
1709
+ export type Pipeline_Models_Aggregate_Order_By = {
1710
+ avg?: InputMaybe<Pipeline_Models_Avg_Order_By>;
1711
+ count?: InputMaybe<Order_By>;
1712
+ max?: InputMaybe<Pipeline_Models_Max_Order_By>;
1713
+ min?: InputMaybe<Pipeline_Models_Min_Order_By>;
1714
+ stddev?: InputMaybe<Pipeline_Models_Stddev_Order_By>;
1715
+ stddev_pop?: InputMaybe<Pipeline_Models_Stddev_Pop_Order_By>;
1716
+ stddev_samp?: InputMaybe<Pipeline_Models_Stddev_Samp_Order_By>;
1717
+ sum?: InputMaybe<Pipeline_Models_Sum_Order_By>;
1718
+ var_pop?: InputMaybe<Pipeline_Models_Var_Pop_Order_By>;
1719
+ var_samp?: InputMaybe<Pipeline_Models_Var_Samp_Order_By>;
1720
+ variance?: InputMaybe<Pipeline_Models_Variance_Order_By>;
1721
+ };
1722
+ /** order by avg() on columns of table "pipeline_models" */
1723
+ export type Pipeline_Models_Avg_Order_By = {
1724
+ sort_order?: InputMaybe<Order_By>;
1725
+ };
1726
+ /** Boolean expression to filter rows from the table "pipeline_models". All fields are combined with a logical 'AND'. */
1727
+ export type Pipeline_Models_Bool_Exp = {
1728
+ _and?: InputMaybe<Array<Pipeline_Models_Bool_Exp>>;
1729
+ _not?: InputMaybe<Pipeline_Models_Bool_Exp>;
1730
+ _or?: InputMaybe<Array<Pipeline_Models_Bool_Exp>>;
1731
+ model?: InputMaybe<Models_Bool_Exp>;
1732
+ model_slug?: InputMaybe<String_Comparison_Exp>;
1733
+ pipeline_slug?: InputMaybe<String_Comparison_Exp>;
1734
+ sort_order?: InputMaybe<Int_Comparison_Exp>;
1735
+ };
1736
+ /** order by max() on columns of table "pipeline_models" */
1737
+ export type Pipeline_Models_Max_Order_By = {
1738
+ model_slug?: InputMaybe<Order_By>;
1739
+ pipeline_slug?: InputMaybe<Order_By>;
1740
+ sort_order?: InputMaybe<Order_By>;
1741
+ };
1742
+ /** order by min() on columns of table "pipeline_models" */
1743
+ export type Pipeline_Models_Min_Order_By = {
1744
+ model_slug?: InputMaybe<Order_By>;
1745
+ pipeline_slug?: InputMaybe<Order_By>;
1746
+ sort_order?: InputMaybe<Order_By>;
1747
+ };
1748
+ /** Ordering options when selecting data from "pipeline_models". */
1749
+ export type Pipeline_Models_Order_By = {
1750
+ model?: InputMaybe<Models_Order_By>;
1751
+ model_slug?: InputMaybe<Order_By>;
1752
+ pipeline_slug?: InputMaybe<Order_By>;
1753
+ sort_order?: InputMaybe<Order_By>;
1754
+ };
1755
+ /** select columns of table "pipeline_models" */
1756
+ export declare enum Pipeline_Models_Select_Column {
1757
+ /** column name */
1758
+ ModelSlug = "model_slug",
1759
+ /** column name */
1760
+ PipelineSlug = "pipeline_slug",
1761
+ /** column name */
1762
+ SortOrder = "sort_order"
1763
+ }
1764
+ /** order by stddev() on columns of table "pipeline_models" */
1765
+ export type Pipeline_Models_Stddev_Order_By = {
1766
+ sort_order?: InputMaybe<Order_By>;
1767
+ };
1768
+ /** order by stddev_pop() on columns of table "pipeline_models" */
1769
+ export type Pipeline_Models_Stddev_Pop_Order_By = {
1770
+ sort_order?: InputMaybe<Order_By>;
1771
+ };
1772
+ /** order by stddev_samp() on columns of table "pipeline_models" */
1773
+ export type Pipeline_Models_Stddev_Samp_Order_By = {
1774
+ sort_order?: InputMaybe<Order_By>;
1775
+ };
1776
+ /** Streaming cursor of the table "pipeline_models" */
1777
+ export type Pipeline_Models_Stream_Cursor_Input = {
1778
+ /** Stream column input with initial value */
1779
+ initial_value: Pipeline_Models_Stream_Cursor_Value_Input;
1780
+ /** cursor ordering */
1781
+ ordering?: InputMaybe<Cursor_Ordering>;
1782
+ };
1783
+ /** Initial value of the column from where the streaming should start */
1784
+ export type Pipeline_Models_Stream_Cursor_Value_Input = {
1785
+ model_slug?: InputMaybe<Scalars['String']['input']>;
1786
+ pipeline_slug?: InputMaybe<Scalars['String']['input']>;
1787
+ sort_order?: InputMaybe<Scalars['Int']['input']>;
1788
+ };
1789
+ /** order by sum() on columns of table "pipeline_models" */
1790
+ export type Pipeline_Models_Sum_Order_By = {
1791
+ sort_order?: InputMaybe<Order_By>;
1792
+ };
1793
+ /** order by var_pop() on columns of table "pipeline_models" */
1794
+ export type Pipeline_Models_Var_Pop_Order_By = {
1795
+ sort_order?: InputMaybe<Order_By>;
1796
+ };
1797
+ /** order by var_samp() on columns of table "pipeline_models" */
1798
+ export type Pipeline_Models_Var_Samp_Order_By = {
1799
+ sort_order?: InputMaybe<Order_By>;
1800
+ };
1801
+ /** order by variance() on columns of table "pipeline_models" */
1802
+ export type Pipeline_Models_Variance_Order_By = {
1803
+ sort_order?: InputMaybe<Order_By>;
1804
+ };
1805
+ export type Pipeline_Pricing_Row = {
1806
+ __typename?: 'pipeline_pricing_row';
1807
+ from_mc: Scalars['Int']['output'];
1808
+ metered: Scalars['Boolean']['output'];
1809
+ slug: Scalars['String']['output'];
1810
+ to_mc?: Maybe<Scalars['Int']['output']>;
1811
+ };
1625
1812
  /** columns and relationships of "pipeline_runs" */
1626
1813
  export type Pipeline_Runs = {
1627
1814
  __typename?: 'pipeline_runs';
@@ -1858,7 +2045,6 @@ export type Pipelines = {
1858
2045
  name: Scalars['String']['output'];
1859
2046
  output_schema: Scalars['jsonb']['output'];
1860
2047
  preview_url?: Maybe<Scalars['String']['output']>;
1861
- pricing: Scalars['jsonb']['output'];
1862
2048
  providers: Array<Scalars['String']['output']>;
1863
2049
  seo_content?: Maybe<Scalars['String']['output']>;
1864
2050
  seo_faq?: Maybe<Scalars['jsonb']['output']>;
@@ -1880,10 +2066,6 @@ export type PipelinesOutput_SchemaArgs = {
1880
2066
  path?: InputMaybe<Scalars['String']['input']>;
1881
2067
  };
1882
2068
  /** columns and relationships of "pipelines" */
1883
- export type PipelinesPricingArgs = {
1884
- path?: InputMaybe<Scalars['String']['input']>;
1885
- };
1886
- /** columns and relationships of "pipelines" */
1887
2069
  export type PipelinesSeo_FaqArgs = {
1888
2070
  path?: InputMaybe<Scalars['String']['input']>;
1889
2071
  };
@@ -1908,7 +2090,6 @@ export type Pipelines_Bool_Exp = {
1908
2090
  name?: InputMaybe<String_Comparison_Exp>;
1909
2091
  output_schema?: InputMaybe<Jsonb_Comparison_Exp>;
1910
2092
  preview_url?: InputMaybe<String_Comparison_Exp>;
1911
- pricing?: InputMaybe<Jsonb_Comparison_Exp>;
1912
2093
  providers?: InputMaybe<String_Array_Comparison_Exp>;
1913
2094
  seo_content?: InputMaybe<String_Comparison_Exp>;
1914
2095
  seo_faq?: InputMaybe<Jsonb_Comparison_Exp>;
@@ -1931,7 +2112,6 @@ export type Pipelines_Order_By = {
1931
2112
  name?: InputMaybe<Order_By>;
1932
2113
  output_schema?: InputMaybe<Order_By>;
1933
2114
  preview_url?: InputMaybe<Order_By>;
1934
- pricing?: InputMaybe<Order_By>;
1935
2115
  providers?: InputMaybe<Order_By>;
1936
2116
  seo_content?: InputMaybe<Order_By>;
1937
2117
  seo_faq?: InputMaybe<Order_By>;
@@ -1967,8 +2147,6 @@ export declare enum Pipelines_Select_Column {
1967
2147
  /** column name */
1968
2148
  PreviewUrl = "preview_url",
1969
2149
  /** column name */
1970
- Pricing = "pricing",
1971
- /** column name */
1972
2150
  Providers = "providers",
1973
2151
  /** column name */
1974
2152
  SeoContent = "seo_content",
@@ -2005,7 +2183,6 @@ export type Pipelines_Stream_Cursor_Value_Input = {
2005
2183
  name?: InputMaybe<Scalars['String']['input']>;
2006
2184
  output_schema?: InputMaybe<Scalars['jsonb']['input']>;
2007
2185
  preview_url?: InputMaybe<Scalars['String']['input']>;
2008
- pricing?: InputMaybe<Scalars['jsonb']['input']>;
2009
2186
  providers?: InputMaybe<Array<Scalars['String']['input']>>;
2010
2187
  seo_content?: InputMaybe<Scalars['String']['input']>;
2011
2188
  seo_faq?: InputMaybe<Scalars['jsonb']['input']>;
@@ -2338,7 +2515,7 @@ export type Query_Root = {
2338
2515
  credit_packs_by_pk?: Maybe<Credit_Packs>;
2339
2516
  /** Get currently authenticated user from JWT claims */
2340
2517
  current_user: Current_User_Output;
2341
- /** Read-only credit cost preview for a pipeline+input — used by CLI --estimate and FE cost previews */
2518
+ /** Read-only credit cost preview for a pipeline+input — used by CLI --estimate and FE cost previews (public pipeline pages show per-model prices to logged-out visitors) */
2342
2519
  estimate_pipeline_cost?: Maybe<Estimate_Pipeline_Cost_Output>;
2343
2520
  /** fetch data from the table: "executions_visibility" */
2344
2521
  executions_visibility: Array<Executions_Visibility>;
@@ -2348,6 +2525,10 @@ export type Query_Root = {
2348
2525
  get_credit_history: Array<Credit_History_Entry>;
2349
2526
  /** Get affiliate referral stats and referred users */
2350
2527
  get_my_referrals: Get_My_Referrals_Output;
2528
+ /** fetch data from the table: "models" */
2529
+ models: Array<Models>;
2530
+ /** fetch data from the table: "models" using primary key columns */
2531
+ models_by_pk?: Maybe<Models>;
2351
2532
  /** fetch data from the table: "notifications" */
2352
2533
  notifications: Array<Notifications>;
2353
2534
  /** fetch aggregated fields from the table: "notifications" */
@@ -2358,6 +2539,12 @@ export type Query_Root = {
2358
2539
  personal_access_tokens: Array<Personal_Access_Tokens>;
2359
2540
  /** fetch data from the table: "personal_access_tokens" using primary key columns */
2360
2541
  personal_access_tokens_by_pk?: Maybe<Personal_Access_Tokens>;
2542
+ /** An array relationship */
2543
+ pipeline_models: Array<Pipeline_Models>;
2544
+ /** fetch data from the table: "pipeline_models" using primary key columns */
2545
+ pipeline_models_by_pk?: Maybe<Pipeline_Models>;
2546
+ /** Derived pipeline pricing (from DB wholesale) — FE cost-display read model replacing pipelines.pricing */
2547
+ pipeline_pricing: Array<Pipeline_Pricing_Row>;
2361
2548
  /** fetch data from the table: "pipeline_runs" */
2362
2549
  pipeline_runs: Array<Pipeline_Runs>;
2363
2550
  /** fetch aggregated fields from the table: "pipeline_runs" */
@@ -2449,6 +2636,16 @@ export type Query_RootExecutions_VisibilityArgs = {
2449
2636
  order_by?: InputMaybe<Array<Executions_Visibility_Order_By>>;
2450
2637
  where?: InputMaybe<Executions_Visibility_Bool_Exp>;
2451
2638
  };
2639
+ export type Query_RootModelsArgs = {
2640
+ distinct_on?: InputMaybe<Array<Models_Select_Column>>;
2641
+ limit?: InputMaybe<Scalars['Int']['input']>;
2642
+ offset?: InputMaybe<Scalars['Int']['input']>;
2643
+ order_by?: InputMaybe<Array<Models_Order_By>>;
2644
+ where?: InputMaybe<Models_Bool_Exp>;
2645
+ };
2646
+ export type Query_RootModels_By_PkArgs = {
2647
+ slug: Scalars['String']['input'];
2648
+ };
2452
2649
  export type Query_RootNotificationsArgs = {
2453
2650
  distinct_on?: InputMaybe<Array<Notifications_Select_Column>>;
2454
2651
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -2476,6 +2673,17 @@ export type Query_RootPersonal_Access_TokensArgs = {
2476
2673
  export type Query_RootPersonal_Access_Tokens_By_PkArgs = {
2477
2674
  id: Scalars['uuid']['input'];
2478
2675
  };
2676
+ export type Query_RootPipeline_ModelsArgs = {
2677
+ distinct_on?: InputMaybe<Array<Pipeline_Models_Select_Column>>;
2678
+ limit?: InputMaybe<Scalars['Int']['input']>;
2679
+ offset?: InputMaybe<Scalars['Int']['input']>;
2680
+ order_by?: InputMaybe<Array<Pipeline_Models_Order_By>>;
2681
+ where?: InputMaybe<Pipeline_Models_Bool_Exp>;
2682
+ };
2683
+ export type Query_RootPipeline_Models_By_PkArgs = {
2684
+ model_slug: Scalars['String']['input'];
2685
+ pipeline_slug: Scalars['String']['input'];
2686
+ };
2479
2687
  export type Query_RootPipeline_RunsArgs = {
2480
2688
  distinct_on?: InputMaybe<Array<Pipeline_Runs_Select_Column>>;
2481
2689
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -2624,6 +2832,12 @@ export type Subscription_Root = {
2624
2832
  executions_visibility: Array<Executions_Visibility>;
2625
2833
  /** fetch data from the table in a streaming manner: "executions_visibility" */
2626
2834
  executions_visibility_stream: Array<Executions_Visibility>;
2835
+ /** fetch data from the table: "models" */
2836
+ models: Array<Models>;
2837
+ /** fetch data from the table: "models" using primary key columns */
2838
+ models_by_pk?: Maybe<Models>;
2839
+ /** fetch data from the table in a streaming manner: "models" */
2840
+ models_stream: Array<Models>;
2627
2841
  /** fetch data from the table: "notifications" */
2628
2842
  notifications: Array<Notifications>;
2629
2843
  /** fetch aggregated fields from the table: "notifications" */
@@ -2638,6 +2852,12 @@ export type Subscription_Root = {
2638
2852
  personal_access_tokens_by_pk?: Maybe<Personal_Access_Tokens>;
2639
2853
  /** fetch data from the table in a streaming manner: "personal_access_tokens" */
2640
2854
  personal_access_tokens_stream: Array<Personal_Access_Tokens>;
2855
+ /** An array relationship */
2856
+ pipeline_models: Array<Pipeline_Models>;
2857
+ /** fetch data from the table: "pipeline_models" using primary key columns */
2858
+ pipeline_models_by_pk?: Maybe<Pipeline_Models>;
2859
+ /** fetch data from the table in a streaming manner: "pipeline_models" */
2860
+ pipeline_models_stream: Array<Pipeline_Models>;
2641
2861
  /** fetch data from the table: "pipeline_runs" */
2642
2862
  pipeline_runs: Array<Pipeline_Runs>;
2643
2863
  /** fetch aggregated fields from the table: "pipeline_runs" */
@@ -2765,6 +2985,21 @@ export type Subscription_RootExecutions_Visibility_StreamArgs = {
2765
2985
  cursor: Array<InputMaybe<Executions_Visibility_Stream_Cursor_Input>>;
2766
2986
  where?: InputMaybe<Executions_Visibility_Bool_Exp>;
2767
2987
  };
2988
+ export type Subscription_RootModelsArgs = {
2989
+ distinct_on?: InputMaybe<Array<Models_Select_Column>>;
2990
+ limit?: InputMaybe<Scalars['Int']['input']>;
2991
+ offset?: InputMaybe<Scalars['Int']['input']>;
2992
+ order_by?: InputMaybe<Array<Models_Order_By>>;
2993
+ where?: InputMaybe<Models_Bool_Exp>;
2994
+ };
2995
+ export type Subscription_RootModels_By_PkArgs = {
2996
+ slug: Scalars['String']['input'];
2997
+ };
2998
+ export type Subscription_RootModels_StreamArgs = {
2999
+ batch_size: Scalars['Int']['input'];
3000
+ cursor: Array<InputMaybe<Models_Stream_Cursor_Input>>;
3001
+ where?: InputMaybe<Models_Bool_Exp>;
3002
+ };
2768
3003
  export type Subscription_RootNotificationsArgs = {
2769
3004
  distinct_on?: InputMaybe<Array<Notifications_Select_Column>>;
2770
3005
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -2802,6 +3037,22 @@ export type Subscription_RootPersonal_Access_Tokens_StreamArgs = {
2802
3037
  cursor: Array<InputMaybe<Personal_Access_Tokens_Stream_Cursor_Input>>;
2803
3038
  where?: InputMaybe<Personal_Access_Tokens_Bool_Exp>;
2804
3039
  };
3040
+ export type Subscription_RootPipeline_ModelsArgs = {
3041
+ distinct_on?: InputMaybe<Array<Pipeline_Models_Select_Column>>;
3042
+ limit?: InputMaybe<Scalars['Int']['input']>;
3043
+ offset?: InputMaybe<Scalars['Int']['input']>;
3044
+ order_by?: InputMaybe<Array<Pipeline_Models_Order_By>>;
3045
+ where?: InputMaybe<Pipeline_Models_Bool_Exp>;
3046
+ };
3047
+ export type Subscription_RootPipeline_Models_By_PkArgs = {
3048
+ model_slug: Scalars['String']['input'];
3049
+ pipeline_slug: Scalars['String']['input'];
3050
+ };
3051
+ export type Subscription_RootPipeline_Models_StreamArgs = {
3052
+ batch_size: Scalars['Int']['input'];
3053
+ cursor: Array<InputMaybe<Pipeline_Models_Stream_Cursor_Input>>;
3054
+ where?: InputMaybe<Pipeline_Models_Bool_Exp>;
3055
+ };
2805
3056
  export type Subscription_RootPipeline_RunsArgs = {
2806
3057
  distinct_on?: InputMaybe<Array<Pipeline_Runs_Select_Column>>;
2807
3058
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -3591,7 +3842,6 @@ export type GetPipelinesQuery = {
3591
3842
  seo_faq?: any | null;
3592
3843
  tags: Array<string>;
3593
3844
  hints: any;
3594
- pricing: any;
3595
3845
  cancellable: boolean;
3596
3846
  }>;
3597
3847
  };
@@ -3614,21 +3864,9 @@ export type GetPipelinesListQuery = {
3614
3864
  models: Array<string>;
3615
3865
  tags: Array<string>;
3616
3866
  hints: any;
3617
- pricing: any;
3618
3867
  cancellable: boolean;
3619
3868
  }>;
3620
3869
  };
3621
- export type GetPipelinesPricingQueryVariables = Exact<{
3622
- slugs: Array<Scalars['String']['input']> | Scalars['String']['input'];
3623
- }>;
3624
- export type GetPipelinesPricingQuery = {
3625
- __typename?: 'query_root';
3626
- pipelines: Array<{
3627
- __typename?: 'pipelines';
3628
- slug: string;
3629
- pricing: any;
3630
- }>;
3631
- };
3632
3870
  export type EstimatePipelineCostQueryVariables = Exact<{
3633
3871
  pipeline_slug: Scalars['String']['input'];
3634
3872
  input: Scalars['jsonb']['input'];
@@ -3643,6 +3881,35 @@ export type EstimatePipelineCostQuery = {
3643
3881
  is_metered: boolean;
3644
3882
  } | null;
3645
3883
  };
3884
+ export type PipelineModelsQueryVariables = Exact<{
3885
+ slug: Scalars['String']['input'];
3886
+ }>;
3887
+ export type PipelineModelsQuery = {
3888
+ __typename?: 'query_root';
3889
+ pipeline_models: Array<{
3890
+ __typename?: 'pipeline_models';
3891
+ model_slug: string;
3892
+ model: {
3893
+ __typename?: 'models';
3894
+ slug: string;
3895
+ label: string;
3896
+ description: string;
3897
+ };
3898
+ }>;
3899
+ };
3900
+ export type PipelinePricingQueryVariables = Exact<{
3901
+ [key: string]: never;
3902
+ }>;
3903
+ export type PipelinePricingQuery = {
3904
+ __typename?: 'query_root';
3905
+ pipeline_pricing: Array<{
3906
+ __typename?: 'pipeline_pricing_row';
3907
+ slug: string;
3908
+ from_mc: number;
3909
+ to_mc?: number | null;
3910
+ metered: boolean;
3911
+ }>;
3912
+ };
3646
3913
  export type RunPipelineMutationVariables = Exact<{
3647
3914
  pipeline_slug: Scalars['String']['input'];
3648
3915
  input: Scalars['jsonb']['input'];
@@ -4068,8 +4335,9 @@ export declare const MarkNotificationReadDocument: DocumentNode;
4068
4335
  export declare const MarkAllNotificationsReadDocument: DocumentNode;
4069
4336
  export declare const GetPipelinesDocument: DocumentNode;
4070
4337
  export declare const GetPipelinesListDocument: DocumentNode;
4071
- export declare const GetPipelinesPricingDocument: DocumentNode;
4072
4338
  export declare const EstimatePipelineCostDocument: DocumentNode;
4339
+ export declare const PipelineModelsDocument: DocumentNode;
4340
+ export declare const PipelinePricingDocument: DocumentNode;
4073
4341
  export declare const RunPipelineDocument: DocumentNode;
4074
4342
  export declare const CancelPipelineRunDocument: DocumentNode;
4075
4343
  export declare const GetPipelineRunDocument: DocumentNode;
@@ -4128,8 +4396,9 @@ export declare function getSdk<C>(requester: Requester<C>): {
4128
4396
  MarkAllNotificationsRead(variables?: MarkAllNotificationsReadMutationVariables, options?: C): Promise<MarkAllNotificationsReadMutation>;
4129
4397
  GetPipelines(variables?: GetPipelinesQueryVariables, options?: C): Promise<GetPipelinesQuery>;
4130
4398
  GetPipelinesList(variables?: GetPipelinesListQueryVariables, options?: C): Promise<GetPipelinesListQuery>;
4131
- GetPipelinesPricing(variables: GetPipelinesPricingQueryVariables, options?: C): Promise<GetPipelinesPricingQuery>;
4132
4399
  EstimatePipelineCost(variables: EstimatePipelineCostQueryVariables, options?: C): Promise<EstimatePipelineCostQuery>;
4400
+ PipelineModels(variables: PipelineModelsQueryVariables, options?: C): Promise<PipelineModelsQuery>;
4401
+ PipelinePricing(variables?: PipelinePricingQueryVariables, options?: C): Promise<PipelinePricingQuery>;
4133
4402
  RunPipeline(variables: RunPipelineMutationVariables, options?: C): Promise<RunPipelineMutation>;
4134
4403
  CancelPipelineRun(variables: CancelPipelineRunMutationVariables, options?: C): Promise<CancelPipelineRunMutation>;
4135
4404
  GetPipelineRun(variables: GetPipelineRunQueryVariables, options?: C): Promise<GetPipelineRunQuery>;
@@ -115,6 +115,22 @@ export var Executions_Visibility_Select_Column;
115
115
  /** column name */
116
116
  Executions_Visibility_Select_Column["WorkflowTypeName"] = "workflow_type_name";
117
117
  })(Executions_Visibility_Select_Column || (Executions_Visibility_Select_Column = {}));
118
+ /** select columns of table "models" */
119
+ export var Models_Select_Column;
120
+ (function (Models_Select_Column) {
121
+ /** column name */
122
+ Models_Select_Column["Description"] = "description";
123
+ /** column name */
124
+ Models_Select_Column["IsActive"] = "is_active";
125
+ /** column name */
126
+ Models_Select_Column["Label"] = "label";
127
+ /** column name */
128
+ Models_Select_Column["Provider"] = "provider";
129
+ /** column name */
130
+ Models_Select_Column["Slug"] = "slug";
131
+ /** column name */
132
+ Models_Select_Column["SortOrder"] = "sort_order";
133
+ })(Models_Select_Column || (Models_Select_Column = {}));
118
134
  /** select columns of table "notifications" */
119
135
  export var Notifications_Select_Column;
120
136
  (function (Notifications_Select_Column) {
@@ -167,6 +183,16 @@ export var Personal_Access_Tokens_Select_Column;
167
183
  /** column name */
168
184
  Personal_Access_Tokens_Select_Column["Scopes"] = "scopes";
169
185
  })(Personal_Access_Tokens_Select_Column || (Personal_Access_Tokens_Select_Column = {}));
186
+ /** select columns of table "pipeline_models" */
187
+ export var Pipeline_Models_Select_Column;
188
+ (function (Pipeline_Models_Select_Column) {
189
+ /** column name */
190
+ Pipeline_Models_Select_Column["ModelSlug"] = "model_slug";
191
+ /** column name */
192
+ Pipeline_Models_Select_Column["PipelineSlug"] = "pipeline_slug";
193
+ /** column name */
194
+ Pipeline_Models_Select_Column["SortOrder"] = "sort_order";
195
+ })(Pipeline_Models_Select_Column || (Pipeline_Models_Select_Column = {}));
170
196
  /** select columns of table "pipeline_runs" */
171
197
  export var Pipeline_Runs_Select_Column;
172
198
  (function (Pipeline_Runs_Select_Column) {
@@ -221,8 +247,6 @@ export var Pipelines_Select_Column;
221
247
  /** column name */
222
248
  Pipelines_Select_Column["PreviewUrl"] = "preview_url";
223
249
  /** column name */
224
- Pipelines_Select_Column["Pricing"] = "pricing";
225
- /** column name */
226
250
  Pipelines_Select_Column["Providers"] = "providers";
227
251
  /** column name */
228
252
  Pipelines_Select_Column["SeoContent"] = "seo_content";
@@ -740,7 +764,6 @@ export const GetPipelinesDocument = gql `
740
764
  seo_faq
741
765
  tags
742
766
  hints
743
- pricing
744
767
  cancellable
745
768
  }
746
769
  }
@@ -764,19 +787,10 @@ export const GetPipelinesListDocument = gql `
764
787
  models
765
788
  tags
766
789
  hints
767
- pricing
768
790
  cancellable
769
791
  }
770
792
  }
771
793
  `;
772
- export const GetPipelinesPricingDocument = gql `
773
- query GetPipelinesPricing($slugs: [String!]!) {
774
- pipelines(where: {slug: {_in: $slugs}}) {
775
- slug
776
- pricing
777
- }
778
- }
779
- `;
780
794
  export const EstimatePipelineCostDocument = gql `
781
795
  query EstimatePipelineCost($pipeline_slug: String!, $input: jsonb!) {
782
796
  estimate_pipeline_cost(pipeline_slug: $pipeline_slug, input: $input) {
@@ -787,6 +801,31 @@ export const EstimatePipelineCostDocument = gql `
787
801
  }
788
802
  }
789
803
  `;
804
+ export const PipelineModelsDocument = gql `
805
+ query PipelineModels($slug: String!) {
806
+ pipeline_models(
807
+ where: {pipeline_slug: {_eq: $slug}}
808
+ order_by: {sort_order: asc}
809
+ ) {
810
+ model_slug
811
+ model {
812
+ slug
813
+ label
814
+ description
815
+ }
816
+ }
817
+ }
818
+ `;
819
+ export const PipelinePricingDocument = gql `
820
+ query PipelinePricing {
821
+ pipeline_pricing {
822
+ slug
823
+ from_mc
824
+ to_mc
825
+ metered
826
+ }
827
+ }
828
+ `;
790
829
  export const RunPipelineDocument = gql `
791
830
  mutation RunPipeline($pipeline_slug: String!, $input: jsonb!) {
792
831
  run_pipeline(pipeline_slug: $pipeline_slug, input: $input) {
@@ -1238,12 +1277,15 @@ export function getSdk(requester) {
1238
1277
  GetPipelinesList(variables, options) {
1239
1278
  return requester(GetPipelinesListDocument, variables, options);
1240
1279
  },
1241
- GetPipelinesPricing(variables, options) {
1242
- return requester(GetPipelinesPricingDocument, variables, options);
1243
- },
1244
1280
  EstimatePipelineCost(variables, options) {
1245
1281
  return requester(EstimatePipelineCostDocument, variables, options);
1246
1282
  },
1283
+ PipelineModels(variables, options) {
1284
+ return requester(PipelineModelsDocument, variables, options);
1285
+ },
1286
+ PipelinePricing(variables, options) {
1287
+ return requester(PipelinePricingDocument, variables, options);
1288
+ },
1247
1289
  RunPipeline(variables, options) {
1248
1290
  return requester(RunPipelineDocument, variables, options);
1249
1291
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipe2-ai/sdk",
3
- "version": "0.4.0",
3
+ "version": "2026.07.1",
4
4
  "type": "module",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
@@ -21,15 +21,13 @@
21
21
  "dependencies": {
22
22
  "graphql": "^16.0.0",
23
23
  "graphql-request": "^7.0.0",
24
- "graphql-ws": "^6.0.0",
25
- "ws": "^8.0.0"
24
+ "graphql-ws": "^6.0.0"
26
25
  },
27
26
  "devDependencies": {
28
27
  "@graphql-codegen/cli": "^5.0.0",
29
28
  "@graphql-codegen/typescript": "^4.0.0",
30
29
  "@graphql-codegen/typescript-generic-sdk": "^4.0.0",
31
30
  "@graphql-codegen/typescript-operations": "^4.0.0",
32
- "@types/ws": "^8.0.0",
33
31
  "typescript": "^5.0.0"
34
32
  }
35
33
  }