@netlify/open-api 2.33.0 → 2.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3641 -0
- package/dist/swagger.json +8 -8
- package/package.json +9 -4
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,3641 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export interface paths {
|
|
7
|
+
"/sites": {
|
|
8
|
+
/** **Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables. */
|
|
9
|
+
get: operations["listSites"];
|
|
10
|
+
/** **Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [createEnvVars](#tag/environmentVariables/operation/createEnvVars) to create environment variables for a site. */
|
|
11
|
+
post: operations["createSite"];
|
|
12
|
+
};
|
|
13
|
+
"/sites/{site_id}": {
|
|
14
|
+
/** **Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables. */
|
|
15
|
+
get: operations["getSite"];
|
|
16
|
+
delete: operations["deleteSite"];
|
|
17
|
+
/** **Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [updateEnvVar](#tag/environmentVariables/operation/updateEnvVar) to update a site's environment variables. */
|
|
18
|
+
patch: operations["updateSite"];
|
|
19
|
+
parameters: {
|
|
20
|
+
path: {
|
|
21
|
+
site_id: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
"/sites/{site_id}/ssl": {
|
|
26
|
+
get: operations["showSiteTLSCertificate"];
|
|
27
|
+
post: operations["provisionSiteTLSCertificate"];
|
|
28
|
+
};
|
|
29
|
+
"/accounts/{account_id}/env": {
|
|
30
|
+
/** Returns all environment variables for an account or site. An account corresponds to a team in the Netlify UI. */
|
|
31
|
+
get: operations["getEnvVars"];
|
|
32
|
+
/** Creates new environment variables. Granular scopes are available on Pro plans and above. */
|
|
33
|
+
post: operations["createEnvVars"];
|
|
34
|
+
};
|
|
35
|
+
"/api/v1/sites/{site_id}/env": {
|
|
36
|
+
/** Returns all environment variables for a site. This convenience method behaves the same as `getEnvVars` but doesn't require an `account_id` as input. */
|
|
37
|
+
get: operations["getSiteEnvVars"];
|
|
38
|
+
};
|
|
39
|
+
"/accounts/{account_id}/env/{key}": {
|
|
40
|
+
/** Returns an individual environment variable. */
|
|
41
|
+
get: operations["getEnvVar"];
|
|
42
|
+
/** Updates an existing environment variable and all of its values. Existing values will be replaced by values provided. */
|
|
43
|
+
put: operations["updateEnvVar"];
|
|
44
|
+
/** Deletes an environment variable */
|
|
45
|
+
delete: operations["deleteEnvVar"];
|
|
46
|
+
/** Updates or creates a new value for an existing environment variable. */
|
|
47
|
+
patch: operations["setEnvVarValue"];
|
|
48
|
+
};
|
|
49
|
+
"/accounts/{account_id}/env/{key}/value/{id}": {
|
|
50
|
+
/** Deletes a specific environment variable value. */
|
|
51
|
+
delete: operations["deleteEnvVarValue"];
|
|
52
|
+
};
|
|
53
|
+
"/sites/{site_id}/functions": {
|
|
54
|
+
get: operations["searchSiteFunctions"];
|
|
55
|
+
};
|
|
56
|
+
"/sites/{site_id}/forms": {
|
|
57
|
+
get: operations["listSiteForms"];
|
|
58
|
+
};
|
|
59
|
+
"/sites/{site_id}/forms/{form_id}": {
|
|
60
|
+
delete: operations["deleteSiteForm"];
|
|
61
|
+
};
|
|
62
|
+
"/sites/{site_id}/submissions": {
|
|
63
|
+
get: operations["listSiteSubmissions"];
|
|
64
|
+
};
|
|
65
|
+
"/sites/{site_id}/files": {
|
|
66
|
+
get: operations["listSiteFiles"];
|
|
67
|
+
};
|
|
68
|
+
"/sites/{site_id}/assets": {
|
|
69
|
+
get: operations["listSiteAssets"];
|
|
70
|
+
post: operations["createSiteAsset"];
|
|
71
|
+
parameters: {
|
|
72
|
+
path: {
|
|
73
|
+
site_id: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
"/sites/{site_id}/assets/{asset_id}": {
|
|
78
|
+
get: operations["getSiteAssetInfo"];
|
|
79
|
+
put: operations["updateSiteAsset"];
|
|
80
|
+
delete: operations["deleteSiteAsset"];
|
|
81
|
+
parameters: {
|
|
82
|
+
path: {
|
|
83
|
+
site_id: string;
|
|
84
|
+
asset_id: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
"/sites/{site_id}/assets/{asset_id}/public_signature": {
|
|
89
|
+
get: operations["getSiteAssetPublicSignature"];
|
|
90
|
+
parameters: {
|
|
91
|
+
path: {
|
|
92
|
+
site_id: string;
|
|
93
|
+
asset_id: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
"/sites/{site_id}/files/{file_path}": {
|
|
98
|
+
get: operations["getSiteFileByPathName"];
|
|
99
|
+
};
|
|
100
|
+
"/purge": {
|
|
101
|
+
/** Purges cached content from Netlify's CDN. Supports purging by Cache-Tag. */
|
|
102
|
+
post: operations["purgeCache"];
|
|
103
|
+
};
|
|
104
|
+
"/sites/{site_id}/snippets": {
|
|
105
|
+
get: operations["listSiteSnippets"];
|
|
106
|
+
post: operations["createSiteSnippet"];
|
|
107
|
+
parameters: {
|
|
108
|
+
path: {
|
|
109
|
+
site_id: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
"/sites/{site_id}/snippets/{snippet_id}": {
|
|
114
|
+
get: operations["getSiteSnippet"];
|
|
115
|
+
put: operations["updateSiteSnippet"];
|
|
116
|
+
delete: operations["deleteSiteSnippet"];
|
|
117
|
+
parameters: {
|
|
118
|
+
path: {
|
|
119
|
+
site_id: string;
|
|
120
|
+
snippet_id: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
"/sites/{site_id}/metadata": {
|
|
125
|
+
get: operations["getSiteMetadata"];
|
|
126
|
+
put: operations["updateSiteMetadata"];
|
|
127
|
+
parameters: {
|
|
128
|
+
path: {
|
|
129
|
+
site_id: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
"/sites/{site_id}/build_hooks": {
|
|
134
|
+
get: operations["listSiteBuildHooks"];
|
|
135
|
+
post: operations["createSiteBuildHook"];
|
|
136
|
+
parameters: {
|
|
137
|
+
path: {
|
|
138
|
+
site_id: string;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
"/sites/{site_id}/build_hooks/{id}": {
|
|
143
|
+
get: operations["getSiteBuildHook"];
|
|
144
|
+
put: operations["updateSiteBuildHook"];
|
|
145
|
+
delete: operations["deleteSiteBuildHook"];
|
|
146
|
+
parameters: {
|
|
147
|
+
path: {
|
|
148
|
+
site_id: string;
|
|
149
|
+
id: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
"/sites/{site_id}/deploys": {
|
|
154
|
+
get: operations["listSiteDeploys"];
|
|
155
|
+
post: operations["createSiteDeploy"];
|
|
156
|
+
parameters: {
|
|
157
|
+
path: {
|
|
158
|
+
site_id: string;
|
|
159
|
+
};
|
|
160
|
+
query: {
|
|
161
|
+
"deploy-previews"?: boolean;
|
|
162
|
+
production?: boolean;
|
|
163
|
+
state?:
|
|
164
|
+
| "new"
|
|
165
|
+
| "pending_review"
|
|
166
|
+
| "accepted"
|
|
167
|
+
| "rejected"
|
|
168
|
+
| "enqueued"
|
|
169
|
+
| "building"
|
|
170
|
+
| "uploading"
|
|
171
|
+
| "uploaded"
|
|
172
|
+
| "preparing"
|
|
173
|
+
| "prepared"
|
|
174
|
+
| "processing"
|
|
175
|
+
| "processed"
|
|
176
|
+
| "ready"
|
|
177
|
+
| "error"
|
|
178
|
+
| "retrying";
|
|
179
|
+
branch?: string;
|
|
180
|
+
"latest-published"?: boolean;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
"/sites/{site_id}/deploys/{deploy_id}": {
|
|
185
|
+
get: operations["getSiteDeploy"];
|
|
186
|
+
put: operations["updateSiteDeploy"];
|
|
187
|
+
delete: operations["deleteSiteDeploy"];
|
|
188
|
+
};
|
|
189
|
+
"/deploys/{deploy_id}/cancel": {
|
|
190
|
+
post: operations["cancelSiteDeploy"];
|
|
191
|
+
};
|
|
192
|
+
"/sites/{site_id}/deploys/{deploy_id}/restore": {
|
|
193
|
+
post: operations["restoreSiteDeploy"];
|
|
194
|
+
};
|
|
195
|
+
"/sites/{site_id}/builds": {
|
|
196
|
+
get: operations["listSiteBuilds"];
|
|
197
|
+
post: operations["createSiteBuild"];
|
|
198
|
+
parameters: {
|
|
199
|
+
path: {
|
|
200
|
+
site_id: string;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
"/sites/{site_id}/deployed-branches": {
|
|
205
|
+
get: operations["listSiteDeployedBranches"];
|
|
206
|
+
parameters: {
|
|
207
|
+
path: {
|
|
208
|
+
site_id: string;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
"/sites/{site_id}/unlink_repo": {
|
|
213
|
+
/**
|
|
214
|
+
* [Beta] Unlinks the repo from the site.
|
|
215
|
+
*
|
|
216
|
+
* This action will also:
|
|
217
|
+
* - Delete associated deploy keys
|
|
218
|
+
* - Delete outgoing webhooks for the repo
|
|
219
|
+
* - Delete the site's build hooks
|
|
220
|
+
*/
|
|
221
|
+
put: operations["unlinkSiteRepo"];
|
|
222
|
+
parameters: {
|
|
223
|
+
path: {
|
|
224
|
+
site_id: string;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
"/builds/{build_id}": {
|
|
229
|
+
get: operations["getSiteBuild"];
|
|
230
|
+
parameters: {
|
|
231
|
+
path: {
|
|
232
|
+
build_id: string;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
"/builds/{build_id}/log": {
|
|
237
|
+
post: operations["updateSiteBuildLog"];
|
|
238
|
+
parameters: {
|
|
239
|
+
path: {
|
|
240
|
+
build_id: string;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
"/builds/{build_id}/start": {
|
|
245
|
+
post: operations["notifyBuildStart"];
|
|
246
|
+
parameters: {
|
|
247
|
+
path: {
|
|
248
|
+
build_id: string;
|
|
249
|
+
};
|
|
250
|
+
query: {
|
|
251
|
+
buildbot_version?: string;
|
|
252
|
+
build_version?: string;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
"/{account_id}/builds/status": {
|
|
257
|
+
get: operations["getAccountBuildStatus"];
|
|
258
|
+
parameters: {
|
|
259
|
+
path: {
|
|
260
|
+
account_id: string;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
"/sites/{site_id}/dns": {
|
|
265
|
+
get: operations["getDNSForSite"];
|
|
266
|
+
put: operations["configureDNSForSite"];
|
|
267
|
+
parameters: {
|
|
268
|
+
path: {
|
|
269
|
+
site_id: string;
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
"/sites/{site_id}/rollback": {
|
|
274
|
+
put: operations["rollbackSiteDeploy"];
|
|
275
|
+
parameters: {
|
|
276
|
+
path: {
|
|
277
|
+
site_id: string;
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
"/deploys/{deploy_id}": {
|
|
282
|
+
get: operations["getDeploy"];
|
|
283
|
+
delete: operations["deleteDeploy"];
|
|
284
|
+
};
|
|
285
|
+
"/deploys/{deploy_id}/lock": {
|
|
286
|
+
post: operations["lockDeploy"];
|
|
287
|
+
};
|
|
288
|
+
"/deploys/{deploy_id}/unlock": {
|
|
289
|
+
post: operations["unlockDeploy"];
|
|
290
|
+
};
|
|
291
|
+
"/deploys/{deploy_id}/files/{path}": {
|
|
292
|
+
put: operations["uploadDeployFile"];
|
|
293
|
+
};
|
|
294
|
+
"/deploys/{deploy_id}/functions/{name}": {
|
|
295
|
+
put: operations["uploadDeployFunction"];
|
|
296
|
+
};
|
|
297
|
+
"/forms/{form_id}/submissions": {
|
|
298
|
+
get: operations["listFormSubmissions"];
|
|
299
|
+
};
|
|
300
|
+
"/hooks": {
|
|
301
|
+
get: operations["listHooksBySiteId"];
|
|
302
|
+
post: operations["createHookBySiteId"];
|
|
303
|
+
};
|
|
304
|
+
"/hooks/{hook_id}": {
|
|
305
|
+
get: operations["getHook"];
|
|
306
|
+
put: operations["updateHook"];
|
|
307
|
+
delete: operations["deleteHook"];
|
|
308
|
+
parameters: {
|
|
309
|
+
path: {
|
|
310
|
+
hook_id: string;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
"/hooks/{hook_id}/enable": {
|
|
315
|
+
post: operations["enableHook"];
|
|
316
|
+
parameters: {
|
|
317
|
+
path: {
|
|
318
|
+
hook_id: string;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
"/hooks/types": {
|
|
323
|
+
get: operations["listHookTypes"];
|
|
324
|
+
};
|
|
325
|
+
"/oauth/tickets": {
|
|
326
|
+
post: operations["createTicket"];
|
|
327
|
+
};
|
|
328
|
+
"/oauth/tickets/{ticket_id}": {
|
|
329
|
+
get: operations["showTicket"];
|
|
330
|
+
};
|
|
331
|
+
"/oauth/tickets/{ticket_id}/exchange": {
|
|
332
|
+
post: operations["exchangeTicket"];
|
|
333
|
+
};
|
|
334
|
+
"/deploy_keys": {
|
|
335
|
+
get: operations["listDeployKeys"];
|
|
336
|
+
post: operations["createDeployKey"];
|
|
337
|
+
};
|
|
338
|
+
"/deploy_keys/{key_id}": {
|
|
339
|
+
get: operations["getDeployKey"];
|
|
340
|
+
delete: operations["deleteDeployKey"];
|
|
341
|
+
parameters: {
|
|
342
|
+
path: {
|
|
343
|
+
key_id: string;
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
"/{account_slug}/sites": {
|
|
348
|
+
/** **Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables. */
|
|
349
|
+
get: operations["listSitesForAccount"];
|
|
350
|
+
/** **Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [createEnvVars](#tag/environmentVariables/operation/createEnvVars) to create environment variables for a site. */
|
|
351
|
+
post: operations["createSiteInTeam"];
|
|
352
|
+
};
|
|
353
|
+
"/{account_slug}/members": {
|
|
354
|
+
get: operations["listMembersForAccount"];
|
|
355
|
+
post: operations["addMemberToAccount"];
|
|
356
|
+
parameters: {
|
|
357
|
+
path: {
|
|
358
|
+
account_slug: string;
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
"/{account_slug}/members/{member_id}": {
|
|
363
|
+
get: operations["getAccountMember"];
|
|
364
|
+
put: operations["updateAccountMember"];
|
|
365
|
+
delete: operations["removeAccountMember"];
|
|
366
|
+
parameters: {
|
|
367
|
+
path: {
|
|
368
|
+
account_slug: string;
|
|
369
|
+
member_id: string;
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
"/billing/payment_methods": {
|
|
374
|
+
get: operations["listPaymentMethodsForUser"];
|
|
375
|
+
};
|
|
376
|
+
"/accounts/types": {
|
|
377
|
+
get: operations["listAccountTypesForUser"];
|
|
378
|
+
};
|
|
379
|
+
"/accounts": {
|
|
380
|
+
get: operations["listAccountsForUser"];
|
|
381
|
+
post: operations["createAccount"];
|
|
382
|
+
};
|
|
383
|
+
"/accounts/{account_id}": {
|
|
384
|
+
get: operations["getAccount"];
|
|
385
|
+
put: operations["updateAccount"];
|
|
386
|
+
delete: operations["cancelAccount"];
|
|
387
|
+
parameters: {
|
|
388
|
+
path: {
|
|
389
|
+
account_id: string;
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
"/accounts/{account_id}/audit": {
|
|
394
|
+
get: operations["listAccountAuditEvents"];
|
|
395
|
+
parameters: {
|
|
396
|
+
path: {
|
|
397
|
+
account_id: string;
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
"/submissions/{submission_id}": {
|
|
402
|
+
get: operations["listFormSubmission"];
|
|
403
|
+
delete: operations["deleteSubmission"];
|
|
404
|
+
parameters: {
|
|
405
|
+
path: {
|
|
406
|
+
submission_id: string;
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
"/sites/{site_id}/service-instances": {
|
|
411
|
+
get: operations["listServiceInstancesForSite"];
|
|
412
|
+
parameters: {
|
|
413
|
+
path: {
|
|
414
|
+
site_id: string;
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
"/sites/{site_id}/services/{addon}/instances": {
|
|
419
|
+
post: operations["createServiceInstance"];
|
|
420
|
+
parameters: {
|
|
421
|
+
path: {
|
|
422
|
+
site_id: string;
|
|
423
|
+
addon: string;
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
"/sites/{site_id}/services/{addon}/instances/{instance_id}": {
|
|
428
|
+
get: operations["showServiceInstance"];
|
|
429
|
+
put: operations["updateServiceInstance"];
|
|
430
|
+
delete: operations["deleteServiceInstance"];
|
|
431
|
+
parameters: {
|
|
432
|
+
path: {
|
|
433
|
+
site_id: string;
|
|
434
|
+
addon: string;
|
|
435
|
+
instance_id: string;
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
"/services/": {
|
|
440
|
+
get: operations["getServices"];
|
|
441
|
+
parameters: {
|
|
442
|
+
query: {
|
|
443
|
+
search?: string;
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
"/services/{addonName}": {
|
|
448
|
+
get: operations["showService"];
|
|
449
|
+
parameters: {
|
|
450
|
+
path: {
|
|
451
|
+
addonName: string;
|
|
452
|
+
};
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
"/services/{addonName}/manifest": {
|
|
456
|
+
get: operations["showServiceManifest"];
|
|
457
|
+
parameters: {
|
|
458
|
+
path: {
|
|
459
|
+
addonName: string;
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
"/user": {
|
|
464
|
+
get: operations["getCurrentUser"];
|
|
465
|
+
};
|
|
466
|
+
"/sites/{site_id}/traffic_splits": {
|
|
467
|
+
get: operations["getSplitTests"];
|
|
468
|
+
post: operations["createSplitTest"];
|
|
469
|
+
parameters: {
|
|
470
|
+
path: {
|
|
471
|
+
site_id: string;
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
"/sites/{site_id}/traffic_splits/{split_test_id}": {
|
|
476
|
+
get: operations["getSplitTest"];
|
|
477
|
+
put: operations["updateSplitTest"];
|
|
478
|
+
parameters: {
|
|
479
|
+
path: {
|
|
480
|
+
site_id: string;
|
|
481
|
+
split_test_id: string;
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
"/sites/{site_id}/traffic_splits/{split_test_id}/publish": {
|
|
486
|
+
post: operations["enableSplitTest"];
|
|
487
|
+
parameters: {
|
|
488
|
+
path: {
|
|
489
|
+
site_id: string;
|
|
490
|
+
split_test_id: string;
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
"/sites/{site_id}/traffic_splits/{split_test_id}/unpublish": {
|
|
495
|
+
post: operations["disableSplitTest"];
|
|
496
|
+
parameters: {
|
|
497
|
+
path: {
|
|
498
|
+
site_id: string;
|
|
499
|
+
split_test_id: string;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
"/dns_zones": {
|
|
504
|
+
get: operations["getDnsZones"];
|
|
505
|
+
post: operations["createDnsZone"];
|
|
506
|
+
};
|
|
507
|
+
"/dns_zones/{zone_id}": {
|
|
508
|
+
get: operations["getDnsZone"];
|
|
509
|
+
delete: operations["deleteDnsZone"];
|
|
510
|
+
parameters: {
|
|
511
|
+
path: {
|
|
512
|
+
zone_id: string;
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
"/dns_zones/{zone_id}/transfer": {
|
|
517
|
+
put: operations["transferDnsZone"];
|
|
518
|
+
parameters: {
|
|
519
|
+
path: {
|
|
520
|
+
zone_id: string;
|
|
521
|
+
};
|
|
522
|
+
query: {
|
|
523
|
+
/** the account of the dns zone */
|
|
524
|
+
account_id: string;
|
|
525
|
+
/** the account you want to transfer the dns zone to */
|
|
526
|
+
transfer_account_id: string;
|
|
527
|
+
/** the user you want to transfer the dns zone to */
|
|
528
|
+
transfer_user_id: string;
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
"/dns_zones/{zone_id}/dns_records": {
|
|
533
|
+
get: operations["getDnsRecords"];
|
|
534
|
+
post: operations["createDnsRecord"];
|
|
535
|
+
parameters: {
|
|
536
|
+
path: {
|
|
537
|
+
zone_id: string;
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
"/dns_zones/{zone_id}/dns_records/{dns_record_id}": {
|
|
542
|
+
get: operations["getIndividualDnsRecord"];
|
|
543
|
+
delete: operations["deleteDnsRecord"];
|
|
544
|
+
parameters: {
|
|
545
|
+
path: {
|
|
546
|
+
zone_id: string;
|
|
547
|
+
dns_record_id: string;
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
"/sites/{site_id}/dev_servers": {
|
|
552
|
+
get: operations["listSiteDevServers"];
|
|
553
|
+
post: operations["createSiteDevServer"];
|
|
554
|
+
delete: operations["deleteSiteDevServers"];
|
|
555
|
+
parameters: {
|
|
556
|
+
path: {
|
|
557
|
+
site_id: string;
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
"/sites/{site_id}/dev_servers/{dev_server_id}": {
|
|
562
|
+
get: operations["getSiteDevServer"];
|
|
563
|
+
parameters: {
|
|
564
|
+
path: {
|
|
565
|
+
site_id: string;
|
|
566
|
+
dev_server_id: string;
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
"/sites/{site_id}/dev_servers/{dev_server_id}/activity": {
|
|
571
|
+
parameters: {
|
|
572
|
+
path: {
|
|
573
|
+
site_id: string;
|
|
574
|
+
dev_server_id: string;
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
"/sites/{site_id}/dev_server_hooks": {
|
|
579
|
+
get: operations["listSiteDevServerHooks"];
|
|
580
|
+
post: operations["createSiteDevServerHook"];
|
|
581
|
+
parameters: {
|
|
582
|
+
path: {
|
|
583
|
+
site_id: string;
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
"/sites/{site_id}/dev_server_hooks/{id}": {
|
|
588
|
+
get: operations["getSiteDevServerHook"];
|
|
589
|
+
put: operations["updateSiteDevServerHook"];
|
|
590
|
+
delete: operations["deleteSiteDevServerHook"];
|
|
591
|
+
parameters: {
|
|
592
|
+
path: {
|
|
593
|
+
site_id: string;
|
|
594
|
+
id: string;
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
export interface components {
|
|
601
|
+
schemas: {
|
|
602
|
+
splitTestSetup: {
|
|
603
|
+
branch_tests?: { [key: string]: unknown };
|
|
604
|
+
};
|
|
605
|
+
splitTests: components["schemas"]["splitTest"][];
|
|
606
|
+
splitTest: {
|
|
607
|
+
id?: string;
|
|
608
|
+
site_id?: string;
|
|
609
|
+
name?: string;
|
|
610
|
+
path?: string;
|
|
611
|
+
branches?: { [key: string]: unknown }[];
|
|
612
|
+
active?: boolean;
|
|
613
|
+
/** Format: dateTime */
|
|
614
|
+
created_at?: string;
|
|
615
|
+
/** Format: dateTime */
|
|
616
|
+
updated_at?: string;
|
|
617
|
+
/** Format: dateTime */
|
|
618
|
+
unpublished_at?: string;
|
|
619
|
+
};
|
|
620
|
+
serviceInstance: {
|
|
621
|
+
id?: string;
|
|
622
|
+
url?: string;
|
|
623
|
+
config?: { [key: string]: unknown };
|
|
624
|
+
external_attributes?: { [key: string]: unknown };
|
|
625
|
+
service_slug?: string;
|
|
626
|
+
service_path?: string;
|
|
627
|
+
service_name?: string;
|
|
628
|
+
env?: { [key: string]: unknown };
|
|
629
|
+
snippets?: { [key: string]: unknown }[];
|
|
630
|
+
auth_url?: string;
|
|
631
|
+
/** Format: dateTime */
|
|
632
|
+
created_at?: string;
|
|
633
|
+
/** Format: dateTime */
|
|
634
|
+
updated_at?: string;
|
|
635
|
+
};
|
|
636
|
+
service: {
|
|
637
|
+
id?: string;
|
|
638
|
+
name?: string;
|
|
639
|
+
slug?: string;
|
|
640
|
+
service_path?: string;
|
|
641
|
+
long_description?: string;
|
|
642
|
+
description?: string;
|
|
643
|
+
events?: { [key: string]: unknown }[];
|
|
644
|
+
tags?: string[];
|
|
645
|
+
icon?: string;
|
|
646
|
+
manifest_url?: string;
|
|
647
|
+
environments?: string[];
|
|
648
|
+
/** Format: dateTime */
|
|
649
|
+
created_at?: string;
|
|
650
|
+
/** Format: dateTime */
|
|
651
|
+
updated_at?: string;
|
|
652
|
+
};
|
|
653
|
+
site: {
|
|
654
|
+
id?: string;
|
|
655
|
+
state?: string;
|
|
656
|
+
plan?: string;
|
|
657
|
+
name?: string;
|
|
658
|
+
custom_domain?: string;
|
|
659
|
+
domain_aliases?: string[];
|
|
660
|
+
branch_deploy_custom_domain?: string;
|
|
661
|
+
deploy_preview_custom_domain?: string;
|
|
662
|
+
password?: string;
|
|
663
|
+
notification_email?: string;
|
|
664
|
+
url?: string;
|
|
665
|
+
ssl_url?: string;
|
|
666
|
+
admin_url?: string;
|
|
667
|
+
screenshot_url?: string;
|
|
668
|
+
/** Format: dateTime */
|
|
669
|
+
created_at?: string;
|
|
670
|
+
/** Format: dateTime */
|
|
671
|
+
updated_at?: string;
|
|
672
|
+
user_id?: string;
|
|
673
|
+
session_id?: string;
|
|
674
|
+
ssl?: boolean;
|
|
675
|
+
force_ssl?: boolean;
|
|
676
|
+
managed_dns?: boolean;
|
|
677
|
+
deploy_url?: string;
|
|
678
|
+
published_deploy?: components["schemas"]["deploy"];
|
|
679
|
+
account_name?: string;
|
|
680
|
+
account_slug?: string;
|
|
681
|
+
git_provider?: string;
|
|
682
|
+
deploy_hook?: string;
|
|
683
|
+
capabilities?: { [key: string]: { [key: string]: unknown } };
|
|
684
|
+
processing_settings?: {
|
|
685
|
+
html?: {
|
|
686
|
+
pretty_urls?: boolean;
|
|
687
|
+
};
|
|
688
|
+
};
|
|
689
|
+
build_settings?: components["schemas"]["repoInfo"];
|
|
690
|
+
id_domain?: string;
|
|
691
|
+
default_hooks_data?: {
|
|
692
|
+
access_token?: string;
|
|
693
|
+
};
|
|
694
|
+
build_image?: string;
|
|
695
|
+
prerender?: string;
|
|
696
|
+
functions_region?: string;
|
|
697
|
+
};
|
|
698
|
+
siteSetup: components["schemas"]["site"] & {
|
|
699
|
+
repo?: components["schemas"]["repoInfo"];
|
|
700
|
+
};
|
|
701
|
+
repoInfo: {
|
|
702
|
+
id?: number;
|
|
703
|
+
provider?: string;
|
|
704
|
+
deploy_key_id?: string;
|
|
705
|
+
repo_path?: string;
|
|
706
|
+
repo_branch?: string;
|
|
707
|
+
dir?: string;
|
|
708
|
+
functions_dir?: string;
|
|
709
|
+
cmd?: string;
|
|
710
|
+
allowed_branches?: string[];
|
|
711
|
+
public_repo?: boolean;
|
|
712
|
+
private_logs?: boolean;
|
|
713
|
+
repo_url?: string;
|
|
714
|
+
env?: { [key: string]: string };
|
|
715
|
+
installation_id?: number;
|
|
716
|
+
stop_builds?: boolean;
|
|
717
|
+
};
|
|
718
|
+
submission: {
|
|
719
|
+
id?: string;
|
|
720
|
+
/** Format: int32 */
|
|
721
|
+
number?: number;
|
|
722
|
+
email?: string;
|
|
723
|
+
name?: string;
|
|
724
|
+
first_name?: string;
|
|
725
|
+
last_name?: string;
|
|
726
|
+
company?: string;
|
|
727
|
+
summary?: string;
|
|
728
|
+
body?: string;
|
|
729
|
+
data?: { [key: string]: unknown };
|
|
730
|
+
/** Format: dateTime */
|
|
731
|
+
created_at?: string;
|
|
732
|
+
site_url?: string;
|
|
733
|
+
};
|
|
734
|
+
/** @description Environment variable model definition */
|
|
735
|
+
envVar: {
|
|
736
|
+
/** @description The environment variable key, like ALGOLIA_ID (case-sensitive) */
|
|
737
|
+
key?: string;
|
|
738
|
+
/** @description The scopes that this environment variable is set to */
|
|
739
|
+
scopes?: ("builds" | "functions" | "runtime" | "post-processing")[];
|
|
740
|
+
/** @description An array of Value objects containing values and metadata */
|
|
741
|
+
values?: components["schemas"]["envVarValue"][];
|
|
742
|
+
/** @description Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only) */
|
|
743
|
+
is_secret?: boolean;
|
|
744
|
+
/**
|
|
745
|
+
* Format: date-time
|
|
746
|
+
* @description The timestamp of when the value was last updated
|
|
747
|
+
*/
|
|
748
|
+
updated_at?: string;
|
|
749
|
+
updated_by?: components["schemas"]["envVarUser"];
|
|
750
|
+
};
|
|
751
|
+
/** @description Environment variable value model definition */
|
|
752
|
+
envVarValue: {
|
|
753
|
+
/** @description The environment variable value's universally unique ID */
|
|
754
|
+
id?: string;
|
|
755
|
+
/** @description The environment variable's unencrypted value */
|
|
756
|
+
value?: string;
|
|
757
|
+
/**
|
|
758
|
+
* @description The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
|
|
759
|
+
* @enum {string}
|
|
760
|
+
*/
|
|
761
|
+
context?:
|
|
762
|
+
| "all"
|
|
763
|
+
| "dev"
|
|
764
|
+
| "branch-deploy"
|
|
765
|
+
| "deploy-preview"
|
|
766
|
+
| "production"
|
|
767
|
+
| "branch";
|
|
768
|
+
/** @description An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`. */
|
|
769
|
+
context_parameter?: string;
|
|
770
|
+
};
|
|
771
|
+
envVarUser: {
|
|
772
|
+
/** @description The user's unique identifier */
|
|
773
|
+
id?: string;
|
|
774
|
+
/** @description The user's full name (first and last) */
|
|
775
|
+
full_name?: string;
|
|
776
|
+
/** @description The user's email address */
|
|
777
|
+
email?: string;
|
|
778
|
+
/** @description A URL pointing to the user's avatar */
|
|
779
|
+
avatar_url?: string;
|
|
780
|
+
};
|
|
781
|
+
form: {
|
|
782
|
+
id?: string;
|
|
783
|
+
site_id?: string;
|
|
784
|
+
name?: string;
|
|
785
|
+
paths?: string[];
|
|
786
|
+
/** Format: int32 */
|
|
787
|
+
submission_count?: number;
|
|
788
|
+
fields?: { [key: string]: unknown }[];
|
|
789
|
+
/** Format: dateTime */
|
|
790
|
+
created_at?: string;
|
|
791
|
+
};
|
|
792
|
+
hookType: {
|
|
793
|
+
name?: string;
|
|
794
|
+
events?: string[];
|
|
795
|
+
fields?: { [key: string]: unknown }[];
|
|
796
|
+
};
|
|
797
|
+
hook: {
|
|
798
|
+
id?: string;
|
|
799
|
+
site_id?: string;
|
|
800
|
+
type?: string;
|
|
801
|
+
event?: string;
|
|
802
|
+
data?: { [key: string]: unknown };
|
|
803
|
+
/** Format: dateTime */
|
|
804
|
+
created_at?: string;
|
|
805
|
+
/** Format: dateTime */
|
|
806
|
+
updated_at?: string;
|
|
807
|
+
disabled?: boolean;
|
|
808
|
+
};
|
|
809
|
+
file: {
|
|
810
|
+
id?: string;
|
|
811
|
+
path?: string;
|
|
812
|
+
sha?: string;
|
|
813
|
+
mime_type?: string;
|
|
814
|
+
/** Format: int64 */
|
|
815
|
+
size?: number;
|
|
816
|
+
};
|
|
817
|
+
function: {
|
|
818
|
+
id?: string;
|
|
819
|
+
name?: string;
|
|
820
|
+
sha?: string;
|
|
821
|
+
};
|
|
822
|
+
snippet: {
|
|
823
|
+
/** Format: int32 */
|
|
824
|
+
id?: number;
|
|
825
|
+
site_id?: string;
|
|
826
|
+
title?: string;
|
|
827
|
+
general?: string;
|
|
828
|
+
general_position?: string;
|
|
829
|
+
goal?: string;
|
|
830
|
+
goal_position?: string;
|
|
831
|
+
};
|
|
832
|
+
purge: {
|
|
833
|
+
site_id?: string;
|
|
834
|
+
site_slug?: string;
|
|
835
|
+
cache_tags?: string[];
|
|
836
|
+
};
|
|
837
|
+
deploy: {
|
|
838
|
+
id?: string;
|
|
839
|
+
site_id?: string;
|
|
840
|
+
user_id?: string;
|
|
841
|
+
build_id?: string;
|
|
842
|
+
state?: string;
|
|
843
|
+
name?: string;
|
|
844
|
+
url?: string;
|
|
845
|
+
ssl_url?: string;
|
|
846
|
+
admin_url?: string;
|
|
847
|
+
deploy_url?: string;
|
|
848
|
+
deploy_ssl_url?: string;
|
|
849
|
+
screenshot_url?: string;
|
|
850
|
+
review_id?: number;
|
|
851
|
+
draft?: boolean;
|
|
852
|
+
required?: string[];
|
|
853
|
+
required_functions?: string[];
|
|
854
|
+
error_message?: string;
|
|
855
|
+
branch?: string;
|
|
856
|
+
commit_ref?: string;
|
|
857
|
+
commit_url?: string;
|
|
858
|
+
skipped?: boolean;
|
|
859
|
+
/** Format: dateTime */
|
|
860
|
+
created_at?: string;
|
|
861
|
+
/** Format: dateTime */
|
|
862
|
+
updated_at?: string;
|
|
863
|
+
/** Format: dateTime */
|
|
864
|
+
published_at?: string;
|
|
865
|
+
title?: string;
|
|
866
|
+
context?: string;
|
|
867
|
+
locked?: boolean;
|
|
868
|
+
review_url?: string;
|
|
869
|
+
framework?: string;
|
|
870
|
+
function_schedules?: components["schemas"]["functionSchedule"][];
|
|
871
|
+
};
|
|
872
|
+
deployFiles: {
|
|
873
|
+
files?: { [key: string]: unknown };
|
|
874
|
+
draft?: boolean;
|
|
875
|
+
async?: boolean;
|
|
876
|
+
functions?: { [key: string]: unknown };
|
|
877
|
+
function_schedules?: components["schemas"]["functionSchedule"][];
|
|
878
|
+
functions_config?: {
|
|
879
|
+
[key: string]: components["schemas"]["functionConfig"];
|
|
880
|
+
};
|
|
881
|
+
branch?: string;
|
|
882
|
+
framework?: string;
|
|
883
|
+
framework_version?: string;
|
|
884
|
+
};
|
|
885
|
+
pluginParams: {
|
|
886
|
+
pinned_version?: string;
|
|
887
|
+
};
|
|
888
|
+
plugin: {
|
|
889
|
+
package?: string;
|
|
890
|
+
pinned_version?: string;
|
|
891
|
+
};
|
|
892
|
+
buildStatus: {
|
|
893
|
+
active?: number;
|
|
894
|
+
pending_concurrency?: number;
|
|
895
|
+
enqueued?: number;
|
|
896
|
+
build_count?: number;
|
|
897
|
+
minutes?: {
|
|
898
|
+
current?: number;
|
|
899
|
+
current_average_sec?: number;
|
|
900
|
+
previous?: number;
|
|
901
|
+
/** Format: dateTime */
|
|
902
|
+
period_start_date?: string;
|
|
903
|
+
/** Format: dateTime */
|
|
904
|
+
period_end_date?: string;
|
|
905
|
+
/** Format: dateTime */
|
|
906
|
+
last_updated_at?: string;
|
|
907
|
+
included_minutes?: string;
|
|
908
|
+
included_minutes_with_packs?: string;
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
build: {
|
|
912
|
+
id?: string;
|
|
913
|
+
deploy_id?: string;
|
|
914
|
+
sha?: string;
|
|
915
|
+
done?: boolean;
|
|
916
|
+
error?: string;
|
|
917
|
+
/** Format: dateTime */
|
|
918
|
+
created_at?: string;
|
|
919
|
+
};
|
|
920
|
+
buildLogMsg: {
|
|
921
|
+
message?: string;
|
|
922
|
+
error?: boolean;
|
|
923
|
+
/** @enum {string} */
|
|
924
|
+
section?:
|
|
925
|
+
| "initializing"
|
|
926
|
+
| "building"
|
|
927
|
+
| "deploying"
|
|
928
|
+
| "cleanup"
|
|
929
|
+
| "postprocessing";
|
|
930
|
+
};
|
|
931
|
+
pluginRunData: {
|
|
932
|
+
package?: string;
|
|
933
|
+
version?: string;
|
|
934
|
+
state?: string;
|
|
935
|
+
reporting_event?: string;
|
|
936
|
+
title?: string;
|
|
937
|
+
summary?: string;
|
|
938
|
+
text?: string;
|
|
939
|
+
};
|
|
940
|
+
pluginRun: components["schemas"]["pluginRunData"] & {
|
|
941
|
+
deploy_id?: string;
|
|
942
|
+
};
|
|
943
|
+
metadata: { [key: string]: unknown };
|
|
944
|
+
dnsZoneSetup: {
|
|
945
|
+
account_slug?: string;
|
|
946
|
+
site_id?: string;
|
|
947
|
+
name?: string;
|
|
948
|
+
};
|
|
949
|
+
dnsZones: components["schemas"]["dnsZone"][];
|
|
950
|
+
dnsZone: {
|
|
951
|
+
id?: string;
|
|
952
|
+
name?: string;
|
|
953
|
+
errors?: string[];
|
|
954
|
+
supported_record_types?: string[];
|
|
955
|
+
user_id?: string;
|
|
956
|
+
/** Format: dateTime */
|
|
957
|
+
created_at?: string;
|
|
958
|
+
/** Format: dateTime */
|
|
959
|
+
updated_at?: string;
|
|
960
|
+
records?: components["schemas"]["dnsRecord"][];
|
|
961
|
+
dns_servers?: string[];
|
|
962
|
+
account_id?: string;
|
|
963
|
+
site_id?: string;
|
|
964
|
+
account_slug?: string;
|
|
965
|
+
account_name?: string;
|
|
966
|
+
domain?: string;
|
|
967
|
+
ipv6_enabled?: boolean;
|
|
968
|
+
dedicated?: boolean;
|
|
969
|
+
};
|
|
970
|
+
dnsRecordCreate: {
|
|
971
|
+
type?: string;
|
|
972
|
+
hostname?: string;
|
|
973
|
+
value?: string;
|
|
974
|
+
/** Format: int64 */
|
|
975
|
+
ttl?: number;
|
|
976
|
+
/** Format: int64 */
|
|
977
|
+
priority?: number;
|
|
978
|
+
/** Format: int64 */
|
|
979
|
+
weight?: number;
|
|
980
|
+
/** Format: int64 */
|
|
981
|
+
port?: number;
|
|
982
|
+
/** Format: int64 */
|
|
983
|
+
flag?: number;
|
|
984
|
+
tag?: string;
|
|
985
|
+
};
|
|
986
|
+
dnsRecords: components["schemas"]["dnsRecord"][];
|
|
987
|
+
dnsRecord: {
|
|
988
|
+
id?: string;
|
|
989
|
+
hostname?: string;
|
|
990
|
+
type?: string;
|
|
991
|
+
value?: string;
|
|
992
|
+
/** Format: int64 */
|
|
993
|
+
ttl?: number;
|
|
994
|
+
/** Format: int64 */
|
|
995
|
+
priority?: number;
|
|
996
|
+
dns_zone_id?: string;
|
|
997
|
+
site_id?: string;
|
|
998
|
+
flag?: number;
|
|
999
|
+
tag?: string;
|
|
1000
|
+
managed?: boolean;
|
|
1001
|
+
};
|
|
1002
|
+
sniCertificate: {
|
|
1003
|
+
state?: string;
|
|
1004
|
+
domains?: string[];
|
|
1005
|
+
/** Format: dateTime */
|
|
1006
|
+
created_at?: string;
|
|
1007
|
+
/** Format: dateTime */
|
|
1008
|
+
updated_at?: string;
|
|
1009
|
+
/** Format: dateTime */
|
|
1010
|
+
expires_at?: string;
|
|
1011
|
+
};
|
|
1012
|
+
ticket: {
|
|
1013
|
+
id?: string;
|
|
1014
|
+
client_id?: string;
|
|
1015
|
+
authorized?: boolean;
|
|
1016
|
+
/** Format: dateTime */
|
|
1017
|
+
created_at?: string;
|
|
1018
|
+
};
|
|
1019
|
+
accessToken: {
|
|
1020
|
+
id?: string;
|
|
1021
|
+
access_token?: string;
|
|
1022
|
+
user_id?: string;
|
|
1023
|
+
user_email?: string;
|
|
1024
|
+
/** Format: dateTime */
|
|
1025
|
+
created_at?: string;
|
|
1026
|
+
};
|
|
1027
|
+
asset: {
|
|
1028
|
+
id?: string;
|
|
1029
|
+
site_id?: string;
|
|
1030
|
+
creator_id?: string;
|
|
1031
|
+
name?: string;
|
|
1032
|
+
state?: string;
|
|
1033
|
+
content_type?: string;
|
|
1034
|
+
url?: string;
|
|
1035
|
+
key?: string;
|
|
1036
|
+
visibility?: string;
|
|
1037
|
+
/** Format: int64 */
|
|
1038
|
+
size?: number;
|
|
1039
|
+
/** Format: dateTime */
|
|
1040
|
+
created_at?: string;
|
|
1041
|
+
/** Format: dateTime */
|
|
1042
|
+
updated_at?: string;
|
|
1043
|
+
};
|
|
1044
|
+
assetForm: {
|
|
1045
|
+
url?: string;
|
|
1046
|
+
fields?: { [key: string]: string };
|
|
1047
|
+
};
|
|
1048
|
+
assetSignature: {
|
|
1049
|
+
form?: components["schemas"]["assetForm"];
|
|
1050
|
+
asset?: components["schemas"]["asset"];
|
|
1051
|
+
};
|
|
1052
|
+
assetPublicSignature: {
|
|
1053
|
+
url?: string;
|
|
1054
|
+
};
|
|
1055
|
+
deployKey: {
|
|
1056
|
+
id?: string;
|
|
1057
|
+
public_key?: string;
|
|
1058
|
+
/** Format: dateTime */
|
|
1059
|
+
created_at?: string;
|
|
1060
|
+
};
|
|
1061
|
+
member: {
|
|
1062
|
+
id?: string;
|
|
1063
|
+
full_name?: string;
|
|
1064
|
+
email?: string;
|
|
1065
|
+
avatar?: string;
|
|
1066
|
+
role?: string;
|
|
1067
|
+
};
|
|
1068
|
+
paymentMethod: {
|
|
1069
|
+
id?: string;
|
|
1070
|
+
method_name?: string;
|
|
1071
|
+
type?: string;
|
|
1072
|
+
state?: string;
|
|
1073
|
+
data?: {
|
|
1074
|
+
card_type?: string;
|
|
1075
|
+
last4?: string;
|
|
1076
|
+
email?: string;
|
|
1077
|
+
};
|
|
1078
|
+
/** Format: dateTime */
|
|
1079
|
+
created_at?: string;
|
|
1080
|
+
/** Format: dateTime */
|
|
1081
|
+
updated_at?: string;
|
|
1082
|
+
};
|
|
1083
|
+
accountType: {
|
|
1084
|
+
id?: string;
|
|
1085
|
+
name?: string;
|
|
1086
|
+
description?: string;
|
|
1087
|
+
capabilities?: { [key: string]: unknown };
|
|
1088
|
+
monthly_dollar_price?: number;
|
|
1089
|
+
yearly_dollar_price?: number;
|
|
1090
|
+
monthly_seats_addon_dollar_price?: number;
|
|
1091
|
+
yearly_seats_addon_dollar_price?: number;
|
|
1092
|
+
};
|
|
1093
|
+
accountSetup: {
|
|
1094
|
+
name: string;
|
|
1095
|
+
type_id: string;
|
|
1096
|
+
payment_method_id?: string;
|
|
1097
|
+
/** @enum {string} */
|
|
1098
|
+
period?: "monthly" | "yearly";
|
|
1099
|
+
extra_seats_block?: number;
|
|
1100
|
+
};
|
|
1101
|
+
accountUpdateSetup: {
|
|
1102
|
+
name?: string;
|
|
1103
|
+
slug?: string;
|
|
1104
|
+
type_id?: string;
|
|
1105
|
+
extra_seats_block?: number;
|
|
1106
|
+
billing_name?: string;
|
|
1107
|
+
billing_email?: string;
|
|
1108
|
+
billing_details?: string;
|
|
1109
|
+
};
|
|
1110
|
+
accountAddMemberSetup: {
|
|
1111
|
+
/** @enum {string} */
|
|
1112
|
+
role?: "Owner" | "Developer" | "Billing Admin" | "Reviewer";
|
|
1113
|
+
email?: string;
|
|
1114
|
+
};
|
|
1115
|
+
accountUpdateMemberSetup: {
|
|
1116
|
+
/** @enum {string} */
|
|
1117
|
+
role?: "Owner" | "Developer" | "Billing Admin" | "Reviewer";
|
|
1118
|
+
/** @enum {string} */
|
|
1119
|
+
site_access?: "all" | "none" | "selected";
|
|
1120
|
+
site_ids?: string[];
|
|
1121
|
+
};
|
|
1122
|
+
accountMembership: {
|
|
1123
|
+
id?: string;
|
|
1124
|
+
name?: string;
|
|
1125
|
+
slug?: string;
|
|
1126
|
+
type?: string;
|
|
1127
|
+
capabilities?: {
|
|
1128
|
+
sites?: components["schemas"]["accountUsageCapability"];
|
|
1129
|
+
collaborators?: components["schemas"]["accountUsageCapability"];
|
|
1130
|
+
};
|
|
1131
|
+
billing_name?: string;
|
|
1132
|
+
billing_email?: string;
|
|
1133
|
+
billing_details?: string;
|
|
1134
|
+
billing_period?: string;
|
|
1135
|
+
payment_method_id?: string;
|
|
1136
|
+
type_name?: string;
|
|
1137
|
+
type_id?: string;
|
|
1138
|
+
owner_ids?: string[];
|
|
1139
|
+
roles_allowed?: string[];
|
|
1140
|
+
/** Format: dateTime */
|
|
1141
|
+
created_at?: string;
|
|
1142
|
+
/** Format: dateTime */
|
|
1143
|
+
updated_at?: string;
|
|
1144
|
+
};
|
|
1145
|
+
auditLog: {
|
|
1146
|
+
id?: string;
|
|
1147
|
+
account_id?: string;
|
|
1148
|
+
payload?: {
|
|
1149
|
+
actor_id?: string;
|
|
1150
|
+
actor_name?: string;
|
|
1151
|
+
actor_email?: string;
|
|
1152
|
+
action?: string;
|
|
1153
|
+
/** Format: dateTime */
|
|
1154
|
+
timestamp?: string;
|
|
1155
|
+
log_type?: string;
|
|
1156
|
+
} & { [key: string]: { [key: string]: unknown } };
|
|
1157
|
+
};
|
|
1158
|
+
accountUsageCapability: {
|
|
1159
|
+
included?: number;
|
|
1160
|
+
used?: number;
|
|
1161
|
+
};
|
|
1162
|
+
buildSetup: {
|
|
1163
|
+
image?: string;
|
|
1164
|
+
clear_cache?: boolean;
|
|
1165
|
+
};
|
|
1166
|
+
buildHookSetup: {
|
|
1167
|
+
title?: string;
|
|
1168
|
+
branch?: string;
|
|
1169
|
+
};
|
|
1170
|
+
buildHook: {
|
|
1171
|
+
id?: string;
|
|
1172
|
+
title?: string;
|
|
1173
|
+
branch?: string;
|
|
1174
|
+
url?: string;
|
|
1175
|
+
site_id?: string;
|
|
1176
|
+
/** Format: dateTime */
|
|
1177
|
+
created_at?: string;
|
|
1178
|
+
};
|
|
1179
|
+
deployedBranch: {
|
|
1180
|
+
id?: string;
|
|
1181
|
+
deploy_id?: string;
|
|
1182
|
+
name?: string;
|
|
1183
|
+
slug?: string;
|
|
1184
|
+
url?: string;
|
|
1185
|
+
ssl_url?: string;
|
|
1186
|
+
};
|
|
1187
|
+
user: {
|
|
1188
|
+
id?: string;
|
|
1189
|
+
uid?: string;
|
|
1190
|
+
full_name?: string;
|
|
1191
|
+
avatar_url?: string;
|
|
1192
|
+
email?: string;
|
|
1193
|
+
affiliate_id?: string;
|
|
1194
|
+
/** Format: int64 */
|
|
1195
|
+
site_count?: number;
|
|
1196
|
+
/** Format: dateTime */
|
|
1197
|
+
created_at?: string;
|
|
1198
|
+
/** Format: dateTime */
|
|
1199
|
+
last_login?: string;
|
|
1200
|
+
login_providers?: string[];
|
|
1201
|
+
onboarding_progress?: {
|
|
1202
|
+
slides?: string;
|
|
1203
|
+
};
|
|
1204
|
+
};
|
|
1205
|
+
error: {
|
|
1206
|
+
/** Format: int64 */
|
|
1207
|
+
code?: number;
|
|
1208
|
+
message: string;
|
|
1209
|
+
};
|
|
1210
|
+
functionSchedule: {
|
|
1211
|
+
name?: string;
|
|
1212
|
+
cron?: string;
|
|
1213
|
+
};
|
|
1214
|
+
functionConfig: {
|
|
1215
|
+
display_name?: string;
|
|
1216
|
+
generator?: string;
|
|
1217
|
+
build_data?: { [key: string]: unknown };
|
|
1218
|
+
routes?: components["schemas"]["functionRoute"][];
|
|
1219
|
+
excluded_routes?: components["schemas"]["excludedFunctionRoute"][];
|
|
1220
|
+
priority?: number;
|
|
1221
|
+
traffic_rules?: components["schemas"]["trafficRulesConfig"];
|
|
1222
|
+
};
|
|
1223
|
+
functionRoute: {
|
|
1224
|
+
pattern?: string;
|
|
1225
|
+
literal?: string;
|
|
1226
|
+
expression?: string;
|
|
1227
|
+
methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS")[];
|
|
1228
|
+
prefer_static?: boolean;
|
|
1229
|
+
};
|
|
1230
|
+
excludedFunctionRoute: {
|
|
1231
|
+
pattern?: string;
|
|
1232
|
+
literal?: string;
|
|
1233
|
+
expression?: string;
|
|
1234
|
+
};
|
|
1235
|
+
trafficRulesConfig: {
|
|
1236
|
+
action?: {
|
|
1237
|
+
type?: string;
|
|
1238
|
+
config?: {
|
|
1239
|
+
to?: string;
|
|
1240
|
+
rate_limit_config?: components["schemas"]["trafficRulesRateLimitConfig"];
|
|
1241
|
+
aggregate?: components["schemas"]["trafficRulesAggregateConfig"];
|
|
1242
|
+
};
|
|
1243
|
+
};
|
|
1244
|
+
};
|
|
1245
|
+
trafficRulesRateLimitConfig: {
|
|
1246
|
+
/** @enum {string} */
|
|
1247
|
+
algorithm?: "sliding_window";
|
|
1248
|
+
window_size?: number;
|
|
1249
|
+
window_limit?: number;
|
|
1250
|
+
};
|
|
1251
|
+
trafficRulesAggregateConfig: {
|
|
1252
|
+
keys?: {
|
|
1253
|
+
/** @enum {string} */
|
|
1254
|
+
type?: "ip" | "domain";
|
|
1255
|
+
}[];
|
|
1256
|
+
};
|
|
1257
|
+
siteFunction: {
|
|
1258
|
+
branch?: string;
|
|
1259
|
+
/** Format: dateTime */
|
|
1260
|
+
created_at?: string;
|
|
1261
|
+
functions?: { [key: string]: unknown }[];
|
|
1262
|
+
id?: string;
|
|
1263
|
+
log_type?: string;
|
|
1264
|
+
provider?: string;
|
|
1265
|
+
};
|
|
1266
|
+
devServer: {
|
|
1267
|
+
id?: string;
|
|
1268
|
+
site_id?: string;
|
|
1269
|
+
branch?: string;
|
|
1270
|
+
url?: string;
|
|
1271
|
+
state?: string;
|
|
1272
|
+
/** Format: dateTime */
|
|
1273
|
+
created_at?: string;
|
|
1274
|
+
/** Format: dateTime */
|
|
1275
|
+
updated_at?: string;
|
|
1276
|
+
/** Format: dateTime */
|
|
1277
|
+
starting_at?: string;
|
|
1278
|
+
/** Format: dateTime */
|
|
1279
|
+
error_at?: string;
|
|
1280
|
+
/** Format: dateTime */
|
|
1281
|
+
live_at?: string;
|
|
1282
|
+
/** Format: dateTime */
|
|
1283
|
+
done_at?: string;
|
|
1284
|
+
title?: string;
|
|
1285
|
+
};
|
|
1286
|
+
devServerHook: {
|
|
1287
|
+
id?: string;
|
|
1288
|
+
title?: string;
|
|
1289
|
+
branch?: string;
|
|
1290
|
+
url?: string;
|
|
1291
|
+
site_id?: string;
|
|
1292
|
+
/** Format: dateTime */
|
|
1293
|
+
created_at?: string;
|
|
1294
|
+
/** @enum {string} */
|
|
1295
|
+
type?: "new_dev_server" | "content_refresh";
|
|
1296
|
+
};
|
|
1297
|
+
devServerHookSetup: {
|
|
1298
|
+
title?: string;
|
|
1299
|
+
branch?: string;
|
|
1300
|
+
/** @enum {string} */
|
|
1301
|
+
type?: "new_dev_server" | "content_refresh";
|
|
1302
|
+
};
|
|
1303
|
+
};
|
|
1304
|
+
responses: {
|
|
1305
|
+
/** error */
|
|
1306
|
+
error: {
|
|
1307
|
+
content: {
|
|
1308
|
+
"application/json": components["schemas"]["error"];
|
|
1309
|
+
};
|
|
1310
|
+
};
|
|
1311
|
+
};
|
|
1312
|
+
parameters: {
|
|
1313
|
+
page: number;
|
|
1314
|
+
perPage: number;
|
|
1315
|
+
retryCount: number;
|
|
1316
|
+
};
|
|
1317
|
+
requestBodies: {
|
|
1318
|
+
devServerHookSetup: {
|
|
1319
|
+
content: {
|
|
1320
|
+
"application/json": components["schemas"]["devServerHookSetup"];
|
|
1321
|
+
};
|
|
1322
|
+
};
|
|
1323
|
+
createServiceInstanceConfig: {
|
|
1324
|
+
content: {
|
|
1325
|
+
"application/json": { [key: string]: unknown };
|
|
1326
|
+
};
|
|
1327
|
+
};
|
|
1328
|
+
snippet: {
|
|
1329
|
+
content: {
|
|
1330
|
+
"application/json": components["schemas"]["snippet"];
|
|
1331
|
+
};
|
|
1332
|
+
};
|
|
1333
|
+
deployFiles: {
|
|
1334
|
+
content: {
|
|
1335
|
+
"application/json": components["schemas"]["deployFiles"];
|
|
1336
|
+
};
|
|
1337
|
+
};
|
|
1338
|
+
uploadDeployFileFileBody: {
|
|
1339
|
+
content: {
|
|
1340
|
+
"application/octet-stream": string;
|
|
1341
|
+
};
|
|
1342
|
+
};
|
|
1343
|
+
siteSetup: {
|
|
1344
|
+
content: {
|
|
1345
|
+
"application/json": components["schemas"]["siteSetup"];
|
|
1346
|
+
};
|
|
1347
|
+
};
|
|
1348
|
+
buildHookSetup: {
|
|
1349
|
+
content: {
|
|
1350
|
+
"application/json": components["schemas"]["buildHookSetup"];
|
|
1351
|
+
};
|
|
1352
|
+
};
|
|
1353
|
+
hook: {
|
|
1354
|
+
content: {
|
|
1355
|
+
"application/json": components["schemas"]["hook"];
|
|
1356
|
+
};
|
|
1357
|
+
};
|
|
1358
|
+
splitTestSetup: {
|
|
1359
|
+
content: {
|
|
1360
|
+
"application/json": components["schemas"]["splitTestSetup"];
|
|
1361
|
+
};
|
|
1362
|
+
};
|
|
1363
|
+
};
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
export interface operations {
|
|
1367
|
+
/** **Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables. */
|
|
1368
|
+
listSites: {
|
|
1369
|
+
parameters: {
|
|
1370
|
+
query: {
|
|
1371
|
+
name?: string;
|
|
1372
|
+
filter?: "all" | "owner" | "guest";
|
|
1373
|
+
page?: components["parameters"]["page"];
|
|
1374
|
+
per_page?: components["parameters"]["perPage"];
|
|
1375
|
+
};
|
|
1376
|
+
};
|
|
1377
|
+
responses: {
|
|
1378
|
+
/** OK */
|
|
1379
|
+
200: {
|
|
1380
|
+
content: {
|
|
1381
|
+
"application/json": components["schemas"]["site"][];
|
|
1382
|
+
};
|
|
1383
|
+
};
|
|
1384
|
+
default: components["responses"]["error"];
|
|
1385
|
+
};
|
|
1386
|
+
};
|
|
1387
|
+
/** **Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [createEnvVars](#tag/environmentVariables/operation/createEnvVars) to create environment variables for a site. */
|
|
1388
|
+
createSite: {
|
|
1389
|
+
parameters: {
|
|
1390
|
+
query: {
|
|
1391
|
+
configure_dns?: boolean;
|
|
1392
|
+
};
|
|
1393
|
+
};
|
|
1394
|
+
responses: {
|
|
1395
|
+
/** Created */
|
|
1396
|
+
201: {
|
|
1397
|
+
content: {
|
|
1398
|
+
"application/json": components["schemas"]["site"];
|
|
1399
|
+
};
|
|
1400
|
+
};
|
|
1401
|
+
default: components["responses"]["error"];
|
|
1402
|
+
};
|
|
1403
|
+
requestBody: components["requestBodies"]["siteSetup"];
|
|
1404
|
+
};
|
|
1405
|
+
/** **Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables. */
|
|
1406
|
+
getSite: {
|
|
1407
|
+
parameters: {
|
|
1408
|
+
path: {
|
|
1409
|
+
site_id: string;
|
|
1410
|
+
};
|
|
1411
|
+
};
|
|
1412
|
+
responses: {
|
|
1413
|
+
/** OK */
|
|
1414
|
+
200: {
|
|
1415
|
+
content: {
|
|
1416
|
+
"application/json": components["schemas"]["site"];
|
|
1417
|
+
};
|
|
1418
|
+
};
|
|
1419
|
+
default: components["responses"]["error"];
|
|
1420
|
+
};
|
|
1421
|
+
};
|
|
1422
|
+
deleteSite: {
|
|
1423
|
+
parameters: {
|
|
1424
|
+
path: {
|
|
1425
|
+
site_id: string;
|
|
1426
|
+
};
|
|
1427
|
+
};
|
|
1428
|
+
responses: {
|
|
1429
|
+
/** Deleted */
|
|
1430
|
+
204: never;
|
|
1431
|
+
default: components["responses"]["error"];
|
|
1432
|
+
};
|
|
1433
|
+
};
|
|
1434
|
+
/** **Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [updateEnvVar](#tag/environmentVariables/operation/updateEnvVar) to update a site's environment variables. */
|
|
1435
|
+
updateSite: {
|
|
1436
|
+
parameters: {
|
|
1437
|
+
path: {
|
|
1438
|
+
site_id: string;
|
|
1439
|
+
};
|
|
1440
|
+
};
|
|
1441
|
+
responses: {
|
|
1442
|
+
/** OK */
|
|
1443
|
+
200: {
|
|
1444
|
+
content: {
|
|
1445
|
+
"application/json": components["schemas"]["site"];
|
|
1446
|
+
};
|
|
1447
|
+
};
|
|
1448
|
+
default: components["responses"]["error"];
|
|
1449
|
+
};
|
|
1450
|
+
requestBody: components["requestBodies"]["siteSetup"];
|
|
1451
|
+
};
|
|
1452
|
+
showSiteTLSCertificate: {
|
|
1453
|
+
parameters: {
|
|
1454
|
+
path: {
|
|
1455
|
+
site_id: string;
|
|
1456
|
+
};
|
|
1457
|
+
};
|
|
1458
|
+
responses: {
|
|
1459
|
+
/** OK */
|
|
1460
|
+
200: {
|
|
1461
|
+
content: {
|
|
1462
|
+
"application/json": components["schemas"]["sniCertificate"];
|
|
1463
|
+
};
|
|
1464
|
+
};
|
|
1465
|
+
default: components["responses"]["error"];
|
|
1466
|
+
};
|
|
1467
|
+
};
|
|
1468
|
+
provisionSiteTLSCertificate: {
|
|
1469
|
+
parameters: {
|
|
1470
|
+
path: {
|
|
1471
|
+
site_id: string;
|
|
1472
|
+
};
|
|
1473
|
+
query: {
|
|
1474
|
+
certificate?: string;
|
|
1475
|
+
key?: string;
|
|
1476
|
+
ca_certificates?: string;
|
|
1477
|
+
};
|
|
1478
|
+
};
|
|
1479
|
+
responses: {
|
|
1480
|
+
/** OK */
|
|
1481
|
+
200: {
|
|
1482
|
+
content: {
|
|
1483
|
+
"application/json": components["schemas"]["sniCertificate"];
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
default: components["responses"]["error"];
|
|
1487
|
+
};
|
|
1488
|
+
};
|
|
1489
|
+
/** Returns all environment variables for an account or site. An account corresponds to a team in the Netlify UI. */
|
|
1490
|
+
getEnvVars: {
|
|
1491
|
+
parameters: {
|
|
1492
|
+
path: {
|
|
1493
|
+
/** Scope response to account_id */
|
|
1494
|
+
account_id: string;
|
|
1495
|
+
};
|
|
1496
|
+
query: {
|
|
1497
|
+
/** Filter by deploy context */
|
|
1498
|
+
context_name?:
|
|
1499
|
+
| "all"
|
|
1500
|
+
| "dev"
|
|
1501
|
+
| "branch-deploy"
|
|
1502
|
+
| "deploy-preview"
|
|
1503
|
+
| "production";
|
|
1504
|
+
/** Filter by scope */
|
|
1505
|
+
scope?: "builds" | "functions" | "runtime" | "post-processing";
|
|
1506
|
+
/** If specified, only return environment variables set on this site */
|
|
1507
|
+
site_id?: string;
|
|
1508
|
+
};
|
|
1509
|
+
};
|
|
1510
|
+
responses: {
|
|
1511
|
+
/** OK */
|
|
1512
|
+
200: {
|
|
1513
|
+
content: {
|
|
1514
|
+
"application/json": components["schemas"]["envVar"][];
|
|
1515
|
+
};
|
|
1516
|
+
};
|
|
1517
|
+
default: components["responses"]["error"];
|
|
1518
|
+
};
|
|
1519
|
+
};
|
|
1520
|
+
/** Creates new environment variables. Granular scopes are available on Pro plans and above. */
|
|
1521
|
+
createEnvVars: {
|
|
1522
|
+
parameters: {
|
|
1523
|
+
path: {
|
|
1524
|
+
/** Scope response to account_id */
|
|
1525
|
+
account_id: string;
|
|
1526
|
+
};
|
|
1527
|
+
query: {
|
|
1528
|
+
/** If provided, create an environment variable on the site level, not the account level */
|
|
1529
|
+
site_id?: string;
|
|
1530
|
+
};
|
|
1531
|
+
};
|
|
1532
|
+
responses: {
|
|
1533
|
+
/** OK */
|
|
1534
|
+
201: {
|
|
1535
|
+
content: {
|
|
1536
|
+
"application/json": components["schemas"]["envVar"][];
|
|
1537
|
+
};
|
|
1538
|
+
};
|
|
1539
|
+
default: components["responses"]["error"];
|
|
1540
|
+
};
|
|
1541
|
+
requestBody: {
|
|
1542
|
+
content: {
|
|
1543
|
+
"application/json": {
|
|
1544
|
+
/** @description The existing or new name of the key, if you wish to rename it (case-sensitive) */
|
|
1545
|
+
key?: string;
|
|
1546
|
+
/** @description The scopes that this environment variable is set to (Pro plans and above) */
|
|
1547
|
+
scopes?: ("builds" | "functions" | "runtime" | "post-processing")[];
|
|
1548
|
+
values?: components["schemas"]["envVarValue"][];
|
|
1549
|
+
/** @description Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only) */
|
|
1550
|
+
is_secret?: boolean;
|
|
1551
|
+
}[];
|
|
1552
|
+
};
|
|
1553
|
+
};
|
|
1554
|
+
};
|
|
1555
|
+
/** Returns all environment variables for a site. This convenience method behaves the same as `getEnvVars` but doesn't require an `account_id` as input. */
|
|
1556
|
+
getSiteEnvVars: {
|
|
1557
|
+
parameters: {
|
|
1558
|
+
query: {
|
|
1559
|
+
/** Filter by deploy context */
|
|
1560
|
+
context_name?:
|
|
1561
|
+
| "all"
|
|
1562
|
+
| "dev"
|
|
1563
|
+
| "branch-deploy"
|
|
1564
|
+
| "deploy-preview"
|
|
1565
|
+
| "production";
|
|
1566
|
+
/** Filter by scope */
|
|
1567
|
+
scope?: "builds" | "functions" | "runtime" | "post_processing";
|
|
1568
|
+
};
|
|
1569
|
+
path: {
|
|
1570
|
+
/** Scope response to site_id */
|
|
1571
|
+
site_id: string;
|
|
1572
|
+
};
|
|
1573
|
+
};
|
|
1574
|
+
responses: {
|
|
1575
|
+
/** OK */
|
|
1576
|
+
200: {
|
|
1577
|
+
content: {
|
|
1578
|
+
"application/json": components["schemas"]["envVar"][];
|
|
1579
|
+
};
|
|
1580
|
+
};
|
|
1581
|
+
default: components["responses"]["error"];
|
|
1582
|
+
};
|
|
1583
|
+
};
|
|
1584
|
+
/** Returns an individual environment variable. */
|
|
1585
|
+
getEnvVar: {
|
|
1586
|
+
parameters: {
|
|
1587
|
+
path: {
|
|
1588
|
+
/** Scope response to account_id */
|
|
1589
|
+
account_id: string;
|
|
1590
|
+
/** The environment variable key (case-sensitive) */
|
|
1591
|
+
key: string;
|
|
1592
|
+
};
|
|
1593
|
+
query: {
|
|
1594
|
+
/** If provided, return the environment variable for a specific site (no merging is performed) */
|
|
1595
|
+
site_id?: string;
|
|
1596
|
+
};
|
|
1597
|
+
};
|
|
1598
|
+
responses: {
|
|
1599
|
+
/** OK */
|
|
1600
|
+
200: {
|
|
1601
|
+
content: {
|
|
1602
|
+
"application/json": components["schemas"]["envVar"];
|
|
1603
|
+
};
|
|
1604
|
+
};
|
|
1605
|
+
default: components["responses"]["error"];
|
|
1606
|
+
};
|
|
1607
|
+
};
|
|
1608
|
+
/** Updates an existing environment variable and all of its values. Existing values will be replaced by values provided. */
|
|
1609
|
+
updateEnvVar: {
|
|
1610
|
+
parameters: {
|
|
1611
|
+
path: {
|
|
1612
|
+
/** Scope response to account_id */
|
|
1613
|
+
account_id: string;
|
|
1614
|
+
/** The existing environment variable key name (case-sensitive) */
|
|
1615
|
+
key: string;
|
|
1616
|
+
};
|
|
1617
|
+
query: {
|
|
1618
|
+
/** If provided, update an environment variable set on this site */
|
|
1619
|
+
site_id?: string;
|
|
1620
|
+
};
|
|
1621
|
+
};
|
|
1622
|
+
responses: {
|
|
1623
|
+
/** OK */
|
|
1624
|
+
200: {
|
|
1625
|
+
content: {
|
|
1626
|
+
"application/json": components["schemas"]["envVar"];
|
|
1627
|
+
};
|
|
1628
|
+
};
|
|
1629
|
+
default: components["responses"]["error"];
|
|
1630
|
+
};
|
|
1631
|
+
requestBody: {
|
|
1632
|
+
content: {
|
|
1633
|
+
"application/json": {
|
|
1634
|
+
/** @description The existing or new name of the key, if you wish to rename it (case-sensitive) */
|
|
1635
|
+
key?: string;
|
|
1636
|
+
/** @description The scopes that this environment variable is set to (Pro plans and above) */
|
|
1637
|
+
scopes?: ("builds" | "functions" | "runtime" | "post-processing")[];
|
|
1638
|
+
values?: components["schemas"]["envVarValue"][];
|
|
1639
|
+
/** @description Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only) */
|
|
1640
|
+
is_secret?: boolean;
|
|
1641
|
+
};
|
|
1642
|
+
};
|
|
1643
|
+
};
|
|
1644
|
+
};
|
|
1645
|
+
/** Deletes an environment variable */
|
|
1646
|
+
deleteEnvVar: {
|
|
1647
|
+
parameters: {
|
|
1648
|
+
path: {
|
|
1649
|
+
/** Scope response to account_id */
|
|
1650
|
+
account_id: string;
|
|
1651
|
+
/** The environment variable key (case-sensitive) */
|
|
1652
|
+
key: string;
|
|
1653
|
+
};
|
|
1654
|
+
query: {
|
|
1655
|
+
/** If provided, delete the environment variable from this site */
|
|
1656
|
+
site_id?: string;
|
|
1657
|
+
};
|
|
1658
|
+
};
|
|
1659
|
+
responses: {
|
|
1660
|
+
/** No Content (success) */
|
|
1661
|
+
204: never;
|
|
1662
|
+
default: components["responses"]["error"];
|
|
1663
|
+
};
|
|
1664
|
+
};
|
|
1665
|
+
/** Updates or creates a new value for an existing environment variable. */
|
|
1666
|
+
setEnvVarValue: {
|
|
1667
|
+
parameters: {
|
|
1668
|
+
path: {
|
|
1669
|
+
/** Scope response to account_id */
|
|
1670
|
+
account_id: string;
|
|
1671
|
+
/** The existing environment variable key name (case-sensitive) */
|
|
1672
|
+
key: string;
|
|
1673
|
+
};
|
|
1674
|
+
query: {
|
|
1675
|
+
/** If provided, update an environment variable set on this site */
|
|
1676
|
+
site_id?: string;
|
|
1677
|
+
};
|
|
1678
|
+
};
|
|
1679
|
+
responses: {
|
|
1680
|
+
/** Created (success) */
|
|
1681
|
+
201: {
|
|
1682
|
+
content: {
|
|
1683
|
+
"application/json": components["schemas"]["envVar"];
|
|
1684
|
+
};
|
|
1685
|
+
};
|
|
1686
|
+
default: components["responses"]["error"];
|
|
1687
|
+
};
|
|
1688
|
+
requestBody: {
|
|
1689
|
+
content: {
|
|
1690
|
+
"application/json": {
|
|
1691
|
+
/**
|
|
1692
|
+
* @description The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`. `branch` must be provided with a value in `context_parameter`.
|
|
1693
|
+
* @enum {string}
|
|
1694
|
+
*/
|
|
1695
|
+
context?:
|
|
1696
|
+
| "all"
|
|
1697
|
+
| "dev"
|
|
1698
|
+
| "branch-deploy"
|
|
1699
|
+
| "deploy-preview"
|
|
1700
|
+
| "production"
|
|
1701
|
+
| "branch";
|
|
1702
|
+
/** @description An additional parameter for custom branches. Currently, this is used for providing a branch name when `context=branch`. */
|
|
1703
|
+
context_parameter?: string;
|
|
1704
|
+
/** @description The environment variable's unencrypted value */
|
|
1705
|
+
value?: string;
|
|
1706
|
+
};
|
|
1707
|
+
};
|
|
1708
|
+
};
|
|
1709
|
+
};
|
|
1710
|
+
/** Deletes a specific environment variable value. */
|
|
1711
|
+
deleteEnvVarValue: {
|
|
1712
|
+
parameters: {
|
|
1713
|
+
path: {
|
|
1714
|
+
/** Scope response to account_id */
|
|
1715
|
+
account_id: string;
|
|
1716
|
+
/** The environment variable value's ID */
|
|
1717
|
+
id: string;
|
|
1718
|
+
/** The environment variable key name (case-sensitive) */
|
|
1719
|
+
key: string;
|
|
1720
|
+
};
|
|
1721
|
+
query: {
|
|
1722
|
+
/** If provided, delete the value from an environment variable on this site */
|
|
1723
|
+
site_id?: string;
|
|
1724
|
+
};
|
|
1725
|
+
};
|
|
1726
|
+
responses: {
|
|
1727
|
+
/** No Content (success) */
|
|
1728
|
+
204: never;
|
|
1729
|
+
default: components["responses"]["error"];
|
|
1730
|
+
};
|
|
1731
|
+
};
|
|
1732
|
+
searchSiteFunctions: {
|
|
1733
|
+
parameters: {
|
|
1734
|
+
path: {
|
|
1735
|
+
site_id: string;
|
|
1736
|
+
};
|
|
1737
|
+
query: {
|
|
1738
|
+
filter?: string;
|
|
1739
|
+
};
|
|
1740
|
+
};
|
|
1741
|
+
responses: {
|
|
1742
|
+
/** OK */
|
|
1743
|
+
200: {
|
|
1744
|
+
content: {
|
|
1745
|
+
"application/json": components["schemas"]["siteFunction"][];
|
|
1746
|
+
};
|
|
1747
|
+
};
|
|
1748
|
+
default: components["responses"]["error"];
|
|
1749
|
+
};
|
|
1750
|
+
};
|
|
1751
|
+
listSiteForms: {
|
|
1752
|
+
parameters: {
|
|
1753
|
+
path: {
|
|
1754
|
+
site_id: string;
|
|
1755
|
+
};
|
|
1756
|
+
};
|
|
1757
|
+
responses: {
|
|
1758
|
+
/** OK */
|
|
1759
|
+
200: {
|
|
1760
|
+
content: {
|
|
1761
|
+
"application/json": components["schemas"]["form"][];
|
|
1762
|
+
};
|
|
1763
|
+
};
|
|
1764
|
+
default: components["responses"]["error"];
|
|
1765
|
+
};
|
|
1766
|
+
};
|
|
1767
|
+
deleteSiteForm: {
|
|
1768
|
+
parameters: {
|
|
1769
|
+
path: {
|
|
1770
|
+
site_id: string;
|
|
1771
|
+
form_id: string;
|
|
1772
|
+
};
|
|
1773
|
+
};
|
|
1774
|
+
responses: {
|
|
1775
|
+
/** Deleted */
|
|
1776
|
+
204: never;
|
|
1777
|
+
default: components["responses"]["error"];
|
|
1778
|
+
};
|
|
1779
|
+
};
|
|
1780
|
+
listSiteSubmissions: {
|
|
1781
|
+
parameters: {
|
|
1782
|
+
path: {
|
|
1783
|
+
site_id: string;
|
|
1784
|
+
};
|
|
1785
|
+
query: {
|
|
1786
|
+
page?: components["parameters"]["page"];
|
|
1787
|
+
per_page?: components["parameters"]["perPage"];
|
|
1788
|
+
};
|
|
1789
|
+
};
|
|
1790
|
+
responses: {
|
|
1791
|
+
/** OK */
|
|
1792
|
+
200: {
|
|
1793
|
+
content: {
|
|
1794
|
+
"application/json": components["schemas"]["submission"][];
|
|
1795
|
+
};
|
|
1796
|
+
};
|
|
1797
|
+
default: components["responses"]["error"];
|
|
1798
|
+
};
|
|
1799
|
+
};
|
|
1800
|
+
listSiteFiles: {
|
|
1801
|
+
parameters: {
|
|
1802
|
+
path: {
|
|
1803
|
+
site_id: string;
|
|
1804
|
+
};
|
|
1805
|
+
};
|
|
1806
|
+
responses: {
|
|
1807
|
+
/** OK */
|
|
1808
|
+
200: {
|
|
1809
|
+
content: {
|
|
1810
|
+
"application/json": components["schemas"]["file"][];
|
|
1811
|
+
};
|
|
1812
|
+
};
|
|
1813
|
+
default: components["responses"]["error"];
|
|
1814
|
+
};
|
|
1815
|
+
};
|
|
1816
|
+
listSiteAssets: {
|
|
1817
|
+
parameters: {
|
|
1818
|
+
path: {
|
|
1819
|
+
site_id: string;
|
|
1820
|
+
};
|
|
1821
|
+
};
|
|
1822
|
+
responses: {
|
|
1823
|
+
/** OK */
|
|
1824
|
+
200: {
|
|
1825
|
+
content: {
|
|
1826
|
+
"application/json": components["schemas"]["asset"][];
|
|
1827
|
+
};
|
|
1828
|
+
};
|
|
1829
|
+
default: components["responses"]["error"];
|
|
1830
|
+
};
|
|
1831
|
+
};
|
|
1832
|
+
createSiteAsset: {
|
|
1833
|
+
parameters: {
|
|
1834
|
+
path: {
|
|
1835
|
+
site_id: string;
|
|
1836
|
+
};
|
|
1837
|
+
query: {
|
|
1838
|
+
name: string;
|
|
1839
|
+
size: number;
|
|
1840
|
+
content_type: string;
|
|
1841
|
+
visibility?: string;
|
|
1842
|
+
};
|
|
1843
|
+
};
|
|
1844
|
+
responses: {
|
|
1845
|
+
/** Created */
|
|
1846
|
+
201: {
|
|
1847
|
+
content: {
|
|
1848
|
+
"application/json": components["schemas"]["assetSignature"];
|
|
1849
|
+
};
|
|
1850
|
+
};
|
|
1851
|
+
default: components["responses"]["error"];
|
|
1852
|
+
};
|
|
1853
|
+
};
|
|
1854
|
+
getSiteAssetInfo: {
|
|
1855
|
+
parameters: {
|
|
1856
|
+
path: {
|
|
1857
|
+
site_id: string;
|
|
1858
|
+
asset_id: string;
|
|
1859
|
+
};
|
|
1860
|
+
};
|
|
1861
|
+
responses: {
|
|
1862
|
+
/** OK */
|
|
1863
|
+
200: {
|
|
1864
|
+
content: {
|
|
1865
|
+
"application/json": components["schemas"]["asset"];
|
|
1866
|
+
};
|
|
1867
|
+
};
|
|
1868
|
+
default: components["responses"]["error"];
|
|
1869
|
+
};
|
|
1870
|
+
};
|
|
1871
|
+
updateSiteAsset: {
|
|
1872
|
+
parameters: {
|
|
1873
|
+
path: {
|
|
1874
|
+
site_id: string;
|
|
1875
|
+
asset_id: string;
|
|
1876
|
+
};
|
|
1877
|
+
query: {
|
|
1878
|
+
state: string;
|
|
1879
|
+
};
|
|
1880
|
+
};
|
|
1881
|
+
responses: {
|
|
1882
|
+
/** Updated */
|
|
1883
|
+
200: {
|
|
1884
|
+
content: {
|
|
1885
|
+
"application/json": components["schemas"]["asset"];
|
|
1886
|
+
};
|
|
1887
|
+
};
|
|
1888
|
+
default: components["responses"]["error"];
|
|
1889
|
+
};
|
|
1890
|
+
};
|
|
1891
|
+
deleteSiteAsset: {
|
|
1892
|
+
parameters: {
|
|
1893
|
+
path: {
|
|
1894
|
+
site_id: string;
|
|
1895
|
+
asset_id: string;
|
|
1896
|
+
};
|
|
1897
|
+
};
|
|
1898
|
+
responses: {
|
|
1899
|
+
/** Deleted */
|
|
1900
|
+
204: never;
|
|
1901
|
+
default: components["responses"]["error"];
|
|
1902
|
+
};
|
|
1903
|
+
};
|
|
1904
|
+
getSiteAssetPublicSignature: {
|
|
1905
|
+
parameters: {
|
|
1906
|
+
path: {
|
|
1907
|
+
site_id: string;
|
|
1908
|
+
asset_id: string;
|
|
1909
|
+
};
|
|
1910
|
+
};
|
|
1911
|
+
responses: {
|
|
1912
|
+
/** OK */
|
|
1913
|
+
200: {
|
|
1914
|
+
content: {
|
|
1915
|
+
"application/json": components["schemas"]["assetPublicSignature"];
|
|
1916
|
+
};
|
|
1917
|
+
};
|
|
1918
|
+
default: components["responses"]["error"];
|
|
1919
|
+
};
|
|
1920
|
+
};
|
|
1921
|
+
getSiteFileByPathName: {
|
|
1922
|
+
parameters: {
|
|
1923
|
+
path: {
|
|
1924
|
+
site_id: string;
|
|
1925
|
+
file_path: string;
|
|
1926
|
+
};
|
|
1927
|
+
};
|
|
1928
|
+
responses: {
|
|
1929
|
+
/** OK */
|
|
1930
|
+
200: {
|
|
1931
|
+
content: {
|
|
1932
|
+
"application/json": components["schemas"]["file"];
|
|
1933
|
+
};
|
|
1934
|
+
};
|
|
1935
|
+
default: components["responses"]["error"];
|
|
1936
|
+
};
|
|
1937
|
+
};
|
|
1938
|
+
/** Purges cached content from Netlify's CDN. Supports purging by Cache-Tag. */
|
|
1939
|
+
purgeCache: {
|
|
1940
|
+
responses: {
|
|
1941
|
+
/** OK */
|
|
1942
|
+
202: unknown;
|
|
1943
|
+
/** Invalid request parameters */
|
|
1944
|
+
400: unknown;
|
|
1945
|
+
/** Site not found */
|
|
1946
|
+
404: unknown;
|
|
1947
|
+
};
|
|
1948
|
+
requestBody: {
|
|
1949
|
+
content: {
|
|
1950
|
+
"application/json": components["schemas"]["purge"];
|
|
1951
|
+
};
|
|
1952
|
+
};
|
|
1953
|
+
};
|
|
1954
|
+
listSiteSnippets: {
|
|
1955
|
+
parameters: {
|
|
1956
|
+
path: {
|
|
1957
|
+
site_id: string;
|
|
1958
|
+
};
|
|
1959
|
+
};
|
|
1960
|
+
responses: {
|
|
1961
|
+
/** OK */
|
|
1962
|
+
200: {
|
|
1963
|
+
content: {
|
|
1964
|
+
"application/json": components["schemas"]["snippet"][];
|
|
1965
|
+
};
|
|
1966
|
+
};
|
|
1967
|
+
default: components["responses"]["error"];
|
|
1968
|
+
};
|
|
1969
|
+
};
|
|
1970
|
+
createSiteSnippet: {
|
|
1971
|
+
parameters: {
|
|
1972
|
+
path: {
|
|
1973
|
+
site_id: string;
|
|
1974
|
+
};
|
|
1975
|
+
};
|
|
1976
|
+
responses: {
|
|
1977
|
+
/** OK */
|
|
1978
|
+
201: {
|
|
1979
|
+
content: {
|
|
1980
|
+
"application/json": components["schemas"]["snippet"];
|
|
1981
|
+
};
|
|
1982
|
+
};
|
|
1983
|
+
default: components["responses"]["error"];
|
|
1984
|
+
};
|
|
1985
|
+
requestBody: components["requestBodies"]["snippet"];
|
|
1986
|
+
};
|
|
1987
|
+
getSiteSnippet: {
|
|
1988
|
+
parameters: {
|
|
1989
|
+
path: {
|
|
1990
|
+
site_id: string;
|
|
1991
|
+
snippet_id: string;
|
|
1992
|
+
};
|
|
1993
|
+
};
|
|
1994
|
+
responses: {
|
|
1995
|
+
/** OK */
|
|
1996
|
+
200: {
|
|
1997
|
+
content: {
|
|
1998
|
+
"application/json": components["schemas"]["snippet"];
|
|
1999
|
+
};
|
|
2000
|
+
};
|
|
2001
|
+
default: components["responses"]["error"];
|
|
2002
|
+
};
|
|
2003
|
+
};
|
|
2004
|
+
updateSiteSnippet: {
|
|
2005
|
+
parameters: {
|
|
2006
|
+
path: {
|
|
2007
|
+
site_id: string;
|
|
2008
|
+
snippet_id: string;
|
|
2009
|
+
};
|
|
2010
|
+
};
|
|
2011
|
+
responses: {
|
|
2012
|
+
/** No content */
|
|
2013
|
+
204: never;
|
|
2014
|
+
default: components["responses"]["error"];
|
|
2015
|
+
};
|
|
2016
|
+
requestBody: components["requestBodies"]["snippet"];
|
|
2017
|
+
};
|
|
2018
|
+
deleteSiteSnippet: {
|
|
2019
|
+
parameters: {
|
|
2020
|
+
path: {
|
|
2021
|
+
site_id: string;
|
|
2022
|
+
snippet_id: string;
|
|
2023
|
+
};
|
|
2024
|
+
};
|
|
2025
|
+
responses: {
|
|
2026
|
+
/** No content */
|
|
2027
|
+
204: never;
|
|
2028
|
+
default: components["responses"]["error"];
|
|
2029
|
+
};
|
|
2030
|
+
};
|
|
2031
|
+
getSiteMetadata: {
|
|
2032
|
+
parameters: {
|
|
2033
|
+
path: {
|
|
2034
|
+
site_id: string;
|
|
2035
|
+
};
|
|
2036
|
+
};
|
|
2037
|
+
responses: {
|
|
2038
|
+
/** OK */
|
|
2039
|
+
200: {
|
|
2040
|
+
content: {
|
|
2041
|
+
"application/json": components["schemas"]["metadata"];
|
|
2042
|
+
};
|
|
2043
|
+
};
|
|
2044
|
+
default: components["responses"]["error"];
|
|
2045
|
+
};
|
|
2046
|
+
};
|
|
2047
|
+
updateSiteMetadata: {
|
|
2048
|
+
parameters: {
|
|
2049
|
+
path: {
|
|
2050
|
+
site_id: string;
|
|
2051
|
+
};
|
|
2052
|
+
};
|
|
2053
|
+
responses: {
|
|
2054
|
+
/** No content */
|
|
2055
|
+
204: never;
|
|
2056
|
+
default: components["responses"]["error"];
|
|
2057
|
+
};
|
|
2058
|
+
requestBody: {
|
|
2059
|
+
content: {
|
|
2060
|
+
"application/json": components["schemas"]["metadata"];
|
|
2061
|
+
};
|
|
2062
|
+
};
|
|
2063
|
+
};
|
|
2064
|
+
listSiteBuildHooks: {
|
|
2065
|
+
parameters: {
|
|
2066
|
+
path: {
|
|
2067
|
+
site_id: string;
|
|
2068
|
+
};
|
|
2069
|
+
};
|
|
2070
|
+
responses: {
|
|
2071
|
+
/** OK */
|
|
2072
|
+
200: {
|
|
2073
|
+
content: {
|
|
2074
|
+
"application/json": components["schemas"]["buildHook"][];
|
|
2075
|
+
};
|
|
2076
|
+
};
|
|
2077
|
+
default: components["responses"]["error"];
|
|
2078
|
+
};
|
|
2079
|
+
};
|
|
2080
|
+
createSiteBuildHook: {
|
|
2081
|
+
parameters: {
|
|
2082
|
+
path: {
|
|
2083
|
+
site_id: string;
|
|
2084
|
+
};
|
|
2085
|
+
};
|
|
2086
|
+
responses: {
|
|
2087
|
+
/** Created */
|
|
2088
|
+
201: {
|
|
2089
|
+
content: {
|
|
2090
|
+
"application/json": components["schemas"]["buildHook"];
|
|
2091
|
+
};
|
|
2092
|
+
};
|
|
2093
|
+
default: components["responses"]["error"];
|
|
2094
|
+
};
|
|
2095
|
+
requestBody: components["requestBodies"]["buildHookSetup"];
|
|
2096
|
+
};
|
|
2097
|
+
getSiteBuildHook: {
|
|
2098
|
+
parameters: {
|
|
2099
|
+
path: {
|
|
2100
|
+
site_id: string;
|
|
2101
|
+
id: string;
|
|
2102
|
+
};
|
|
2103
|
+
};
|
|
2104
|
+
responses: {
|
|
2105
|
+
/** OK */
|
|
2106
|
+
200: {
|
|
2107
|
+
content: {
|
|
2108
|
+
"application/json": components["schemas"]["buildHook"];
|
|
2109
|
+
};
|
|
2110
|
+
};
|
|
2111
|
+
default: components["responses"]["error"];
|
|
2112
|
+
};
|
|
2113
|
+
};
|
|
2114
|
+
updateSiteBuildHook: {
|
|
2115
|
+
parameters: {
|
|
2116
|
+
path: {
|
|
2117
|
+
site_id: string;
|
|
2118
|
+
id: string;
|
|
2119
|
+
};
|
|
2120
|
+
};
|
|
2121
|
+
responses: {
|
|
2122
|
+
/** No content */
|
|
2123
|
+
204: never;
|
|
2124
|
+
default: components["responses"]["error"];
|
|
2125
|
+
};
|
|
2126
|
+
requestBody: components["requestBodies"]["buildHookSetup"];
|
|
2127
|
+
};
|
|
2128
|
+
deleteSiteBuildHook: {
|
|
2129
|
+
parameters: {
|
|
2130
|
+
path: {
|
|
2131
|
+
site_id: string;
|
|
2132
|
+
id: string;
|
|
2133
|
+
};
|
|
2134
|
+
};
|
|
2135
|
+
responses: {
|
|
2136
|
+
/** No content */
|
|
2137
|
+
204: never;
|
|
2138
|
+
default: components["responses"]["error"];
|
|
2139
|
+
};
|
|
2140
|
+
};
|
|
2141
|
+
listSiteDeploys: {
|
|
2142
|
+
parameters: {
|
|
2143
|
+
path: {
|
|
2144
|
+
site_id: string;
|
|
2145
|
+
};
|
|
2146
|
+
query: {
|
|
2147
|
+
"deploy-previews"?: boolean;
|
|
2148
|
+
production?: boolean;
|
|
2149
|
+
state?:
|
|
2150
|
+
| "new"
|
|
2151
|
+
| "pending_review"
|
|
2152
|
+
| "accepted"
|
|
2153
|
+
| "rejected"
|
|
2154
|
+
| "enqueued"
|
|
2155
|
+
| "building"
|
|
2156
|
+
| "uploading"
|
|
2157
|
+
| "uploaded"
|
|
2158
|
+
| "preparing"
|
|
2159
|
+
| "prepared"
|
|
2160
|
+
| "processing"
|
|
2161
|
+
| "processed"
|
|
2162
|
+
| "ready"
|
|
2163
|
+
| "error"
|
|
2164
|
+
| "retrying";
|
|
2165
|
+
branch?: string;
|
|
2166
|
+
"latest-published"?: boolean;
|
|
2167
|
+
page?: components["parameters"]["page"];
|
|
2168
|
+
per_page?: components["parameters"]["perPage"];
|
|
2169
|
+
};
|
|
2170
|
+
};
|
|
2171
|
+
responses: {
|
|
2172
|
+
/** OK */
|
|
2173
|
+
200: {
|
|
2174
|
+
content: {
|
|
2175
|
+
"application/json": components["schemas"]["deploy"][];
|
|
2176
|
+
};
|
|
2177
|
+
};
|
|
2178
|
+
default: components["responses"]["error"];
|
|
2179
|
+
};
|
|
2180
|
+
};
|
|
2181
|
+
createSiteDeploy: {
|
|
2182
|
+
parameters: {
|
|
2183
|
+
path: {
|
|
2184
|
+
site_id: string;
|
|
2185
|
+
};
|
|
2186
|
+
query: {
|
|
2187
|
+
"deploy-previews"?: boolean;
|
|
2188
|
+
production?: boolean;
|
|
2189
|
+
state?:
|
|
2190
|
+
| "new"
|
|
2191
|
+
| "pending_review"
|
|
2192
|
+
| "accepted"
|
|
2193
|
+
| "rejected"
|
|
2194
|
+
| "enqueued"
|
|
2195
|
+
| "building"
|
|
2196
|
+
| "uploading"
|
|
2197
|
+
| "uploaded"
|
|
2198
|
+
| "preparing"
|
|
2199
|
+
| "prepared"
|
|
2200
|
+
| "processing"
|
|
2201
|
+
| "processed"
|
|
2202
|
+
| "ready"
|
|
2203
|
+
| "error"
|
|
2204
|
+
| "retrying";
|
|
2205
|
+
branch?: string;
|
|
2206
|
+
"latest-published"?: boolean;
|
|
2207
|
+
title?: string;
|
|
2208
|
+
};
|
|
2209
|
+
};
|
|
2210
|
+
responses: {
|
|
2211
|
+
/** OK */
|
|
2212
|
+
200: {
|
|
2213
|
+
content: {
|
|
2214
|
+
"application/json": components["schemas"]["deploy"];
|
|
2215
|
+
};
|
|
2216
|
+
};
|
|
2217
|
+
default: components["responses"]["error"];
|
|
2218
|
+
};
|
|
2219
|
+
requestBody: components["requestBodies"]["deployFiles"];
|
|
2220
|
+
};
|
|
2221
|
+
getSiteDeploy: {
|
|
2222
|
+
parameters: {
|
|
2223
|
+
path: {
|
|
2224
|
+
site_id: string;
|
|
2225
|
+
deploy_id: string;
|
|
2226
|
+
};
|
|
2227
|
+
};
|
|
2228
|
+
responses: {
|
|
2229
|
+
/** OK */
|
|
2230
|
+
200: {
|
|
2231
|
+
content: {
|
|
2232
|
+
"application/json": components["schemas"]["deploy"];
|
|
2233
|
+
};
|
|
2234
|
+
};
|
|
2235
|
+
default: components["responses"]["error"];
|
|
2236
|
+
};
|
|
2237
|
+
};
|
|
2238
|
+
updateSiteDeploy: {
|
|
2239
|
+
parameters: {
|
|
2240
|
+
path: {
|
|
2241
|
+
site_id: string;
|
|
2242
|
+
deploy_id: string;
|
|
2243
|
+
};
|
|
2244
|
+
};
|
|
2245
|
+
responses: {
|
|
2246
|
+
/** OK */
|
|
2247
|
+
200: {
|
|
2248
|
+
content: {
|
|
2249
|
+
"application/json": components["schemas"]["deploy"];
|
|
2250
|
+
};
|
|
2251
|
+
};
|
|
2252
|
+
default: components["responses"]["error"];
|
|
2253
|
+
};
|
|
2254
|
+
requestBody: components["requestBodies"]["deployFiles"];
|
|
2255
|
+
};
|
|
2256
|
+
deleteSiteDeploy: {
|
|
2257
|
+
parameters: {
|
|
2258
|
+
path: {
|
|
2259
|
+
deploy_id: string;
|
|
2260
|
+
site_id: string;
|
|
2261
|
+
};
|
|
2262
|
+
};
|
|
2263
|
+
responses: {
|
|
2264
|
+
/** No content */
|
|
2265
|
+
204: never;
|
|
2266
|
+
default: components["responses"]["error"];
|
|
2267
|
+
};
|
|
2268
|
+
};
|
|
2269
|
+
cancelSiteDeploy: {
|
|
2270
|
+
parameters: {
|
|
2271
|
+
path: {
|
|
2272
|
+
deploy_id: string;
|
|
2273
|
+
};
|
|
2274
|
+
};
|
|
2275
|
+
responses: {
|
|
2276
|
+
/** Cancelled */
|
|
2277
|
+
201: {
|
|
2278
|
+
content: {
|
|
2279
|
+
"application/json": components["schemas"]["deploy"];
|
|
2280
|
+
};
|
|
2281
|
+
};
|
|
2282
|
+
default: components["responses"]["error"];
|
|
2283
|
+
};
|
|
2284
|
+
};
|
|
2285
|
+
restoreSiteDeploy: {
|
|
2286
|
+
parameters: {
|
|
2287
|
+
path: {
|
|
2288
|
+
site_id: string;
|
|
2289
|
+
deploy_id: string;
|
|
2290
|
+
};
|
|
2291
|
+
};
|
|
2292
|
+
responses: {
|
|
2293
|
+
/** Created */
|
|
2294
|
+
201: {
|
|
2295
|
+
content: {
|
|
2296
|
+
"application/json": components["schemas"]["deploy"];
|
|
2297
|
+
};
|
|
2298
|
+
};
|
|
2299
|
+
default: components["responses"]["error"];
|
|
2300
|
+
};
|
|
2301
|
+
};
|
|
2302
|
+
listSiteBuilds: {
|
|
2303
|
+
parameters: {
|
|
2304
|
+
path: {
|
|
2305
|
+
site_id: string;
|
|
2306
|
+
};
|
|
2307
|
+
query: {
|
|
2308
|
+
page?: components["parameters"]["page"];
|
|
2309
|
+
per_page?: components["parameters"]["perPage"];
|
|
2310
|
+
};
|
|
2311
|
+
};
|
|
2312
|
+
responses: {
|
|
2313
|
+
/** OK */
|
|
2314
|
+
200: {
|
|
2315
|
+
content: {
|
|
2316
|
+
"application/json": components["schemas"]["build"][];
|
|
2317
|
+
};
|
|
2318
|
+
};
|
|
2319
|
+
default: components["responses"]["error"];
|
|
2320
|
+
};
|
|
2321
|
+
};
|
|
2322
|
+
createSiteBuild: {
|
|
2323
|
+
parameters: {
|
|
2324
|
+
path: {
|
|
2325
|
+
site_id: string;
|
|
2326
|
+
};
|
|
2327
|
+
};
|
|
2328
|
+
responses: {
|
|
2329
|
+
/** OK */
|
|
2330
|
+
200: {
|
|
2331
|
+
content: {
|
|
2332
|
+
"application/json": components["schemas"]["build"];
|
|
2333
|
+
};
|
|
2334
|
+
};
|
|
2335
|
+
default: components["responses"]["error"];
|
|
2336
|
+
};
|
|
2337
|
+
requestBody: {
|
|
2338
|
+
content: {
|
|
2339
|
+
"application/json": components["schemas"]["buildSetup"];
|
|
2340
|
+
};
|
|
2341
|
+
};
|
|
2342
|
+
};
|
|
2343
|
+
listSiteDeployedBranches: {
|
|
2344
|
+
parameters: {
|
|
2345
|
+
path: {
|
|
2346
|
+
site_id: string;
|
|
2347
|
+
};
|
|
2348
|
+
};
|
|
2349
|
+
responses: {
|
|
2350
|
+
/** OK */
|
|
2351
|
+
200: {
|
|
2352
|
+
content: {
|
|
2353
|
+
"application/json": components["schemas"]["deployedBranch"][];
|
|
2354
|
+
};
|
|
2355
|
+
};
|
|
2356
|
+
default: components["responses"]["error"];
|
|
2357
|
+
};
|
|
2358
|
+
};
|
|
2359
|
+
/**
|
|
2360
|
+
* [Beta] Unlinks the repo from the site.
|
|
2361
|
+
*
|
|
2362
|
+
* This action will also:
|
|
2363
|
+
* - Delete associated deploy keys
|
|
2364
|
+
* - Delete outgoing webhooks for the repo
|
|
2365
|
+
* - Delete the site's build hooks
|
|
2366
|
+
*/
|
|
2367
|
+
unlinkSiteRepo: {
|
|
2368
|
+
parameters: {
|
|
2369
|
+
path: {
|
|
2370
|
+
site_id: string;
|
|
2371
|
+
};
|
|
2372
|
+
};
|
|
2373
|
+
responses: {
|
|
2374
|
+
/** OK */
|
|
2375
|
+
200: {
|
|
2376
|
+
content: {
|
|
2377
|
+
"application/json": components["schemas"]["site"];
|
|
2378
|
+
};
|
|
2379
|
+
};
|
|
2380
|
+
/** Site not found */
|
|
2381
|
+
404: unknown;
|
|
2382
|
+
};
|
|
2383
|
+
};
|
|
2384
|
+
getSiteBuild: {
|
|
2385
|
+
parameters: {
|
|
2386
|
+
path: {
|
|
2387
|
+
build_id: string;
|
|
2388
|
+
};
|
|
2389
|
+
};
|
|
2390
|
+
responses: {
|
|
2391
|
+
/** OK */
|
|
2392
|
+
200: {
|
|
2393
|
+
content: {
|
|
2394
|
+
"application/json": components["schemas"]["build"];
|
|
2395
|
+
};
|
|
2396
|
+
};
|
|
2397
|
+
default: components["responses"]["error"];
|
|
2398
|
+
};
|
|
2399
|
+
};
|
|
2400
|
+
updateSiteBuildLog: {
|
|
2401
|
+
parameters: {
|
|
2402
|
+
path: {
|
|
2403
|
+
build_id: string;
|
|
2404
|
+
};
|
|
2405
|
+
};
|
|
2406
|
+
responses: {
|
|
2407
|
+
/** No content */
|
|
2408
|
+
204: never;
|
|
2409
|
+
default: components["responses"]["error"];
|
|
2410
|
+
};
|
|
2411
|
+
};
|
|
2412
|
+
notifyBuildStart: {
|
|
2413
|
+
parameters: {
|
|
2414
|
+
path: {
|
|
2415
|
+
build_id: string;
|
|
2416
|
+
};
|
|
2417
|
+
query: {
|
|
2418
|
+
buildbot_version?: string;
|
|
2419
|
+
build_version?: string;
|
|
2420
|
+
};
|
|
2421
|
+
};
|
|
2422
|
+
responses: {
|
|
2423
|
+
/** No content */
|
|
2424
|
+
204: never;
|
|
2425
|
+
default: components["responses"]["error"];
|
|
2426
|
+
};
|
|
2427
|
+
};
|
|
2428
|
+
getAccountBuildStatus: {
|
|
2429
|
+
parameters: {
|
|
2430
|
+
path: {
|
|
2431
|
+
account_id: string;
|
|
2432
|
+
};
|
|
2433
|
+
};
|
|
2434
|
+
responses: {
|
|
2435
|
+
/** OK */
|
|
2436
|
+
200: {
|
|
2437
|
+
content: {
|
|
2438
|
+
"application/json": components["schemas"]["buildStatus"][];
|
|
2439
|
+
};
|
|
2440
|
+
};
|
|
2441
|
+
default: components["responses"]["error"];
|
|
2442
|
+
};
|
|
2443
|
+
};
|
|
2444
|
+
getDNSForSite: {
|
|
2445
|
+
parameters: {
|
|
2446
|
+
path: {
|
|
2447
|
+
site_id: string;
|
|
2448
|
+
};
|
|
2449
|
+
};
|
|
2450
|
+
responses: {
|
|
2451
|
+
/** OK */
|
|
2452
|
+
200: {
|
|
2453
|
+
content: {
|
|
2454
|
+
"application/json": components["schemas"]["dnsZone"][];
|
|
2455
|
+
};
|
|
2456
|
+
};
|
|
2457
|
+
default: components["responses"]["error"];
|
|
2458
|
+
};
|
|
2459
|
+
};
|
|
2460
|
+
configureDNSForSite: {
|
|
2461
|
+
parameters: {
|
|
2462
|
+
path: {
|
|
2463
|
+
site_id: string;
|
|
2464
|
+
};
|
|
2465
|
+
};
|
|
2466
|
+
responses: {
|
|
2467
|
+
/** OK */
|
|
2468
|
+
200: {
|
|
2469
|
+
content: {
|
|
2470
|
+
"application/json": components["schemas"]["dnsZone"][];
|
|
2471
|
+
};
|
|
2472
|
+
};
|
|
2473
|
+
default: components["responses"]["error"];
|
|
2474
|
+
};
|
|
2475
|
+
};
|
|
2476
|
+
rollbackSiteDeploy: {
|
|
2477
|
+
parameters: {
|
|
2478
|
+
path: {
|
|
2479
|
+
site_id: string;
|
|
2480
|
+
};
|
|
2481
|
+
};
|
|
2482
|
+
responses: {
|
|
2483
|
+
/** No content */
|
|
2484
|
+
204: never;
|
|
2485
|
+
default: components["responses"]["error"];
|
|
2486
|
+
};
|
|
2487
|
+
};
|
|
2488
|
+
getDeploy: {
|
|
2489
|
+
parameters: {
|
|
2490
|
+
path: {
|
|
2491
|
+
deploy_id: string;
|
|
2492
|
+
};
|
|
2493
|
+
};
|
|
2494
|
+
responses: {
|
|
2495
|
+
/** OK */
|
|
2496
|
+
200: {
|
|
2497
|
+
content: {
|
|
2498
|
+
"application/json": components["schemas"]["deploy"];
|
|
2499
|
+
};
|
|
2500
|
+
};
|
|
2501
|
+
default: components["responses"]["error"];
|
|
2502
|
+
};
|
|
2503
|
+
};
|
|
2504
|
+
deleteDeploy: {
|
|
2505
|
+
parameters: {
|
|
2506
|
+
path: {
|
|
2507
|
+
deploy_id: string;
|
|
2508
|
+
};
|
|
2509
|
+
};
|
|
2510
|
+
responses: {
|
|
2511
|
+
/** No content */
|
|
2512
|
+
204: never;
|
|
2513
|
+
default: components["responses"]["error"];
|
|
2514
|
+
};
|
|
2515
|
+
};
|
|
2516
|
+
lockDeploy: {
|
|
2517
|
+
parameters: {
|
|
2518
|
+
path: {
|
|
2519
|
+
deploy_id: string;
|
|
2520
|
+
};
|
|
2521
|
+
};
|
|
2522
|
+
responses: {
|
|
2523
|
+
/** OK */
|
|
2524
|
+
200: {
|
|
2525
|
+
content: {
|
|
2526
|
+
"application/json": components["schemas"]["deploy"];
|
|
2527
|
+
};
|
|
2528
|
+
};
|
|
2529
|
+
default: components["responses"]["error"];
|
|
2530
|
+
};
|
|
2531
|
+
};
|
|
2532
|
+
unlockDeploy: {
|
|
2533
|
+
parameters: {
|
|
2534
|
+
path: {
|
|
2535
|
+
deploy_id: string;
|
|
2536
|
+
};
|
|
2537
|
+
};
|
|
2538
|
+
responses: {
|
|
2539
|
+
/** OK */
|
|
2540
|
+
200: {
|
|
2541
|
+
content: {
|
|
2542
|
+
"application/json": components["schemas"]["deploy"];
|
|
2543
|
+
};
|
|
2544
|
+
};
|
|
2545
|
+
default: components["responses"]["error"];
|
|
2546
|
+
};
|
|
2547
|
+
};
|
|
2548
|
+
uploadDeployFile: {
|
|
2549
|
+
parameters: {
|
|
2550
|
+
path: {
|
|
2551
|
+
deploy_id: string;
|
|
2552
|
+
path: string;
|
|
2553
|
+
};
|
|
2554
|
+
query: {
|
|
2555
|
+
size?: number;
|
|
2556
|
+
};
|
|
2557
|
+
};
|
|
2558
|
+
responses: {
|
|
2559
|
+
/** OK */
|
|
2560
|
+
200: {
|
|
2561
|
+
content: {
|
|
2562
|
+
"application/json": components["schemas"]["file"];
|
|
2563
|
+
};
|
|
2564
|
+
};
|
|
2565
|
+
default: components["responses"]["error"];
|
|
2566
|
+
};
|
|
2567
|
+
requestBody: components["requestBodies"]["uploadDeployFileFileBody"];
|
|
2568
|
+
};
|
|
2569
|
+
uploadDeployFunction: {
|
|
2570
|
+
parameters: {
|
|
2571
|
+
path: {
|
|
2572
|
+
deploy_id: string;
|
|
2573
|
+
name: string;
|
|
2574
|
+
};
|
|
2575
|
+
query: {
|
|
2576
|
+
runtime?: string;
|
|
2577
|
+
invocation_mode?: string;
|
|
2578
|
+
timeout?: number;
|
|
2579
|
+
size?: number;
|
|
2580
|
+
};
|
|
2581
|
+
header: {
|
|
2582
|
+
"X-Nf-Retry-Count"?: components["parameters"]["retryCount"];
|
|
2583
|
+
};
|
|
2584
|
+
};
|
|
2585
|
+
responses: {
|
|
2586
|
+
/** OK */
|
|
2587
|
+
200: {
|
|
2588
|
+
content: {
|
|
2589
|
+
"application/json": components["schemas"]["function"];
|
|
2590
|
+
};
|
|
2591
|
+
};
|
|
2592
|
+
default: components["responses"]["error"];
|
|
2593
|
+
};
|
|
2594
|
+
requestBody: components["requestBodies"]["uploadDeployFileFileBody"];
|
|
2595
|
+
};
|
|
2596
|
+
listFormSubmissions: {
|
|
2597
|
+
parameters: {
|
|
2598
|
+
path: {
|
|
2599
|
+
form_id: string;
|
|
2600
|
+
};
|
|
2601
|
+
query: {
|
|
2602
|
+
page?: components["parameters"]["page"];
|
|
2603
|
+
per_page?: components["parameters"]["perPage"];
|
|
2604
|
+
};
|
|
2605
|
+
};
|
|
2606
|
+
responses: {
|
|
2607
|
+
/** OK */
|
|
2608
|
+
200: {
|
|
2609
|
+
content: {
|
|
2610
|
+
"application/json": components["schemas"]["submission"][];
|
|
2611
|
+
};
|
|
2612
|
+
};
|
|
2613
|
+
default: components["responses"]["error"];
|
|
2614
|
+
};
|
|
2615
|
+
};
|
|
2616
|
+
listHooksBySiteId: {
|
|
2617
|
+
parameters: {
|
|
2618
|
+
query: {
|
|
2619
|
+
site_id: string;
|
|
2620
|
+
};
|
|
2621
|
+
};
|
|
2622
|
+
responses: {
|
|
2623
|
+
/** OK */
|
|
2624
|
+
200: {
|
|
2625
|
+
content: {
|
|
2626
|
+
"application/json": components["schemas"]["hook"][];
|
|
2627
|
+
};
|
|
2628
|
+
};
|
|
2629
|
+
default: components["responses"]["error"];
|
|
2630
|
+
};
|
|
2631
|
+
};
|
|
2632
|
+
createHookBySiteId: {
|
|
2633
|
+
parameters: {
|
|
2634
|
+
query: {
|
|
2635
|
+
site_id: string;
|
|
2636
|
+
};
|
|
2637
|
+
};
|
|
2638
|
+
responses: {
|
|
2639
|
+
/** OK */
|
|
2640
|
+
201: {
|
|
2641
|
+
content: {
|
|
2642
|
+
"application/json": components["schemas"]["hook"];
|
|
2643
|
+
};
|
|
2644
|
+
};
|
|
2645
|
+
default: components["responses"]["error"];
|
|
2646
|
+
};
|
|
2647
|
+
requestBody: components["requestBodies"]["hook"];
|
|
2648
|
+
};
|
|
2649
|
+
getHook: {
|
|
2650
|
+
parameters: {
|
|
2651
|
+
path: {
|
|
2652
|
+
hook_id: string;
|
|
2653
|
+
};
|
|
2654
|
+
};
|
|
2655
|
+
responses: {
|
|
2656
|
+
/** OK */
|
|
2657
|
+
200: {
|
|
2658
|
+
content: {
|
|
2659
|
+
"application/json": components["schemas"]["hook"];
|
|
2660
|
+
};
|
|
2661
|
+
};
|
|
2662
|
+
default: components["responses"]["error"];
|
|
2663
|
+
};
|
|
2664
|
+
};
|
|
2665
|
+
updateHook: {
|
|
2666
|
+
parameters: {
|
|
2667
|
+
path: {
|
|
2668
|
+
hook_id: string;
|
|
2669
|
+
};
|
|
2670
|
+
};
|
|
2671
|
+
responses: {
|
|
2672
|
+
/** OK */
|
|
2673
|
+
200: {
|
|
2674
|
+
content: {
|
|
2675
|
+
"application/json": components["schemas"]["hook"];
|
|
2676
|
+
};
|
|
2677
|
+
};
|
|
2678
|
+
default: components["responses"]["error"];
|
|
2679
|
+
};
|
|
2680
|
+
requestBody: components["requestBodies"]["hook"];
|
|
2681
|
+
};
|
|
2682
|
+
deleteHook: {
|
|
2683
|
+
parameters: {
|
|
2684
|
+
path: {
|
|
2685
|
+
hook_id: string;
|
|
2686
|
+
};
|
|
2687
|
+
};
|
|
2688
|
+
responses: {
|
|
2689
|
+
/** No content */
|
|
2690
|
+
204: never;
|
|
2691
|
+
};
|
|
2692
|
+
};
|
|
2693
|
+
enableHook: {
|
|
2694
|
+
parameters: {
|
|
2695
|
+
path: {
|
|
2696
|
+
hook_id: string;
|
|
2697
|
+
};
|
|
2698
|
+
};
|
|
2699
|
+
responses: {
|
|
2700
|
+
/** OK */
|
|
2701
|
+
200: {
|
|
2702
|
+
content: {
|
|
2703
|
+
"application/json": components["schemas"]["hook"];
|
|
2704
|
+
};
|
|
2705
|
+
};
|
|
2706
|
+
default: components["responses"]["error"];
|
|
2707
|
+
};
|
|
2708
|
+
};
|
|
2709
|
+
listHookTypes: {
|
|
2710
|
+
responses: {
|
|
2711
|
+
/** OK */
|
|
2712
|
+
200: {
|
|
2713
|
+
content: {
|
|
2714
|
+
"application/json": components["schemas"]["hookType"][];
|
|
2715
|
+
};
|
|
2716
|
+
};
|
|
2717
|
+
default: components["responses"]["error"];
|
|
2718
|
+
};
|
|
2719
|
+
};
|
|
2720
|
+
createTicket: {
|
|
2721
|
+
parameters: {
|
|
2722
|
+
query: {
|
|
2723
|
+
client_id: string;
|
|
2724
|
+
};
|
|
2725
|
+
};
|
|
2726
|
+
responses: {
|
|
2727
|
+
/** ok */
|
|
2728
|
+
201: {
|
|
2729
|
+
content: {
|
|
2730
|
+
"application/json": components["schemas"]["ticket"];
|
|
2731
|
+
};
|
|
2732
|
+
};
|
|
2733
|
+
default: components["responses"]["error"];
|
|
2734
|
+
};
|
|
2735
|
+
};
|
|
2736
|
+
showTicket: {
|
|
2737
|
+
parameters: {
|
|
2738
|
+
path: {
|
|
2739
|
+
ticket_id: string;
|
|
2740
|
+
};
|
|
2741
|
+
};
|
|
2742
|
+
responses: {
|
|
2743
|
+
/** ok */
|
|
2744
|
+
200: {
|
|
2745
|
+
content: {
|
|
2746
|
+
"application/json": components["schemas"]["ticket"];
|
|
2747
|
+
};
|
|
2748
|
+
};
|
|
2749
|
+
default: components["responses"]["error"];
|
|
2750
|
+
};
|
|
2751
|
+
};
|
|
2752
|
+
exchangeTicket: {
|
|
2753
|
+
parameters: {
|
|
2754
|
+
path: {
|
|
2755
|
+
ticket_id: string;
|
|
2756
|
+
};
|
|
2757
|
+
};
|
|
2758
|
+
responses: {
|
|
2759
|
+
/** ok */
|
|
2760
|
+
201: {
|
|
2761
|
+
content: {
|
|
2762
|
+
"application/json": components["schemas"]["accessToken"];
|
|
2763
|
+
};
|
|
2764
|
+
};
|
|
2765
|
+
default: components["responses"]["error"];
|
|
2766
|
+
};
|
|
2767
|
+
};
|
|
2768
|
+
listDeployKeys: {
|
|
2769
|
+
responses: {
|
|
2770
|
+
/** OK */
|
|
2771
|
+
200: {
|
|
2772
|
+
content: {
|
|
2773
|
+
"application/json": components["schemas"]["deployKey"][];
|
|
2774
|
+
};
|
|
2775
|
+
};
|
|
2776
|
+
default: components["responses"]["error"];
|
|
2777
|
+
};
|
|
2778
|
+
};
|
|
2779
|
+
createDeployKey: {
|
|
2780
|
+
responses: {
|
|
2781
|
+
/** Created */
|
|
2782
|
+
201: {
|
|
2783
|
+
content: {
|
|
2784
|
+
"application/json": components["schemas"]["deployKey"];
|
|
2785
|
+
};
|
|
2786
|
+
};
|
|
2787
|
+
default: components["responses"]["error"];
|
|
2788
|
+
};
|
|
2789
|
+
};
|
|
2790
|
+
getDeployKey: {
|
|
2791
|
+
parameters: {
|
|
2792
|
+
path: {
|
|
2793
|
+
key_id: string;
|
|
2794
|
+
};
|
|
2795
|
+
};
|
|
2796
|
+
responses: {
|
|
2797
|
+
/** OK */
|
|
2798
|
+
200: {
|
|
2799
|
+
content: {
|
|
2800
|
+
"application/json": components["schemas"]["deployKey"];
|
|
2801
|
+
};
|
|
2802
|
+
};
|
|
2803
|
+
default: components["responses"]["error"];
|
|
2804
|
+
};
|
|
2805
|
+
};
|
|
2806
|
+
deleteDeployKey: {
|
|
2807
|
+
parameters: {
|
|
2808
|
+
path: {
|
|
2809
|
+
key_id: string;
|
|
2810
|
+
};
|
|
2811
|
+
};
|
|
2812
|
+
responses: {
|
|
2813
|
+
/** Not Content */
|
|
2814
|
+
204: never;
|
|
2815
|
+
default: components["responses"]["error"];
|
|
2816
|
+
};
|
|
2817
|
+
};
|
|
2818
|
+
/** **Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables. */
|
|
2819
|
+
listSitesForAccount: {
|
|
2820
|
+
parameters: {
|
|
2821
|
+
query: {
|
|
2822
|
+
name?: string;
|
|
2823
|
+
page?: components["parameters"]["page"];
|
|
2824
|
+
per_page?: components["parameters"]["perPage"];
|
|
2825
|
+
};
|
|
2826
|
+
path: {
|
|
2827
|
+
account_slug: string;
|
|
2828
|
+
};
|
|
2829
|
+
};
|
|
2830
|
+
responses: {
|
|
2831
|
+
/** OK */
|
|
2832
|
+
200: {
|
|
2833
|
+
content: {
|
|
2834
|
+
"application/json": components["schemas"]["site"][];
|
|
2835
|
+
};
|
|
2836
|
+
};
|
|
2837
|
+
default: components["responses"]["error"];
|
|
2838
|
+
};
|
|
2839
|
+
};
|
|
2840
|
+
/** **Note:** Environment variable keys and values have moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [createEnvVars](#tag/environmentVariables/operation/createEnvVars) to create environment variables for a site. */
|
|
2841
|
+
createSiteInTeam: {
|
|
2842
|
+
parameters: {
|
|
2843
|
+
query: {
|
|
2844
|
+
configure_dns?: boolean;
|
|
2845
|
+
};
|
|
2846
|
+
path: {
|
|
2847
|
+
account_slug: string;
|
|
2848
|
+
};
|
|
2849
|
+
};
|
|
2850
|
+
responses: {
|
|
2851
|
+
/** Created */
|
|
2852
|
+
201: {
|
|
2853
|
+
content: {
|
|
2854
|
+
"application/json": components["schemas"]["site"];
|
|
2855
|
+
};
|
|
2856
|
+
};
|
|
2857
|
+
default: components["responses"]["error"];
|
|
2858
|
+
};
|
|
2859
|
+
requestBody: {
|
|
2860
|
+
content: {
|
|
2861
|
+
"application/json": components["schemas"]["siteSetup"];
|
|
2862
|
+
};
|
|
2863
|
+
};
|
|
2864
|
+
};
|
|
2865
|
+
listMembersForAccount: {
|
|
2866
|
+
parameters: {
|
|
2867
|
+
path: {
|
|
2868
|
+
account_slug: string;
|
|
2869
|
+
};
|
|
2870
|
+
};
|
|
2871
|
+
responses: {
|
|
2872
|
+
/** OK */
|
|
2873
|
+
200: {
|
|
2874
|
+
content: {
|
|
2875
|
+
"application/json": components["schemas"]["member"][];
|
|
2876
|
+
};
|
|
2877
|
+
};
|
|
2878
|
+
default: components["responses"]["error"];
|
|
2879
|
+
};
|
|
2880
|
+
};
|
|
2881
|
+
addMemberToAccount: {
|
|
2882
|
+
parameters: {
|
|
2883
|
+
path: {
|
|
2884
|
+
account_slug: string;
|
|
2885
|
+
};
|
|
2886
|
+
};
|
|
2887
|
+
responses: {
|
|
2888
|
+
/** OK */
|
|
2889
|
+
200: {
|
|
2890
|
+
content: {
|
|
2891
|
+
"application/json": components["schemas"]["member"][];
|
|
2892
|
+
};
|
|
2893
|
+
};
|
|
2894
|
+
default: components["responses"]["error"];
|
|
2895
|
+
};
|
|
2896
|
+
requestBody: {
|
|
2897
|
+
content: {
|
|
2898
|
+
"application/json": components["schemas"]["accountAddMemberSetup"];
|
|
2899
|
+
};
|
|
2900
|
+
};
|
|
2901
|
+
};
|
|
2902
|
+
getAccountMember: {
|
|
2903
|
+
parameters: {
|
|
2904
|
+
path: {
|
|
2905
|
+
account_slug: string;
|
|
2906
|
+
member_id: string;
|
|
2907
|
+
};
|
|
2908
|
+
};
|
|
2909
|
+
responses: {
|
|
2910
|
+
/** OK */
|
|
2911
|
+
200: {
|
|
2912
|
+
content: {
|
|
2913
|
+
"application/json": components["schemas"]["member"];
|
|
2914
|
+
};
|
|
2915
|
+
};
|
|
2916
|
+
default: components["responses"]["error"];
|
|
2917
|
+
};
|
|
2918
|
+
};
|
|
2919
|
+
updateAccountMember: {
|
|
2920
|
+
parameters: {
|
|
2921
|
+
path: {
|
|
2922
|
+
account_slug: string;
|
|
2923
|
+
member_id: string;
|
|
2924
|
+
};
|
|
2925
|
+
};
|
|
2926
|
+
responses: {
|
|
2927
|
+
/** OK */
|
|
2928
|
+
200: {
|
|
2929
|
+
content: {
|
|
2930
|
+
"application/json": components["schemas"]["member"];
|
|
2931
|
+
};
|
|
2932
|
+
};
|
|
2933
|
+
default: components["responses"]["error"];
|
|
2934
|
+
};
|
|
2935
|
+
requestBody: {
|
|
2936
|
+
content: {
|
|
2937
|
+
"application/json": components["schemas"]["accountUpdateMemberSetup"];
|
|
2938
|
+
};
|
|
2939
|
+
};
|
|
2940
|
+
};
|
|
2941
|
+
removeAccountMember: {
|
|
2942
|
+
parameters: {
|
|
2943
|
+
path: {
|
|
2944
|
+
account_slug: string;
|
|
2945
|
+
member_id: string;
|
|
2946
|
+
};
|
|
2947
|
+
};
|
|
2948
|
+
responses: {
|
|
2949
|
+
/** Not Content */
|
|
2950
|
+
204: never;
|
|
2951
|
+
default: components["responses"]["error"];
|
|
2952
|
+
};
|
|
2953
|
+
};
|
|
2954
|
+
listPaymentMethodsForUser: {
|
|
2955
|
+
responses: {
|
|
2956
|
+
/** OK */
|
|
2957
|
+
200: {
|
|
2958
|
+
content: {
|
|
2959
|
+
"application/json": components["schemas"]["paymentMethod"][];
|
|
2960
|
+
};
|
|
2961
|
+
};
|
|
2962
|
+
default: components["responses"]["error"];
|
|
2963
|
+
};
|
|
2964
|
+
};
|
|
2965
|
+
listAccountTypesForUser: {
|
|
2966
|
+
responses: {
|
|
2967
|
+
/** OK */
|
|
2968
|
+
200: {
|
|
2969
|
+
content: {
|
|
2970
|
+
"application/json": components["schemas"]["accountType"][];
|
|
2971
|
+
};
|
|
2972
|
+
};
|
|
2973
|
+
default: components["responses"]["error"];
|
|
2974
|
+
};
|
|
2975
|
+
};
|
|
2976
|
+
listAccountsForUser: {
|
|
2977
|
+
responses: {
|
|
2978
|
+
/** OK */
|
|
2979
|
+
200: {
|
|
2980
|
+
content: {
|
|
2981
|
+
"application/json": components["schemas"]["accountMembership"][];
|
|
2982
|
+
};
|
|
2983
|
+
};
|
|
2984
|
+
default: components["responses"]["error"];
|
|
2985
|
+
};
|
|
2986
|
+
};
|
|
2987
|
+
createAccount: {
|
|
2988
|
+
responses: {
|
|
2989
|
+
/** Created */
|
|
2990
|
+
201: {
|
|
2991
|
+
content: {
|
|
2992
|
+
"application/json": components["schemas"]["accountMembership"];
|
|
2993
|
+
};
|
|
2994
|
+
};
|
|
2995
|
+
default: components["responses"]["error"];
|
|
2996
|
+
};
|
|
2997
|
+
requestBody: {
|
|
2998
|
+
content: {
|
|
2999
|
+
"application/json": components["schemas"]["accountSetup"];
|
|
3000
|
+
};
|
|
3001
|
+
};
|
|
3002
|
+
};
|
|
3003
|
+
getAccount: {
|
|
3004
|
+
parameters: {
|
|
3005
|
+
path: {
|
|
3006
|
+
account_id: string;
|
|
3007
|
+
};
|
|
3008
|
+
};
|
|
3009
|
+
responses: {
|
|
3010
|
+
/** OK */
|
|
3011
|
+
200: {
|
|
3012
|
+
content: {
|
|
3013
|
+
"application/json": components["schemas"]["accountMembership"][];
|
|
3014
|
+
};
|
|
3015
|
+
};
|
|
3016
|
+
default: components["responses"]["error"];
|
|
3017
|
+
};
|
|
3018
|
+
};
|
|
3019
|
+
updateAccount: {
|
|
3020
|
+
parameters: {
|
|
3021
|
+
path: {
|
|
3022
|
+
account_id: string;
|
|
3023
|
+
};
|
|
3024
|
+
};
|
|
3025
|
+
responses: {
|
|
3026
|
+
/** OK */
|
|
3027
|
+
200: {
|
|
3028
|
+
content: {
|
|
3029
|
+
"application/json": components["schemas"]["accountMembership"];
|
|
3030
|
+
};
|
|
3031
|
+
};
|
|
3032
|
+
default: components["responses"]["error"];
|
|
3033
|
+
};
|
|
3034
|
+
requestBody: {
|
|
3035
|
+
content: {
|
|
3036
|
+
"application/json": components["schemas"]["accountUpdateSetup"];
|
|
3037
|
+
};
|
|
3038
|
+
};
|
|
3039
|
+
};
|
|
3040
|
+
cancelAccount: {
|
|
3041
|
+
parameters: {
|
|
3042
|
+
path: {
|
|
3043
|
+
account_id: string;
|
|
3044
|
+
};
|
|
3045
|
+
};
|
|
3046
|
+
responses: {
|
|
3047
|
+
/** Not Content */
|
|
3048
|
+
204: never;
|
|
3049
|
+
default: components["responses"]["error"];
|
|
3050
|
+
};
|
|
3051
|
+
};
|
|
3052
|
+
listAccountAuditEvents: {
|
|
3053
|
+
parameters: {
|
|
3054
|
+
path: {
|
|
3055
|
+
account_id: string;
|
|
3056
|
+
};
|
|
3057
|
+
query: {
|
|
3058
|
+
query?: string;
|
|
3059
|
+
log_type?: string;
|
|
3060
|
+
page?: components["parameters"]["page"];
|
|
3061
|
+
per_page?: components["parameters"]["perPage"];
|
|
3062
|
+
};
|
|
3063
|
+
};
|
|
3064
|
+
responses: {
|
|
3065
|
+
/** OK */
|
|
3066
|
+
200: {
|
|
3067
|
+
content: {
|
|
3068
|
+
"application/json": components["schemas"]["auditLog"][];
|
|
3069
|
+
};
|
|
3070
|
+
};
|
|
3071
|
+
default: components["responses"]["error"];
|
|
3072
|
+
};
|
|
3073
|
+
};
|
|
3074
|
+
listFormSubmission: {
|
|
3075
|
+
parameters: {
|
|
3076
|
+
path: {
|
|
3077
|
+
submission_id: string;
|
|
3078
|
+
};
|
|
3079
|
+
query: {
|
|
3080
|
+
query?: string;
|
|
3081
|
+
page?: components["parameters"]["page"];
|
|
3082
|
+
per_page?: components["parameters"]["perPage"];
|
|
3083
|
+
};
|
|
3084
|
+
};
|
|
3085
|
+
responses: {
|
|
3086
|
+
/** OK */
|
|
3087
|
+
200: {
|
|
3088
|
+
content: {
|
|
3089
|
+
"application/json": components["schemas"]["submission"][];
|
|
3090
|
+
};
|
|
3091
|
+
};
|
|
3092
|
+
default: components["responses"]["error"];
|
|
3093
|
+
};
|
|
3094
|
+
};
|
|
3095
|
+
deleteSubmission: {
|
|
3096
|
+
parameters: {
|
|
3097
|
+
path: {
|
|
3098
|
+
submission_id: string;
|
|
3099
|
+
};
|
|
3100
|
+
};
|
|
3101
|
+
responses: {
|
|
3102
|
+
/** Deleted */
|
|
3103
|
+
204: never;
|
|
3104
|
+
default: components["responses"]["error"];
|
|
3105
|
+
};
|
|
3106
|
+
};
|
|
3107
|
+
listServiceInstancesForSite: {
|
|
3108
|
+
parameters: {
|
|
3109
|
+
path: {
|
|
3110
|
+
site_id: string;
|
|
3111
|
+
};
|
|
3112
|
+
};
|
|
3113
|
+
responses: {
|
|
3114
|
+
/** OK */
|
|
3115
|
+
200: {
|
|
3116
|
+
content: {
|
|
3117
|
+
"application/json": components["schemas"]["serviceInstance"][];
|
|
3118
|
+
};
|
|
3119
|
+
};
|
|
3120
|
+
default: components["responses"]["error"];
|
|
3121
|
+
};
|
|
3122
|
+
};
|
|
3123
|
+
createServiceInstance: {
|
|
3124
|
+
parameters: {
|
|
3125
|
+
path: {
|
|
3126
|
+
site_id: string;
|
|
3127
|
+
addon: string;
|
|
3128
|
+
};
|
|
3129
|
+
};
|
|
3130
|
+
responses: {
|
|
3131
|
+
/** Created */
|
|
3132
|
+
201: {
|
|
3133
|
+
content: {
|
|
3134
|
+
"application/json": components["schemas"]["serviceInstance"];
|
|
3135
|
+
};
|
|
3136
|
+
};
|
|
3137
|
+
default: components["responses"]["error"];
|
|
3138
|
+
};
|
|
3139
|
+
requestBody: components["requestBodies"]["createServiceInstanceConfig"];
|
|
3140
|
+
};
|
|
3141
|
+
showServiceInstance: {
|
|
3142
|
+
parameters: {
|
|
3143
|
+
path: {
|
|
3144
|
+
site_id: string;
|
|
3145
|
+
addon: string;
|
|
3146
|
+
instance_id: string;
|
|
3147
|
+
};
|
|
3148
|
+
};
|
|
3149
|
+
responses: {
|
|
3150
|
+
/** OK */
|
|
3151
|
+
200: {
|
|
3152
|
+
content: {
|
|
3153
|
+
"application/json": components["schemas"]["serviceInstance"];
|
|
3154
|
+
};
|
|
3155
|
+
};
|
|
3156
|
+
default: components["responses"]["error"];
|
|
3157
|
+
};
|
|
3158
|
+
};
|
|
3159
|
+
updateServiceInstance: {
|
|
3160
|
+
parameters: {
|
|
3161
|
+
path: {
|
|
3162
|
+
site_id: string;
|
|
3163
|
+
addon: string;
|
|
3164
|
+
instance_id: string;
|
|
3165
|
+
};
|
|
3166
|
+
};
|
|
3167
|
+
responses: {
|
|
3168
|
+
/** No Content */
|
|
3169
|
+
204: never;
|
|
3170
|
+
default: components["responses"]["error"];
|
|
3171
|
+
};
|
|
3172
|
+
requestBody: components["requestBodies"]["createServiceInstanceConfig"];
|
|
3173
|
+
};
|
|
3174
|
+
deleteServiceInstance: {
|
|
3175
|
+
parameters: {
|
|
3176
|
+
path: {
|
|
3177
|
+
site_id: string;
|
|
3178
|
+
addon: string;
|
|
3179
|
+
instance_id: string;
|
|
3180
|
+
};
|
|
3181
|
+
};
|
|
3182
|
+
responses: {
|
|
3183
|
+
/** Deleted */
|
|
3184
|
+
204: never;
|
|
3185
|
+
default: components["responses"]["error"];
|
|
3186
|
+
};
|
|
3187
|
+
};
|
|
3188
|
+
getServices: {
|
|
3189
|
+
parameters: {
|
|
3190
|
+
query: {
|
|
3191
|
+
search?: string;
|
|
3192
|
+
};
|
|
3193
|
+
};
|
|
3194
|
+
responses: {
|
|
3195
|
+
/** services */
|
|
3196
|
+
200: {
|
|
3197
|
+
content: {
|
|
3198
|
+
"application/json": components["schemas"]["service"][];
|
|
3199
|
+
};
|
|
3200
|
+
};
|
|
3201
|
+
default: components["responses"]["error"];
|
|
3202
|
+
};
|
|
3203
|
+
};
|
|
3204
|
+
showService: {
|
|
3205
|
+
parameters: {
|
|
3206
|
+
path: {
|
|
3207
|
+
addonName: string;
|
|
3208
|
+
};
|
|
3209
|
+
};
|
|
3210
|
+
responses: {
|
|
3211
|
+
/** services */
|
|
3212
|
+
200: {
|
|
3213
|
+
content: {
|
|
3214
|
+
"application/json": components["schemas"]["service"];
|
|
3215
|
+
};
|
|
3216
|
+
};
|
|
3217
|
+
default: components["responses"]["error"];
|
|
3218
|
+
};
|
|
3219
|
+
};
|
|
3220
|
+
showServiceManifest: {
|
|
3221
|
+
parameters: {
|
|
3222
|
+
path: {
|
|
3223
|
+
addonName: string;
|
|
3224
|
+
};
|
|
3225
|
+
};
|
|
3226
|
+
responses: {
|
|
3227
|
+
/** retrieving from provider */
|
|
3228
|
+
201: {
|
|
3229
|
+
content: {
|
|
3230
|
+
"application/json": { [key: string]: unknown };
|
|
3231
|
+
};
|
|
3232
|
+
};
|
|
3233
|
+
default: components["responses"]["error"];
|
|
3234
|
+
};
|
|
3235
|
+
};
|
|
3236
|
+
getCurrentUser: {
|
|
3237
|
+
responses: {
|
|
3238
|
+
/** OK */
|
|
3239
|
+
200: {
|
|
3240
|
+
content: {
|
|
3241
|
+
"application/json": components["schemas"]["user"][];
|
|
3242
|
+
};
|
|
3243
|
+
};
|
|
3244
|
+
default: components["responses"]["error"];
|
|
3245
|
+
};
|
|
3246
|
+
};
|
|
3247
|
+
getSplitTests: {
|
|
3248
|
+
parameters: {
|
|
3249
|
+
path: {
|
|
3250
|
+
site_id: string;
|
|
3251
|
+
};
|
|
3252
|
+
};
|
|
3253
|
+
responses: {
|
|
3254
|
+
/** split_tests */
|
|
3255
|
+
200: {
|
|
3256
|
+
content: {
|
|
3257
|
+
"application/json": components["schemas"]["splitTests"];
|
|
3258
|
+
};
|
|
3259
|
+
};
|
|
3260
|
+
default: components["responses"]["error"];
|
|
3261
|
+
};
|
|
3262
|
+
};
|
|
3263
|
+
createSplitTest: {
|
|
3264
|
+
parameters: {
|
|
3265
|
+
path: {
|
|
3266
|
+
site_id: string;
|
|
3267
|
+
};
|
|
3268
|
+
};
|
|
3269
|
+
responses: {
|
|
3270
|
+
/** Created */
|
|
3271
|
+
201: {
|
|
3272
|
+
content: {
|
|
3273
|
+
"application/json": components["schemas"]["splitTest"];
|
|
3274
|
+
};
|
|
3275
|
+
};
|
|
3276
|
+
default: components["responses"]["error"];
|
|
3277
|
+
};
|
|
3278
|
+
requestBody: components["requestBodies"]["splitTestSetup"];
|
|
3279
|
+
};
|
|
3280
|
+
getSplitTest: {
|
|
3281
|
+
parameters: {
|
|
3282
|
+
path: {
|
|
3283
|
+
site_id: string;
|
|
3284
|
+
split_test_id: string;
|
|
3285
|
+
};
|
|
3286
|
+
};
|
|
3287
|
+
responses: {
|
|
3288
|
+
/** split_test */
|
|
3289
|
+
200: {
|
|
3290
|
+
content: {
|
|
3291
|
+
"application/json": components["schemas"]["splitTest"];
|
|
3292
|
+
};
|
|
3293
|
+
};
|
|
3294
|
+
default: components["responses"]["error"];
|
|
3295
|
+
};
|
|
3296
|
+
};
|
|
3297
|
+
updateSplitTest: {
|
|
3298
|
+
parameters: {
|
|
3299
|
+
path: {
|
|
3300
|
+
site_id: string;
|
|
3301
|
+
split_test_id: string;
|
|
3302
|
+
};
|
|
3303
|
+
};
|
|
3304
|
+
responses: {
|
|
3305
|
+
/** Created */
|
|
3306
|
+
201: {
|
|
3307
|
+
content: {
|
|
3308
|
+
"application/json": components["schemas"]["splitTest"];
|
|
3309
|
+
};
|
|
3310
|
+
};
|
|
3311
|
+
default: components["responses"]["error"];
|
|
3312
|
+
};
|
|
3313
|
+
requestBody: components["requestBodies"]["splitTestSetup"];
|
|
3314
|
+
};
|
|
3315
|
+
enableSplitTest: {
|
|
3316
|
+
parameters: {
|
|
3317
|
+
path: {
|
|
3318
|
+
site_id: string;
|
|
3319
|
+
split_test_id: string;
|
|
3320
|
+
};
|
|
3321
|
+
};
|
|
3322
|
+
responses: {
|
|
3323
|
+
/** enable */
|
|
3324
|
+
204: never;
|
|
3325
|
+
default: components["responses"]["error"];
|
|
3326
|
+
};
|
|
3327
|
+
};
|
|
3328
|
+
disableSplitTest: {
|
|
3329
|
+
parameters: {
|
|
3330
|
+
path: {
|
|
3331
|
+
site_id: string;
|
|
3332
|
+
split_test_id: string;
|
|
3333
|
+
};
|
|
3334
|
+
};
|
|
3335
|
+
responses: {
|
|
3336
|
+
/** disabled */
|
|
3337
|
+
204: never;
|
|
3338
|
+
default: components["responses"]["error"];
|
|
3339
|
+
};
|
|
3340
|
+
};
|
|
3341
|
+
getDnsZones: {
|
|
3342
|
+
parameters: {
|
|
3343
|
+
query: {
|
|
3344
|
+
account_slug?: string;
|
|
3345
|
+
};
|
|
3346
|
+
};
|
|
3347
|
+
responses: {
|
|
3348
|
+
/** get all DNS zones the user has access to */
|
|
3349
|
+
200: {
|
|
3350
|
+
content: {
|
|
3351
|
+
"application/json": components["schemas"]["dnsZones"];
|
|
3352
|
+
};
|
|
3353
|
+
};
|
|
3354
|
+
default: components["responses"]["error"];
|
|
3355
|
+
};
|
|
3356
|
+
};
|
|
3357
|
+
createDnsZone: {
|
|
3358
|
+
responses: {
|
|
3359
|
+
/** Created */
|
|
3360
|
+
201: {
|
|
3361
|
+
content: {
|
|
3362
|
+
"application/json": components["schemas"]["dnsZone"];
|
|
3363
|
+
};
|
|
3364
|
+
};
|
|
3365
|
+
default: components["responses"]["error"];
|
|
3366
|
+
};
|
|
3367
|
+
requestBody: {
|
|
3368
|
+
content: {
|
|
3369
|
+
"application/json": components["schemas"]["dnsZoneSetup"];
|
|
3370
|
+
};
|
|
3371
|
+
};
|
|
3372
|
+
};
|
|
3373
|
+
getDnsZone: {
|
|
3374
|
+
parameters: {
|
|
3375
|
+
path: {
|
|
3376
|
+
zone_id: string;
|
|
3377
|
+
};
|
|
3378
|
+
};
|
|
3379
|
+
responses: {
|
|
3380
|
+
/** get a single DNS zone */
|
|
3381
|
+
200: {
|
|
3382
|
+
content: {
|
|
3383
|
+
"application/json": components["schemas"]["dnsZone"];
|
|
3384
|
+
};
|
|
3385
|
+
};
|
|
3386
|
+
default: components["responses"]["error"];
|
|
3387
|
+
};
|
|
3388
|
+
};
|
|
3389
|
+
deleteDnsZone: {
|
|
3390
|
+
parameters: {
|
|
3391
|
+
path: {
|
|
3392
|
+
zone_id: string;
|
|
3393
|
+
};
|
|
3394
|
+
};
|
|
3395
|
+
responses: {
|
|
3396
|
+
/** delete a single DNS zone */
|
|
3397
|
+
204: never;
|
|
3398
|
+
default: components["responses"]["error"];
|
|
3399
|
+
};
|
|
3400
|
+
};
|
|
3401
|
+
transferDnsZone: {
|
|
3402
|
+
parameters: {
|
|
3403
|
+
path: {
|
|
3404
|
+
zone_id: string;
|
|
3405
|
+
};
|
|
3406
|
+
query: {
|
|
3407
|
+
/** the account of the dns zone */
|
|
3408
|
+
account_id: string;
|
|
3409
|
+
/** the account you want to transfer the dns zone to */
|
|
3410
|
+
transfer_account_id: string;
|
|
3411
|
+
/** the user you want to transfer the dns zone to */
|
|
3412
|
+
transfer_user_id: string;
|
|
3413
|
+
};
|
|
3414
|
+
};
|
|
3415
|
+
responses: {
|
|
3416
|
+
/** transfer a DNS zone to another account */
|
|
3417
|
+
200: {
|
|
3418
|
+
content: {
|
|
3419
|
+
"application/json": components["schemas"]["dnsZone"];
|
|
3420
|
+
};
|
|
3421
|
+
};
|
|
3422
|
+
default: components["responses"]["error"];
|
|
3423
|
+
};
|
|
3424
|
+
};
|
|
3425
|
+
getDnsRecords: {
|
|
3426
|
+
parameters: {
|
|
3427
|
+
path: {
|
|
3428
|
+
zone_id: string;
|
|
3429
|
+
};
|
|
3430
|
+
};
|
|
3431
|
+
responses: {
|
|
3432
|
+
/** get all DNS records for a single DNS zone */
|
|
3433
|
+
200: {
|
|
3434
|
+
content: {
|
|
3435
|
+
"application/json": components["schemas"]["dnsRecords"];
|
|
3436
|
+
};
|
|
3437
|
+
};
|
|
3438
|
+
default: components["responses"]["error"];
|
|
3439
|
+
};
|
|
3440
|
+
};
|
|
3441
|
+
createDnsRecord: {
|
|
3442
|
+
parameters: {
|
|
3443
|
+
path: {
|
|
3444
|
+
zone_id: string;
|
|
3445
|
+
};
|
|
3446
|
+
};
|
|
3447
|
+
responses: {
|
|
3448
|
+
/** Created */
|
|
3449
|
+
201: {
|
|
3450
|
+
content: {
|
|
3451
|
+
"application/json": components["schemas"]["dnsRecord"];
|
|
3452
|
+
};
|
|
3453
|
+
};
|
|
3454
|
+
default: components["responses"]["error"];
|
|
3455
|
+
};
|
|
3456
|
+
requestBody: {
|
|
3457
|
+
content: {
|
|
3458
|
+
"application/json": components["schemas"]["dnsRecordCreate"];
|
|
3459
|
+
};
|
|
3460
|
+
};
|
|
3461
|
+
};
|
|
3462
|
+
getIndividualDnsRecord: {
|
|
3463
|
+
parameters: {
|
|
3464
|
+
path: {
|
|
3465
|
+
zone_id: string;
|
|
3466
|
+
dns_record_id: string;
|
|
3467
|
+
};
|
|
3468
|
+
};
|
|
3469
|
+
responses: {
|
|
3470
|
+
/** get a single DNS record */
|
|
3471
|
+
200: {
|
|
3472
|
+
content: {
|
|
3473
|
+
"application/json": components["schemas"]["dnsRecord"];
|
|
3474
|
+
};
|
|
3475
|
+
};
|
|
3476
|
+
default: components["responses"]["error"];
|
|
3477
|
+
};
|
|
3478
|
+
};
|
|
3479
|
+
deleteDnsRecord: {
|
|
3480
|
+
parameters: {
|
|
3481
|
+
path: {
|
|
3482
|
+
zone_id: string;
|
|
3483
|
+
dns_record_id: string;
|
|
3484
|
+
};
|
|
3485
|
+
};
|
|
3486
|
+
responses: {
|
|
3487
|
+
/** record deleted */
|
|
3488
|
+
204: never;
|
|
3489
|
+
default: components["responses"]["error"];
|
|
3490
|
+
};
|
|
3491
|
+
};
|
|
3492
|
+
listSiteDevServers: {
|
|
3493
|
+
parameters: {
|
|
3494
|
+
path: {
|
|
3495
|
+
site_id: string;
|
|
3496
|
+
};
|
|
3497
|
+
query: {
|
|
3498
|
+
page?: components["parameters"]["page"];
|
|
3499
|
+
per_page?: components["parameters"]["perPage"];
|
|
3500
|
+
};
|
|
3501
|
+
};
|
|
3502
|
+
responses: {
|
|
3503
|
+
/** OK */
|
|
3504
|
+
200: {
|
|
3505
|
+
content: {
|
|
3506
|
+
"application/json": components["schemas"]["devServer"][];
|
|
3507
|
+
};
|
|
3508
|
+
};
|
|
3509
|
+
default: components["responses"]["error"];
|
|
3510
|
+
};
|
|
3511
|
+
};
|
|
3512
|
+
createSiteDevServer: {
|
|
3513
|
+
parameters: {
|
|
3514
|
+
path: {
|
|
3515
|
+
site_id: string;
|
|
3516
|
+
};
|
|
3517
|
+
query: {
|
|
3518
|
+
branch?: string;
|
|
3519
|
+
};
|
|
3520
|
+
};
|
|
3521
|
+
responses: {
|
|
3522
|
+
/** OK */
|
|
3523
|
+
200: {
|
|
3524
|
+
content: {
|
|
3525
|
+
"application/json": components["schemas"]["devServer"][];
|
|
3526
|
+
};
|
|
3527
|
+
};
|
|
3528
|
+
default: components["responses"]["error"];
|
|
3529
|
+
};
|
|
3530
|
+
};
|
|
3531
|
+
deleteSiteDevServers: {
|
|
3532
|
+
parameters: {
|
|
3533
|
+
path: {
|
|
3534
|
+
site_id: string;
|
|
3535
|
+
};
|
|
3536
|
+
query: {
|
|
3537
|
+
branch?: string;
|
|
3538
|
+
};
|
|
3539
|
+
};
|
|
3540
|
+
responses: {
|
|
3541
|
+
/** OK */
|
|
3542
|
+
202: unknown;
|
|
3543
|
+
default: components["responses"]["error"];
|
|
3544
|
+
};
|
|
3545
|
+
};
|
|
3546
|
+
getSiteDevServer: {
|
|
3547
|
+
parameters: {
|
|
3548
|
+
path: {
|
|
3549
|
+
site_id: string;
|
|
3550
|
+
dev_server_id: string;
|
|
3551
|
+
};
|
|
3552
|
+
};
|
|
3553
|
+
responses: {
|
|
3554
|
+
/** OK */
|
|
3555
|
+
200: {
|
|
3556
|
+
content: {
|
|
3557
|
+
"application/json": components["schemas"]["devServer"];
|
|
3558
|
+
};
|
|
3559
|
+
};
|
|
3560
|
+
};
|
|
3561
|
+
};
|
|
3562
|
+
listSiteDevServerHooks: {
|
|
3563
|
+
parameters: {
|
|
3564
|
+
path: {
|
|
3565
|
+
site_id: string;
|
|
3566
|
+
};
|
|
3567
|
+
};
|
|
3568
|
+
responses: {
|
|
3569
|
+
/** OK */
|
|
3570
|
+
200: {
|
|
3571
|
+
content: {
|
|
3572
|
+
"application/json": components["schemas"]["devServerHook"][];
|
|
3573
|
+
};
|
|
3574
|
+
};
|
|
3575
|
+
default: components["responses"]["error"];
|
|
3576
|
+
};
|
|
3577
|
+
};
|
|
3578
|
+
createSiteDevServerHook: {
|
|
3579
|
+
parameters: {
|
|
3580
|
+
path: {
|
|
3581
|
+
site_id: string;
|
|
3582
|
+
};
|
|
3583
|
+
};
|
|
3584
|
+
responses: {
|
|
3585
|
+
/** Created */
|
|
3586
|
+
201: {
|
|
3587
|
+
content: {
|
|
3588
|
+
"application/json": components["schemas"]["devServerHook"];
|
|
3589
|
+
};
|
|
3590
|
+
};
|
|
3591
|
+
default: components["responses"]["error"];
|
|
3592
|
+
};
|
|
3593
|
+
requestBody: components["requestBodies"]["devServerHookSetup"];
|
|
3594
|
+
};
|
|
3595
|
+
getSiteDevServerHook: {
|
|
3596
|
+
parameters: {
|
|
3597
|
+
path: {
|
|
3598
|
+
site_id: string;
|
|
3599
|
+
id: string;
|
|
3600
|
+
};
|
|
3601
|
+
};
|
|
3602
|
+
responses: {
|
|
3603
|
+
/** OK */
|
|
3604
|
+
200: {
|
|
3605
|
+
content: {
|
|
3606
|
+
"application/json": components["schemas"]["devServerHook"];
|
|
3607
|
+
};
|
|
3608
|
+
};
|
|
3609
|
+
default: components["responses"]["error"];
|
|
3610
|
+
};
|
|
3611
|
+
};
|
|
3612
|
+
updateSiteDevServerHook: {
|
|
3613
|
+
parameters: {
|
|
3614
|
+
path: {
|
|
3615
|
+
site_id: string;
|
|
3616
|
+
id: string;
|
|
3617
|
+
};
|
|
3618
|
+
};
|
|
3619
|
+
responses: {
|
|
3620
|
+
/** No content */
|
|
3621
|
+
204: never;
|
|
3622
|
+
default: components["responses"]["error"];
|
|
3623
|
+
};
|
|
3624
|
+
requestBody: components["requestBodies"]["devServerHookSetup"];
|
|
3625
|
+
};
|
|
3626
|
+
deleteSiteDevServerHook: {
|
|
3627
|
+
parameters: {
|
|
3628
|
+
path: {
|
|
3629
|
+
site_id: string;
|
|
3630
|
+
id: string;
|
|
3631
|
+
};
|
|
3632
|
+
};
|
|
3633
|
+
responses: {
|
|
3634
|
+
/** No content */
|
|
3635
|
+
204: never;
|
|
3636
|
+
default: components["responses"]["error"];
|
|
3637
|
+
};
|
|
3638
|
+
};
|
|
3639
|
+
}
|
|
3640
|
+
|
|
3641
|
+
export interface external {}
|