vercel-api-js 1.0.1 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.cjs +8931 -0
- package/dist/components.d.mts +7017 -0
- package/dist/components.d.mts.map +1 -0
- package/dist/components.mjs +8570 -0
- package/dist/effect.cjs +7893 -0
- package/dist/effect.d.mts +6801 -0
- package/dist/effect.d.mts.map +1 -0
- package/dist/effect.mjs +7871 -0
- package/dist/index.cjs +33432 -0
- package/dist/index.d.ts +72589 -1714
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +29151 -7
- package/dist/schemas.cjs +21657 -0
- package/dist/schemas.d.mts +13353 -0
- package/dist/schemas.d.mts.map +1 -0
- package/dist/schemas.mjs +17574 -0
- package/dist/types.cjs +3125 -0
- package/dist/types.d.mts +51848 -0
- package/dist/types.d.mts.map +1 -0
- package/dist/types.mjs +2930 -0
- package/package.json +57 -29
- package/README.md +0 -9
- package/dist/client.d.mts +0 -228
- package/dist/client.d.ts +0 -228
- package/dist/client.js +0 -75
- package/dist/client.mjs +0 -68
- package/dist/generated/components.d.mts +0 -2600
- package/dist/generated/components.d.ts +0 -2600
- package/dist/generated/components.js +0 -3579
- package/dist/generated/components.mjs +0 -3395
- package/dist/generated/mcp.d.mts +0 -2061
- package/dist/generated/mcp.d.ts +0 -2061
- package/dist/generated/mcp.js +0 -4692
- package/dist/generated/mcp.mjs +0 -4508
- package/dist/generated/schemas.d.mts +0 -19403
- package/dist/generated/schemas.d.ts +0 -19403
- package/dist/generated/schemas.js +0 -7619
- package/dist/generated/schemas.mjs +0 -7589
- package/dist/generated/types.d.mts +0 -15009
- package/dist/generated/types.d.ts +0 -15009
- package/dist/generated/types.js +0 -951
- package/dist/generated/types.mjs +0 -946
- package/dist/index.d.mts +0 -1718
- package/dist/index.js +0 -49
- package/dist/mcp.d.mts +0 -1
- package/dist/mcp.d.ts +0 -1
- package/dist/mcp.js +0 -5
- package/dist/mcp.mjs +0 -1
- package/dist/utils/fetch.d.mts +0 -18
- package/dist/utils/fetch.d.ts +0 -18
- package/dist/utils/fetch.js +0 -8
- package/dist/utils/fetch.mjs +0 -5
- package/dist/utils/fetcher.d.mts +0 -21
- package/dist/utils/fetcher.d.ts +0 -21
- package/dist/utils/fetcher.js +0 -69
- package/dist/utils/fetcher.mjs +0 -66
- package/dist/utils/lang.d.mts +0 -1
- package/dist/utils/lang.d.ts +0 -1
- package/dist/utils/lang.js +0 -9
- package/dist/utils/lang.mjs +0 -6
- package/dist/utils/mcp.d.mts +0 -1
- package/dist/utils/mcp.d.ts +0 -1
- package/dist/utils/mcp.js +0 -2
- package/dist/utils/mcp.mjs +0 -1
- package/dist/utils/types.d.mts +0 -3
- package/dist/utils/types.d.ts +0 -3
- package/dist/utils/types.js +0 -2
- package/dist/utils/types.mjs +0 -1
|
@@ -1,3395 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
import client from "../utils/fetcher.mjs";
|
|
6
|
-
/**
|
|
7
|
-
* @description Allows to read an access group
|
|
8
|
-
* @summary Reads an access group
|
|
9
|
-
* {@link /v1/access-groups/:idOrName}
|
|
10
|
-
*/
|
|
11
|
-
export async function readAccessGroup({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
12
|
-
const { client: request = client, ...requestConfig } = config;
|
|
13
|
-
if (!idOrName) {
|
|
14
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
15
|
-
}
|
|
16
|
-
const data = await request({ method: 'GET', url: `/v1/access-groups/${idOrName}`, queryParams, ...requestConfig });
|
|
17
|
-
return data;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @description Allows to update an access group metadata
|
|
21
|
-
* @summary Update an access group
|
|
22
|
-
* {@link /v1/access-groups/:idOrName}
|
|
23
|
-
*/
|
|
24
|
-
export async function updateAccessGroup({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
25
|
-
const { client: request = client, ...requestConfig } = config;
|
|
26
|
-
if (!idOrName) {
|
|
27
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
28
|
-
}
|
|
29
|
-
const data = await request({
|
|
30
|
-
method: 'POST',
|
|
31
|
-
url: `/v1/access-groups/${idOrName}`,
|
|
32
|
-
queryParams,
|
|
33
|
-
...requestConfig,
|
|
34
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
35
|
-
});
|
|
36
|
-
return data;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @description Allows to delete an access group
|
|
40
|
-
* @summary Deletes an access group
|
|
41
|
-
* {@link /v1/access-groups/:idOrName}
|
|
42
|
-
*/
|
|
43
|
-
export async function deleteAccessGroup({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
44
|
-
const { client: request = client, ...requestConfig } = config;
|
|
45
|
-
if (!idOrName) {
|
|
46
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
47
|
-
}
|
|
48
|
-
const data = await request({ method: 'DELETE', url: `/v1/access-groups/${idOrName}`, queryParams, ...requestConfig });
|
|
49
|
-
return data;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* @description List members of an access group
|
|
53
|
-
* @summary List members of an access group
|
|
54
|
-
* {@link /v1/access-groups/:idOrName/members}
|
|
55
|
-
*/
|
|
56
|
-
export async function listAccessGroupMembers({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
57
|
-
const { client: request = client, ...requestConfig } = config;
|
|
58
|
-
if (!idOrName) {
|
|
59
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
60
|
-
}
|
|
61
|
-
const data = await request({ method: 'GET', url: `/v1/access-groups/${idOrName}/members`, queryParams, ...requestConfig });
|
|
62
|
-
return data;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* @description List access groups
|
|
66
|
-
* @summary List access groups for a team, project or member
|
|
67
|
-
* {@link /v1/access-groups}
|
|
68
|
-
*/
|
|
69
|
-
export async function listAccessGroups({ queryParams, config = {} }) {
|
|
70
|
-
const { client: request = client, ...requestConfig } = config;
|
|
71
|
-
const data = await request({ method: 'GET', url: `/v1/access-groups`, queryParams, ...requestConfig });
|
|
72
|
-
return data;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* @description Allows to create an access group
|
|
76
|
-
* @summary Creates an access group
|
|
77
|
-
* {@link /v1/access-groups}
|
|
78
|
-
*/
|
|
79
|
-
export async function createAccessGroup({ queryParams, config = {} }) {
|
|
80
|
-
const { client: request = client, ...requestConfig } = config;
|
|
81
|
-
const data = await request({
|
|
82
|
-
method: 'POST',
|
|
83
|
-
url: `/v1/access-groups`,
|
|
84
|
-
queryParams,
|
|
85
|
-
...requestConfig,
|
|
86
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
87
|
-
});
|
|
88
|
-
return data;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* @description List projects of an access group
|
|
92
|
-
* @summary List projects of an access group
|
|
93
|
-
* {@link /v1/access-groups/:idOrName/projects}
|
|
94
|
-
*/
|
|
95
|
-
export async function listAccessGroupProjects({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
96
|
-
const { client: request = client, ...requestConfig } = config;
|
|
97
|
-
if (!idOrName) {
|
|
98
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
99
|
-
}
|
|
100
|
-
const data = await request({ method: 'GET', url: `/v1/access-groups/${idOrName}/projects`, queryParams, ...requestConfig });
|
|
101
|
-
return data;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* @description Allows creation of an access group project
|
|
105
|
-
* @summary Create an access group project
|
|
106
|
-
* {@link /v1/access-groups/:accessGroupIdOrName/projects}
|
|
107
|
-
*/
|
|
108
|
-
export async function createAccessGroupProject({ pathParams: { accessGroupIdOrName }, queryParams, config = {} }) {
|
|
109
|
-
const { client: request = client, ...requestConfig } = config;
|
|
110
|
-
if (!accessGroupIdOrName) {
|
|
111
|
-
throw new Error(`Missing required path parameter: accessGroupIdOrName`);
|
|
112
|
-
}
|
|
113
|
-
const data = await request({
|
|
114
|
-
method: 'POST',
|
|
115
|
-
url: `/v1/access-groups/${accessGroupIdOrName}/projects`,
|
|
116
|
-
queryParams,
|
|
117
|
-
...requestConfig,
|
|
118
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
119
|
-
});
|
|
120
|
-
return data;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* @description Allows reading an access group project
|
|
124
|
-
* @summary Reads an access group project
|
|
125
|
-
* {@link /v1/access-groups/:accessGroupIdOrName/projects/:projectId}
|
|
126
|
-
*/
|
|
127
|
-
export async function readAccessGroupProject({ pathParams: { accessGroupIdOrName, projectId }, queryParams, config = {} }) {
|
|
128
|
-
const { client: request = client, ...requestConfig } = config;
|
|
129
|
-
if (!accessGroupIdOrName) {
|
|
130
|
-
throw new Error(`Missing required path parameter: accessGroupIdOrName`);
|
|
131
|
-
}
|
|
132
|
-
if (!projectId) {
|
|
133
|
-
throw new Error(`Missing required path parameter: projectId`);
|
|
134
|
-
}
|
|
135
|
-
const data = await request({
|
|
136
|
-
method: 'GET',
|
|
137
|
-
url: `/v1/access-groups/${accessGroupIdOrName}/projects/${projectId}`,
|
|
138
|
-
queryParams,
|
|
139
|
-
...requestConfig
|
|
140
|
-
});
|
|
141
|
-
return data;
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* @description Allows update of an access group project
|
|
145
|
-
* @summary Update an access group project
|
|
146
|
-
* {@link /v1/access-groups/:accessGroupIdOrName/projects/:projectId}
|
|
147
|
-
*/
|
|
148
|
-
export async function updateAccessGroupProject({ pathParams: { accessGroupIdOrName, projectId }, queryParams, config = {} }) {
|
|
149
|
-
const { client: request = client, ...requestConfig } = config;
|
|
150
|
-
if (!accessGroupIdOrName) {
|
|
151
|
-
throw new Error(`Missing required path parameter: accessGroupIdOrName`);
|
|
152
|
-
}
|
|
153
|
-
if (!projectId) {
|
|
154
|
-
throw new Error(`Missing required path parameter: projectId`);
|
|
155
|
-
}
|
|
156
|
-
const data = await request({
|
|
157
|
-
method: 'PATCH',
|
|
158
|
-
url: `/v1/access-groups/${accessGroupIdOrName}/projects/${projectId}`,
|
|
159
|
-
queryParams,
|
|
160
|
-
...requestConfig,
|
|
161
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
162
|
-
});
|
|
163
|
-
return data;
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* @description Allows deletion of an access group project
|
|
167
|
-
* @summary Delete an access group project
|
|
168
|
-
* {@link /v1/access-groups/:accessGroupIdOrName/projects/:projectId}
|
|
169
|
-
*/
|
|
170
|
-
export async function deleteAccessGroupProject({ pathParams: { accessGroupIdOrName, projectId }, queryParams, config = {} }) {
|
|
171
|
-
const { client: request = client, ...requestConfig } = config;
|
|
172
|
-
if (!accessGroupIdOrName) {
|
|
173
|
-
throw new Error(`Missing required path parameter: accessGroupIdOrName`);
|
|
174
|
-
}
|
|
175
|
-
if (!projectId) {
|
|
176
|
-
throw new Error(`Missing required path parameter: projectId`);
|
|
177
|
-
}
|
|
178
|
-
const data = await request({
|
|
179
|
-
method: 'DELETE',
|
|
180
|
-
url: `/v1/access-groups/${accessGroupIdOrName}/projects/${projectId}`,
|
|
181
|
-
queryParams,
|
|
182
|
-
...requestConfig
|
|
183
|
-
});
|
|
184
|
-
return data;
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* @description Records an artifacts cache usage event. The body of this request is an array of cache usage events. The supported event types are `HIT` and `MISS`. The source is either `LOCAL` the cache event was on the users filesystem cache or `REMOTE` if the cache event is for a remote cache. When the event is a `HIT` the request also accepts a number `duration` which is the time taken to generate the artifact in the cache.
|
|
188
|
-
* @summary Record an artifacts cache usage event
|
|
189
|
-
* {@link /v8/artifacts/events}
|
|
190
|
-
*/
|
|
191
|
-
export async function recordEvents({ queryParams, headers, config = {} }) {
|
|
192
|
-
const { client: request = client, ...requestConfig } = config;
|
|
193
|
-
const data = await request({
|
|
194
|
-
method: 'POST',
|
|
195
|
-
url: `/v8/artifacts/events`,
|
|
196
|
-
queryParams,
|
|
197
|
-
...requestConfig,
|
|
198
|
-
headers: { 'Content-Type': 'applicationJson', ...headers, ...requestConfig.headers }
|
|
199
|
-
});
|
|
200
|
-
return data;
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* @description Check the status of Remote Caching for this principal. Returns a JSON-encoded status indicating if Remote Caching is enabled, disabled, or disabled due to usage limits.
|
|
204
|
-
* @summary Get status of Remote Caching for this principal
|
|
205
|
-
* {@link /v8/artifacts/status}
|
|
206
|
-
*/
|
|
207
|
-
export async function status({ queryParams, config = {} }) {
|
|
208
|
-
const { client: request = client, ...requestConfig } = config;
|
|
209
|
-
const data = await request({ method: 'GET', url: `/v8/artifacts/status`, queryParams, ...requestConfig });
|
|
210
|
-
return data;
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* @description Uploads a cache artifact identified by the `hash` specified on the path. The cache artifact can then be downloaded with the provided `hash`.
|
|
214
|
-
* @summary Upload a cache artifact
|
|
215
|
-
* {@link /v8/artifacts/:hash}
|
|
216
|
-
*/
|
|
217
|
-
export async function uploadArtifact({ pathParams: { hash }, headers, queryParams, config = {} }) {
|
|
218
|
-
const { client: request = client, ...requestConfig } = config;
|
|
219
|
-
if (!hash) {
|
|
220
|
-
throw new Error(`Missing required path parameter: hash`);
|
|
221
|
-
}
|
|
222
|
-
const data = await request({
|
|
223
|
-
method: 'PUT',
|
|
224
|
-
url: `/v8/artifacts/${hash}`,
|
|
225
|
-
queryParams,
|
|
226
|
-
...requestConfig,
|
|
227
|
-
headers: { 'Content-Type': 'applicationOctetStream', ...headers, ...requestConfig.headers }
|
|
228
|
-
});
|
|
229
|
-
return data;
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* @description Downloads a cache artifact indentified by its `hash` specified on the request path. The artifact is downloaded as an octet-stream. The client should verify the content-length header and response body.
|
|
233
|
-
* @summary Download a cache artifact
|
|
234
|
-
* {@link /v8/artifacts/:hash}
|
|
235
|
-
*/
|
|
236
|
-
export async function downloadArtifact({ pathParams: { hash }, queryParams, headers, config = {} }) {
|
|
237
|
-
const { client: request = client, ...requestConfig } = config;
|
|
238
|
-
if (!hash) {
|
|
239
|
-
throw new Error(`Missing required path parameter: hash`);
|
|
240
|
-
}
|
|
241
|
-
const data = await request({
|
|
242
|
-
method: 'GET',
|
|
243
|
-
url: `/v8/artifacts/${hash}`,
|
|
244
|
-
queryParams,
|
|
245
|
-
...requestConfig,
|
|
246
|
-
headers: { ...headers, ...requestConfig.headers }
|
|
247
|
-
});
|
|
248
|
-
return data;
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* @description Query information about an array of artifacts.
|
|
252
|
-
* @summary Query information about an artifact
|
|
253
|
-
* {@link /v8/artifacts}
|
|
254
|
-
*/
|
|
255
|
-
export async function artifactQuery({ queryParams, config = {} }) {
|
|
256
|
-
const { client: request = client, ...requestConfig } = config;
|
|
257
|
-
const data = await request({
|
|
258
|
-
method: 'POST',
|
|
259
|
-
url: `/v8/artifacts`,
|
|
260
|
-
queryParams,
|
|
261
|
-
...requestConfig,
|
|
262
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
263
|
-
});
|
|
264
|
-
return data;
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* @description Creates a new check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
|
|
268
|
-
* @summary Creates a new Check
|
|
269
|
-
* {@link /v1/deployments/:deploymentId/checks}
|
|
270
|
-
*/
|
|
271
|
-
export async function createCheck({ pathParams: { deploymentId }, queryParams, config = {} }) {
|
|
272
|
-
const { client: request = client, ...requestConfig } = config;
|
|
273
|
-
if (!deploymentId) {
|
|
274
|
-
throw new Error(`Missing required path parameter: deploymentId`);
|
|
275
|
-
}
|
|
276
|
-
const data = await request({
|
|
277
|
-
method: 'POST',
|
|
278
|
-
url: `/v1/deployments/${deploymentId}/checks`,
|
|
279
|
-
queryParams,
|
|
280
|
-
...requestConfig,
|
|
281
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
282
|
-
});
|
|
283
|
-
return data;
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* @description List all of the checks created for a deployment.
|
|
287
|
-
* @summary Retrieve a list of all checks
|
|
288
|
-
* {@link /v1/deployments/:deploymentId/checks}
|
|
289
|
-
*/
|
|
290
|
-
export async function getAllChecks({ pathParams: { deploymentId }, queryParams, config = {} }) {
|
|
291
|
-
const { client: request = client, ...requestConfig } = config;
|
|
292
|
-
if (!deploymentId) {
|
|
293
|
-
throw new Error(`Missing required path parameter: deploymentId`);
|
|
294
|
-
}
|
|
295
|
-
const data = await request({ method: 'GET', url: `/v1/deployments/${deploymentId}/checks`, queryParams, ...requestConfig });
|
|
296
|
-
return data;
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* @description Return a detailed response for a single check.
|
|
300
|
-
* @summary Get a single check
|
|
301
|
-
* {@link /v1/deployments/:deploymentId/checks/:checkId}
|
|
302
|
-
*/
|
|
303
|
-
export async function getCheck({ pathParams: { deploymentId, checkId }, queryParams, config = {} }) {
|
|
304
|
-
const { client: request = client, ...requestConfig } = config;
|
|
305
|
-
if (!deploymentId) {
|
|
306
|
-
throw new Error(`Missing required path parameter: deploymentId`);
|
|
307
|
-
}
|
|
308
|
-
if (!checkId) {
|
|
309
|
-
throw new Error(`Missing required path parameter: checkId`);
|
|
310
|
-
}
|
|
311
|
-
const data = await request({ method: 'GET', url: `/v1/deployments/${deploymentId}/checks/${checkId}`, queryParams, ...requestConfig });
|
|
312
|
-
return data;
|
|
313
|
-
}
|
|
314
|
-
/**
|
|
315
|
-
* @description Update an existing check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
|
|
316
|
-
* @summary Update a check
|
|
317
|
-
* {@link /v1/deployments/:deploymentId/checks/:checkId}
|
|
318
|
-
*/
|
|
319
|
-
export async function updateCheck({ pathParams: { deploymentId, checkId }, queryParams, config = {} }) {
|
|
320
|
-
const { client: request = client, ...requestConfig } = config;
|
|
321
|
-
if (!deploymentId) {
|
|
322
|
-
throw new Error(`Missing required path parameter: deploymentId`);
|
|
323
|
-
}
|
|
324
|
-
if (!checkId) {
|
|
325
|
-
throw new Error(`Missing required path parameter: checkId`);
|
|
326
|
-
}
|
|
327
|
-
const data = await request({
|
|
328
|
-
method: 'PATCH',
|
|
329
|
-
url: `/v1/deployments/${deploymentId}/checks/${checkId}`,
|
|
330
|
-
queryParams,
|
|
331
|
-
...requestConfig,
|
|
332
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
333
|
-
});
|
|
334
|
-
return data;
|
|
335
|
-
}
|
|
336
|
-
/**
|
|
337
|
-
* @description Rerequest a selected check that has failed.
|
|
338
|
-
* @summary Rerequest a check
|
|
339
|
-
* {@link /v1/deployments/:deploymentId/checks/:checkId/rerequest}
|
|
340
|
-
*/
|
|
341
|
-
export async function rerequestCheck({ pathParams: { deploymentId, checkId }, queryParams, config = {} }) {
|
|
342
|
-
const { client: request = client, ...requestConfig } = config;
|
|
343
|
-
if (!deploymentId) {
|
|
344
|
-
throw new Error(`Missing required path parameter: deploymentId`);
|
|
345
|
-
}
|
|
346
|
-
if (!checkId) {
|
|
347
|
-
throw new Error(`Missing required path parameter: checkId`);
|
|
348
|
-
}
|
|
349
|
-
const data = await request({
|
|
350
|
-
method: 'POST',
|
|
351
|
-
url: `/v1/deployments/${deploymentId}/checks/${checkId}/rerequest`,
|
|
352
|
-
queryParams,
|
|
353
|
-
...requestConfig
|
|
354
|
-
});
|
|
355
|
-
return data;
|
|
356
|
-
}
|
|
357
|
-
/**
|
|
358
|
-
* {@link /data-cache/purge-all}
|
|
359
|
-
*/
|
|
360
|
-
export async function purgeAllDataCache({ queryParams, config = {} }) {
|
|
361
|
-
const { client: request = client, ...requestConfig } = config;
|
|
362
|
-
const data = await request({ method: 'DELETE', url: `/data-cache/purge-all`, queryParams, ...requestConfig });
|
|
363
|
-
return data;
|
|
364
|
-
}
|
|
365
|
-
/**
|
|
366
|
-
* {@link /data-cache/billing-settings}
|
|
367
|
-
*/
|
|
368
|
-
export async function updateDataCacheBillingSettings({ config = {} }) {
|
|
369
|
-
const { client: request = client, ...requestConfig } = config;
|
|
370
|
-
const data = await request({
|
|
371
|
-
method: 'PATCH',
|
|
372
|
-
url: `/data-cache/billing-settings`,
|
|
373
|
-
...requestConfig,
|
|
374
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
375
|
-
});
|
|
376
|
-
return data;
|
|
377
|
-
}
|
|
378
|
-
/**
|
|
379
|
-
* @description Update the data cache feature on a project.
|
|
380
|
-
* @summary Update the data cache feature
|
|
381
|
-
* {@link /v1/data-cache/projects/:projectId}
|
|
382
|
-
*/
|
|
383
|
-
export async function updateProjectDataCache({ pathParams: { projectId }, queryParams, config = {} }) {
|
|
384
|
-
const { client: request = client, ...requestConfig } = config;
|
|
385
|
-
if (!projectId) {
|
|
386
|
-
throw new Error(`Missing required path parameter: projectId`);
|
|
387
|
-
}
|
|
388
|
-
const data = await request({
|
|
389
|
-
method: 'PATCH',
|
|
390
|
-
url: `/v1/data-cache/projects/${projectId}`,
|
|
391
|
-
queryParams,
|
|
392
|
-
...requestConfig,
|
|
393
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
394
|
-
});
|
|
395
|
-
return data;
|
|
396
|
-
}
|
|
397
|
-
/**
|
|
398
|
-
* @description Get the build logs of a deployment by deployment ID and build ID. It can work as an infinite stream of logs or as a JSON endpoint depending on the input parameters.
|
|
399
|
-
* @summary Get deployment events
|
|
400
|
-
* {@link /v3/deployments/:idOrUrl/events}
|
|
401
|
-
*/
|
|
402
|
-
export async function getDeploymentEvents({ pathParams: { idOrUrl }, queryParams, config = {} }) {
|
|
403
|
-
const { client: request = client, ...requestConfig } = config;
|
|
404
|
-
if (!idOrUrl) {
|
|
405
|
-
throw new Error(`Missing required path parameter: idOrUrl`);
|
|
406
|
-
}
|
|
407
|
-
const data = await request({ method: 'GET', url: `/v3/deployments/${idOrUrl}/events`, queryParams, ...requestConfig });
|
|
408
|
-
return data;
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
|
-
* @description Updates the deployment integration action for the specified integration installation
|
|
412
|
-
* @summary Update deployment integration action
|
|
413
|
-
* {@link /v1/deployments/:deploymentId/integrations/:integrationConfigurationId/resources/:resourceId/actions/:action}
|
|
414
|
-
*/
|
|
415
|
-
export async function updateIntegrationDeploymentAction({ pathParams: { deploymentId, integrationConfigurationId, resourceId, action }, config = {} }) {
|
|
416
|
-
const { client: request = client, ...requestConfig } = config;
|
|
417
|
-
if (!deploymentId) {
|
|
418
|
-
throw new Error(`Missing required path parameter: deploymentId`);
|
|
419
|
-
}
|
|
420
|
-
if (!integrationConfigurationId) {
|
|
421
|
-
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
422
|
-
}
|
|
423
|
-
if (!resourceId) {
|
|
424
|
-
throw new Error(`Missing required path parameter: resourceId`);
|
|
425
|
-
}
|
|
426
|
-
if (!action) {
|
|
427
|
-
throw new Error(`Missing required path parameter: action`);
|
|
428
|
-
}
|
|
429
|
-
const data = await request({
|
|
430
|
-
method: 'PATCH',
|
|
431
|
-
url: `/v1/deployments/${deploymentId}/integrations/${integrationConfigurationId}/resources/${resourceId}/actions/${action}`,
|
|
432
|
-
...requestConfig,
|
|
433
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
434
|
-
});
|
|
435
|
-
return data;
|
|
436
|
-
}
|
|
437
|
-
/**
|
|
438
|
-
* @description Retrieves information for a deployment either by supplying its ID (`id` property) or Hostname (`url` property). Additional details will be included when the authenticated user or team is an owner of the deployment.
|
|
439
|
-
* @summary Get a deployment by ID or URL
|
|
440
|
-
* {@link /v13/deployments/:idOrUrl}
|
|
441
|
-
*/
|
|
442
|
-
export async function getDeployment({ pathParams: { idOrUrl }, queryParams, config = {} }) {
|
|
443
|
-
const { client: request = client, ...requestConfig } = config;
|
|
444
|
-
if (!idOrUrl) {
|
|
445
|
-
throw new Error(`Missing required path parameter: idOrUrl`);
|
|
446
|
-
}
|
|
447
|
-
const data = await request({ method: 'GET', url: `/v13/deployments/${idOrUrl}`, queryParams, ...requestConfig });
|
|
448
|
-
return data;
|
|
449
|
-
}
|
|
450
|
-
/**
|
|
451
|
-
* @description Create a new deployment with all the required and intended data. If the deployment is not a git deployment, all files must be provided with the request, either referenced or inlined. Additionally, a deployment id can be specified to redeploy a previous deployment.
|
|
452
|
-
* @summary Create a new deployment
|
|
453
|
-
* {@link /v13/deployments}
|
|
454
|
-
*/
|
|
455
|
-
export async function createDeployment({ queryParams, config = {} }) {
|
|
456
|
-
const { client: request = client, ...requestConfig } = config;
|
|
457
|
-
const data = await request({
|
|
458
|
-
method: 'POST',
|
|
459
|
-
url: `/v13/deployments`,
|
|
460
|
-
queryParams,
|
|
461
|
-
...requestConfig,
|
|
462
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
463
|
-
});
|
|
464
|
-
return data;
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
* @description This endpoint allows you to cancel a deployment which is currently building, by supplying its `id` in the URL.
|
|
468
|
-
* @summary Cancel a deployment
|
|
469
|
-
* {@link /v12/deployments/:id/cancel}
|
|
470
|
-
*/
|
|
471
|
-
export async function cancelDeployment({ pathParams: { id }, queryParams, config = {} }) {
|
|
472
|
-
const { client: request = client, ...requestConfig } = config;
|
|
473
|
-
if (!id) {
|
|
474
|
-
throw new Error(`Missing required path parameter: id`);
|
|
475
|
-
}
|
|
476
|
-
const data = await request({ method: 'PATCH', url: `/v12/deployments/${id}/cancel`, queryParams, ...requestConfig });
|
|
477
|
-
return data;
|
|
478
|
-
}
|
|
479
|
-
/**
|
|
480
|
-
* @description Allows to purchase the specified domain.
|
|
481
|
-
* @summary Purchase a domain
|
|
482
|
-
* {@link /v5/domains/buy}
|
|
483
|
-
*/
|
|
484
|
-
export async function buyDomain({ queryParams, config = {} }) {
|
|
485
|
-
const { client: request = client, ...requestConfig } = config;
|
|
486
|
-
const data = await request({
|
|
487
|
-
method: 'POST',
|
|
488
|
-
url: `/v5/domains/buy`,
|
|
489
|
-
queryParams,
|
|
490
|
-
...requestConfig,
|
|
491
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
492
|
-
});
|
|
493
|
-
return data;
|
|
494
|
-
}
|
|
495
|
-
/**
|
|
496
|
-
* @description Check the price to purchase a domain and how long a single purchase period is.
|
|
497
|
-
* @summary Check the price for a domain
|
|
498
|
-
* {@link /v4/domains/price}
|
|
499
|
-
*/
|
|
500
|
-
export async function checkDomainPrice({ queryParams, config = {} }) {
|
|
501
|
-
const { client: request = client, ...requestConfig } = config;
|
|
502
|
-
const data = await request({ method: 'GET', url: `/v4/domains/price`, queryParams, ...requestConfig });
|
|
503
|
-
return data;
|
|
504
|
-
}
|
|
505
|
-
/**
|
|
506
|
-
* @description Check if a domain name is available for purchase.
|
|
507
|
-
* @summary Check a Domain Availability
|
|
508
|
-
* {@link /v4/domains/status}
|
|
509
|
-
*/
|
|
510
|
-
export async function checkDomainStatus({ queryParams, config = {} }) {
|
|
511
|
-
const { client: request = client, ...requestConfig } = config;
|
|
512
|
-
const data = await request({ method: 'GET', url: `/v4/domains/status`, queryParams, ...requestConfig });
|
|
513
|
-
return data;
|
|
514
|
-
}
|
|
515
|
-
/**
|
|
516
|
-
* @description Retrieves a list of DNS records created for a domain name. By default it returns 20 records if no limit is provided. The rest can be retrieved using the pagination options.
|
|
517
|
-
* @summary List existing DNS records
|
|
518
|
-
* {@link /v4/domains/:domain/records}
|
|
519
|
-
*/
|
|
520
|
-
export async function getRecords({ pathParams: { domain }, queryParams, config = {} }) {
|
|
521
|
-
const { client: request = client, ...requestConfig } = config;
|
|
522
|
-
if (!domain) {
|
|
523
|
-
throw new Error(`Missing required path parameter: domain`);
|
|
524
|
-
}
|
|
525
|
-
const data = await request({ method: 'GET', url: `/v4/domains/${domain}/records`, queryParams, ...requestConfig });
|
|
526
|
-
return data;
|
|
527
|
-
}
|
|
528
|
-
/**
|
|
529
|
-
* @description Creates a DNS record for a domain.
|
|
530
|
-
* @summary Create a DNS record
|
|
531
|
-
* {@link /v2/domains/:domain/records}
|
|
532
|
-
*/
|
|
533
|
-
export async function createRecord({ pathParams: { domain }, queryParams, config = {} }) {
|
|
534
|
-
const { client: request = client, ...requestConfig } = config;
|
|
535
|
-
if (!domain) {
|
|
536
|
-
throw new Error(`Missing required path parameter: domain`);
|
|
537
|
-
}
|
|
538
|
-
const data = await request({
|
|
539
|
-
method: 'POST',
|
|
540
|
-
url: `/v2/domains/${domain}/records`,
|
|
541
|
-
queryParams,
|
|
542
|
-
...requestConfig,
|
|
543
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
544
|
-
});
|
|
545
|
-
return data;
|
|
546
|
-
}
|
|
547
|
-
/**
|
|
548
|
-
* @description Updates an existing DNS record for a domain name.
|
|
549
|
-
* @summary Update an existing DNS record
|
|
550
|
-
* {@link /v1/domains/records/:recordId}
|
|
551
|
-
*/
|
|
552
|
-
export async function updateRecord({ pathParams: { recordId }, queryParams, config = {} }) {
|
|
553
|
-
const { client: request = client, ...requestConfig } = config;
|
|
554
|
-
if (!recordId) {
|
|
555
|
-
throw new Error(`Missing required path parameter: recordId`);
|
|
556
|
-
}
|
|
557
|
-
const data = await request({
|
|
558
|
-
method: 'PATCH',
|
|
559
|
-
url: `/v1/domains/records/${recordId}`,
|
|
560
|
-
queryParams,
|
|
561
|
-
...requestConfig,
|
|
562
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
563
|
-
});
|
|
564
|
-
return data;
|
|
565
|
-
}
|
|
566
|
-
/**
|
|
567
|
-
* @description Removes an existing DNS record from a domain name.
|
|
568
|
-
* @summary Delete a DNS record
|
|
569
|
-
* {@link /v2/domains/:domain/records/:recordId}
|
|
570
|
-
*/
|
|
571
|
-
export async function removeRecord({ pathParams: { domain, recordId }, queryParams, config = {} }) {
|
|
572
|
-
const { client: request = client, ...requestConfig } = config;
|
|
573
|
-
if (!domain) {
|
|
574
|
-
throw new Error(`Missing required path parameter: domain`);
|
|
575
|
-
}
|
|
576
|
-
if (!recordId) {
|
|
577
|
-
throw new Error(`Missing required path parameter: recordId`);
|
|
578
|
-
}
|
|
579
|
-
const data = await request({ method: 'DELETE', url: `/v2/domains/${domain}/records/${recordId}`, queryParams, ...requestConfig });
|
|
580
|
-
return data;
|
|
581
|
-
}
|
|
582
|
-
/**
|
|
583
|
-
* @description Fetch domain transfer availability or transfer status if a transfer is in progress.
|
|
584
|
-
* @summary Get domain transfer info.
|
|
585
|
-
* {@link /v1/domains/:domain/registry}
|
|
586
|
-
*/
|
|
587
|
-
export async function getDomainTransfer({ pathParams: { domain }, queryParams, config = {} }) {
|
|
588
|
-
const { client: request = client, ...requestConfig } = config;
|
|
589
|
-
if (!domain) {
|
|
590
|
-
throw new Error(`Missing required path parameter: domain`);
|
|
591
|
-
}
|
|
592
|
-
const data = await request({ method: 'GET', url: `/v1/domains/${domain}/registry`, queryParams, ...requestConfig });
|
|
593
|
-
return data;
|
|
594
|
-
}
|
|
595
|
-
/**
|
|
596
|
-
* @description Get a Domain's configuration.
|
|
597
|
-
* @summary Get a Domain's configuration
|
|
598
|
-
* {@link /v6/domains/:domain/config}
|
|
599
|
-
*/
|
|
600
|
-
export async function getDomainConfig({ pathParams: { domain }, queryParams, config = {} }) {
|
|
601
|
-
const { client: request = client, ...requestConfig } = config;
|
|
602
|
-
if (!domain) {
|
|
603
|
-
throw new Error(`Missing required path parameter: domain`);
|
|
604
|
-
}
|
|
605
|
-
const data = await request({ method: 'GET', url: `/v6/domains/${domain}/config`, queryParams, ...requestConfig });
|
|
606
|
-
return data;
|
|
607
|
-
}
|
|
608
|
-
/**
|
|
609
|
-
* @description Get information for a single domain in an account or team.
|
|
610
|
-
* @summary Get Information for a Single Domain
|
|
611
|
-
* {@link /v5/domains/:domain}
|
|
612
|
-
*/
|
|
613
|
-
export async function getDomain({ pathParams: { domain }, queryParams, config = {} }) {
|
|
614
|
-
const { client: request = client, ...requestConfig } = config;
|
|
615
|
-
if (!domain) {
|
|
616
|
-
throw new Error(`Missing required path parameter: domain`);
|
|
617
|
-
}
|
|
618
|
-
const data = await request({ method: 'GET', url: `/v5/domains/${domain}`, queryParams, ...requestConfig });
|
|
619
|
-
return data;
|
|
620
|
-
}
|
|
621
|
-
/**
|
|
622
|
-
* @description Retrieves a list of domains registered for the authenticated user or team. By default it returns the last 20 domains if no limit is provided.
|
|
623
|
-
* @summary List all the domains
|
|
624
|
-
* {@link /v5/domains}
|
|
625
|
-
*/
|
|
626
|
-
export async function getDomains({ queryParams, config = {} }) {
|
|
627
|
-
const { client: request = client, ...requestConfig } = config;
|
|
628
|
-
const data = await request({ method: 'GET', url: `/v5/domains`, queryParams, ...requestConfig });
|
|
629
|
-
return data;
|
|
630
|
-
}
|
|
631
|
-
/**
|
|
632
|
-
* @description This endpoint is used for adding a new apex domain name with Vercel for the authenticating user. Can also be used for initiating a domain transfer request from an external Registrar to Vercel.
|
|
633
|
-
* @summary Register or transfer-in a new Domain
|
|
634
|
-
* {@link /v7/domains}
|
|
635
|
-
*/
|
|
636
|
-
export async function createOrTransferDomain({ queryParams, config = {} }) {
|
|
637
|
-
const { client: request = client, ...requestConfig } = config;
|
|
638
|
-
const data = await request({
|
|
639
|
-
method: 'POST',
|
|
640
|
-
url: `/v7/domains`,
|
|
641
|
-
queryParams,
|
|
642
|
-
...requestConfig,
|
|
643
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
644
|
-
});
|
|
645
|
-
return data;
|
|
646
|
-
}
|
|
647
|
-
/**
|
|
648
|
-
* @description Update or move apex domain.
|
|
649
|
-
* @summary Update or move apex domain
|
|
650
|
-
* {@link /v3/domains/:domain}
|
|
651
|
-
*/
|
|
652
|
-
export async function patchDomain({ pathParams: { domain }, queryParams, config = {} }) {
|
|
653
|
-
const { client: request = client, ...requestConfig } = config;
|
|
654
|
-
if (!domain) {
|
|
655
|
-
throw new Error(`Missing required path parameter: domain`);
|
|
656
|
-
}
|
|
657
|
-
const data = await request({
|
|
658
|
-
method: 'PATCH',
|
|
659
|
-
url: `/v3/domains/${domain}`,
|
|
660
|
-
queryParams,
|
|
661
|
-
...requestConfig,
|
|
662
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
663
|
-
});
|
|
664
|
-
return data;
|
|
665
|
-
}
|
|
666
|
-
/**
|
|
667
|
-
* @description Delete a previously registered domain name from Vercel. Deleting a domain will automatically remove any associated aliases.
|
|
668
|
-
* @summary Remove a domain by name
|
|
669
|
-
* {@link /v6/domains/:domain}
|
|
670
|
-
*/
|
|
671
|
-
export async function deleteDomain({ pathParams: { domain }, queryParams, config = {} }) {
|
|
672
|
-
const { client: request = client, ...requestConfig } = config;
|
|
673
|
-
if (!domain) {
|
|
674
|
-
throw new Error(`Missing required path parameter: domain`);
|
|
675
|
-
}
|
|
676
|
-
const data = await request({ method: 'DELETE', url: `/v6/domains/${domain}`, queryParams, ...requestConfig });
|
|
677
|
-
return data;
|
|
678
|
-
}
|
|
679
|
-
/**
|
|
680
|
-
* @description Returns all Edge Configs.
|
|
681
|
-
* @summary Get Edge Configs
|
|
682
|
-
* {@link /v1/edge-config}
|
|
683
|
-
*/
|
|
684
|
-
export async function getEdgeConfigs({ queryParams, config = {} }) {
|
|
685
|
-
const { client: request = client, ...requestConfig } = config;
|
|
686
|
-
const data = await request({ method: 'GET', url: `/v1/edge-config`, queryParams, ...requestConfig });
|
|
687
|
-
return data;
|
|
688
|
-
}
|
|
689
|
-
/**
|
|
690
|
-
* @description Creates an Edge Config.
|
|
691
|
-
* @summary Create an Edge Config
|
|
692
|
-
* {@link /v1/edge-config}
|
|
693
|
-
*/
|
|
694
|
-
export async function createEdgeConfig({ queryParams, config = {} }) {
|
|
695
|
-
const { client: request = client, ...requestConfig } = config;
|
|
696
|
-
const data = await request({
|
|
697
|
-
method: 'POST',
|
|
698
|
-
url: `/v1/edge-config`,
|
|
699
|
-
queryParams,
|
|
700
|
-
...requestConfig,
|
|
701
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
702
|
-
});
|
|
703
|
-
return data;
|
|
704
|
-
}
|
|
705
|
-
/**
|
|
706
|
-
* @description Returns an Edge Config.
|
|
707
|
-
* @summary Get an Edge Config
|
|
708
|
-
* {@link /v1/edge-config/:edgeConfigId}
|
|
709
|
-
*/
|
|
710
|
-
export async function getEdgeConfig({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
711
|
-
const { client: request = client, ...requestConfig } = config;
|
|
712
|
-
if (!edgeConfigId) {
|
|
713
|
-
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
714
|
-
}
|
|
715
|
-
const data = await request({ method: 'GET', url: `/v1/edge-config/${edgeConfigId}`, queryParams, ...requestConfig });
|
|
716
|
-
return data;
|
|
717
|
-
}
|
|
718
|
-
/**
|
|
719
|
-
* @description Updates an Edge Config.
|
|
720
|
-
* @summary Update an Edge Config
|
|
721
|
-
* {@link /v1/edge-config/:edgeConfigId}
|
|
722
|
-
*/
|
|
723
|
-
export async function updateEdgeConfig({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
724
|
-
const { client: request = client, ...requestConfig } = config;
|
|
725
|
-
if (!edgeConfigId) {
|
|
726
|
-
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
727
|
-
}
|
|
728
|
-
const data = await request({
|
|
729
|
-
method: 'PUT',
|
|
730
|
-
url: `/v1/edge-config/${edgeConfigId}`,
|
|
731
|
-
queryParams,
|
|
732
|
-
...requestConfig,
|
|
733
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
734
|
-
});
|
|
735
|
-
return data;
|
|
736
|
-
}
|
|
737
|
-
/**
|
|
738
|
-
* @description Delete an Edge Config by id.
|
|
739
|
-
* @summary Delete an Edge Config
|
|
740
|
-
* {@link /v1/edge-config/:edgeConfigId}
|
|
741
|
-
*/
|
|
742
|
-
export async function deleteEdgeConfig({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
743
|
-
const { client: request = client, ...requestConfig } = config;
|
|
744
|
-
if (!edgeConfigId) {
|
|
745
|
-
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
746
|
-
}
|
|
747
|
-
const data = await request({ method: 'DELETE', url: `/v1/edge-config/${edgeConfigId}`, queryParams, ...requestConfig });
|
|
748
|
-
return data;
|
|
749
|
-
}
|
|
750
|
-
/**
|
|
751
|
-
* @description Returns all items of an Edge Config.
|
|
752
|
-
* @summary Get Edge Config items
|
|
753
|
-
* {@link /v1/edge-config/:edgeConfigId/items}
|
|
754
|
-
*/
|
|
755
|
-
export async function getEdgeConfigItems({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
756
|
-
const { client: request = client, ...requestConfig } = config;
|
|
757
|
-
if (!edgeConfigId) {
|
|
758
|
-
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
759
|
-
}
|
|
760
|
-
const data = await request({ method: 'GET', url: `/v1/edge-config/${edgeConfigId}/items`, queryParams, ...requestConfig });
|
|
761
|
-
return data;
|
|
762
|
-
}
|
|
763
|
-
/**
|
|
764
|
-
* @description Update multiple Edge Config Items in batch.
|
|
765
|
-
* @summary Update Edge Config items in batch
|
|
766
|
-
* {@link /v1/edge-config/:edgeConfigId/items}
|
|
767
|
-
*/
|
|
768
|
-
export async function patchEdgeConfigItems({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
769
|
-
const { client: request = client, ...requestConfig } = config;
|
|
770
|
-
if (!edgeConfigId) {
|
|
771
|
-
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
772
|
-
}
|
|
773
|
-
const data = await request({
|
|
774
|
-
method: 'PATCH',
|
|
775
|
-
url: `/v1/edge-config/${edgeConfigId}/items`,
|
|
776
|
-
queryParams,
|
|
777
|
-
...requestConfig,
|
|
778
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
779
|
-
});
|
|
780
|
-
return data;
|
|
781
|
-
}
|
|
782
|
-
/**
|
|
783
|
-
* @description Returns the schema of an Edge Config.
|
|
784
|
-
* @summary Get Edge Config schema
|
|
785
|
-
* {@link /v1/edge-config/:edgeConfigId/schema}
|
|
786
|
-
*/
|
|
787
|
-
export async function getEdgeConfigSchema({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
788
|
-
const { client: request = client, ...requestConfig } = config;
|
|
789
|
-
if (!edgeConfigId) {
|
|
790
|
-
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
791
|
-
}
|
|
792
|
-
const data = await request({ method: 'GET', url: `/v1/edge-config/${edgeConfigId}/schema`, queryParams, ...requestConfig });
|
|
793
|
-
return data;
|
|
794
|
-
}
|
|
795
|
-
/**
|
|
796
|
-
* @description Update an Edge Config's schema.
|
|
797
|
-
* @summary Update Edge Config schema
|
|
798
|
-
* {@link /v1/edge-config/:edgeConfigId/schema}
|
|
799
|
-
*/
|
|
800
|
-
export async function patchEdgeConfigSchema({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
801
|
-
const { client: request = client, ...requestConfig } = config;
|
|
802
|
-
if (!edgeConfigId) {
|
|
803
|
-
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
804
|
-
}
|
|
805
|
-
const data = await request({
|
|
806
|
-
method: 'POST',
|
|
807
|
-
url: `/v1/edge-config/${edgeConfigId}/schema`,
|
|
808
|
-
queryParams,
|
|
809
|
-
...requestConfig,
|
|
810
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
811
|
-
});
|
|
812
|
-
return data;
|
|
813
|
-
}
|
|
814
|
-
/**
|
|
815
|
-
* @description Deletes the schema of existing Edge Config.
|
|
816
|
-
* @summary Delete an Edge Config's schema
|
|
817
|
-
* {@link /v1/edge-config/:edgeConfigId/schema}
|
|
818
|
-
*/
|
|
819
|
-
export async function deleteEdgeConfigSchema({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
820
|
-
const { client: request = client, ...requestConfig } = config;
|
|
821
|
-
if (!edgeConfigId) {
|
|
822
|
-
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
823
|
-
}
|
|
824
|
-
const data = await request({ method: 'DELETE', url: `/v1/edge-config/${edgeConfigId}/schema`, queryParams, ...requestConfig });
|
|
825
|
-
return data;
|
|
826
|
-
}
|
|
827
|
-
/**
|
|
828
|
-
* @description Returns a specific Edge Config Item.
|
|
829
|
-
* @summary Get an Edge Config item
|
|
830
|
-
* {@link /v1/edge-config/:edgeConfigId/item/:edgeConfigItemKey}
|
|
831
|
-
*/
|
|
832
|
-
export async function getEdgeConfigItem({ pathParams: { edgeConfigId, edgeConfigItemKey }, queryParams, config = {} }) {
|
|
833
|
-
const { client: request = client, ...requestConfig } = config;
|
|
834
|
-
if (!edgeConfigId) {
|
|
835
|
-
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
836
|
-
}
|
|
837
|
-
if (!edgeConfigItemKey) {
|
|
838
|
-
throw new Error(`Missing required path parameter: edgeConfigItemKey`);
|
|
839
|
-
}
|
|
840
|
-
const data = await request({ method: 'GET', url: `/v1/edge-config/${edgeConfigId}/item/${edgeConfigItemKey}`, queryParams, ...requestConfig });
|
|
841
|
-
return data;
|
|
842
|
-
}
|
|
843
|
-
/**
|
|
844
|
-
* @description Returns all tokens of an Edge Config.
|
|
845
|
-
* @summary Get all tokens of an Edge Config
|
|
846
|
-
* {@link /v1/edge-config/:edgeConfigId/tokens}
|
|
847
|
-
*/
|
|
848
|
-
export async function getEdgeConfigTokens({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
849
|
-
const { client: request = client, ...requestConfig } = config;
|
|
850
|
-
if (!edgeConfigId) {
|
|
851
|
-
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
852
|
-
}
|
|
853
|
-
const data = await request({ method: 'GET', url: `/v1/edge-config/${edgeConfigId}/tokens`, queryParams, ...requestConfig });
|
|
854
|
-
return data;
|
|
855
|
-
}
|
|
856
|
-
/**
|
|
857
|
-
* @description Deletes one or more tokens of an existing Edge Config.
|
|
858
|
-
* @summary Delete one or more Edge Config tokens
|
|
859
|
-
* {@link /v1/edge-config/:edgeConfigId/tokens}
|
|
860
|
-
*/
|
|
861
|
-
export async function deleteEdgeConfigTokens({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
862
|
-
const { client: request = client, ...requestConfig } = config;
|
|
863
|
-
if (!edgeConfigId) {
|
|
864
|
-
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
865
|
-
}
|
|
866
|
-
const data = await request({
|
|
867
|
-
method: 'DELETE',
|
|
868
|
-
url: `/v1/edge-config/${edgeConfigId}/tokens`,
|
|
869
|
-
queryParams,
|
|
870
|
-
...requestConfig,
|
|
871
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
872
|
-
});
|
|
873
|
-
return data;
|
|
874
|
-
}
|
|
875
|
-
/**
|
|
876
|
-
* @description Return meta data about an Edge Config token.
|
|
877
|
-
* @summary Get Edge Config token meta data
|
|
878
|
-
* {@link /v1/edge-config/:edgeConfigId/token/:token}
|
|
879
|
-
*/
|
|
880
|
-
export async function getEdgeConfigToken({ pathParams: { edgeConfigId, token }, queryParams, config = {} }) {
|
|
881
|
-
const { client: request = client, ...requestConfig } = config;
|
|
882
|
-
if (!edgeConfigId) {
|
|
883
|
-
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
884
|
-
}
|
|
885
|
-
if (!token) {
|
|
886
|
-
throw new Error(`Missing required path parameter: token`);
|
|
887
|
-
}
|
|
888
|
-
const data = await request({ method: 'GET', url: `/v1/edge-config/${edgeConfigId}/token/${token}`, queryParams, ...requestConfig });
|
|
889
|
-
return data;
|
|
890
|
-
}
|
|
891
|
-
/**
|
|
892
|
-
* @description Adds a token to an existing Edge Config.
|
|
893
|
-
* @summary Create an Edge Config token
|
|
894
|
-
* {@link /v1/edge-config/:edgeConfigId/token}
|
|
895
|
-
*/
|
|
896
|
-
export async function createEdgeConfigToken({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
897
|
-
const { client: request = client, ...requestConfig } = config;
|
|
898
|
-
if (!edgeConfigId) {
|
|
899
|
-
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
900
|
-
}
|
|
901
|
-
const data = await request({
|
|
902
|
-
method: 'POST',
|
|
903
|
-
url: `/v1/edge-config/${edgeConfigId}/token`,
|
|
904
|
-
queryParams,
|
|
905
|
-
...requestConfig,
|
|
906
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
907
|
-
});
|
|
908
|
-
return data;
|
|
909
|
-
}
|
|
910
|
-
/**
|
|
911
|
-
* @description Retrieves a specific version of an Edge Config from backup storage.
|
|
912
|
-
* @summary Get Edge Config backup
|
|
913
|
-
* {@link /v1/edge-config/:edgeConfigId/backups/:edgeConfigBackupVersionId}
|
|
914
|
-
*/
|
|
915
|
-
export async function getEdgeConfigBackup({ pathParams: { edgeConfigId, edgeConfigBackupVersionId }, queryParams, config = {} }) {
|
|
916
|
-
const { client: request = client, ...requestConfig } = config;
|
|
917
|
-
if (!edgeConfigId) {
|
|
918
|
-
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
919
|
-
}
|
|
920
|
-
if (!edgeConfigBackupVersionId) {
|
|
921
|
-
throw new Error(`Missing required path parameter: edgeConfigBackupVersionId`);
|
|
922
|
-
}
|
|
923
|
-
const data = await request({
|
|
924
|
-
method: 'GET',
|
|
925
|
-
url: `/v1/edge-config/${edgeConfigId}/backups/${edgeConfigBackupVersionId}`,
|
|
926
|
-
queryParams,
|
|
927
|
-
...requestConfig
|
|
928
|
-
});
|
|
929
|
-
return data;
|
|
930
|
-
}
|
|
931
|
-
/**
|
|
932
|
-
* @description Returns backups of an Edge Config.
|
|
933
|
-
* @summary Get Edge Config backups
|
|
934
|
-
* {@link /v1/edge-config/:edgeConfigId/backups}
|
|
935
|
-
*/
|
|
936
|
-
export async function getEdgeConfigBackups({ pathParams: { edgeConfigId }, queryParams, config = {} }) {
|
|
937
|
-
const { client: request = client, ...requestConfig } = config;
|
|
938
|
-
if (!edgeConfigId) {
|
|
939
|
-
throw new Error(`Missing required path parameter: edgeConfigId`);
|
|
940
|
-
}
|
|
941
|
-
const data = await request({ method: 'GET', url: `/v1/edge-config/${edgeConfigId}/backups`, queryParams, ...requestConfig });
|
|
942
|
-
return data;
|
|
943
|
-
}
|
|
944
|
-
/**
|
|
945
|
-
* @description Retrieves a list of "events" generated by the User on Vercel. Events are generated when the User performs a particular action, such as logging in, creating a deployment, and joining a Team (just to name a few). When the `teamId` parameter is supplied, then the events that are returned will be in relation to the Team that was specified.
|
|
946
|
-
* @summary List User Events
|
|
947
|
-
* {@link /v3/events}
|
|
948
|
-
*/
|
|
949
|
-
export async function listUserEvents({ queryParams, config = {} }) {
|
|
950
|
-
const { client: request = client, ...requestConfig } = config;
|
|
951
|
-
const data = await request({ method: 'GET', url: `/v3/events`, queryParams, ...requestConfig });
|
|
952
|
-
return data;
|
|
953
|
-
}
|
|
954
|
-
/**
|
|
955
|
-
* @description Fetches the best account or user’s contact info
|
|
956
|
-
* @summary Get Account Information
|
|
957
|
-
* {@link /v1/installations/:integrationConfigurationId/account}
|
|
958
|
-
*/
|
|
959
|
-
export async function getAccountInfo({ pathParams: { integrationConfigurationId }, config = {} }) {
|
|
960
|
-
const { client: request = client, ...requestConfig } = config;
|
|
961
|
-
if (!integrationConfigurationId) {
|
|
962
|
-
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
963
|
-
}
|
|
964
|
-
const data = await request({ method: 'GET', url: `/v1/installations/${integrationConfigurationId}/account`, ...requestConfig });
|
|
965
|
-
return data;
|
|
966
|
-
}
|
|
967
|
-
/**
|
|
968
|
-
* @description Returns the member role and other information for a given member ID ("user_id" claim in the SSO OIDC token).
|
|
969
|
-
* @summary Get Member Information
|
|
970
|
-
* {@link /v1/installations/:integrationConfigurationId/member/:memberId}
|
|
971
|
-
*/
|
|
972
|
-
export async function getMember({ pathParams: { integrationConfigurationId, memberId }, config = {} }) {
|
|
973
|
-
const { client: request = client, ...requestConfig } = config;
|
|
974
|
-
if (!integrationConfigurationId) {
|
|
975
|
-
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
976
|
-
}
|
|
977
|
-
if (!memberId) {
|
|
978
|
-
throw new Error(`Missing required path parameter: memberId`);
|
|
979
|
-
}
|
|
980
|
-
const data = await request({ method: 'GET', url: `/v1/installations/${integrationConfigurationId}/member/${memberId}`, ...requestConfig });
|
|
981
|
-
return data;
|
|
982
|
-
}
|
|
983
|
-
/**
|
|
984
|
-
* @description Partner notifies Vercel of any changes made to an Installation or a Resource. Vercel is expected to use `list-resources` and other read APIs to get the new state.<br/> <br/> `resource.updated` event should be dispatched when any state of a resource linked to Vercel is modified by the partner.<br/> `installation.updated` event should be dispatched when an installation's billing plan is changed via the provider instead of Vercel.<br/> <br/> Resource update use cases: <br/> <br/> - The user renames a database in the partner’s application. The partner should dispatch a `resource.updated` event to notify Vercel to update the resource in Vercel’s datastores.<br/> - A resource has been suspended due to a lack of use. The partner should dispatch a `resource.updated` event to notify Vercel to update the resource's status in Vercel's datastores.<br/>
|
|
985
|
-
* @summary Create Event
|
|
986
|
-
* {@link /v1/installations/:integrationConfigurationId/events}
|
|
987
|
-
*/
|
|
988
|
-
export async function createEvent({ pathParams: { integrationConfigurationId }, config = {} }) {
|
|
989
|
-
const { client: request = client, ...requestConfig } = config;
|
|
990
|
-
if (!integrationConfigurationId) {
|
|
991
|
-
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
992
|
-
}
|
|
993
|
-
const data = await request({
|
|
994
|
-
method: 'POST',
|
|
995
|
-
url: `/v1/installations/${integrationConfigurationId}/events`,
|
|
996
|
-
...requestConfig,
|
|
997
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
998
|
-
});
|
|
999
|
-
return data;
|
|
1000
|
-
}
|
|
1001
|
-
/**
|
|
1002
|
-
* @description Get all resources for a given installation ID.
|
|
1003
|
-
* @summary Get Integration Resources
|
|
1004
|
-
* {@link /v1/installations/:integrationConfigurationId/resources}
|
|
1005
|
-
*/
|
|
1006
|
-
export async function getIntegrationResources({ pathParams: { integrationConfigurationId }, config = {} }) {
|
|
1007
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1008
|
-
if (!integrationConfigurationId) {
|
|
1009
|
-
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1010
|
-
}
|
|
1011
|
-
const data = await request({ method: 'GET', url: `/v1/installations/${integrationConfigurationId}/resources`, ...requestConfig });
|
|
1012
|
-
return data;
|
|
1013
|
-
}
|
|
1014
|
-
/**
|
|
1015
|
-
* @description Get a resource by its partner ID.
|
|
1016
|
-
* @summary Get Integration Resource
|
|
1017
|
-
* {@link /v1/installations/:integrationConfigurationId/resources/:resourceId}
|
|
1018
|
-
*/
|
|
1019
|
-
export async function getIntegrationResource({ pathParams: { integrationConfigurationId, resourceId }, config = {} }) {
|
|
1020
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1021
|
-
if (!integrationConfigurationId) {
|
|
1022
|
-
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1023
|
-
}
|
|
1024
|
-
if (!resourceId) {
|
|
1025
|
-
throw new Error(`Missing required path parameter: resourceId`);
|
|
1026
|
-
}
|
|
1027
|
-
const data = await request({
|
|
1028
|
-
method: 'GET',
|
|
1029
|
-
url: `/v1/installations/${integrationConfigurationId}/resources/${resourceId}`,
|
|
1030
|
-
...requestConfig
|
|
1031
|
-
});
|
|
1032
|
-
return data;
|
|
1033
|
-
}
|
|
1034
|
-
/**
|
|
1035
|
-
* @description Delete a resource owned by the selected installation ID.
|
|
1036
|
-
* @summary Delete Integration Resource
|
|
1037
|
-
* {@link /v1/installations/:integrationConfigurationId/resources/:resourceId}
|
|
1038
|
-
*/
|
|
1039
|
-
export async function deleteIntegrationResource({ pathParams: { integrationConfigurationId, resourceId }, config = {} }) {
|
|
1040
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1041
|
-
if (!integrationConfigurationId) {
|
|
1042
|
-
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1043
|
-
}
|
|
1044
|
-
if (!resourceId) {
|
|
1045
|
-
throw new Error(`Missing required path parameter: resourceId`);
|
|
1046
|
-
}
|
|
1047
|
-
const data = await request({
|
|
1048
|
-
method: 'DELETE',
|
|
1049
|
-
url: `/v1/installations/${integrationConfigurationId}/resources/${resourceId}`,
|
|
1050
|
-
...requestConfig
|
|
1051
|
-
});
|
|
1052
|
-
return data;
|
|
1053
|
-
}
|
|
1054
|
-
/**
|
|
1055
|
-
* @description This endpoint imports (upserts) a resource to Vercel's installation. This may be needed if resources can be independently created on the partner's side and need to be synchronized to Vercel.
|
|
1056
|
-
* @summary Import Resource
|
|
1057
|
-
* {@link /v1/installations/:integrationConfigurationId/resources/:resourceId}
|
|
1058
|
-
*/
|
|
1059
|
-
export async function importResource({ pathParams: { integrationConfigurationId, resourceId }, config = {} }) {
|
|
1060
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1061
|
-
if (!integrationConfigurationId) {
|
|
1062
|
-
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1063
|
-
}
|
|
1064
|
-
if (!resourceId) {
|
|
1065
|
-
throw new Error(`Missing required path parameter: resourceId`);
|
|
1066
|
-
}
|
|
1067
|
-
const data = await request({
|
|
1068
|
-
method: 'PUT',
|
|
1069
|
-
url: `/v1/installations/${integrationConfigurationId}/resources/${resourceId}`,
|
|
1070
|
-
...requestConfig,
|
|
1071
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1072
|
-
});
|
|
1073
|
-
return data;
|
|
1074
|
-
}
|
|
1075
|
-
/**
|
|
1076
|
-
* @description Sends the billing and usage data. The partner should do this at least once a day and ideally once per hour. <br/> Use the `credentials.access_token` we provided in the [Upsert Installation](#upsert-installation) body to authorize this request.
|
|
1077
|
-
* @summary Submit Billing Data
|
|
1078
|
-
* {@link /v1/installations/:integrationConfigurationId/billing}
|
|
1079
|
-
*/
|
|
1080
|
-
export async function submitBillingData({ pathParams: { integrationConfigurationId }, config = {} }) {
|
|
1081
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1082
|
-
if (!integrationConfigurationId) {
|
|
1083
|
-
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1084
|
-
}
|
|
1085
|
-
const data = await request({
|
|
1086
|
-
method: 'POST',
|
|
1087
|
-
url: `/v1/installations/${integrationConfigurationId}/billing`,
|
|
1088
|
-
...requestConfig,
|
|
1089
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1090
|
-
});
|
|
1091
|
-
return data;
|
|
1092
|
-
}
|
|
1093
|
-
/**
|
|
1094
|
-
* @description This endpoint allows the partner to submit an invoice to Vercel. The invoice is created in Vercel's billing system and sent to the customer. Depending on the type of billing plan, the invoice can be sent at a time of signup, at the start of the billing period, or at the end of the billing period.<br/> <br/> Use the `credentials.access_token` we provided in the [Upsert Installation](#upsert-installation) body to authorize this request. <br/> There are several limitations to the invoice submission:<br/> <br/> 1. A resource can only be billed once per the billing period and the billing plan.<br/> 2. The billing plan used to bill the resource must have been active for this resource during the billing period.<br/> 3. The billing plan used must be a subscription plan.<br/> 4. The interim usage data must be sent hourly for all types of subscriptions. See [Send subscription billing and usage data](#send-subscription-billing-and-usage-data) API on how to send interim billing and usage data.<br/>
|
|
1095
|
-
* @summary Submit Invoice
|
|
1096
|
-
* {@link /v1/installations/:integrationConfigurationId/billing/invoices}
|
|
1097
|
-
*/
|
|
1098
|
-
export async function submitInvoice({ pathParams: { integrationConfigurationId }, config = {} }) {
|
|
1099
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1100
|
-
if (!integrationConfigurationId) {
|
|
1101
|
-
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1102
|
-
}
|
|
1103
|
-
const data = await request({
|
|
1104
|
-
method: 'POST',
|
|
1105
|
-
url: `/v1/installations/${integrationConfigurationId}/billing/invoices`,
|
|
1106
|
-
...requestConfig,
|
|
1107
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1108
|
-
});
|
|
1109
|
-
return data;
|
|
1110
|
-
}
|
|
1111
|
-
/**
|
|
1112
|
-
* @description Get Invoice details and status for a given invoice ID.<br/> <br/> See Billing Events with Webhooks documentation on how to receive invoice events. This endpoint is used to retrieve the invoice details.
|
|
1113
|
-
* @summary Get Invoice
|
|
1114
|
-
* {@link /v1/installations/:integrationConfigurationId/billing/invoices/:invoiceId}
|
|
1115
|
-
*/
|
|
1116
|
-
export async function getInvoice({ pathParams: { integrationConfigurationId, invoiceId }, config = {} }) {
|
|
1117
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1118
|
-
if (!integrationConfigurationId) {
|
|
1119
|
-
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1120
|
-
}
|
|
1121
|
-
if (!invoiceId) {
|
|
1122
|
-
throw new Error(`Missing required path parameter: invoiceId`);
|
|
1123
|
-
}
|
|
1124
|
-
const data = await request({
|
|
1125
|
-
method: 'GET',
|
|
1126
|
-
url: `/v1/installations/${integrationConfigurationId}/billing/invoices/${invoiceId}`,
|
|
1127
|
-
...requestConfig
|
|
1128
|
-
});
|
|
1129
|
-
return data;
|
|
1130
|
-
}
|
|
1131
|
-
/**
|
|
1132
|
-
* @description This endpoint allows the partner to request a refund for an invoice to Vercel. The invoice is created using the [Submit Invoice API](#submit-invoice-api).
|
|
1133
|
-
* @summary Invoice Actions
|
|
1134
|
-
* {@link /v1/installations/:integrationConfigurationId/billing/invoices/:invoiceId/actions}
|
|
1135
|
-
*/
|
|
1136
|
-
export async function updateInvoice({ pathParams: { integrationConfigurationId, invoiceId }, config = {} }) {
|
|
1137
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1138
|
-
if (!integrationConfigurationId) {
|
|
1139
|
-
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1140
|
-
}
|
|
1141
|
-
if (!invoiceId) {
|
|
1142
|
-
throw new Error(`Missing required path parameter: invoiceId`);
|
|
1143
|
-
}
|
|
1144
|
-
const data = await request({
|
|
1145
|
-
method: 'POST',
|
|
1146
|
-
url: `/v1/installations/${integrationConfigurationId}/billing/invoices/${invoiceId}/actions`,
|
|
1147
|
-
...requestConfig,
|
|
1148
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1149
|
-
});
|
|
1150
|
-
return data;
|
|
1151
|
-
}
|
|
1152
|
-
/**
|
|
1153
|
-
* @description Sends the prepayment balances. The partner should do this at least once a day and ideally once per hour. <br/> Use the `credentials.access_token` we provided in the [Upsert Installation](#upsert-installation) body to authorize this request.
|
|
1154
|
-
* @summary Submit Prepayment Balances
|
|
1155
|
-
* {@link /v1/installations/:integrationConfigurationId/billing/balance}
|
|
1156
|
-
*/
|
|
1157
|
-
export async function submitPrepaymentBalances({ pathParams: { integrationConfigurationId }, config = {} }) {
|
|
1158
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1159
|
-
if (!integrationConfigurationId) {
|
|
1160
|
-
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1161
|
-
}
|
|
1162
|
-
const data = await request({
|
|
1163
|
-
method: 'POST',
|
|
1164
|
-
url: `/v1/installations/${integrationConfigurationId}/billing/balance`,
|
|
1165
|
-
...requestConfig,
|
|
1166
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1167
|
-
});
|
|
1168
|
-
return data;
|
|
1169
|
-
}
|
|
1170
|
-
/**
|
|
1171
|
-
* @description This endpoint is deprecated and replaced with the endpoint [Update Resource Secrets](#update-resource-secrets). <br/> This endpoint updates the secrets of a resource. If a resource has projects connected, the connected secrets are updated with the new secrets. The old secrets may still be used by existing connected projects because they are not automatically redeployed. Redeployment is a manual action and must be completed by the user. All new project connections will use the new secrets.<br/> <br/> Use cases for this endpoint:<br/> <br/> - Resetting the credentials of a database in the partner. If the user requests the credentials to be updated in the partner’s application, the partner post the new set of secrets to Vercel, the user should redeploy their application and the expire the old credentials.<br/>
|
|
1172
|
-
* @summary Update Resource Secrets (Deprecated)
|
|
1173
|
-
* {@link /v1/installations/:integrationConfigurationId/products/:integrationProductIdOrSlug/resources/:resourceId/secrets}
|
|
1174
|
-
*/
|
|
1175
|
-
export async function updateResourceSecrets({ pathParams: { integrationConfigurationId, integrationProductIdOrSlug, resourceId }, config = {} }) {
|
|
1176
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1177
|
-
if (!integrationConfigurationId) {
|
|
1178
|
-
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1179
|
-
}
|
|
1180
|
-
if (!integrationProductIdOrSlug) {
|
|
1181
|
-
throw new Error(`Missing required path parameter: integrationProductIdOrSlug`);
|
|
1182
|
-
}
|
|
1183
|
-
if (!resourceId) {
|
|
1184
|
-
throw new Error(`Missing required path parameter: resourceId`);
|
|
1185
|
-
}
|
|
1186
|
-
const data = await request({
|
|
1187
|
-
method: 'PUT',
|
|
1188
|
-
url: `/v1/installations/${integrationConfigurationId}/products/${integrationProductIdOrSlug}/resources/${resourceId}/secrets`,
|
|
1189
|
-
...requestConfig,
|
|
1190
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1191
|
-
});
|
|
1192
|
-
return data;
|
|
1193
|
-
}
|
|
1194
|
-
/**
|
|
1195
|
-
* @description This endpoint updates the secrets of a resource. If a resource has projects connected, the connected secrets are updated with the new secrets. The old secrets may still be used by existing connected projects because they are not automatically redeployed. Redeployment is a manual action and must be completed by the user. All new project connections will use the new secrets.<br/> <br/> Use cases for this endpoint:<br/> <br/> - Resetting the credentials of a database in the partner. If the user requests the credentials to be updated in the partner’s application, the partner post the new set of secrets to Vercel, the user should redeploy their application and the expire the old credentials.<br/>
|
|
1196
|
-
* @summary Update Resource Secrets
|
|
1197
|
-
* {@link /v1/installations/:integrationConfigurationId/resources/:resourceId/secrets}
|
|
1198
|
-
*/
|
|
1199
|
-
export async function updateResourceSecretsById({ pathParams: { integrationConfigurationId, resourceId }, config = {} }) {
|
|
1200
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1201
|
-
if (!integrationConfigurationId) {
|
|
1202
|
-
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1203
|
-
}
|
|
1204
|
-
if (!resourceId) {
|
|
1205
|
-
throw new Error(`Missing required path parameter: resourceId`);
|
|
1206
|
-
}
|
|
1207
|
-
const data = await request({
|
|
1208
|
-
method: 'PUT',
|
|
1209
|
-
url: `/v1/installations/${integrationConfigurationId}/resources/${resourceId}/secrets`,
|
|
1210
|
-
...requestConfig,
|
|
1211
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1212
|
-
});
|
|
1213
|
-
return data;
|
|
1214
|
-
}
|
|
1215
|
-
/**
|
|
1216
|
-
* @description Allows to retrieve all configurations for an authenticated integration. When the `project` view is used, configurations generated for the authorization flow will be filtered out of the results.
|
|
1217
|
-
* @summary Get configurations for the authenticated user or team
|
|
1218
|
-
* {@link /v1/integrations/configurations}
|
|
1219
|
-
*/
|
|
1220
|
-
export async function getConfigurations({ queryParams, config = {} }) {
|
|
1221
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1222
|
-
const data = await request({ method: 'GET', url: `/v1/integrations/configurations`, queryParams, ...requestConfig });
|
|
1223
|
-
return data;
|
|
1224
|
-
}
|
|
1225
|
-
/**
|
|
1226
|
-
* @description Allows to retrieve a the configuration with the provided id in case it exists. The authenticated user or team must be the owner of the config in order to access it.
|
|
1227
|
-
* @summary Retrieve an integration configuration
|
|
1228
|
-
* {@link /v1/integrations/configuration/:id}
|
|
1229
|
-
*/
|
|
1230
|
-
export async function getConfiguration({ pathParams: { id }, queryParams, config = {} }) {
|
|
1231
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1232
|
-
if (!id) {
|
|
1233
|
-
throw new Error(`Missing required path parameter: id`);
|
|
1234
|
-
}
|
|
1235
|
-
const data = await request({ method: 'GET', url: `/v1/integrations/configuration/${id}`, queryParams, ...requestConfig });
|
|
1236
|
-
return data;
|
|
1237
|
-
}
|
|
1238
|
-
/**
|
|
1239
|
-
* @description Allows to remove the configuration with the `id` provided in the parameters. The configuration and all of its resources will be removed. This includes Webhooks, LogDrains and Project Env variables.
|
|
1240
|
-
* @summary Delete an integration configuration
|
|
1241
|
-
* {@link /v1/integrations/configuration/:id}
|
|
1242
|
-
*/
|
|
1243
|
-
export async function deleteConfiguration({ pathParams: { id }, queryParams, config = {} }) {
|
|
1244
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1245
|
-
if (!id) {
|
|
1246
|
-
throw new Error(`Missing required path parameter: id`);
|
|
1247
|
-
}
|
|
1248
|
-
const data = await request({ method: 'DELETE', url: `/v1/integrations/configuration/${id}`, queryParams, ...requestConfig });
|
|
1249
|
-
return data;
|
|
1250
|
-
}
|
|
1251
|
-
/**
|
|
1252
|
-
* @description During the autorization process, Vercel sends the user to the provider [redirectLoginUrl](https://vercel.com/docs/integrations/create-integration/submit-integration#redirect-login-url), that includes the OAuth authorization `code` parameter. The provider then calls the SSO Token Exchange endpoint with the sent code and receives the OIDC token. They log the user in based on this token and redirects the user back to the Vercel account using deep-link parameters included the redirectLoginUrl. Providers should not persist the returned `id_token` in a database since the token will expire. See [**Authentication with SSO**](https://vercel.com/docs/integrations/create-integration/marketplace-api#authentication-with-sso) for more details.
|
|
1253
|
-
* @summary SSO Token Exchange
|
|
1254
|
-
* {@link /v1/integrations/sso/token}
|
|
1255
|
-
*/
|
|
1256
|
-
export async function exchangeSsoToken({ config = {} }) {
|
|
1257
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1258
|
-
const data = await request({
|
|
1259
|
-
method: 'POST',
|
|
1260
|
-
url: `/v1/integrations/sso/token`,
|
|
1261
|
-
...requestConfig,
|
|
1262
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1263
|
-
});
|
|
1264
|
-
return data;
|
|
1265
|
-
}
|
|
1266
|
-
/**
|
|
1267
|
-
* @description Retrieves a list of all Integration log drains that are defined for the authenticated user or team. When using an OAuth2 token, the list is limited to log drains created by the authenticated integration.
|
|
1268
|
-
* @summary Retrieves a list of Integration log drains
|
|
1269
|
-
* {@link /v2/integrations/log-drains}
|
|
1270
|
-
*/
|
|
1271
|
-
export async function getIntegrationLogDrains({ queryParams, config = {} }) {
|
|
1272
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1273
|
-
const data = await request({ method: 'GET', url: `/v2/integrations/log-drains`, queryParams, ...requestConfig });
|
|
1274
|
-
return data;
|
|
1275
|
-
}
|
|
1276
|
-
/**
|
|
1277
|
-
* @description Creates an Integration log drain. This endpoint must be called with an OAuth2 client (integration), since log drains are tied to integrations. If it is called with a different token type it will produce a 400 error.
|
|
1278
|
-
* @summary Creates a new Integration Log Drain
|
|
1279
|
-
* {@link /v2/integrations/log-drains}
|
|
1280
|
-
*/
|
|
1281
|
-
export async function createLogDrain({ queryParams, config = {} }) {
|
|
1282
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1283
|
-
const data = await request({
|
|
1284
|
-
method: 'POST',
|
|
1285
|
-
url: `/v2/integrations/log-drains`,
|
|
1286
|
-
queryParams,
|
|
1287
|
-
...requestConfig,
|
|
1288
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1289
|
-
});
|
|
1290
|
-
return data;
|
|
1291
|
-
}
|
|
1292
|
-
/**
|
|
1293
|
-
* @description Deletes the Integration log drain with the provided `id`. When using an OAuth2 Token, the log drain can be deleted only if the integration owns it.
|
|
1294
|
-
* @summary Deletes the Integration log drain with the provided `id`
|
|
1295
|
-
* {@link /v1/integrations/log-drains/:id}
|
|
1296
|
-
*/
|
|
1297
|
-
export async function deleteIntegrationLogDrain({ pathParams: { id }, queryParams, config = {} }) {
|
|
1298
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1299
|
-
if (!id) {
|
|
1300
|
-
throw new Error(`Missing required path parameter: id`);
|
|
1301
|
-
}
|
|
1302
|
-
const data = await request({ method: 'DELETE', url: `/v1/integrations/log-drains/${id}`, queryParams, ...requestConfig });
|
|
1303
|
-
return data;
|
|
1304
|
-
}
|
|
1305
|
-
/**
|
|
1306
|
-
* @description Returns a stream of logs for a given deployment.
|
|
1307
|
-
* @summary Get logs for a deployment
|
|
1308
|
-
* {@link /v1/projects/:projectId/deployments/:deploymentId/runtime-logs}
|
|
1309
|
-
*/
|
|
1310
|
-
export async function getRuntimeLogs({ pathParams: { projectId, deploymentId }, queryParams, config = {} }) {
|
|
1311
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1312
|
-
if (!projectId) {
|
|
1313
|
-
throw new Error(`Missing required path parameter: projectId`);
|
|
1314
|
-
}
|
|
1315
|
-
if (!deploymentId) {
|
|
1316
|
-
throw new Error(`Missing required path parameter: deploymentId`);
|
|
1317
|
-
}
|
|
1318
|
-
const data = await request({
|
|
1319
|
-
method: 'GET',
|
|
1320
|
-
url: `/v1/projects/${projectId}/deployments/${deploymentId}/runtime-logs`,
|
|
1321
|
-
queryParams,
|
|
1322
|
-
...requestConfig
|
|
1323
|
-
});
|
|
1324
|
-
return data;
|
|
1325
|
-
}
|
|
1326
|
-
/**
|
|
1327
|
-
* @description Create one or multiple experimentation items
|
|
1328
|
-
* @summary Create one or multiple experimentation items
|
|
1329
|
-
* {@link /v1/installations/:integrationConfigurationId/resources/:resourceId/experimentation/items}
|
|
1330
|
-
*/
|
|
1331
|
-
export async function createExperimentationItem({ pathParams: { integrationConfigurationId, resourceId }, config = {} }) {
|
|
1332
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1333
|
-
if (!integrationConfigurationId) {
|
|
1334
|
-
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1335
|
-
}
|
|
1336
|
-
if (!resourceId) {
|
|
1337
|
-
throw new Error(`Missing required path parameter: resourceId`);
|
|
1338
|
-
}
|
|
1339
|
-
const data = await request({
|
|
1340
|
-
method: 'POST',
|
|
1341
|
-
url: `/v1/installations/${integrationConfigurationId}/resources/${resourceId}/experimentation/items`,
|
|
1342
|
-
...requestConfig,
|
|
1343
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1344
|
-
});
|
|
1345
|
-
return data;
|
|
1346
|
-
}
|
|
1347
|
-
/**
|
|
1348
|
-
* @description Patch an existing experimentation item
|
|
1349
|
-
* @summary Patch an existing experimentation item
|
|
1350
|
-
* {@link /v1/installations/:integrationConfigurationId/resources/:resourceId/experimentation/items/:itemId}
|
|
1351
|
-
*/
|
|
1352
|
-
export async function updateExperimentationItem({ pathParams: { integrationConfigurationId, resourceId, itemId }, config = {} }) {
|
|
1353
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1354
|
-
if (!integrationConfigurationId) {
|
|
1355
|
-
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1356
|
-
}
|
|
1357
|
-
if (!resourceId) {
|
|
1358
|
-
throw new Error(`Missing required path parameter: resourceId`);
|
|
1359
|
-
}
|
|
1360
|
-
if (!itemId) {
|
|
1361
|
-
throw new Error(`Missing required path parameter: itemId`);
|
|
1362
|
-
}
|
|
1363
|
-
const data = await request({
|
|
1364
|
-
method: 'PATCH',
|
|
1365
|
-
url: `/v1/installations/${integrationConfigurationId}/resources/${resourceId}/experimentation/items/${itemId}`,
|
|
1366
|
-
...requestConfig,
|
|
1367
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1368
|
-
});
|
|
1369
|
-
return data;
|
|
1370
|
-
}
|
|
1371
|
-
/**
|
|
1372
|
-
* @description Delete an existing experimentation item
|
|
1373
|
-
* @summary Delete an existing experimentation item
|
|
1374
|
-
* {@link /v1/installations/:integrationConfigurationId/resources/:resourceId/experimentation/items/:itemId}
|
|
1375
|
-
*/
|
|
1376
|
-
export async function deleteExperimentationItem({ pathParams: { integrationConfigurationId, resourceId, itemId }, config = {} }) {
|
|
1377
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1378
|
-
if (!integrationConfigurationId) {
|
|
1379
|
-
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1380
|
-
}
|
|
1381
|
-
if (!resourceId) {
|
|
1382
|
-
throw new Error(`Missing required path parameter: resourceId`);
|
|
1383
|
-
}
|
|
1384
|
-
if (!itemId) {
|
|
1385
|
-
throw new Error(`Missing required path parameter: itemId`);
|
|
1386
|
-
}
|
|
1387
|
-
const data = await request({
|
|
1388
|
-
method: 'DELETE',
|
|
1389
|
-
url: `/v1/installations/${integrationConfigurationId}/resources/${resourceId}/experimentation/items/${itemId}`,
|
|
1390
|
-
...requestConfig
|
|
1391
|
-
});
|
|
1392
|
-
return data;
|
|
1393
|
-
}
|
|
1394
|
-
/**
|
|
1395
|
-
* @description When the user enabled Edge Config syncing, then this endpoint can be used by the partner to push their configuration data into the relevant Edge Config.
|
|
1396
|
-
* @summary Push data into a user-provided Edge Config
|
|
1397
|
-
* {@link /v1/installations/:integrationConfigurationId/resources/:resourceId/experimentation/edge-config}
|
|
1398
|
-
*/
|
|
1399
|
-
export async function updateExperimentationEdgeConfig({ pathParams: { integrationConfigurationId, resourceId }, config = {} }) {
|
|
1400
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1401
|
-
if (!integrationConfigurationId) {
|
|
1402
|
-
throw new Error(`Missing required path parameter: integrationConfigurationId`);
|
|
1403
|
-
}
|
|
1404
|
-
if (!resourceId) {
|
|
1405
|
-
throw new Error(`Missing required path parameter: resourceId`);
|
|
1406
|
-
}
|
|
1407
|
-
const data = await request({
|
|
1408
|
-
method: 'PUT',
|
|
1409
|
-
url: `/v1/installations/${integrationConfigurationId}/resources/${resourceId}/experimentation/edge-config`,
|
|
1410
|
-
...requestConfig,
|
|
1411
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1412
|
-
});
|
|
1413
|
-
return data;
|
|
1414
|
-
}
|
|
1415
|
-
/**
|
|
1416
|
-
* @description Lists all members of a project.
|
|
1417
|
-
* @summary List project members
|
|
1418
|
-
* {@link /v1/projects/:idOrName/members}
|
|
1419
|
-
*/
|
|
1420
|
-
export async function getProjectMembers({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1421
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1422
|
-
if (!idOrName) {
|
|
1423
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1424
|
-
}
|
|
1425
|
-
const data = await request({ method: 'GET', url: `/v1/projects/${idOrName}/members`, queryParams, ...requestConfig });
|
|
1426
|
-
return data;
|
|
1427
|
-
}
|
|
1428
|
-
/**
|
|
1429
|
-
* @description Adds a new member to the project.
|
|
1430
|
-
* @summary Adds a new member to a project.
|
|
1431
|
-
* {@link /v1/projects/:idOrName/members}
|
|
1432
|
-
*/
|
|
1433
|
-
export async function addProjectMember({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1434
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1435
|
-
if (!idOrName) {
|
|
1436
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1437
|
-
}
|
|
1438
|
-
const data = await request({
|
|
1439
|
-
method: 'POST',
|
|
1440
|
-
url: `/v1/projects/${idOrName}/members`,
|
|
1441
|
-
queryParams,
|
|
1442
|
-
...requestConfig,
|
|
1443
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1444
|
-
});
|
|
1445
|
-
return data;
|
|
1446
|
-
}
|
|
1447
|
-
/**
|
|
1448
|
-
* @description Remove a member from a specific project
|
|
1449
|
-
* @summary Remove a Project Member
|
|
1450
|
-
* {@link /v1/projects/:idOrName/members/:uid}
|
|
1451
|
-
*/
|
|
1452
|
-
export async function removeProjectMember({ pathParams: { idOrName, uid }, queryParams, config = {} }) {
|
|
1453
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1454
|
-
if (!idOrName) {
|
|
1455
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1456
|
-
}
|
|
1457
|
-
if (!uid) {
|
|
1458
|
-
throw new Error(`Missing required path parameter: uid`);
|
|
1459
|
-
}
|
|
1460
|
-
const data = await request({ method: 'DELETE', url: `/v1/projects/${idOrName}/members/${uid}`, queryParams, ...requestConfig });
|
|
1461
|
-
return data;
|
|
1462
|
-
}
|
|
1463
|
-
/**
|
|
1464
|
-
* @description Allows to retrieve the list of projects of the authenticated user or team. The list will be paginated and the provided query parameters allow filtering the returned projects.
|
|
1465
|
-
* @summary Retrieve a list of projects
|
|
1466
|
-
* {@link /v10/projects}
|
|
1467
|
-
*/
|
|
1468
|
-
export async function getProjects({ queryParams, config = {} }) {
|
|
1469
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1470
|
-
const data = await request({ method: 'GET', url: `/v10/projects`, queryParams, ...requestConfig });
|
|
1471
|
-
return data;
|
|
1472
|
-
}
|
|
1473
|
-
/**
|
|
1474
|
-
* @description Allows to create a new project with the provided configuration. It only requires the project `name` but more configuration can be provided to override the defaults.
|
|
1475
|
-
* @summary Create a new project
|
|
1476
|
-
* {@link /v11/projects}
|
|
1477
|
-
*/
|
|
1478
|
-
export async function createProject({ queryParams, config = {} }) {
|
|
1479
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1480
|
-
const data = await request({
|
|
1481
|
-
method: 'POST',
|
|
1482
|
-
url: `/v11/projects`,
|
|
1483
|
-
queryParams,
|
|
1484
|
-
...requestConfig,
|
|
1485
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1486
|
-
});
|
|
1487
|
-
return data;
|
|
1488
|
-
}
|
|
1489
|
-
/**
|
|
1490
|
-
* @description Get the information for a specific project by passing either the project `id` or `name` in the URL.
|
|
1491
|
-
* @summary Find a project by id or name
|
|
1492
|
-
* {@link /v9/projects/:idOrName}
|
|
1493
|
-
*/
|
|
1494
|
-
export async function getProject({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1495
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1496
|
-
if (!idOrName) {
|
|
1497
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1498
|
-
}
|
|
1499
|
-
const data = await request({ method: 'GET', url: `/v9/projects/${idOrName}`, queryParams, ...requestConfig });
|
|
1500
|
-
return data;
|
|
1501
|
-
}
|
|
1502
|
-
/**
|
|
1503
|
-
* @description Update the fields of a project using either its `name` or `id`.
|
|
1504
|
-
* @summary Update an existing project
|
|
1505
|
-
* {@link /v9/projects/:idOrName}
|
|
1506
|
-
*/
|
|
1507
|
-
export async function updateProject({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1508
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1509
|
-
if (!idOrName) {
|
|
1510
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1511
|
-
}
|
|
1512
|
-
const data = await request({
|
|
1513
|
-
method: 'PATCH',
|
|
1514
|
-
url: `/v9/projects/${idOrName}`,
|
|
1515
|
-
queryParams,
|
|
1516
|
-
...requestConfig,
|
|
1517
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1518
|
-
});
|
|
1519
|
-
return data;
|
|
1520
|
-
}
|
|
1521
|
-
/**
|
|
1522
|
-
* @description Delete a specific project by passing either the project `id` or `name` in the URL.
|
|
1523
|
-
* @summary Delete a Project
|
|
1524
|
-
* {@link /v9/projects/:idOrName}
|
|
1525
|
-
*/
|
|
1526
|
-
export async function deleteProject({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1527
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1528
|
-
if (!idOrName) {
|
|
1529
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1530
|
-
}
|
|
1531
|
-
const data = await request({ method: 'DELETE', url: `/v9/projects/${idOrName}`, queryParams, ...requestConfig });
|
|
1532
|
-
return data;
|
|
1533
|
-
}
|
|
1534
|
-
/**
|
|
1535
|
-
* @description Creates a custom environment for the current project. Cannot be named 'Production' or 'Preview'.
|
|
1536
|
-
* @summary Create a custom environment for the current project.
|
|
1537
|
-
* {@link /v9/projects/:idOrName/custom-environments}
|
|
1538
|
-
*/
|
|
1539
|
-
export async function createCustomEnvironment({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1540
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1541
|
-
if (!idOrName) {
|
|
1542
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1543
|
-
}
|
|
1544
|
-
const data = await request({
|
|
1545
|
-
method: 'POST',
|
|
1546
|
-
url: `/v9/projects/${idOrName}/custom-environments`,
|
|
1547
|
-
queryParams,
|
|
1548
|
-
...requestConfig,
|
|
1549
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1550
|
-
});
|
|
1551
|
-
return data;
|
|
1552
|
-
}
|
|
1553
|
-
/**
|
|
1554
|
-
* @description Retrieve custom environments for the project. Must not be named 'Production' or 'Preview'.
|
|
1555
|
-
* @summary Retrieve custom environments
|
|
1556
|
-
* {@link /v9/projects/:idOrName/custom-environments}
|
|
1557
|
-
*/
|
|
1558
|
-
export async function listCustomEnvironments({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1559
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1560
|
-
if (!idOrName) {
|
|
1561
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1562
|
-
}
|
|
1563
|
-
const data = await request({ method: 'GET', url: `/v9/projects/${idOrName}/custom-environments`, queryParams, ...requestConfig });
|
|
1564
|
-
return data;
|
|
1565
|
-
}
|
|
1566
|
-
/**
|
|
1567
|
-
* @description Retrieve a custom environment for the project. Must not be named 'Production' or 'Preview'.
|
|
1568
|
-
* @summary Retrieve a custom environment
|
|
1569
|
-
* {@link /v9/projects/:idOrName/custom-environments/:environmentSlugOrId}
|
|
1570
|
-
*/
|
|
1571
|
-
export async function getCustomEnvironment({ pathParams: { idOrName, environmentSlugOrId }, queryParams, config = {} }) {
|
|
1572
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1573
|
-
if (!idOrName) {
|
|
1574
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1575
|
-
}
|
|
1576
|
-
if (!environmentSlugOrId) {
|
|
1577
|
-
throw new Error(`Missing required path parameter: environmentSlugOrId`);
|
|
1578
|
-
}
|
|
1579
|
-
const data = await request({
|
|
1580
|
-
method: 'GET',
|
|
1581
|
-
url: `/v9/projects/${idOrName}/custom-environments/${environmentSlugOrId}`,
|
|
1582
|
-
queryParams,
|
|
1583
|
-
...requestConfig
|
|
1584
|
-
});
|
|
1585
|
-
return data;
|
|
1586
|
-
}
|
|
1587
|
-
/**
|
|
1588
|
-
* @description Update a custom environment for the project. Must not be named 'Production' or 'Preview'.
|
|
1589
|
-
* @summary Update a custom environment
|
|
1590
|
-
* {@link /v9/projects/:idOrName/custom-environments/:environmentSlugOrId}
|
|
1591
|
-
*/
|
|
1592
|
-
export async function updateCustomEnvironment({ pathParams: { idOrName, environmentSlugOrId }, queryParams, config = {} }) {
|
|
1593
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1594
|
-
if (!idOrName) {
|
|
1595
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1596
|
-
}
|
|
1597
|
-
if (!environmentSlugOrId) {
|
|
1598
|
-
throw new Error(`Missing required path parameter: environmentSlugOrId`);
|
|
1599
|
-
}
|
|
1600
|
-
const data = await request({
|
|
1601
|
-
method: 'PATCH',
|
|
1602
|
-
url: `/v9/projects/${idOrName}/custom-environments/${environmentSlugOrId}`,
|
|
1603
|
-
queryParams,
|
|
1604
|
-
...requestConfig,
|
|
1605
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1606
|
-
});
|
|
1607
|
-
return data;
|
|
1608
|
-
}
|
|
1609
|
-
/**
|
|
1610
|
-
* @description Remove a custom environment for the project. Must not be named 'Production' or 'Preview'.
|
|
1611
|
-
* @summary Remove a custom environment
|
|
1612
|
-
* {@link /v9/projects/:idOrName/custom-environments/:environmentSlugOrId}
|
|
1613
|
-
*/
|
|
1614
|
-
export async function removeCustomEnvironment({ pathParams: { idOrName, environmentSlugOrId }, queryParams, config = {} }) {
|
|
1615
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1616
|
-
if (!idOrName) {
|
|
1617
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1618
|
-
}
|
|
1619
|
-
if (!environmentSlugOrId) {
|
|
1620
|
-
throw new Error(`Missing required path parameter: environmentSlugOrId`);
|
|
1621
|
-
}
|
|
1622
|
-
const data = await request({
|
|
1623
|
-
method: 'DELETE',
|
|
1624
|
-
url: `/v9/projects/${idOrName}/custom-environments/${environmentSlugOrId}`,
|
|
1625
|
-
queryParams,
|
|
1626
|
-
...requestConfig,
|
|
1627
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1628
|
-
});
|
|
1629
|
-
return data;
|
|
1630
|
-
}
|
|
1631
|
-
/**
|
|
1632
|
-
* @description Retrieve the domains associated with a given project by passing either the project `id` or `name` in the URL.
|
|
1633
|
-
* @summary Retrieve project domains by project by id or name
|
|
1634
|
-
* {@link /v9/projects/:idOrName/domains}
|
|
1635
|
-
*/
|
|
1636
|
-
export async function getProjectDomains({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1637
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1638
|
-
if (!idOrName) {
|
|
1639
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1640
|
-
}
|
|
1641
|
-
const data = await request({ method: 'GET', url: `/v9/projects/${idOrName}/domains`, queryParams, ...requestConfig });
|
|
1642
|
-
return data;
|
|
1643
|
-
}
|
|
1644
|
-
/**
|
|
1645
|
-
* @description Get project domain by project id/name and domain name.
|
|
1646
|
-
* @summary Get a project domain
|
|
1647
|
-
* {@link /v9/projects/:idOrName/domains/:domain}
|
|
1648
|
-
*/
|
|
1649
|
-
export async function getProjectDomain({ pathParams: { idOrName, domain }, queryParams, config = {} }) {
|
|
1650
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1651
|
-
if (!idOrName) {
|
|
1652
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1653
|
-
}
|
|
1654
|
-
if (!domain) {
|
|
1655
|
-
throw new Error(`Missing required path parameter: domain`);
|
|
1656
|
-
}
|
|
1657
|
-
const data = await request({ method: 'GET', url: `/v9/projects/${idOrName}/domains/${domain}`, queryParams, ...requestConfig });
|
|
1658
|
-
return data;
|
|
1659
|
-
}
|
|
1660
|
-
/**
|
|
1661
|
-
* @description Update a project domain's configuration, including the name, git branch and redirect of the domain.
|
|
1662
|
-
* @summary Update a project domain
|
|
1663
|
-
* {@link /v9/projects/:idOrName/domains/:domain}
|
|
1664
|
-
*/
|
|
1665
|
-
export async function updateProjectDomain({ pathParams: { idOrName, domain }, queryParams, config = {} }) {
|
|
1666
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1667
|
-
if (!idOrName) {
|
|
1668
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1669
|
-
}
|
|
1670
|
-
if (!domain) {
|
|
1671
|
-
throw new Error(`Missing required path parameter: domain`);
|
|
1672
|
-
}
|
|
1673
|
-
const data = await request({
|
|
1674
|
-
method: 'PATCH',
|
|
1675
|
-
url: `/v9/projects/${idOrName}/domains/${domain}`,
|
|
1676
|
-
queryParams,
|
|
1677
|
-
...requestConfig,
|
|
1678
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1679
|
-
});
|
|
1680
|
-
return data;
|
|
1681
|
-
}
|
|
1682
|
-
/**
|
|
1683
|
-
* @description Remove a domain from a project by passing the domain name and by specifying the project by either passing the project `id` or `name` in the URL.
|
|
1684
|
-
* @summary Remove a domain from a project
|
|
1685
|
-
* {@link /v9/projects/:idOrName/domains/:domain}
|
|
1686
|
-
*/
|
|
1687
|
-
export async function removeProjectDomain({ pathParams: { idOrName, domain }, queryParams, config = {} }) {
|
|
1688
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1689
|
-
if (!idOrName) {
|
|
1690
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1691
|
-
}
|
|
1692
|
-
if (!domain) {
|
|
1693
|
-
throw new Error(`Missing required path parameter: domain`);
|
|
1694
|
-
}
|
|
1695
|
-
const data = await request({
|
|
1696
|
-
method: 'DELETE',
|
|
1697
|
-
url: `/v9/projects/${idOrName}/domains/${domain}`,
|
|
1698
|
-
queryParams,
|
|
1699
|
-
...requestConfig,
|
|
1700
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1701
|
-
});
|
|
1702
|
-
return data;
|
|
1703
|
-
}
|
|
1704
|
-
/**
|
|
1705
|
-
* @description Add a domain to the project by passing its domain name and by specifying the project by either passing the project `id` or `name` in the URL. If the domain is not yet verified to be used on this project, the request will return `verified = false`, and the domain will need to be verified according to the `verification` challenge via `POST /projects/:idOrName/domains/:domain/verify`. If the domain already exists on the project, the request will fail with a `400` status code.
|
|
1706
|
-
* @summary Add a domain to a project
|
|
1707
|
-
* {@link /v10/projects/:idOrName/domains}
|
|
1708
|
-
*/
|
|
1709
|
-
export async function addProjectDomain({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1710
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1711
|
-
if (!idOrName) {
|
|
1712
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1713
|
-
}
|
|
1714
|
-
const data = await request({
|
|
1715
|
-
method: 'POST',
|
|
1716
|
-
url: `/v10/projects/${idOrName}/domains`,
|
|
1717
|
-
queryParams,
|
|
1718
|
-
...requestConfig,
|
|
1719
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1720
|
-
});
|
|
1721
|
-
return data;
|
|
1722
|
-
}
|
|
1723
|
-
/**
|
|
1724
|
-
* @description Move one project's domain to another project. Also allows the move of all redirects pointed to that domain in the same project.
|
|
1725
|
-
* @summary Move a project domain
|
|
1726
|
-
* {@link /v1/projects/:idOrName/domains/:domain/move}
|
|
1727
|
-
*/
|
|
1728
|
-
export async function moveProjectDomain({ pathParams: { idOrName, domain }, queryParams, config = {} }) {
|
|
1729
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1730
|
-
if (!idOrName) {
|
|
1731
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1732
|
-
}
|
|
1733
|
-
if (!domain) {
|
|
1734
|
-
throw new Error(`Missing required path parameter: domain`);
|
|
1735
|
-
}
|
|
1736
|
-
const data = await request({
|
|
1737
|
-
method: 'POST',
|
|
1738
|
-
url: `/v1/projects/${idOrName}/domains/${domain}/move`,
|
|
1739
|
-
queryParams,
|
|
1740
|
-
...requestConfig,
|
|
1741
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1742
|
-
});
|
|
1743
|
-
return data;
|
|
1744
|
-
}
|
|
1745
|
-
/**
|
|
1746
|
-
* @description Attempts to verify a project domain with `verified = false` by checking the correctness of the project domain's `verification` challenge.
|
|
1747
|
-
* @summary Verify project domain
|
|
1748
|
-
* {@link /v9/projects/:idOrName/domains/:domain/verify}
|
|
1749
|
-
*/
|
|
1750
|
-
export async function verifyProjectDomain({ pathParams: { idOrName, domain }, queryParams, config = {} }) {
|
|
1751
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1752
|
-
if (!idOrName) {
|
|
1753
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1754
|
-
}
|
|
1755
|
-
if (!domain) {
|
|
1756
|
-
throw new Error(`Missing required path parameter: domain`);
|
|
1757
|
-
}
|
|
1758
|
-
const data = await request({ method: 'POST', url: `/v9/projects/${idOrName}/domains/${domain}/verify`, queryParams, ...requestConfig });
|
|
1759
|
-
return data;
|
|
1760
|
-
}
|
|
1761
|
-
/**
|
|
1762
|
-
* @description Retrieve the environment variables for a given project by passing either the project `id` or `name` in the URL.
|
|
1763
|
-
* @summary Retrieve the environment variables of a project by id or name
|
|
1764
|
-
* {@link /v10/projects/:idOrName/env}
|
|
1765
|
-
*/
|
|
1766
|
-
export async function filterProjectEnvs({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1767
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1768
|
-
if (!idOrName) {
|
|
1769
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1770
|
-
}
|
|
1771
|
-
const data = await request({ method: 'GET', url: `/v10/projects/${idOrName}/env`, queryParams, ...requestConfig });
|
|
1772
|
-
return data;
|
|
1773
|
-
}
|
|
1774
|
-
/**
|
|
1775
|
-
* @description Create one or more environment variables for a project by passing its `key`, `value`, `type` and `target` and by specifying the project by either passing the project `id` or `name` in the URL. If you include `upsert=true` as a query parameter, a new environment variable will not be created if it already exists but, the existing variable's value will be updated.
|
|
1776
|
-
* @summary Create one or more environment variables
|
|
1777
|
-
* {@link /v10/projects/:idOrName/env}
|
|
1778
|
-
*/
|
|
1779
|
-
export async function createProjectEnv({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1780
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1781
|
-
if (!idOrName) {
|
|
1782
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1783
|
-
}
|
|
1784
|
-
const data = await request({
|
|
1785
|
-
method: 'POST',
|
|
1786
|
-
url: `/v10/projects/${idOrName}/env`,
|
|
1787
|
-
queryParams,
|
|
1788
|
-
...requestConfig,
|
|
1789
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1790
|
-
});
|
|
1791
|
-
return data;
|
|
1792
|
-
}
|
|
1793
|
-
/**
|
|
1794
|
-
* @description Retrieve the environment variable for a given project.
|
|
1795
|
-
* @summary Retrieve the decrypted value of an environment variable of a project by id
|
|
1796
|
-
* {@link /v1/projects/:idOrName/env/:id}
|
|
1797
|
-
*/
|
|
1798
|
-
export async function getProjectEnv({ pathParams: { idOrName, id }, queryParams, config = {} }) {
|
|
1799
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1800
|
-
if (!idOrName) {
|
|
1801
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1802
|
-
}
|
|
1803
|
-
if (!id) {
|
|
1804
|
-
throw new Error(`Missing required path parameter: id`);
|
|
1805
|
-
}
|
|
1806
|
-
const data = await request({ method: 'GET', url: `/v1/projects/${idOrName}/env/${id}`, queryParams, ...requestConfig });
|
|
1807
|
-
return data;
|
|
1808
|
-
}
|
|
1809
|
-
/**
|
|
1810
|
-
* @description Delete a specific environment variable for a given project by passing the environment variable identifier and either passing the project `id` or `name` in the URL.
|
|
1811
|
-
* @summary Remove an environment variable
|
|
1812
|
-
* {@link /v9/projects/:idOrName/env/:id}
|
|
1813
|
-
*/
|
|
1814
|
-
export async function removeProjectEnv({ pathParams: { idOrName, id }, queryParams, config = {} }) {
|
|
1815
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1816
|
-
if (!idOrName) {
|
|
1817
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1818
|
-
}
|
|
1819
|
-
if (!id) {
|
|
1820
|
-
throw new Error(`Missing required path parameter: id`);
|
|
1821
|
-
}
|
|
1822
|
-
const data = await request({ method: 'DELETE', url: `/v9/projects/${idOrName}/env/${id}`, queryParams, ...requestConfig });
|
|
1823
|
-
return data;
|
|
1824
|
-
}
|
|
1825
|
-
/**
|
|
1826
|
-
* @description Edit a specific environment variable for a given project by passing the environment variable identifier and either passing the project `id` or `name` in the URL.
|
|
1827
|
-
* @summary Edit an environment variable
|
|
1828
|
-
* {@link /v9/projects/:idOrName/env/:id}
|
|
1829
|
-
*/
|
|
1830
|
-
export async function editProjectEnv({ pathParams: { idOrName, id }, queryParams, config = {} }) {
|
|
1831
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1832
|
-
if (!idOrName) {
|
|
1833
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1834
|
-
}
|
|
1835
|
-
if (!id) {
|
|
1836
|
-
throw new Error(`Missing required path parameter: id`);
|
|
1837
|
-
}
|
|
1838
|
-
const data = await request({
|
|
1839
|
-
method: 'PATCH',
|
|
1840
|
-
url: `/v9/projects/${idOrName}/env/${id}`,
|
|
1841
|
-
queryParams,
|
|
1842
|
-
...requestConfig,
|
|
1843
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1844
|
-
});
|
|
1845
|
-
return data;
|
|
1846
|
-
}
|
|
1847
|
-
/**
|
|
1848
|
-
* @description Get the Rolling Releases billing status for a project. The team level billing status is used to determine if the project can be configured for rolling releases.
|
|
1849
|
-
* @summary Get rolling release billing status
|
|
1850
|
-
* {@link /v1/projects/:idOrName/rolling-release/billing}
|
|
1851
|
-
*/
|
|
1852
|
-
export async function getRollingReleaseBillingStatus({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1853
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1854
|
-
if (!idOrName) {
|
|
1855
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1856
|
-
}
|
|
1857
|
-
const data = await request({ method: 'GET', url: `/v1/projects/${idOrName}/rolling-release/billing`, queryParams, ...requestConfig });
|
|
1858
|
-
return data;
|
|
1859
|
-
}
|
|
1860
|
-
/**
|
|
1861
|
-
* @description Get the Rolling Releases configuration for a project. The project-level config is simply a template that will be used for any future rolling release, and not the configuration for any active rolling release.
|
|
1862
|
-
* @summary Get rolling release configuration
|
|
1863
|
-
* {@link /v1/projects/:idOrName/rolling-release/config}
|
|
1864
|
-
*/
|
|
1865
|
-
export async function getRollingReleaseConfig({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1866
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1867
|
-
if (!idOrName) {
|
|
1868
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1869
|
-
}
|
|
1870
|
-
const data = await request({ method: 'GET', url: `/v1/projects/${idOrName}/rolling-release/config`, queryParams, ...requestConfig });
|
|
1871
|
-
return data;
|
|
1872
|
-
}
|
|
1873
|
-
/**
|
|
1874
|
-
* @description Disable Rolling Releases for a project means that future deployments will not undergo a rolling release. Changing the config never alters a rollout that's already in-flight—it only affects the next production deployment. If you want to also stop the current rollout, call this endpoint to disable the feature, and then call either the /complete or /abort endpoint.
|
|
1875
|
-
* @summary Delete rolling release configuration
|
|
1876
|
-
* {@link /v1/projects/:idOrName/rolling-release/config}
|
|
1877
|
-
*/
|
|
1878
|
-
export async function deleteRollingReleaseConfig({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1879
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1880
|
-
if (!idOrName) {
|
|
1881
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1882
|
-
}
|
|
1883
|
-
const data = await request({ method: 'DELETE', url: `/v1/projects/${idOrName}/rolling-release/config`, queryParams, ...requestConfig });
|
|
1884
|
-
return data;
|
|
1885
|
-
}
|
|
1886
|
-
/**
|
|
1887
|
-
* @description Update (or disable) Rolling Releases for a project. Changing the config never alters a rollout that's already in-flight. It only affects the next production deployment. This also applies to disabling Rolling Releases. If you want to also stop the current rollout, call this endpoint to disable the feature, and then call either the /complete or /abort endpoint. Note: Enabling Rolling Releases automatically enables skew protection on the project with the default value if it wasn't configured already.
|
|
1888
|
-
* @summary Update the rolling release settings for the project
|
|
1889
|
-
* {@link /v1/projects/:idOrName/rolling-release/config}
|
|
1890
|
-
*/
|
|
1891
|
-
export async function updateRollingReleaseConfig({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1892
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1893
|
-
if (!idOrName) {
|
|
1894
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1895
|
-
}
|
|
1896
|
-
const data = await request({ method: 'PATCH', url: `/v1/projects/${idOrName}/rolling-release/config`, queryParams, ...requestConfig });
|
|
1897
|
-
return data;
|
|
1898
|
-
}
|
|
1899
|
-
/**
|
|
1900
|
-
* @description Return the Rolling Release for a project, regardless of whether the rollout is active, aborted, or completed. If the feature is enabled but no deployment has occurred yet, null will be returned.
|
|
1901
|
-
* @summary Get the active rolling release information for a project
|
|
1902
|
-
* {@link /v1/projects/:idOrName/rolling-release}
|
|
1903
|
-
*/
|
|
1904
|
-
export async function getRollingRelease({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1905
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1906
|
-
if (!idOrName) {
|
|
1907
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1908
|
-
}
|
|
1909
|
-
const data = await request({ method: 'GET', url: `/v1/projects/${idOrName}/rolling-release`, queryParams, ...requestConfig });
|
|
1910
|
-
return data;
|
|
1911
|
-
}
|
|
1912
|
-
/**
|
|
1913
|
-
* @description Advance a rollout to the next stage. This is only needed when rolling releases is configured to require manual approval.
|
|
1914
|
-
* @summary Update the active rolling release to the next stage for a project
|
|
1915
|
-
* {@link /v1/projects/:idOrName/rolling-release/approve-stage}
|
|
1916
|
-
*/
|
|
1917
|
-
export async function approveRollingReleaseStage({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1918
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1919
|
-
if (!idOrName) {
|
|
1920
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1921
|
-
}
|
|
1922
|
-
const data = await request({
|
|
1923
|
-
method: 'POST',
|
|
1924
|
-
url: `/v1/projects/${idOrName}/rolling-release/approve-stage`,
|
|
1925
|
-
queryParams,
|
|
1926
|
-
...requestConfig,
|
|
1927
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1928
|
-
});
|
|
1929
|
-
return data;
|
|
1930
|
-
}
|
|
1931
|
-
/**
|
|
1932
|
-
* @description Force-complete a Rolling Release. The canary deployment will begin serving 100% of the traffic.
|
|
1933
|
-
* @summary Complete the rolling release for the project
|
|
1934
|
-
* {@link /v1/projects/:idOrName/rolling-release/complete}
|
|
1935
|
-
*/
|
|
1936
|
-
export async function completeRollingRelease({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1937
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1938
|
-
if (!idOrName) {
|
|
1939
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1940
|
-
}
|
|
1941
|
-
const data = await request({
|
|
1942
|
-
method: 'POST',
|
|
1943
|
-
url: `/v1/projects/${idOrName}/rolling-release/complete`,
|
|
1944
|
-
queryParams,
|
|
1945
|
-
...requestConfig,
|
|
1946
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1947
|
-
});
|
|
1948
|
-
return data;
|
|
1949
|
-
}
|
|
1950
|
-
/**
|
|
1951
|
-
* @description Initiates a project transfer request from one team to another. <br/> Returns a `code` that remains valid for 24 hours and can be used to accept the transfer request by another team using the `PUT /projects/transfer-request/:code` endpoint. <br/> Users can also accept the project transfer request using the claim URL: `https://vercel.com/claim-deployment?code=<code>&returnUrl=<returnUrl>`. <br/> The `code` parameter specifies the project transfer request code generated using this endpoint. <br/> The `returnUrl` parameter redirects users to a specific page of the application if the claim URL is invalid or expired.
|
|
1952
|
-
* @summary Create project transfer request
|
|
1953
|
-
* {@link /projects/:idOrName/transfer-request}
|
|
1954
|
-
*/
|
|
1955
|
-
export async function createProjectTransferRequest({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1956
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1957
|
-
if (!idOrName) {
|
|
1958
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1959
|
-
}
|
|
1960
|
-
const data = await request({
|
|
1961
|
-
method: 'POST',
|
|
1962
|
-
url: `/projects/${idOrName}/transfer-request`,
|
|
1963
|
-
queryParams,
|
|
1964
|
-
...requestConfig,
|
|
1965
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1966
|
-
});
|
|
1967
|
-
return data;
|
|
1968
|
-
}
|
|
1969
|
-
/**
|
|
1970
|
-
* @description Accept a project transfer request initated by another team. <br/> The `code` is generated using the `POST /projects/:idOrName/transfer-request` endpoint.
|
|
1971
|
-
* @summary Accept project transfer request
|
|
1972
|
-
* {@link /projects/transfer-request/:code}
|
|
1973
|
-
*/
|
|
1974
|
-
export async function acceptProjectTransferRequest({ pathParams: { code }, queryParams, config = {} }) {
|
|
1975
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1976
|
-
if (!code) {
|
|
1977
|
-
throw new Error(`Missing required path parameter: code`);
|
|
1978
|
-
}
|
|
1979
|
-
const data = await request({
|
|
1980
|
-
method: 'PUT',
|
|
1981
|
-
url: `/projects/transfer-request/${code}`,
|
|
1982
|
-
queryParams,
|
|
1983
|
-
...requestConfig,
|
|
1984
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
1985
|
-
});
|
|
1986
|
-
return data;
|
|
1987
|
-
}
|
|
1988
|
-
/**
|
|
1989
|
-
* @description Update the deployment protection automation bypass for a project
|
|
1990
|
-
* @summary Update Protection Bypass for Automation
|
|
1991
|
-
* {@link /v1/projects/:idOrName/protection-bypass}
|
|
1992
|
-
*/
|
|
1993
|
-
export async function updateProjectProtectionBypass({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
1994
|
-
const { client: request = client, ...requestConfig } = config;
|
|
1995
|
-
if (!idOrName) {
|
|
1996
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
1997
|
-
}
|
|
1998
|
-
const data = await request({
|
|
1999
|
-
method: 'PATCH',
|
|
2000
|
-
url: `/v1/projects/${idOrName}/protection-bypass`,
|
|
2001
|
-
queryParams,
|
|
2002
|
-
...requestConfig,
|
|
2003
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2004
|
-
});
|
|
2005
|
-
return data;
|
|
2006
|
-
}
|
|
2007
|
-
/**
|
|
2008
|
-
* @description Allows users to promote a deployment to production. Note: This does NOT rebuild the deployment. If you need that, then call create-deployments endpoint.
|
|
2009
|
-
* @summary Points all production domains for a project to the given deploy
|
|
2010
|
-
* {@link /v10/projects/:projectId/promote/:deploymentId}
|
|
2011
|
-
*/
|
|
2012
|
-
export async function requestPromote({ pathParams: { projectId, deploymentId }, queryParams, config = {} }) {
|
|
2013
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2014
|
-
if (!projectId) {
|
|
2015
|
-
throw new Error(`Missing required path parameter: projectId`);
|
|
2016
|
-
}
|
|
2017
|
-
if (!deploymentId) {
|
|
2018
|
-
throw new Error(`Missing required path parameter: deploymentId`);
|
|
2019
|
-
}
|
|
2020
|
-
const data = await request({ method: 'POST', url: `/v10/projects/${projectId}/promote/${deploymentId}`, queryParams, ...requestConfig });
|
|
2021
|
-
return data;
|
|
2022
|
-
}
|
|
2023
|
-
/**
|
|
2024
|
-
* @description Get a list of aliases related to the last promote request with their mapping status
|
|
2025
|
-
* @summary Gets a list of aliases with status for the current promote
|
|
2026
|
-
* {@link /v1/projects/:projectId/promote/aliases}
|
|
2027
|
-
*/
|
|
2028
|
-
export async function listPromoteAliases({ pathParams: { projectId }, queryParams, config = {} }) {
|
|
2029
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2030
|
-
if (!projectId) {
|
|
2031
|
-
throw new Error(`Missing required path parameter: projectId`);
|
|
2032
|
-
}
|
|
2033
|
-
const data = await request({ method: 'GET', url: `/v1/projects/${projectId}/promote/aliases`, queryParams, ...requestConfig });
|
|
2034
|
-
return data;
|
|
2035
|
-
}
|
|
2036
|
-
/**
|
|
2037
|
-
* @description Pause a project by passing its project `id` in the URL. If the project does not exist given the id then the request will fail with 400 status code. If the project disables auto assigning custom production domains and blocks the active Production Deployment then the request will return with 200 status code.
|
|
2038
|
-
* @summary Pause a project
|
|
2039
|
-
* {@link /v1/projects/:projectId/pause}
|
|
2040
|
-
*/
|
|
2041
|
-
export async function pauseProject({ pathParams: { projectId }, queryParams, config = {} }) {
|
|
2042
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2043
|
-
if (!projectId) {
|
|
2044
|
-
throw new Error(`Missing required path parameter: projectId`);
|
|
2045
|
-
}
|
|
2046
|
-
const data = await request({ method: 'POST', url: `/v1/projects/${projectId}/pause`, queryParams, ...requestConfig });
|
|
2047
|
-
return data;
|
|
2048
|
-
}
|
|
2049
|
-
/**
|
|
2050
|
-
* @description Unpause a project by passing its project `id` in the URL. If the project does not exist given the id then the request will fail with 400 status code. If the project enables auto assigning custom production domains and unblocks the active Production Deployment then the request will return with 200 status code.
|
|
2051
|
-
* @summary Unpause a project
|
|
2052
|
-
* {@link /v1/projects/:projectId/unpause}
|
|
2053
|
-
*/
|
|
2054
|
-
export async function unpauseProject({ pathParams: { projectId }, queryParams, config = {} }) {
|
|
2055
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2056
|
-
if (!projectId) {
|
|
2057
|
-
throw new Error(`Missing required path parameter: projectId`);
|
|
2058
|
-
}
|
|
2059
|
-
const data = await request({ method: 'POST', url: `/v1/projects/${projectId}/unpause`, queryParams, ...requestConfig });
|
|
2060
|
-
return data;
|
|
2061
|
-
}
|
|
2062
|
-
/**
|
|
2063
|
-
* @description Update the setting for determining if the project has Attack Challenge mode enabled.
|
|
2064
|
-
* @summary Update Attack Challenge mode
|
|
2065
|
-
* {@link /v1/security/attack-mode}
|
|
2066
|
-
*/
|
|
2067
|
-
export async function updateAttackChallengeMode({ queryParams, config = {} }) {
|
|
2068
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2069
|
-
const data = await request({
|
|
2070
|
-
method: 'POST',
|
|
2071
|
-
url: `/v1/security/attack-mode`,
|
|
2072
|
-
queryParams,
|
|
2073
|
-
...requestConfig,
|
|
2074
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2075
|
-
});
|
|
2076
|
-
return data;
|
|
2077
|
-
}
|
|
2078
|
-
/**
|
|
2079
|
-
* @description Set the firewall configuration to provided rules and settings. Creates or overwrite the existing firewall configuration.
|
|
2080
|
-
* @summary Put Firewall Configuration
|
|
2081
|
-
* {@link /v1/security/firewall/config}
|
|
2082
|
-
*/
|
|
2083
|
-
export async function putFirewallConfig({ queryParams, config = {} }) {
|
|
2084
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2085
|
-
const data = await request({
|
|
2086
|
-
method: 'PUT',
|
|
2087
|
-
url: `/v1/security/firewall/config`,
|
|
2088
|
-
queryParams,
|
|
2089
|
-
...requestConfig,
|
|
2090
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2091
|
-
});
|
|
2092
|
-
return data;
|
|
2093
|
-
}
|
|
2094
|
-
/**
|
|
2095
|
-
* @description Process updates to modify the existing firewall config for a project
|
|
2096
|
-
* @summary Update Firewall Configuration
|
|
2097
|
-
* {@link /v1/security/firewall/config}
|
|
2098
|
-
*/
|
|
2099
|
-
export async function updateFirewallConfig({ queryParams, config = {} }) {
|
|
2100
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2101
|
-
const data = await request({
|
|
2102
|
-
method: 'PATCH',
|
|
2103
|
-
url: `/v1/security/firewall/config`,
|
|
2104
|
-
queryParams,
|
|
2105
|
-
...requestConfig,
|
|
2106
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2107
|
-
});
|
|
2108
|
-
return data;
|
|
2109
|
-
}
|
|
2110
|
-
/**
|
|
2111
|
-
* @description Retrieve the specified firewall configuration for a project. The deployed configVersion will be `active`
|
|
2112
|
-
* @summary Read Firewall Configuration
|
|
2113
|
-
* {@link /v1/security/firewall/config/:configVersion}
|
|
2114
|
-
*/
|
|
2115
|
-
export async function getFirewallConfig({ pathParams: { configVersion }, queryParams, config = {} }) {
|
|
2116
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2117
|
-
if (!configVersion) {
|
|
2118
|
-
throw new Error(`Missing required path parameter: configVersion`);
|
|
2119
|
-
}
|
|
2120
|
-
const data = await request({ method: 'GET', url: `/v1/security/firewall/config/${configVersion}`, queryParams, ...requestConfig });
|
|
2121
|
-
return data;
|
|
2122
|
-
}
|
|
2123
|
-
/**
|
|
2124
|
-
* @description Retrieve active attack data within the last 24h window
|
|
2125
|
-
* @summary Read active attack data
|
|
2126
|
-
* {@link /v1/security/firewall/attack-status}
|
|
2127
|
-
*/
|
|
2128
|
-
export async function getActiveAttackStatus({ queryParams, config = {} }) {
|
|
2129
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2130
|
-
const data = await request({ method: 'GET', url: `/v1/security/firewall/attack-status`, queryParams, ...requestConfig });
|
|
2131
|
-
return data;
|
|
2132
|
-
}
|
|
2133
|
-
/**
|
|
2134
|
-
* @description Retrieve the system bypass rules configured for the specified project
|
|
2135
|
-
* @summary Read System Bypass
|
|
2136
|
-
* {@link /v1/security/firewall/bypass}
|
|
2137
|
-
*/
|
|
2138
|
-
export async function getBypassIp({ queryParams, config = {} }) {
|
|
2139
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2140
|
-
const data = await request({ method: 'GET', url: `/v1/security/firewall/bypass`, queryParams, ...requestConfig });
|
|
2141
|
-
return data;
|
|
2142
|
-
}
|
|
2143
|
-
/**
|
|
2144
|
-
* @description Create new system bypass rules
|
|
2145
|
-
* @summary Create System Bypass Rule
|
|
2146
|
-
* {@link /v1/security/firewall/bypass}
|
|
2147
|
-
*/
|
|
2148
|
-
export async function addBypassIp({ queryParams, config = {} }) {
|
|
2149
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2150
|
-
const data = await request({
|
|
2151
|
-
method: 'POST',
|
|
2152
|
-
url: `/v1/security/firewall/bypass`,
|
|
2153
|
-
queryParams,
|
|
2154
|
-
...requestConfig,
|
|
2155
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2156
|
-
});
|
|
2157
|
-
return data;
|
|
2158
|
-
}
|
|
2159
|
-
/**
|
|
2160
|
-
* @description Remove system bypass rules
|
|
2161
|
-
* @summary Remove System Bypass Rule
|
|
2162
|
-
* {@link /v1/security/firewall/bypass}
|
|
2163
|
-
*/
|
|
2164
|
-
export async function removeBypassIp({ queryParams, config = {} }) {
|
|
2165
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2166
|
-
const data = await request({
|
|
2167
|
-
method: 'DELETE',
|
|
2168
|
-
url: `/v1/security/firewall/bypass`,
|
|
2169
|
-
queryParams,
|
|
2170
|
-
...requestConfig,
|
|
2171
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2172
|
-
});
|
|
2173
|
-
return data;
|
|
2174
|
-
}
|
|
2175
|
-
/**
|
|
2176
|
-
* @description Get a paginated list of team members for the provided team.
|
|
2177
|
-
* @summary List team members
|
|
2178
|
-
* {@link /v3/teams/:teamId/members}
|
|
2179
|
-
*/
|
|
2180
|
-
export async function getTeamMembers({ pathParams: { teamId }, queryParams, config = {} }) {
|
|
2181
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2182
|
-
if (!teamId) {
|
|
2183
|
-
throw new Error(`Missing required path parameter: teamId`);
|
|
2184
|
-
}
|
|
2185
|
-
const data = await request({ method: 'GET', url: `/v3/teams/${teamId}/members`, queryParams, ...requestConfig });
|
|
2186
|
-
return data;
|
|
2187
|
-
}
|
|
2188
|
-
/**
|
|
2189
|
-
* @description Invite a user to join the team specified in the URL. The authenticated user needs to be an `OWNER` in order to successfully invoke this endpoint. The user can be specified with an email or an ID. If both email and ID are provided, ID will take priority.
|
|
2190
|
-
* @summary Invite a user
|
|
2191
|
-
* {@link /v1/teams/:teamId/members}
|
|
2192
|
-
*/
|
|
2193
|
-
export async function inviteUserToTeam({ pathParams: { teamId }, config = {} }) {
|
|
2194
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2195
|
-
if (!teamId) {
|
|
2196
|
-
throw new Error(`Missing required path parameter: teamId`);
|
|
2197
|
-
}
|
|
2198
|
-
const data = await request({
|
|
2199
|
-
method: 'POST',
|
|
2200
|
-
url: `/v1/teams/${teamId}/members`,
|
|
2201
|
-
...requestConfig,
|
|
2202
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2203
|
-
});
|
|
2204
|
-
return data;
|
|
2205
|
-
}
|
|
2206
|
-
/**
|
|
2207
|
-
* @description Request access to a team as a member. An owner has to approve the request. Only 10 users can request access to a team at the same time.
|
|
2208
|
-
* @summary Request access to a team
|
|
2209
|
-
* {@link /v1/teams/:teamId/request}
|
|
2210
|
-
*/
|
|
2211
|
-
export async function requestAccessToTeam({ pathParams: { teamId }, config = {} }) {
|
|
2212
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2213
|
-
if (!teamId) {
|
|
2214
|
-
throw new Error(`Missing required path parameter: teamId`);
|
|
2215
|
-
}
|
|
2216
|
-
const data = await request({
|
|
2217
|
-
method: 'POST',
|
|
2218
|
-
url: `/v1/teams/${teamId}/request`,
|
|
2219
|
-
...requestConfig,
|
|
2220
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2221
|
-
});
|
|
2222
|
-
return data;
|
|
2223
|
-
}
|
|
2224
|
-
/**
|
|
2225
|
-
* @description Check the status of a join request. It'll respond with a 404 if the request has been declined. If no `userId` path segment was provided, this endpoint will instead return the status of the authenticated user.
|
|
2226
|
-
* @summary Get access request status
|
|
2227
|
-
* {@link /v1/teams/:teamId/request/:userId}
|
|
2228
|
-
*/
|
|
2229
|
-
export async function getTeamAccessRequest({ pathParams: { userId, teamId }, config = {} }) {
|
|
2230
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2231
|
-
if (!userId) {
|
|
2232
|
-
throw new Error(`Missing required path parameter: userId`);
|
|
2233
|
-
}
|
|
2234
|
-
if (!teamId) {
|
|
2235
|
-
throw new Error(`Missing required path parameter: teamId`);
|
|
2236
|
-
}
|
|
2237
|
-
const data = await request({ method: 'GET', url: `/v1/teams/${teamId}/request/${userId}`, ...requestConfig });
|
|
2238
|
-
return data;
|
|
2239
|
-
}
|
|
2240
|
-
/**
|
|
2241
|
-
* @description Join a team with a provided invite code or team ID.
|
|
2242
|
-
* @summary Join a team
|
|
2243
|
-
* {@link /v1/teams/:teamId/members/teams/join}
|
|
2244
|
-
*/
|
|
2245
|
-
export async function joinTeam({ pathParams: { teamId }, config = {} }) {
|
|
2246
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2247
|
-
if (!teamId) {
|
|
2248
|
-
throw new Error(`Missing required path parameter: teamId`);
|
|
2249
|
-
}
|
|
2250
|
-
const data = await request({
|
|
2251
|
-
method: 'POST',
|
|
2252
|
-
url: `/v1/teams/${teamId}/members/teams/join`,
|
|
2253
|
-
...requestConfig,
|
|
2254
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2255
|
-
});
|
|
2256
|
-
return data;
|
|
2257
|
-
}
|
|
2258
|
-
/**
|
|
2259
|
-
* @description Update the membership of a Team Member on the Team specified by `teamId`, such as changing the _role_ of the member, or confirming a request to join the Team for an unconfirmed member. The authenticated user must be an `OWNER` of the Team.
|
|
2260
|
-
* @summary Update a Team Member
|
|
2261
|
-
* {@link /v1/teams/:teamId/members/:uid}
|
|
2262
|
-
*/
|
|
2263
|
-
export async function updateTeamMember({ pathParams: { uid, teamId }, config = {} }) {
|
|
2264
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2265
|
-
if (!uid) {
|
|
2266
|
-
throw new Error(`Missing required path parameter: uid`);
|
|
2267
|
-
}
|
|
2268
|
-
if (!teamId) {
|
|
2269
|
-
throw new Error(`Missing required path parameter: teamId`);
|
|
2270
|
-
}
|
|
2271
|
-
const data = await request({
|
|
2272
|
-
method: 'PATCH',
|
|
2273
|
-
url: `/v1/teams/${teamId}/members/${uid}`,
|
|
2274
|
-
...requestConfig,
|
|
2275
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2276
|
-
});
|
|
2277
|
-
return data;
|
|
2278
|
-
}
|
|
2279
|
-
/**
|
|
2280
|
-
* @description Remove a Team Member from the Team, or dismiss a user that requested access, or leave a team.
|
|
2281
|
-
* @summary Remove a Team Member
|
|
2282
|
-
* {@link /v1/teams/:teamId/members/:uid}
|
|
2283
|
-
*/
|
|
2284
|
-
export async function removeTeamMember({ pathParams: { uid, teamId }, queryParams, config = {} }) {
|
|
2285
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2286
|
-
if (!uid) {
|
|
2287
|
-
throw new Error(`Missing required path parameter: uid`);
|
|
2288
|
-
}
|
|
2289
|
-
if (!teamId) {
|
|
2290
|
-
throw new Error(`Missing required path parameter: teamId`);
|
|
2291
|
-
}
|
|
2292
|
-
const data = await request({ method: 'DELETE', url: `/v1/teams/${teamId}/members/${uid}`, queryParams, ...requestConfig });
|
|
2293
|
-
return data;
|
|
2294
|
-
}
|
|
2295
|
-
/**
|
|
2296
|
-
* @description Get information for the Team specified by the `teamId` parameter.
|
|
2297
|
-
* @summary Get a Team
|
|
2298
|
-
* {@link /v2/teams/:teamId}
|
|
2299
|
-
*/
|
|
2300
|
-
export async function getTeam({ pathParams: { teamId }, queryParams, config = {} }) {
|
|
2301
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2302
|
-
if (!teamId) {
|
|
2303
|
-
throw new Error(`Missing required path parameter: teamId`);
|
|
2304
|
-
}
|
|
2305
|
-
const data = await request({ method: 'GET', url: `/v2/teams/${teamId}`, queryParams, ...requestConfig });
|
|
2306
|
-
return data;
|
|
2307
|
-
}
|
|
2308
|
-
/**
|
|
2309
|
-
* @description Update the information of a Team specified by the `teamId` parameter. The request body should contain the information that will be updated on the Team.
|
|
2310
|
-
* @summary Update a Team
|
|
2311
|
-
* {@link /v2/teams/:teamId}
|
|
2312
|
-
*/
|
|
2313
|
-
export async function patchTeam({ pathParams: { teamId }, queryParams, config = {} }) {
|
|
2314
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2315
|
-
if (!teamId) {
|
|
2316
|
-
throw new Error(`Missing required path parameter: teamId`);
|
|
2317
|
-
}
|
|
2318
|
-
const data = await request({
|
|
2319
|
-
method: 'PATCH',
|
|
2320
|
-
url: `/v2/teams/${teamId}`,
|
|
2321
|
-
queryParams,
|
|
2322
|
-
...requestConfig,
|
|
2323
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2324
|
-
});
|
|
2325
|
-
return data;
|
|
2326
|
-
}
|
|
2327
|
-
/**
|
|
2328
|
-
* @description Get a paginated list of all the Teams the authenticated User is a member of.
|
|
2329
|
-
* @summary List all teams
|
|
2330
|
-
* {@link /v2/teams}
|
|
2331
|
-
*/
|
|
2332
|
-
export async function getTeams({ queryParams, config = {} }) {
|
|
2333
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2334
|
-
const data = await request({ method: 'GET', url: `/v2/teams`, queryParams, ...requestConfig });
|
|
2335
|
-
return data;
|
|
2336
|
-
}
|
|
2337
|
-
/**
|
|
2338
|
-
* @description Create a new Team under your account. You need to send a POST request with the desired Team slug, and optionally the Team name.
|
|
2339
|
-
* @summary Create a Team
|
|
2340
|
-
* {@link /v1/teams}
|
|
2341
|
-
*/
|
|
2342
|
-
export async function createTeam({ config = {} }) {
|
|
2343
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2344
|
-
const data = await request({
|
|
2345
|
-
method: 'POST',
|
|
2346
|
-
url: `/v1/teams`,
|
|
2347
|
-
...requestConfig,
|
|
2348
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2349
|
-
});
|
|
2350
|
-
return data;
|
|
2351
|
-
}
|
|
2352
|
-
/**
|
|
2353
|
-
* @description Delete a team under your account. You need to send a `DELETE` request with the desired team `id`. An optional array of reasons for deletion may also be sent.
|
|
2354
|
-
* @summary Delete a Team
|
|
2355
|
-
* {@link /v1/teams/:teamId}
|
|
2356
|
-
*/
|
|
2357
|
-
export async function deleteTeam({ pathParams: { teamId }, queryParams, config = {} }) {
|
|
2358
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2359
|
-
if (!teamId) {
|
|
2360
|
-
throw new Error(`Missing required path parameter: teamId`);
|
|
2361
|
-
}
|
|
2362
|
-
const data = await request({
|
|
2363
|
-
method: 'DELETE',
|
|
2364
|
-
url: `/v1/teams/${teamId}`,
|
|
2365
|
-
queryParams,
|
|
2366
|
-
...requestConfig,
|
|
2367
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2368
|
-
});
|
|
2369
|
-
return data;
|
|
2370
|
-
}
|
|
2371
|
-
/**
|
|
2372
|
-
* @description Delete an active Team invite code.
|
|
2373
|
-
* @summary Delete a Team invite code
|
|
2374
|
-
* {@link /v1/teams/:teamId/invites/:inviteId}
|
|
2375
|
-
*/
|
|
2376
|
-
export async function deleteTeamInviteCode({ pathParams: { inviteId, teamId }, config = {} }) {
|
|
2377
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2378
|
-
if (!inviteId) {
|
|
2379
|
-
throw new Error(`Missing required path parameter: inviteId`);
|
|
2380
|
-
}
|
|
2381
|
-
if (!teamId) {
|
|
2382
|
-
throw new Error(`Missing required path parameter: teamId`);
|
|
2383
|
-
}
|
|
2384
|
-
const data = await request({ method: 'DELETE', url: `/v1/teams/${teamId}/invites/${inviteId}`, ...requestConfig });
|
|
2385
|
-
return data;
|
|
2386
|
-
}
|
|
2387
|
-
/**
|
|
2388
|
-
* @description Before you create a deployment you need to upload the required files for that deployment. To do it, you need to first upload each file to this endpoint. Once that's completed, you can create a new deployment with the uploaded files. The file content must be placed inside the body of the request. In the case of a successful response you'll receive a status code 200 with an empty body.
|
|
2389
|
-
* @summary Upload Deployment Files
|
|
2390
|
-
* {@link /v2/files}
|
|
2391
|
-
*/
|
|
2392
|
-
export async function uploadFile({ queryParams, headers, config = {} }) {
|
|
2393
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2394
|
-
const data = await request({
|
|
2395
|
-
method: 'POST',
|
|
2396
|
-
url: `/v2/files`,
|
|
2397
|
-
queryParams,
|
|
2398
|
-
...requestConfig,
|
|
2399
|
-
headers: { 'Content-Type': 'applicationOctetStream', ...headers, ...requestConfig.headers }
|
|
2400
|
-
});
|
|
2401
|
-
return data;
|
|
2402
|
-
}
|
|
2403
|
-
/**
|
|
2404
|
-
* @description Retrieve a list of the current User's authentication tokens.
|
|
2405
|
-
* @summary List Auth Tokens
|
|
2406
|
-
* {@link /v5/user/tokens}
|
|
2407
|
-
*/
|
|
2408
|
-
export async function listAuthTokens({ config = {} }) {
|
|
2409
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2410
|
-
const data = await request({ method: 'GET', url: `/v5/user/tokens`, ...requestConfig });
|
|
2411
|
-
return data;
|
|
2412
|
-
}
|
|
2413
|
-
/**
|
|
2414
|
-
* @description Creates and returns a new authentication token for the currently authenticated User. The `bearerToken` property is only provided once, in the response body, so be sure to save it on the client for use with API requests.
|
|
2415
|
-
* @summary Create an Auth Token
|
|
2416
|
-
* {@link /v3/user/tokens}
|
|
2417
|
-
*/
|
|
2418
|
-
export async function createAuthToken({ queryParams, config = {} }) {
|
|
2419
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2420
|
-
const data = await request({
|
|
2421
|
-
method: 'POST',
|
|
2422
|
-
url: `/v3/user/tokens`,
|
|
2423
|
-
queryParams,
|
|
2424
|
-
...requestConfig,
|
|
2425
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2426
|
-
});
|
|
2427
|
-
return data;
|
|
2428
|
-
}
|
|
2429
|
-
/**
|
|
2430
|
-
* @description Retrieve metadata about an authentication token belonging to the currently authenticated User.
|
|
2431
|
-
* @summary Get Auth Token Metadata
|
|
2432
|
-
* {@link /v5/user/tokens/:tokenId}
|
|
2433
|
-
*/
|
|
2434
|
-
export async function getAuthToken({ pathParams: { tokenId }, config = {} }) {
|
|
2435
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2436
|
-
if (!tokenId) {
|
|
2437
|
-
throw new Error(`Missing required path parameter: tokenId`);
|
|
2438
|
-
}
|
|
2439
|
-
const data = await request({ method: 'GET', url: `/v5/user/tokens/${tokenId}`, ...requestConfig });
|
|
2440
|
-
return data;
|
|
2441
|
-
}
|
|
2442
|
-
/**
|
|
2443
|
-
* @description Invalidate an authentication token, such that it will no longer be valid for future HTTP requests.
|
|
2444
|
-
* @summary Delete an authentication token
|
|
2445
|
-
* {@link /v3/user/tokens/:tokenId}
|
|
2446
|
-
*/
|
|
2447
|
-
export async function deleteAuthToken({ pathParams: { tokenId }, config = {} }) {
|
|
2448
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2449
|
-
if (!tokenId) {
|
|
2450
|
-
throw new Error(`Missing required path parameter: tokenId`);
|
|
2451
|
-
}
|
|
2452
|
-
const data = await request({ method: 'DELETE', url: `/v3/user/tokens/${tokenId}`, ...requestConfig });
|
|
2453
|
-
return data;
|
|
2454
|
-
}
|
|
2455
|
-
/**
|
|
2456
|
-
* @description Retrieves information related to the currently authenticated User.
|
|
2457
|
-
* @summary Get the User
|
|
2458
|
-
* {@link /v2/user}
|
|
2459
|
-
*/
|
|
2460
|
-
export async function getAuthUser({ config = {} }) {
|
|
2461
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2462
|
-
const data = await request({ method: 'GET', url: `/v2/user`, ...requestConfig });
|
|
2463
|
-
return data;
|
|
2464
|
-
}
|
|
2465
|
-
/**
|
|
2466
|
-
* @description Initiates the deletion process for the currently authenticated User, by sending a deletion confirmation email. The email contains a link that the user needs to visit in order to proceed with the deletion process.
|
|
2467
|
-
* @summary Delete User Account
|
|
2468
|
-
* {@link /v1/user}
|
|
2469
|
-
*/
|
|
2470
|
-
export async function requestDelete({ config = {} }) {
|
|
2471
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2472
|
-
const data = await request({
|
|
2473
|
-
method: 'DELETE',
|
|
2474
|
-
url: `/v1/user`,
|
|
2475
|
-
...requestConfig,
|
|
2476
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2477
|
-
});
|
|
2478
|
-
return data;
|
|
2479
|
-
}
|
|
2480
|
-
/**
|
|
2481
|
-
* @description Creates a webhook
|
|
2482
|
-
* @summary Creates a webhook
|
|
2483
|
-
* {@link /v1/webhooks}
|
|
2484
|
-
*/
|
|
2485
|
-
export async function createWebhook({ queryParams, config = {} }) {
|
|
2486
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2487
|
-
const data = await request({
|
|
2488
|
-
method: 'POST',
|
|
2489
|
-
url: `/v1/webhooks`,
|
|
2490
|
-
queryParams,
|
|
2491
|
-
...requestConfig,
|
|
2492
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2493
|
-
});
|
|
2494
|
-
return data;
|
|
2495
|
-
}
|
|
2496
|
-
/**
|
|
2497
|
-
* @description Get a list of webhooks
|
|
2498
|
-
* @summary Get a list of webhooks
|
|
2499
|
-
* {@link /v1/webhooks}
|
|
2500
|
-
*/
|
|
2501
|
-
export async function getWebhooks({ queryParams, config = {} }) {
|
|
2502
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2503
|
-
const data = await request({ method: 'GET', url: `/v1/webhooks`, queryParams, ...requestConfig });
|
|
2504
|
-
return data;
|
|
2505
|
-
}
|
|
2506
|
-
/**
|
|
2507
|
-
* @description Get a webhook
|
|
2508
|
-
* @summary Get a webhook
|
|
2509
|
-
* {@link /v1/webhooks/:id}
|
|
2510
|
-
*/
|
|
2511
|
-
export async function getWebhook({ pathParams: { id }, queryParams, config = {} }) {
|
|
2512
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2513
|
-
if (!id) {
|
|
2514
|
-
throw new Error(`Missing required path parameter: id`);
|
|
2515
|
-
}
|
|
2516
|
-
const data = await request({ method: 'GET', url: `/v1/webhooks/${id}`, queryParams, ...requestConfig });
|
|
2517
|
-
return data;
|
|
2518
|
-
}
|
|
2519
|
-
/**
|
|
2520
|
-
* @description Deletes a webhook
|
|
2521
|
-
* @summary Deletes a webhook
|
|
2522
|
-
* {@link /v1/webhooks/:id}
|
|
2523
|
-
*/
|
|
2524
|
-
export async function deleteWebhook({ pathParams: { id }, queryParams, config = {} }) {
|
|
2525
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2526
|
-
if (!id) {
|
|
2527
|
-
throw new Error(`Missing required path parameter: id`);
|
|
2528
|
-
}
|
|
2529
|
-
const data = await request({ method: 'DELETE', url: `/v1/webhooks/${id}`, queryParams, ...requestConfig });
|
|
2530
|
-
return data;
|
|
2531
|
-
}
|
|
2532
|
-
/**
|
|
2533
|
-
* @description Retrieves all Aliases for the Deployment with the given ID. The authenticated user or team must own the deployment.
|
|
2534
|
-
* @summary List Deployment Aliases
|
|
2535
|
-
* {@link /v2/deployments/:id/aliases}
|
|
2536
|
-
*/
|
|
2537
|
-
export async function listDeploymentAliases({ pathParams: { id }, queryParams, config = {} }) {
|
|
2538
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2539
|
-
if (!id) {
|
|
2540
|
-
throw new Error(`Missing required path parameter: id`);
|
|
2541
|
-
}
|
|
2542
|
-
const data = await request({ method: 'GET', url: `/v2/deployments/${id}/aliases`, queryParams, ...requestConfig });
|
|
2543
|
-
return data;
|
|
2544
|
-
}
|
|
2545
|
-
/**
|
|
2546
|
-
* @description Creates a new alias for the deployment with the given deployment ID. The authenticated user or team must own this deployment. If the desired alias is already assigned to another deployment, then it will be removed from the old deployment and assigned to the new one.
|
|
2547
|
-
* @summary Assign an Alias
|
|
2548
|
-
* {@link /v2/deployments/:id/aliases}
|
|
2549
|
-
*/
|
|
2550
|
-
export async function assignAlias({ pathParams: { id }, queryParams, config = {} }) {
|
|
2551
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2552
|
-
if (!id) {
|
|
2553
|
-
throw new Error(`Missing required path parameter: id`);
|
|
2554
|
-
}
|
|
2555
|
-
const data = await request({
|
|
2556
|
-
method: 'POST',
|
|
2557
|
-
url: `/v2/deployments/${id}/aliases`,
|
|
2558
|
-
queryParams,
|
|
2559
|
-
...requestConfig,
|
|
2560
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2561
|
-
});
|
|
2562
|
-
return data;
|
|
2563
|
-
}
|
|
2564
|
-
/**
|
|
2565
|
-
* @description Retrieves a list of aliases for the authenticated User or Team. When `domain` is provided, only aliases for that domain will be returned. When `projectId` is provided, it will only return the given project aliases.
|
|
2566
|
-
* @summary List aliases
|
|
2567
|
-
* {@link /v4/aliases}
|
|
2568
|
-
*/
|
|
2569
|
-
export async function listAliases({ queryParams, config = {} }) {
|
|
2570
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2571
|
-
const data = await request({ method: 'GET', url: `/v4/aliases`, queryParams, ...requestConfig });
|
|
2572
|
-
return data;
|
|
2573
|
-
}
|
|
2574
|
-
/**
|
|
2575
|
-
* @description Retrieves an Alias for the given host name or alias ID.
|
|
2576
|
-
* @summary Get an Alias
|
|
2577
|
-
* {@link /v4/aliases/:idOrAlias}
|
|
2578
|
-
*/
|
|
2579
|
-
export async function getAlias({ pathParams: { idOrAlias }, queryParams, config = {} }) {
|
|
2580
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2581
|
-
if (!idOrAlias) {
|
|
2582
|
-
throw new Error(`Missing required path parameter: idOrAlias`);
|
|
2583
|
-
}
|
|
2584
|
-
const data = await request({ method: 'GET', url: `/v4/aliases/${idOrAlias}`, queryParams, ...requestConfig });
|
|
2585
|
-
return data;
|
|
2586
|
-
}
|
|
2587
|
-
/**
|
|
2588
|
-
* @description Delete an Alias with the specified ID.
|
|
2589
|
-
* @summary Delete an Alias
|
|
2590
|
-
* {@link /v2/aliases/:aliasId}
|
|
2591
|
-
*/
|
|
2592
|
-
export async function deleteAlias({ pathParams: { aliasId }, queryParams, config = {} }) {
|
|
2593
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2594
|
-
if (!aliasId) {
|
|
2595
|
-
throw new Error(`Missing required path parameter: aliasId`);
|
|
2596
|
-
}
|
|
2597
|
-
const data = await request({ method: 'DELETE', url: `/v2/aliases/${aliasId}`, queryParams, ...requestConfig });
|
|
2598
|
-
return data;
|
|
2599
|
-
}
|
|
2600
|
-
/**
|
|
2601
|
-
* @description Update the protection bypass for the alias or deployment URL (used for user access & comment access for deployments). Used as shareable links and user scoped access for Vercel Authentication and also to allow external (logged in) people to comment on previews for Preview Comments (next-live-mode).
|
|
2602
|
-
* @summary Update the protection bypass for a URL
|
|
2603
|
-
* {@link /aliases/:id/protection-bypass}
|
|
2604
|
-
*/
|
|
2605
|
-
export async function patchUrlProtectionBypass({ pathParams: { id }, queryParams, config = {} }) {
|
|
2606
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2607
|
-
if (!id) {
|
|
2608
|
-
throw new Error(`Missing required path parameter: id`);
|
|
2609
|
-
}
|
|
2610
|
-
const data = await request({
|
|
2611
|
-
method: 'PATCH',
|
|
2612
|
-
url: `/aliases/${id}/protection-bypass`,
|
|
2613
|
-
queryParams,
|
|
2614
|
-
...requestConfig,
|
|
2615
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2616
|
-
});
|
|
2617
|
-
return data;
|
|
2618
|
-
}
|
|
2619
|
-
/**
|
|
2620
|
-
* {@link /certs}
|
|
2621
|
-
*/
|
|
2622
|
-
export async function listCerts({ config = {} }) {
|
|
2623
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2624
|
-
const data = await request({ method: 'GET', url: `/certs`, ...requestConfig });
|
|
2625
|
-
return data;
|
|
2626
|
-
}
|
|
2627
|
-
/**
|
|
2628
|
-
* @description Get cert by id
|
|
2629
|
-
* @summary Get cert by id
|
|
2630
|
-
* {@link /v8/certs/:id}
|
|
2631
|
-
*/
|
|
2632
|
-
export async function getCertById({ pathParams: { id }, queryParams, config = {} }) {
|
|
2633
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2634
|
-
if (!id) {
|
|
2635
|
-
throw new Error(`Missing required path parameter: id`);
|
|
2636
|
-
}
|
|
2637
|
-
const data = await request({ method: 'GET', url: `/v8/certs/${id}`, queryParams, ...requestConfig });
|
|
2638
|
-
return data;
|
|
2639
|
-
}
|
|
2640
|
-
/**
|
|
2641
|
-
* @description Remove cert
|
|
2642
|
-
* @summary Remove cert
|
|
2643
|
-
* {@link /v8/certs/:id}
|
|
2644
|
-
*/
|
|
2645
|
-
export async function removeCert({ pathParams: { id }, queryParams, config = {} }) {
|
|
2646
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2647
|
-
if (!id) {
|
|
2648
|
-
throw new Error(`Missing required path parameter: id`);
|
|
2649
|
-
}
|
|
2650
|
-
const data = await request({ method: 'DELETE', url: `/v8/certs/${id}`, queryParams, ...requestConfig });
|
|
2651
|
-
return data;
|
|
2652
|
-
}
|
|
2653
|
-
/**
|
|
2654
|
-
* @description Issue a new cert
|
|
2655
|
-
* @summary Issue a new cert
|
|
2656
|
-
* {@link /v8/certs}
|
|
2657
|
-
*/
|
|
2658
|
-
export async function issueCert({ queryParams, config = {} }) {
|
|
2659
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2660
|
-
const data = await request({
|
|
2661
|
-
method: 'POST',
|
|
2662
|
-
url: `/v8/certs`,
|
|
2663
|
-
queryParams,
|
|
2664
|
-
...requestConfig,
|
|
2665
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2666
|
-
});
|
|
2667
|
-
return data;
|
|
2668
|
-
}
|
|
2669
|
-
/**
|
|
2670
|
-
* @description Upload a cert
|
|
2671
|
-
* @summary Upload a cert
|
|
2672
|
-
* {@link /v8/certs}
|
|
2673
|
-
*/
|
|
2674
|
-
export async function uploadCert({ queryParams, config = {} }) {
|
|
2675
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2676
|
-
const data = await request({
|
|
2677
|
-
method: 'PUT',
|
|
2678
|
-
url: `/v8/certs`,
|
|
2679
|
-
queryParams,
|
|
2680
|
-
...requestConfig,
|
|
2681
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2682
|
-
});
|
|
2683
|
-
return data;
|
|
2684
|
-
}
|
|
2685
|
-
/**
|
|
2686
|
-
* @description Allows to retrieve the file structure of the source code of a deployment by supplying the deployment unique identifier. If the deployment was created with the Vercel CLI or the API directly with the `files` key, it will have a file tree that can be retrievable.
|
|
2687
|
-
* @summary List Deployment Files
|
|
2688
|
-
* {@link /v6/deployments/:id/files}
|
|
2689
|
-
*/
|
|
2690
|
-
export async function listDeploymentFiles({ pathParams: { id }, queryParams, config = {} }) {
|
|
2691
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2692
|
-
if (!id) {
|
|
2693
|
-
throw new Error(`Missing required path parameter: id`);
|
|
2694
|
-
}
|
|
2695
|
-
const data = await request({ method: 'GET', url: `/v6/deployments/${id}/files`, queryParams, ...requestConfig });
|
|
2696
|
-
return data;
|
|
2697
|
-
}
|
|
2698
|
-
/**
|
|
2699
|
-
* @description Allows to retrieve the content of a file by supplying the file identifier and the deployment unique identifier. The response body will contain a JSON response containing the contents of the file encoded as base64.
|
|
2700
|
-
* @summary Get Deployment File Contents
|
|
2701
|
-
* {@link /v8/deployments/:id/files/:fileId}
|
|
2702
|
-
*/
|
|
2703
|
-
export async function getDeploymentFileContents({ pathParams: { id, fileId }, queryParams, config = {} }) {
|
|
2704
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2705
|
-
if (!id) {
|
|
2706
|
-
throw new Error(`Missing required path parameter: id`);
|
|
2707
|
-
}
|
|
2708
|
-
if (!fileId) {
|
|
2709
|
-
throw new Error(`Missing required path parameter: fileId`);
|
|
2710
|
-
}
|
|
2711
|
-
const data = await request({ method: 'GET', url: `/v8/deployments/${id}/files/${fileId}`, queryParams, ...requestConfig });
|
|
2712
|
-
return data;
|
|
2713
|
-
}
|
|
2714
|
-
/**
|
|
2715
|
-
* @description List deployments under the authenticated user or team. If a deployment hasn't finished uploading (is incomplete), the `url` property will have a value of `null`.
|
|
2716
|
-
* @summary List deployments
|
|
2717
|
-
* {@link /v6/deployments}
|
|
2718
|
-
*/
|
|
2719
|
-
export async function getDeployments({ queryParams, config = {} }) {
|
|
2720
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2721
|
-
const data = await request({ method: 'GET', url: `/v6/deployments`, queryParams, ...requestConfig });
|
|
2722
|
-
return data;
|
|
2723
|
-
}
|
|
2724
|
-
/**
|
|
2725
|
-
* @description This API allows you to delete a deployment, either by supplying its `id` in the URL or the `url` of the deployment as a query parameter. You can obtain the ID, for example, by listing all deployments.
|
|
2726
|
-
* @summary Delete a Deployment
|
|
2727
|
-
* {@link /v13/deployments/:id}
|
|
2728
|
-
*/
|
|
2729
|
-
export async function deleteDeployment({ pathParams: { id }, queryParams, config = {} }) {
|
|
2730
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2731
|
-
if (!id) {
|
|
2732
|
-
throw new Error(`Missing required path parameter: id`);
|
|
2733
|
-
}
|
|
2734
|
-
const data = await request({ method: 'DELETE', url: `/v13/deployments/${id}`, queryParams, ...requestConfig });
|
|
2735
|
-
return data;
|
|
2736
|
-
}
|
|
2737
|
-
/**
|
|
2738
|
-
* @description Retrieves the active Vercel secrets for the authenticated user or team. By default it returns 20 secrets. The rest can be retrieved using the pagination options. The body will contain an entry for each secret.
|
|
2739
|
-
* @summary List secrets
|
|
2740
|
-
* {@link /v3/secrets}
|
|
2741
|
-
*/
|
|
2742
|
-
export async function getSecrets({ queryParams, config = {} }) {
|
|
2743
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2744
|
-
const data = await request({ method: 'GET', url: `/v3/secrets`, queryParams, ...requestConfig });
|
|
2745
|
-
return data;
|
|
2746
|
-
}
|
|
2747
|
-
/**
|
|
2748
|
-
* @description Allows to create a new secret.
|
|
2749
|
-
* @summary Create a new secret
|
|
2750
|
-
* {@link /v2/secrets/:name}
|
|
2751
|
-
*/
|
|
2752
|
-
export async function createSecret({ pathParams: { name }, queryParams, config = {} }) {
|
|
2753
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2754
|
-
if (!name) {
|
|
2755
|
-
throw new Error(`Missing required path parameter: name`);
|
|
2756
|
-
}
|
|
2757
|
-
const data = await request({
|
|
2758
|
-
method: 'POST',
|
|
2759
|
-
url: `/v2/secrets/${name}`,
|
|
2760
|
-
queryParams,
|
|
2761
|
-
...requestConfig,
|
|
2762
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2763
|
-
});
|
|
2764
|
-
return data;
|
|
2765
|
-
}
|
|
2766
|
-
/**
|
|
2767
|
-
* @description Enables to edit the name of a secret. The name has to be unique to the user or team’s secrets.
|
|
2768
|
-
* @summary Change secret name
|
|
2769
|
-
* {@link /v2/secrets/:name}
|
|
2770
|
-
*/
|
|
2771
|
-
export async function renameSecret({ pathParams: { name }, queryParams, config = {} }) {
|
|
2772
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2773
|
-
if (!name) {
|
|
2774
|
-
throw new Error(`Missing required path parameter: name`);
|
|
2775
|
-
}
|
|
2776
|
-
const data = await request({
|
|
2777
|
-
method: 'PATCH',
|
|
2778
|
-
url: `/v2/secrets/${name}`,
|
|
2779
|
-
queryParams,
|
|
2780
|
-
...requestConfig,
|
|
2781
|
-
headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers }
|
|
2782
|
-
});
|
|
2783
|
-
return data;
|
|
2784
|
-
}
|
|
2785
|
-
/**
|
|
2786
|
-
* @description Retrieves the information for a specific secret by passing either the secret id or name in the URL.
|
|
2787
|
-
* @summary Get a single secret
|
|
2788
|
-
* {@link /v3/secrets/:idOrName}
|
|
2789
|
-
*/
|
|
2790
|
-
export async function getSecret({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
2791
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2792
|
-
if (!idOrName) {
|
|
2793
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
2794
|
-
}
|
|
2795
|
-
const data = await request({ method: 'GET', url: `/v3/secrets/${idOrName}`, queryParams, ...requestConfig });
|
|
2796
|
-
return data;
|
|
2797
|
-
}
|
|
2798
|
-
/**
|
|
2799
|
-
* @description This deletes the user or team’s secret defined in the URL.
|
|
2800
|
-
* @summary Delete a secret
|
|
2801
|
-
* {@link /v2/secrets/:idOrName}
|
|
2802
|
-
*/
|
|
2803
|
-
export async function deleteSecret({ pathParams: { idOrName }, queryParams, config = {} }) {
|
|
2804
|
-
const { client: request = client, ...requestConfig } = config;
|
|
2805
|
-
if (!idOrName) {
|
|
2806
|
-
throw new Error(`Missing required path parameter: idOrName`);
|
|
2807
|
-
}
|
|
2808
|
-
const data = await request({ method: 'DELETE', url: `/v2/secrets/${idOrName}`, queryParams, ...requestConfig });
|
|
2809
|
-
return data;
|
|
2810
|
-
}
|
|
2811
|
-
export const operationsByPath = {
|
|
2812
|
-
'GET /v1/access-groups/{idOrName}': readAccessGroup,
|
|
2813
|
-
'POST /v1/access-groups/{idOrName}': updateAccessGroup,
|
|
2814
|
-
'DELETE /v1/access-groups/{idOrName}': deleteAccessGroup,
|
|
2815
|
-
'GET /v1/access-groups/{idOrName}/members': listAccessGroupMembers,
|
|
2816
|
-
'GET /v1/access-groups': listAccessGroups,
|
|
2817
|
-
'POST /v1/access-groups': createAccessGroup,
|
|
2818
|
-
'GET /v1/access-groups/{idOrName}/projects': listAccessGroupProjects,
|
|
2819
|
-
'POST /v1/access-groups/{accessGroupIdOrName}/projects': createAccessGroupProject,
|
|
2820
|
-
'GET /v1/access-groups/{accessGroupIdOrName}/projects/{projectId}': readAccessGroupProject,
|
|
2821
|
-
'PATCH /v1/access-groups/{accessGroupIdOrName}/projects/{projectId}': updateAccessGroupProject,
|
|
2822
|
-
'DELETE /v1/access-groups/{accessGroupIdOrName}/projects/{projectId}': deleteAccessGroupProject,
|
|
2823
|
-
'POST /v8/artifacts/events': recordEvents,
|
|
2824
|
-
'GET /v8/artifacts/status': status,
|
|
2825
|
-
'PUT /v8/artifacts/{hash}': uploadArtifact,
|
|
2826
|
-
'GET /v8/artifacts/{hash}': downloadArtifact,
|
|
2827
|
-
'POST /v8/artifacts': artifactQuery,
|
|
2828
|
-
'POST /v1/deployments/{deploymentId}/checks': createCheck,
|
|
2829
|
-
'GET /v1/deployments/{deploymentId}/checks': getAllChecks,
|
|
2830
|
-
'GET /v1/deployments/{deploymentId}/checks/{checkId}': getCheck,
|
|
2831
|
-
'PATCH /v1/deployments/{deploymentId}/checks/{checkId}': updateCheck,
|
|
2832
|
-
'POST /v1/deployments/{deploymentId}/checks/{checkId}/rerequest': rerequestCheck,
|
|
2833
|
-
'DELETE /data-cache/purge-all': purgeAllDataCache,
|
|
2834
|
-
'PATCH /data-cache/billing-settings': updateDataCacheBillingSettings,
|
|
2835
|
-
'PATCH /v1/data-cache/projects/{projectId}': updateProjectDataCache,
|
|
2836
|
-
'GET /v3/deployments/{idOrUrl}/events': getDeploymentEvents,
|
|
2837
|
-
'PATCH /v1/deployments/{deploymentId}/integrations/{integrationConfigurationId}/resources/{resourceId}/actions/{action}': updateIntegrationDeploymentAction,
|
|
2838
|
-
'GET /v13/deployments/{idOrUrl}': getDeployment,
|
|
2839
|
-
'POST /v13/deployments': createDeployment,
|
|
2840
|
-
'PATCH /v12/deployments/{id}/cancel': cancelDeployment,
|
|
2841
|
-
'POST /v5/domains/buy': buyDomain,
|
|
2842
|
-
'GET /v4/domains/price': checkDomainPrice,
|
|
2843
|
-
'GET /v4/domains/status': checkDomainStatus,
|
|
2844
|
-
'GET /v4/domains/{domain}/records': getRecords,
|
|
2845
|
-
'POST /v2/domains/{domain}/records': createRecord,
|
|
2846
|
-
'PATCH /v1/domains/records/{recordId}': updateRecord,
|
|
2847
|
-
'DELETE /v2/domains/{domain}/records/{recordId}': removeRecord,
|
|
2848
|
-
'GET /v1/domains/{domain}/registry': getDomainTransfer,
|
|
2849
|
-
'GET /v6/domains/{domain}/config': getDomainConfig,
|
|
2850
|
-
'GET /v5/domains/{domain}': getDomain,
|
|
2851
|
-
'GET /v5/domains': getDomains,
|
|
2852
|
-
'POST /v7/domains': createOrTransferDomain,
|
|
2853
|
-
'PATCH /v3/domains/{domain}': patchDomain,
|
|
2854
|
-
'DELETE /v6/domains/{domain}': deleteDomain,
|
|
2855
|
-
'GET /v1/edge-config': getEdgeConfigs,
|
|
2856
|
-
'POST /v1/edge-config': createEdgeConfig,
|
|
2857
|
-
'GET /v1/edge-config/{edgeConfigId}': getEdgeConfig,
|
|
2858
|
-
'PUT /v1/edge-config/{edgeConfigId}': updateEdgeConfig,
|
|
2859
|
-
'DELETE /v1/edge-config/{edgeConfigId}': deleteEdgeConfig,
|
|
2860
|
-
'GET /v1/edge-config/{edgeConfigId}/items': getEdgeConfigItems,
|
|
2861
|
-
'PATCH /v1/edge-config/{edgeConfigId}/items': patchEdgeConfigItems,
|
|
2862
|
-
'GET /v1/edge-config/{edgeConfigId}/schema': getEdgeConfigSchema,
|
|
2863
|
-
'POST /v1/edge-config/{edgeConfigId}/schema': patchEdgeConfigSchema,
|
|
2864
|
-
'DELETE /v1/edge-config/{edgeConfigId}/schema': deleteEdgeConfigSchema,
|
|
2865
|
-
'GET /v1/edge-config/{edgeConfigId}/item/{edgeConfigItemKey}': getEdgeConfigItem,
|
|
2866
|
-
'GET /v1/edge-config/{edgeConfigId}/tokens': getEdgeConfigTokens,
|
|
2867
|
-
'DELETE /v1/edge-config/{edgeConfigId}/tokens': deleteEdgeConfigTokens,
|
|
2868
|
-
'GET /v1/edge-config/{edgeConfigId}/token/{token}': getEdgeConfigToken,
|
|
2869
|
-
'POST /v1/edge-config/{edgeConfigId}/token': createEdgeConfigToken,
|
|
2870
|
-
'GET /v1/edge-config/{edgeConfigId}/backups/{edgeConfigBackupVersionId}': getEdgeConfigBackup,
|
|
2871
|
-
'GET /v1/edge-config/{edgeConfigId}/backups': getEdgeConfigBackups,
|
|
2872
|
-
'GET /v3/events': listUserEvents,
|
|
2873
|
-
'GET /v1/installations/{integrationConfigurationId}/account': getAccountInfo,
|
|
2874
|
-
'GET /v1/installations/{integrationConfigurationId}/member/{memberId}': getMember,
|
|
2875
|
-
'POST /v1/installations/{integrationConfigurationId}/events': createEvent,
|
|
2876
|
-
'GET /v1/installations/{integrationConfigurationId}/resources': getIntegrationResources,
|
|
2877
|
-
'GET /v1/installations/{integrationConfigurationId}/resources/{resourceId}': getIntegrationResource,
|
|
2878
|
-
'DELETE /v1/installations/{integrationConfigurationId}/resources/{resourceId}': deleteIntegrationResource,
|
|
2879
|
-
'PUT /v1/installations/{integrationConfigurationId}/resources/{resourceId}': importResource,
|
|
2880
|
-
'POST /v1/installations/{integrationConfigurationId}/billing': submitBillingData,
|
|
2881
|
-
'POST /v1/installations/{integrationConfigurationId}/billing/invoices': submitInvoice,
|
|
2882
|
-
'GET /v1/installations/{integrationConfigurationId}/billing/invoices/{invoiceId}': getInvoice,
|
|
2883
|
-
'POST /v1/installations/{integrationConfigurationId}/billing/invoices/{invoiceId}/actions': updateInvoice,
|
|
2884
|
-
'POST /v1/installations/{integrationConfigurationId}/billing/balance': submitPrepaymentBalances,
|
|
2885
|
-
'PUT /v1/installations/{integrationConfigurationId}/products/{integrationProductIdOrSlug}/resources/{resourceId}/secrets': updateResourceSecrets,
|
|
2886
|
-
'PUT /v1/installations/{integrationConfigurationId}/resources/{resourceId}/secrets': updateResourceSecretsById,
|
|
2887
|
-
'GET /v1/integrations/configurations': getConfigurations,
|
|
2888
|
-
'GET /v1/integrations/configuration/{id}': getConfiguration,
|
|
2889
|
-
'DELETE /v1/integrations/configuration/{id}': deleteConfiguration,
|
|
2890
|
-
'POST /v1/integrations/sso/token': exchangeSsoToken,
|
|
2891
|
-
'GET /v2/integrations/log-drains': getIntegrationLogDrains,
|
|
2892
|
-
'POST /v2/integrations/log-drains': createLogDrain,
|
|
2893
|
-
'DELETE /v1/integrations/log-drains/{id}': deleteIntegrationLogDrain,
|
|
2894
|
-
'GET /v1/projects/{projectId}/deployments/{deploymentId}/runtime-logs': getRuntimeLogs,
|
|
2895
|
-
'POST /v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/items': createExperimentationItem,
|
|
2896
|
-
'PATCH /v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/items/{itemId}': updateExperimentationItem,
|
|
2897
|
-
'DELETE /v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/items/{itemId}': deleteExperimentationItem,
|
|
2898
|
-
'PUT /v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/edge-config': updateExperimentationEdgeConfig,
|
|
2899
|
-
'GET /v1/projects/{idOrName}/members': getProjectMembers,
|
|
2900
|
-
'POST /v1/projects/{idOrName}/members': addProjectMember,
|
|
2901
|
-
'DELETE /v1/projects/{idOrName}/members/{uid}': removeProjectMember,
|
|
2902
|
-
'GET /v10/projects': getProjects,
|
|
2903
|
-
'POST /v11/projects': createProject,
|
|
2904
|
-
'GET /v9/projects/{idOrName}': getProject,
|
|
2905
|
-
'PATCH /v9/projects/{idOrName}': updateProject,
|
|
2906
|
-
'DELETE /v9/projects/{idOrName}': deleteProject,
|
|
2907
|
-
'POST /v9/projects/{idOrName}/custom-environments': createCustomEnvironment,
|
|
2908
|
-
'GET /v9/projects/{idOrName}/custom-environments': listCustomEnvironments,
|
|
2909
|
-
'GET /v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}': getCustomEnvironment,
|
|
2910
|
-
'PATCH /v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}': updateCustomEnvironment,
|
|
2911
|
-
'DELETE /v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}': removeCustomEnvironment,
|
|
2912
|
-
'GET /v9/projects/{idOrName}/domains': getProjectDomains,
|
|
2913
|
-
'GET /v9/projects/{idOrName}/domains/{domain}': getProjectDomain,
|
|
2914
|
-
'PATCH /v9/projects/{idOrName}/domains/{domain}': updateProjectDomain,
|
|
2915
|
-
'DELETE /v9/projects/{idOrName}/domains/{domain}': removeProjectDomain,
|
|
2916
|
-
'POST /v10/projects/{idOrName}/domains': addProjectDomain,
|
|
2917
|
-
'POST /v1/projects/{idOrName}/domains/{domain}/move': moveProjectDomain,
|
|
2918
|
-
'POST /v9/projects/{idOrName}/domains/{domain}/verify': verifyProjectDomain,
|
|
2919
|
-
'GET /v10/projects/{idOrName}/env': filterProjectEnvs,
|
|
2920
|
-
'POST /v10/projects/{idOrName}/env': createProjectEnv,
|
|
2921
|
-
'GET /v1/projects/{idOrName}/env/{id}': getProjectEnv,
|
|
2922
|
-
'DELETE /v9/projects/{idOrName}/env/{id}': removeProjectEnv,
|
|
2923
|
-
'PATCH /v9/projects/{idOrName}/env/{id}': editProjectEnv,
|
|
2924
|
-
'GET /v1/projects/{idOrName}/rolling-release/billing': getRollingReleaseBillingStatus,
|
|
2925
|
-
'GET /v1/projects/{idOrName}/rolling-release/config': getRollingReleaseConfig,
|
|
2926
|
-
'DELETE /v1/projects/{idOrName}/rolling-release/config': deleteRollingReleaseConfig,
|
|
2927
|
-
'PATCH /v1/projects/{idOrName}/rolling-release/config': updateRollingReleaseConfig,
|
|
2928
|
-
'GET /v1/projects/{idOrName}/rolling-release': getRollingRelease,
|
|
2929
|
-
'POST /v1/projects/{idOrName}/rolling-release/approve-stage': approveRollingReleaseStage,
|
|
2930
|
-
'POST /v1/projects/{idOrName}/rolling-release/complete': completeRollingRelease,
|
|
2931
|
-
'POST /projects/{idOrName}/transfer-request': createProjectTransferRequest,
|
|
2932
|
-
'PUT /projects/transfer-request/{code}': acceptProjectTransferRequest,
|
|
2933
|
-
'PATCH /v1/projects/{idOrName}/protection-bypass': updateProjectProtectionBypass,
|
|
2934
|
-
'POST /v10/projects/{projectId}/promote/{deploymentId}': requestPromote,
|
|
2935
|
-
'GET /v1/projects/{projectId}/promote/aliases': listPromoteAliases,
|
|
2936
|
-
'POST /v1/projects/{projectId}/pause': pauseProject,
|
|
2937
|
-
'POST /v1/projects/{projectId}/unpause': unpauseProject,
|
|
2938
|
-
'POST /v1/security/attack-mode': updateAttackChallengeMode,
|
|
2939
|
-
'PUT /v1/security/firewall/config': putFirewallConfig,
|
|
2940
|
-
'PATCH /v1/security/firewall/config': updateFirewallConfig,
|
|
2941
|
-
'GET /v1/security/firewall/config/{configVersion}': getFirewallConfig,
|
|
2942
|
-
'GET /v1/security/firewall/attack-status': getActiveAttackStatus,
|
|
2943
|
-
'GET /v1/security/firewall/bypass': getBypassIp,
|
|
2944
|
-
'POST /v1/security/firewall/bypass': addBypassIp,
|
|
2945
|
-
'DELETE /v1/security/firewall/bypass': removeBypassIp,
|
|
2946
|
-
'GET /v3/teams/{teamId}/members': getTeamMembers,
|
|
2947
|
-
'POST /v1/teams/{teamId}/members': inviteUserToTeam,
|
|
2948
|
-
'POST /v1/teams/{teamId}/request': requestAccessToTeam,
|
|
2949
|
-
'GET /v1/teams/{teamId}/request/{userId}': getTeamAccessRequest,
|
|
2950
|
-
'POST /v1/teams/{teamId}/members/teams/join': joinTeam,
|
|
2951
|
-
'PATCH /v1/teams/{teamId}/members/{uid}': updateTeamMember,
|
|
2952
|
-
'DELETE /v1/teams/{teamId}/members/{uid}': removeTeamMember,
|
|
2953
|
-
'GET /v2/teams/{teamId}': getTeam,
|
|
2954
|
-
'PATCH /v2/teams/{teamId}': patchTeam,
|
|
2955
|
-
'GET /v2/teams': getTeams,
|
|
2956
|
-
'POST /v1/teams': createTeam,
|
|
2957
|
-
'DELETE /v1/teams/{teamId}': deleteTeam,
|
|
2958
|
-
'DELETE /v1/teams/{teamId}/invites/{inviteId}': deleteTeamInviteCode,
|
|
2959
|
-
'POST /v2/files': uploadFile,
|
|
2960
|
-
'GET /v5/user/tokens': listAuthTokens,
|
|
2961
|
-
'POST /v3/user/tokens': createAuthToken,
|
|
2962
|
-
'GET /v5/user/tokens/{tokenId}': getAuthToken,
|
|
2963
|
-
'DELETE /v3/user/tokens/{tokenId}': deleteAuthToken,
|
|
2964
|
-
'GET /v2/user': getAuthUser,
|
|
2965
|
-
'DELETE /v1/user': requestDelete,
|
|
2966
|
-
'POST /v1/webhooks': createWebhook,
|
|
2967
|
-
'GET /v1/webhooks': getWebhooks,
|
|
2968
|
-
'GET /v1/webhooks/{id}': getWebhook,
|
|
2969
|
-
'DELETE /v1/webhooks/{id}': deleteWebhook,
|
|
2970
|
-
'GET /v2/deployments/{id}/aliases': listDeploymentAliases,
|
|
2971
|
-
'POST /v2/deployments/{id}/aliases': assignAlias,
|
|
2972
|
-
'GET /v4/aliases': listAliases,
|
|
2973
|
-
'GET /v4/aliases/{idOrAlias}': getAlias,
|
|
2974
|
-
'DELETE /v2/aliases/{aliasId}': deleteAlias,
|
|
2975
|
-
'PATCH /aliases/{id}/protection-bypass': patchUrlProtectionBypass,
|
|
2976
|
-
'GET /certs': listCerts,
|
|
2977
|
-
'GET /v8/certs/{id}': getCertById,
|
|
2978
|
-
'DELETE /v8/certs/{id}': removeCert,
|
|
2979
|
-
'POST /v8/certs': issueCert,
|
|
2980
|
-
'PUT /v8/certs': uploadCert,
|
|
2981
|
-
'GET /v6/deployments/{id}/files': listDeploymentFiles,
|
|
2982
|
-
'GET /v8/deployments/{id}/files/{fileId}': getDeploymentFileContents,
|
|
2983
|
-
'GET /v6/deployments': getDeployments,
|
|
2984
|
-
'DELETE /v13/deployments/{id}': deleteDeployment,
|
|
2985
|
-
'GET /v3/secrets': getSecrets,
|
|
2986
|
-
'POST /v2/secrets/{name}': createSecret,
|
|
2987
|
-
'PATCH /v2/secrets/{name}': renameSecret,
|
|
2988
|
-
'GET /v3/secrets/{idOrName}': getSecret,
|
|
2989
|
-
'DELETE /v2/secrets/{idOrName}': deleteSecret
|
|
2990
|
-
};
|
|
2991
|
-
export const operationsByTag = {
|
|
2992
|
-
accessGroups: {
|
|
2993
|
-
readAccessGroup,
|
|
2994
|
-
updateAccessGroup,
|
|
2995
|
-
deleteAccessGroup,
|
|
2996
|
-
listAccessGroupMembers,
|
|
2997
|
-
listAccessGroups,
|
|
2998
|
-
createAccessGroup,
|
|
2999
|
-
listAccessGroupProjects,
|
|
3000
|
-
createAccessGroupProject,
|
|
3001
|
-
readAccessGroupProject,
|
|
3002
|
-
updateAccessGroupProject,
|
|
3003
|
-
deleteAccessGroupProject
|
|
3004
|
-
},
|
|
3005
|
-
artifacts: {
|
|
3006
|
-
recordEvents,
|
|
3007
|
-
status,
|
|
3008
|
-
uploadArtifact,
|
|
3009
|
-
downloadArtifact,
|
|
3010
|
-
artifactQuery
|
|
3011
|
-
},
|
|
3012
|
-
checks: {
|
|
3013
|
-
createCheck,
|
|
3014
|
-
getAllChecks,
|
|
3015
|
-
getCheck,
|
|
3016
|
-
updateCheck,
|
|
3017
|
-
rerequestCheck
|
|
3018
|
-
},
|
|
3019
|
-
projects: {
|
|
3020
|
-
updateProjectDataCache,
|
|
3021
|
-
getProjects,
|
|
3022
|
-
createProject,
|
|
3023
|
-
getProject,
|
|
3024
|
-
updateProject,
|
|
3025
|
-
deleteProject,
|
|
3026
|
-
getProjectDomains,
|
|
3027
|
-
getProjectDomain,
|
|
3028
|
-
updateProjectDomain,
|
|
3029
|
-
removeProjectDomain,
|
|
3030
|
-
addProjectDomain,
|
|
3031
|
-
moveProjectDomain,
|
|
3032
|
-
verifyProjectDomain,
|
|
3033
|
-
filterProjectEnvs,
|
|
3034
|
-
createProjectEnv,
|
|
3035
|
-
getProjectEnv,
|
|
3036
|
-
removeProjectEnv,
|
|
3037
|
-
editProjectEnv,
|
|
3038
|
-
createProjectTransferRequest,
|
|
3039
|
-
acceptProjectTransferRequest,
|
|
3040
|
-
updateProjectProtectionBypass,
|
|
3041
|
-
requestPromote,
|
|
3042
|
-
listPromoteAliases,
|
|
3043
|
-
pauseProject,
|
|
3044
|
-
unpauseProject
|
|
3045
|
-
},
|
|
3046
|
-
deployments: {
|
|
3047
|
-
getDeploymentEvents,
|
|
3048
|
-
updateIntegrationDeploymentAction,
|
|
3049
|
-
getDeployment,
|
|
3050
|
-
createDeployment,
|
|
3051
|
-
cancelDeployment,
|
|
3052
|
-
uploadFile,
|
|
3053
|
-
listDeploymentFiles,
|
|
3054
|
-
getDeploymentFileContents,
|
|
3055
|
-
getDeployments,
|
|
3056
|
-
deleteDeployment
|
|
3057
|
-
},
|
|
3058
|
-
integrations: {
|
|
3059
|
-
updateIntegrationDeploymentAction,
|
|
3060
|
-
getConfigurations,
|
|
3061
|
-
getConfiguration,
|
|
3062
|
-
deleteConfiguration
|
|
3063
|
-
},
|
|
3064
|
-
domains: {
|
|
3065
|
-
buyDomain,
|
|
3066
|
-
checkDomainPrice,
|
|
3067
|
-
checkDomainStatus,
|
|
3068
|
-
getDomainTransfer,
|
|
3069
|
-
getDomainConfig,
|
|
3070
|
-
getDomain,
|
|
3071
|
-
getDomains,
|
|
3072
|
-
createOrTransferDomain,
|
|
3073
|
-
patchDomain,
|
|
3074
|
-
deleteDomain
|
|
3075
|
-
},
|
|
3076
|
-
dns: {
|
|
3077
|
-
getRecords,
|
|
3078
|
-
createRecord,
|
|
3079
|
-
updateRecord,
|
|
3080
|
-
removeRecord
|
|
3081
|
-
},
|
|
3082
|
-
edgeConfig: {
|
|
3083
|
-
getEdgeConfigs,
|
|
3084
|
-
createEdgeConfig,
|
|
3085
|
-
getEdgeConfig,
|
|
3086
|
-
updateEdgeConfig,
|
|
3087
|
-
deleteEdgeConfig,
|
|
3088
|
-
getEdgeConfigItems,
|
|
3089
|
-
patchEdgeConfigItems,
|
|
3090
|
-
getEdgeConfigSchema,
|
|
3091
|
-
patchEdgeConfigSchema,
|
|
3092
|
-
deleteEdgeConfigSchema,
|
|
3093
|
-
getEdgeConfigItem,
|
|
3094
|
-
getEdgeConfigTokens,
|
|
3095
|
-
deleteEdgeConfigTokens,
|
|
3096
|
-
getEdgeConfigToken,
|
|
3097
|
-
createEdgeConfigToken,
|
|
3098
|
-
getEdgeConfigBackup,
|
|
3099
|
-
getEdgeConfigBackups
|
|
3100
|
-
},
|
|
3101
|
-
user: {
|
|
3102
|
-
listUserEvents,
|
|
3103
|
-
getAuthUser,
|
|
3104
|
-
requestDelete
|
|
3105
|
-
},
|
|
3106
|
-
marketplace: {
|
|
3107
|
-
getAccountInfo,
|
|
3108
|
-
getMember,
|
|
3109
|
-
createEvent,
|
|
3110
|
-
getIntegrationResources,
|
|
3111
|
-
getIntegrationResource,
|
|
3112
|
-
deleteIntegrationResource,
|
|
3113
|
-
importResource,
|
|
3114
|
-
submitBillingData,
|
|
3115
|
-
submitInvoice,
|
|
3116
|
-
getInvoice,
|
|
3117
|
-
updateInvoice,
|
|
3118
|
-
submitPrepaymentBalances,
|
|
3119
|
-
updateResourceSecrets,
|
|
3120
|
-
updateResourceSecretsById,
|
|
3121
|
-
exchangeSsoToken,
|
|
3122
|
-
createExperimentationItem,
|
|
3123
|
-
updateExperimentationItem,
|
|
3124
|
-
deleteExperimentationItem,
|
|
3125
|
-
updateExperimentationEdgeConfig
|
|
3126
|
-
},
|
|
3127
|
-
authentication: {
|
|
3128
|
-
exchangeSsoToken,
|
|
3129
|
-
listAuthTokens,
|
|
3130
|
-
createAuthToken,
|
|
3131
|
-
getAuthToken,
|
|
3132
|
-
deleteAuthToken
|
|
3133
|
-
},
|
|
3134
|
-
logdrains: {
|
|
3135
|
-
getIntegrationLogDrains,
|
|
3136
|
-
createLogDrain,
|
|
3137
|
-
deleteIntegrationLogDrain
|
|
3138
|
-
},
|
|
3139
|
-
logs: {
|
|
3140
|
-
getRuntimeLogs
|
|
3141
|
-
},
|
|
3142
|
-
projectmembers: {
|
|
3143
|
-
getProjectMembers,
|
|
3144
|
-
addProjectMember,
|
|
3145
|
-
removeProjectMember
|
|
3146
|
-
},
|
|
3147
|
-
environment: {
|
|
3148
|
-
createCustomEnvironment,
|
|
3149
|
-
listCustomEnvironments,
|
|
3150
|
-
getCustomEnvironment,
|
|
3151
|
-
updateCustomEnvironment,
|
|
3152
|
-
removeCustomEnvironment
|
|
3153
|
-
},
|
|
3154
|
-
rollingRelease: {
|
|
3155
|
-
getRollingReleaseBillingStatus,
|
|
3156
|
-
getRollingReleaseConfig,
|
|
3157
|
-
deleteRollingReleaseConfig,
|
|
3158
|
-
updateRollingReleaseConfig,
|
|
3159
|
-
getRollingRelease,
|
|
3160
|
-
approveRollingReleaseStage,
|
|
3161
|
-
completeRollingRelease
|
|
3162
|
-
},
|
|
3163
|
-
security: {
|
|
3164
|
-
updateAttackChallengeMode,
|
|
3165
|
-
putFirewallConfig,
|
|
3166
|
-
updateFirewallConfig,
|
|
3167
|
-
getFirewallConfig,
|
|
3168
|
-
getActiveAttackStatus,
|
|
3169
|
-
getBypassIp,
|
|
3170
|
-
addBypassIp,
|
|
3171
|
-
removeBypassIp
|
|
3172
|
-
},
|
|
3173
|
-
teams: {
|
|
3174
|
-
getTeamMembers,
|
|
3175
|
-
inviteUserToTeam,
|
|
3176
|
-
requestAccessToTeam,
|
|
3177
|
-
getTeamAccessRequest,
|
|
3178
|
-
joinTeam,
|
|
3179
|
-
updateTeamMember,
|
|
3180
|
-
removeTeamMember,
|
|
3181
|
-
getTeam,
|
|
3182
|
-
patchTeam,
|
|
3183
|
-
getTeams,
|
|
3184
|
-
createTeam,
|
|
3185
|
-
deleteTeam,
|
|
3186
|
-
deleteTeamInviteCode
|
|
3187
|
-
},
|
|
3188
|
-
webhooks: {
|
|
3189
|
-
createWebhook,
|
|
3190
|
-
getWebhooks,
|
|
3191
|
-
getWebhook,
|
|
3192
|
-
deleteWebhook
|
|
3193
|
-
},
|
|
3194
|
-
aliases: {
|
|
3195
|
-
listDeploymentAliases,
|
|
3196
|
-
assignAlias,
|
|
3197
|
-
listAliases,
|
|
3198
|
-
getAlias,
|
|
3199
|
-
deleteAlias,
|
|
3200
|
-
patchUrlProtectionBypass
|
|
3201
|
-
},
|
|
3202
|
-
certs: {
|
|
3203
|
-
getCertById,
|
|
3204
|
-
removeCert,
|
|
3205
|
-
issueCert,
|
|
3206
|
-
uploadCert
|
|
3207
|
-
},
|
|
3208
|
-
secrets: {
|
|
3209
|
-
getSecrets,
|
|
3210
|
-
createSecret,
|
|
3211
|
-
renameSecret,
|
|
3212
|
-
getSecret,
|
|
3213
|
-
deleteSecret
|
|
3214
|
-
}
|
|
3215
|
-
};
|
|
3216
|
-
export const tagDictionary = {
|
|
3217
|
-
accessGroups: {
|
|
3218
|
-
GET: [
|
|
3219
|
-
'readAccessGroup',
|
|
3220
|
-
'listAccessGroupMembers',
|
|
3221
|
-
'listAccessGroups',
|
|
3222
|
-
'listAccessGroupProjects',
|
|
3223
|
-
'readAccessGroupProject'
|
|
3224
|
-
],
|
|
3225
|
-
POST: ['updateAccessGroup', 'createAccessGroup', 'createAccessGroupProject'],
|
|
3226
|
-
DELETE: ['deleteAccessGroup', 'deleteAccessGroupProject'],
|
|
3227
|
-
PATCH: ['updateAccessGroupProject']
|
|
3228
|
-
},
|
|
3229
|
-
artifacts: {
|
|
3230
|
-
POST: ['recordEvents', 'artifactQuery'],
|
|
3231
|
-
GET: ['status', 'downloadArtifact'],
|
|
3232
|
-
PUT: ['uploadArtifact']
|
|
3233
|
-
},
|
|
3234
|
-
checks: {
|
|
3235
|
-
POST: ['createCheck', 'rerequestCheck'],
|
|
3236
|
-
GET: ['getAllChecks', 'getCheck'],
|
|
3237
|
-
PATCH: ['updateCheck']
|
|
3238
|
-
},
|
|
3239
|
-
projects: {
|
|
3240
|
-
PATCH: [
|
|
3241
|
-
'updateProjectDataCache',
|
|
3242
|
-
'updateProject',
|
|
3243
|
-
'updateProjectDomain',
|
|
3244
|
-
'editProjectEnv',
|
|
3245
|
-
'updateProjectProtectionBypass'
|
|
3246
|
-
],
|
|
3247
|
-
GET: [
|
|
3248
|
-
'getProjects',
|
|
3249
|
-
'getProject',
|
|
3250
|
-
'getProjectDomains',
|
|
3251
|
-
'getProjectDomain',
|
|
3252
|
-
'filterProjectEnvs',
|
|
3253
|
-
'getProjectEnv',
|
|
3254
|
-
'listPromoteAliases'
|
|
3255
|
-
],
|
|
3256
|
-
POST: [
|
|
3257
|
-
'createProject',
|
|
3258
|
-
'addProjectDomain',
|
|
3259
|
-
'moveProjectDomain',
|
|
3260
|
-
'verifyProjectDomain',
|
|
3261
|
-
'createProjectEnv',
|
|
3262
|
-
'createProjectTransferRequest',
|
|
3263
|
-
'requestPromote',
|
|
3264
|
-
'pauseProject',
|
|
3265
|
-
'unpauseProject'
|
|
3266
|
-
],
|
|
3267
|
-
DELETE: ['deleteProject', 'removeProjectDomain', 'removeProjectEnv'],
|
|
3268
|
-
PUT: ['acceptProjectTransferRequest']
|
|
3269
|
-
},
|
|
3270
|
-
deployments: {
|
|
3271
|
-
GET: ['getDeploymentEvents', 'getDeployment', 'listDeploymentFiles', 'getDeploymentFileContents', 'getDeployments'],
|
|
3272
|
-
PATCH: ['updateIntegrationDeploymentAction', 'cancelDeployment'],
|
|
3273
|
-
POST: ['createDeployment', 'uploadFile'],
|
|
3274
|
-
DELETE: ['deleteDeployment']
|
|
3275
|
-
},
|
|
3276
|
-
integrations: {
|
|
3277
|
-
PATCH: ['updateIntegrationDeploymentAction'],
|
|
3278
|
-
GET: ['getConfigurations', 'getConfiguration'],
|
|
3279
|
-
DELETE: ['deleteConfiguration']
|
|
3280
|
-
},
|
|
3281
|
-
domains: {
|
|
3282
|
-
POST: ['buyDomain', 'createOrTransferDomain'],
|
|
3283
|
-
GET: ['checkDomainPrice', 'checkDomainStatus', 'getDomainTransfer', 'getDomainConfig', 'getDomain', 'getDomains'],
|
|
3284
|
-
PATCH: ['patchDomain'],
|
|
3285
|
-
DELETE: ['deleteDomain']
|
|
3286
|
-
},
|
|
3287
|
-
dns: {
|
|
3288
|
-
GET: ['getRecords'],
|
|
3289
|
-
POST: ['createRecord'],
|
|
3290
|
-
PATCH: ['updateRecord'],
|
|
3291
|
-
DELETE: ['removeRecord']
|
|
3292
|
-
},
|
|
3293
|
-
edgeConfig: {
|
|
3294
|
-
GET: [
|
|
3295
|
-
'getEdgeConfigs',
|
|
3296
|
-
'getEdgeConfig',
|
|
3297
|
-
'getEdgeConfigItems',
|
|
3298
|
-
'getEdgeConfigSchema',
|
|
3299
|
-
'getEdgeConfigItem',
|
|
3300
|
-
'getEdgeConfigTokens',
|
|
3301
|
-
'getEdgeConfigToken',
|
|
3302
|
-
'getEdgeConfigBackup',
|
|
3303
|
-
'getEdgeConfigBackups'
|
|
3304
|
-
],
|
|
3305
|
-
POST: ['createEdgeConfig', 'patchEdgeConfigSchema', 'createEdgeConfigToken'],
|
|
3306
|
-
PUT: ['updateEdgeConfig'],
|
|
3307
|
-
DELETE: ['deleteEdgeConfig', 'deleteEdgeConfigSchema', 'deleteEdgeConfigTokens'],
|
|
3308
|
-
PATCH: ['patchEdgeConfigItems']
|
|
3309
|
-
},
|
|
3310
|
-
user: {
|
|
3311
|
-
GET: ['listUserEvents', 'getAuthUser'],
|
|
3312
|
-
DELETE: ['requestDelete']
|
|
3313
|
-
},
|
|
3314
|
-
marketplace: {
|
|
3315
|
-
GET: ['getAccountInfo', 'getMember', 'getIntegrationResources', 'getIntegrationResource', 'getInvoice'],
|
|
3316
|
-
POST: [
|
|
3317
|
-
'createEvent',
|
|
3318
|
-
'submitBillingData',
|
|
3319
|
-
'submitInvoice',
|
|
3320
|
-
'updateInvoice',
|
|
3321
|
-
'submitPrepaymentBalances',
|
|
3322
|
-
'exchangeSsoToken',
|
|
3323
|
-
'createExperimentationItem'
|
|
3324
|
-
],
|
|
3325
|
-
DELETE: ['deleteIntegrationResource', 'deleteExperimentationItem'],
|
|
3326
|
-
PUT: ['importResource', 'updateResourceSecrets', 'updateResourceSecretsById', 'updateExperimentationEdgeConfig'],
|
|
3327
|
-
PATCH: ['updateExperimentationItem']
|
|
3328
|
-
},
|
|
3329
|
-
authentication: {
|
|
3330
|
-
POST: ['exchangeSsoToken', 'createAuthToken'],
|
|
3331
|
-
GET: ['listAuthTokens', 'getAuthToken'],
|
|
3332
|
-
DELETE: ['deleteAuthToken']
|
|
3333
|
-
},
|
|
3334
|
-
logdrains: {
|
|
3335
|
-
GET: ['getIntegrationLogDrains'],
|
|
3336
|
-
POST: ['createLogDrain'],
|
|
3337
|
-
DELETE: ['deleteIntegrationLogDrain']
|
|
3338
|
-
},
|
|
3339
|
-
logs: {
|
|
3340
|
-
GET: ['getRuntimeLogs']
|
|
3341
|
-
},
|
|
3342
|
-
projectmembers: {
|
|
3343
|
-
GET: ['getProjectMembers'],
|
|
3344
|
-
POST: ['addProjectMember'],
|
|
3345
|
-
DELETE: ['removeProjectMember']
|
|
3346
|
-
},
|
|
3347
|
-
environment: {
|
|
3348
|
-
POST: ['createCustomEnvironment'],
|
|
3349
|
-
GET: ['listCustomEnvironments', 'getCustomEnvironment'],
|
|
3350
|
-
PATCH: ['updateCustomEnvironment'],
|
|
3351
|
-
DELETE: ['removeCustomEnvironment']
|
|
3352
|
-
},
|
|
3353
|
-
rollingRelease: {
|
|
3354
|
-
GET: ['getRollingReleaseBillingStatus', 'getRollingReleaseConfig', 'getRollingRelease'],
|
|
3355
|
-
DELETE: ['deleteRollingReleaseConfig'],
|
|
3356
|
-
PATCH: ['updateRollingReleaseConfig'],
|
|
3357
|
-
POST: ['approveRollingReleaseStage', 'completeRollingRelease']
|
|
3358
|
-
},
|
|
3359
|
-
security: {
|
|
3360
|
-
POST: ['updateAttackChallengeMode', 'addBypassIp'],
|
|
3361
|
-
PUT: ['putFirewallConfig'],
|
|
3362
|
-
PATCH: ['updateFirewallConfig'],
|
|
3363
|
-
GET: ['getFirewallConfig', 'getActiveAttackStatus', 'getBypassIp'],
|
|
3364
|
-
DELETE: ['removeBypassIp']
|
|
3365
|
-
},
|
|
3366
|
-
teams: {
|
|
3367
|
-
GET: ['getTeamMembers', 'getTeamAccessRequest', 'getTeam', 'getTeams'],
|
|
3368
|
-
POST: ['inviteUserToTeam', 'requestAccessToTeam', 'joinTeam', 'createTeam'],
|
|
3369
|
-
PATCH: ['updateTeamMember', 'patchTeam'],
|
|
3370
|
-
DELETE: ['removeTeamMember', 'deleteTeam', 'deleteTeamInviteCode']
|
|
3371
|
-
},
|
|
3372
|
-
webhooks: {
|
|
3373
|
-
POST: ['createWebhook'],
|
|
3374
|
-
GET: ['getWebhooks', 'getWebhook'],
|
|
3375
|
-
DELETE: ['deleteWebhook']
|
|
3376
|
-
},
|
|
3377
|
-
aliases: {
|
|
3378
|
-
GET: ['listDeploymentAliases', 'listAliases', 'getAlias'],
|
|
3379
|
-
POST: ['assignAlias'],
|
|
3380
|
-
DELETE: ['deleteAlias'],
|
|
3381
|
-
PATCH: ['patchUrlProtectionBypass']
|
|
3382
|
-
},
|
|
3383
|
-
certs: {
|
|
3384
|
-
GET: ['getCertById'],
|
|
3385
|
-
DELETE: ['removeCert'],
|
|
3386
|
-
POST: ['issueCert'],
|
|
3387
|
-
PUT: ['uploadCert']
|
|
3388
|
-
},
|
|
3389
|
-
secrets: {
|
|
3390
|
-
GET: ['getSecrets', 'getSecret'],
|
|
3391
|
-
POST: ['createSecret'],
|
|
3392
|
-
PATCH: ['renameSecret'],
|
|
3393
|
-
DELETE: ['deleteSecret']
|
|
3394
|
-
}
|
|
3395
|
-
};
|