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