@pipe2-ai/sdk 2026.9.0 → 2026.9.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.
@@ -334,6 +334,134 @@ export type Affiliates_Stream_Cursor_Value_Input = {
334
334
  is_active?: InputMaybe<Scalars['Boolean']['input']>;
335
335
  whop_affiliate_id?: InputMaybe<Scalars['String']['input']>;
336
336
  };
337
+ /** columns and relationships of "asset_imports" */
338
+ export type Asset_Imports = {
339
+ __typename?: 'asset_imports';
340
+ /** An object relationship */
341
+ asset?: Maybe<Assets>;
342
+ asset_id?: Maybe<Scalars['uuid']['output']>;
343
+ bytes: Scalars['bigint']['output'];
344
+ code?: Maybe<Scalars['String']['output']>;
345
+ dismissed_at?: Maybe<Scalars['timestamptz']['output']>;
346
+ error?: Maybe<Scalars['String']['output']>;
347
+ finished_at?: Maybe<Scalars['timestamptz']['output']>;
348
+ id: Scalars['uuid']['output'];
349
+ phase: Scalars['String']['output'];
350
+ source_url: Scalars['String']['output'];
351
+ started_at: Scalars['timestamptz']['output'];
352
+ status: Scalars['String']['output'];
353
+ total_bytes: Scalars['bigint']['output'];
354
+ /** An object relationship */
355
+ user: Users;
356
+ };
357
+ /** Boolean expression to filter rows from the table "asset_imports". All fields are combined with a logical 'AND'. */
358
+ export type Asset_Imports_Bool_Exp = {
359
+ _and?: InputMaybe<Array<Asset_Imports_Bool_Exp>>;
360
+ _not?: InputMaybe<Asset_Imports_Bool_Exp>;
361
+ _or?: InputMaybe<Array<Asset_Imports_Bool_Exp>>;
362
+ asset?: InputMaybe<Assets_Bool_Exp>;
363
+ asset_id?: InputMaybe<Uuid_Comparison_Exp>;
364
+ bytes?: InputMaybe<Bigint_Comparison_Exp>;
365
+ code?: InputMaybe<String_Comparison_Exp>;
366
+ dismissed_at?: InputMaybe<Timestamptz_Comparison_Exp>;
367
+ error?: InputMaybe<String_Comparison_Exp>;
368
+ finished_at?: InputMaybe<Timestamptz_Comparison_Exp>;
369
+ id?: InputMaybe<Uuid_Comparison_Exp>;
370
+ phase?: InputMaybe<String_Comparison_Exp>;
371
+ source_url?: InputMaybe<String_Comparison_Exp>;
372
+ started_at?: InputMaybe<Timestamptz_Comparison_Exp>;
373
+ status?: InputMaybe<String_Comparison_Exp>;
374
+ total_bytes?: InputMaybe<Bigint_Comparison_Exp>;
375
+ user?: InputMaybe<Users_Bool_Exp>;
376
+ };
377
+ /** response of any mutation on the table "asset_imports" */
378
+ export type Asset_Imports_Mutation_Response = {
379
+ __typename?: 'asset_imports_mutation_response';
380
+ /** number of rows affected by the mutation */
381
+ affected_rows: Scalars['Int']['output'];
382
+ /** data from the rows affected by the mutation */
383
+ returning: Array<Asset_Imports>;
384
+ };
385
+ /** Ordering options when selecting data from "asset_imports". */
386
+ export type Asset_Imports_Order_By = {
387
+ asset?: InputMaybe<Assets_Order_By>;
388
+ asset_id?: InputMaybe<Order_By>;
389
+ bytes?: InputMaybe<Order_By>;
390
+ code?: InputMaybe<Order_By>;
391
+ dismissed_at?: InputMaybe<Order_By>;
392
+ error?: InputMaybe<Order_By>;
393
+ finished_at?: InputMaybe<Order_By>;
394
+ id?: InputMaybe<Order_By>;
395
+ phase?: InputMaybe<Order_By>;
396
+ source_url?: InputMaybe<Order_By>;
397
+ started_at?: InputMaybe<Order_By>;
398
+ status?: InputMaybe<Order_By>;
399
+ total_bytes?: InputMaybe<Order_By>;
400
+ user?: InputMaybe<Users_Order_By>;
401
+ };
402
+ /** primary key columns input for table: asset_imports */
403
+ export type Asset_Imports_Pk_Columns_Input = {
404
+ id: Scalars['uuid']['input'];
405
+ };
406
+ /** select columns of table "asset_imports" */
407
+ export declare enum Asset_Imports_Select_Column {
408
+ /** column name */
409
+ AssetId = "asset_id",
410
+ /** column name */
411
+ Bytes = "bytes",
412
+ /** column name */
413
+ Code = "code",
414
+ /** column name */
415
+ DismissedAt = "dismissed_at",
416
+ /** column name */
417
+ Error = "error",
418
+ /** column name */
419
+ FinishedAt = "finished_at",
420
+ /** column name */
421
+ Id = "id",
422
+ /** column name */
423
+ Phase = "phase",
424
+ /** column name */
425
+ SourceUrl = "source_url",
426
+ /** column name */
427
+ StartedAt = "started_at",
428
+ /** column name */
429
+ Status = "status",
430
+ /** column name */
431
+ TotalBytes = "total_bytes"
432
+ }
433
+ /** input type for updating data in table "asset_imports" */
434
+ export type Asset_Imports_Set_Input = {
435
+ dismissed_at?: InputMaybe<Scalars['timestamptz']['input']>;
436
+ };
437
+ /** Streaming cursor of the table "asset_imports" */
438
+ export type Asset_Imports_Stream_Cursor_Input = {
439
+ /** Stream column input with initial value */
440
+ initial_value: Asset_Imports_Stream_Cursor_Value_Input;
441
+ /** cursor ordering */
442
+ ordering?: InputMaybe<Cursor_Ordering>;
443
+ };
444
+ /** Initial value of the column from where the streaming should start */
445
+ export type Asset_Imports_Stream_Cursor_Value_Input = {
446
+ asset_id?: InputMaybe<Scalars['uuid']['input']>;
447
+ bytes?: InputMaybe<Scalars['bigint']['input']>;
448
+ code?: InputMaybe<Scalars['String']['input']>;
449
+ dismissed_at?: InputMaybe<Scalars['timestamptz']['input']>;
450
+ error?: InputMaybe<Scalars['String']['input']>;
451
+ finished_at?: InputMaybe<Scalars['timestamptz']['input']>;
452
+ id?: InputMaybe<Scalars['uuid']['input']>;
453
+ phase?: InputMaybe<Scalars['String']['input']>;
454
+ source_url?: InputMaybe<Scalars['String']['input']>;
455
+ started_at?: InputMaybe<Scalars['timestamptz']['input']>;
456
+ status?: InputMaybe<Scalars['String']['input']>;
457
+ total_bytes?: InputMaybe<Scalars['bigint']['input']>;
458
+ };
459
+ export type Asset_Imports_Updates = {
460
+ /** sets the columns of the filtered rows to the given values */
461
+ _set?: InputMaybe<Asset_Imports_Set_Input>;
462
+ /** filter the rows which have to be updated */
463
+ where: Asset_Imports_Bool_Exp;
464
+ };
337
465
  /** columns and relationships of "assets" */
