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