vercel-api-js 0.1.2 → 0.1.3
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/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +5 -0
- package/dist/index.d.ts +735 -0
- package/dist/index.mjs +5 -0
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
> vercel-api-js@0.1.
|
|
2
|
+
> vercel-api-js@0.1.3 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
|
|
3
3
|
> rimraf dist && rollup -c
|
|
4
4
|
|
|
5
5
|
[36m
|
|
6
6
|
[1m./src/index.ts[22m → [1mdist/index.cjs, dist/index.mjs[22m...[39m
|
|
7
|
-
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [
|
|
7
|
+
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [1m4.4s[22m[39m
|
|
8
8
|
[36m
|
|
9
9
|
[1m./src/index.ts[22m → [1mdist/index.d.ts[22m...[39m
|
|
10
|
-
[32mcreated [1mdist/index.d.ts[22m in [
|
|
10
|
+
[32mcreated [1mdist/index.d.ts[22m in [1m5.2s[22m[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -956,6 +956,11 @@ class VercelApi {
|
|
|
956
956
|
}
|
|
957
957
|
});
|
|
958
958
|
}
|
|
959
|
+
async request(endpoint, params) {
|
|
960
|
+
const [method = '', url = ''] = endpoint.split(' ');
|
|
961
|
+
const extraParams = (params || {});
|
|
962
|
+
return fetch$1({ ...extraParams, method, url, token: __classPrivateFieldGet(this, _VercelApi_token, "f"), fetchImpl: __classPrivateFieldGet(this, _VercelApi_fetch, "f") });
|
|
963
|
+
}
|
|
959
964
|
}
|
|
960
965
|
_VercelApi_token = new WeakMap(), _VercelApi_fetch = new WeakMap();
|
|
961
966
|
|
package/dist/index.d.ts
CHANGED
|
@@ -14534,6 +14534,739 @@ declare namespace components {
|
|
|
14534
14534
|
};
|
|
14535
14535
|
}
|
|
14536
14536
|
|
|
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
|
+
|
|
14537
15270
|
type RequiredKeys<T> = {
|
|
14538
15271
|
[K in keyof T]-?: {} extends Pick<T, K> ? never : K;
|
|
14539
15272
|
}[keyof T];
|
|
@@ -14547,10 +15280,12 @@ type ApiProxy = {
|
|
|
14547
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;
|
|
14548
15281
|
};
|
|
14549
15282
|
};
|
|
15283
|
+
type RequestEndpointParams<T extends keyof typeof operationsByPath> = Omit<Parameters<(typeof operationsByPath)[T]>[0], keyof FetcherExtraProps>;
|
|
14550
15284
|
declare class VercelApi {
|
|
14551
15285
|
#private;
|
|
14552
15286
|
constructor(options: VercelApiOptions);
|
|
14553
15287
|
get api(): ApiProxy;
|
|
15288
|
+
request<Endpoint extends keyof typeof operationsByPath>(endpoint: Endpoint, params: RequestEndpointParams<Endpoint>): Promise<unknown>;
|
|
14554
15289
|
}
|
|
14555
15290
|
|
|
14556
15291
|
export { components as Components, schemas as Schemas, VercelApi, VercelApiOptions };
|
package/dist/index.mjs
CHANGED
|
@@ -954,6 +954,11 @@ class VercelApi {
|
|
|
954
954
|
}
|
|
955
955
|
});
|
|
956
956
|
}
|
|
957
|
+
async request(endpoint, params) {
|
|
958
|
+
const [method = '', url = ''] = endpoint.split(' ');
|
|
959
|
+
const extraParams = (params || {});
|
|
960
|
+
return fetch$1({ ...extraParams, method, url, token: __classPrivateFieldGet(this, _VercelApi_token, "f"), fetchImpl: __classPrivateFieldGet(this, _VercelApi_fetch, "f") });
|
|
961
|
+
}
|
|
957
962
|
}
|
|
958
963
|
_VercelApi_token = new WeakMap(), _VercelApi_fetch = new WeakMap();
|
|
959
964
|
|