338
466
  export type Assets = {
339
467
  __typename?: 'assets';
@@ -1436,6 +1564,11 @@ export type Get_My_Referrals_Output = {
1436
1564
  total_commission_cents: Scalars['Int']['output'];
1437
1565
  total_referrals: Scalars['Int']['output'];
1438
1566
  };
1567
+ export type Import_Media_Output = {
1568
+ __typename?: 'import_media_output';
1569
+ import_id: Scalars['String']['output'];
1570
+ status: Scalars['String']['output'];
1571
+ };
1439
1572
  export type Jsonb_Cast_Exp = {
1440
1573
  String?: InputMaybe<String_Comparison_Exp>;
1441
1574
  };
@@ -1894,6 +2027,8 @@ export type Mutation_Root = {
1894
2027
  add_affiliate_code: Add_Affiliate_Code_Output;
1895
2028
  /** Cancel a scheduled account deletion during the grace period. */
1896
2029
  cancel_account_deletion: Cancel_Account_Deletion_Output;
2030
+ /** Stop a running background import */
2031
+ cancel_media_import: Import_Media_Output;
1897
2032
  /** Cancel a running pipeline and refund credits */
1898
2033
  cancel_pipeline_run?: Maybe<Cancel_Pipeline_Run_Output>;
1899
2034
  /** Cancel your subscription at the end of the current billing period */
@@ -1928,6 +2063,8 @@ export type Mutation_Root = {
1928
2063
  ensure_affiliate: Ensure_Affiliate_Output;
1929
2064
  /** Exchange a one-time authentication handoff code */
1930
2065
  exchange_auth_handoff_code: Exchange_Auth_Handoff_Code_Output;
2066
+ /** Start a background import of a remote link */
2067
+ import_media_url: Import_Media_Output;
1931
2068
  /** Begin email verification */
1932
2069
  init_verification_flow: Auth_Flow;
1933
2070
  /** Sign in with email and password */
@@ -1962,6 +2099,12 @@ export type Mutation_Root = {
1962
2099
  update_affiliate_codes_by_pk?: Maybe<Affiliate_Codes>;
1963
2100
  /** update multiples rows of table: "affiliate_codes" */
1964
2101
  update_affiliate_codes_many?: Maybe<Array<Maybe<Affiliate_Codes_Mutation_Response>>>;
2102
+ /** update data of the table: "asset_imports" */
2103
+ update_asset_imports?: Maybe<Asset_Imports_Mutation_Response>;
2104
+ /** update single row of the table: "asset_imports" */
2105
+ update_asset_imports_by_pk?: Maybe<Asset_Imports>;
2106
+ /** update multiples rows of table: "asset_imports" */
2107
+ update_asset_imports_many?: Maybe<Array<Maybe<Asset_Imports_Mutation_Response>>>;
1965
2108
  /** update data of the table: "assets" */
1966
2109
  update_assets?: Maybe<Assets_Mutation_Response>;
1967
2110
  /** update single row of the table: "assets" */
@@ -1992,6 +2135,10 @@ export type Mutation_RootAdd_Affiliate_CodeArgs = {
1992
2135
  redirect_path?: InputMaybe<Scalars['String']['input']>;
1993
2136
  };
1994
2137
  /** mutation root */
2138
+ export type Mutation_RootCancel_Media_ImportArgs = {
2139
+ import_id: Scalars['String']['input'];
2140
+ };
2141
+ /** mutation root */
1995
2142
  export type Mutation_RootCancel_Pipeline_RunArgs = {
1996
2143
  run_id: Scalars['String']['input'];
1997
2144
  };
@@ -2042,7 +2189,11 @@ export type Mutation_RootCreate_PaymentArgs = {
2042
2189
  };
2043
2190
  /** mutation root */
2044
2191
  export type Mutation_RootCreate_Personal_Access_TokenArgs = {
2192
+ credit_limit?: InputMaybe<Scalars['Int']['input']>;
2193
+ expires_in_days?: InputMaybe<Scalars['Int']['input']>;
2045
2194
  name: Scalars['String']['input'];
2195
+ reset_period?: InputMaybe<Scalars['String']['input']>;
2196
+ scopes?: InputMaybe<Array<Scalars['String']['input']>>;
2046
2197
  };
2047
2198
  /** mutation root */
2048
2199
  export type Mutation_RootDelete_AssetArgs = {
@@ -2063,6 +2214,11 @@ export type Mutation_RootExchange_Auth_Handoff_CodeArgs = {
2063
2214
  redirect_uri: Scalars['String']['input'];
2064
2215
  };
2065
2216
  /** mutation root */
2217
+ export type Mutation_RootImport_Media_UrlArgs = {
2218
+ tags?: InputMaybe<Array<Scalars['String']['input']>>;
2219
+ url: Scalars['String']['input'];
2220
+ };
2221
+ /** mutation root */
2066
2222
  export type Mutation_RootInit_Verification_FlowArgs = {
2067
2223
  email?: InputMaybe<Scalars['String']['input']>;
2068
2224
  force?: InputMaybe<Scalars['Boolean']['input']>;
@@ -2141,6 +2297,20 @@ export type Mutation_RootUpdate_Affiliate_Codes_ManyArgs = {
2141
2297
  updates: Array<Affiliate_Codes_Updates>;
2142
2298
  };
2143
2299
  /** mutation root */
2300
+ export type Mutation_RootUpdate_Asset_ImportsArgs = {
2301
+ _set?: InputMaybe<Asset_Imports_Set_Input>;
2302
+ where: Asset_Imports_Bool_Exp;
2303
+ };
2304
+ /** mutation root */
2305
+ export type Mutation_RootUpdate_Asset_Imports_By_PkArgs = {
2306
+ _set?: InputMaybe<Asset_Imports_Set_Input>;
2307
+ pk_columns: Asset_Imports_Pk_Columns_Input;
2308
+ };
2309
+ /** mutation root */
2310
+ export type Mutation_RootUpdate_Asset_Imports_ManyArgs = {
2311
+ updates: Array<Asset_Imports_Updates>;
2312
+ };
2313
+ /** mutation root */
2144
2314
  export type Mutation_RootUpdate_AssetsArgs = {
2145
2315
  _set?: InputMaybe<Assets_Set_Input>;
2146
2316
  where: Assets_Bool_Exp;
@@ -2530,14 +2700,54 @@ export type Payment_Providers_Stream_Cursor_Value_Input = {
2530
2700
  export type Personal_Access_Tokens = {
2531
2701
  __typename?: 'personal_access_tokens';
2532
2702
  created_at: Scalars['timestamptz']['output'];
2703
+ credit_limit_mc?: Maybe<Scalars['bigint']['output']>;
2533
2704
  expires_at: Scalars['timestamptz']['output'];
2534
2705
  id: Scalars['uuid']['output'];
2535
2706
  last_used_at?: Maybe<Scalars['timestamptz']['output']>;
2707
+ lifetime_used_mc: Scalars['bigint']['output'];
2536
2708
  name: Scalars['String']['output'];
2709
+ reset_period: Scalars['String']['output'];
2537
2710
  revoked_at?: Maybe<Scalars['timestamptz']['output']>;
2538
2711
  scopes: Array<Scalars['String']['output']>;
2539
2712
  /** An object relationship */
2540
2713
  user: Users;
2714
+ window_reserved_mc: Scalars['bigint']['output'];
2715
+ window_start?: Maybe<Scalars['timestamptz']['output']>;
2716
+ window_used_mc: Scalars['bigint']['output'];
2717
+ };
2718
+ /** aggregated selection of "personal_access_tokens" */
2719
+ export type Personal_Access_Tokens_Aggregate = {
2720
+ __typename?: 'personal_access_tokens_aggregate';
2721
+ aggregate?: Maybe<Personal_Access_Tokens_Aggregate_Fields>;
2722
+ nodes: Array<Personal_Access_Tokens>;
2723
+ };
2724
+ /** aggregate fields of "personal_access_tokens" */
2725
+ export type Personal_Access_Tokens_Aggregate_Fields = {
2726
+ __typename?: 'personal_access_tokens_aggregate_fields';
2727
+ avg?: Maybe<Personal_Access_Tokens_Avg_Fields>;
2728
+ count: Scalars['Int']['output'];
2729
+ max?: Maybe<Personal_Access_Tokens_Max_Fields>;
2730
+ min?: Maybe<Personal_Access_Tokens_Min_Fields>;
2731
+ stddev?: Maybe<Personal_Access_Tokens_Stddev_Fields>;
2732
+ stddev_pop?: Maybe<Personal_Access_Tokens_Stddev_Pop_Fields>;
2733
+ stddev_samp?: Maybe<Personal_Access_Tokens_Stddev_Samp_Fields>;
2734
+ sum?: Maybe<Personal_Access_Tokens_Sum_Fields>;
2735
+ var_pop?: Maybe<Personal_Access_Tokens_Var_Pop_Fields>;
2736
+ var_samp?: Maybe<Personal_Access_Tokens_Var_Samp_Fields>;
2737
+ variance?: Maybe<Personal_Access_Tokens_Variance_Fields>;
2738
+ };
2739
+ /** aggregate fields of "personal_access_tokens" */
2740
+ export type Personal_Access_Tokens_Aggregate_FieldsCountArgs = {
2741
+ columns?: InputMaybe<Array<Personal_Access_Tokens_Select_Column>>;
2742
+ distinct?: InputMaybe<Scalars['Boolean']['input']>;
2743
+ };
2744
+ /** aggregate avg on columns */
2745
+ export type Personal_Access_Tokens_Avg_Fields = {
2746
+ __typename?: 'personal_access_tokens_avg_fields';
2747
+ credit_limit_mc?: Maybe<Scalars['Float']['output']>;
2748
+ lifetime_used_mc?: Maybe<Scalars['Float']['output']>;
2749
+ window_reserved_mc?: Maybe<Scalars['Float']['output']>;
2750
+ window_used_mc?: Maybe<Scalars['Float']['output']>;
2541
2751
  };
2542
2752
  /** Boolean expression to filter rows from the table "personal_access_tokens". All fields are combined with a logical 'AND'. */
2543
2753
  export type Personal_Access_Tokens_Bool_Exp = {
@@ -2545,42 +2755,124 @@ export type Personal_Access_Tokens_Bool_Exp = {
2545
2755
  _not?: InputMaybe<Personal_Access_Tokens_Bool_Exp>;
2546
2756
  _or?: InputMaybe<Array<Personal_Access_Tokens_Bool_Exp>>;
2547
2757
  created_at?: InputMaybe<Timestamptz_Comparison_Exp>;
2758
+ credit_limit_mc?: InputMaybe<Bigint_Comparison_Exp>;
2548
2759
  expires_at?: InputMaybe<Timestamptz_Comparison_Exp>;
2549
2760
  id?: InputMaybe<Uuid_Comparison_Exp>;
2550
2761
  last_used_at?: InputMaybe<Timestamptz_Comparison_Exp>;
2762
+ lifetime_used_mc?: InputMaybe<Bigint_Comparison_Exp>;
2551
2763
  name?: InputMaybe<String_Comparison_Exp>;
2764
+ reset_period?: InputMaybe<String_Comparison_Exp>;
2552
2765
  revoked_at?: InputMaybe<Timestamptz_Comparison_Exp>;
2553
2766
  scopes?: InputMaybe<String_Array_Comparison_Exp>;
2554
2767
  user?: InputMaybe<Users_Bool_Exp>;
2768
+ window_reserved_mc?: InputMaybe<Bigint_Comparison_Exp>;
2769
+ window_start?: InputMaybe<Timestamptz_Comparison_Exp>;
2770
+ window_used_mc?: InputMaybe<Bigint_Comparison_Exp>;
2771
+ };
2772
+ /** aggregate max on columns */
2773
+ export type Personal_Access_Tokens_Max_Fields = {
2774
+ __typename?: 'personal_access_tokens_max_fields';
2775
+ created_at?: Maybe<Scalars['timestamptz']['output']>;
2776
+ credit_limit_mc?: Maybe<Scalars['bigint']['output']>;
2777
+ expires_at?: Maybe<Scalars['timestamptz']['output']>;
2778
+ id?: Maybe<Scalars['uuid']['output']>;
2779
+ last_used_at?: Maybe<Scalars['timestamptz']['output']>;
2780
+ lifetime_used_mc?: Maybe<Scalars['bigint']['output']>;
2781
+ name?: Maybe<Scalars['String']['output']>;
2782
+ reset_period?: Maybe<Scalars['String']['output']>;
2783
+ revoked_at?: Maybe<Scalars['timestamptz']['output']>;
2784
+ scopes?: Maybe<Array<Scalars['String']['output']>>;
2785
+ window_reserved_mc?: Maybe<Scalars['bigint']['output']>;
2786
+ window_start?: Maybe<Scalars['timestamptz']['output']>;
2787
+ window_used_mc?: Maybe<Scalars['bigint']['output']>;
2788
+ };
2789
+ /** aggregate min on columns */
2790
+ export type Personal_Access_Tokens_Min_Fields = {
2791
+ __typename?: 'personal_access_tokens_min_fields';
2792
+ created_at?: Maybe<Scalars['timestamptz']['output']>;
2793
+ credit_limit_mc?: Maybe<Scalars['bigint']['output']>;
2794
+ expires_at?: Maybe<Scalars['timestamptz']['output']>;
2795
+ id?: Maybe<Scalars['uuid']['output']>;
2796
+ last_used_at?: Maybe<Scalars['timestamptz']['output']>;
2797
+ lifetime_used_mc?: Maybe<Scalars['bigint']['output']>;
2798
+ name?: Maybe<Scalars['String']['output']>;
2799
+ reset_period?: Maybe<Scalars['String']['output']>;
2800
+ revoked_at?: Maybe<Scalars['timestamptz']['output']>;
2801
+ scopes?: Maybe<Array<Scalars['String']['output']>>;
2802
+ window_reserved_mc?: Maybe<Scalars['bigint']['output']>;
2803
+ window_start?: Maybe<Scalars['timestamptz']['output']>;
2804
+ window_used_mc?: Maybe<Scalars['bigint']['output']>;
2555
2805
  };
2556
2806
  /** Ordering options when selecting data from "personal_access_tokens". */
2557
2807
  export type Personal_Access_Tokens_Order_By = {
2558
2808
  created_at?: InputMaybe<Order_By>;
2809
+ credit_limit_mc?: InputMaybe<Order_By>;
2559
2810
  expires_at?: InputMaybe<Order_By>;
2560
2811
  id?: InputMaybe<Order_By>;
2561
2812
  last_used_at?: InputMaybe<Order_By>;
2813
+ lifetime_used_mc?: InputMaybe<Order_By>;
2562
2814
  name?: InputMaybe<Order_By>;
2815
+ reset_period?: InputMaybe<Order_By>;
2563
2816
  revoked_at?: InputMaybe<Order_By>;
2564
2817
  scopes?: InputMaybe<Order_By>;
2565
2818
  user?: InputMaybe<Users_Order_By>;
2819
+ window_reserved_mc?: InputMaybe<Order_By>;
2820
+ window_start?: InputMaybe<Order_By>;
2821
+ window_used_mc?: InputMaybe<Order_By>;
2566
2822
  };
2567
2823
  /** select columns of table "personal_access_tokens" */
2568
2824
  export declare enum Personal_Access_Tokens_Select_Column {
2569
2825
  /** column name */
2570
2826
  CreatedAt = "created_at",
2571
2827
  /** column name */
2828
+ CreditLimitMc = "credit_limit_mc",
2829
+ /** column name */
2572
2830
  ExpiresAt = "expires_at",
2573
2831
  /** column name */
2574
2832
  Id = "id",
2575
2833
  /** column name */
2576
2834
  LastUsedAt = "last_used_at",
2577
2835
  /** column name */
2836
+ LifetimeUsedMc = "lifetime_used_mc",
2837
+ /** column name */
2578
2838
  Name = "name",
2579
2839
  /** column name */
2840
+ ResetPeriod = "reset_period",
2841
+ /** column name */
2580
2842
  RevokedAt = "revoked_at",
2581
2843
  /** column name */
2582
- Scopes = "scopes"
2844
+ Scopes = "scopes",
2845
+ /** column name */
2846
+ WindowReservedMc = "window_reserved_mc",
2847
+ /** column name */
2848
+ WindowStart = "window_start",
2849
+ /** column name */
2850
+ WindowUsedMc = "window_used_mc"
2583
2851
  }
2852
+ /** aggregate stddev on columns */
2853
+ export type Personal_Access_Tokens_Stddev_Fields = {
2854
+ __typename?: 'personal_access_tokens_stddev_fields';
2855
+ credit_limit_mc?: Maybe<Scalars['Float']['output']>;
2856
+ lifetime_used_mc?: Maybe<Scalars['Float']['output']>;
2857
+ window_reserved_mc?: Maybe<Scalars['Float']['output']>;
2858
+ window_used_mc?: Maybe<Scalars['Float']['output']>;
2859
+ };
2860
+ /** aggregate stddev_pop on columns */
2861
+ export type Personal_Access_Tokens_Stddev_Pop_Fields = {
2862
+ __typename?: 'personal_access_tokens_stddev_pop_fields';
2863
+ credit_limit_mc?: Maybe<Scalars['Float']['output']>;
2864
+ lifetime_used_mc?: Maybe<Scalars['Float']['output']>;
2865
+ window_reserved_mc?: Maybe<Scalars['Float']['output']>;
2866
+ window_used_mc?: Maybe<Scalars['Float']['output']>;
2867
+ };
2868
+ /** aggregate stddev_samp on columns */
2869
+ export type Personal_Access_Tokens_Stddev_Samp_Fields = {
2870
+ __typename?: 'personal_access_tokens_stddev_samp_fields';
2871
+ credit_limit_mc?: Maybe<Scalars['Float']['output']>;
2872
+ lifetime_used_mc?: Maybe<Scalars['Float']['output']>;
2873
+ window_reserved_mc?: Maybe<Scalars['Float']['output']>;
2874
+ window_used_mc?: Maybe<Scalars['Float']['output']>;
2875
+ };
2584
2876
  /** Streaming cursor of the table "personal_access_tokens" */
2585
2877
  export type Personal_Access_Tokens_Stream_Cursor_Input = {
2586
2878
  /** Stream column input with initial value */
@@ -2591,12 +2883,50 @@ export type Personal_Access_Tokens_Stream_Cursor_Input = {
2591
2883
  /** Initial value of the column from where the streaming should start */
2592
2884
  export type Personal_Access_Tokens_Stream_Cursor_Value_Input = {
2593
2885
  created_at?: InputMaybe<Scalars['timestamptz']['input']>;
2886
+ credit_limit_mc?: InputMaybe<Scalars['bigint']['input']>;
2594
2887
  expires_at?: InputMaybe<Scalars['timestamptz']['input']>;
2595
2888
  id?: InputMaybe<Scalars['uuid']['input']>;
2596
2889
  last_used_at?: InputMaybe<Scalars['timestamptz']['input']>;
2890
+ lifetime_used_mc?: InputMaybe<Scalars['bigint']['input']>;
2597
2891
  name?: InputMaybe<Scalars['String']['input']>;
2892
+ reset_period?: InputMaybe<Scalars['String']['input']>;
2598
2893
  revoked_at?: InputMaybe<Scalars['timestamptz']['input']>;
2599
2894
  scopes?: InputMaybe<Array<Scalars['String']['input']>>;
2895
+ window_reserved_mc?: InputMaybe<Scalars['bigint']['input']>;
2896
+ window_start?: InputMaybe<Scalars['timestamptz']['input']>;
2897
+ window_used_mc?: InputMaybe<Scalars['bigint']['input']>;
2898
+ };
2899
+ /** aggregate sum on columns */
2900
+ export type Personal_Access_Tokens_Sum_Fields = {
2901
+ __typename?: 'personal_access_tokens_sum_fields';
2902
+ credit_limit_mc?: Maybe<Scalars['bigint']['output']>;
2903
+ lifetime_used_mc?: Maybe<Scalars['bigint']['output']>;
2904
+ window_reserved_mc?: Maybe<Scalars['bigint']['output']>;
2905
+ window_used_mc?: Maybe<Scalars['bigint']['output']>;
2906
+ };
2907
+ /** aggregate var_pop on columns */
2908
+ export type Personal_Access_Tokens_Var_Pop_Fields = {
2909
+ __typename?: 'personal_access_tokens_var_pop_fields';
2910
+ credit_limit_mc?: Maybe<Scalars['Float']['output']>;
2911
+ lifetime_used_mc?: Maybe<Scalars['Float']['output']>;
2912
+ window_reserved_mc?: Maybe<Scalars['Float']['output']>;
2913
+ window_used_mc?: Maybe<Scalars['Float']['output']>;
2914
+ };
2915
+ /** aggregate var_samp on columns */
2916
+ export type Personal_Access_Tokens_Var_Samp_Fields = {
2917
+ __typename?: 'personal_access_tokens_var_samp_fields';
2918
+ credit_limit_mc?: Maybe<Scalars['Float']['output']>;
2919
+ lifetime_used_mc?: Maybe<Scalars['Float']['output']>;
2920
+ window_reserved_mc?: Maybe<Scalars['Float']['output']>;
2921
+ window_used_mc?: Maybe<Scalars['Float']['output']>;
2922
+ };
2923
+ /** aggregate variance on columns */
2924
+ export type Personal_Access_Tokens_Variance_Fields = {
2925
+ __typename?: 'personal_access_tokens_variance_fields';
2926
+ credit_limit_mc?: Maybe<Scalars['Float']['output']>;
2927
+ lifetime_used_mc?: Maybe<Scalars['Float']['output']>;
2928
+ window_reserved_mc?: Maybe<Scalars['Float']['output']>;
2929
+ window_used_mc?: Maybe<Scalars['Float']['output']>;
2600
2930
  };
2601
2931
  /** columns and relationships of "pipeline_examples" */
2602
2932
  export type Pipeline_Examples = {
@@ -3052,6 +3382,7 @@ export type Pipeline_Pricing_Row = {
3052
3382
  /** columns and relationships of "pipeline_runs" */
3053
3383
  export type Pipeline_Runs = {
3054
3384
  __typename?: 'pipeline_runs';
3385
+ agent_actual_credits_mc?: Maybe<Scalars['Int']['output']>;
3055
3386
  /** An array relationship */
3056
3387
  assets: Array<Assets>;
3057
3388
  /** An aggregate relationship */
@@ -3063,6 +3394,7 @@ export type Pipeline_Runs = {
3063
3394
  id: Scalars['uuid']['output'];
3064
3395
  input: Scalars['jsonb']['output'];
3065
3396
  output?: Maybe<Scalars['jsonb']['output']>;
3397
+ parent_run_id?: Maybe<Scalars['uuid']['output']>;
3066
3398
  /** An object relationship */
3067
3399
  pipeline: Pipelines;
3068
3400
  pipeline_id: Scalars['uuid']['output'];
@@ -3128,6 +3460,7 @@ export type Pipeline_Runs_Aggregate_FieldsCountArgs = {
3128
3460
  /** aggregate avg on columns */
3129
3461
  export type Pipeline_Runs_Avg_Fields = {
3130
3462
  __typename?: 'pipeline_runs_avg_fields';
3463
+ agent_actual_credits_mc?: Maybe<Scalars['Float']['output']>;
3131
3464
  credits_charged?: Maybe<Scalars['Float']['output']>;
3132
3465
  };
3133
3466
  /** Boolean expression to filter rows from the table "pipeline_runs". All fields are combined with a logical 'AND'. */
@@ -3135,6 +3468,7 @@ export type Pipeline_Runs_Bool_Exp = {
3135
3468
  _and?: InputMaybe<Array<Pipeline_Runs_Bool_Exp>>;
3136
3469
  _not?: InputMaybe<Pipeline_Runs_Bool_Exp>;
3137
3470
  _or?: InputMaybe<Array<Pipeline_Runs_Bool_Exp>>;
3471
+ agent_actual_credits_mc?: InputMaybe<Int_Comparison_Exp>;
3138
3472
  assets?: InputMaybe<Assets_Bool_Exp>;
3139
3473
  assets_aggregate?: InputMaybe<Assets_Aggregate_Bool_Exp>;
3140
3474
  completed_at?: InputMaybe<Timestamptz_Comparison_Exp>;
@@ -3144,6 +3478,7 @@ export type Pipeline_Runs_Bool_Exp = {
3144
3478
  id?: InputMaybe<Uuid_Comparison_Exp>;
3145
3479
  input?: InputMaybe<Jsonb_Comparison_Exp>;
3146
3480
  output?: InputMaybe<Jsonb_Comparison_Exp>;
3481
+ parent_run_id?: InputMaybe<Uuid_Comparison_Exp>;
3147
3482
  pipeline?: InputMaybe<Pipelines_Bool_Exp>;
3148
3483
  pipeline_id?: InputMaybe<Uuid_Comparison_Exp>;
3149
3484
  share_token?: InputMaybe<Uuid_Comparison_Exp>;
@@ -3156,11 +3491,13 @@ export type Pipeline_Runs_Bool_Exp = {
3156
3491
  /** aggregate max on columns */
3157
3492
  export type Pipeline_Runs_Max_Fields = {
3158
3493
  __typename?: 'pipeline_runs_max_fields';
3494
+ agent_actual_credits_mc?: Maybe<Scalars['Int']['output']>;
3159
3495
  completed_at?: Maybe<Scalars['timestamptz']['output']>;
3160
3496
  created_at?: Maybe<Scalars['timestamptz']['output']>;
3161
3497
  credits_charged?: Maybe<Scalars['Int']['output']>;
3162
3498
  error_message?: Maybe<Scalars['String']['output']>;
3163
3499
  id?: Maybe<Scalars['uuid']['output']>;
3500
+ parent_run_id?: Maybe<Scalars['uuid']['output']>;
3164
3501
  pipeline_id?: Maybe<Scalars['uuid']['output']>;
3165
3502
  share_token?: Maybe<Scalars['uuid']['output']>;
3166
3503
  started_at?: Maybe<Scalars['timestamptz']['output']>;
@@ -3170,11 +3507,13 @@ export type Pipeline_Runs_Max_Fields = {
3170
3507
  /** aggregate min on columns */
3171
3508
  export type Pipeline_Runs_Min_Fields = {
3172
3509
  __typename?: 'pipeline_runs_min_fields';
3510
+ agent_actual_credits_mc?: Maybe<Scalars['Int']['output']>;
3173
3511
  completed_at?: Maybe<Scalars['timestamptz']['output']>;
3174
3512
  created_at?: Maybe<Scalars['timestamptz']['output']>;
3175
3513
  credits_charged?: Maybe<Scalars['Int']['output']>;
3176
3514
  error_message?: Maybe<Scalars['String']['output']>;
3177
3515
  id?: Maybe<Scalars['uuid']['output']>;
3516
+ parent_run_id?: Maybe<Scalars['uuid']['output']>;
3178
3517
  pipeline_id?: Maybe<Scalars['uuid']['output']>;
3179
3518
  share_token?: Maybe<Scalars['uuid']['output']>;
3180
3519
  started_at?: Maybe<Scalars['timestamptz']['output']>;
@@ -3191,6 +3530,7 @@ export type Pipeline_Runs_Mutation_Response = {
3191
3530
  };
3192
3531
  /** Ordering options when selecting data from "pipeline_runs". */
3193
3532
  export type Pipeline_Runs_Order_By = {
3533
+ agent_actual_credits_mc?: InputMaybe<Order_By>;
3194
3534
  assets_aggregate?: InputMaybe<Assets_Aggregate_Order_By>;
3195
3535
  completed_at?: InputMaybe<Order_By>;
3196
3536
  created_at?: InputMaybe<Order_By>;
@@ -3199,6 +3539,7 @@ export type Pipeline_Runs_Order_By = {
3199
3539
  id?: InputMaybe<Order_By>;
3200
3540
  input?: InputMaybe<Order_By>;
3201
3541
  output?: InputMaybe<Order_By>;
3542
+ parent_run_id?: InputMaybe<Order_By>;
3202
3543
  pipeline?: InputMaybe<Pipelines_Order_By>;
3203
3544
  pipeline_id?: InputMaybe<Order_By>;
3204
3545
  share_token?: InputMaybe<Order_By>;
@@ -3214,6 +3555,8 @@ export type Pipeline_Runs_Pk_Columns_Input = {
3214
3555
  };
3215
3556
  /** select columns of table "pipeline_runs" */
3216
3557
  export declare enum Pipeline_Runs_Select_Column {
3558
+ /** column name */
3559
+ AgentActualCreditsMc = "agent_actual_credits_mc",
3217
3560
  /** column name */
3218
3561
  CompletedAt = "completed_at",
3219
3562
  /** column name */
@@ -3229,6 +3572,8 @@ export declare enum Pipeline_Runs_Select_Column {
3229
3572
  /** column name */
3230
3573
  Output = "output",
3231
3574
  /** column name */
3575
+ ParentRunId = "parent_run_id",
3576
+ /** column name */
3232
3577
  PipelineId = "pipeline_id",
3233
3578
  /** column name */
3234
3579
  ShareToken = "share_token",
@@ -3249,16 +3594,19 @@ export type Pipeline_Runs_Set_Input = {
3249
3594
  /** aggregate stddev on columns */
3250
3595
  export type Pipeline_Runs_Stddev_Fields = {
3251
3596
  __typename?: 'pipeline_runs_stddev_fields';
3597
+ agent_actual_credits_mc?: Maybe<Scalars['Float']['output']>;
3252
3598
  credits_charged?: Maybe<Scalars['Float']['output']>;
3253
3599
  };
3254
3600
  /** aggregate stddev_pop on columns */
3255
3601
  export type Pipeline_Runs_Stddev_Pop_Fields = {
3256
3602
  __typename?: 'pipeline_runs_stddev_pop_fields';
3603
+ agent_actual_credits_mc?: Maybe<Scalars['Float']['output']>;
3257
3604
  credits_charged?: Maybe<Scalars['Float']['output']>;
3258
3605
  };
3259
3606
  /** aggregate stddev_samp on columns */
3260
3607
  export type Pipeline_Runs_Stddev_Samp_Fields = {
3261
3608
  __typename?: 'pipeline_runs_stddev_samp_fields';
3609
+ agent_actual_credits_mc?: Maybe<Scalars['Float']['output']>;
3262
3610
  credits_charged?: Maybe<Scalars['Float']['output']>;
3263
3611
  };
3264
3612
  /** Streaming cursor of the table "pipeline_runs" */
@@ -3270,6 +3618,7 @@ export type Pipeline_Runs_Stream_Cursor_Input = {
3270
3618
  };
3271
3619
  /** Initial value of the column from where the streaming should start */
3272
3620
  export type Pipeline_Runs_Stream_Cursor_Value_Input = {
3621
+ agent_actual_credits_mc?: InputMaybe<Scalars['Int']['input']>;
3273
3622
  completed_at?: InputMaybe<Scalars['timestamptz']['input']>;
3274
3623
  created_at?: InputMaybe<Scalars['timestamptz']['input']>;
3275
3624
  credits_charged?: InputMaybe<Scalars['Int']['input']>;
@@ -3277,6 +3626,7 @@ export type Pipeline_Runs_Stream_Cursor_Value_Input = {
3277
3626
  id?: InputMaybe<Scalars['uuid']['input']>;
3278
3627
  input?: InputMaybe<Scalars['jsonb']['input']>;
3279
3628
  output?: InputMaybe<Scalars['jsonb']['input']>;
3629
+ parent_run_id?: InputMaybe<Scalars['uuid']['input']>;
3280
3630
  pipeline_id?: InputMaybe<Scalars['uuid']['input']>;
3281
3631
  share_token?: InputMaybe<Scalars['uuid']['input']>;
3282
3632
  share_watermark?: InputMaybe<Scalars['Boolean']['input']>;
@@ -3287,6 +3637,7 @@ export type Pipeline_Runs_Stream_Cursor_Value_Input = {
3287
3637
  /** aggregate sum on columns */
3288
3638
  export type Pipeline_Runs_Sum_Fields = {
3289
3639
  __typename?: 'pipeline_runs_sum_fields';
3640
+ agent_actual_credits_mc?: Maybe<Scalars['Int']['output']>;
3290
3641
  credits_charged?: Maybe<Scalars['Int']['output']>;
3291
3642
  };
3292
3643
  export type Pipeline_Runs_Updates = {
@@ -3298,16 +3649,19 @@ export type Pipeline_Runs_Updates = {
3298
3649
  /** aggregate var_pop on columns */
3299
3650
  export type Pipeline_Runs_Var_Pop_Fields = {
3300
3651
  __typename?: 'pipeline_runs_var_pop_fields';
3652
+ agent_actual_credits_mc?: Maybe<Scalars['Float']['output']>;
3301
3653
  credits_charged?: Maybe<Scalars['Float']['output']>;
3302
3654
  };
3303
3655
  /** aggregate var_samp on columns */
3304
3656
  export type Pipeline_Runs_Var_Samp_Fields = {
3305
3657
  __typename?: 'pipeline_runs_var_samp_fields';
3658
+ agent_actual_credits_mc?: Maybe<Scalars['Float']['output']>;
3306
3659
  credits_charged?: Maybe<Scalars['Float']['output']>;
3307
3660
  };
3308
3661
  /** aggregate variance on columns */
3309
3662
  export type Pipeline_Runs_Variance_Fields = {
3310
3663
  __typename?: 'pipeline_runs_variance_fields';
3664
+ agent_actual_credits_mc?: Maybe<Scalars['Float']['output']>;
3311
3665
  credits_charged?: Maybe<Scalars['Float']['output']>;
3312
3666
  };
3313
3667
  /** columns and relationships of "pipeline_translations" */
@@ -4172,6 +4526,10 @@ export type Query_Root = {
4172
4526
  affiliates: Array<Affiliates>;
4173
4527
  /** fetch data from the table: "affiliates" using primary key columns */
4174
4528
  affiliates_by_pk?: Maybe<Affiliates>;
4529
+ /** fetch data from the table: "asset_imports" */
4530
+ asset_imports: Array<Asset_Imports>;
4531
+ /** fetch data from the table: "asset_imports" using primary key columns */
4532
+ asset_imports_by_pk?: Maybe<Asset_Imports>;
4175
4533
  /** An array relationship */
4176
4534
  assets: Array<Assets>;
4177
4535
  /** An aggregate relationship */
@@ -4256,6 +4614,8 @@ export type Query_Root = {
4256
4614
  payments: Array<Payment_Output>;
4257
4615
  /** fetch data from the table: "personal_access_tokens" */
4258
4616
  personal_access_tokens: Array<Personal_Access_Tokens>;
4617
+ /** fetch aggregated fields from the table: "personal_access_tokens" */
4618
+ personal_access_tokens_aggregate: Personal_Access_Tokens_Aggregate;
4259
4619
  /** fetch data from the table: "personal_access_tokens" using primary key columns */
4260
4620
  personal_access_tokens_by_pk?: Maybe<Personal_Access_Tokens>;
4261
4621
  /** fetch data from the table: "pipeline_examples" */
@@ -4341,6 +4701,16 @@ export type Query_RootAffiliatesArgs = {
4341
4701
  export type Query_RootAffiliates_By_PkArgs = {
4342
4702
  id: Scalars['uuid']['input'];
4343
4703
  };
4704
+ export type Query_RootAsset_ImportsArgs = {
4705
+ distinct_on?: InputMaybe<Array<Asset_Imports_Select_Column>>;
4706
+ limit?: InputMaybe<Scalars['Int']['input']>;
4707
+ offset?: InputMaybe<Scalars['Int']['input']>;
4708
+ order_by?: InputMaybe<Array<Asset_Imports_Order_By>>;
4709
+ where?: InputMaybe<Asset_Imports_Bool_Exp>;
4710
+ };
4711
+ export type Query_RootAsset_Imports_By_PkArgs = {
4712
+ id: Scalars['uuid']['input'];
4713
+ };
4344
4714
  export type Query_RootAssetsArgs = {
4345
4715
  distinct_on?: InputMaybe<Array<Assets_Select_Column>>;
4346
4716
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -4541,6 +4911,13 @@ export type Query_RootPersonal_Access_TokensArgs = {
4541
4911
  order_by?: InputMaybe<Array<Personal_Access_Tokens_Order_By>>;
4542
4912
  where?: InputMaybe<Personal_Access_Tokens_Bool_Exp>;
4543
4913
  };
4914
+ export type Query_RootPersonal_Access_Tokens_AggregateArgs = {
4915
+ distinct_on?: InputMaybe<Array<Personal_Access_Tokens_Select_Column>>;
4916
+ limit?: InputMaybe<Scalars['Int']['input']>;
4917
+ offset?: InputMaybe<Scalars['Int']['input']>;
4918
+ order_by?: InputMaybe<Array<Personal_Access_Tokens_Order_By>>;
4919
+ where?: InputMaybe<Personal_Access_Tokens_Bool_Exp>;
4920
+ };
4544
4921
  export type Query_RootPersonal_Access_Tokens_By_PkArgs = {
4545
4922
  id: Scalars['uuid']['input'];
4546
4923
  };
@@ -4869,6 +5246,12 @@ export type Subscription_Root = {
4869
5246
  affiliates_by_pk?: Maybe<Affiliates>;
4870
5247
  /** fetch data from the table in a streaming manner: "affiliates" */
4871
5248
  affiliates_stream: Array<Affiliates>;
5249
+ /** fetch data from the table: "asset_imports" */
5250
+ asset_imports: Array<Asset_Imports>;
5251
+ /** fetch data from the table: "asset_imports" using primary key columns */
5252
+ asset_imports_by_pk?: Maybe<Asset_Imports>;
5253
+ /** fetch data from the table in a streaming manner: "asset_imports" */
5254
+ asset_imports_stream: Array<Asset_Imports>;
4872
5255
  /** An array relationship */
4873
5256
  assets: Array<Assets>;
4874
5257
  /** An aggregate relationship */
@@ -4973,6 +5356,8 @@ export type Subscription_Root = {
4973
5356
  payment_providers_stream: Array<Payment_Providers>;
4974
5357
  /** fetch data from the table: "personal_access_tokens" */
4975
5358
  personal_access_tokens: Array<Personal_Access_Tokens>;
5359
+ /** fetch aggregated fields from the table: "personal_access_tokens" */
5360
+ personal_access_tokens_aggregate: Personal_Access_Tokens_Aggregate;
4976
5361
  /** fetch data from the table: "personal_access_tokens" using primary key columns */
4977
5362
  personal_access_tokens_by_pk?: Maybe<Personal_Access_Tokens>;
4978
5363
  /** fetch data from the table in a streaming manner: "personal_access_tokens" */
@@ -5098,6 +5483,21 @@ export type Subscription_RootAffiliates_StreamArgs = {
5098
5483
  cursor: Array<InputMaybe<Affiliates_Stream_Cursor_Input>>;
5099
5484
  where?: InputMaybe<Affiliates_Bool_Exp>;
5100
5485
  };
5486
+ export type Subscription_RootAsset_ImportsArgs = {
5487
+ distinct_on?: InputMaybe<Array<Asset_Imports_Select_Column>>;
5488
+ limit?: InputMaybe<Scalars['Int']['input']>;
5489
+ offset?: InputMaybe<Scalars['Int']['input']>;
5490
+ order_by?: InputMaybe<Array<Asset_Imports_Order_By>>;
5491
+ where?: InputMaybe<Asset_Imports_Bool_Exp>;
5492
+ };
5493
+ export type Subscription_RootAsset_Imports_By_PkArgs = {
5494
+ id: Scalars['uuid']['input'];
5495
+ };
5496
+ export type Subscription_RootAsset_Imports_StreamArgs = {
5497
+ batch_size: Scalars['Int']['input'];
5498
+ cursor: Array<InputMaybe<Asset_Imports_Stream_Cursor_Input>>;
5499
+ where?: InputMaybe<Asset_Imports_Bool_Exp>;
5500
+ };
5101
5501
  export type Subscription_RootAssetsArgs = {
5102
5502
  distinct_on?: InputMaybe<Array<Assets_Select_Column>>;
5103
5503
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -5371,6 +5771,13 @@ export type Subscription_RootPersonal_Access_TokensArgs = {
5371
5771
  order_by?: InputMaybe<Array<Personal_Access_Tokens_Order_By>>;
5372
5772
  where?: InputMaybe<Personal_Access_Tokens_Bool_Exp>;
5373
5773
  };
5774
+ export type Subscription_RootPersonal_Access_Tokens_AggregateArgs = {
5775
+ distinct_on?: InputMaybe<Array<Personal_Access_Tokens_Select_Column>>;
5776
+ limit?: InputMaybe<Scalars['Int']['input']>;
5777
+ offset?: InputMaybe<Scalars['Int']['input']>;
5778
+ order_by?: InputMaybe<Array<Personal_Access_Tokens_Order_By>>;
5779
+ where?: InputMaybe<Personal_Access_Tokens_Bool_Exp>;
5780
+ };
5374
5781
  export type Subscription_RootPersonal_Access_Tokens_By_PkArgs = {
5375
5782
  id: Scalars['uuid']['input'];
5376
5783
  };
@@ -6220,6 +6627,78 @@ export type CreateAssetMutation = {
6220
6627
  created_at: string;
6221
6628
  };
6222
6629
  };
6630
+ export type ImportMediaUrlMutationVariables = Exact<{
6631
+ url: Scalars['String']['input'];
6632
+ tags?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
6633
+ }>;
6634
+ export type ImportMediaUrlMutation = {
6635
+ __typename?: 'mutation_root';
6636
+ import_media_url: {
6637
+ __typename?: 'import_media_output';
6638
+ import_id: string;
6639
+ status: string;
6640
+ };
6641
+ };
6642
+ export type CancelMediaImportMutationVariables = Exact<{
6643
+ importId: Scalars['String']['input'];
6644
+ }>;
6645
+ export type CancelMediaImportMutation = {
6646
+ __typename?: 'mutation_root';
6647
+ cancel_media_import: {
6648
+ __typename?: 'import_media_output';
6649
+ import_id: string;
6650
+ status: string;
6651
+ };
6652
+ };
6653
+ export type DismissAssetImportMutationVariables = Exact<{
6654
+ id: Scalars['uuid']['input'];
6655
+ }>;
6656
+ export type DismissAssetImportMutation = {
6657
+ __typename?: 'mutation_root';
6658
+ update_asset_imports?: {
6659
+ __typename?: 'asset_imports_mutation_response';
6660
+ affected_rows: number;
6661
+ } | null;
6662
+ };
6663
+ export type AssetImportStatusQueryVariables = Exact<{
6664
+ id: Scalars['uuid']['input'];
6665
+ }>;
6666
+ export type AssetImportStatusQuery = {
6667
+ __typename?: 'query_root';
6668
+ asset_imports_by_pk?: {
6669
+ __typename?: 'asset_imports';
6670
+ id: any;
6671
+ status: string;
6672
+ phase: string;
6673
+ bytes: any;
6674
+ total_bytes: any;
6675
+ code?: string | null;
6676
+ error?: string | null;
6677
+ asset_id?: any | null;
6678
+ finished_at?: any | null;
6679
+ } | null;
6680
+ };
6681
+ export type UserAssetImportsQueryVariables = Exact<{
6682
+ limit?: InputMaybe<Scalars['Int']['input']>;
6683
+ failedSince: Scalars['timestamptz']['input'];
6684
+ }>;
6685
+ export type UserAssetImportsQuery = {
6686
+ __typename?: 'query_root';
6687
+ asset_imports: Array<{
6688
+ __typename?: 'asset_imports';
6689
+ id: any;
6690
+ source_url: string;
6691
+ status: string;
6692
+ phase: string;
6693
+ bytes: any;
6694
+ total_bytes: any;
6695
+ code?: string | null;
6696
+ error?: string | null;
6697
+ asset_id?: any | null;
6698
+ started_at: any;
6699
+ finished_at?: any | null;
6700
+ }>;
6701
+ };
6223
6702
  export type DeleteAssetActionMutationVariables = Exact<{
6224
6703
  id: Scalars['uuid']['input'];
6225
6704
  }>;
@@ -6803,6 +7282,11 @@ export type PipelineModelsQuery = {
6803
7282
  public_name?: string | null;
6804
7283
  description: string;
6805
7284
  provider: string;
7285
+ icon_url?: string | null;
7286
+ provider_info: {
7287
+ __typename?: 'providers';
7288
+ label?: string | null;
7289
+ };
6806
7290
  translations: Array<{
6807
7291
  __typename?: 'model_translations';
6808
7292
  locale: string;
@@ -6859,6 +7343,8 @@ export type GetPipelineRunQuery = {
6859
7343
  output?: any | null;
6860
7344
  error_message?: string | null;
6861
7345
  credits_charged?: number | null;
7346
+ parent_run_id?: any | null;
7347
+ agent_actual_credits_mc?: number | null;
6862
7348
  created_at: any;
6863
7349
  completed_at?: any | null;
6864
7350
  share_token?: any | null;
@@ -6908,6 +7394,8 @@ export type GetPipelineRunsQuery = {
6908
7394
  output?: any | null;
6909
7395
  error_message?: string | null;
6910
7396
  credits_charged?: number | null;
7397
+ parent_run_id?: any | null;
7398
+ agent_actual_credits_mc?: number | null;
6911
7399
  created_at: any;
6912
7400
  completed_at?: any | null;
6913
7401
  share_token?: any | null;
@@ -6967,6 +7455,8 @@ export type GetPipelineRunsBySlugQuery = {
6967
7455
  output?: any | null;
6968
7456
  error_message?: string | null;
6969
7457
  credits_charged?: number | null;
7458
+ parent_run_id?: any | null;
7459
+ agent_actual_credits_mc?: number | null;
6970
7460
  created_at: any;
6971
7461
  completed_at?: any | null;
6972
7462
  share_token?: any | null;
@@ -7224,6 +7714,8 @@ export type WatchPipelineRunSubscription = {
7224
7714
  output?: any | null;
7225
7715
  error_message?: string | null;
7226
7716
  credits_charged?: number | null;
7717
+ parent_run_id?: any | null;
7718
+ agent_actual_credits_mc?: number | null;
7227
7719
  created_at: any;
7228
7720
  completed_at?: any | null;
7229
7721
  pipeline: {
@@ -7261,6 +7753,56 @@ export type WatchActivePipelineRunsSubscription = {
7261
7753
  };
7262
7754
  }>;
7263
7755
  };
7756
+ export type WatchPipelineRunsBySlugSubscriptionVariables = Exact<{
7757
+ slug: Scalars['String']['input'];
7758
+ limit?: InputMaybe<Scalars['Int']['input']>;
7759
+ offset?: InputMaybe<Scalars['Int']['input']>;
7760
+ }>;
7761
+ export type WatchPipelineRunsBySlugSubscription = {
7762
+ __typename?: 'subscription_root';
7763
+ pipeline_runs: Array<{
7764
+ __typename?: 'pipeline_runs';
7765
+ id: any;
7766
+ status: string;
7767
+ input: any;
7768
+ output?: any | null;
7769
+ error_message?: string | null;
7770
+ credits_charged?: number | null;
7771
+ created_at: any;
7772
+ completed_at?: any | null;
7773
+ share_token?: any | null;
7774
+ share_watermark: boolean;
7775
+ pipeline: {
7776
+ __typename?: 'pipelines';
7777
+ name: string;
7778
+ slug: string;
7779
+ output_schema: any;
7780
+ input_schema: any;
7781
+ ui_schema: any;
7782
+ cancellable: boolean;
7783
+ };
7784
+ assets: Array<{
7785
+ __typename?: 'assets';
7786
+ id: any;
7787
+ type: string;
7788
+ url: string;
7789
+ thumbnail_url?: string | null;
7790
+ }>;
7791
+ }>;
7792
+ };
7793
+ export type WatchPipelineRunCountBySlugSubscriptionVariables = Exact<{
7794
+ slug: Scalars['String']['input'];
7795
+ }>;
7796
+ export type WatchPipelineRunCountBySlugSubscription = {
7797
+ __typename?: 'subscription_root';
7798
+ pipeline_runs_aggregate: {
7799
+ __typename?: 'pipeline_runs_aggregate';
7800
+ aggregate?: {
7801
+ __typename?: 'pipeline_runs_aggregate_fields';
7802
+ count: number;
7803
+ } | null;
7804
+ };
7805
+ };
7264
7806
  export type WatchNotificationsSubscriptionVariables = Exact<{
7265
7807
  limit: Scalars['Int']['input'];
7266
7808
  }>;
@@ -7288,7 +7830,8 @@ export type WatchBillingUpdatesSubscription = {
7288
7830
  }>;
7289
7831
  };
7290
7832
  export type GetMyApiKeysQueryVariables = Exact<{
7291
- [key: string]: never;
7833
+ limit: Scalars['Int']['input'];
7834
+ offset: Scalars['Int']['input'];
7292
7835
  }>;
7293
7836
  export type GetMyApiKeysQuery = {
7294
7837
  __typename?: 'query_root';
@@ -7301,10 +7844,27 @@ export type GetMyApiKeysQuery = {
7301
7844
  created_at: any;
7302
7845
  expires_at: any;
7303
7846
  revoked_at?: any | null;
7847
+ credit_limit_mc?: any | null;
7848
+ reset_period: string;
7849
+ window_start?: any | null;
7850
+ window_used_mc: any;
7851
+ window_reserved_mc: any;
7852
+ lifetime_used_mc: any;
7304
7853
  }>;
7854
+ personal_access_tokens_aggregate: {
7855
+ __typename?: 'personal_access_tokens_aggregate';
7856
+ aggregate?: {
7857
+ __typename?: 'personal_access_tokens_aggregate_fields';
7858
+ count: number;
7859
+ } | null;
7860
+ };
7305
7861
  };
7306
7862
  export type CreatePersonalAccessTokenMutationVariables = Exact<{
7307
7863
  name: Scalars['String']['input'];
7864
+ scopes?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
7865
+ creditLimit?: InputMaybe<Scalars['Int']['input']>;
7866
+ resetPeriod?: InputMaybe<Scalars['String']['input']>;
7867
+ expiresInDays?: InputMaybe<Scalars['Int']['input']>;
7308
7868
  }>;
7309
7869
  export type CreatePersonalAccessTokenMutation = {
7310
7870
  __typename?: 'mutation_root';
@@ -7366,6 +7926,11 @@ export declare const RequestMultipartUploadDocument: DocumentNode;
7366
7926
  export declare const CompleteMultipartUploadDocument: DocumentNode;
7367
7927
  export declare const AbortMultipartUploadDocument: DocumentNode;
7368
7928
  export declare const CreateAssetDocument: DocumentNode;
7929
+ export declare const ImportMediaUrlDocument: DocumentNode;
7930
+ export declare const CancelMediaImportDocument: DocumentNode;
7931
+ export declare const DismissAssetImportDocument: DocumentNode;
7932
+ export declare const AssetImportStatusDocument: DocumentNode;
7933
+ export declare const UserAssetImportsDocument: DocumentNode;
7369
7934
  export declare const DeleteAssetActionDocument: DocumentNode;
7370
7935
  export declare const UpdateAssetTagsDocument: DocumentNode;
7371
7936
  export declare const LoginDocument: DocumentNode;
@@ -7413,6 +7978,8 @@ export declare const ScheduleSubscriptionPlanChangeDocument: DocumentNode;
7413
7978
  export declare const CancelSubscriptionPlanChangeDocument: DocumentNode;
7414
7979
  export declare const WatchPipelineRunDocument: DocumentNode;
7415
7980
  export declare const WatchActivePipelineRunsDocument: DocumentNode;
7981
+ export declare const WatchPipelineRunsBySlugDocument: DocumentNode;
7982
+ export declare const WatchPipelineRunCountBySlugDocument: DocumentNode;
7416
7983
  export declare const WatchNotificationsDocument: DocumentNode;
7417
7984
  export declare const WatchBillingUpdatesDocument: DocumentNode;
7418
7985
  export declare const GetMyApiKeysDocument: DocumentNode;
@@ -7443,6 +8010,11 @@ export declare function getSdk<C>(requester: Requester<C>): {
7443
8010
  CompleteMultipartUpload(variables: CompleteMultipartUploadMutationVariables, options?: C): Promise<CompleteMultipartUploadMutation>;
7444
8011
  AbortMultipartUpload(variables: AbortMultipartUploadMutationVariables, options?: C): Promise<AbortMultipartUploadMutation>;
7445
8012
  CreateAsset(variables: CreateAssetMutationVariables, options?: C): Promise<CreateAssetMutation>;
8013
+ ImportMediaURL(variables: ImportMediaUrlMutationVariables, options?: C): Promise<ImportMediaUrlMutation>;
8014
+ CancelMediaImport(variables: CancelMediaImportMutationVariables, options?: C): Promise<CancelMediaImportMutation>;
8015
+ DismissAssetImport(variables: DismissAssetImportMutationVariables, options?: C): Promise<DismissAssetImportMutation>;
8016
+ AssetImportStatus(variables: AssetImportStatusQueryVariables, options?: C): Promise<AssetImportStatusQuery>;
8017
+ UserAssetImports(variables: UserAssetImportsQueryVariables, options?: C): Promise<UserAssetImportsQuery>;
7446
8018
  DeleteAssetAction(variables: DeleteAssetActionMutationVariables, options?: C): Promise<DeleteAssetActionMutation>;
7447
8019
  UpdateAssetTags(variables: UpdateAssetTagsMutationVariables, options?: C): Promise<UpdateAssetTagsMutation>;
7448
8020
  Login(variables: LoginMutationVariables, options?: C): Promise<LoginMutation>;
@@ -7490,9 +8062,11 @@ export declare function getSdk<C>(requester: Requester<C>): {
7490
8062
  CancelSubscriptionPlanChange(variables?: CancelSubscriptionPlanChangeMutationVariables, options?: C): Promise<CancelSubscriptionPlanChangeMutation>;
7491
8063
  WatchPipelineRun(variables: WatchPipelineRunSubscriptionVariables, options?: C): AsyncIterable<WatchPipelineRunSubscription>;
7492
8064
  WatchActivePipelineRuns(variables?: WatchActivePipelineRunsSubscriptionVariables, options?: C): AsyncIterable<WatchActivePipelineRunsSubscription>;
8065
+ WatchPipelineRunsBySlug(variables: WatchPipelineRunsBySlugSubscriptionVariables, options?: C): AsyncIterable<WatchPipelineRunsBySlugSubscription>;
8066
+ WatchPipelineRunCountBySlug(variables: WatchPipelineRunCountBySlugSubscriptionVariables, options?: C): AsyncIterable<WatchPipelineRunCountBySlugSubscription>;
7493
8067
  WatchNotifications(variables: WatchNotificationsSubscriptionVariables, options?: C): AsyncIterable<WatchNotificationsSubscription>;
7494
8068
  WatchBillingUpdates(variables?: WatchBillingUpdatesSubscriptionVariables, options?: C): AsyncIterable<WatchBillingUpdatesSubscription>;
7495
- GetMyApiKeys(variables?: GetMyApiKeysQueryVariables, options?: C): Promise<GetMyApiKeysQuery>;
8069
+ GetMyApiKeys(variables: GetMyApiKeysQueryVariables, options?: C): Promise<GetMyApiKeysQuery>;
7496
8070
  CreatePersonalAccessToken(variables: CreatePersonalAccessTokenMutationVariables, options?: C): Promise<CreatePersonalAccessTokenMutation>;
7497
8071
  RevokePersonalAccessToken(variables: RevokePersonalAccessTokenMutationVariables, options?: C): Promise<RevokePersonalAccessTokenMutation>;
7498
8072
  GetCurrentUser(variables?: GetCurrentUserQueryVariables, options?: C): Promise<GetCurrentUserQuery>;
@@ -29,6 +29,34 @@ export var Affiliates_Select_Column;
29
29
  /** column name */
30
30
  Affiliates_Select_Column["WhopAffiliateId"] = "whop_affiliate_id";
31
31
  })(Affiliates_Select_Column || (Affiliates_Select_Column = {}));
32
+ /** select columns of table "asset_imports" */
33
+ export var Asset_Imports_Select_Column;
34
+ (function (Asset_Imports_Select_Column) {
35
+ /** column name */
36
+ Asset_Imports_Select_Column["AssetId"] = "asset_id";
37
+ /** column name */
38
+ Asset_Imports_Select_Column["Bytes"] = "bytes";
39
+ /** column name */
40
+ Asset_Imports_Select_Column["Code"] = "code";
41
+ /** column name */
42
+ Asset_Imports_Select_Column["DismissedAt"] = "dismissed_at";
43
+ /** column name */
44
+ Asset_Imports_Select_Column["Error"] = "error";
45
+ /** column name */
46
+ Asset_Imports_Select_Column["FinishedAt"] = "finished_at";
47
+ /** column name */
48
+ Asset_Imports_Select_Column["Id"] = "id";
49
+ /** column name */
50
+ Asset_Imports_Select_Column["Phase"] = "phase";
51
+ /** column name */
52
+ Asset_Imports_Select_Column["SourceUrl"] = "source_url";
53
+ /** column name */
54
+ Asset_Imports_Select_Column["StartedAt"] = "started_at";
55
+ /** column name */
56
+ Asset_Imports_Select_Column["Status"] = "status";
57
+ /** column name */
58
+ Asset_Imports_Select_Column["TotalBytes"] = "total_bytes";
59
+ })(Asset_Imports_Select_Column || (Asset_Imports_Select_Column = {}));
32
60
  /** select columns of table "assets" */
33
61
  export var Assets_Select_Column;
34
62
  (function (Assets_Select_Column) {
@@ -349,17 +377,29 @@ export var Personal_Access_Tokens_Select_Column;
349
377
  /** column name */
350
378
  Personal_Access_Tokens_Select_Column["CreatedAt"] = "created_at";
351
379
  /** column name */
380
+ Personal_Access_Tokens_Select_Column["CreditLimitMc"] = "credit_limit_mc";
381
+ /** column name */
352
382
  Personal_Access_Tokens_Select_Column["ExpiresAt"] = "expires_at";
353
383
  /** column name */
354
384
  Personal_Access_Tokens_Select_Column["Id"] = "id";
355
385
  /** column name */
356
386
  Personal_Access_Tokens_Select_Column["LastUsedAt"] = "last_used_at";
357
387
  /** column name */
388
+ Personal_Access_Tokens_Select_Column["LifetimeUsedMc"] = "lifetime_used_mc";
389
+ /** column name */
358
390
  Personal_Access_Tokens_Select_Column["Name"] = "name";
359
391
  /** column name */
392
+ Personal_Access_Tokens_Select_Column["ResetPeriod"] = "reset_period";
393
+ /** column name */
360
394
  Personal_Access_Tokens_Select_Column["RevokedAt"] = "revoked_at";
361
395
  /** column name */
362
396
  Personal_Access_Tokens_Select_Column["Scopes"] = "scopes";
397
+ /** column name */
398
+ Personal_Access_Tokens_Select_Column["WindowReservedMc"] = "window_reserved_mc";
399
+ /** column name */
400
+ Personal_Access_Tokens_Select_Column["WindowStart"] = "window_start";
401
+ /** column name */
402
+ Personal_Access_Tokens_Select_Column["WindowUsedMc"] = "window_used_mc";
363
403
  })(Personal_Access_Tokens_Select_Column || (Personal_Access_Tokens_Select_Column = {}));
364
404
  /** select columns of table "pipeline_examples" */
365
405
  export var Pipeline_Examples_Select_Column;
@@ -428,6 +468,8 @@ export var Pipeline_Models_Select_Column;
428
468
  /** select columns of table "pipeline_runs" */
429
469
  export var Pipeline_Runs_Select_Column;
430
470
  (function (Pipeline_Runs_Select_Column) {
471
+ /** column name */
472
+ Pipeline_Runs_Select_Column["AgentActualCreditsMc"] = "agent_actual_credits_mc";
431
473
  /** column name */
432
474
  Pipeline_Runs_Select_Column["CompletedAt"] = "completed_at";
433
475
  /** column name */
@@ -443,6 +485,8 @@ export var Pipeline_Runs_Select_Column;
443
485
  /** column name */
444
486
  Pipeline_Runs_Select_Column["Output"] = "output";
445
487
  /** column name */
488
+ Pipeline_Runs_Select_Column["ParentRunId"] = "parent_run_id";
489
+ /** column name */
446
490
  Pipeline_Runs_Select_Column["PipelineId"] = "pipeline_id";
447
491
  /** column name */
448
492
  Pipeline_Runs_Select_Column["ShareToken"] = "share_token";
@@ -916,6 +960,65 @@ export const CreateAssetDocument = gql `
916
960
  }
917
961
  }
918
962
  `;
963
+ export const ImportMediaUrlDocument = gql `
964
+ mutation ImportMediaURL($url: String!, $tags: [String!] = []) {
965
+ import_media_url(url: $url, tags: $tags) {
966
+ import_id
967
+ status
968
+ }
969
+ }
970
+ `;
971
+ export const CancelMediaImportDocument = gql `
972
+ mutation CancelMediaImport($importId: String!) {
973
+ cancel_media_import(import_id: $importId) {
974
+ import_id
975
+ status
976
+ }
977
+ }
978
+ `;
979
+ export const DismissAssetImportDocument = gql `
980
+ mutation DismissAssetImport($id: uuid!) {
981
+ update_asset_imports(where: {id: {_eq: $id}}, _set: {dismissed_at: "now()"}) {
982
+ affected_rows
983
+ }
984
+ }
985
+ `;
986
+ export const AssetImportStatusDocument = gql `
987
+ query AssetImportStatus($id: uuid!) {
988
+ asset_imports_by_pk(id: $id) {
989
+ id
990
+ status
991
+ phase
992
+ bytes
993
+ total_bytes
994
+ code
995
+ error
996
+ asset_id
997
+ finished_at
998
+ }
999
+ }
1000
+ `;
1001
+ export const UserAssetImportsDocument = gql `
1002
+ query UserAssetImports($limit: Int = 10, $failedSince: timestamptz!) {
1003
+ asset_imports(
1004
+ where: {_or: [{finished_at: {_is_null: true}}, {status: {_eq: "failed"}, finished_at: {_gte: $failedSince}, dismissed_at: {_is_null: true}}]}
1005
+ order_by: {started_at: desc}
1006
+ limit: $limit
1007
+ ) {
1008
+ id
1009
+ source_url
1010
+ status
1011
+ phase
1012
+ bytes
1013
+ total_bytes
1014
+ code
1015
+ error
1016
+ asset_id
1017
+ started_at
1018
+ finished_at
1019
+ }
1020
+ }
1021
+ `;
919
1022
  export const DeleteAssetActionDocument = gql `
920
1023
  mutation DeleteAssetAction($id: uuid!) {
921
1024
  delete_asset(id: $id) {
@@ -1407,6 +1510,10 @@ export const PipelineModelsDocument = gql `
1407
1510
  public_name
1408
1511
  description
1409
1512
  provider
1513
+ provider_info {
1514
+ label
1515
+ }
1516
+ icon_url
1410
1517
  translations {
1411
1518
  locale
1412
1519
  description
@@ -1449,6 +1556,8 @@ export const GetPipelineRunDocument = gql `
1449
1556
  output
1450
1557
  error_message
1451
1558
  credits_charged
1559
+ parent_run_id
1560
+ agent_actual_credits_mc
1452
1561
  created_at
1453
1562
  completed_at
1454
1563
  share_token
@@ -1506,6 +1615,8 @@ export const GetPipelineRunsDocument = gql `
1506
1615
  output
1507
1616
  error_message
1508
1617
  credits_charged
1618
+ parent_run_id
1619
+ agent_actual_credits_mc
1509
1620
  created_at
1510
1621
  completed_at
1511
1622
  share_token
@@ -1555,6 +1666,8 @@ export const GetPipelineRunsBySlugDocument = gql `
1555
1666
  output
1556
1667
  error_message
1557
1668
  credits_charged
1669
+ parent_run_id
1670
+ agent_actual_credits_mc
1558
1671
  created_at
1559
1672
  completed_at
1560
1673
  share_token
@@ -1761,6 +1874,8 @@ export const WatchPipelineRunDocument = gql `
1761
1874
  output
1762
1875
  error_message
1763
1876
  credits_charged
1877
+ parent_run_id
1878
+ agent_actual_credits_mc
1764
1879
  created_at
1765
1880
  completed_at
1766
1881
  pipeline {
@@ -1797,6 +1912,50 @@ export const WatchActivePipelineRunsDocument = gql `
1797
1912
  }
1798
1913
  }
1799
1914
  `;
1915
+ export const WatchPipelineRunsBySlugDocument = gql `
1916
+ subscription WatchPipelineRunsBySlug($slug: String!, $limit: Int = 10, $offset: Int = 0) {
1917
+ pipeline_runs(
1918
+ where: {pipeline: {slug: {_eq: $slug}}}
1919
+ order_by: {created_at: desc}
1920
+ limit: $limit
1921
+ offset: $offset
1922
+ ) {
1923
+ id
1924
+ status
1925
+ pipeline {
1926
+ name
1927
+ slug
1928
+ output_schema
1929
+ input_schema
1930
+ ui_schema
1931
+ cancellable
1932
+ }
1933
+ input
1934
+ output
1935
+ error_message
1936
+ credits_charged
1937
+ created_at
1938
+ completed_at
1939
+ share_token
1940
+ share_watermark
1941
+ assets {
1942
+ id
1943
+ type
1944
+ url
1945
+ thumbnail_url
1946
+ }
1947
+ }
1948
+ }
1949
+ `;
1950
+ export const WatchPipelineRunCountBySlugDocument = gql `
1951
+ subscription WatchPipelineRunCountBySlug($slug: String!) {
1952
+ pipeline_runs_aggregate(where: {pipeline: {slug: {_eq: $slug}}}) {
1953
+ aggregate {
1954
+ count
1955
+ }
1956
+ }
1957
+ }
1958
+ `;
1800
1959
  export const WatchNotificationsDocument = gql `
1801
1960
  subscription WatchNotifications($limit: Int!) {
1802
1961
  notifications(order_by: {created_at: desc}, limit: $limit) {
@@ -1818,8 +1977,12 @@ export const WatchBillingUpdatesDocument = gql `
1818
1977
  }
1819
1978
  `;
1820
1979
  export const GetMyApiKeysDocument = gql `
1821
- query GetMyApiKeys {
1822
- personal_access_tokens(order_by: {created_at: desc}) {
1980
+ query GetMyApiKeys($limit: Int!, $offset: Int!) {
1981
+ personal_access_tokens(
1982
+ order_by: [{created_at: desc}, {id: desc}]
1983
+ limit: $limit
1984
+ offset: $offset
1985
+ ) {
1823
1986
  id
1824
1987
  name
1825
1988
  scopes
@@ -1827,12 +1990,29 @@ export const GetMyApiKeysDocument = gql `
1827
1990
  created_at
1828
1991
  expires_at
1829
1992
  revoked_at
1993
+ credit_limit_mc
1994
+ reset_period
1995
+ window_start
1996
+ window_used_mc
1997
+ window_reserved_mc
1998
+ lifetime_used_mc
1999
+ }
2000
+ personal_access_tokens_aggregate {
2001
+ aggregate {
2002
+ count
2003
+ }
1830
2004
  }
1831
2005
  }
1832
2006
  `;
1833
2007
  export const CreatePersonalAccessTokenDocument = gql `
1834
- mutation CreatePersonalAccessToken($name: String!) {
1835
- create_personal_access_token(name: $name) {
2008
+ mutation CreatePersonalAccessToken($name: String!, $scopes: [String!], $creditLimit: Int, $resetPeriod: String, $expiresInDays: Int) {
2009
+ create_personal_access_token(
2010
+ name: $name
2011
+ scopes: $scopes
2012
+ credit_limit: $creditLimit
2013
+ reset_period: $resetPeriod
2014
+ expires_in_days: $expiresInDays
2015
+ ) {
1836
2016
  success
1837
2017
  id
1838
2018
  token
@@ -1930,6 +2110,21 @@ export function getSdk(requester) {
1930
2110
  CreateAsset(variables, options) {
1931
2111
  return requester(CreateAssetDocument, variables, options);
1932
2112
  },
2113
+ ImportMediaURL(variables, options) {
2114
+ return requester(ImportMediaUrlDocument, variables, options);
2115
+ },
2116
+ CancelMediaImport(variables, options) {
2117
+ return requester(CancelMediaImportDocument, variables, options);
2118
+ },
2119
+ DismissAssetImport(variables, options) {
2120
+ return requester(DismissAssetImportDocument, variables, options);
2121
+ },
2122
+ AssetImportStatus(variables, options) {
2123
+ return requester(AssetImportStatusDocument, variables, options);
2124
+ },
2125
+ UserAssetImports(variables, options) {
2126
+ return requester(UserAssetImportsDocument, variables, options);
2127
+ },
1933
2128
  DeleteAssetAction(variables, options) {
1934
2129
  return requester(DeleteAssetActionDocument, variables, options);
1935
2130
  },
@@ -2071,6 +2266,12 @@ export function getSdk(requester) {
2071
2266
  WatchActivePipelineRuns(variables, options) {
2072
2267
  return requester(WatchActivePipelineRunsDocument, variables, options);
2073
2268
  },
2269
+ WatchPipelineRunsBySlug(variables, options) {
2270
+ return requester(WatchPipelineRunsBySlugDocument, variables, options);
2271
+ },
2272
+ WatchPipelineRunCountBySlug(variables, options) {
2273
+ return requester(WatchPipelineRunCountBySlugDocument, variables, options);
2274
+ },
2074
2275
  WatchNotifications(variables, options) {
2075
2276
  return requester(WatchNotificationsDocument, variables, options);
2076
2277
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipe2-ai/sdk",
3
- "version": "2026.09.0",
3
+ "version": "2026.09.1",
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": {