@pipe2-ai/sdk 2026.8.0 → 2026.9.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.
@@ -58,6 +58,10 @@ export type Scalars = {
58
58
  input: any;
59
59
  output: any;
60
60
  };
61
+ smallint: {
62
+ input: any;
63
+ output: any;
64
+ };
61
65
  timestamp: {
62
66
  input: any;
63
67
  output: any;
@@ -671,38 +675,6 @@ export type Bigint_Comparison_Exp = {
671
675
  _neq?: InputMaybe<Scalars['bigint']['input']>;
672
676
  _nin?: InputMaybe<Array<Scalars['bigint']['input']>>;
673
677
  };
674
- /** Boolean expression to compare columns of type "bpchar". All fields are combined with logical 'AND'. */
675
- export type Bpchar_Comparison_Exp = {
676
- _eq?: InputMaybe<Scalars['bpchar']['input']>;
677
- _gt?: InputMaybe<Scalars['bpchar']['input']>;
678
- _gte?: InputMaybe<Scalars['bpchar']['input']>;
679
- /** does the column match the given case-insensitive pattern */
680
- _ilike?: InputMaybe<Scalars['bpchar']['input']>;
681
- _in?: InputMaybe<Array<Scalars['bpchar']['input']>>;
682
- /** does the column match the given POSIX regular expression, case insensitive */
683
- _iregex?: InputMaybe<Scalars['bpchar']['input']>;
684
- _is_null?: InputMaybe<Scalars['Boolean']['input']>;
685
- /** does the column match the given pattern */
686
- _like?: InputMaybe<Scalars['bpchar']['input']>;
687
- _lt?: InputMaybe<Scalars['bpchar']['input']>;
688
- _lte?: InputMaybe<Scalars['bpchar']['input']>;
689
- _neq?: InputMaybe<Scalars['bpchar']['input']>;
690
- /** does the column NOT match the given case-insensitive pattern */
691
- _nilike?: InputMaybe<Scalars['bpchar']['input']>;
692
- _nin?: InputMaybe<Array<Scalars['bpchar']['input']>>;
693
- /** does the column NOT match the given POSIX regular expression, case insensitive */
694
- _niregex?: InputMaybe<Scalars['bpchar']['input']>;
695
- /** does the column NOT match the given pattern */
696
- _nlike?: InputMaybe<Scalars['bpchar']['input']>;
697
- /** does the column NOT match the given POSIX regular expression, case sensitive */
698
- _nregex?: InputMaybe<Scalars['bpchar']['input']>;
699
- /** does the column NOT match the given SQL regular expression */
700
- _nsimilar?: InputMaybe<Scalars['bpchar']['input']>;
701
- /** does the column match the given POSIX regular expression, case sensitive */
702
- _regex?: InputMaybe<Scalars['bpchar']['input']>;
703
- /** does the column match the given SQL regular expression */
704
- _similar?: InputMaybe<Scalars['bpchar']['input']>;
705
- };
706
678
  export type Cancel_Account_Deletion_Output = {
707
679
  __typename?: 'cancel_account_deletion_output';
708
680
  message: Scalars['String']['output'];
@@ -805,36 +777,6 @@ export type Create_Auth_Handoff_Code_Output = {
805
777
  code: Scalars['String']['output'];
806
778
  expires_at: Scalars['String']['output'];
807
779
  };
808
- export type Create_Checkout_Session_Output = {
809
- __typename?: 'create_checkout_session_output';
810
- success: Scalars['Boolean']['output'];
811
- url: Scalars['String']['output'];
812
- };
813
- export type Create_Crypto_Payment_Output = {
814
- __typename?: 'create_crypto_payment_output';
815
- amount: Scalars['String']['output'];
816
- amount_paid_usdt?: Maybe<Scalars['Float']['output']>;
817
- asset?: Maybe<Scalars['String']['output']>;
818
- confirmations: Scalars['Int']['output'];
819
- credits: Scalars['Float']['output'];
820
- currency_id: Scalars['String']['output'];
821
- deposit_address: Scalars['String']['output'];
822
- expected_usdt: Scalars['Float']['output'];
823
- expires_at: Scalars['String']['output'];
824
- granted_at?: Maybe<Scalars['String']['output']>;
825
- network: Scalars['String']['output'];
826
- payment_id: Scalars['String']['output'];
827
- payment_uri?: Maybe<Scalars['String']['output']>;
828
- provider: Scalars['String']['output'];
829
- qr_code_data_url?: Maybe<Scalars['String']['output']>;
830
- remaining_amount?: Maybe<Scalars['String']['output']>;
831
- required_confirmations: Scalars['Int']['output'];
832
- status: Scalars['String']['output'];
833
- success: Scalars['Boolean']['output'];
834
- top_up_payment_uri?: Maybe<Scalars['String']['output']>;
835
- top_up_qr_code_data_url?: Maybe<Scalars['String']['output']>;
836
- tx_hash?: Maybe<Scalars['String']['output']>;
837
- };
838
780
  export type Create_Personal_Access_Token_Output = {
839
781
  __typename?: 'create_personal_access_token_output';
840
782
  expires_at: Scalars['String']['output'];
@@ -1321,149 +1263,6 @@ export type Crypto_Payment_Currencies_Stream_Cursor_Value_Input = {
1321
1263
  provider?: InputMaybe<Scalars['String']['input']>;
1322
1264
  sort_order?: InputMaybe<Scalars['Int']['input']>;
1323
1265
  };
1324
- export type Crypto_Payment_Status_Output = {
1325
- __typename?: 'crypto_payment_status_output';
1326
- amount: Scalars['String']['output'];
1327
- amount_paid_usdt?: Maybe<Scalars['Float']['output']>;
1328
- asset?: Maybe<Scalars['String']['output']>;
1329
- confirmations: Scalars['Int']['output'];
1330
- credits: Scalars['Float']['output'];
1331
- currency_id: Scalars['String']['output'];
1332
- deposit_address: Scalars['String']['output'];
1333
- expected_usdt: Scalars['Float']['output'];
1334
- expires_at: Scalars['String']['output'];
1335
- granted_at?: Maybe<Scalars['String']['output']>;
1336
- network: Scalars['String']['output'];
1337
- payment_id: Scalars['String']['output'];
1338
- payment_uri?: Maybe<Scalars['String']['output']>;
1339
- provider: Scalars['String']['output'];
1340
- qr_code_data_url?: Maybe<Scalars['String']['output']>;
1341
- remaining_amount?: Maybe<Scalars['String']['output']>;
1342
- required_confirmations: Scalars['Int']['output'];
1343
- status: Scalars['String']['output'];
1344
- success: Scalars['Boolean']['output'];
1345
- top_up_payment_uri?: Maybe<Scalars['String']['output']>;
1346
- top_up_qr_code_data_url?: Maybe<Scalars['String']['output']>;
1347
- tx_hash?: Maybe<Scalars['String']['output']>;
1348
- };
1349
- /** columns and relationships of "crypto_payments" */
1350
- export type Crypto_Payments = {
1351
- __typename?: 'crypto_payments';
1352
- amount_paid_usdt?: Maybe<Scalars['numeric']['output']>;
1353
- created_at: Scalars['timestamptz']['output'];
1354
- /** An object relationship */
1355
- credit_pack_version?: Maybe<Credit_Pack_Versions>;
1356
- credits: Scalars['Int']['output'];
1357
- currency_id: Scalars['String']['output'];
1358
- deposit_address: Scalars['String']['output'];
1359
- expected_usdt: Scalars['numeric']['output'];
1360
- expires_at: Scalars['timestamptz']['output'];
1361
- granted_at?: Maybe<Scalars['timestamptz']['output']>;
1362
- id: Scalars['uuid']['output'];
1363
- kind: Scalars['String']['output'];
1364
- network: Scalars['String']['output'];
1365
- provider: Scalars['String']['output'];
1366
- status: Scalars['String']['output'];
1367
- tx_hash?: Maybe<Scalars['String']['output']>;
1368
- /** An object relationship */
1369
- user: Users;
1370
- };
1371
- /** Boolean expression to filter rows from the table "crypto_payments". All fields are combined with a logical 'AND'. */
1372
- export type Crypto_Payments_Bool_Exp = {
1373
- _and?: InputMaybe<Array<Crypto_Payments_Bool_Exp>>;
1374
- _not?: InputMaybe<Crypto_Payments_Bool_Exp>;
1375
- _or?: InputMaybe<Array<Crypto_Payments_Bool_Exp>>;
1376
- amount_paid_usdt?: InputMaybe<Numeric_Comparison_Exp>;
1377
- created_at?: InputMaybe<Timestamptz_Comparison_Exp>;
1378
- credit_pack_version?: InputMaybe<Credit_Pack_Versions_Bool_Exp>;
1379
- credits?: InputMaybe<Int_Comparison_Exp>;
1380
- currency_id?: InputMaybe<String_Comparison_Exp>;
1381
- deposit_address?: InputMaybe<String_Comparison_Exp>;
1382
- expected_usdt?: InputMaybe<Numeric_Comparison_Exp>;
1383
- expires_at?: InputMaybe<Timestamptz_Comparison_Exp>;
1384
- granted_at?: InputMaybe<Timestamptz_Comparison_Exp>;
1385
- id?: InputMaybe<Uuid_Comparison_Exp>;
1386
- kind?: InputMaybe<String_Comparison_Exp>;
1387
- network?: InputMaybe<String_Comparison_Exp>;
1388
- provider?: InputMaybe<String_Comparison_Exp>;
1389
- status?: InputMaybe<String_Comparison_Exp>;
1390
- tx_hash?: InputMaybe<String_Comparison_Exp>;
1391
- user?: InputMaybe<Users_Bool_Exp>;
1392
- };
1393
- /** Ordering options when selecting data from "crypto_payments". */
1394
- export type Crypto_Payments_Order_By = {
1395
- amount_paid_usdt?: InputMaybe<Order_By>;
1396
- created_at?: InputMaybe<Order_By>;
1397
- credit_pack_version?: InputMaybe<Credit_Pack_Versions_Order_By>;
1398
- credits?: InputMaybe<Order_By>;
1399
- currency_id?: InputMaybe<Order_By>;
1400
- deposit_address?: InputMaybe<Order_By>;
1401
- expected_usdt?: InputMaybe<Order_By>;
1402
- expires_at?: InputMaybe<Order_By>;
1403
- granted_at?: InputMaybe<Order_By>;
1404
- id?: InputMaybe<Order_By>;
1405
- kind?: InputMaybe<Order_By>;
1406
- network?: InputMaybe<Order_By>;
1407
- provider?: InputMaybe<Order_By>;
1408
- status?: InputMaybe<Order_By>;
1409
- tx_hash?: InputMaybe<Order_By>;
1410
- user?: InputMaybe<Users_Order_By>;
1411
- };
1412
- /** select columns of table "crypto_payments" */
1413
- export declare enum Crypto_Payments_Select_Column {
1414
- /** column name */
1415
- AmountPaidUsdt = "amount_paid_usdt",
1416
- /** column name */
1417
- CreatedAt = "created_at",
1418
- /** column name */
1419
- Credits = "credits",
1420
- /** column name */
1421
- CurrencyId = "currency_id",
1422
- /** column name */
1423
- DepositAddress = "deposit_address",
1424
- /** column name */
1425
- ExpectedUsdt = "expected_usdt",
1426
- /** column name */
1427
- ExpiresAt = "expires_at",
1428
- /** column name */
1429
- GrantedAt = "granted_at",
1430
- /** column name */
1431
- Id = "id",
1432
- /** column name */
1433
- Kind = "kind",
1434
- /** column name */
1435
- Network = "network",
1436
- /** column name */
1437
- Provider = "provider",
1438
- /** column name */
1439
- Status = "status",
1440
- /** column name */
1441
- TxHash = "tx_hash"
1442
- }
1443
- /** Streaming cursor of the table "crypto_payments" */
1444
- export type Crypto_Payments_Stream_Cursor_Input = {
1445
- /** Stream column input with initial value */
1446
- initial_value: Crypto_Payments_Stream_Cursor_Value_Input;
1447
- /** cursor ordering */
1448
- ordering?: InputMaybe<Cursor_Ordering>;
1449
- };
1450
- /** Initial value of the column from where the streaming should start */
1451
- export type Crypto_Payments_Stream_Cursor_Value_Input = {
1452
- amount_paid_usdt?: InputMaybe<Scalars['numeric']['input']>;
1453
- created_at?: InputMaybe<Scalars['timestamptz']['input']>;
1454
- credits?: InputMaybe<Scalars['Int']['input']>;
1455
- currency_id?: InputMaybe<Scalars['String']['input']>;
1456
- deposit_address?: InputMaybe<Scalars['String']['input']>;
1457
- expected_usdt?: InputMaybe<Scalars['numeric']['input']>;
1458
- expires_at?: InputMaybe<Scalars['timestamptz']['input']>;
1459
- granted_at?: InputMaybe<Scalars['timestamptz']['input']>;
1460
- id?: InputMaybe<Scalars['uuid']['input']>;
1461
- kind?: InputMaybe<Scalars['String']['input']>;
1462
- network?: InputMaybe<Scalars['String']['input']>;
1463
- provider?: InputMaybe<Scalars['String']['input']>;
1464
- status?: InputMaybe<Scalars['String']['input']>;
1465
- tx_hash?: InputMaybe<Scalars['String']['input']>;
1466
- };
1467
1266
  export type Current_User_Output = {
1468
1267
  __typename?: 'current_user_output';
1469
1268
  avatar_url?: Maybe<Scalars['String']['output']>;
@@ -1586,63 +1385,6 @@ export type Executions_Visibility = {
1586
1385
  workflow_id: Scalars['String']['output'];
1587
1386
  workflow_type_name: Scalars['String']['output'];
1588
1387
  };
1589
- /** Boolean expression to filter rows from the table "executions_visibility". All fields are combined with a logical 'AND'. */
1590
- export type Executions_Visibility_Bool_Exp = {
1591
- _and?: InputMaybe<Array<Executions_Visibility_Bool_Exp>>;
1592
- _not?: InputMaybe<Executions_Visibility_Bool_Exp>;
1593
- _or?: InputMaybe<Array<Executions_Visibility_Bool_Exp>>;
1594
- close_time?: InputMaybe<Timestamp_Comparison_Exp>;
1595
- run_id?: InputMaybe<Bpchar_Comparison_Exp>;
1596
- start_time?: InputMaybe<Timestamp_Comparison_Exp>;
1597
- status?: InputMaybe<Int_Comparison_Exp>;
1598
- task_queue?: InputMaybe<String_Comparison_Exp>;
1599
- workflow_id?: InputMaybe<String_Comparison_Exp>;
1600
- workflow_type_name?: InputMaybe<String_Comparison_Exp>;
1601
- };
1602
- /** Ordering options when selecting data from "executions_visibility". */
1603
- export type Executions_Visibility_Order_By = {
1604
- close_time?: InputMaybe<Order_By>;
1605
- run_id?: InputMaybe<Order_By>;
1606
- start_time?: InputMaybe<Order_By>;
1607
- status?: InputMaybe<Order_By>;
1608
- task_queue?: InputMaybe<Order_By>;
1609
- workflow_id?: InputMaybe<Order_By>;
1610
- workflow_type_name?: InputMaybe<Order_By>;
1611
- };
1612
- /** select columns of table "executions_visibility" */
1613
- export declare enum Executions_Visibility_Select_Column {
1614
- /** column name */
1615
- CloseTime = "close_time",
1616
- /** column name */
1617
- RunId = "run_id",
1618
- /** column name */
1619
- StartTime = "start_time",
1620
- /** column name */
1621
- Status = "status",
1622
- /** column name */
1623
- TaskQueue = "task_queue",
1624
- /** column name */
1625
- WorkflowId = "workflow_id",
1626
- /** column name */
1627
- WorkflowTypeName = "workflow_type_name"
1628
- }
1629
- /** Streaming cursor of the table "executions_visibility" */
1630
- export type Executions_Visibility_Stream_Cursor_Input = {
1631
- /** Stream column input with initial value */
1632
- initial_value: Executions_Visibility_Stream_Cursor_Value_Input;
1633
- /** cursor ordering */
1634
- ordering?: InputMaybe<Cursor_Ordering>;
1635
- };
1636
- /** Initial value of the column from where the streaming should start */
1637
- export type Executions_Visibility_Stream_Cursor_Value_Input = {
1638
- close_time?: InputMaybe<Scalars['timestamp']['input']>;
1639
- run_id?: InputMaybe<Scalars['bpchar']['input']>;
1640
- start_time?: InputMaybe<Scalars['timestamp']['input']>;
1641
- status?: InputMaybe<Scalars['Int']['input']>;
1642
- task_queue?: InputMaybe<Scalars['String']['input']>;
1643
- workflow_id?: InputMaybe<Scalars['String']['input']>;
1644
- workflow_type_name?: InputMaybe<Scalars['String']['input']>;
1645
- };
1646
1388
  /** Daily USD reference rates used to calculate localized product prices. */
1647
1389
  export type Fx_Rates = {
1648
1390
  __typename?: 'fx_rates';
@@ -1990,15 +1732,20 @@ export type Models = {
1990
1732
  capabilities: Array<Model_Capabilities>;
1991
1733
  description: Scalars['String']['output'];
1992
1734
  featured: Scalars['Boolean']['output'];
1735
+ icon_url?: Maybe<Scalars['String']['output']>;
1993
1736
  is_active: Scalars['Boolean']['output'];
1994
1737
  label: Scalars['String']['output'];
1995
1738
  long_description?: Maybe<Scalars['String']['output']>;
1739
+ max_input_images?: Maybe<Scalars['Int']['output']>;
1996
1740
  /** An array relationship */
1997
1741
  pipeline_models: Array<Pipeline_Models>;
1742
+ poster_url?: Maybe<Scalars['String']['output']>;
1998
1743
  provider: Scalars['String']['output'];
1999
1744
  /** An object relationship */
2000
1745
  provider_info: Providers;
2001
1746
  public_name?: Maybe<Scalars['String']['output']>;
1747
+ /** Pipe2 editorial output-quality score. NULL means not yet assessed. */
1748
+ quality_score?: Maybe<Scalars['smallint']['output']>;
2002
1749
  slug: Scalars['String']['output'];
2003
1750
  sort_order: Scalars['Int']['output'];
2004
1751
  /** An array relationship */
@@ -2037,13 +1784,17 @@ export type Models_Bool_Exp = {
2037
1784
  capabilities?: InputMaybe<Model_Capabilities_Bool_Exp>;
2038
1785
  description?: InputMaybe<String_Comparison_Exp>;
2039
1786
  featured?: InputMaybe<Boolean_Comparison_Exp>;
1787
+ icon_url?: InputMaybe<String_Comparison_Exp>;
2040
1788
  is_active?: InputMaybe<Boolean_Comparison_Exp>;
2041
1789
  label?: InputMaybe<String_Comparison_Exp>;
2042
1790
  long_description?: InputMaybe<String_Comparison_Exp>;
1791
+ max_input_images?: InputMaybe<Int_Comparison_Exp>;
2043
1792
  pipeline_models?: InputMaybe<Pipeline_Models_Bool_Exp>;
1793
+ poster_url?: InputMaybe<String_Comparison_Exp>;
2044
1794
  provider?: InputMaybe<String_Comparison_Exp>;
2045
1795
  provider_info?: InputMaybe<Providers_Bool_Exp>;
2046
1796
  public_name?: InputMaybe<String_Comparison_Exp>;
1797
+ quality_score?: InputMaybe<Smallint_Comparison_Exp>;
2047
1798
  slug?: InputMaybe<String_Comparison_Exp>;
2048
1799
  sort_order?: InputMaybe<Int_Comparison_Exp>;
2049
1800
  translations?: InputMaybe<Model_Translations_Bool_Exp>;
@@ -2054,13 +1805,17 @@ export type Models_Order_By = {
2054
1805
  capabilities_aggregate?: InputMaybe<Model_Capabilities_Aggregate_Order_By>;
2055
1806
  description?: InputMaybe<Order_By>;
2056
1807
  featured?: InputMaybe<Order_By>;
1808
+ icon_url?: InputMaybe<Order_By>;
2057
1809
  is_active?: InputMaybe<Order_By>;
2058
1810
  label?: InputMaybe<Order_By>;
2059
1811
  long_description?: InputMaybe<Order_By>;
1812
+ max_input_images?: InputMaybe<Order_By>;
2060
1813
  pipeline_models_aggregate?: InputMaybe<Pipeline_Models_Aggregate_Order_By>;
1814
+ poster_url?: InputMaybe<Order_By>;
2061
1815
  provider?: InputMaybe<Order_By>;
2062
1816
  provider_info?: InputMaybe<Providers_Order_By>;
2063
1817
  public_name?: InputMaybe<Order_By>;
1818
+ quality_score?: InputMaybe<Order_By>;
2064
1819
  slug?: InputMaybe<Order_By>;
2065
1820
  sort_order?: InputMaybe<Order_By>;
2066
1821
  translations_aggregate?: InputMaybe<Model_Translations_Aggregate_Order_By>;
@@ -2074,16 +1829,24 @@ export declare enum Models_Select_Column {
2074
1829
  /** column name */
2075
1830
  Featured = "featured",
2076
1831
  /** column name */
1832
+ IconUrl = "icon_url",
1833
+ /** column name */
2077
1834
  IsActive = "is_active",
2078
1835
  /** column name */
2079
1836
  Label = "label",
2080
1837
  /** column name */
2081
1838
  LongDescription = "long_description",
2082
1839
  /** column name */
1840
+ MaxInputImages = "max_input_images",
1841
+ /** column name */
1842
+ PosterUrl = "poster_url",
1843
+ /** column name */
2083
1844
  Provider = "provider",
2084
1845
  /** column name */
2085
1846
  PublicName = "public_name",
2086
1847
  /** column name */
1848
+ QualityScore = "quality_score",
1849
+ /** column name */
2087
1850
  Slug = "slug",
2088
1851
  /** column name */
2089
1852
  SortOrder = "sort_order"
@@ -2100,11 +1863,16 @@ export type Models_Stream_Cursor_Value_Input = {
2100
1863
  aliases?: InputMaybe<Array<Scalars['String']['input']>>;
2101
1864
  description?: InputMaybe<Scalars['String']['input']>;
2102
1865
  featured?: InputMaybe<Scalars['Boolean']['input']>;
1866
+ icon_url?: InputMaybe<Scalars['String']['input']>;
2103
1867
  is_active?: InputMaybe<Scalars['Boolean']['input']>;
2104
1868
  label?: InputMaybe<Scalars['String']['input']>;
2105
1869
  long_description?: InputMaybe<Scalars['String']['input']>;
1870
+ max_input_images?: InputMaybe<Scalars['Int']['input']>;
1871
+ poster_url?: InputMaybe<Scalars['String']['input']>;
2106
1872
  provider?: InputMaybe<Scalars['String']['input']>;
2107
1873
  public_name?: InputMaybe<Scalars['String']['input']>;
1874
+ /** Pipe2 editorial output-quality score. NULL means not yet assessed. */
1875
+ quality_score?: InputMaybe<Scalars['smallint']['input']>;
2108
1876
  slug?: InputMaybe<Scalars['String']['input']>;
2109
1877
  sort_order?: InputMaybe<Scalars['Int']['input']>;
2110
1878
  };
@@ -2146,14 +1914,10 @@ export type Mutation_Root = {
2146
1914
  create_asset: Create_Asset_Output;
2147
1915
  /** Create a short-lived, PKCE-bound authentication handoff code */
2148
1916
  create_auth_handoff_code: Create_Auth_Handoff_Code_Output;
2149
- /** Create a Whop checkout session with the buyer's user_id baked into metadata */
2150
- create_checkout_session: Create_Checkout_Session_Output;
2151
- /** Create an idempotent server-priced crypto payment or monthly invoice */
2152
- create_crypto_payment: Create_Crypto_Payment_Output;
1917
+ /** Create a payment through the selected provider */
1918
+ create_payment: Payment_Output;
2153
1919
  /** Create a personal access token for API and MCP access */
2154
1920
  create_personal_access_token: Create_Personal_Access_Token_Output;
2155
- /** Create an idempotent server-priced SBP payment through the selected enabled provider */
2156
- create_sbp_payment: Sbp_Payment_Output;
2157
1921
  /** Delete an asset */
2158
1922
  delete_asset: Delete_Asset_Output;
2159
1923
  /** delete data from the table: "notifications" */
@@ -2267,33 +2031,20 @@ export type Mutation_RootCreate_Auth_Handoff_CodeArgs = {
2267
2031
  redirect_uri: Scalars['String']['input'];
2268
2032
  };
2269
2033
  /** mutation root */
2270
- export type Mutation_RootCreate_Checkout_SessionArgs = {
2271
- affiliate_code?: InputMaybe<Scalars['String']['input']>;
2272
- whop_plan_id: Scalars['String']['input'];
2273
- };
2274
- /** mutation root */
2275
- export type Mutation_RootCreate_Crypto_PaymentArgs = {
2276
- attempt_id?: InputMaybe<Scalars['uuid']['input']>;
2034
+ export type Mutation_RootCreate_PaymentArgs = {
2035
+ attempt_id: Scalars['uuid']['input'];
2277
2036
  country?: InputMaybe<Scalars['String']['input']>;
2278
2037
  credit_pack_slug?: InputMaybe<Scalars['String']['input']>;
2279
- currency_id: Scalars['String']['input'];
2038
+ currency_id?: InputMaybe<Scalars['String']['input']>;
2280
2039
  plan_slug?: InputMaybe<Scalars['String']['input']>;
2281
- provider?: InputMaybe<Scalars['String']['input']>;
2040
+ provider: Scalars['String']['input'];
2041
+ recurring_consent?: InputMaybe<Scalars['Boolean']['input']>;
2282
2042
  };
2283
2043
  /** mutation root */
2284
2044
  export type Mutation_RootCreate_Personal_Access_TokenArgs = {
2285
2045
  name: Scalars['String']['input'];
2286
2046
  };
2287
2047
  /** mutation root */
2288
- export type Mutation_RootCreate_Sbp_PaymentArgs = {
2289
- attempt_id: Scalars['uuid']['input'];
2290
- country?: InputMaybe<Scalars['String']['input']>;
2291
- credit_pack_slug?: InputMaybe<Scalars['String']['input']>;
2292
- plan_slug?: InputMaybe<Scalars['String']['input']>;
2293
- provider: Scalars['String']['input'];
2294
- recurring_consent?: InputMaybe<Scalars['Boolean']['input']>;
2295
- };
2296
- /** mutation root */
2297
2048
  export type Mutation_RootDelete_AssetArgs = {
2298
2049
  id: Scalars['uuid']['input'];
2299
2050
  };
@@ -2588,6 +2339,35 @@ export declare enum Order_By {
2588
2339
  /** in descending order, nulls last */
2589
2340
  DescNullsLast = "desc_nulls_last"
2590
2341
  }
2342
+ export type Payment_Output = {
2343
+ __typename?: 'payment_output';
2344
+ amount: Scalars['String']['output'];
2345
+ amount_paid_usdt?: Maybe<Scalars['Float']['output']>;
2346
+ asset?: Maybe<Scalars['String']['output']>;
2347
+ confirmations?: Maybe<Scalars['Int']['output']>;
2348
+ created_at?: Maybe<Scalars['String']['output']>;
2349
+ credits: Scalars['Float']['output'];
2350
+ currency?: Maybe<Scalars['String']['output']>;
2351
+ currency_id?: Maybe<Scalars['String']['output']>;
2352
+ deposit_address?: Maybe<Scalars['String']['output']>;
2353
+ detail?: Maybe<Scalars['String']['output']>;
2354
+ expected_usdt?: Maybe<Scalars['Float']['output']>;
2355
+ expires_at: Scalars['String']['output'];
2356
+ granted_at?: Maybe<Scalars['String']['output']>;
2357
+ kind?: Maybe<Scalars['String']['output']>;
2358
+ network?: Maybe<Scalars['String']['output']>;
2359
+ payment_id: Scalars['String']['output'];
2360
+ payment_uri?: Maybe<Scalars['String']['output']>;
2361
+ provider: Scalars['String']['output'];
2362
+ qr_code_data_url?: Maybe<Scalars['String']['output']>;
2363
+ remaining_amount?: Maybe<Scalars['String']['output']>;
2364
+ required_confirmations?: Maybe<Scalars['Int']['output']>;
2365
+ status: Scalars['String']['output'];
2366
+ success: Scalars['Boolean']['output'];
2367
+ top_up_payment_uri?: Maybe<Scalars['String']['output']>;
2368
+ top_up_qr_code_data_url?: Maybe<Scalars['String']['output']>;
2369
+ tx_hash?: Maybe<Scalars['String']['output']>;
2370
+ };
2591
2371
  /** columns and relationships of "payment_provider_resolved_row" */
2592
2372
  export type Payment_Provider_Resolved_Row = {
2593
2373
  __typename?: 'payment_provider_resolved_row';
@@ -4422,10 +4202,6 @@ export type Query_Root = {
4422
4202
  crypto_payment_currencies: Array<Crypto_Payment_Currencies>;
4423
4203
  /** fetch data from the table: "crypto_payment_currencies" using primary key columns */
4424
4204
  crypto_payment_currencies_by_pk?: Maybe<Crypto_Payment_Currencies>;
4425
- /** fetch data from the table: "crypto_payments" */
4426
- crypto_payments: Array<Crypto_Payments>;
4427
- /** fetch data from the table: "crypto_payments" using primary key columns */
4428
- crypto_payments_by_pk?: Maybe<Crypto_Payments>;
4429
4205
  /** Get the currently signed-in user */
4430
4206
  current_user: Current_User_Output;
4431
4207
  /** fetch data from the table: "dispatch_blocks" */
@@ -4434,8 +4210,6 @@ export type Query_Root = {
4434
4210
  dispatch_blocks_by_pk?: Maybe<Dispatch_Blocks>;
4435
4211
  /** Preview the credit cost of running a pipeline with a given input (read-only) */
4436
4212
  estimate_pipeline_cost?: Maybe<Estimate_Pipeline_Cost_Output>;
4437
- /** fetch data from the table: "executions_visibility" */
4438
- executions_visibility: Array<Executions_Visibility>;
4439
4213
  /** fetch data from the table: "fx_rates" */
4440
4214
  fx_rates: Array<Fx_Rates>;
4441
4215
  /** fetch data from the table: "fx_rates" using primary key columns */
@@ -4444,12 +4218,10 @@ export type Query_Root = {
4444
4218
  get_credit_balance?: Maybe<Credit_Balance_Output>;
4445
4219
  /** Get your credit transaction history */
4446
4220
  get_credit_history: Array<Credit_History_Entry>;
4447
- /** Poll one owned crypto payment through the server-side gateway client */
4448
- get_crypto_payment_status: Crypto_Payment_Status_Output;
4449
4221
  /** Get your referral stats and referred users */
4450
4222
  get_my_referrals: Get_My_Referrals_Output;
4451
- /** Poll one owned SBP payment and settle it through its recorded provider */
4452
- get_sbp_payment_status: Sbp_Payment_Output;
4223
+ /** Get the status of an owned payment through its selected provider */
4224
+ get_payment_status: Payment_Output;
4453
4225
  /** fetch data from the table: "locales" */
4454
4226
  locales: Array<Locales>;
4455
4227
  /** fetch data from the table: "locales" using primary key columns */
@@ -4480,6 +4252,8 @@ export type Query_Root = {
4480
4252
  payment_providers: Array<Payment_Providers>;
4481
4253
  /** fetch data from the table: "payment_providers" using primary key columns */
4482
4254
  payment_providers_by_pk?: Maybe<Payment_Providers>;
4255
+ /** List the current user's payments across all providers */
4256
+ payments: Array<Payment_Output>;
4483
4257
  /** fetch data from the table: "personal_access_tokens" */
4484
4258
  personal_access_tokens: Array<Personal_Access_Tokens>;
4485
4259
  /** fetch data from the table: "personal_access_tokens" using primary key columns */
@@ -4546,8 +4320,6 @@ export type Query_Root = {
4546
4320
  user_subscription_credits: Array<User_Subscription_Credits>;
4547
4321
  /** fetch data from the table: "user_subscription_credits" using primary key columns */
4548
4322
  user_subscription_credits_by_pk?: Maybe<User_Subscription_Credits>;
4549
- /** fetch data from the table: "users" */
4550
- users: Array<Users>;
4551
4323
  };
4552
4324
  export type Query_RootAffiliate_CodesArgs = {
4553
4325
  distinct_on?: InputMaybe<Array<Affiliate_Codes_Select_Column>>;
@@ -4647,16 +4419,6 @@ export type Query_RootCrypto_Payment_CurrenciesArgs = {
4647
4419
  export type Query_RootCrypto_Payment_Currencies_By_PkArgs = {
4648
4420
  currency_id: Scalars['String']['input'];
4649
4421
  };
4650
- export type Query_RootCrypto_PaymentsArgs = {
4651
- distinct_on?: InputMaybe<Array<Crypto_Payments_Select_Column>>;
4652
- limit?: InputMaybe<Scalars['Int']['input']>;
4653
- offset?: InputMaybe<Scalars['Int']['input']>;
4654
- order_by?: InputMaybe<Array<Crypto_Payments_Order_By>>;
4655
- where?: InputMaybe<Crypto_Payments_Bool_Exp>;
4656
- };
4657
- export type Query_RootCrypto_Payments_By_PkArgs = {
4658
- id: Scalars['uuid']['input'];
4659
- };
4660
4422
  export type Query_RootDispatch_BlocksArgs = {
4661
4423
  distinct_on?: InputMaybe<Array<Dispatch_Blocks_Select_Column>>;
4662
4424
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -4671,13 +4433,6 @@ export type Query_RootEstimate_Pipeline_CostArgs = {
4671
4433
  input: Scalars['jsonb']['input'];
4672
4434
  pipeline_slug: Scalars['String']['input'];
4673
4435
  };
4674
- export type Query_RootExecutions_VisibilityArgs = {
4675
- distinct_on?: InputMaybe<Array<Executions_Visibility_Select_Column>>;
4676
- limit?: InputMaybe<Scalars['Int']['input']>;
4677
- offset?: InputMaybe<Scalars['Int']['input']>;
4678
- order_by?: InputMaybe<Array<Executions_Visibility_Order_By>>;
4679
- where?: InputMaybe<Executions_Visibility_Bool_Exp>;
4680
- };
4681
4436
  export type Query_RootFx_RatesArgs = {
4682
4437
  distinct_on?: InputMaybe<Array<Fx_Rates_Select_Column>>;
4683
4438
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -4688,11 +4443,9 @@ export type Query_RootFx_RatesArgs = {
4688
4443
  export type Query_RootFx_Rates_By_PkArgs = {
4689
4444
  currency: Scalars['String']['input'];
4690
4445
  };
4691
- export type Query_RootGet_Crypto_Payment_StatusArgs = {
4692
- payment_id: Scalars['uuid']['input'];
4693
- };
4694
- export type Query_RootGet_Sbp_Payment_StatusArgs = {
4446
+ export type Query_RootGet_Payment_StatusArgs = {
4695
4447
  payment_id: Scalars['uuid']['input'];
4448
+ provider: Scalars['String']['input'];
4696
4449
  };
4697
4450
  export type Query_RootLocalesArgs = {
4698
4451
  distinct_on?: InputMaybe<Array<Locales_Select_Column>>;
@@ -4777,6 +4530,10 @@ export type Query_RootPayment_ProvidersArgs = {
4777
4530
  export type Query_RootPayment_Providers_By_PkArgs = {
4778
4531
  slug: Scalars['String']['input'];
4779
4532
  };
4533
+ export type Query_RootPaymentsArgs = {
4534
+ limit?: InputMaybe<Scalars['Int']['input']>;
4535
+ offset?: InputMaybe<Scalars['Int']['input']>;
4536
+ };
4780
4537
  export type Query_RootPersonal_Access_TokensArgs = {
4781
4538
  distinct_on?: InputMaybe<Array<Personal_Access_Tokens_Select_Column>>;
4782
4539
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -4950,13 +4707,6 @@ export type Query_RootUser_Subscription_CreditsArgs = {
4950
4707
  export type Query_RootUser_Subscription_Credits_By_PkArgs = {
4951
4708
  user_id: Scalars['uuid']['input'];
4952
4709
  };
4953
- export type Query_RootUsersArgs = {
4954
- distinct_on?: InputMaybe<Array<Users_Select_Column>>;
4955
- limit?: InputMaybe<Scalars['Int']['input']>;
4956
- offset?: InputMaybe<Scalars['Int']['input']>;
4957
- order_by?: InputMaybe<Array<Users_Order_By>>;
4958
- where?: InputMaybe<Users_Bool_Exp>;
4959
- };
4960
4710
  export type Referral_Entry = {
4961
4711
  __typename?: 'referral_entry';
4962
4712
  commission_cents: Scalars['Int']['output'];
@@ -5010,17 +4760,17 @@ export type Run_Pipeline_Output = {
5010
4760
  run_id: Scalars['String']['output'];
5011
4761
  workflow_id: Scalars['String']['output'];
5012
4762
  };
5013
- export type Sbp_Payment_Output = {
5014
- __typename?: 'sbp_payment_output';
5015
- amount: Scalars['String']['output'];
5016
- credits: Scalars['Float']['output'];
5017
- currency: Scalars['String']['output'];
5018
- detail?: Maybe<Scalars['String']['output']>;
5019
- expires_at: Scalars['String']['output'];
5020
- payment_id: Scalars['String']['output'];
5021
- payment_uri: Scalars['String']['output'];
5022
- status: Scalars['String']['output'];
5023
- success: Scalars['Boolean']['output'];
4763
+ /** Boolean expression to compare columns of type "smallint". All fields are combined with logical 'AND'. */
4764
+ export type Smallint_Comparison_Exp = {
4765
+ _eq?: InputMaybe<Scalars['smallint']['input']>;
4766
+ _gt?: InputMaybe<Scalars['smallint']['input']>;
4767
+ _gte?: InputMaybe<Scalars['smallint']['input']>;
4768
+ _in?: InputMaybe<Array<Scalars['smallint']['input']>>;
4769
+ _is_null?: InputMaybe<Scalars['Boolean']['input']>;
4770
+ _lt?: InputMaybe<Scalars['smallint']['input']>;
4771
+ _lte?: InputMaybe<Scalars['smallint']['input']>;
4772
+ _neq?: InputMaybe<Scalars['smallint']['input']>;
4773
+ _nin?: InputMaybe<Array<Scalars['smallint']['input']>>;
5024
4774
  };
5025
4775
  export type Subscription_Plan_Change_Output = {
5026
4776
  __typename?: 'subscription_plan_change_output';
@@ -5163,22 +4913,12 @@ export type Subscription_Root = {
5163
4913
  crypto_payment_currencies_by_pk?: Maybe<Crypto_Payment_Currencies>;
5164
4914
  /** fetch data from the table in a streaming manner: "crypto_payment_currencies" */
5165
4915
  crypto_payment_currencies_stream: Array<Crypto_Payment_Currencies>;
5166
- /** fetch data from the table: "crypto_payments" */
5167
- crypto_payments: Array<Crypto_Payments>;
5168
- /** fetch data from the table: "crypto_payments" using primary key columns */
5169
- crypto_payments_by_pk?: Maybe<Crypto_Payments>;
5170
- /** fetch data from the table in a streaming manner: "crypto_payments" */
5171
- crypto_payments_stream: Array<Crypto_Payments>;
5172
4916
  /** fetch data from the table: "dispatch_blocks" */
5173
4917
  dispatch_blocks: Array<Dispatch_Blocks>;
5174
4918
  /** fetch data from the table: "dispatch_blocks" using primary key columns */
5175
4919
  dispatch_blocks_by_pk?: Maybe<Dispatch_Blocks>;
5176
4920
  /** fetch data from the table in a streaming manner: "dispatch_blocks" */
5177
4921
  dispatch_blocks_stream: Array<Dispatch_Blocks>;
5178
- /** fetch data from the table: "executions_visibility" */
5179
- executions_visibility: Array<Executions_Visibility>;
5180
- /** fetch data from the table in a streaming manner: "executions_visibility" */
5181
- executions_visibility_stream: Array<Executions_Visibility>;
5182
4922
  /** fetch data from the table: "fx_rates" */
5183
4923
  fx_rates: Array<Fx_Rates>;
5184
4924
  /** fetch data from the table: "fx_rates" using primary key columns */
@@ -5327,8 +5067,6 @@ export type Subscription_Root = {
5327
5067
  user_subscription_credits_stream: Array<User_Subscription_Credits>;
5328
5068
  /** fetch data from the table: "users" */
5329
5069
  users: Array<Users>;
5330
- /** fetch data from the table in a streaming manner: "users" */
5331
- users_stream: Array<Users>;
5332
5070
  };
5333
5071
  export type Subscription_RootAffiliate_CodesArgs = {
5334
5072
  distinct_on?: InputMaybe<Array<Affiliate_Codes_Select_Column>>;
@@ -5473,21 +5211,6 @@ export type Subscription_RootCrypto_Payment_Currencies_StreamArgs = {
5473
5211
  cursor: Array<InputMaybe<Crypto_Payment_Currencies_Stream_Cursor_Input>>;
5474
5212
  where?: InputMaybe<Crypto_Payment_Currencies_Bool_Exp>;
5475
5213
  };
5476
- export type Subscription_RootCrypto_PaymentsArgs = {
5477
- distinct_on?: InputMaybe<Array<Crypto_Payments_Select_Column>>;
5478
- limit?: InputMaybe<Scalars['Int']['input']>;
5479
- offset?: InputMaybe<Scalars['Int']['input']>;
5480
- order_by?: InputMaybe<Array<Crypto_Payments_Order_By>>;
5481
- where?: InputMaybe<Crypto_Payments_Bool_Exp>;
5482
- };
5483
- export type Subscription_RootCrypto_Payments_By_PkArgs = {
5484
- id: Scalars['uuid']['input'];
5485
- };
5486
- export type Subscription_RootCrypto_Payments_StreamArgs = {
5487
- batch_size: Scalars['Int']['input'];
5488
- cursor: Array<InputMaybe<Crypto_Payments_Stream_Cursor_Input>>;
5489
- where?: InputMaybe<Crypto_Payments_Bool_Exp>;
5490
- };
5491
5214
  export type Subscription_RootDispatch_BlocksArgs = {
5492
5215
  distinct_on?: InputMaybe<Array<Dispatch_Blocks_Select_Column>>;
5493
5216
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -5503,18 +5226,6 @@ export type Subscription_RootDispatch_Blocks_StreamArgs = {
5503
5226
  cursor: Array<InputMaybe<Dispatch_Blocks_Stream_Cursor_Input>>;
5504
5227
  where?: InputMaybe<Dispatch_Blocks_Bool_Exp>;
5505
5228
  };
5506
- export type Subscription_RootExecutions_VisibilityArgs = {
5507
- distinct_on?: InputMaybe<Array<Executions_Visibility_Select_Column>>;
5508
- limit?: InputMaybe<Scalars['Int']['input']>;
5509
- offset?: InputMaybe<Scalars['Int']['input']>;
5510
- order_by?: InputMaybe<Array<Executions_Visibility_Order_By>>;
5511
- where?: InputMaybe<Executions_Visibility_Bool_Exp>;
5512
- };
5513
- export type Subscription_RootExecutions_Visibility_StreamArgs = {
5514
- batch_size: Scalars['Int']['input'];
5515
- cursor: Array<InputMaybe<Executions_Visibility_Stream_Cursor_Input>>;
5516
- where?: InputMaybe<Executions_Visibility_Bool_Exp>;
5517
- };
5518
5229
  export type Subscription_RootFx_RatesArgs = {
5519
5230
  distinct_on?: InputMaybe<Array<Fx_Rates_Select_Column>>;
5520
5231
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -5908,11 +5619,6 @@ export type Subscription_RootUsersArgs = {
5908
5619
  order_by?: InputMaybe<Array<Users_Order_By>>;
5909
5620
  where?: InputMaybe<Users_Bool_Exp>;
5910
5621
  };
5911
- export type Subscription_RootUsers_StreamArgs = {
5912
- batch_size: Scalars['Int']['input'];
5913
- cursor: Array<InputMaybe<Users_Stream_Cursor_Input>>;
5914
- where?: InputMaybe<Users_Bool_Exp>;
5915
- };
5916
5622
  /** columns and relationships of "subscriptions" */
5917
5623
  export type Subscriptions = {
5918
5624
  __typename?: 'subscriptions';
@@ -6035,18 +5741,6 @@ export type Subscriptions_Stream_Cursor_Value_Input = {
6035
5741
  plan_version_id?: InputMaybe<Scalars['uuid']['input']>;
6036
5742
  status?: InputMaybe<Scalars['String']['input']>;
6037
5743
  };
6038
- /** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */
6039
- export type Timestamp_Comparison_Exp = {
6040
- _eq?: InputMaybe<Scalars['timestamp']['input']>;
6041
- _gt?: InputMaybe<Scalars['timestamp']['input']>;
6042
- _gte?: InputMaybe<Scalars['timestamp']['input']>;
6043
- _in?: InputMaybe<Array<Scalars['timestamp']['input']>>;
6044
- _is_null?: InputMaybe<Scalars['Boolean']['input']>;
6045
- _lt?: InputMaybe<Scalars['timestamp']['input']>;
6046
- _lte?: InputMaybe<Scalars['timestamp']['input']>;
6047
- _neq?: InputMaybe<Scalars['timestamp']['input']>;
6048
- _nin?: InputMaybe<Array<Scalars['timestamp']['input']>>;
6049
- };
6050
5744
  /** Boolean expression to compare columns of type "timestamptz". All fields are combined with logical 'AND'. */
6051
5745
  export type Timestamptz_Comparison_Exp = {
6052
5746
  _eq?: InputMaybe<Scalars['timestamptz']['input']>;
@@ -6186,17 +5880,6 @@ export declare enum Users_Select_Column {
6186
5880
  /** column name */
6187
5881
  UpdatedAt = "updated_at"
6188
5882
  }
6189
- /** Streaming cursor of the table "users" */
6190
- export type Users_Stream_Cursor_Input = {
6191
- /** Stream column input with initial value */
6192
- initial_value: Users_Stream_Cursor_Value_Input;
6193
- /** cursor ordering */
6194
- ordering?: InputMaybe<Cursor_Ordering>;
6195
- };
6196
- /** Initial value of the column from where the streaming should start */
6197
- export type Users_Stream_Cursor_Value_Input = {
6198
- updated_at?: InputMaybe<Scalars['timestamptz']['input']>;
6199
- };
6200
5883
  /** Boolean expression to compare columns of type "uuid". All fields are combined with logical 'AND'. */
6201
5884
  export type Uuid_Comparison_Exp = {
6202
5885
  _eq?: InputMaybe<Scalars['uuid']['input']>;
@@ -6704,25 +6387,26 @@ export type GetCreditHistoryQuery = {
6704
6387
  reservation_mc?: number | null;
6705
6388
  }>;
6706
6389
  };
6707
- export type CreateCryptoPaymentMutationVariables = Exact<{
6390
+ export type CreatePaymentMutationVariables = Exact<{
6708
6391
  provider: Scalars['String']['input'];
6709
6392
  attempt_id: Scalars['uuid']['input'];
6710
6393
  credit_pack_slug?: InputMaybe<Scalars['String']['input']>;
6711
6394
  plan_slug?: InputMaybe<Scalars['String']['input']>;
6712
- currency_id: Scalars['String']['input'];
6395
+ currency_id?: InputMaybe<Scalars['String']['input']>;
6713
6396
  country?: InputMaybe<Scalars['String']['input']>;
6397
+ recurring_consent?: InputMaybe<Scalars['Boolean']['input']>;
6714
6398
  }>;
6715
- export type CreateCryptoPaymentMutation = {
6399
+ export type CreatePaymentMutation = {
6716
6400
  __typename?: 'mutation_root';
6717
- create_crypto_payment: {
6718
- __typename?: 'create_crypto_payment_output';
6401
+ create_payment: {
6402
+ __typename?: 'payment_output';
6719
6403
  success: boolean;
6720
6404
  payment_id: string;
6721
- deposit_address: string;
6722
- expected_usdt: number;
6405
+ deposit_address?: string | null;
6406
+ expected_usdt?: number | null;
6723
6407
  credits: number;
6724
- network: string;
6725
- currency_id: string;
6408
+ network?: string | null;
6409
+ currency_id?: string | null;
6726
6410
  expires_at: string;
6727
6411
  provider: string;
6728
6412
  status: string;
@@ -6733,11 +6417,13 @@ export type CreateCryptoPaymentMutation = {
6733
6417
  qr_code_data_url?: string | null;
6734
6418
  top_up_payment_uri?: string | null;
6735
6419
  top_up_qr_code_data_url?: string | null;
6736
- required_confirmations: number;
6737
- confirmations: number;
6420
+ required_confirmations?: number | null;
6421
+ confirmations?: number | null;
6738
6422
  amount_paid_usdt?: number | null;
6739
6423
  granted_at?: string | null;
6740
6424
  tx_hash?: string | null;
6425
+ currency?: string | null;
6426
+ detail?: string | null;
6741
6427
  };
6742
6428
  };
6743
6429
  export type GetUserSubscriptionCreditsQueryVariables = Exact<{
@@ -6768,23 +6454,24 @@ export type GetCryptoPaymentCurrenciesQuery = {
6768
6454
  min_usdt: any;
6769
6455
  }>;
6770
6456
  };
6771
- export type GetCryptoPaymentQueryVariables = Exact<{
6457
+ export type GetPaymentQueryVariables = Exact<{
6458
+ provider: Scalars['String']['input'];
6772
6459
  id: Scalars['uuid']['input'];
6773
6460
  }>;
6774
- export type GetCryptoPaymentQuery = {
6461
+ export type GetPaymentQuery = {
6775
6462
  __typename?: 'query_root';
6776
- get_crypto_payment_status: {
6777
- __typename?: 'crypto_payment_status_output';
6463
+ get_payment_status: {
6464
+ __typename?: 'payment_output';
6778
6465
  success: boolean;
6779
6466
  payment_id: string;
6780
6467
  provider: string;
6781
6468
  status: string;
6782
6469
  credits: number;
6783
- expected_usdt: number;
6470
+ expected_usdt?: number | null;
6784
6471
  amount_paid_usdt?: number | null;
6785
- deposit_address: string;
6786
- currency_id: string;
6787
- network: string;
6472
+ deposit_address?: string | null;
6473
+ currency_id?: string | null;
6474
+ network?: string | null;
6788
6475
  expires_at: string;
6789
6476
  granted_at?: string | null;
6790
6477
  tx_hash?: string | null;
@@ -6795,10 +6482,32 @@ export type GetCryptoPaymentQuery = {
6795
6482
  qr_code_data_url?: string | null;
6796
6483
  top_up_payment_uri?: string | null;
6797
6484
  top_up_qr_code_data_url?: string | null;
6798
- required_confirmations: number;
6799
- confirmations: number;
6485
+ required_confirmations?: number | null;
6486
+ confirmations?: number | null;
6487
+ currency?: string | null;
6488
+ detail?: string | null;
6800
6489
  };
6801
6490
  };
6491
+ export type GetPaymentsQueryVariables = Exact<{
6492
+ limit?: InputMaybe<Scalars['Int']['input']>;
6493
+ offset?: InputMaybe<Scalars['Int']['input']>;
6494
+ }>;
6495
+ export type GetPaymentsQuery = {
6496
+ __typename?: 'query_root';
6497
+ payments: Array<{
6498
+ __typename?: 'payment_output';
6499
+ payment_id: string;
6500
+ provider: string;
6501
+ kind?: string | null;
6502
+ status: string;
6503
+ credits: number;
6504
+ amount: string;
6505
+ currency?: string | null;
6506
+ expires_at: string;
6507
+ granted_at?: string | null;
6508
+ created_at?: string | null;
6509
+ }>;
6510
+ };
6802
6511
  export type ModelsQueryVariables = Exact<{
6803
6512
  [key: string]: never;
6804
6513
  }>;
@@ -6813,7 +6522,11 @@ export type ModelsQuery = {
6813
6522
  aliases: Array<string>;
6814
6523
  description: string;
6815
6524
  long_description?: string | null;
6525
+ icon_url?: string | null;
6526
+ poster_url?: string | null;
6527
+ max_input_images?: number | null;
6816
6528
  featured: boolean;
6529
+ quality_score?: any | null;
6817
6530
  sort_order: number;
6818
6531
  provider_info: {
6819
6532
  __typename?: 'providers';
@@ -7498,59 +7211,6 @@ export type CancelSubscriptionPlanChangeMutation = {
7498
7211
  cancelled: boolean;
7499
7212
  };
7500
7213
  };
7501
- export type CreateCheckoutSessionMutationVariables = Exact<{
7502
- whop_plan_id: Scalars['String']['input'];
7503
- affiliate_code?: InputMaybe<Scalars['String']['input']>;
7504
- }>;
7505
- export type CreateCheckoutSessionMutation = {
7506
- __typename?: 'mutation_root';
7507
- create_checkout_session: {
7508
- __typename?: 'create_checkout_session_output';
7509
- success: boolean;
7510
- url: string;
7511
- };
7512
- };
7513
- export type CreateSbpPaymentMutationVariables = Exact<{
7514
- provider: Scalars['String']['input'];
7515
- attempt_id: Scalars['uuid']['input'];
7516
- credit_pack_slug?: InputMaybe<Scalars['String']['input']>;
7517
- plan_slug?: InputMaybe<Scalars['String']['input']>;
7518
- country?: InputMaybe<Scalars['String']['input']>;
7519
- recurring_consent?: InputMaybe<Scalars['Boolean']['input']>;
7520
- }>;
7521
- export type CreateSbpPaymentMutation = {
7522
- __typename?: 'mutation_root';
7523
- create_sbp_payment: {
7524
- __typename?: 'sbp_payment_output';
7525
- success: boolean;
7526
- payment_id: string;
7527
- status: string;
7528
- payment_uri: string;
7529
- amount: string;
7530
- currency: string;
7531
- credits: number;
7532
- expires_at: string;
7533
- detail?: string | null;
7534
- };
7535
- };
7536
- export type GetSbpPaymentQueryVariables = Exact<{
7537
- id: Scalars['uuid']['input'];
7538
- }>;
7539
- export type GetSbpPaymentQuery = {
7540
- __typename?: 'query_root';
7541
- get_sbp_payment_status: {
7542
- __typename?: 'sbp_payment_output';
7543
- success: boolean;
7544
- payment_id: string;
7545
- status: string;
7546
- payment_uri: string;
7547
- amount: string;
7548
- currency: string;
7549
- credits: number;
7550
- expires_at: string;
7551
- detail?: string | null;
7552
- };
7553
- };
7554
7214
  export type WatchPipelineRunSubscriptionVariables = Exact<{
7555
7215
  run_id: Scalars['uuid']['input'];
7556
7216
  }>;
@@ -7719,10 +7379,11 @@ export declare const RequestPasswordResetDocument: DocumentNode;
7719
7379
  export declare const ResetPasswordDocument: DocumentNode;
7720
7380
  export declare const GetCreditBalanceDocument: DocumentNode;
7721
7381
  export declare const GetCreditHistoryDocument: DocumentNode;
7722
- export declare const CreateCryptoPaymentDocument: DocumentNode;
7382
+ export declare const CreatePaymentDocument: DocumentNode;
7723
7383
  export declare const GetUserSubscriptionCreditsDocument: DocumentNode;
7724
7384
  export declare const GetCryptoPaymentCurrenciesDocument: DocumentNode;
7725
- export declare const GetCryptoPaymentDocument: DocumentNode;
7385
+ export declare const GetPaymentDocument: DocumentNode;
7386
+ export declare const GetPaymentsDocument: DocumentNode;
7726
7387
  export declare const ModelsDocument: DocumentNode;
7727
7388
  export declare const GetNotificationsDocument: DocumentNode;
7728
7389
  export declare const MarkNotificationReadDocument: DocumentNode;
@@ -7750,9 +7411,6 @@ export declare const GetSubscriptionDocument: DocumentNode;
7750
7411
  export declare const GetPendingSubscriptionPlanChangeDocument: DocumentNode;
7751
7412
  export declare const ScheduleSubscriptionPlanChangeDocument: DocumentNode;
7752
7413
  export declare const CancelSubscriptionPlanChangeDocument: DocumentNode;
7753
- export declare const CreateCheckoutSessionDocument: DocumentNode;
7754
- export declare const CreateSbpPaymentDocument: DocumentNode;
7755
- export declare const GetSbpPaymentDocument: DocumentNode;
7756
7414
  export declare const WatchPipelineRunDocument: DocumentNode;
7757
7415
  export declare const WatchActivePipelineRunsDocument: DocumentNode;
7758
7416
  export declare const WatchNotificationsDocument: DocumentNode;
@@ -7798,10 +7456,11 @@ export declare function getSdk<C>(requester: Requester<C>): {
7798
7456
  ResetPassword(variables: ResetPasswordMutationVariables, options?: C): Promise<ResetPasswordMutation>;
7799
7457
  GetCreditBalance(variables?: GetCreditBalanceQueryVariables, options?: C): Promise<GetCreditBalanceQuery>;
7800
7458
  GetCreditHistory(variables?: GetCreditHistoryQueryVariables, options?: C): Promise<GetCreditHistoryQuery>;
7801
- CreateCryptoPayment(variables: CreateCryptoPaymentMutationVariables, options?: C): Promise<CreateCryptoPaymentMutation>;
7459
+ CreatePayment(variables: CreatePaymentMutationVariables, options?: C): Promise<CreatePaymentMutation>;
7802
7460
  GetUserSubscriptionCredits(variables?: GetUserSubscriptionCreditsQueryVariables, options?: C): Promise<GetUserSubscriptionCreditsQuery>;
7803
7461
  GetCryptoPaymentCurrencies(variables: GetCryptoPaymentCurrenciesQueryVariables, options?: C): Promise<GetCryptoPaymentCurrenciesQuery>;
7804
- GetCryptoPayment(variables: GetCryptoPaymentQueryVariables, options?: C): Promise<GetCryptoPaymentQuery>;
7462
+ GetPayment(variables: GetPaymentQueryVariables, options?: C): Promise<GetPaymentQuery>;
7463
+ GetPayments(variables?: GetPaymentsQueryVariables, options?: C): Promise<GetPaymentsQuery>;
7805
7464
  Models(variables?: ModelsQueryVariables, options?: C): Promise<ModelsQuery>;
7806
7465
  GetNotifications(variables: GetNotificationsQueryVariables, options?: C): Promise<GetNotificationsQuery>;
7807
7466
  MarkNotificationRead(variables: MarkNotificationReadMutationVariables, options?: C): Promise<MarkNotificationReadMutation>;
@@ -7829,9 +7488,6 @@ export declare function getSdk<C>(requester: Requester<C>): {
7829
7488
  GetPendingSubscriptionPlanChange(variables?: GetPendingSubscriptionPlanChangeQueryVariables, options?: C): Promise<GetPendingSubscriptionPlanChangeQuery>;
7830
7489
  ScheduleSubscriptionPlanChange(variables: ScheduleSubscriptionPlanChangeMutationVariables, options?: C): Promise<ScheduleSubscriptionPlanChangeMutation>;
7831
7490
  CancelSubscriptionPlanChange(variables?: CancelSubscriptionPlanChangeMutationVariables, options?: C): Promise<CancelSubscriptionPlanChangeMutation>;
7832
- CreateCheckoutSession(variables: CreateCheckoutSessionMutationVariables, options?: C): Promise<CreateCheckoutSessionMutation>;
7833
- CreateSBPPayment(variables: CreateSbpPaymentMutationVariables, options?: C): Promise<CreateSbpPaymentMutation>;
7834
- GetSBPPayment(variables: GetSbpPaymentQueryVariables, options?: C): Promise<GetSbpPaymentQuery>;
7835
7491
  WatchPipelineRun(variables: WatchPipelineRunSubscriptionVariables, options?: C): AsyncIterable<WatchPipelineRunSubscription>;
7836
7492
  WatchActivePipelineRuns(variables?: WatchActivePipelineRunsSubscriptionVariables, options?: C): AsyncIterable<WatchActivePipelineRunsSubscription>;
7837
7493
  WatchNotifications(variables: WatchNotificationsSubscriptionVariables, options?: C): AsyncIterable<WatchNotificationsSubscription>;
@@ -151,38 +151,6 @@ export var Crypto_Payment_Currencies_Select_Column;
151
151
  /** column name */
152
152
  Crypto_Payment_Currencies_Select_Column["SortOrder"] = "sort_order";
153
153
  })(Crypto_Payment_Currencies_Select_Column || (Crypto_Payment_Currencies_Select_Column = {}));
154
- /** select columns of table "crypto_payments" */
155
- export var Crypto_Payments_Select_Column;
156
- (function (Crypto_Payments_Select_Column) {
157
- /** column name */
158
- Crypto_Payments_Select_Column["AmountPaidUsdt"] = "amount_paid_usdt";
159
- /** column name */
160
- Crypto_Payments_Select_Column["CreatedAt"] = "created_at";
161
- /** column name */
162
- Crypto_Payments_Select_Column["Credits"] = "credits";
163
- /** column name */
164
- Crypto_Payments_Select_Column["CurrencyId"] = "currency_id";
165
- /** column name */
166
- Crypto_Payments_Select_Column["DepositAddress"] = "deposit_address";
167
- /** column name */
168
- Crypto_Payments_Select_Column["ExpectedUsdt"] = "expected_usdt";
169
- /** column name */
170
- Crypto_Payments_Select_Column["ExpiresAt"] = "expires_at";
171
- /** column name */
172
- Crypto_Payments_Select_Column["GrantedAt"] = "granted_at";
173
- /** column name */
174
- Crypto_Payments_Select_Column["Id"] = "id";
175
- /** column name */
176
- Crypto_Payments_Select_Column["Kind"] = "kind";
177
- /** column name */
178
- Crypto_Payments_Select_Column["Network"] = "network";
179
- /** column name */
180
- Crypto_Payments_Select_Column["Provider"] = "provider";
181
- /** column name */
182
- Crypto_Payments_Select_Column["Status"] = "status";
183
- /** column name */
184
- Crypto_Payments_Select_Column["TxHash"] = "tx_hash";
185
- })(Crypto_Payments_Select_Column || (Crypto_Payments_Select_Column = {}));
186
154
  /** ordering argument of a cursor */
187
155
  export var Cursor_Ordering;
188
156
  (function (Cursor_Ordering) {
@@ -205,24 +173,6 @@ export var Dispatch_Blocks_Select_Column;
205
173
  /** column name */
206
174
  Dispatch_Blocks_Select_Column["UserId"] = "user_id";
207
175
  })(Dispatch_Blocks_Select_Column || (Dispatch_Blocks_Select_Column = {}));
208
- /** select columns of table "executions_visibility" */
209
- export var Executions_Visibility_Select_Column;
210
- (function (Executions_Visibility_Select_Column) {
211
- /** column name */
212
- Executions_Visibility_Select_Column["CloseTime"] = "close_time";
213
- /** column name */
214
- Executions_Visibility_Select_Column["RunId"] = "run_id";
215
- /** column name */
216
- Executions_Visibility_Select_Column["StartTime"] = "start_time";
217
- /** column name */
218
- Executions_Visibility_Select_Column["Status"] = "status";
219
- /** column name */
220
- Executions_Visibility_Select_Column["TaskQueue"] = "task_queue";
221
- /** column name */
222
- Executions_Visibility_Select_Column["WorkflowId"] = "workflow_id";
223
- /** column name */
224
- Executions_Visibility_Select_Column["WorkflowTypeName"] = "workflow_type_name";
225
- })(Executions_Visibility_Select_Column || (Executions_Visibility_Select_Column = {}));
226
176
  /** select columns of table "fx_rates" */
227
177
  export var Fx_Rates_Select_Column;
228
178
  (function (Fx_Rates_Select_Column) {
@@ -295,16 +245,24 @@ export var Models_Select_Column;
295
245
  /** column name */
296
246
  Models_Select_Column["Featured"] = "featured";
297
247
  /** column name */
248
+ Models_Select_Column["IconUrl"] = "icon_url";
249
+ /** column name */
298
250
  Models_Select_Column["IsActive"] = "is_active";
299
251
  /** column name */
300
252
  Models_Select_Column["Label"] = "label";
301
253
  /** column name */
302
254
  Models_Select_Column["LongDescription"] = "long_description";
303
255
  /** column name */
256
+ Models_Select_Column["MaxInputImages"] = "max_input_images";
257
+ /** column name */
258
+ Models_Select_Column["PosterUrl"] = "poster_url";
259
+ /** column name */
304
260
  Models_Select_Column["Provider"] = "provider";
305
261
  /** column name */
306
262
  Models_Select_Column["PublicName"] = "public_name";
307
263
  /** column name */
264
+ Models_Select_Column["QualityScore"] = "quality_score";
265
+ /** column name */
308
266
  Models_Select_Column["Slug"] = "slug";
309
267
  /** column name */
310
268
  Models_Select_Column["SortOrder"] = "sort_order";
@@ -1084,15 +1042,16 @@ export const GetCreditHistoryDocument = gql `
1084
1042
  }
1085
1043
  }
1086
1044
  `;
1087
- export const CreateCryptoPaymentDocument = gql `
1088
- mutation CreateCryptoPayment($provider: String!, $attempt_id: uuid!, $credit_pack_slug: String, $plan_slug: String, $currency_id: String!, $country: String) {
1089
- create_crypto_payment(
1045
+ export const CreatePaymentDocument = gql `
1046
+ mutation CreatePayment($provider: String!, $attempt_id: uuid!, $credit_pack_slug: String, $plan_slug: String, $currency_id: String, $country: String, $recurring_consent: Boolean) {
1047
+ create_payment(
1090
1048
  provider: $provider
1091
1049
  attempt_id: $attempt_id
1092
1050
  credit_pack_slug: $credit_pack_slug
1093
1051
  plan_slug: $plan_slug
1094
1052
  currency_id: $currency_id
1095
1053
  country: $country
1054
+ recurring_consent: $recurring_consent
1096
1055
  ) {
1097
1056
  success
1098
1057
  payment_id
@@ -1116,6 +1075,8 @@ export const CreateCryptoPaymentDocument = gql `
1116
1075
  amount_paid_usdt
1117
1076
  granted_at
1118
1077
  tx_hash
1078
+ currency
1079
+ detail
1119
1080
  }
1120
1081
  }
1121
1082
  `;
@@ -1144,9 +1105,9 @@ export const GetCryptoPaymentCurrenciesDocument = gql `
1144
1105
  }
1145
1106
  }
1146
1107
  `;
1147
- export const GetCryptoPaymentDocument = gql `
1148
- query GetCryptoPayment($id: uuid!) {
1149
- get_crypto_payment_status(payment_id: $id) {
1108
+ export const GetPaymentDocument = gql `
1109
+ query GetPayment($provider: String!, $id: uuid!) {
1110
+ get_payment_status(provider: $provider, payment_id: $id) {
1150
1111
  success
1151
1112
  payment_id
1152
1113
  provider
@@ -1169,6 +1130,24 @@ export const GetCryptoPaymentDocument = gql `
1169
1130
  top_up_qr_code_data_url
1170
1131
  required_confirmations
1171
1132
  confirmations
1133
+ currency
1134
+ detail
1135
+ }
1136
+ }
1137
+ `;
1138
+ export const GetPaymentsDocument = gql `
1139
+ query GetPayments($limit: Int = 50, $offset: Int = 0) {
1140
+ payments(limit: $limit, offset: $offset) {
1141
+ payment_id
1142
+ provider
1143
+ kind
1144
+ status
1145
+ credits
1146
+ amount
1147
+ currency
1148
+ expires_at
1149
+ granted_at
1150
+ created_at
1172
1151
  }
1173
1152
  }
1174
1153
  `;
@@ -1185,7 +1164,11 @@ export const ModelsDocument = gql `
1185
1164
  }
1186
1165
  description
1187
1166
  long_description
1167
+ icon_url
1168
+ poster_url
1169
+ max_input_images
1188
1170
  featured
1171
+ quality_score
1189
1172
  sort_order
1190
1173
  capabilities {
1191
1174
  capability_slug
@@ -1769,54 +1752,6 @@ export const CancelSubscriptionPlanChangeDocument = gql `
1769
1752
  }
1770
1753
  }
1771
1754
  `;
1772
- export const CreateCheckoutSessionDocument = gql `
1773
- mutation CreateCheckoutSession($whop_plan_id: String!, $affiliate_code: String) {
1774
- create_checkout_session(
1775
- whop_plan_id: $whop_plan_id
1776
- affiliate_code: $affiliate_code
1777
- ) {
1778
- success
1779
- url
1780
- }
1781
- }
1782
- `;
1783
- export const CreateSbpPaymentDocument = gql `
1784
- mutation CreateSBPPayment($provider: String!, $attempt_id: uuid!, $credit_pack_slug: String, $plan_slug: String, $country: String, $recurring_consent: Boolean) {
1785
- create_sbp_payment(
1786
- provider: $provider
1787
- attempt_id: $attempt_id
1788
- credit_pack_slug: $credit_pack_slug
1789
- plan_slug: $plan_slug
1790
- country: $country
1791
- recurring_consent: $recurring_consent
1792
- ) {
1793
- success
1794
- payment_id
1795
- status
1796
- payment_uri
1797
- amount
1798
- currency
1799
- credits
1800
- expires_at
1801
- detail
1802
- }
1803
- }
1804
- `;
1805
- export const GetSbpPaymentDocument = gql `
1806
- query GetSBPPayment($id: uuid!) {
1807
- get_sbp_payment_status(payment_id: $id) {
1808
- success
1809
- payment_id
1810
- status
1811
- payment_uri
1812
- amount
1813
- currency
1814
- credits
1815
- expires_at
1816
- detail
1817
- }
1818
- }
1819
- `;
1820
1755
  export const WatchPipelineRunDocument = gql `
1821
1756
  subscription WatchPipelineRun($run_id: uuid!) {
1822
1757
  pipeline_runs_by_pk(id: $run_id) {
@@ -2034,8 +1969,8 @@ export function getSdk(requester) {
2034
1969
  GetCreditHistory(variables, options) {
2035
1970
  return requester(GetCreditHistoryDocument, variables, options);
2036
1971
  },
2037
- CreateCryptoPayment(variables, options) {
2038
- return requester(CreateCryptoPaymentDocument, variables, options);
1972
+ CreatePayment(variables, options) {
1973
+ return requester(CreatePaymentDocument, variables, options);
2039
1974
  },
2040
1975
  GetUserSubscriptionCredits(variables, options) {
2041
1976
  return requester(GetUserSubscriptionCreditsDocument, variables, options);
@@ -2043,8 +1978,11 @@ export function getSdk(requester) {
2043
1978
  GetCryptoPaymentCurrencies(variables, options) {
2044
1979
  return requester(GetCryptoPaymentCurrenciesDocument, variables, options);
2045
1980
  },
2046
- GetCryptoPayment(variables, options) {
2047
- return requester(GetCryptoPaymentDocument, variables, options);
1981
+ GetPayment(variables, options) {
1982
+ return requester(GetPaymentDocument, variables, options);
1983
+ },
1984
+ GetPayments(variables, options) {
1985
+ return requester(GetPaymentsDocument, variables, options);
2048
1986
  },
2049
1987
  Models(variables, options) {
2050
1988
  return requester(ModelsDocument, variables, options);
@@ -2127,15 +2065,6 @@ export function getSdk(requester) {
2127
2065
  CancelSubscriptionPlanChange(variables, options) {
2128
2066
  return requester(CancelSubscriptionPlanChangeDocument, variables, options);
2129
2067
  },
2130
- CreateCheckoutSession(variables, options) {
2131
- return requester(CreateCheckoutSessionDocument, variables, options);
2132
- },
2133
- CreateSBPPayment(variables, options) {
2134
- return requester(CreateSbpPaymentDocument, variables, options);
2135
- },
2136
- GetSBPPayment(variables, options) {
2137
- return requester(GetSbpPaymentDocument, variables, options);
2138
- },
2139
2068
  WatchPipelineRun(variables, options) {
2140
2069
  return requester(WatchPipelineRunDocument, variables, options);
2141
2070
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipe2-ai/sdk",
3
- "version": "2026.08.0",
3
+ "version": "2026.09.0",
4
4
  "description": "Typed TypeScript client for the Pipe2.ai API — run AI media pipelines (video generation, image generation, text-to-speech, video reframing) and track their results.",
5
5
  "homepage": "https://pipe2.ai",
6
6
  "repository": {