vercel-api-js 0.21.2 → 0.22.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.
package/dist/index.d.cts CHANGED
@@ -186,7 +186,7 @@ type TeamLimited = {
186
186
  accessRequestedAt?: number;
187
187
  role: 'BILLING' | 'CONTRIBUTOR' | 'DEVELOPER' | 'MEMBER' | 'OWNER' | 'SECURITY' | 'VIEWER';
188
188
  teamRoles?: ('BILLING' | 'CONTRIBUTOR' | 'DEVELOPER' | 'MEMBER' | 'OWNER' | 'SECURITY' | 'VIEWER')[];
189
- teamPermissions?: ('CreateProject' | 'FullProductionDeployment')[];
189
+ teamPermissions?: ('CreateProject' | 'FullProductionDeployment' | 'UsageViewer')[];
190
190
  teamId?: string;
191
191
  createdAt: number;
192
192
  created: number;
@@ -722,6 +722,19 @@ type ReadAccessGroupResponse = {
722
722
  * @example 2
723
723
  */
724
724
  projectsCount: number;
725
+ /**
726
+ * Roles that the team has in the access group.
727
+ *
728
+ * @example BILLING
729
+ * @example DEVELOPER
730
+ */
731
+ teamRoles?: string[];
732
+ /**
733
+ * Permissions that the team has in the access group.
734
+ *
735
+ * @example CreateProject
736
+ */
737
+ teamPermissions?: string[];
725
738
  };
726
739
  type ReadAccessGroupVariables = {
727
740
  pathParams: ReadAccessGroupPathParams;
@@ -789,6 +802,19 @@ type UpdateAccessGroupResponse = {
789
802
  * @example 2
790
803
  */
791
804
  projectsCount: number;
805
+ /**
806
+ * Roles that the team has in the access group.
807
+ *
808
+ * @example BILLING
809
+ * @example DEVELOPER
810
+ */
811
+ teamRoles?: string[];
812
+ /**
813
+ * Permissions that the team has in the access group.
814
+ *
815
+ * @example CreateProject
816
+ */
817
+ teamPermissions?: string[];
792
818
  };
793
819
  type UpdateAccessGroupRequestBody = {
794
820
  /**
@@ -1017,6 +1043,19 @@ declare const listAccessGroups: (variables: ListAccessGroupsVariables, signal?:
1017
1043
  * @example 2
1018
1044
  */
1019
1045
  projectsCount: number;
1046
+ /**
1047
+ * Roles that the team has in the access group.
1048
+ *
1049
+ * @example DEVELOPER
1050
+ * @example BILLING
1051
+ */
1052
+ teamRoles?: string[];
1053
+ /**
1054
+ * Permissions that the team has in the access group.
1055
+ *
1056
+ * @example CreateProject
1057
+ */
1058
+ teamPermissions?: string[];
1020
1059
  }[];
1021
1060
  pagination: {
1022
1061
  count: number;
@@ -1067,6 +1106,19 @@ type CreateAccessGroupResponse = {
1067
1106
  * @example ag_123a6c5209bc3778245d011443644c8d27dc2c50
1068
1107
  */
1069
1108
  accessGroupId: string;
1109
+ /**
1110
+ * Roles that the team has in the access group.
1111
+ *
1112
+ * @example BILLING
1113
+ * @example DEVELOPER
1114
+ */
1115
+ teamRoles?: string[];
1116
+ /**
1117
+ * Permissions that the team has in the access group.
1118
+ *
1119
+ * @example CreateProject
1120
+ */
1121
+ teamPermissions?: string[];
1070
1122
  };
1071
1123
  type CreateAccessGroupRequestBody = {
1072
1124
  /**
@@ -2582,6 +2634,7 @@ type UpdateProjectDataCacheResponse = {
2582
2634
  ownEvent?: ACLAction[];
2583
2635
  sensitiveEnvironmentVariablePolicy?: ACLAction[];
2584
2636
  fileUpload?: ACLAction[];
2637
+ flagsExplorerSubscription?: ACLAction[];
2585
2638
  gitRepository?: ACLAction[];
2586
2639
  ipBlocking?: ACLAction[];
2587
2640
  imageOptimizationNewPrice?: ACLAction[];
@@ -2603,6 +2656,7 @@ type UpdateProjectDataCacheResponse = {
2603
2656
  marketplaceExperimentationItem?: ACLAction[];
2604
2657
  marketplaceExperimentationEdgeConfigData?: ACLAction[];
2605
2658
  jobGlobal?: ACLAction[];
2659
+ drain?: ACLAction[];
2606
2660
  logDrain?: ACLAction[];
2607
2661
  Monitoring?: ACLAction[];
2608
2662
  monitoringSettings?: ACLAction[];
@@ -2768,6 +2822,12 @@ type UpdateProjectDataCacheResponse = {
2768
2822
  */
2769
2823
  onCommit: boolean;
2770
2824
  };
2825
+ gitProviderOptions?: {
2826
+ /**
2827
+ * Whether the Vercel bot should automatically create GitHub deployments https://docs.github.com/en/rest/deployments/deployments#about-deployments NOTE: repository-dispatch events should be used instead
2828
+ */
2829
+ createDeployments: 'disabled' | 'enabled';
2830
+ };
2771
2831
  paused?: boolean;
2772
2832
  concurrencyBucketName?: string;
2773
2833
  webAnalytics?: {
@@ -2851,6 +2911,12 @@ type UpdateProjectDataCacheResponse = {
2851
2911
  ja3Enabled?: boolean;
2852
2912
  ja4Enabled?: boolean;
2853
2913
  firewallBypassIps?: string[];
2914
+ managedRules?: {
2915
+ [key: string]: {
2916
+ active: boolean;
2917
+ action?: 'challenge' | 'deny' | 'log';
2918
+ };
2919
+ } | null;
2854
2920
  };
2855
2921
  oidcTokenConfig?: {
2856
2922
  enabled: boolean;
@@ -3144,9 +3210,9 @@ declare const getDeployment: (variables: GetDeploymentVariables, signal?: AbortS
3144
3210
  action?: string;
3145
3211
  } | null;
3146
3212
  id: string;
3213
+ name: string;
3147
3214
  type: "LAMBDAS";
3148
3215
  createdAt: number;
3149
- name: string;
3150
3216
  readyState: "QUEUED" | "BUILDING" | "ERROR" | "INITIALIZING" | "READY" | "CANCELED";
3151
3217
  aliasError?: {
3152
3218
  code: string;
@@ -3494,9 +3560,9 @@ declare const getDeployment: (variables: GetDeploymentVariables, signal?: AbortS
3494
3560
  action?: string;
3495
3561
  } | null;
3496
3562
  id: string;
3563
+ name: string;
3497
3564
  type: "LAMBDAS";
3498
3565
  createdAt: number;
3499
- name: string;
3500
3566
  readyState: "QUEUED" | "BUILDING" | "ERROR" | "INITIALIZING" | "READY" | "CANCELED";
3501
3567
  aliasError?: {
3502
3568
  code: string;
@@ -3759,8 +3825,8 @@ type CreateDeploymentResponse = {
3759
3825
  id: string;
3760
3826
  };
3761
3827
  type: 'LAMBDAS';
3762
- createdAt: number;
3763
3828
  name: string;
3829
+ createdAt: number;
3764
3830
  deletedAt?: number | null;
3765
3831
  id: string;
3766
3832
  version: 2;
@@ -3886,6 +3952,7 @@ type CreateDeploymentResponse = {
3886
3952
  project_id: string;
3887
3953
  environment: string;
3888
3954
  };
3955
+ plan: 'enterprise' | 'hobby' | 'pro';
3889
3956
  projectId: string;
3890
3957
  ownerId: string;
3891
3958
  microfrontends?: {
@@ -4016,7 +4083,6 @@ type CreateDeploymentResponse = {
4016
4083
  schedule: string;
4017
4084
  path: string;
4018
4085
  }[];
4019
- plan: 'enterprise' | 'hobby' | 'pro';
4020
4086
  connectBuildsEnabled?: boolean;
4021
4087
  connectConfigurationId?: string;
4022
4088
  createdIn: string;
@@ -6459,7 +6525,7 @@ type CreateEdgeConfigRequestBody = {
6459
6525
  */
6460
6526
  slug: string;
6461
6527
  items?: {
6462
- [key: string]: (string | number | boolean | null | Record<string, any>) | (string | number | boolean | null | Record<string, any>)[];
6528
+ [key: string]: any;
6463
6529
  };
6464
6530
  };
6465
6531
  type CreateEdgeConfigVariables = {
@@ -8713,7 +8779,7 @@ type PutV1InstallationsIntegrationConfigurationIdResourcesResourceIdExperimentat
8713
8779
  };
8714
8780
  type PutV1InstallationsIntegrationConfigurationIdResourcesResourceIdExperimentationEdgeConfigRequestBody = {
8715
8781
  data: {
8716
- [key: string]: (string | number | boolean | null | Record<string, any>) | (string | number | boolean | null | Record<string, any>)[];
8782
+ [key: string]: any;
8717
8783
  };
8718
8784
  };
8719
8785
  type PutV1InstallationsIntegrationConfigurationIdResourcesResourceIdExperimentationEdgeConfigVariables = {
@@ -9565,6 +9631,7 @@ type GetProjectsResponse = {
9565
9631
  ownEvent?: ACLAction[];
9566
9632
  sensitiveEnvironmentVariablePolicy?: ACLAction[];
9567
9633
  fileUpload?: ACLAction[];
9634
+ flagsExplorerSubscription?: ACLAction[];
9568
9635
  gitRepository?: ACLAction[];
9569
9636
  ipBlocking?: ACLAction[];
9570
9637
  imageOptimizationNewPrice?: ACLAction[];
@@ -9586,6 +9653,7 @@ type GetProjectsResponse = {
9586
9653
  marketplaceExperimentationItem?: ACLAction[];
9587
9654
  marketplaceExperimentationEdgeConfigData?: ACLAction[];
9588
9655
  jobGlobal?: ACLAction[];
9656
+ drain?: ACLAction[];
9589
9657
  logDrain?: ACLAction[];
9590
9658
  Monitoring?: ACLAction[];
9591
9659
  monitoringSettings?: ACLAction[];
@@ -9751,6 +9819,12 @@ type GetProjectsResponse = {
9751
9819
  */
9752
9820
  onCommit: boolean;
9753
9821
  };
9822
+ gitProviderOptions?: {
9823
+ /**
9824
+ * Whether the Vercel bot should automatically create GitHub deployments https://docs.github.com/en/rest/deployments/deployments#about-deployments NOTE: repository-dispatch events should be used instead
9825
+ */
9826
+ createDeployments: 'disabled' | 'enabled';
9827
+ };
9754
9828
  paused?: boolean;
9755
9829
  concurrencyBucketName?: string;
9756
9830
  webAnalytics?: {
@@ -9834,6 +9908,12 @@ type GetProjectsResponse = {
9834
9908
  ja3Enabled?: boolean;
9835
9909
  ja4Enabled?: boolean;
9836
9910
  firewallBypassIps?: string[];
9911
+ managedRules?: {
9912
+ [key: string]: {
9913
+ active: boolean;
9914
+ action?: 'challenge' | 'deny' | 'log';
9915
+ };
9916
+ } | null;
9837
9917
  };
9838
9918
  oidcTokenConfig?: {
9839
9919
  enabled: boolean;
@@ -10368,6 +10448,7 @@ type CreateProjectResponse = {
10368
10448
  ownEvent?: ACLAction[];
10369
10449
  sensitiveEnvironmentVariablePolicy?: ACLAction[];
10370
10450
  fileUpload?: ACLAction[];
10451
+ flagsExplorerSubscription?: ACLAction[];
10371
10452
  gitRepository?: ACLAction[];
10372
10453
  ipBlocking?: ACLAction[];
10373
10454
  imageOptimizationNewPrice?: ACLAction[];
@@ -10389,6 +10470,7 @@ type CreateProjectResponse = {
10389
10470
  marketplaceExperimentationItem?: ACLAction[];
10390
10471
  marketplaceExperimentationEdgeConfigData?: ACLAction[];
10391
10472
  jobGlobal?: ACLAction[];
10473
+ drain?: ACLAction[];
10392
10474
  logDrain?: ACLAction[];
10393
10475
  Monitoring?: ACLAction[];
10394
10476
  monitoringSettings?: ACLAction[];
@@ -10554,6 +10636,12 @@ type CreateProjectResponse = {
10554
10636
  */
10555
10637
  onCommit: boolean;
10556
10638
  };
10639
+ gitProviderOptions?: {
10640
+ /**
10641
+ * Whether the Vercel bot should automatically create GitHub deployments https://docs.github.com/en/rest/deployments/deployments#about-deployments NOTE: repository-dispatch events should be used instead
10642
+ */
10643
+ createDeployments: 'disabled' | 'enabled';
10644
+ };
10557
10645
  paused?: boolean;
10558
10646
  concurrencyBucketName?: string;
10559
10647
  webAnalytics?: {
@@ -10637,6 +10725,12 @@ type CreateProjectResponse = {
10637
10725
  ja3Enabled?: boolean;
10638
10726
  ja4Enabled?: boolean;
10639
10727
  firewallBypassIps?: string[];
10728
+ managedRules?: {
10729
+ [key: string]: {
10730
+ active: boolean;
10731
+ action?: 'challenge' | 'deny' | 'log';
10732
+ };
10733
+ } | null;
10640
10734
  };
10641
10735
  oidcTokenConfig?: {
10642
10736
  enabled: boolean;
@@ -11303,6 +11397,7 @@ type GetProjectResponse = {
11303
11397
  ownEvent?: ACLAction[];
11304
11398
  sensitiveEnvironmentVariablePolicy?: ACLAction[];
11305
11399
  fileUpload?: ACLAction[];
11400
+ flagsExplorerSubscription?: ACLAction[];
11306
11401
  gitRepository?: ACLAction[];
11307
11402
  ipBlocking?: ACLAction[];
11308
11403
  imageOptimizationNewPrice?: ACLAction[];
@@ -11324,6 +11419,7 @@ type GetProjectResponse = {
11324
11419
  marketplaceExperimentationItem?: ACLAction[];
11325
11420
  marketplaceExperimentationEdgeConfigData?: ACLAction[];
11326
11421
  jobGlobal?: ACLAction[];
11422
+ drain?: ACLAction[];
11327
11423
  logDrain?: ACLAction[];
11328
11424
  Monitoring?: ACLAction[];
11329
11425
  monitoringSettings?: ACLAction[];
@@ -11489,6 +11585,12 @@ type GetProjectResponse = {
11489
11585
  */
11490
11586
  onCommit: boolean;
11491
11587
  };
11588
+ gitProviderOptions?: {
11589
+ /**
11590
+ * Whether the Vercel bot should automatically create GitHub deployments https://docs.github.com/en/rest/deployments/deployments#about-deployments NOTE: repository-dispatch events should be used instead
11591
+ */
11592
+ createDeployments: 'disabled' | 'enabled';
11593
+ };
11492
11594
  paused?: boolean;
11493
11595
  concurrencyBucketName?: string;
11494
11596
  webAnalytics?: {
@@ -11572,6 +11674,12 @@ type GetProjectResponse = {
11572
11674
  ja3Enabled?: boolean;
11573
11675
  ja4Enabled?: boolean;
11574
11676
  firewallBypassIps?: string[];
11677
+ managedRules?: {
11678
+ [key: string]: {
11679
+ active: boolean;
11680
+ action?: 'challenge' | 'deny' | 'log';
11681
+ };
11682
+ } | null;
11575
11683
  };
11576
11684
  oidcTokenConfig?: {
11577
11685
  enabled: boolean;
@@ -12113,6 +12221,7 @@ type UpdateProjectResponse = {
12113
12221
  ownEvent?: ACLAction[];
12114
12222
  sensitiveEnvironmentVariablePolicy?: ACLAction[];
12115
12223
  fileUpload?: ACLAction[];
12224
+ flagsExplorerSubscription?: ACLAction[];
12116
12225
  gitRepository?: ACLAction[];
12117
12226
  ipBlocking?: ACLAction[];
12118
12227
  imageOptimizationNewPrice?: ACLAction[];
@@ -12134,6 +12243,7 @@ type UpdateProjectResponse = {
12134
12243
  marketplaceExperimentationItem?: ACLAction[];
12135
12244
  marketplaceExperimentationEdgeConfigData?: ACLAction[];
12136
12245
  jobGlobal?: ACLAction[];
12246
+ drain?: ACLAction[];
12137
12247
  logDrain?: ACLAction[];
12138
12248
  Monitoring?: ACLAction[];
12139
12249
  monitoringSettings?: ACLAction[];
@@ -12299,6 +12409,12 @@ type UpdateProjectResponse = {
12299
12409
  */
12300
12410
  onCommit: boolean;
12301
12411
  };
12412
+ gitProviderOptions?: {
12413
+ /**
12414
+ * Whether the Vercel bot should automatically create GitHub deployments https://docs.github.com/en/rest/deployments/deployments#about-deployments NOTE: repository-dispatch events should be used instead
12415
+ */
12416
+ createDeployments: 'disabled' | 'enabled';
12417
+ };
12302
12418
  paused?: boolean;
12303
12419
  concurrencyBucketName?: string;
12304
12420
  webAnalytics?: {
@@ -12382,6 +12498,12 @@ type UpdateProjectResponse = {
12382
12498
  ja3Enabled?: boolean;
12383
12499
  ja4Enabled?: boolean;
12384
12500
  firewallBypassIps?: string[];
12501
+ managedRules?: {
12502
+ [key: string]: {
12503
+ active: boolean;
12504
+ action?: 'challenge' | 'deny' | 'log';
12505
+ };
12506
+ } | null;
12385
12507
  };
12386
12508
  oidcTokenConfig?: {
12387
12509
  enabled: boolean;
@@ -13569,19 +13691,21 @@ declare const filterProjectEnvs: (variables: FilterProjectEnvsVariables, signal?
13569
13691
  system?: boolean;
13570
13692
  }[];
13571
13693
  }>;
13572
- type GetProjectEnvPathParams = {
13694
+ type CreateProjectEnvPathParams = {
13573
13695
  /**
13574
13696
  * The unique project identifier or the project name
13575
13697
  *
13576
13698
  * @example prj_XLKmu1DyR1eY7zq8UgeRKbA7yVLA
13577
13699
  */
13578
13700
  idOrName: string;
13701
+ };
13702
+ type CreateProjectEnvQueryParams = {
13579
13703
  /**
13580
- * The unique ID for the environment variable to get the decrypted value.
13704
+ * Allow override of environment variable if it already exists
13705
+ *
13706
+ * @example true
13581
13707
  */
13582
- id: string;
13583
- };
13584
- type GetProjectEnvQueryParams = {
13708
+ upsert?: string;
13585
13709
  /**
13586
13710
  * The Team identifier to perform the request on behalf of.
13587
13711
  */
@@ -13591,293 +13715,13 @@ type GetProjectEnvQueryParams = {
13591
13715
  */
13592
13716
  slug?: string;
13593
13717
  };
13594
- type GetProjectEnvError = ErrorWrapper<undefined>;
13595
- type GetProjectEnvVariables = {
13596
- pathParams: GetProjectEnvPathParams;
13597
- queryParams?: GetProjectEnvQueryParams;
13598
- } & FetcherExtraProps;
13599
- /**
13600
- * Retrieve the environment variable for a given project.
13601
- */
13602
- declare const getProjectEnv: (variables: GetProjectEnvVariables, signal?: AbortSignal) => Promise<{
13603
- decrypted: boolean;
13604
- target?: ("production" | "preview" | "development" | "preview" | "development")[] | ("production" | "preview" | "development" | "preview" | "development");
13605
- type: "system" | "encrypted" | "plain" | "sensitive" | "secret";
13606
- /**
13607
- * This is used to identiy variables that have been migrated from type secret to sensitive.
13608
- */
13609
- sunsetSecretId?: string;
13610
- id?: string;
13611
- key: string;
13612
- configurationId?: string | null;
13613
- createdAt?: number;
13614
- updatedAt?: number;
13615
- createdBy?: string | null;
13616
- updatedBy?: string | null;
13617
- gitBranch?: string;
13618
- edgeConfigId?: string | null;
13619
- edgeConfigTokenId?: string | null;
13620
- contentHint?: {
13621
- type: "redis-url";
13622
- storeId: string;
13623
- } | {
13624
- type: "redis-rest-api-url";
13625
- storeId: string;
13626
- } | {
13627
- type: "redis-rest-api-token";
13628
- storeId: string;
13629
- } | {
13630
- type: "redis-rest-api-read-only-token";
13631
- storeId: string;
13632
- } | {
13633
- type: "blob-read-write-token";
13634
- storeId: string;
13635
- } | {
13636
- type: "postgres-url";
13637
- storeId: string;
13638
- } | {
13639
- type: "postgres-url-non-pooling";
13640
- storeId: string;
13641
- } | {
13642
- type: "postgres-prisma-url";
13643
- storeId: string;
13644
- } | {
13645
- type: "postgres-user";
13646
- storeId: string;
13647
- } | {
13648
- type: "postgres-host";
13649
- storeId: string;
13650
- } | {
13651
- type: "postgres-password";
13652
- storeId: string;
13653
- } | {
13654
- type: "postgres-database";
13655
- storeId: string;
13656
- } | {
13657
- type: "postgres-url-no-ssl";
13658
- storeId: string;
13659
- } | {
13660
- type: "integration-store-secret";
13661
- storeId: string;
13662
- integrationId: string;
13663
- integrationProductId: string;
13664
- integrationConfigurationId: string;
13665
- } | {
13666
- type: "flags-connection-string";
13667
- projectId: string;
13668
- } | null;
13669
- /**
13670
- * Similar to `contentHints`, but should not be exposed to the user.
13671
- */
13672
- internalContentHint?: {
13673
- type: "flags-secret";
13718
+ type CreateProjectEnvError = ErrorWrapper<undefined>;
13719
+ type CreateProjectEnvResponse = {
13720
+ created: {
13721
+ target?: ('production' | 'preview' | 'development' | 'preview' | 'development')[] | ('production' | 'preview' | 'development' | 'preview' | 'development');
13722
+ type?: 'system' | 'encrypted' | 'plain' | 'sensitive' | 'secret';
13674
13723
  /**
13675
- * Contains the `value` of the env variable, encrypted with a special key to make decryption possible in the subscriber Lambda.
13676
- */
13677
- encryptedValue: string;
13678
- } | null;
13679
- comment?: string;
13680
- customEnvironmentIds?: string[];
13681
- vsmValue?: string;
13682
- } | {
13683
- target?: ("production" | "preview" | "development" | "preview" | "development")[] | ("production" | "preview" | "development" | "preview" | "development");
13684
- type: "system" | "encrypted" | "plain" | "sensitive" | "secret";
13685
- /**
13686
- * This is used to identiy variables that have been migrated from type secret to sensitive.
13687
- */
13688
- sunsetSecretId?: string;
13689
- id?: string;
13690
- key: string;
13691
- value: string;
13692
- configurationId?: string | null;
13693
- createdAt?: number;
13694
- updatedAt?: number;
13695
- createdBy?: string | null;
13696
- updatedBy?: string | null;
13697
- gitBranch?: string;
13698
- edgeConfigId?: string | null;
13699
- edgeConfigTokenId?: string | null;
13700
- contentHint?: {
13701
- type: "redis-url";
13702
- storeId: string;
13703
- } | {
13704
- type: "redis-rest-api-url";
13705
- storeId: string;
13706
- } | {
13707
- type: "redis-rest-api-token";
13708
- storeId: string;
13709
- } | {
13710
- type: "redis-rest-api-read-only-token";
13711
- storeId: string;
13712
- } | {
13713
- type: "blob-read-write-token";
13714
- storeId: string;
13715
- } | {
13716
- type: "postgres-url";
13717
- storeId: string;
13718
- } | {
13719
- type: "postgres-url-non-pooling";
13720
- storeId: string;
13721
- } | {
13722
- type: "postgres-prisma-url";
13723
- storeId: string;
13724
- } | {
13725
- type: "postgres-user";
13726
- storeId: string;
13727
- } | {
13728
- type: "postgres-host";
13729
- storeId: string;
13730
- } | {
13731
- type: "postgres-password";
13732
- storeId: string;
13733
- } | {
13734
- type: "postgres-database";
13735
- storeId: string;
13736
- } | {
13737
- type: "postgres-url-no-ssl";
13738
- storeId: string;
13739
- } | {
13740
- type: "integration-store-secret";
13741
- storeId: string;
13742
- integrationId: string;
13743
- integrationProductId: string;
13744
- integrationConfigurationId: string;
13745
- } | {
13746
- type: "flags-connection-string";
13747
- projectId: string;
13748
- } | null;
13749
- /**
13750
- * Similar to `contentHints`, but should not be exposed to the user.
13751
- */
13752
- internalContentHint?: {
13753
- type: "flags-secret";
13754
- /**
13755
- * Contains the `value` of the env variable, encrypted with a special key to make decryption possible in the subscriber Lambda.
13756
- */
13757
- encryptedValue: string;
13758
- } | null;
13759
- /**
13760
- * Whether `value` and `vsmValue` are decrypted.
13761
- */
13762
- decrypted?: boolean;
13763
- comment?: string;
13764
- customEnvironmentIds?: string[];
13765
- vsmValue?: string;
13766
- } | {
13767
- target?: ("production" | "preview" | "development" | "preview" | "development")[] | ("production" | "preview" | "development" | "preview" | "development");
13768
- type: "system" | "encrypted" | "plain" | "sensitive" | "secret";
13769
- /**
13770
- * This is used to identiy variables that have been migrated from type secret to sensitive.
13771
- */
13772
- sunsetSecretId?: string;
13773
- id?: string;
13774
- key: string;
13775
- value: string;
13776
- configurationId?: string | null;
13777
- createdAt?: number;
13778
- updatedAt?: number;
13779
- createdBy?: string | null;
13780
- updatedBy?: string | null;
13781
- gitBranch?: string;
13782
- edgeConfigId?: string | null;
13783
- edgeConfigTokenId?: string | null;
13784
- contentHint?: {
13785
- type: "redis-url";
13786
- storeId: string;
13787
- } | {
13788
- type: "redis-rest-api-url";
13789
- storeId: string;
13790
- } | {
13791
- type: "redis-rest-api-token";
13792
- storeId: string;
13793
- } | {
13794
- type: "redis-rest-api-read-only-token";
13795
- storeId: string;
13796
- } | {
13797
- type: "blob-read-write-token";
13798
- storeId: string;
13799
- } | {
13800
- type: "postgres-url";
13801
- storeId: string;
13802
- } | {
13803
- type: "postgres-url-non-pooling";
13804
- storeId: string;
13805
- } | {
13806
- type: "postgres-prisma-url";
13807
- storeId: string;
13808
- } | {
13809
- type: "postgres-user";
13810
- storeId: string;
13811
- } | {
13812
- type: "postgres-host";
13813
- storeId: string;
13814
- } | {
13815
- type: "postgres-password";
13816
- storeId: string;
13817
- } | {
13818
- type: "postgres-database";
13819
- storeId: string;
13820
- } | {
13821
- type: "postgres-url-no-ssl";
13822
- storeId: string;
13823
- } | {
13824
- type: "integration-store-secret";
13825
- storeId: string;
13826
- integrationId: string;
13827
- integrationProductId: string;
13828
- integrationConfigurationId: string;
13829
- } | {
13830
- type: "flags-connection-string";
13831
- projectId: string;
13832
- } | null;
13833
- /**
13834
- * Similar to `contentHints`, but should not be exposed to the user.
13835
- */
13836
- internalContentHint?: {
13837
- type: "flags-secret";
13838
- /**
13839
- * Contains the `value` of the env variable, encrypted with a special key to make decryption possible in the subscriber Lambda.
13840
- */
13841
- encryptedValue: string;
13842
- } | null;
13843
- /**
13844
- * Whether `value` and `vsmValue` are decrypted.
13845
- */
13846
- decrypted?: boolean;
13847
- comment?: string;
13848
- customEnvironmentIds?: string[];
13849
- }>;
13850
- type CreateProjectEnvPathParams = {
13851
- /**
13852
- * The unique project identifier or the project name
13853
- *
13854
- * @example prj_XLKmu1DyR1eY7zq8UgeRKbA7yVLA
13855
- */
13856
- idOrName: string;
13857
- };
13858
- type CreateProjectEnvQueryParams = {
13859
- /**
13860
- * Allow override of environment variable if it already exists
13861
- *
13862
- * @example true
13863
- */
13864
- upsert?: string;
13865
- /**
13866
- * The Team identifier to perform the request on behalf of.
13867
- */
13868
- teamId?: string;
13869
- /**
13870
- * The Team slug to perform the request on behalf of.
13871
- */
13872
- slug?: string;
13873
- };
13874
- type CreateProjectEnvError = ErrorWrapper<undefined>;
13875
- type CreateProjectEnvResponse = {
13876
- created: {
13877
- target?: ('production' | 'preview' | 'development' | 'preview' | 'development')[] | ('production' | 'preview' | 'development' | 'preview' | 'development');
13878
- type?: 'system' | 'encrypted' | 'plain' | 'sensitive' | 'secret';
13879
- /**
13880
- * This is used to identiy variables that have been migrated from type secret to sensitive.
13724
+ * This is used to identiy variables that have been migrated from type secret to sensitive.
13881
13725
  */
13882
13726
  sunsetSecretId?: string;
13883
13727
  id?: string;
@@ -14241,6 +14085,284 @@ type CreateProjectEnvVariables = {
14241
14085
  * Create one or more environment variables for a project by passing its `key`, `value`, `type` and `target` and by specifying the project by either passing the project `id` or `name` in the URL. If you include `upsert=true` as a query parameter, a new environment variable will not be created if it already exists but, the existing variable's value will be updated.
14242
14086
  */
14243
14087
  declare const createProjectEnv: (variables: CreateProjectEnvVariables, signal?: AbortSignal) => Promise<CreateProjectEnvResponse>;
14088
+ type GetProjectEnvPathParams = {
14089
+ /**
14090
+ * The unique project identifier or the project name
14091
+ *
14092
+ * @example prj_XLKmu1DyR1eY7zq8UgeRKbA7yVLA
14093
+ */
14094
+ idOrName: string;
14095
+ /**
14096
+ * The unique ID for the environment variable to get the decrypted value.
14097
+ */
14098
+ id: string;
14099
+ };
14100
+ type GetProjectEnvQueryParams = {
14101
+ /**
14102
+ * The Team identifier to perform the request on behalf of.
14103
+ */
14104
+ teamId?: string;
14105
+ /**
14106
+ * The Team slug to perform the request on behalf of.
14107
+ */
14108
+ slug?: string;
14109
+ };
14110
+ type GetProjectEnvError = ErrorWrapper<undefined>;
14111
+ type GetProjectEnvVariables = {
14112
+ pathParams: GetProjectEnvPathParams;
14113
+ queryParams?: GetProjectEnvQueryParams;
14114
+ } & FetcherExtraProps;
14115
+ /**
14116
+ * Retrieve the environment variable for a given project.
14117
+ */
14118
+ declare const getProjectEnv: (variables: GetProjectEnvVariables, signal?: AbortSignal) => Promise<{
14119
+ decrypted: boolean;
14120
+ target?: ("production" | "preview" | "development" | "preview" | "development")[] | ("production" | "preview" | "development" | "preview" | "development");
14121
+ type: "system" | "encrypted" | "plain" | "sensitive" | "secret";
14122
+ /**
14123
+ * This is used to identiy variables that have been migrated from type secret to sensitive.
14124
+ */
14125
+ sunsetSecretId?: string;
14126
+ id?: string;
14127
+ key: string;
14128
+ configurationId?: string | null;
14129
+ createdAt?: number;
14130
+ updatedAt?: number;
14131
+ createdBy?: string | null;
14132
+ updatedBy?: string | null;
14133
+ gitBranch?: string;
14134
+ edgeConfigId?: string | null;
14135
+ edgeConfigTokenId?: string | null;
14136
+ contentHint?: {
14137
+ type: "redis-url";
14138
+ storeId: string;
14139
+ } | {
14140
+ type: "redis-rest-api-url";
14141
+ storeId: string;
14142
+ } | {
14143
+ type: "redis-rest-api-token";
14144
+ storeId: string;
14145
+ } | {
14146
+ type: "redis-rest-api-read-only-token";
14147
+ storeId: string;
14148
+ } | {
14149
+ type: "blob-read-write-token";
14150
+ storeId: string;
14151
+ } | {
14152
+ type: "postgres-url";
14153
+ storeId: string;
14154
+ } | {
14155
+ type: "postgres-url-non-pooling";
14156
+ storeId: string;
14157
+ } | {
14158
+ type: "postgres-prisma-url";
14159
+ storeId: string;
14160
+ } | {
14161
+ type: "postgres-user";
14162
+ storeId: string;
14163
+ } | {
14164
+ type: "postgres-host";
14165
+ storeId: string;
14166
+ } | {
14167
+ type: "postgres-password";
14168
+ storeId: string;
14169
+ } | {
14170
+ type: "postgres-database";
14171
+ storeId: string;
14172
+ } | {
14173
+ type: "postgres-url-no-ssl";
14174
+ storeId: string;
14175
+ } | {
14176
+ type: "integration-store-secret";
14177
+ storeId: string;
14178
+ integrationId: string;
14179
+ integrationProductId: string;
14180
+ integrationConfigurationId: string;
14181
+ } | {
14182
+ type: "flags-connection-string";
14183
+ projectId: string;
14184
+ } | null;
14185
+ /**
14186
+ * Similar to `contentHints`, but should not be exposed to the user.
14187
+ */
14188
+ internalContentHint?: {
14189
+ type: "flags-secret";
14190
+ /**
14191
+ * Contains the `value` of the env variable, encrypted with a special key to make decryption possible in the subscriber Lambda.
14192
+ */
14193
+ encryptedValue: string;
14194
+ } | null;
14195
+ comment?: string;
14196
+ customEnvironmentIds?: string[];
14197
+ vsmValue?: string;
14198
+ } | {
14199
+ target?: ("production" | "preview" | "development" | "preview" | "development")[] | ("production" | "preview" | "development" | "preview" | "development");
14200
+ type: "system" | "encrypted" | "plain" | "sensitive" | "secret";
14201
+ /**
14202
+ * This is used to identiy variables that have been migrated from type secret to sensitive.
14203
+ */
14204
+ sunsetSecretId?: string;
14205
+ id?: string;
14206
+ key: string;
14207
+ value: string;
14208
+ configurationId?: string | null;
14209
+ createdAt?: number;
14210
+ updatedAt?: number;
14211
+ createdBy?: string | null;
14212
+ updatedBy?: string | null;
14213
+ gitBranch?: string;
14214
+ edgeConfigId?: string | null;
14215
+ edgeConfigTokenId?: string | null;
14216
+ contentHint?: {
14217
+ type: "redis-url";
14218
+ storeId: string;
14219
+ } | {
14220
+ type: "redis-rest-api-url";
14221
+ storeId: string;
14222
+ } | {
14223
+ type: "redis-rest-api-token";
14224
+ storeId: string;
14225
+ } | {
14226
+ type: "redis-rest-api-read-only-token";
14227
+ storeId: string;
14228
+ } | {
14229
+ type: "blob-read-write-token";
14230
+ storeId: string;
14231
+ } | {
14232
+ type: "postgres-url";
14233
+ storeId: string;
14234
+ } | {
14235
+ type: "postgres-url-non-pooling";
14236
+ storeId: string;
14237
+ } | {
14238
+ type: "postgres-prisma-url";
14239
+ storeId: string;
14240
+ } | {
14241
+ type: "postgres-user";
14242
+ storeId: string;
14243
+ } | {
14244
+ type: "postgres-host";
14245
+ storeId: string;
14246
+ } | {
14247
+ type: "postgres-password";
14248
+ storeId: string;
14249
+ } | {
14250
+ type: "postgres-database";
14251
+ storeId: string;
14252
+ } | {
14253
+ type: "postgres-url-no-ssl";
14254
+ storeId: string;
14255
+ } | {
14256
+ type: "integration-store-secret";
14257
+ storeId: string;
14258
+ integrationId: string;
14259
+ integrationProductId: string;
14260
+ integrationConfigurationId: string;
14261
+ } | {
14262
+ type: "flags-connection-string";
14263
+ projectId: string;
14264
+ } | null;
14265
+ /**
14266
+ * Similar to `contentHints`, but should not be exposed to the user.
14267
+ */
14268
+ internalContentHint?: {
14269
+ type: "flags-secret";
14270
+ /**
14271
+ * Contains the `value` of the env variable, encrypted with a special key to make decryption possible in the subscriber Lambda.
14272
+ */
14273
+ encryptedValue: string;
14274
+ } | null;
14275
+ /**
14276
+ * Whether `value` and `vsmValue` are decrypted.
14277
+ */
14278
+ decrypted?: boolean;
14279
+ comment?: string;
14280
+ customEnvironmentIds?: string[];
14281
+ vsmValue?: string;
14282
+ } | {
14283
+ target?: ("production" | "preview" | "development" | "preview" | "development")[] | ("production" | "preview" | "development" | "preview" | "development");
14284
+ type: "system" | "encrypted" | "plain" | "sensitive" | "secret";
14285
+ /**
14286
+ * This is used to identiy variables that have been migrated from type secret to sensitive.
14287
+ */
14288
+ sunsetSecretId?: string;
14289
+ id?: string;
14290
+ key: string;
14291
+ value: string;
14292
+ configurationId?: string | null;
14293
+ createdAt?: number;
14294
+ updatedAt?: number;
14295
+ createdBy?: string | null;
14296
+ updatedBy?: string | null;
14297
+ gitBranch?: string;
14298
+ edgeConfigId?: string | null;
14299
+ edgeConfigTokenId?: string | null;
14300
+ contentHint?: {
14301
+ type: "redis-url";
14302
+ storeId: string;
14303
+ } | {
14304
+ type: "redis-rest-api-url";
14305
+ storeId: string;
14306
+ } | {
14307
+ type: "redis-rest-api-token";
14308
+ storeId: string;
14309
+ } | {
14310
+ type: "redis-rest-api-read-only-token";
14311
+ storeId: string;
14312
+ } | {
14313
+ type: "blob-read-write-token";
14314
+ storeId: string;
14315
+ } | {
14316
+ type: "postgres-url";
14317
+ storeId: string;
14318
+ } | {
14319
+ type: "postgres-url-non-pooling";
14320
+ storeId: string;
14321
+ } | {
14322
+ type: "postgres-prisma-url";
14323
+ storeId: string;
14324
+ } | {
14325
+ type: "postgres-user";
14326
+ storeId: string;
14327
+ } | {
14328
+ type: "postgres-host";
14329
+ storeId: string;
14330
+ } | {
14331
+ type: "postgres-password";
14332
+ storeId: string;
14333
+ } | {
14334
+ type: "postgres-database";
14335
+ storeId: string;
14336
+ } | {
14337
+ type: "postgres-url-no-ssl";
14338
+ storeId: string;
14339
+ } | {
14340
+ type: "integration-store-secret";
14341
+ storeId: string;
14342
+ integrationId: string;
14343
+ integrationProductId: string;
14344
+ integrationConfigurationId: string;
14345
+ } | {
14346
+ type: "flags-connection-string";
14347
+ projectId: string;
14348
+ } | null;
14349
+ /**
14350
+ * Similar to `contentHints`, but should not be exposed to the user.
14351
+ */
14352
+ internalContentHint?: {
14353
+ type: "flags-secret";
14354
+ /**
14355
+ * Contains the `value` of the env variable, encrypted with a special key to make decryption possible in the subscriber Lambda.
14356
+ */
14357
+ encryptedValue: string;
14358
+ } | null;
14359
+ /**
14360
+ * Whether `value` and `vsmValue` are decrypted.
14361
+ */
14362
+ decrypted?: boolean;
14363
+ comment?: string;
14364
+ customEnvironmentIds?: string[];
14365
+ }>;
14244
14366
  type RemoveProjectEnvPathParams = {
14245
14367
  /**
14246
14368
  * The unique project identifier or the project name
@@ -15627,7 +15749,7 @@ declare const getBypassIp: (variables: GetBypassIpVariables, signal?: AbortSigna
15627
15749
  UpdatedAt: string;
15628
15750
  UpdatedAtHour: string;
15629
15751
  DeletedAt?: string;
15630
- ExpiresAt?: number;
15752
+ ExpiresAt?: number | null;
15631
15753
  }[];
15632
15754
  pagination: void | null;
15633
15755
  } | {
@@ -15645,7 +15767,7 @@ declare const getBypassIp: (variables: GetBypassIpVariables, signal?: AbortSigna
15645
15767
  UpdatedAt: string;
15646
15768
  UpdatedAtHour: string;
15647
15769
  DeletedAt?: string;
15648
- ExpiresAt?: number;
15770
+ ExpiresAt?: number | null;
15649
15771
  }[];
15650
15772
  pagination?: {
15651
15773
  OwnerId: string;
@@ -15738,7 +15860,7 @@ declare const addBypassIp: (variables: AddBypassIpVariables, signal?: AbortSigna
15738
15860
  UpdatedAt: string;
15739
15861
  UpdatedAtHour: string;
15740
15862
  DeletedAt?: string;
15741
- ExpiresAt?: number;
15863
+ ExpiresAt?: number | null;
15742
15864
  }[];
15743
15865
  }>;
15744
15866
  type RemoveBypassIpQueryParams = {
@@ -16063,13 +16185,13 @@ declare const inviteUserToTeam: (variables: InviteUserToTeamVariables, signal?:
16063
16185
  *
16064
16186
  * @example CreateProject
16065
16187
  */
16066
- teamPermissions?: ("CreateProject" | "FullProductionDeployment")[];
16188
+ teamPermissions?: ("CreateProject" | "FullProductionDeployment" | "UsageViewer")[];
16067
16189
  } | {
16068
16190
  uid: string;
16069
16191
  username: string;
16070
16192
  role: "OWNER" | "MEMBER" | "DEVELOPER" | "SECURITY" | "BILLING" | "VIEWER" | "CONTRIBUTOR";
16071
16193
  teamRoles?: ("OWNER" | "MEMBER" | "DEVELOPER" | "SECURITY" | "BILLING" | "VIEWER" | "CONTRIBUTOR")[];
16072
- teamPermissions?: ("CreateProject" | "FullProductionDeployment")[];
16194
+ teamPermissions?: ("CreateProject" | "FullProductionDeployment" | "UsageViewer")[];
16073
16195
  }>;
16074
16196
  type RequestAccessToTeamError = ErrorWrapper<undefined>;
16075
16197
  type RequestAccessToTeamResponse = {
@@ -18716,6 +18838,19 @@ declare const operationsByTag: {
18716
18838
  * @example 2
18717
18839
  */
18718
18840
  projectsCount: number;
18841
+ /**
18842
+ * Roles that the team has in the access group.
18843
+ *
18844
+ * @example DEVELOPER
18845
+ * @example BILLING
18846
+ */
18847
+ teamRoles?: string[];
18848
+ /**
18849
+ * Permissions that the team has in the access group.
18850
+ *
18851
+ * @example CreateProject
18852
+ */
18853
+ teamPermissions?: string[];
18719
18854
  }[];
18720
18855
  pagination: {
18721
18856
  count: number;
@@ -19017,6 +19152,7 @@ declare const operationsByTag: {
19017
19152
  system?: boolean;
19018
19153
  }[];
19019
19154
  }>;
19155
+ createProjectEnv: (variables: CreateProjectEnvVariables, signal?: AbortSignal) => Promise<CreateProjectEnvResponse>;
19020
19156
  getProjectEnv: (variables: GetProjectEnvVariables, signal?: AbortSignal) => Promise<{
19021
19157
  decrypted: boolean;
19022
19158
  target?: ("production" | "preview" | "development" | "preview" | "development")[] | ("production" | "preview" | "development" | "preview" | "development");
@@ -19265,7 +19401,6 @@ declare const operationsByTag: {
19265
19401
  comment?: string;
19266
19402
  customEnvironmentIds?: string[];
19267
19403
  }>;
19268
- createProjectEnv: (variables: CreateProjectEnvVariables, signal?: AbortSignal) => Promise<CreateProjectEnvResponse>;
19269
19404
  removeProjectEnv: (variables: RemoveProjectEnvVariables, signal?: AbortSignal) => Promise<{
19270
19405
  system?: boolean;
19271
19406
  target?: ("production" | "preview" | "development" | "preview" | "development")[] | ("production" | "preview" | "development" | "preview" | "development");
@@ -19752,9 +19887,9 @@ declare const operationsByTag: {
19752
19887
  action?: string;
19753
19888
  } | null;
19754
19889
  id: string;
19890
+ name: string;
19755
19891
  type: "LAMBDAS";
19756
19892
  createdAt: number;
19757
- name: string;
19758
19893
  readyState: "QUEUED" | "BUILDING" | "ERROR" | "INITIALIZING" | "READY" | "CANCELED";
19759
19894
  aliasError?: {
19760
19895
  code: string;
@@ -20102,9 +20237,9 @@ declare const operationsByTag: {
20102
20237
  action?: string;
20103
20238
  } | null;
20104
20239
  id: string;
20240
+ name: string;
20105
20241
  type: "LAMBDAS";
20106
20242
  createdAt: number;
20107
- name: string;
20108
20243
  readyState: "QUEUED" | "BUILDING" | "ERROR" | "INITIALIZING" | "READY" | "CANCELED";
20109
20244
  aliasError?: {
20110
20245
  code: string;
@@ -21007,7 +21142,7 @@ declare const operationsByTag: {
21007
21142
  UpdatedAt: string;
21008
21143
  UpdatedAtHour: string;
21009
21144
  DeletedAt?: string;
21010
- ExpiresAt?: number;
21145
+ ExpiresAt?: number | null;
21011
21146
  }[];
21012
21147
  pagination: void | null;
21013
21148
  } | {
@@ -21025,7 +21160,7 @@ declare const operationsByTag: {
21025
21160
  UpdatedAt: string;
21026
21161
  UpdatedAtHour: string;
21027
21162
  DeletedAt?: string;
21028
- ExpiresAt?: number;
21163
+ ExpiresAt?: number | null;
21029
21164
  }[];
21030
21165
  pagination?: {
21031
21166
  OwnerId: string;
@@ -21059,7 +21194,7 @@ declare const operationsByTag: {
21059
21194
  UpdatedAt: string;
21060
21195
  UpdatedAtHour: string;
21061
21196
  DeletedAt?: string;
21062
- ExpiresAt?: number;
21197
+ ExpiresAt?: number | null;
21063
21198
  }[];
21064
21199
  }>;
21065
21200
  removeBypassIp: (variables: RemoveBypassIpVariables, signal?: AbortSignal) => Promise<RemoveBypassIpResponse>;
@@ -21102,13 +21237,13 @@ declare const operationsByTag: {
21102
21237
  *
21103
21238
  * @example CreateProject
21104
21239
  */
21105
- teamPermissions?: ("CreateProject" | "FullProductionDeployment")[];
21240
+ teamPermissions?: ("CreateProject" | "FullProductionDeployment" | "UsageViewer")[];
21106
21241
  } | {
21107
21242
  uid: string;
21108
21243
  username: string;
21109
21244
  role: "OWNER" | "MEMBER" | "DEVELOPER" | "SECURITY" | "BILLING" | "VIEWER" | "CONTRIBUTOR";
21110
21245
  teamRoles?: ("OWNER" | "MEMBER" | "DEVELOPER" | "SECURITY" | "BILLING" | "VIEWER" | "CONTRIBUTOR")[];
21111
- teamPermissions?: ("CreateProject" | "FullProductionDeployment")[];
21246
+ teamPermissions?: ("CreateProject" | "FullProductionDeployment" | "UsageViewer")[];
21112
21247
  }>;
21113
21248
  requestAccessToTeam: (variables: RequestAccessToTeamVariables, signal?: AbortSignal) => Promise<RequestAccessToTeamResponse>;
21114
21249
  getTeamAccessRequest: (variables: GetTeamAccessRequestVariables, signal?: AbortSignal) => Promise<GetTeamAccessRequestResponse>;
@@ -22208,6 +22343,8 @@ declare const operationsByPath: {
22208
22343
  accessGroupId: string;
22209
22344
  membersCount: number;
22210
22345
  projectsCount: number;
22346
+ teamRoles?: string[];
22347
+ teamPermissions?: string[];
22211
22348
  }[];
22212
22349
  pagination: {
22213
22350
  count: number;
@@ -22344,9 +22481,9 @@ declare const operationsByPath: {
22344
22481
  action?: string;
22345
22482
  } | null;
22346
22483
  id: string;
22484
+ name: string;
22347
22485
  type: "LAMBDAS";
22348
22486
  createdAt: number;
22349
- name: string;
22350
22487
  readyState: "QUEUED" | "BUILDING" | "ERROR" | "INITIALIZING" | "READY" | "CANCELED";
22351
22488
  aliasError?: {
22352
22489
  code: string;
@@ -22637,9 +22774,9 @@ declare const operationsByPath: {
22637
22774
  action?: string;
22638
22775
  } | null;
22639
22776
  id: string;
22777
+ name: string;
22640
22778
  type: "LAMBDAS";
22641
22779
  createdAt: number;
22642
- name: string;
22643
22780
  readyState: "QUEUED" | "BUILDING" | "ERROR" | "INITIALIZING" | "READY" | "CANCELED";
22644
22781
  aliasError?: {
22645
22782
  code: string;
@@ -23057,7 +23194,7 @@ declare const operationsByPath: {
23057
23194
  'DELETE /v9/projects/{idOrName}/domains/{domain}': (variables: RemoveProjectDomainVariables, signal?: AbortSignal) => Promise<Record<string, any>>;
23058
23195
  'POST /v10/projects/{idOrName}/domains': (variables: AddProjectDomainVariables, signal?: AbortSignal) => Promise<AddProjectDomainResponse>;
23059
23196
  'POST /v9/projects/{idOrName}/domains/{domain}/verify': (variables: VerifyProjectDomainVariables, signal?: AbortSignal) => Promise<VerifyProjectDomainResponse>;
23060
- 'GET /v9/projects/{idOrName}/env': (variables: FilterProjectEnvsVariables, signal?: AbortSignal) => Promise<{
23197
+ 'GET /v10/projects/{idOrName}/env': (variables: FilterProjectEnvsVariables, signal?: AbortSignal) => Promise<{
23061
23198
  target?: ("production" | "preview" | "development" | "preview" | "development")[] | ("production" | "preview" | "development" | "preview" | "development");
23062
23199
  type?: "system" | "encrypted" | "plain" | "sensitive" | "secret";
23063
23200
  sunsetSecretId?: string;
@@ -23282,6 +23419,7 @@ declare const operationsByPath: {
23282
23419
  system?: boolean;
23283
23420
  }[];
23284
23421
  }>;
23422
+ 'POST /v10/projects/{idOrName}/env': (variables: CreateProjectEnvVariables, signal?: AbortSignal) => Promise<CreateProjectEnvResponse>;
23285
23423
  'GET /v1/projects/{idOrName}/env/{id}': (variables: GetProjectEnvVariables, signal?: AbortSignal) => Promise<{
23286
23424
  decrypted: boolean;
23287
23425
  target?: ("production" | "preview" | "development" | "preview" | "development")[] | ("production" | "preview" | "development" | "preview" | "development");
@@ -23497,7 +23635,6 @@ declare const operationsByPath: {
23497
23635
  comment?: string;
23498
23636
  customEnvironmentIds?: string[];
23499
23637
  }>;
23500
- 'POST /v10/projects/{idOrName}/env': (variables: CreateProjectEnvVariables, signal?: AbortSignal) => Promise<CreateProjectEnvResponse>;
23501
23638
  'DELETE /v9/projects/{idOrName}/env/{id}': (variables: RemoveProjectEnvVariables, signal?: AbortSignal) => Promise<{
23502
23639
  system?: boolean;
23503
23640
  target?: ("production" | "preview" | "development" | "preview" | "development")[] | ("production" | "preview" | "development" | "preview" | "development");
@@ -23850,7 +23987,7 @@ declare const operationsByPath: {
23850
23987
  UpdatedAt: string;
23851
23988
  UpdatedAtHour: string;
23852
23989
  DeletedAt?: string;
23853
- ExpiresAt?: number;
23990
+ ExpiresAt?: number | null;
23854
23991
  }[];
23855
23992
  pagination: void | null;
23856
23993
  } | {
@@ -23868,7 +24005,7 @@ declare const operationsByPath: {
23868
24005
  UpdatedAt: string;
23869
24006
  UpdatedAtHour: string;
23870
24007
  DeletedAt?: string;
23871
- ExpiresAt?: number;
24008
+ ExpiresAt?: number | null;
23872
24009
  }[];
23873
24010
  pagination?: {
23874
24011
  OwnerId: string;
@@ -23902,7 +24039,7 @@ declare const operationsByPath: {
23902
24039
  UpdatedAt: string;
23903
24040
  UpdatedAtHour: string;
23904
24041
  DeletedAt?: string;
23905
- ExpiresAt?: number;
24042
+ ExpiresAt?: number | null;
23906
24043
  }[];
23907
24044
  }>;
23908
24045
  'DELETE /v1/security/firewall/bypass': (variables: RemoveBypassIpVariables, signal?: AbortSignal) => Promise<RemoveBypassIpResponse>;
@@ -23913,13 +24050,13 @@ declare const operationsByPath: {
23913
24050
  email?: string;
23914
24051
  role: "OWNER" | "MEMBER" | "DEVELOPER" | "SECURITY" | "BILLING" | "VIEWER" | "CONTRIBUTOR";
23915
24052
  teamRoles?: ("OWNER" | "MEMBER" | "DEVELOPER" | "SECURITY" | "BILLING" | "VIEWER" | "CONTRIBUTOR")[];
23916
- teamPermissions?: ("CreateProject" | "FullProductionDeployment")[];
24053
+ teamPermissions?: ("CreateProject" | "FullProductionDeployment" | "UsageViewer")[];
23917
24054
  } | {
23918
24055
  uid: string;
23919
24056
  username: string;
23920
24057
  role: "OWNER" | "MEMBER" | "DEVELOPER" | "SECURITY" | "BILLING" | "VIEWER" | "CONTRIBUTOR";
23921
24058
  teamRoles?: ("OWNER" | "MEMBER" | "DEVELOPER" | "SECURITY" | "BILLING" | "VIEWER" | "CONTRIBUTOR")[];
23922
- teamPermissions?: ("CreateProject" | "FullProductionDeployment")[];
24059
+ teamPermissions?: ("CreateProject" | "FullProductionDeployment" | "UsageViewer")[];
23923
24060
  }>;
23924
24061
  'POST /v1/teams/{teamId}/request': (variables: RequestAccessToTeamVariables, signal?: AbortSignal) => Promise<RequestAccessToTeamResponse>;
23925
24062
  'GET /v1/teams/{teamId}/request/{userId}': (variables: GetTeamAccessRequestVariables, signal?: AbortSignal) => Promise<GetTeamAccessRequestResponse>;
@@ -24027,6 +24164,8 @@ declare class VercelApi {
24027
24164
  accessGroupId: string;
24028
24165
  membersCount: number;
24029
24166
  projectsCount: number;
24167
+ teamRoles?: string[];
24168
+ teamPermissions?: string[];
24030
24169
  }[];
24031
24170
  pagination: {
24032
24171
  count: number;
@@ -24163,9 +24302,9 @@ declare class VercelApi {
24163
24302
  action?: string;
24164
24303
  } | null;
24165
24304
  id: string;
24305
+ name: string;
24166
24306
  type: "LAMBDAS";
24167
24307
  createdAt: number;
24168
- name: string;
24169
24308
  readyState: "QUEUED" | "BUILDING" | "ERROR" | "INITIALIZING" | "READY" | "CANCELED";
24170
24309
  aliasError?: {
24171
24310
  code: string;
@@ -24456,9 +24595,9 @@ declare class VercelApi {
24456
24595
  action?: string;
24457
24596
  } | null;
24458
24597
  id: string;
24598
+ name: string;
24459
24599
  type: "LAMBDAS";
24460
24600
  createdAt: number;
24461
- name: string;
24462
24601
  readyState: "QUEUED" | "BUILDING" | "ERROR" | "INITIALIZING" | "READY" | "CANCELED";
24463
24602
  aliasError?: {
24464
24603
  code: string;
@@ -24876,7 +25015,7 @@ declare class VercelApi {
24876
25015
  'DELETE /v9/projects/{idOrName}/domains/{domain}': (variables: RemoveProjectDomainVariables, signal?: AbortSignal) => Promise<Record<string, any>>;
24877
25016
  'POST /v10/projects/{idOrName}/domains': (variables: AddProjectDomainVariables, signal?: AbortSignal) => Promise<AddProjectDomainResponse>;
24878
25017
  'POST /v9/projects/{idOrName}/domains/{domain}/verify': (variables: VerifyProjectDomainVariables, signal?: AbortSignal) => Promise<VerifyProjectDomainResponse>;
24879
- 'GET /v9/projects/{idOrName}/env': (variables: FilterProjectEnvsVariables, signal?: AbortSignal) => Promise<{
25018
+ 'GET /v10/projects/{idOrName}/env': (variables: FilterProjectEnvsVariables, signal?: AbortSignal) => Promise<{
24880
25019
  target?: ("production" | "preview" | "development" | "preview" | "development")[] | ("production" | "preview" | "development" | "preview" | "development");
24881
25020
  type?: "system" | "encrypted" | "plain" | "sensitive" | "secret";
24882
25021
  sunsetSecretId?: string;
@@ -25101,6 +25240,7 @@ declare class VercelApi {
25101
25240
  system?: boolean;
25102
25241
  }[];
25103
25242
  }>;
25243
+ 'POST /v10/projects/{idOrName}/env': (variables: CreateProjectEnvVariables, signal?: AbortSignal) => Promise<CreateProjectEnvResponse>;
25104
25244
  'GET /v1/projects/{idOrName}/env/{id}': (variables: GetProjectEnvVariables, signal?: AbortSignal) => Promise<{
25105
25245
  decrypted: boolean;
25106
25246
  target?: ("production" | "preview" | "development" | "preview" | "development")[] | ("production" | "preview" | "development" | "preview" | "development");
@@ -25316,7 +25456,6 @@ declare class VercelApi {
25316
25456
  comment?: string;
25317
25457
  customEnvironmentIds?: string[];
25318
25458
  }>;
25319
- 'POST /v10/projects/{idOrName}/env': (variables: CreateProjectEnvVariables, signal?: AbortSignal) => Promise<CreateProjectEnvResponse>;
25320
25459
  'DELETE /v9/projects/{idOrName}/env/{id}': (variables: RemoveProjectEnvVariables, signal?: AbortSignal) => Promise<{
25321
25460
  system?: boolean;
25322
25461
  target?: ("production" | "preview" | "development" | "preview" | "development")[] | ("production" | "preview" | "development" | "preview" | "development");
@@ -25669,7 +25808,7 @@ declare class VercelApi {
25669
25808
  UpdatedAt: string;
25670
25809
  UpdatedAtHour: string;
25671
25810
  DeletedAt?: string;
25672
- ExpiresAt?: number;
25811
+ ExpiresAt?: number | null;
25673
25812
  }[];
25674
25813
  pagination: void | null;
25675
25814
  } | {
@@ -25687,7 +25826,7 @@ declare class VercelApi {
25687
25826
  UpdatedAt: string;
25688
25827
  UpdatedAtHour: string;
25689
25828
  DeletedAt?: string;
25690
- ExpiresAt?: number;
25829
+ ExpiresAt?: number | null;
25691
25830
  }[];
25692
25831
  pagination?: {
25693
25832
  OwnerId: string;
@@ -25721,7 +25860,7 @@ declare class VercelApi {
25721
25860
  UpdatedAt: string;
25722
25861
  UpdatedAtHour: string;
25723
25862
  DeletedAt?: string;
25724
- ExpiresAt?: number;
25863
+ ExpiresAt?: number | null;
25725
25864
  }[];
25726
25865
  }>;
25727
25866
  'DELETE /v1/security/firewall/bypass': (variables: RemoveBypassIpVariables, signal?: AbortSignal) => Promise<RemoveBypassIpResponse>;
@@ -25732,13 +25871,13 @@ declare class VercelApi {
25732
25871
  email?: string;
25733
25872
  role: "OWNER" | "MEMBER" | "DEVELOPER" | "SECURITY" | "BILLING" | "VIEWER" | "CONTRIBUTOR";
25734
25873
  teamRoles?: ("OWNER" | "MEMBER" | "DEVELOPER" | "SECURITY" | "BILLING" | "VIEWER" | "CONTRIBUTOR")[];
25735
- teamPermissions?: ("CreateProject" | "FullProductionDeployment")[];
25874
+ teamPermissions?: ("CreateProject" | "FullProductionDeployment" | "UsageViewer")[];
25736
25875
  } | {
25737
25876
  uid: string;
25738
25877
  username: string;
25739
25878
  role: "OWNER" | "MEMBER" | "DEVELOPER" | "SECURITY" | "BILLING" | "VIEWER" | "CONTRIBUTOR";
25740
25879
  teamRoles?: ("OWNER" | "MEMBER" | "DEVELOPER" | "SECURITY" | "BILLING" | "VIEWER" | "CONTRIBUTOR")[];
25741
- teamPermissions?: ("CreateProject" | "FullProductionDeployment")[];
25880
+ teamPermissions?: ("CreateProject" | "FullProductionDeployment" | "UsageViewer")[];
25742
25881
  }>;
25743
25882
  'POST /v1/teams/{teamId}/request': (variables: RequestAccessToTeamVariables, signal?: AbortSignal) => Promise<RequestAccessToTeamResponse>;
25744
25883
  'GET /v1/teams/{teamId}/request/{userId}': (variables: GetTeamAccessRequestVariables, signal?: AbortSignal) => Promise<GetTeamAccessRequestResponse>;