vercel-api-js 0.1.2 → 0.1.4

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.ts CHANGED
@@ -1,30 +1,3 @@
1
- type RequestInit = {
2
- body?: string | FormData | undefined;
3
- headers?: Record<string, string> | undefined;
4
- method?: string | undefined;
5
- signal?: any | undefined;
6
- };
7
- type Response = {
8
- ok: boolean;
9
- status: number;
10
- url: string;
11
- json(): Promise<any>;
12
- text(): Promise<string>;
13
- headers?: {
14
- get(name: string): string | null;
15
- } | undefined;
16
- };
17
- type FetchImpl = (url: string, init?: RequestInit | undefined) => Promise<Response>;
18
-
19
- type FetcherExtraProps = {
20
- token: string;
21
- fetchImpl: FetchImpl;
22
- };
23
- type ErrorWrapper<TError> = TError | {
24
- status: 'unknown';
25
- payload: string;
26
- };
27
-
28
1
  /**
29
2
  * Generated by @openapi-codegen
30
3
  *
@@ -938,6 +911,33 @@ declare namespace schemas {
938
911
  };
939
912
  }
940
913
 
914
+ type RequestInit = {
915
+ body?: string | FormData | undefined;
916
+ headers?: Record<string, string> | undefined;
917
+ method?: string | undefined;
918
+ signal?: any | undefined;
919
+ };
920
+ type Response = {
921
+ ok: boolean;
922
+ status: number;
923
+ url: string;
924
+ json(): Promise<any>;
925
+ text(): Promise<string>;
926
+ headers?: {
927
+ get(name: string): string | null;
928
+ } | undefined;
929
+ };
930
+ type FetchImpl = (url: string, init?: RequestInit | undefined) => Promise<Response>;
931
+
932
+ type FetcherExtraProps = {
933
+ token: string;
934
+ fetchImpl: FetchImpl;
935
+ };
936
+ type ErrorWrapper<TError> = TError | {
937
+ status: 'unknown';
938
+ payload: string;
939
+ };
940
+
941
941
  /**
942
942
  * Generated by @openapi-codegen
943
943
  *
@@ -14534,23 +14534,1489 @@ declare namespace components {
14534
14534
  };
14535
14535
  }
14536
14536
 
14537
- type RequiredKeys<T> = {
14538
- [K in keyof T]-?: {} extends Pick<T, K> ? never : K;
14539
- }[keyof T];
14540
-
14541
- interface VercelApiOptions {
14542
- token: string;
14543
- fetch?: FetchImpl;
14544
- }
14545
- type ApiProxy = {
14546
- [Tag in keyof typeof operationsByTag]: {
14547
- [Method in keyof (typeof operationsByTag)[Tag]]: (typeof operationsByTag)[Tag][Method] extends infer Operation extends (...args: any) => any ? Omit<Parameters<Operation>[0], keyof FetcherExtraProps> extends infer Params ? RequiredKeys<Params> extends never ? (params?: Params) => ReturnType<Operation> : (params: Params) => ReturnType<Operation> : never : never;
14548
- };
14549
- };
14550
- declare class VercelApi {
14551
- #private;
14552
- constructor(options: VercelApiOptions);
14553
- get api(): ApiProxy;
14537
+ declare const operationsByPath: {
14538
+ 'POST /v8/artifacts/events': (variables: RecordEventsVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
14539
+ 'GET /v8/artifacts/status': (variables: StatusVariables, signal?: AbortSignal | undefined) => Promise<StatusResponse>;
14540
+ 'PUT /v8/artifacts/{hash}': (variables: UploadArtifactVariables, signal?: AbortSignal | undefined) => Promise<UploadArtifactResponse>;
14541
+ 'GET /v8/artifacts/{hash}': (variables: DownloadArtifactVariables, signal?: AbortSignal | undefined) => Promise<Blob>;
14542
+ 'POST /v8/artifacts': (variables: ArtifactQueryVariables, signal?: AbortSignal | undefined) => Promise<ArtifactQueryResponse>;
14543
+ 'GET /v13/deployments/{idOrUrl}': (variables: GetDeploymentVariables, signal?: AbortSignal | undefined) => Promise<{
14544
+ aliasAssignedAt?: number | boolean | null;
14545
+ build: {
14546
+ env: string[];
14547
+ };
14548
+ builds?: Record<string, any>[];
14549
+ connectConfigurationId?: string;
14550
+ createdIn: string;
14551
+ env: string[];
14552
+ functions?: {
14553
+ [key: string]: {
14554
+ memory?: number;
14555
+ maxDuration?: number;
14556
+ runtime?: string;
14557
+ includeFiles?: string;
14558
+ excludeFiles?: string;
14559
+ };
14560
+ } | null;
14561
+ inspectorUrl: string | null;
14562
+ isInConcurrentBuildsQueue: boolean;
14563
+ meta: {
14564
+ [key: string]: string;
14565
+ };
14566
+ monorepoManager?: string | null;
14567
+ name: string;
14568
+ ownerId: string;
14569
+ plan: "hobby" | "enterprise" | "pro" | "oss";
14570
+ projectId: string;
14571
+ routes: ({
14572
+ src: string;
14573
+ dest?: string;
14574
+ headers?: {
14575
+ [key: string]: string;
14576
+ };
14577
+ methods?: string[];
14578
+ continue?: boolean;
14579
+ override?: boolean;
14580
+ caseSensitive?: boolean;
14581
+ check?: boolean;
14582
+ important?: boolean;
14583
+ status?: number;
14584
+ has?: ({
14585
+ type: "host";
14586
+ value: string;
14587
+ } | {
14588
+ type: "header" | "cookie" | "query";
14589
+ key: string;
14590
+ value?: string;
14591
+ })[];
14592
+ missing?: ({
14593
+ type: "host";
14594
+ value: string;
14595
+ } | {
14596
+ type: "header" | "cookie" | "query";
14597
+ key: string;
14598
+ value?: string;
14599
+ })[];
14600
+ locale?: {
14601
+ redirect?: {
14602
+ [key: string]: string;
14603
+ };
14604
+ cookie?: string;
14605
+ };
14606
+ middlewarePath?: string;
14607
+ middlewareRawSrc?: string[];
14608
+ middleware?: number;
14609
+ } | {
14610
+ handle: "filesystem" | "hit" | "miss" | "rewrite" | "error" | "resource";
14611
+ src?: string;
14612
+ dest?: string;
14613
+ status?: number;
14614
+ } | {
14615
+ src: string;
14616
+ continue: boolean;
14617
+ middleware: 0;
14618
+ })[] | null;
14619
+ gitRepo?: {
14620
+ namespace: string;
14621
+ projectId: number;
14622
+ type: "gitlab";
14623
+ url: string;
14624
+ path: string;
14625
+ defaultBranch: string;
14626
+ name: string;
14627
+ private: boolean;
14628
+ ownerType: "user" | "team";
14629
+ } | {
14630
+ org: string;
14631
+ repo: string;
14632
+ repoId: number;
14633
+ type: "github";
14634
+ repoOwnerId: string;
14635
+ path: string;
14636
+ defaultBranch: string;
14637
+ name: string;
14638
+ private: boolean;
14639
+ ownerType: "user" | "team";
14640
+ } | {
14641
+ owner: string;
14642
+ repoUuid: string;
14643
+ slug: string;
14644
+ type: "bitbucket";
14645
+ workspaceUuid: string;
14646
+ path: string;
14647
+ defaultBranch: string;
14648
+ name: string;
14649
+ private: boolean;
14650
+ ownerType: "user" | "team";
14651
+ } | null;
14652
+ alias: string[];
14653
+ aliasAssigned: boolean;
14654
+ aliasError?: {
14655
+ code: string;
14656
+ message: string;
14657
+ } | null;
14658
+ aliasFinal?: string | null;
14659
+ aliasWarning?: {
14660
+ code: string;
14661
+ message: string;
14662
+ link?: string;
14663
+ action?: string;
14664
+ } | null;
14665
+ automaticAliases?: string[];
14666
+ bootedAt: number;
14667
+ buildErrorAt?: number;
14668
+ buildingAt: number;
14669
+ canceledAt?: number;
14670
+ checksState?: "registered" | "running" | "completed";
14671
+ checksConclusion?: "canceled" | "succeeded" | "failed" | "skipped";
14672
+ createdAt: number;
14673
+ creator: {
14674
+ uid: string;
14675
+ username?: string;
14676
+ };
14677
+ errorCode?: string;
14678
+ errorLink?: string;
14679
+ errorMessage?: string | null;
14680
+ errorStep?: string;
14681
+ gitSource?: {
14682
+ type: "github";
14683
+ repoId: string | number;
14684
+ ref?: string | null;
14685
+ sha?: string;
14686
+ prId?: number | null;
14687
+ } | {
14688
+ type: "github";
14689
+ org: string;
14690
+ repo: string;
14691
+ ref?: string | null;
14692
+ sha?: string;
14693
+ prId?: number | null;
14694
+ } | {
14695
+ type: "gitlab";
14696
+ projectId: string | number;
14697
+ ref?: string | null;
14698
+ sha?: string;
14699
+ prId?: number | null;
14700
+ } | {
14701
+ type: "bitbucket";
14702
+ workspaceUuid?: string;
14703
+ repoUuid: string;
14704
+ ref?: string | null;
14705
+ sha?: string;
14706
+ prId?: number | null;
14707
+ } | {
14708
+ type: "bitbucket";
14709
+ owner: string;
14710
+ slug: string;
14711
+ ref?: string | null;
14712
+ sha?: string;
14713
+ prId?: number | null;
14714
+ } | {
14715
+ type: "custom";
14716
+ ref: string;
14717
+ sha: string;
14718
+ gitUrl: string;
14719
+ } | {
14720
+ type: "github";
14721
+ ref: string;
14722
+ sha: string;
14723
+ repoId: number;
14724
+ org?: string;
14725
+ repo?: string;
14726
+ } | {
14727
+ type: "gitlab";
14728
+ ref: string;
14729
+ sha: string;
14730
+ projectId: number;
14731
+ } | {
14732
+ type: "bitbucket";
14733
+ ref: string;
14734
+ sha: string;
14735
+ owner?: string;
14736
+ slug?: string;
14737
+ workspaceUuid: string;
14738
+ repoUuid: string;
14739
+ };
14740
+ id: string;
14741
+ lambdas?: {
14742
+ id: string;
14743
+ createdAt?: number;
14744
+ entrypoint?: string | null;
14745
+ readyState?: "BUILDING" | "ERROR" | "INITIALIZING" | "READY";
14746
+ readyStateAt?: number;
14747
+ output: {
14748
+ path: string;
14749
+ functionName: string;
14750
+ }[];
14751
+ }[];
14752
+ public: boolean;
14753
+ readyState: "BUILDING" | "ERROR" | "INITIALIZING" | "READY" | "QUEUED" | "CANCELED";
14754
+ regions: string[];
14755
+ source?: "import" | "cli" | "git" | "import/repo" | "clone/repo";
14756
+ target?: "production" | "staging" | null;
14757
+ team?: {
14758
+ id: string;
14759
+ name: string;
14760
+ slug: string;
14761
+ };
14762
+ type: "LAMBDAS";
14763
+ url: string;
14764
+ userAliases?: string[];
14765
+ version: 2;
14766
+ previewCommentsEnabled?: boolean;
14767
+ } | {
14768
+ alias: string[];
14769
+ aliasAssigned: boolean;
14770
+ aliasError?: {
14771
+ code: string;
14772
+ message: string;
14773
+ } | null;
14774
+ aliasFinal?: string | null;
14775
+ aliasWarning?: {
14776
+ code: string;
14777
+ message: string;
14778
+ link?: string;
14779
+ action?: string;
14780
+ } | null;
14781
+ automaticAliases?: string[];
14782
+ bootedAt: number;
14783
+ buildErrorAt?: number;
14784
+ buildingAt: number;
14785
+ canceledAt?: number;
14786
+ checksState?: "registered" | "running" | "completed";
14787
+ checksConclusion?: "canceled" | "succeeded" | "failed" | "skipped";
14788
+ createdAt: number;
14789
+ creator: {
14790
+ uid: string;
14791
+ username?: string;
14792
+ };
14793
+ errorCode?: string;
14794
+ errorLink?: string;
14795
+ errorMessage?: string | null;
14796
+ errorStep?: string;
14797
+ gitSource?: {
14798
+ type: "github";
14799
+ repoId: string | number;
14800
+ ref?: string | null;
14801
+ sha?: string;
14802
+ prId?: number | null;
14803
+ } | {
14804
+ type: "github";
14805
+ org: string;
14806
+ repo: string;
14807
+ ref?: string | null;
14808
+ sha?: string;
14809
+ prId?: number | null;
14810
+ } | {
14811
+ type: "gitlab";
14812
+ projectId: string | number;
14813
+ ref?: string | null;
14814
+ sha?: string;
14815
+ prId?: number | null;
14816
+ } | {
14817
+ type: "bitbucket";
14818
+ workspaceUuid?: string;
14819
+ repoUuid: string;
14820
+ ref?: string | null;
14821
+ sha?: string;
14822
+ prId?: number | null;
14823
+ } | {
14824
+ type: "bitbucket";
14825
+ owner: string;
14826
+ slug: string;
14827
+ ref?: string | null;
14828
+ sha?: string;
14829
+ prId?: number | null;
14830
+ } | {
14831
+ type: "custom";
14832
+ ref: string;
14833
+ sha: string;
14834
+ gitUrl: string;
14835
+ } | {
14836
+ type: "github";
14837
+ ref: string;
14838
+ sha: string;
14839
+ repoId: number;
14840
+ org?: string;
14841
+ repo?: string;
14842
+ } | {
14843
+ type: "gitlab";
14844
+ ref: string;
14845
+ sha: string;
14846
+ projectId: number;
14847
+ } | {
14848
+ type: "bitbucket";
14849
+ ref: string;
14850
+ sha: string;
14851
+ owner?: string;
14852
+ slug?: string;
14853
+ workspaceUuid: string;
14854
+ repoUuid: string;
14855
+ };
14856
+ id: string;
14857
+ lambdas?: {
14858
+ id: string;
14859
+ createdAt?: number;
14860
+ entrypoint?: string | null;
14861
+ readyState?: "BUILDING" | "ERROR" | "INITIALIZING" | "READY";
14862
+ readyStateAt?: number;
14863
+ output: {
14864
+ path: string;
14865
+ functionName: string;
14866
+ }[];
14867
+ }[];
14868
+ name: string;
14869
+ meta: {
14870
+ [key: string]: string;
14871
+ };
14872
+ public: boolean;
14873
+ readyState: "BUILDING" | "ERROR" | "INITIALIZING" | "READY" | "QUEUED" | "CANCELED";
14874
+ regions: string[];
14875
+ source?: "import" | "cli" | "git" | "import/repo" | "clone/repo";
14876
+ target?: "production" | "staging" | null;
14877
+ team?: {
14878
+ id: string;
14879
+ name: string;
14880
+ slug: string;
14881
+ };
14882
+ type: "LAMBDAS";
14883
+ url: string;
14884
+ userAliases?: string[];
14885
+ version: 2;
14886
+ previewCommentsEnabled?: boolean;
14887
+ }>;
14888
+ 'POST /v13/deployments': (variables: CreateDeploymentVariables, signal?: AbortSignal | undefined) => Promise<CreateDeploymentResponse>;
14889
+ 'PATCH /v12/deployments/{id}/cancel': (variables: CancelDeploymentVariables, signal?: AbortSignal | undefined) => Promise<CancelDeploymentResponse>;
14890
+ 'GET /v7/certs/{id}': (variables: GetCertByIdVariables, signal?: AbortSignal | undefined) => Promise<GetCertByIdResponse>;
14891
+ 'DELETE /v7/certs/{id}': (variables: RemoveCertVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any>>;
14892
+ 'POST /v7/certs': (variables: IssueCertVariables, signal?: AbortSignal | undefined) => Promise<IssueCertResponse>;
14893
+ 'PUT /v7/certs': (variables: UploadCertVariables, signal?: AbortSignal | undefined) => Promise<UploadCertResponse>;
14894
+ 'GET /v2/deployments/{idOrUrl}/events': (variables: GetDeploymentEventsVariables, signal?: AbortSignal | undefined) => Promise<GetDeploymentEventsResponse>;
14895
+ 'GET /v3/events': (variables: ListUserEventsVariables, signal?: AbortSignal | undefined) => Promise<ListUserEventsResponse>;
14896
+ 'GET /v4/aliases': (variables: ListAliasesVariables, signal?: AbortSignal | undefined) => Promise<ListAliasesResponse>;
14897
+ 'GET /v4/aliases/{idOrAlias}': (variables: GetAliasVariables, signal?: AbortSignal | undefined) => Promise<GetAliasResponse>;
14898
+ 'DELETE /v2/aliases/{aliasId}': (variables: DeleteAliasVariables, signal?: AbortSignal | undefined) => Promise<DeleteAliasResponse>;
14899
+ 'GET /v2/deployments/{id}/aliases': (variables: ListDeploymentAliasesVariables, signal?: AbortSignal | undefined) => Promise<ListDeploymentAliasesResponse>;
14900
+ 'POST /v2/deployments/{id}/aliases': (variables: AssignAliasVariables, signal?: AbortSignal | undefined) => Promise<AssignAliasResponse>;
14901
+ 'POST /v2/files': (variables: UploadFileVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any> | {
14902
+ urls: string[];
14903
+ }>;
14904
+ 'GET /v2/user': (variables: FetcherExtraProps, signal?: AbortSignal | undefined) => Promise<GetAuthUserResponse>;
14905
+ 'DELETE /v1/user': (variables: RequestDeleteVariables, signal?: AbortSignal | undefined) => Promise<RequestDeleteResponse>;
14906
+ 'GET /v5/user/tokens': (variables: FetcherExtraProps, signal?: AbortSignal | undefined) => Promise<ListAuthTokensResponse>;
14907
+ 'POST /v3/user/tokens': (variables: CreateAuthTokenVariables, signal?: AbortSignal | undefined) => Promise<CreateAuthTokenResponse>;
14908
+ 'GET /v5/user/tokens/{tokenId}': (variables: GetAuthTokenVariables, signal?: AbortSignal | undefined) => Promise<GetAuthTokenResponse>;
14909
+ 'DELETE /v3/user/tokens/{tokenId}': (variables: DeleteAuthTokenVariables, signal?: AbortSignal | undefined) => Promise<DeleteAuthTokenResponse>;
14910
+ 'GET /v4/domains/{domain}/records': (variables: GetRecordsVariables, signal?: AbortSignal | undefined) => Promise<string | {
14911
+ records: {
14912
+ id: string;
14913
+ slug: string;
14914
+ name: string;
14915
+ type: "A" | "AAAA" | "ALIAS" | "CAA" | "CNAME" | "MX" | "SRV" | "TXT" | "NS";
14916
+ value: string;
14917
+ mxPriority?: number;
14918
+ priority?: number;
14919
+ creator: string;
14920
+ created: number | null;
14921
+ updated: number | null;
14922
+ createdAt: number | null;
14923
+ updatedAt: number | null;
14924
+ }[];
14925
+ } | {
14926
+ records: {
14927
+ id: string;
14928
+ slug: string;
14929
+ name: string;
14930
+ type: "A" | "AAAA" | "ALIAS" | "CAA" | "CNAME" | "MX" | "SRV" | "TXT" | "NS";
14931
+ value: string;
14932
+ mxPriority?: number;
14933
+ priority?: number;
14934
+ creator: string;
14935
+ created: number | null;
14936
+ updated: number | null;
14937
+ createdAt: number | null;
14938
+ updatedAt: number | null;
14939
+ }[];
14940
+ pagination: Pagination;
14941
+ }>;
14942
+ 'POST /v2/domains/{domain}/records': (variables: CreateRecordVariables, signal?: AbortSignal | undefined) => Promise<{
14943
+ uid: string;
14944
+ updated: number;
14945
+ } | {
14946
+ uid: string;
14947
+ }>;
14948
+ 'PATCH /v1/domains/records/{recordId}': (variables: UpdateRecordVariables, signal?: AbortSignal | undefined) => Promise<UpdateRecordResponse>;
14949
+ 'DELETE /v2/domains/{domain}/records/{recordId}': (variables: RemoveRecordVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any>>;
14950
+ 'GET /v4/domains/status': (variables: CheckDomainStatusVariables, signal?: AbortSignal | undefined) => Promise<CheckDomainStatusResponse>;
14951
+ 'GET /v4/domains/price': (variables: CheckDomainPriceVariables, signal?: AbortSignal | undefined) => Promise<CheckDomainPriceResponse>;
14952
+ 'POST /v4/domains/buy': (variables: BuyDomainVariables, signal?: AbortSignal | undefined) => Promise<BuyDomainResponse>;
14953
+ 'GET /v6/domains/{domain}/config': (variables: GetDomainConfigVariables, signal?: AbortSignal | undefined) => Promise<GetDomainConfigResponse>;
14954
+ 'GET /v5/domains/{domain}': (variables: GetDomainVariables, signal?: AbortSignal | undefined) => Promise<GetDomainResponse>;
14955
+ 'GET /v5/domains': (variables: GetDomainsVariables, signal?: AbortSignal | undefined) => Promise<GetDomainsResponse>;
14956
+ 'POST /v5/domains': (variables: CreateOrTransferDomainVariables, signal?: AbortSignal | undefined) => Promise<CreateOrTransferDomainResponse>;
14957
+ 'DELETE /v6/domains/{domain}': (variables: DeleteDomainVariables, signal?: AbortSignal | undefined) => Promise<DeleteDomainResponse>;
14958
+ 'GET /v3/secrets': (variables: GetSecretsVariables, signal?: AbortSignal | undefined) => Promise<GetSecretsResponse>;
14959
+ 'POST /v2/secrets/{name}': (variables: CreateSecretVariables, signal?: AbortSignal | undefined) => Promise<CreateSecretResponse>;
14960
+ 'PATCH /v2/secrets/{name}': (variables: RenameSecretVariables, signal?: AbortSignal | undefined) => Promise<RenameSecretResponse>;
14961
+ 'GET /v3/secrets/{idOrName}': (variables: GetSecretVariables, signal?: AbortSignal | undefined) => Promise<GetSecretResponse>;
14962
+ 'DELETE /v2/secrets/{idOrName}': (variables: DeleteSecretVariables, signal?: AbortSignal | undefined) => Promise<DeleteSecretResponse>;
14963
+ 'DELETE /v13/deployments/{id}': (variables: DeleteDeploymentVariables, signal?: AbortSignal | undefined) => Promise<DeleteDeploymentResponse>;
14964
+ 'GET /v6/deployments': (variables: GetDeploymentsVariables, signal?: AbortSignal | undefined) => Promise<GetDeploymentsResponse>;
14965
+ 'GET /v9/projects': (variables: GetProjectsVariables, signal?: AbortSignal | undefined) => Promise<GetProjectsResponse>;
14966
+ 'POST /v9/projects': (variables: CreateProjectVariables, signal?: AbortSignal | undefined) => Promise<CreateProjectResponse>;
14967
+ 'GET /v9/projects/{idOrName}': (variables: GetProjectVariables, signal?: AbortSignal | undefined) => Promise<GetProjectResponse>;
14968
+ 'PATCH /v9/projects/{idOrName}': (variables: UpdateProjectVariables, signal?: AbortSignal | undefined) => Promise<UpdateProjectResponse>;
14969
+ 'DELETE /v9/projects/{idOrName}': (variables: DeleteProjectVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
14970
+ 'GET /v9/projects/{idOrName}/domains': (variables: GetProjectDomainsVariables, signal?: AbortSignal | undefined) => Promise<GetProjectDomainsResponse>;
14971
+ 'GET /v9/projects/{idOrName}/domains/{domain}': (variables: GetProjectDomainVariables, signal?: AbortSignal | undefined) => Promise<GetProjectDomainResponse>;
14972
+ 'PATCH /v9/projects/{idOrName}/domains/{domain}': (variables: UpdateProjectDomainVariables, signal?: AbortSignal | undefined) => Promise<UpdateProjectDomainResponse>;
14973
+ 'DELETE /v9/projects/{idOrName}/domains/{domain}': (variables: RemoveProjectDomainVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any>>;
14974
+ 'POST /v10/projects/{idOrName}/domains': (variables: AddProjectDomainVariables, signal?: AbortSignal | undefined) => Promise<AddProjectDomainResponse>;
14975
+ 'POST /v9/projects/{idOrName}/domains/{domain}/verify': (variables: VerifyProjectDomainVariables, signal?: AbortSignal | undefined) => Promise<VerifyProjectDomainResponse>;
14976
+ 'GET /v9/projects/{idOrName}/env': (variables: FilterProjectEnvsVariables, signal?: AbortSignal | undefined) => Promise<{
14977
+ target?: "production" | "preview" | "development" | ("production" | "preview" | "development")[];
14978
+ type?: "system" | "secret" | "encrypted" | "plain" | "sensitive";
14979
+ id?: string;
14980
+ key?: string;
14981
+ value?: string;
14982
+ configurationId?: string | null;
14983
+ createdAt?: number;
14984
+ updatedAt?: number;
14985
+ createdBy?: string | null;
14986
+ updatedBy?: string | null;
14987
+ gitBranch?: string;
14988
+ edgeConfigId?: string | null;
14989
+ edgeConfigTokenId?: string | null;
14990
+ decrypted?: boolean;
14991
+ system?: boolean;
14992
+ } | {
14993
+ envs: {
14994
+ target?: "production" | "preview" | "development" | ("production" | "preview" | "development")[];
14995
+ type?: "system" | "secret" | "encrypted" | "plain" | "sensitive";
14996
+ id?: string;
14997
+ key?: string;
14998
+ value?: string;
14999
+ configurationId?: string | null;
15000
+ createdAt?: number;
15001
+ updatedAt?: number;
15002
+ createdBy?: string | null;
15003
+ updatedBy?: string | null;
15004
+ gitBranch?: string;
15005
+ edgeConfigId?: string | null;
15006
+ edgeConfigTokenId?: string | null;
15007
+ decrypted?: boolean;
15008
+ system?: boolean;
15009
+ }[];
15010
+ pagination: Pagination;
15011
+ } | {
15012
+ envs: {
15013
+ target?: "production" | "preview" | "development" | ("production" | "preview" | "development")[];
15014
+ type?: "system" | "secret" | "encrypted" | "plain" | "sensitive";
15015
+ id?: string;
15016
+ key?: string;
15017
+ value?: string;
15018
+ configurationId?: string | null;
15019
+ createdAt?: number;
15020
+ updatedAt?: number;
15021
+ createdBy?: string | null;
15022
+ updatedBy?: string | null;
15023
+ gitBranch?: string;
15024
+ edgeConfigId?: string | null;
15025
+ edgeConfigTokenId?: string | null;
15026
+ decrypted?: boolean;
15027
+ system?: boolean;
15028
+ }[];
15029
+ }>;
15030
+ 'GET /v1/projects/{idOrName}/env/{id}': (variables: GetProjectEnvVariables, signal?: AbortSignal | undefined) => Promise<GetProjectEnvResponse>;
15031
+ 'POST /v10/projects/{idOrName}/env': (variables: CreateProjectEnvVariables, signal?: AbortSignal | undefined) => Promise<CreateProjectEnvResponse>;
15032
+ 'DELETE /v9/projects/{idOrName}/env/{id}': (variables: RemoveProjectEnvVariables, signal?: AbortSignal | undefined) => Promise<{
15033
+ system?: boolean;
15034
+ target?: "production" | "preview" | "development" | ("production" | "preview" | "development")[];
15035
+ type: "system" | "secret" | "encrypted" | "plain" | "sensitive";
15036
+ id?: string;
15037
+ key: string;
15038
+ value: string;
15039
+ configurationId?: string | null;
15040
+ createdAt?: number;
15041
+ updatedAt?: number;
15042
+ createdBy?: string | null;
15043
+ updatedBy?: string | null;
15044
+ gitBranch?: string;
15045
+ edgeConfigId?: string | null;
15046
+ edgeConfigTokenId?: string | null;
15047
+ decrypted?: boolean;
15048
+ } | {
15049
+ target?: "production" | "preview" | "development" | ("production" | "preview" | "development")[];
15050
+ type: "system" | "secret" | "encrypted" | "plain" | "sensitive";
15051
+ id?: string;
15052
+ key: string;
15053
+ value: string;
15054
+ configurationId?: string | null;
15055
+ createdAt?: number;
15056
+ updatedAt?: number;
15057
+ createdBy?: string | null;
15058
+ updatedBy?: string | null;
15059
+ gitBranch?: string;
15060
+ edgeConfigId?: string | null;
15061
+ edgeConfigTokenId?: string | null;
15062
+ decrypted?: boolean;
15063
+ } | {
15064
+ target?: "production" | "preview" | "development" | ("production" | "preview" | "development")[];
15065
+ type: "system" | "secret" | "encrypted" | "plain" | "sensitive";
15066
+ id?: string;
15067
+ key: string;
15068
+ value: string;
15069
+ configurationId?: string | null;
15070
+ createdAt?: number;
15071
+ updatedAt?: number;
15072
+ createdBy?: string | null;
15073
+ updatedBy?: string | null;
15074
+ gitBranch?: string;
15075
+ edgeConfigId?: string | null;
15076
+ edgeConfigTokenId?: string | null;
15077
+ decrypted?: boolean;
15078
+ }[]>;
15079
+ 'PATCH /v9/projects/{idOrName}/env/{id}': (variables: EditProjectEnvVariables, signal?: AbortSignal | undefined) => Promise<EditProjectEnvResponse>;
15080
+ 'GET /registration/verify': (variables: VerifyTokenVariables, signal?: AbortSignal | undefined) => Promise<VerifyTokenResponse>;
15081
+ 'POST /registration': (variables: EmailLoginVariables, signal?: AbortSignal | undefined) => Promise<EmailLoginResponse>;
15082
+ 'GET /v1/integrations/configurations': (variables: GetConfigurationsVariables, signal?: AbortSignal | undefined) => Promise<{
15083
+ completedAt?: number;
15084
+ createdAt: number;
15085
+ id: string;
15086
+ integrationId: string;
15087
+ oauthConfiguration?: boolean;
15088
+ ownerId: string;
15089
+ projects?: string[];
15090
+ source?: "external" | "marketplace" | "deploy-button" | "oauth";
15091
+ removedLogDrainsAt?: number;
15092
+ removedProjectEnvsAt?: number;
15093
+ removedTokensAt?: number;
15094
+ removedWebhooksAt?: number;
15095
+ slug: string;
15096
+ teamId?: string | null;
15097
+ type: "integration-configuration";
15098
+ updatedAt: number;
15099
+ userId: string;
15100
+ scopes: string[];
15101
+ scopesQueue?: {
15102
+ scopes: {
15103
+ added: ("read:integration-configuration" | "read-write:integration-configuration" | "read:deployment" | "read-write:deployment" | "read-write:deployment-check" | "read:project" | "read-write:project" | "read-write:project-env-vars" | "read-write:global-project-env-vars" | "read:team" | "read:user" | "read-write:log-drain" | "read:domain" | "read-write:domain" | "read-write:edge-config" | "read-write:otel-endpoint" | "read:monitoring")[];
15104
+ upgraded: ("read:integration-configuration" | "read-write:integration-configuration" | "read:deployment" | "read-write:deployment" | "read-write:deployment-check" | "read:project" | "read-write:project" | "read-write:project-env-vars" | "read-write:global-project-env-vars" | "read:team" | "read:user" | "read-write:log-drain" | "read:domain" | "read-write:domain" | "read-write:edge-config" | "read-write:otel-endpoint" | "read:monitoring")[];
15105
+ };
15106
+ note: string;
15107
+ requestedAt: number;
15108
+ confirmedAt?: number;
15109
+ }[];
15110
+ disabledAt?: number;
15111
+ deletedAt?: number | null;
15112
+ }[] | {
15113
+ integration: {
15114
+ name: string;
15115
+ icon: string;
15116
+ category: string;
15117
+ isLegacy: boolean;
15118
+ flags?: string[];
15119
+ assignedBetaLabelAt?: number;
15120
+ };
15121
+ completedAt?: number;
15122
+ createdAt: number;
15123
+ id: string;
15124
+ integrationId: string;
15125
+ oauthConfiguration?: boolean;
15126
+ ownerId: string;
15127
+ projects?: string[];
15128
+ source?: "external" | "marketplace" | "deploy-button" | "oauth";
15129
+ removedLogDrainsAt?: number;
15130
+ removedProjectEnvsAt?: number;
15131
+ removedTokensAt?: number;
15132
+ removedWebhooksAt?: number;
15133
+ slug: string;
15134
+ teamId?: string | null;
15135
+ type: "integration-configuration";
15136
+ updatedAt: number;
15137
+ userId: string;
15138
+ scopes: string[];
15139
+ scopesQueue?: {
15140
+ scopes: {
15141
+ added: ("read:integration-configuration" | "read-write:integration-configuration" | "read:deployment" | "read-write:deployment" | "read-write:deployment-check" | "read:project" | "read-write:project" | "read-write:project-env-vars" | "read-write:global-project-env-vars" | "read:team" | "read:user" | "read-write:log-drain" | "read:domain" | "read-write:domain" | "read-write:edge-config" | "read-write:otel-endpoint" | "read:monitoring")[];
15142
+ upgraded: ("read:integration-configuration" | "read-write:integration-configuration" | "read:deployment" | "read-write:deployment" | "read-write:deployment-check" | "read:project" | "read-write:project" | "read-write:project-env-vars" | "read-write:global-project-env-vars" | "read:team" | "read:user" | "read-write:log-drain" | "read:domain" | "read-write:domain" | "read-write:edge-config" | "read-write:otel-endpoint" | "read:monitoring")[];
15143
+ };
15144
+ note: string;
15145
+ requestedAt: number;
15146
+ confirmedAt?: number;
15147
+ }[];
15148
+ disabledAt?: number;
15149
+ deletedAt?: number | null;
15150
+ }[]>;
15151
+ 'GET /v1/integrations/configuration/{id}': (variables: GetConfigurationVariables, signal?: AbortSignal | undefined) => Promise<{
15152
+ completedAt?: number;
15153
+ createdAt: number;
15154
+ id: string;
15155
+ integrationId: string;
15156
+ oauthConfiguration?: boolean;
15157
+ ownerId: string;
15158
+ projects?: string[];
15159
+ source?: "external" | "marketplace" | "deploy-button" | "oauth";
15160
+ removedLogDrainsAt?: number;
15161
+ removedProjectEnvsAt?: number;
15162
+ removedTokensAt?: number;
15163
+ removedWebhooksAt?: number;
15164
+ slug: string;
15165
+ teamId?: string | null;
15166
+ type: "integration-configuration";
15167
+ updatedAt: number;
15168
+ userId: string;
15169
+ scopes: string[];
15170
+ scopesQueue?: {
15171
+ scopes: {
15172
+ added: ("read:integration-configuration" | "read-write:integration-configuration" | "read:deployment" | "read-write:deployment" | "read-write:deployment-check" | "read:project" | "read-write:project" | "read-write:project-env-vars" | "read-write:global-project-env-vars" | "read:team" | "read:user" | "read-write:log-drain" | "read:domain" | "read-write:domain" | "read-write:edge-config" | "read-write:otel-endpoint" | "read:monitoring")[];
15173
+ upgraded: ("read:integration-configuration" | "read-write:integration-configuration" | "read:deployment" | "read-write:deployment" | "read-write:deployment-check" | "read:project" | "read-write:project" | "read-write:project-env-vars" | "read-write:global-project-env-vars" | "read:team" | "read:user" | "read-write:log-drain" | "read:domain" | "read-write:domain" | "read-write:edge-config" | "read-write:otel-endpoint" | "read:monitoring")[];
15174
+ };
15175
+ note: string;
15176
+ requestedAt: number;
15177
+ confirmedAt?: number;
15178
+ }[];
15179
+ disabledAt?: number;
15180
+ deletedAt?: number | null;
15181
+ } | {
15182
+ projectSelection: "all" | "selected";
15183
+ createdAt: number;
15184
+ completedAt?: number;
15185
+ id: string;
15186
+ integrationId: string;
15187
+ oauthConfiguration?: boolean;
15188
+ ownerId: string;
15189
+ projects?: string[];
15190
+ slug: string;
15191
+ teamId?: string | null;
15192
+ updatedAt: number;
15193
+ userId: string;
15194
+ scopes: string[];
15195
+ disabledAt?: number;
15196
+ source?: "external" | "marketplace" | "deploy-button" | "oauth";
15197
+ canConfigureOpenTelemetry?: boolean;
15198
+ }>;
15199
+ 'DELETE /v1/integrations/configuration/{id}': (variables: DeleteConfigurationVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15200
+ 'GET /v2/integrations/log-drains': (variables: GetIntegrationLogDrainsVariables, signal?: AbortSignal | undefined) => Promise<GetIntegrationLogDrainsResponse>;
15201
+ 'POST /v2/integrations/log-drains': (variables: CreateLogDrainVariables, signal?: AbortSignal | undefined) => Promise<CreateLogDrainResponse>;
15202
+ 'DELETE /v1/integrations/log-drains/{id}': (variables: DeleteIntegrationLogDrainVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15203
+ 'GET /v1/integrations/git-namespaces': (variables: GitNamespacesVariables, signal?: AbortSignal | undefined) => Promise<GitNamespacesResponse>;
15204
+ 'GET /v1/integrations/search-repo': (variables: SearchRepoVariables, signal?: AbortSignal | undefined) => Promise<SearchRepoResponse>;
15205
+ 'POST /v1/webhooks': (variables: CreateWebhookVariables, signal?: AbortSignal | undefined) => Promise<CreateWebhookResponse>;
15206
+ 'GET /v1/webhooks': (variables: GetWebhooksVariables, signal?: AbortSignal | undefined) => Promise<{
15207
+ projectsMetadata: {
15208
+ id: string;
15209
+ name: string;
15210
+ framework?: "blitzjs" | "nextjs" | "gatsby" | "remix" | "astro" | "hexo" | "eleventy" | "docusaurus-2" | "docusaurus" | "preact" | "solidstart" | "dojo" | "ember" | "vue" | "scully" | "ionic-angular" | "angular" | "polymer" | "svelte" | "sveltekit" | "sveltekit-1" | "ionic-react" | "create-react-app" | "gridsome" | "umijs" | "sapper" | "saber" | "stencil" | "nuxtjs" | "redwoodjs" | "hugo" | "jekyll" | "brunch" | "middleman" | "zola" | "hydrogen" | "vite" | "vitepress" | "vuepress" | "parcel" | "sanity" | null;
15211
+ latestDeployment?: string;
15212
+ }[] | null;
15213
+ events: ("deployment" | "domain.created" | "deployment.created" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "project.created" | "project.removed" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed")[];
15214
+ id: string;
15215
+ url: string;
15216
+ ownerId: string;
15217
+ createdAt: number;
15218
+ updatedAt: number;
15219
+ projectIds?: string[];
15220
+ }[] | {
15221
+ events: ("deployment" | "domain.created" | "deployment.created" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "project.created" | "project.removed" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed")[];
15222
+ id: string;
15223
+ url: string;
15224
+ ownerId: string;
15225
+ createdAt: number;
15226
+ updatedAt: number;
15227
+ projectIds?: string[];
15228
+ }[]>;
15229
+ 'GET /v1/webhooks/{id}': (variables: GetWebhookVariables, signal?: AbortSignal | undefined) => Promise<GetWebhookResponse>;
15230
+ 'DELETE /v1/webhooks/{id}': (variables: DeleteWebhookVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15231
+ 'GET /v1/log-drains/{id}': (variables: GetConfigurableLogDrainVariables, signal?: AbortSignal | undefined) => Promise<GetConfigurableLogDrainResponse>;
15232
+ 'DELETE /v1/log-drains/{id}': (variables: DeleteConfigurableLogDrainVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15233
+ 'GET /v1/log-drains': (variables: GetConfigurableLogDrainsVariables, signal?: AbortSignal | undefined) => Promise<GetConfigurableLogDrainsResponse>;
15234
+ 'POST /v1/log-drains': (variables: CreateConfigurableLogDrainVariables, signal?: AbortSignal | undefined) => Promise<CreateConfigurableLogDrainResponse>;
15235
+ 'GET /v2/teams/{teamId}': (variables: GetTeamVariables, signal?: AbortSignal | undefined) => Promise<Team>;
15236
+ 'PATCH /v2/teams/{teamId}': (variables: PatchTeamVariables, signal?: AbortSignal | undefined) => Promise<Team>;
15237
+ 'GET /v2/teams': (variables: GetTeamsVariables, signal?: AbortSignal | undefined) => Promise<GetTeamsResponse>;
15238
+ 'POST /v1/teams': (variables: CreateTeamVariables, signal?: AbortSignal | undefined) => Promise<CreateTeamResponse>;
15239
+ 'DELETE /v1/teams/{teamId}': (variables: DeleteTeamVariables, signal?: AbortSignal | undefined) => Promise<DeleteTeamResponse>;
15240
+ 'DELETE /v1/teams/{teamId}/invites/{inviteId}': (variables: DeleteTeamInviteCodeVariables, signal?: AbortSignal | undefined) => Promise<DeleteTeamInviteCodeResponse>;
15241
+ 'GET /v2/teams/{teamId}/members': (variables: GetTeamMembersVariables, signal?: AbortSignal | undefined) => Promise<GetTeamMembersResponse>;
15242
+ 'POST /v1/teams/{teamId}/members': (variables: InviteUserToTeamVariables, signal?: AbortSignal | undefined) => Promise<InviteUserToTeamResponse>;
15243
+ 'POST /v1/teams/{teamId}/request': (variables: RequestAccessToTeamVariables, signal?: AbortSignal | undefined) => Promise<RequestAccessToTeamResponse>;
15244
+ 'GET /v1/teams/{teamId}/request/{userId}': (variables: GetTeamAccessRequestVariables, signal?: AbortSignal | undefined) => Promise<GetTeamAccessRequestResponse>;
15245
+ 'POST /v1/teams/{teamId}/members/teams/join': (variables: JoinTeamVariables, signal?: AbortSignal | undefined) => Promise<JoinTeamResponse>;
15246
+ 'PATCH /v1/teams/{teamId}/members/{uid}': (variables: UpdateTeamMemberVariables, signal?: AbortSignal | undefined) => Promise<UpdateTeamMemberResponse>;
15247
+ 'DELETE /v1/teams/{teamId}/members/{uid}': (variables: RemoveTeamMemberVariables, signal?: AbortSignal | undefined) => Promise<RemoveTeamMemberResponse>;
15248
+ 'GET /v6/deployments/{id}/files': (variables: ListDeploymentFilesVariables, signal?: AbortSignal | undefined) => Promise<ListDeploymentFilesResponse>;
15249
+ 'GET /v6/deployments/{id}/files/{fileId}': (variables: GetDeploymentFileContentsVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15250
+ 'GET /v11/deployments/{deploymentId}/builds': (variables: ListDeploymentBuildsVariables, signal?: AbortSignal | undefined) => Promise<ListDeploymentBuildsResponse>;
15251
+ 'POST /v1/deployments/{deploymentId}/checks': (variables: CreateCheckVariables, signal?: AbortSignal | undefined) => Promise<CreateCheckResponse>;
15252
+ 'GET /v1/deployments/{deploymentId}/checks': (variables: GetAllChecksVariables, signal?: AbortSignal | undefined) => Promise<GetAllChecksResponse>;
15253
+ 'GET /v1/deployments/{deploymentId}/checks/{checkId}': (variables: GetCheckVariables, signal?: AbortSignal | undefined) => Promise<GetCheckResponse>;
15254
+ 'PATCH /v1/deployments/{deploymentId}/checks/{checkId}': (variables: UpdateCheckVariables, signal?: AbortSignal | undefined) => Promise<UpdateCheckResponse>;
15255
+ 'POST /v1/deployments/{deploymentId}/checks/{checkId}/rerequest': (variables: RerequestCheckVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any>>;
15256
+ 'GET /v1/edge-config': (variables: GetEdgeConfigsVariables, signal?: AbortSignal | undefined) => Promise<GetEdgeConfigsResponse>;
15257
+ 'POST /v1/edge-config': (variables: CreateEdgeConfigVariables, signal?: AbortSignal | undefined) => Promise<CreateEdgeConfigResponse>;
15258
+ 'GET /v1/edge-config/{edgeConfigId}': (variables: GetEdgeConfigVariables, signal?: AbortSignal | undefined) => Promise<GetEdgeConfigResponse>;
15259
+ 'PUT /v1/edge-config/{edgeConfigId}': (variables: UpdateEdgeConfigVariables, signal?: AbortSignal | undefined) => Promise<UpdateEdgeConfigResponse>;
15260
+ 'DELETE /v1/edge-config/{edgeConfigId}': (variables: DeleteEdgeConfigVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15261
+ 'GET /v1/edge-config/{edgeConfigId}/items': (variables: GetEdgeConfigItemsVariables, signal?: AbortSignal | undefined) => Promise<EdgeConfigItem>;
15262
+ 'PATCH /v1/edge-config/{edgeConfigId}/items': (variables: PatchtEdgeConfigItemsVariables, signal?: AbortSignal | undefined) => Promise<PatchtEdgeConfigItemsResponse>;
15263
+ 'GET /v1/edge-config/{edgeConfigId}/item/{edgeConfigItemKey}': (variables: GetEdgeConfigItemVariables, signal?: AbortSignal | undefined) => Promise<EdgeConfigItem>;
15264
+ 'GET /v1/edge-config/{edgeConfigId}/tokens': (variables: GetEdgeConfigTokensVariables, signal?: AbortSignal | undefined) => Promise<EdgeConfigToken>;
15265
+ 'DELETE /v1/edge-config/{edgeConfigId}/tokens': (variables: DeleteEdgeConfigTokensVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15266
+ 'GET /v1/edge-config/{edgeConfigId}/token/{token}': (variables: GetEdgeConfigTokenVariables, signal?: AbortSignal | undefined) => Promise<EdgeConfigToken>;
15267
+ 'POST /v1/edge-config/{edgeConfigId}/token': (variables: CreateEdgeConfigTokenVariables, signal?: AbortSignal | undefined) => Promise<CreateEdgeConfigTokenResponse>;
15268
+ };
15269
+
15270
+ type RequiredKeys<T> = {
15271
+ [K in keyof T]-?: {} extends Pick<T, K> ? never : K;
15272
+ }[keyof T];
15273
+
15274
+ interface VercelApiOptions {
15275
+ token: string;
15276
+ fetch?: FetchImpl;
15277
+ }
15278
+ type ApiProxy = {
15279
+ [Tag in keyof typeof operationsByTag]: {
15280
+ [Method in keyof (typeof operationsByTag)[Tag]]: (typeof operationsByTag)[Tag][Method] extends infer Operation extends (...args: any) => any ? Omit<Parameters<Operation>[0], keyof FetcherExtraProps> extends infer Params ? RequiredKeys<Params> extends never ? (params?: Params) => ReturnType<Operation> : (params: Params) => ReturnType<Operation> : never : never;
15281
+ };
15282
+ };
15283
+ type RequestEndpointParams<T extends keyof typeof operationsByPath> = Omit<Parameters<(typeof operationsByPath)[T]>[0], keyof FetcherExtraProps>;
15284
+ declare class VercelApi {
15285
+ #private;
15286
+ constructor(options: VercelApiOptions);
15287
+ get api(): ApiProxy;
15288
+ request<Endpoint extends keyof typeof operationsByPath>(endpoint: Endpoint, params: RequestEndpointParams<Endpoint>): Promise<ReturnType<{
15289
+ 'POST /v8/artifacts/events': (variables: RecordEventsVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15290
+ 'GET /v8/artifacts/status': (variables: StatusVariables, signal?: AbortSignal | undefined) => Promise<StatusResponse>;
15291
+ 'PUT /v8/artifacts/{hash}': (variables: UploadArtifactVariables, signal?: AbortSignal | undefined) => Promise<UploadArtifactResponse>;
15292
+ 'GET /v8/artifacts/{hash}': (variables: DownloadArtifactVariables, signal?: AbortSignal | undefined) => Promise<Blob>;
15293
+ 'POST /v8/artifacts': (variables: ArtifactQueryVariables, signal?: AbortSignal | undefined) => Promise<ArtifactQueryResponse>;
15294
+ 'GET /v13/deployments/{idOrUrl}': (variables: GetDeploymentVariables, signal?: AbortSignal | undefined) => Promise<{
15295
+ aliasAssignedAt?: number | boolean | null;
15296
+ build: {
15297
+ env: string[];
15298
+ };
15299
+ builds?: Record<string, any>[];
15300
+ connectConfigurationId?: string;
15301
+ createdIn: string;
15302
+ env: string[];
15303
+ functions?: {
15304
+ [key: string]: {
15305
+ memory?: number;
15306
+ maxDuration?: number;
15307
+ runtime?: string;
15308
+ includeFiles?: string;
15309
+ excludeFiles?: string;
15310
+ };
15311
+ } | null;
15312
+ inspectorUrl: string | null;
15313
+ isInConcurrentBuildsQueue: boolean;
15314
+ meta: {
15315
+ [key: string]: string;
15316
+ };
15317
+ monorepoManager?: string | null;
15318
+ name: string;
15319
+ ownerId: string;
15320
+ plan: "hobby" | "enterprise" | "pro" | "oss";
15321
+ projectId: string;
15322
+ routes: ({
15323
+ src: string;
15324
+ dest?: string;
15325
+ headers?: {
15326
+ [key: string]: string;
15327
+ };
15328
+ methods?: string[];
15329
+ continue?: boolean;
15330
+ override?: boolean;
15331
+ caseSensitive?: boolean;
15332
+ check?: boolean;
15333
+ important?: boolean;
15334
+ status?: number;
15335
+ has?: ({
15336
+ type: "host";
15337
+ value: string;
15338
+ } | {
15339
+ type: "header" | "cookie" | "query";
15340
+ key: string;
15341
+ value?: string;
15342
+ })[];
15343
+ missing?: ({
15344
+ type: "host";
15345
+ value: string;
15346
+ } | {
15347
+ type: "header" | "cookie" | "query";
15348
+ key: string;
15349
+ value?: string;
15350
+ })[];
15351
+ locale?: {
15352
+ redirect?: {
15353
+ [key: string]: string;
15354
+ };
15355
+ cookie?: string;
15356
+ };
15357
+ middlewarePath?: string;
15358
+ middlewareRawSrc?: string[];
15359
+ middleware?: number;
15360
+ } | {
15361
+ handle: "filesystem" | "hit" | "miss" | "rewrite" | "error" | "resource";
15362
+ src?: string;
15363
+ dest?: string;
15364
+ status?: number;
15365
+ } | {
15366
+ src: string;
15367
+ continue: boolean;
15368
+ middleware: 0;
15369
+ })[] | null;
15370
+ gitRepo?: {
15371
+ namespace: string;
15372
+ projectId: number;
15373
+ type: "gitlab";
15374
+ url: string;
15375
+ path: string;
15376
+ defaultBranch: string;
15377
+ name: string;
15378
+ private: boolean;
15379
+ ownerType: "user" | "team";
15380
+ } | {
15381
+ org: string;
15382
+ repo: string;
15383
+ repoId: number;
15384
+ type: "github";
15385
+ repoOwnerId: string;
15386
+ path: string;
15387
+ defaultBranch: string;
15388
+ name: string;
15389
+ private: boolean;
15390
+ ownerType: "user" | "team";
15391
+ } | {
15392
+ owner: string;
15393
+ repoUuid: string;
15394
+ slug: string;
15395
+ type: "bitbucket";
15396
+ workspaceUuid: string;
15397
+ path: string;
15398
+ defaultBranch: string;
15399
+ name: string;
15400
+ private: boolean;
15401
+ ownerType: "user" | "team";
15402
+ } | null;
15403
+ alias: string[];
15404
+ aliasAssigned: boolean;
15405
+ aliasError?: {
15406
+ code: string;
15407
+ message: string;
15408
+ } | null;
15409
+ aliasFinal?: string | null;
15410
+ aliasWarning?: {
15411
+ code: string;
15412
+ message: string;
15413
+ link?: string;
15414
+ action?: string;
15415
+ } | null;
15416
+ automaticAliases?: string[];
15417
+ bootedAt: number;
15418
+ buildErrorAt?: number;
15419
+ buildingAt: number;
15420
+ canceledAt?: number;
15421
+ checksState?: "registered" | "running" | "completed";
15422
+ checksConclusion?: "canceled" | "succeeded" | "failed" | "skipped";
15423
+ createdAt: number;
15424
+ creator: {
15425
+ uid: string;
15426
+ username?: string;
15427
+ };
15428
+ errorCode?: string;
15429
+ errorLink?: string;
15430
+ errorMessage?: string | null;
15431
+ errorStep?: string;
15432
+ gitSource?: {
15433
+ type: "github";
15434
+ repoId: string | number;
15435
+ ref?: string | null;
15436
+ sha?: string;
15437
+ prId?: number | null;
15438
+ } | {
15439
+ type: "github";
15440
+ org: string;
15441
+ repo: string;
15442
+ ref?: string | null;
15443
+ sha?: string;
15444
+ prId?: number | null;
15445
+ } | {
15446
+ type: "gitlab";
15447
+ projectId: string | number;
15448
+ ref?: string | null;
15449
+ sha?: string;
15450
+ prId?: number | null;
15451
+ } | {
15452
+ type: "bitbucket";
15453
+ workspaceUuid?: string;
15454
+ repoUuid: string;
15455
+ ref?: string | null;
15456
+ sha?: string;
15457
+ prId?: number | null;
15458
+ } | {
15459
+ type: "bitbucket";
15460
+ owner: string;
15461
+ slug: string;
15462
+ ref?: string | null;
15463
+ sha?: string;
15464
+ prId?: number | null;
15465
+ } | {
15466
+ type: "custom";
15467
+ ref: string;
15468
+ sha: string;
15469
+ gitUrl: string;
15470
+ } | {
15471
+ type: "github";
15472
+ ref: string;
15473
+ sha: string;
15474
+ repoId: number;
15475
+ org?: string;
15476
+ repo?: string;
15477
+ } | {
15478
+ type: "gitlab";
15479
+ ref: string;
15480
+ sha: string;
15481
+ projectId: number;
15482
+ } | {
15483
+ type: "bitbucket";
15484
+ ref: string;
15485
+ sha: string;
15486
+ owner?: string;
15487
+ slug?: string;
15488
+ workspaceUuid: string;
15489
+ repoUuid: string;
15490
+ };
15491
+ id: string;
15492
+ lambdas?: {
15493
+ id: string;
15494
+ createdAt?: number;
15495
+ entrypoint?: string | null;
15496
+ readyState?: "BUILDING" | "ERROR" | "INITIALIZING" | "READY";
15497
+ readyStateAt?: number;
15498
+ output: {
15499
+ path: string;
15500
+ functionName: string;
15501
+ }[];
15502
+ }[];
15503
+ public: boolean;
15504
+ readyState: "BUILDING" | "ERROR" | "INITIALIZING" | "READY" | "QUEUED" | "CANCELED";
15505
+ regions: string[];
15506
+ source?: "import" | "cli" | "git" | "import/repo" | "clone/repo";
15507
+ target?: "production" | "staging" | null;
15508
+ team?: {
15509
+ id: string;
15510
+ name: string;
15511
+ slug: string;
15512
+ };
15513
+ type: "LAMBDAS";
15514
+ url: string;
15515
+ userAliases?: string[];
15516
+ version: 2;
15517
+ previewCommentsEnabled?: boolean;
15518
+ } | {
15519
+ alias: string[];
15520
+ aliasAssigned: boolean;
15521
+ aliasError?: {
15522
+ code: string;
15523
+ message: string;
15524
+ } | null;
15525
+ aliasFinal?: string | null;
15526
+ aliasWarning?: {
15527
+ code: string;
15528
+ message: string;
15529
+ link?: string;
15530
+ action?: string;
15531
+ } | null;
15532
+ automaticAliases?: string[];
15533
+ bootedAt: number;
15534
+ buildErrorAt?: number;
15535
+ buildingAt: number;
15536
+ canceledAt?: number;
15537
+ checksState?: "registered" | "running" | "completed";
15538
+ checksConclusion?: "canceled" | "succeeded" | "failed" | "skipped";
15539
+ createdAt: number;
15540
+ creator: {
15541
+ uid: string;
15542
+ username?: string;
15543
+ };
15544
+ errorCode?: string;
15545
+ errorLink?: string;
15546
+ errorMessage?: string | null;
15547
+ errorStep?: string;
15548
+ gitSource?: {
15549
+ type: "github";
15550
+ repoId: string | number;
15551
+ ref?: string | null;
15552
+ sha?: string;
15553
+ prId?: number | null;
15554
+ } | {
15555
+ type: "github";
15556
+ org: string;
15557
+ repo: string;
15558
+ ref?: string | null;
15559
+ sha?: string;
15560
+ prId?: number | null;
15561
+ } | {
15562
+ type: "gitlab";
15563
+ projectId: string | number;
15564
+ ref?: string | null;
15565
+ sha?: string;
15566
+ prId?: number | null;
15567
+ } | {
15568
+ type: "bitbucket";
15569
+ workspaceUuid?: string;
15570
+ repoUuid: string;
15571
+ ref?: string | null;
15572
+ sha?: string;
15573
+ prId?: number | null;
15574
+ } | {
15575
+ type: "bitbucket";
15576
+ owner: string;
15577
+ slug: string;
15578
+ ref?: string | null;
15579
+ sha?: string;
15580
+ prId?: number | null;
15581
+ } | {
15582
+ type: "custom";
15583
+ ref: string;
15584
+ sha: string;
15585
+ gitUrl: string;
15586
+ } | {
15587
+ type: "github";
15588
+ ref: string;
15589
+ sha: string;
15590
+ repoId: number;
15591
+ org?: string;
15592
+ repo?: string;
15593
+ } | {
15594
+ type: "gitlab";
15595
+ ref: string;
15596
+ sha: string;
15597
+ projectId: number;
15598
+ } | {
15599
+ type: "bitbucket";
15600
+ ref: string;
15601
+ sha: string;
15602
+ owner?: string;
15603
+ slug?: string;
15604
+ workspaceUuid: string;
15605
+ repoUuid: string;
15606
+ };
15607
+ id: string;
15608
+ lambdas?: {
15609
+ id: string;
15610
+ createdAt?: number;
15611
+ entrypoint?: string | null;
15612
+ readyState?: "BUILDING" | "ERROR" | "INITIALIZING" | "READY";
15613
+ readyStateAt?: number;
15614
+ output: {
15615
+ path: string;
15616
+ functionName: string;
15617
+ }[];
15618
+ }[];
15619
+ name: string;
15620
+ meta: {
15621
+ [key: string]: string;
15622
+ };
15623
+ public: boolean;
15624
+ readyState: "BUILDING" | "ERROR" | "INITIALIZING" | "READY" | "QUEUED" | "CANCELED";
15625
+ regions: string[];
15626
+ source?: "import" | "cli" | "git" | "import/repo" | "clone/repo";
15627
+ target?: "production" | "staging" | null;
15628
+ team?: {
15629
+ id: string;
15630
+ name: string;
15631
+ slug: string;
15632
+ };
15633
+ type: "LAMBDAS";
15634
+ url: string;
15635
+ userAliases?: string[];
15636
+ version: 2;
15637
+ previewCommentsEnabled?: boolean;
15638
+ }>;
15639
+ 'POST /v13/deployments': (variables: CreateDeploymentVariables, signal?: AbortSignal | undefined) => Promise<CreateDeploymentResponse>;
15640
+ 'PATCH /v12/deployments/{id}/cancel': (variables: CancelDeploymentVariables, signal?: AbortSignal | undefined) => Promise<CancelDeploymentResponse>;
15641
+ 'GET /v7/certs/{id}': (variables: GetCertByIdVariables, signal?: AbortSignal | undefined) => Promise<GetCertByIdResponse>;
15642
+ 'DELETE /v7/certs/{id}': (variables: RemoveCertVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any>>;
15643
+ 'POST /v7/certs': (variables: IssueCertVariables, signal?: AbortSignal | undefined) => Promise<IssueCertResponse>;
15644
+ 'PUT /v7/certs': (variables: UploadCertVariables, signal?: AbortSignal | undefined) => Promise<UploadCertResponse>;
15645
+ 'GET /v2/deployments/{idOrUrl}/events': (variables: GetDeploymentEventsVariables, signal?: AbortSignal | undefined) => Promise<GetDeploymentEventsResponse>;
15646
+ 'GET /v3/events': (variables: ListUserEventsVariables, signal?: AbortSignal | undefined) => Promise<ListUserEventsResponse>;
15647
+ 'GET /v4/aliases': (variables: ListAliasesVariables, signal?: AbortSignal | undefined) => Promise<ListAliasesResponse>;
15648
+ 'GET /v4/aliases/{idOrAlias}': (variables: GetAliasVariables, signal?: AbortSignal | undefined) => Promise<GetAliasResponse>;
15649
+ 'DELETE /v2/aliases/{aliasId}': (variables: DeleteAliasVariables, signal?: AbortSignal | undefined) => Promise<DeleteAliasResponse>;
15650
+ 'GET /v2/deployments/{id}/aliases': (variables: ListDeploymentAliasesVariables, signal?: AbortSignal | undefined) => Promise<ListDeploymentAliasesResponse>;
15651
+ 'POST /v2/deployments/{id}/aliases': (variables: AssignAliasVariables, signal?: AbortSignal | undefined) => Promise<AssignAliasResponse>;
15652
+ 'POST /v2/files': (variables: UploadFileVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any> | {
15653
+ urls: string[];
15654
+ }>;
15655
+ 'GET /v2/user': (variables: FetcherExtraProps, signal?: AbortSignal | undefined) => Promise<GetAuthUserResponse>;
15656
+ 'DELETE /v1/user': (variables: RequestDeleteVariables, signal?: AbortSignal | undefined) => Promise<RequestDeleteResponse>;
15657
+ 'GET /v5/user/tokens': (variables: FetcherExtraProps, signal?: AbortSignal | undefined) => Promise<ListAuthTokensResponse>;
15658
+ 'POST /v3/user/tokens': (variables: CreateAuthTokenVariables, signal?: AbortSignal | undefined) => Promise<CreateAuthTokenResponse>;
15659
+ 'GET /v5/user/tokens/{tokenId}': (variables: GetAuthTokenVariables, signal?: AbortSignal | undefined) => Promise<GetAuthTokenResponse>;
15660
+ 'DELETE /v3/user/tokens/{tokenId}': (variables: DeleteAuthTokenVariables, signal?: AbortSignal | undefined) => Promise<DeleteAuthTokenResponse>;
15661
+ 'GET /v4/domains/{domain}/records': (variables: GetRecordsVariables, signal?: AbortSignal | undefined) => Promise<string | {
15662
+ records: {
15663
+ id: string;
15664
+ slug: string;
15665
+ name: string;
15666
+ type: "A" | "AAAA" | "ALIAS" | "CAA" | "CNAME" | "MX" | "SRV" | "TXT" | "NS";
15667
+ value: string;
15668
+ mxPriority?: number;
15669
+ priority?: number;
15670
+ creator: string;
15671
+ created: number | null;
15672
+ updated: number | null;
15673
+ createdAt: number | null;
15674
+ updatedAt: number | null;
15675
+ }[];
15676
+ } | {
15677
+ records: {
15678
+ id: string;
15679
+ slug: string;
15680
+ name: string;
15681
+ type: "A" | "AAAA" | "ALIAS" | "CAA" | "CNAME" | "MX" | "SRV" | "TXT" | "NS";
15682
+ value: string;
15683
+ mxPriority?: number;
15684
+ priority?: number;
15685
+ creator: string;
15686
+ created: number | null;
15687
+ updated: number | null;
15688
+ createdAt: number | null;
15689
+ updatedAt: number | null;
15690
+ }[];
15691
+ pagination: Pagination;
15692
+ }>;
15693
+ 'POST /v2/domains/{domain}/records': (variables: CreateRecordVariables, signal?: AbortSignal | undefined) => Promise<{
15694
+ uid: string;
15695
+ updated: number;
15696
+ } | {
15697
+ uid: string;
15698
+ }>;
15699
+ 'PATCH /v1/domains/records/{recordId}': (variables: UpdateRecordVariables, signal?: AbortSignal | undefined) => Promise<UpdateRecordResponse>;
15700
+ 'DELETE /v2/domains/{domain}/records/{recordId}': (variables: RemoveRecordVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any>>;
15701
+ 'GET /v4/domains/status': (variables: CheckDomainStatusVariables, signal?: AbortSignal | undefined) => Promise<CheckDomainStatusResponse>;
15702
+ 'GET /v4/domains/price': (variables: CheckDomainPriceVariables, signal?: AbortSignal | undefined) => Promise<CheckDomainPriceResponse>;
15703
+ 'POST /v4/domains/buy': (variables: BuyDomainVariables, signal?: AbortSignal | undefined) => Promise<BuyDomainResponse>;
15704
+ 'GET /v6/domains/{domain}/config': (variables: GetDomainConfigVariables, signal?: AbortSignal | undefined) => Promise<GetDomainConfigResponse>;
15705
+ 'GET /v5/domains/{domain}': (variables: GetDomainVariables, signal?: AbortSignal | undefined) => Promise<GetDomainResponse>;
15706
+ 'GET /v5/domains': (variables: GetDomainsVariables, signal?: AbortSignal | undefined) => Promise<GetDomainsResponse>;
15707
+ 'POST /v5/domains': (variables: CreateOrTransferDomainVariables, signal?: AbortSignal | undefined) => Promise<CreateOrTransferDomainResponse>;
15708
+ 'DELETE /v6/domains/{domain}': (variables: DeleteDomainVariables, signal?: AbortSignal | undefined) => Promise<DeleteDomainResponse>;
15709
+ 'GET /v3/secrets': (variables: GetSecretsVariables, signal?: AbortSignal | undefined) => Promise<GetSecretsResponse>;
15710
+ 'POST /v2/secrets/{name}': (variables: CreateSecretVariables, signal?: AbortSignal | undefined) => Promise<CreateSecretResponse>;
15711
+ 'PATCH /v2/secrets/{name}': (variables: RenameSecretVariables, signal?: AbortSignal | undefined) => Promise<RenameSecretResponse>;
15712
+ 'GET /v3/secrets/{idOrName}': (variables: GetSecretVariables, signal?: AbortSignal | undefined) => Promise<GetSecretResponse>;
15713
+ 'DELETE /v2/secrets/{idOrName}': (variables: DeleteSecretVariables, signal?: AbortSignal | undefined) => Promise<DeleteSecretResponse>;
15714
+ 'DELETE /v13/deployments/{id}': (variables: DeleteDeploymentVariables, signal?: AbortSignal | undefined) => Promise<DeleteDeploymentResponse>;
15715
+ 'GET /v6/deployments': (variables: GetDeploymentsVariables, signal?: AbortSignal | undefined) => Promise<GetDeploymentsResponse>;
15716
+ 'GET /v9/projects': (variables: GetProjectsVariables, signal?: AbortSignal | undefined) => Promise<GetProjectsResponse>;
15717
+ 'POST /v9/projects': (variables: CreateProjectVariables, signal?: AbortSignal | undefined) => Promise<CreateProjectResponse>;
15718
+ 'GET /v9/projects/{idOrName}': (variables: GetProjectVariables, signal?: AbortSignal | undefined) => Promise<GetProjectResponse>;
15719
+ 'PATCH /v9/projects/{idOrName}': (variables: UpdateProjectVariables, signal?: AbortSignal | undefined) => Promise<UpdateProjectResponse>;
15720
+ 'DELETE /v9/projects/{idOrName}': (variables: DeleteProjectVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15721
+ 'GET /v9/projects/{idOrName}/domains': (variables: GetProjectDomainsVariables, signal?: AbortSignal | undefined) => Promise<GetProjectDomainsResponse>;
15722
+ 'GET /v9/projects/{idOrName}/domains/{domain}': (variables: GetProjectDomainVariables, signal?: AbortSignal | undefined) => Promise<GetProjectDomainResponse>;
15723
+ 'PATCH /v9/projects/{idOrName}/domains/{domain}': (variables: UpdateProjectDomainVariables, signal?: AbortSignal | undefined) => Promise<UpdateProjectDomainResponse>;
15724
+ 'DELETE /v9/projects/{idOrName}/domains/{domain}': (variables: RemoveProjectDomainVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any>>;
15725
+ 'POST /v10/projects/{idOrName}/domains': (variables: AddProjectDomainVariables, signal?: AbortSignal | undefined) => Promise<AddProjectDomainResponse>;
15726
+ 'POST /v9/projects/{idOrName}/domains/{domain}/verify': (variables: VerifyProjectDomainVariables, signal?: AbortSignal | undefined) => Promise<VerifyProjectDomainResponse>;
15727
+ 'GET /v9/projects/{idOrName}/env': (variables: FilterProjectEnvsVariables, signal?: AbortSignal | undefined) => Promise<{
15728
+ target?: "production" | "preview" | "development" | ("production" | "preview" | "development")[];
15729
+ type?: "system" | "secret" | "encrypted" | "plain" | "sensitive";
15730
+ id?: string;
15731
+ key?: string;
15732
+ value?: string;
15733
+ configurationId?: string | null;
15734
+ createdAt?: number;
15735
+ updatedAt?: number;
15736
+ createdBy?: string | null;
15737
+ updatedBy?: string | null;
15738
+ gitBranch?: string;
15739
+ edgeConfigId?: string | null;
15740
+ edgeConfigTokenId?: string | null;
15741
+ decrypted?: boolean;
15742
+ system?: boolean;
15743
+ } | {
15744
+ envs: {
15745
+ target?: "production" | "preview" | "development" | ("production" | "preview" | "development")[];
15746
+ type?: "system" | "secret" | "encrypted" | "plain" | "sensitive";
15747
+ id?: string;
15748
+ key?: string;
15749
+ value?: string;
15750
+ configurationId?: string | null;
15751
+ createdAt?: number;
15752
+ updatedAt?: number;
15753
+ createdBy?: string | null;
15754
+ updatedBy?: string | null;
15755
+ gitBranch?: string;
15756
+ edgeConfigId?: string | null;
15757
+ edgeConfigTokenId?: string | null;
15758
+ decrypted?: boolean;
15759
+ system?: boolean;
15760
+ }[];
15761
+ pagination: Pagination;
15762
+ } | {
15763
+ envs: {
15764
+ target?: "production" | "preview" | "development" | ("production" | "preview" | "development")[];
15765
+ type?: "system" | "secret" | "encrypted" | "plain" | "sensitive";
15766
+ id?: string;
15767
+ key?: string;
15768
+ value?: string;
15769
+ configurationId?: string | null;
15770
+ createdAt?: number;
15771
+ updatedAt?: number;
15772
+ createdBy?: string | null;
15773
+ updatedBy?: string | null;
15774
+ gitBranch?: string;
15775
+ edgeConfigId?: string | null;
15776
+ edgeConfigTokenId?: string | null;
15777
+ decrypted?: boolean;
15778
+ system?: boolean;
15779
+ }[];
15780
+ }>;
15781
+ 'GET /v1/projects/{idOrName}/env/{id}': (variables: GetProjectEnvVariables, signal?: AbortSignal | undefined) => Promise<GetProjectEnvResponse>;
15782
+ 'POST /v10/projects/{idOrName}/env': (variables: CreateProjectEnvVariables, signal?: AbortSignal | undefined) => Promise<CreateProjectEnvResponse>;
15783
+ 'DELETE /v9/projects/{idOrName}/env/{id}': (variables: RemoveProjectEnvVariables, signal?: AbortSignal | undefined) => Promise<{
15784
+ system?: boolean;
15785
+ target?: "production" | "preview" | "development" | ("production" | "preview" | "development")[];
15786
+ type: "system" | "secret" | "encrypted" | "plain" | "sensitive";
15787
+ id?: string;
15788
+ key: string;
15789
+ value: string;
15790
+ configurationId?: string | null;
15791
+ createdAt?: number;
15792
+ updatedAt?: number;
15793
+ createdBy?: string | null;
15794
+ updatedBy?: string | null;
15795
+ gitBranch?: string;
15796
+ edgeConfigId?: string | null;
15797
+ edgeConfigTokenId?: string | null;
15798
+ decrypted?: boolean;
15799
+ } | {
15800
+ target?: "production" | "preview" | "development" | ("production" | "preview" | "development")[];
15801
+ type: "system" | "secret" | "encrypted" | "plain" | "sensitive";
15802
+ id?: string;
15803
+ key: string;
15804
+ value: string;
15805
+ configurationId?: string | null;
15806
+ createdAt?: number;
15807
+ updatedAt?: number;
15808
+ createdBy?: string | null;
15809
+ updatedBy?: string | null;
15810
+ gitBranch?: string;
15811
+ edgeConfigId?: string | null;
15812
+ edgeConfigTokenId?: string | null;
15813
+ decrypted?: boolean;
15814
+ } | {
15815
+ target?: "production" | "preview" | "development" | ("production" | "preview" | "development")[];
15816
+ type: "system" | "secret" | "encrypted" | "plain" | "sensitive";
15817
+ id?: string;
15818
+ key: string;
15819
+ value: string;
15820
+ configurationId?: string | null;
15821
+ createdAt?: number;
15822
+ updatedAt?: number;
15823
+ createdBy?: string | null;
15824
+ updatedBy?: string | null;
15825
+ gitBranch?: string;
15826
+ edgeConfigId?: string | null;
15827
+ edgeConfigTokenId?: string | null;
15828
+ decrypted?: boolean;
15829
+ }[]>;
15830
+ 'PATCH /v9/projects/{idOrName}/env/{id}': (variables: EditProjectEnvVariables, signal?: AbortSignal | undefined) => Promise<EditProjectEnvResponse>;
15831
+ 'GET /registration/verify': (variables: VerifyTokenVariables, signal?: AbortSignal | undefined) => Promise<VerifyTokenResponse>;
15832
+ 'POST /registration': (variables: EmailLoginVariables, signal?: AbortSignal | undefined) => Promise<EmailLoginResponse>;
15833
+ 'GET /v1/integrations/configurations': (variables: GetConfigurationsVariables, signal?: AbortSignal | undefined) => Promise<{
15834
+ completedAt?: number;
15835
+ createdAt: number;
15836
+ id: string;
15837
+ integrationId: string;
15838
+ oauthConfiguration?: boolean;
15839
+ ownerId: string;
15840
+ projects?: string[];
15841
+ source?: "external" | "marketplace" | "deploy-button" | "oauth";
15842
+ removedLogDrainsAt?: number;
15843
+ removedProjectEnvsAt?: number;
15844
+ removedTokensAt?: number;
15845
+ removedWebhooksAt?: number;
15846
+ slug: string;
15847
+ teamId?: string | null;
15848
+ type: "integration-configuration";
15849
+ updatedAt: number;
15850
+ userId: string;
15851
+ scopes: string[];
15852
+ scopesQueue?: {
15853
+ scopes: {
15854
+ added: ("read:integration-configuration" | "read-write:integration-configuration" | "read:deployment" | "read-write:deployment" | "read-write:deployment-check" | "read:project" | "read-write:project" | "read-write:project-env-vars" | "read-write:global-project-env-vars" | "read:team" | "read:user" | "read-write:log-drain" | "read:domain" | "read-write:domain" | "read-write:edge-config" | "read-write:otel-endpoint" | "read:monitoring")[];
15855
+ upgraded: ("read:integration-configuration" | "read-write:integration-configuration" | "read:deployment" | "read-write:deployment" | "read-write:deployment-check" | "read:project" | "read-write:project" | "read-write:project-env-vars" | "read-write:global-project-env-vars" | "read:team" | "read:user" | "read-write:log-drain" | "read:domain" | "read-write:domain" | "read-write:edge-config" | "read-write:otel-endpoint" | "read:monitoring")[];
15856
+ };
15857
+ note: string;
15858
+ requestedAt: number;
15859
+ confirmedAt?: number;
15860
+ }[];
15861
+ disabledAt?: number;
15862
+ deletedAt?: number | null;
15863
+ }[] | {
15864
+ integration: {
15865
+ name: string;
15866
+ icon: string;
15867
+ category: string;
15868
+ isLegacy: boolean;
15869
+ flags?: string[];
15870
+ assignedBetaLabelAt?: number;
15871
+ };
15872
+ completedAt?: number;
15873
+ createdAt: number;
15874
+ id: string;
15875
+ integrationId: string;
15876
+ oauthConfiguration?: boolean;
15877
+ ownerId: string;
15878
+ projects?: string[];
15879
+ source?: "external" | "marketplace" | "deploy-button" | "oauth";
15880
+ removedLogDrainsAt?: number;
15881
+ removedProjectEnvsAt?: number;
15882
+ removedTokensAt?: number;
15883
+ removedWebhooksAt?: number;
15884
+ slug: string;
15885
+ teamId?: string | null;
15886
+ type: "integration-configuration";
15887
+ updatedAt: number;
15888
+ userId: string;
15889
+ scopes: string[];
15890
+ scopesQueue?: {
15891
+ scopes: {
15892
+ added: ("read:integration-configuration" | "read-write:integration-configuration" | "read:deployment" | "read-write:deployment" | "read-write:deployment-check" | "read:project" | "read-write:project" | "read-write:project-env-vars" | "read-write:global-project-env-vars" | "read:team" | "read:user" | "read-write:log-drain" | "read:domain" | "read-write:domain" | "read-write:edge-config" | "read-write:otel-endpoint" | "read:monitoring")[];
15893
+ upgraded: ("read:integration-configuration" | "read-write:integration-configuration" | "read:deployment" | "read-write:deployment" | "read-write:deployment-check" | "read:project" | "read-write:project" | "read-write:project-env-vars" | "read-write:global-project-env-vars" | "read:team" | "read:user" | "read-write:log-drain" | "read:domain" | "read-write:domain" | "read-write:edge-config" | "read-write:otel-endpoint" | "read:monitoring")[];
15894
+ };
15895
+ note: string;
15896
+ requestedAt: number;
15897
+ confirmedAt?: number;
15898
+ }[];
15899
+ disabledAt?: number;
15900
+ deletedAt?: number | null;
15901
+ }[]>;
15902
+ 'GET /v1/integrations/configuration/{id}': (variables: GetConfigurationVariables, signal?: AbortSignal | undefined) => Promise<{
15903
+ completedAt?: number;
15904
+ createdAt: number;
15905
+ id: string;
15906
+ integrationId: string;
15907
+ oauthConfiguration?: boolean;
15908
+ ownerId: string;
15909
+ projects?: string[];
15910
+ source?: "external" | "marketplace" | "deploy-button" | "oauth";
15911
+ removedLogDrainsAt?: number;
15912
+ removedProjectEnvsAt?: number;
15913
+ removedTokensAt?: number;
15914
+ removedWebhooksAt?: number;
15915
+ slug: string;
15916
+ teamId?: string | null;
15917
+ type: "integration-configuration";
15918
+ updatedAt: number;
15919
+ userId: string;
15920
+ scopes: string[];
15921
+ scopesQueue?: {
15922
+ scopes: {
15923
+ added: ("read:integration-configuration" | "read-write:integration-configuration" | "read:deployment" | "read-write:deployment" | "read-write:deployment-check" | "read:project" | "read-write:project" | "read-write:project-env-vars" | "read-write:global-project-env-vars" | "read:team" | "read:user" | "read-write:log-drain" | "read:domain" | "read-write:domain" | "read-write:edge-config" | "read-write:otel-endpoint" | "read:monitoring")[];
15924
+ upgraded: ("read:integration-configuration" | "read-write:integration-configuration" | "read:deployment" | "read-write:deployment" | "read-write:deployment-check" | "read:project" | "read-write:project" | "read-write:project-env-vars" | "read-write:global-project-env-vars" | "read:team" | "read:user" | "read-write:log-drain" | "read:domain" | "read-write:domain" | "read-write:edge-config" | "read-write:otel-endpoint" | "read:monitoring")[];
15925
+ };
15926
+ note: string;
15927
+ requestedAt: number;
15928
+ confirmedAt?: number;
15929
+ }[];
15930
+ disabledAt?: number;
15931
+ deletedAt?: number | null;
15932
+ } | {
15933
+ projectSelection: "all" | "selected";
15934
+ createdAt: number;
15935
+ completedAt?: number;
15936
+ id: string;
15937
+ integrationId: string;
15938
+ oauthConfiguration?: boolean;
15939
+ ownerId: string;
15940
+ projects?: string[];
15941
+ slug: string;
15942
+ teamId?: string | null;
15943
+ updatedAt: number;
15944
+ userId: string;
15945
+ scopes: string[];
15946
+ disabledAt?: number;
15947
+ source?: "external" | "marketplace" | "deploy-button" | "oauth";
15948
+ canConfigureOpenTelemetry?: boolean;
15949
+ }>;
15950
+ 'DELETE /v1/integrations/configuration/{id}': (variables: DeleteConfigurationVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15951
+ 'GET /v2/integrations/log-drains': (variables: GetIntegrationLogDrainsVariables, signal?: AbortSignal | undefined) => Promise<GetIntegrationLogDrainsResponse>;
15952
+ 'POST /v2/integrations/log-drains': (variables: CreateLogDrainVariables, signal?: AbortSignal | undefined) => Promise<CreateLogDrainResponse>;
15953
+ 'DELETE /v1/integrations/log-drains/{id}': (variables: DeleteIntegrationLogDrainVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15954
+ 'GET /v1/integrations/git-namespaces': (variables: GitNamespacesVariables, signal?: AbortSignal | undefined) => Promise<GitNamespacesResponse>;
15955
+ 'GET /v1/integrations/search-repo': (variables: SearchRepoVariables, signal?: AbortSignal | undefined) => Promise<SearchRepoResponse>;
15956
+ 'POST /v1/webhooks': (variables: CreateWebhookVariables, signal?: AbortSignal | undefined) => Promise<CreateWebhookResponse>;
15957
+ 'GET /v1/webhooks': (variables: GetWebhooksVariables, signal?: AbortSignal | undefined) => Promise<{
15958
+ projectsMetadata: {
15959
+ id: string;
15960
+ name: string;
15961
+ framework?: "blitzjs" | "nextjs" | "gatsby" | "remix" | "astro" | "hexo" | "eleventy" | "docusaurus-2" | "docusaurus" | "preact" | "solidstart" | "dojo" | "ember" | "vue" | "scully" | "ionic-angular" | "angular" | "polymer" | "svelte" | "sveltekit" | "sveltekit-1" | "ionic-react" | "create-react-app" | "gridsome" | "umijs" | "sapper" | "saber" | "stencil" | "nuxtjs" | "redwoodjs" | "hugo" | "jekyll" | "brunch" | "middleman" | "zola" | "hydrogen" | "vite" | "vitepress" | "vuepress" | "parcel" | "sanity" | null;
15962
+ latestDeployment?: string;
15963
+ }[] | null;
15964
+ events: ("deployment" | "domain.created" | "deployment.created" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "project.created" | "project.removed" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed")[];
15965
+ id: string;
15966
+ url: string;
15967
+ ownerId: string;
15968
+ createdAt: number;
15969
+ updatedAt: number;
15970
+ projectIds?: string[];
15971
+ }[] | {
15972
+ events: ("deployment" | "domain.created" | "deployment.created" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "project.created" | "project.removed" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed")[];
15973
+ id: string;
15974
+ url: string;
15975
+ ownerId: string;
15976
+ createdAt: number;
15977
+ updatedAt: number;
15978
+ projectIds?: string[];
15979
+ }[]>;
15980
+ 'GET /v1/webhooks/{id}': (variables: GetWebhookVariables, signal?: AbortSignal | undefined) => Promise<GetWebhookResponse>;
15981
+ 'DELETE /v1/webhooks/{id}': (variables: DeleteWebhookVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15982
+ 'GET /v1/log-drains/{id}': (variables: GetConfigurableLogDrainVariables, signal?: AbortSignal | undefined) => Promise<GetConfigurableLogDrainResponse>;
15983
+ 'DELETE /v1/log-drains/{id}': (variables: DeleteConfigurableLogDrainVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15984
+ 'GET /v1/log-drains': (variables: GetConfigurableLogDrainsVariables, signal?: AbortSignal | undefined) => Promise<GetConfigurableLogDrainsResponse>;
15985
+ 'POST /v1/log-drains': (variables: CreateConfigurableLogDrainVariables, signal?: AbortSignal | undefined) => Promise<CreateConfigurableLogDrainResponse>;
15986
+ 'GET /v2/teams/{teamId}': (variables: GetTeamVariables, signal?: AbortSignal | undefined) => Promise<Team>;
15987
+ 'PATCH /v2/teams/{teamId}': (variables: PatchTeamVariables, signal?: AbortSignal | undefined) => Promise<Team>;
15988
+ 'GET /v2/teams': (variables: GetTeamsVariables, signal?: AbortSignal | undefined) => Promise<GetTeamsResponse>;
15989
+ 'POST /v1/teams': (variables: CreateTeamVariables, signal?: AbortSignal | undefined) => Promise<CreateTeamResponse>;
15990
+ 'DELETE /v1/teams/{teamId}': (variables: DeleteTeamVariables, signal?: AbortSignal | undefined) => Promise<DeleteTeamResponse>;
15991
+ 'DELETE /v1/teams/{teamId}/invites/{inviteId}': (variables: DeleteTeamInviteCodeVariables, signal?: AbortSignal | undefined) => Promise<DeleteTeamInviteCodeResponse>;
15992
+ 'GET /v2/teams/{teamId}/members': (variables: GetTeamMembersVariables, signal?: AbortSignal | undefined) => Promise<GetTeamMembersResponse>;
15993
+ 'POST /v1/teams/{teamId}/members': (variables: InviteUserToTeamVariables, signal?: AbortSignal | undefined) => Promise<InviteUserToTeamResponse>;
15994
+ 'POST /v1/teams/{teamId}/request': (variables: RequestAccessToTeamVariables, signal?: AbortSignal | undefined) => Promise<RequestAccessToTeamResponse>;
15995
+ 'GET /v1/teams/{teamId}/request/{userId}': (variables: GetTeamAccessRequestVariables, signal?: AbortSignal | undefined) => Promise<GetTeamAccessRequestResponse>;
15996
+ 'POST /v1/teams/{teamId}/members/teams/join': (variables: JoinTeamVariables, signal?: AbortSignal | undefined) => Promise<JoinTeamResponse>;
15997
+ 'PATCH /v1/teams/{teamId}/members/{uid}': (variables: UpdateTeamMemberVariables, signal?: AbortSignal | undefined) => Promise<UpdateTeamMemberResponse>;
15998
+ 'DELETE /v1/teams/{teamId}/members/{uid}': (variables: RemoveTeamMemberVariables, signal?: AbortSignal | undefined) => Promise<RemoveTeamMemberResponse>;
15999
+ 'GET /v6/deployments/{id}/files': (variables: ListDeploymentFilesVariables, signal?: AbortSignal | undefined) => Promise<ListDeploymentFilesResponse>;
16000
+ 'GET /v6/deployments/{id}/files/{fileId}': (variables: GetDeploymentFileContentsVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
16001
+ 'GET /v11/deployments/{deploymentId}/builds': (variables: ListDeploymentBuildsVariables, signal?: AbortSignal | undefined) => Promise<ListDeploymentBuildsResponse>;
16002
+ 'POST /v1/deployments/{deploymentId}/checks': (variables: CreateCheckVariables, signal?: AbortSignal | undefined) => Promise<CreateCheckResponse>;
16003
+ 'GET /v1/deployments/{deploymentId}/checks': (variables: GetAllChecksVariables, signal?: AbortSignal | undefined) => Promise<GetAllChecksResponse>;
16004
+ 'GET /v1/deployments/{deploymentId}/checks/{checkId}': (variables: GetCheckVariables, signal?: AbortSignal | undefined) => Promise<GetCheckResponse>;
16005
+ 'PATCH /v1/deployments/{deploymentId}/checks/{checkId}': (variables: UpdateCheckVariables, signal?: AbortSignal | undefined) => Promise<UpdateCheckResponse>;
16006
+ 'POST /v1/deployments/{deploymentId}/checks/{checkId}/rerequest': (variables: RerequestCheckVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any>>;
16007
+ 'GET /v1/edge-config': (variables: GetEdgeConfigsVariables, signal?: AbortSignal | undefined) => Promise<GetEdgeConfigsResponse>;
16008
+ 'POST /v1/edge-config': (variables: CreateEdgeConfigVariables, signal?: AbortSignal | undefined) => Promise<CreateEdgeConfigResponse>;
16009
+ 'GET /v1/edge-config/{edgeConfigId}': (variables: GetEdgeConfigVariables, signal?: AbortSignal | undefined) => Promise<GetEdgeConfigResponse>;
16010
+ 'PUT /v1/edge-config/{edgeConfigId}': (variables: UpdateEdgeConfigVariables, signal?: AbortSignal | undefined) => Promise<UpdateEdgeConfigResponse>;
16011
+ 'DELETE /v1/edge-config/{edgeConfigId}': (variables: DeleteEdgeConfigVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
16012
+ 'GET /v1/edge-config/{edgeConfigId}/items': (variables: GetEdgeConfigItemsVariables, signal?: AbortSignal | undefined) => Promise<EdgeConfigItem>;
16013
+ 'PATCH /v1/edge-config/{edgeConfigId}/items': (variables: PatchtEdgeConfigItemsVariables, signal?: AbortSignal | undefined) => Promise<PatchtEdgeConfigItemsResponse>;
16014
+ 'GET /v1/edge-config/{edgeConfigId}/item/{edgeConfigItemKey}': (variables: GetEdgeConfigItemVariables, signal?: AbortSignal | undefined) => Promise<EdgeConfigItem>;
16015
+ 'GET /v1/edge-config/{edgeConfigId}/tokens': (variables: GetEdgeConfigTokensVariables, signal?: AbortSignal | undefined) => Promise<EdgeConfigToken>;
16016
+ 'DELETE /v1/edge-config/{edgeConfigId}/tokens': (variables: DeleteEdgeConfigTokensVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
16017
+ 'GET /v1/edge-config/{edgeConfigId}/token/{token}': (variables: GetEdgeConfigTokenVariables, signal?: AbortSignal | undefined) => Promise<EdgeConfigToken>;
16018
+ 'POST /v1/edge-config/{edgeConfigId}/token': (variables: CreateEdgeConfigTokenVariables, signal?: AbortSignal | undefined) => Promise<CreateEdgeConfigTokenResponse>;
16019
+ }[Endpoint]>>;
14554
16020
  }
14555
16021
 
14556
16022
  export { components as Components, schemas as Schemas, VercelApi, VercelApiOptions };