netlify-api 0.10.2 → 1.3.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,3000 @@
1
+ import { AddMemberToAccountBody, AddMemberToAccountResponse, CancelSiteDeployResponse, ConfigureDNSForSiteResponse, CreateAccountBody, CreateAccountResponse, CreateDeployKeyResponse, CreateDnsRecordBody, CreateDnsRecordResponse, CreateDnsZoneBody, CreateDnsZoneResponse, CreateEnvVarsBody, CreateEnvVarsResponse, CreateHookBySiteIdBody, CreateHookBySiteIdResponse, CreatePluginRunBody, CreatePluginRunResponse, CreateServiceInstanceBody, CreateServiceInstanceResponse, CreateSiteBody, CreateSiteResponse, CreateSiteAgentRunnerHookBody, CreateSiteAgentRunnerHookResponse, CreateSiteAssetResponse, CreateSiteBuildHookBody, CreateSiteBuildHookResponse, CreateSiteDatabaseBody, CreateSiteDatabaseResponse, CreateSiteDatabaseBranchBody, CreateSiteDatabaseBranchResponse, CreateSiteDatabaseSnapshotBody, CreateSiteDatabaseSnapshotResponse, CreateSiteDeployBody, CreateSiteDeployResponse, CreateSiteDevServerResponse, CreateSiteDevServerHookBody, CreateSiteDevServerHookResponse, CreateSiteInTeamBody, CreateSiteInTeamResponse, CreateSiteSnippetBody, CreateSiteSnippetResponse, CreateSplitTestBody, CreateSplitTestResponse, CreateTicketBody, CreateTicketResponse, EnableHookResponse, ExchangeTicketResponse, GetAIGatewayProvidersResponse, GetAccountResponse, GetAccountBuildStatusResponse, GetAccountMemberResponse, GetAgentRunnerResponse, GetAgentRunnerSessionResponse, GetCurrentUserResponse, GetDNSForSiteResponse, GetDeployResponse, GetDeployKeyResponse, GetDnsRecordsResponse, GetDnsZoneResponse, GetDnsZonesResponse, GetEnvVarResponse, GetEnvVarsResponse, GetHookResponse, GetIndividualDnsRecordResponse, GetLatestPluginRunsResponse, GetServicesResponse, GetSiteResponse, GetSiteAgentRunnerHookResponse, GetSiteAssetInfoResponse, GetSiteAssetPublicSignatureResponse, GetSiteBuildResponse, GetSiteBuildHookResponse, GetSiteDatabaseResponse, GetSiteDeployResponse, GetSiteDevServerStatus200, GetSiteDevServerHookResponse, GetSiteEnvVarsResponse, GetSiteFileByPathNameResponse, GetSiteMetadataResponse, GetSiteSnippetResponse, GetSplitTestResponse, GetSplitTestsResponse, ListAccountAuditEventsResponse, ListAccountTypesForUserResponse, ListAccountsForUserResponse, ListAgentRunnerSessionsResponse, ListAgentRunnersResponse, ListDeployKeysResponse, ListFormSubmissionResponse, ListFormSubmissionsResponse, ListHookTypesResponse, ListHooksBySiteIdResponse, ListMembersForAccountResponse, ListPaymentMethodsForUserResponse, ListServiceInstancesForSiteResponse, ListSiteAgentRunnerHooksResponse, ListSiteAssetsResponse, ListSiteBuildHooksResponse, ListSiteBuildsResponse, ListSiteDatabaseBranchesResponse, ListSiteDatabaseSnapshotsResponse, ListSiteDeployedBranchesResponse, ListSiteDeploysResponse, ListSiteDevServerHooksResponse, ListSiteDevServersResponse, ListSiteFilesResponse, ListSiteFormsResponse, ListSiteSnippetsResponse, ListSiteSubmissionsResponse, ListSitesResponse, ListSitesForAccountResponse, LockDeployResponse, UpdateSiteBody, UpdateSiteResponse, ShowSiteTLSCertificateResponse, UpdateEnvVarBody, UpdateEnvVarResponse, SetEnvVarValueBody, SetEnvVarValueResponse, SearchSiteFunctionsResponse, UpdateSiteAssetResponse, PurgeCacheBody, UpdateSiteSnippetBody, UpdateSiteMetadataBody, UpdateSiteBuildHookBody, UpdateSiteDeployBody, UpdateSiteDeployResponse, RestoreSiteDeployResponse, UpdateSiteBuildLogBody, UpdateDeployValidationsBody, UpdateDeployValidationsStatus200, UnlockDeployResponse, UploadDeployFileResponse, UploadDeployFunctionResponse, UpdateHookBody, UpdateHookResponse, ShowTicketResponse, UpdateAccountMemberBody, UpdateAccountMemberResponse, UpdateAccountBody, UpdateAccountResponse, UpdateAgentRunnerResponse, UpdateAgentRunnerSessionResponse, ShowServiceInstanceResponse, UpdateServiceInstanceBody, ShowServiceResponse, ShowServiceManifestResponse, UpdateSplitTestBody, UpdateSplitTestResponse, TransferDnsZoneResponse, UpdateDevServerStateBody, UpdateSiteDevServerHookBody, UpdateSiteAgentRunnerHookBody, ResetSiteDatabaseBranchBody, SetSiteDatabaseBranchComputeSettingsBody, SetSiteDatabaseComputeSettingsBody, RunSiteDatabaseMigrationsBody, RestoreSiteDatabaseSnapshotBody, UpdatePluginBody, UpdatePluginResponse } from './types.mjs';
2
+
3
+ type RequestInit = {
4
+ body?: string | FormData | undefined;
5
+ headers?: Record<string, string> | undefined;
6
+ method?: string | undefined;
7
+ signal?: any | undefined;
8
+ };
9
+ type Response = {
10
+ ok: boolean;
11
+ status: number;
12
+ url: string;
13
+ json(): Promise<any>;
14
+ text(): Promise<string>;
15
+ headers?: {
16
+ get(name: string): string | null;
17
+ } | undefined;
18
+ };
19
+ type FetchImpl = (url: string, init?: RequestInit | undefined) => Promise<Response>;
20
+
21
+ type FetcherConfig = {
22
+ token?: string | null;
23
+ fetchImpl?: FetchImpl;
24
+ basePath?: string;
25
+ headers?: Record<string, any>;
26
+ };
27
+ type FetcherOptions<TBody, THeaders, TQueryParams, TPathParams> = {
28
+ url: string;
29
+ method: string;
30
+ body?: TBody | undefined;
31
+ headers?: THeaders | undefined;
32
+ queryParams?: TQueryParams | undefined;
33
+ pathParams?: TPathParams | undefined;
34
+ signal?: AbortSignal | undefined;
35
+ } & FetcherConfig;
36
+ declare function client<TData, TError, TBody, THeaders, TQueryParams, TPathParams>({ url, method, body, headers, pathParams, queryParams, signal, token, basePath, fetchImpl, }: FetcherOptions<TBody, THeaders, TQueryParams, TPathParams>): Promise<TData>;
37
+
38
+ /**
39
+ * @description **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.
40
+ * @link /sites
41
+ */
42
+ declare function listSites({ queryParams, config, }?: {
43
+ queryParams?: {
44
+ name?: string;
45
+ filter?: "all" | "owner" | "guest";
46
+ page?: number;
47
+ per_page?: number;
48
+ };
49
+ config?: Partial<FetcherConfig> & {
50
+ client?: typeof client;
51
+ };
52
+ }): Promise<ListSitesResponse>;
53
+ /**
54
+ * @description **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.
55
+ * @link /sites
56
+ */
57
+ declare function createSite({ body, queryParams, config, }?: {
58
+ body: CreateSiteBody;
59
+ queryParams?: {
60
+ configure_dns?: boolean;
61
+ };
62
+ config?: Partial<FetcherConfig> & {
63
+ client?: typeof client;
64
+ };
65
+ }): Promise<CreateSiteResponse>;
66
+ /**
67
+ * @description **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.
68
+ * @link /sites/{site_id}
69
+ */
70
+ declare function getSite({ pathParams, queryParams, config, }?: {
71
+ pathParams: {
72
+ site_id: string;
73
+ };
74
+ queryParams?: {
75
+ feature_flags?: string;
76
+ };
77
+ config?: Partial<FetcherConfig> & {
78
+ client?: typeof client;
79
+ };
80
+ }): Promise<GetSiteResponse>;
81
+ /**
82
+ * @description **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.
83
+ * @link /sites/{site_id}
84
+ */
85
+ declare function updateSite({ pathParams, body, config, }?: {
86
+ pathParams: {
87
+ site_id: string;
88
+ };
89
+ body: UpdateSiteBody;
90
+ config?: Partial<FetcherConfig> & {
91
+ client?: typeof client;
92
+ };
93
+ }): Promise<UpdateSiteResponse>;
94
+ /**
95
+ * @link /sites/{site_id}
96
+ */
97
+ declare function deleteSite({ pathParams, config, }?: {
98
+ pathParams: {
99
+ site_id: string;
100
+ };
101
+ config?: Partial<FetcherConfig> & {
102
+ client?: typeof client;
103
+ };
104
+ }): Promise<unknown>;
105
+ /**
106
+ * @description Provisions or updates a TLS certificate for the site.
107
+ * **Creating a certificate (site has no certificate):**
108
+ * - Omit certificate params to initiate Let's Encrypt provisioning
109
+ * - Provide certificate, key, and ca_certificates to upload a custom certificate
110
+ * **Updating a certificate (site already has a certificate):**
111
+ * - REQUIRES certificate, key, and ca_certificates to replace with a new custom certificate
112
+ * - Use POST /api/v1/sites/{site_id}/ssl/renew to renew an existing Let's Encrypt certificate
113
+ * @link /sites/{site_id}/ssl
114
+ */
115
+ declare function provisionSiteTLSCertificate({ pathParams, queryParams, config, }?: {
116
+ pathParams: {
117
+ site_id: string;
118
+ };
119
+ queryParams?: {
120
+ certificate?: string;
121
+ key?: string;
122
+ ca_certificates?: string;
123
+ };
124
+ config?: Partial<FetcherConfig> & {
125
+ client?: typeof client;
126
+ };
127
+ }): Promise<unknown>;
128
+ /**
129
+ * @link /sites/{site_id}/ssl
130
+ */
131
+ declare function showSiteTLSCertificate({ pathParams, config, }?: {
132
+ pathParams: {
133
+ site_id: string;
134
+ };
135
+ config?: Partial<FetcherConfig> & {
136
+ client?: typeof client;
137
+ };
138
+ }): Promise<ShowSiteTLSCertificateResponse>;
139
+ /**
140
+ * @link /sites/{site_id}/ssl/certificates
141
+ */
142
+ declare function getAllCertificates({ pathParams, queryParams, config, }?: {
143
+ pathParams: {
144
+ site_id: string;
145
+ };
146
+ queryParams?: {
147
+ domain?: string;
148
+ };
149
+ config?: Partial<FetcherConfig> & {
150
+ client?: typeof client;
151
+ };
152
+ }): Promise<unknown>;
153
+ /**
154
+ * @description Returns all environment variables for an account or site. An account corresponds to a team in the Netlify UI.
155
+ * @link /accounts/{account_id}/env
156
+ */
157
+ declare function getEnvVars({ pathParams, queryParams, config, }?: {
158
+ pathParams: {
159
+ account_id: string;
160
+ };
161
+ queryParams?: {
162
+ context_name?: "all" | "dev" | "dev-server" | "branch-deploy" | "deploy-preview" | "production";
163
+ scope?: "builds" | "functions" | "runtime" | "post-processing";
164
+ site_id?: string;
165
+ };
166
+ config?: Partial<FetcherConfig> & {
167
+ client?: typeof client;
168
+ };
169
+ }): Promise<GetEnvVarsResponse>;
170
+ /**
171
+ * @description Creates new environment variables. Granular scopes are available on Pro plans and above.
172
+ * @link /accounts/{account_id}/env
173
+ */
174
+ declare function createEnvVars({ pathParams, body, queryParams, config, }?: {
175
+ pathParams: {
176
+ account_id: string;
177
+ };
178
+ body?: CreateEnvVarsBody;
179
+ queryParams?: {
180
+ site_id?: string;
181
+ };
182
+ config?: Partial<FetcherConfig> & {
183
+ client?: typeof client;
184
+ };
185
+ }): Promise<CreateEnvVarsResponse>;
186
+ /**
187
+ * @description Returns all environment variables for a site. This convenience method behaves the same as `getEnvVars` but doesn't require an `account_id` as input.
188
+ * @link /api/v1/sites/{site_id}/env
189
+ */
190
+ declare function getSiteEnvVars({ pathParams, queryParams, config, }?: {
191
+ pathParams: {
192
+ site_id: string;
193
+ };
194
+ queryParams?: {
195
+ context_name?: "all" | "dev" | "dev-server" | "branch-deploy" | "deploy-preview" | "production";
196
+ scope?: "builds" | "functions" | "runtime" | "post_processing";
197
+ };
198
+ config?: Partial<FetcherConfig> & {
199
+ client?: typeof client;
200
+ };
201
+ }): Promise<GetSiteEnvVarsResponse>;
202
+ /**
203
+ * @description Returns an individual environment variable.
204
+ * @link /accounts/{account_id}/env/{key}
205
+ */
206
+ declare function getEnvVar({ pathParams, queryParams, config, }?: {
207
+ pathParams: {
208
+ account_id: string;
209
+ key: string;
210
+ };
211
+ queryParams?: {
212
+ site_id?: string;
213
+ };
214
+ config?: Partial<FetcherConfig> & {
215
+ client?: typeof client;
216
+ };
217
+ }): Promise<GetEnvVarResponse>;
218
+ /**
219
+ * @description Updates an existing environment variable and all of its values. Existing values will be replaced by values provided.
220
+ * @link /accounts/{account_id}/env/{key}
221
+ */
222
+ declare function updateEnvVar({ pathParams, body, queryParams, config, }?: {
223
+ pathParams: {
224
+ account_id: string;
225
+ key: string;
226
+ };
227
+ body?: UpdateEnvVarBody;
228
+ queryParams?: {
229
+ site_id?: string;
230
+ };
231
+ config?: Partial<FetcherConfig> & {
232
+ client?: typeof client;
233
+ };
234
+ }): Promise<UpdateEnvVarResponse>;
235
+ /**
236
+ * @description Updates or creates a new value for an existing environment variable.
237
+ * @link /accounts/{account_id}/env/{key}
238
+ */
239
+ declare function setEnvVarValue({ pathParams, body, queryParams, config, }?: {
240
+ pathParams: {
241
+ account_id: string;
242
+ key: string;
243
+ };
244
+ body?: SetEnvVarValueBody;
245
+ queryParams?: {
246
+ site_id?: string;
247
+ };
248
+ config?: Partial<FetcherConfig> & {
249
+ client?: typeof client;
250
+ };
251
+ }): Promise<SetEnvVarValueResponse>;
252
+ /**
253
+ * @description Deletes an environment variable
254
+ * @link /accounts/{account_id}/env/{key}
255
+ */
256
+ declare function deleteEnvVar({ pathParams, queryParams, config, }?: {
257
+ pathParams: {
258
+ account_id: string;
259
+ key: string;
260
+ };
261
+ queryParams?: {
262
+ site_id?: string;
263
+ };
264
+ config?: Partial<FetcherConfig> & {
265
+ client?: typeof client;
266
+ };
267
+ }): Promise<unknown>;
268
+ /**
269
+ * @description Deletes a specific environment variable value.
270
+ * @link /accounts/{account_id}/env/{key}/value/{id}
271
+ */
272
+ declare function deleteEnvVarValue({ pathParams, queryParams, config, }?: {
273
+ pathParams: {
274
+ account_id: string;
275
+ id: string;
276
+ key: string;
277
+ };
278
+ queryParams?: {
279
+ site_id?: string;
280
+ };
281
+ config?: Partial<FetcherConfig> & {
282
+ client?: typeof client;
283
+ };
284
+ }): Promise<unknown>;
285
+ /**
286
+ * @link /sites/{site_id}/functions
287
+ */
288
+ declare function searchSiteFunctions({ pathParams, queryParams, config, }?: {
289
+ pathParams: {
290
+ site_id: string;
291
+ };
292
+ queryParams?: {
293
+ filter?: string;
294
+ };
295
+ config?: Partial<FetcherConfig> & {
296
+ client?: typeof client;
297
+ };
298
+ }): Promise<SearchSiteFunctionsResponse>;
299
+ /**
300
+ * @link /sites/{site_id}/forms
301
+ */
302
+ declare function listSiteForms({ pathParams, config, }?: {
303
+ pathParams: {
304
+ site_id: string;
305
+ };
306
+ config?: Partial<FetcherConfig> & {
307
+ client?: typeof client;
308
+ };
309
+ }): Promise<ListSiteFormsResponse>;
310
+ /**
311
+ * @link /sites/{site_id}/forms/{form_id}
312
+ */
313
+ declare function deleteSiteForm({ pathParams, config, }?: {
314
+ pathParams: {
315
+ site_id: string;
316
+ form_id: string;
317
+ };
318
+ config?: Partial<FetcherConfig> & {
319
+ client?: typeof client;
320
+ };
321
+ }): Promise<unknown>;
322
+ /**
323
+ * @link /sites/{site_id}/submissions
324
+ */
325
+ declare function listSiteSubmissions({ pathParams, queryParams, config, }?: {
326
+ pathParams: {
327
+ site_id: string;
328
+ };
329
+ queryParams?: {
330
+ page?: number;
331
+ per_page?: number;
332
+ };
333
+ config?: Partial<FetcherConfig> & {
334
+ client?: typeof client;
335
+ };
336
+ }): Promise<ListSiteSubmissionsResponse>;
337
+ /**
338
+ * @link /sites/{site_id}/files
339
+ */
340
+ declare function listSiteFiles({ pathParams, config, }?: {
341
+ pathParams: {
342
+ site_id: string;
343
+ };
344
+ config?: Partial<FetcherConfig> & {
345
+ client?: typeof client;
346
+ };
347
+ }): Promise<ListSiteFilesResponse>;
348
+ /**
349
+ * @link /sites/{site_id}/assets
350
+ */
351
+ declare function listSiteAssets({ pathParams, config, }?: {
352
+ pathParams: {
353
+ site_id: string;
354
+ };
355
+ config?: Partial<FetcherConfig> & {
356
+ client?: typeof client;
357
+ };
358
+ }): Promise<ListSiteAssetsResponse>;
359
+ /**
360
+ * @link /sites/{site_id}/assets
361
+ */
362
+ declare function createSiteAsset({ pathParams, queryParams, config, }?: {
363
+ pathParams: {
364
+ site_id: string;
365
+ };
366
+ queryParams?: {
367
+ name?: string;
368
+ size?: bigint;
369
+ content_type?: string;
370
+ visibility?: string;
371
+ };
372
+ config?: Partial<FetcherConfig> & {
373
+ client?: typeof client;
374
+ };
375
+ }): Promise<CreateSiteAssetResponse>;
376
+ /**
377
+ * @link /sites/{site_id}/assets/{asset_id}
378
+ */
379
+ declare function getSiteAssetInfo({ pathParams, config, }?: {
380
+ pathParams: {
381
+ site_id: string;
382
+ asset_id: string;
383
+ };
384
+ config?: Partial<FetcherConfig> & {
385
+ client?: typeof client;
386
+ };
387
+ }): Promise<GetSiteAssetInfoResponse>;
388
+ /**
389
+ * @link /sites/{site_id}/assets/{asset_id}
390
+ */
391
+ declare function updateSiteAsset({ pathParams, queryParams, config, }?: {
392
+ pathParams: {
393
+ site_id: string;
394
+ asset_id: string;
395
+ };
396
+ queryParams?: {
397
+ state?: string;
398
+ };
399
+ config?: Partial<FetcherConfig> & {
400
+ client?: typeof client;
401
+ };
402
+ }): Promise<UpdateSiteAssetResponse>;
403
+ /**
404
+ * @link /sites/{site_id}/assets/{asset_id}
405
+ */
406
+ declare function deleteSiteAsset({ pathParams, config, }?: {
407
+ pathParams: {
408
+ site_id: string;
409
+ asset_id: string;
410
+ };
411
+ config?: Partial<FetcherConfig> & {
412
+ client?: typeof client;
413
+ };
414
+ }): Promise<unknown>;
415
+ /**
416
+ * @link /sites/{site_id}/assets/{asset_id}/public_signature
417
+ */
418
+ declare function getSiteAssetPublicSignature({ pathParams, config, }?: {
419
+ pathParams: {
420
+ site_id: string;
421
+ asset_id: string;
422
+ };
423
+ config?: Partial<FetcherConfig> & {
424
+ client?: typeof client;
425
+ };
426
+ }): Promise<GetSiteAssetPublicSignatureResponse>;
427
+ /**
428
+ * @link /sites/{site_id}/files/{file_path}
429
+ */
430
+ declare function getSiteFileByPathName({ pathParams, config, }?: {
431
+ pathParams: {
432
+ site_id: string;
433
+ file_path: string;
434
+ };
435
+ config?: Partial<FetcherConfig> & {
436
+ client?: typeof client;
437
+ };
438
+ }): Promise<GetSiteFileByPathNameResponse>;
439
+ /**
440
+ * @description Purges cached content from Netlify's CDN. Supports purging by Cache-Tag.
441
+ * @link /purge
442
+ */
443
+ declare function purgeCache({ body, config, }?: {
444
+ body: PurgeCacheBody;
445
+ config?: Partial<FetcherConfig> & {
446
+ client?: typeof client;
447
+ };
448
+ }): Promise<unknown>;
449
+ /**
450
+ * @link /sites/{site_id}/snippets
451
+ */
452
+ declare function listSiteSnippets({ pathParams, config, }?: {
453
+ pathParams: {
454
+ site_id: string;
455
+ };
456
+ config?: Partial<FetcherConfig> & {
457
+ client?: typeof client;
458
+ };
459
+ }): Promise<ListSiteSnippetsResponse>;
460
+ /**
461
+ * @link /sites/{site_id}/snippets
462
+ */
463
+ declare function createSiteSnippet({ pathParams, body, config, }?: {
464
+ pathParams: {
465
+ site_id: string;
466
+ };
467
+ body: CreateSiteSnippetBody;
468
+ config?: Partial<FetcherConfig> & {
469
+ client?: typeof client;
470
+ };
471
+ }): Promise<CreateSiteSnippetResponse>;
472
+ /**
473
+ * @link /sites/{site_id}/snippets/{snippet_id}
474
+ */
475
+ declare function getSiteSnippet({ pathParams, config, }?: {
476
+ pathParams: {
477
+ site_id: string;
478
+ snippet_id: string;
479
+ };
480
+ config?: Partial<FetcherConfig> & {
481
+ client?: typeof client;
482
+ };
483
+ }): Promise<GetSiteSnippetResponse>;
484
+ /**
485
+ * @link /sites/{site_id}/snippets/{snippet_id}
486
+ */
487
+ declare function updateSiteSnippet({ pathParams, body, config, }?: {
488
+ pathParams: {
489
+ site_id: string;
490
+ snippet_id: string;
491
+ };
492
+ body: UpdateSiteSnippetBody;
493
+ config?: Partial<FetcherConfig> & {
494
+ client?: typeof client;
495
+ };
496
+ }): Promise<unknown>;
497
+ /**
498
+ * @link /sites/{site_id}/snippets/{snippet_id}
499
+ */
500
+ declare function deleteSiteSnippet({ pathParams, config, }?: {
501
+ pathParams: {
502
+ site_id: string;
503
+ snippet_id: string;
504
+ };
505
+ config?: Partial<FetcherConfig> & {
506
+ client?: typeof client;
507
+ };
508
+ }): Promise<unknown>;
509
+ /**
510
+ * @link /sites/{site_id}/metadata
511
+ */
512
+ declare function getSiteMetadata({ pathParams, config, }?: {
513
+ pathParams: {
514
+ site_id: string;
515
+ };
516
+ config?: Partial<FetcherConfig> & {
517
+ client?: typeof client;
518
+ };
519
+ }): Promise<GetSiteMetadataResponse>;
520
+ /**
521
+ * @link /sites/{site_id}/metadata
522
+ */
523
+ declare function updateSiteMetadata({ pathParams, body, config, }?: {
524
+ pathParams: {
525
+ site_id: string;
526
+ };
527
+ body: UpdateSiteMetadataBody;
528
+ config?: Partial<FetcherConfig> & {
529
+ client?: typeof client;
530
+ };
531
+ }): Promise<unknown>;
532
+ /**
533
+ * @link /sites/{site_id}/build_hooks
534
+ */
535
+ declare function listSiteBuildHooks({ pathParams, config, }?: {
536
+ pathParams: {
537
+ site_id: string;
538
+ };
539
+ config?: Partial<FetcherConfig> & {
540
+ client?: typeof client;
541
+ };
542
+ }): Promise<ListSiteBuildHooksResponse>;
543
+ /**
544
+ * @link /sites/{site_id}/build_hooks
545
+ */
546
+ declare function createSiteBuildHook({ pathParams, body, config, }?: {
547
+ pathParams: {
548
+ site_id: string;
549
+ };
550
+ body: CreateSiteBuildHookBody;
551
+ config?: Partial<FetcherConfig> & {
552
+ client?: typeof client;
553
+ };
554
+ }): Promise<CreateSiteBuildHookResponse>;
555
+ /**
556
+ * @link /sites/{site_id}/build_hooks/{id}
557
+ */
558
+ declare function getSiteBuildHook({ pathParams, config, }?: {
559
+ pathParams: {
560
+ site_id: string;
561
+ id: string;
562
+ };
563
+ config?: Partial<FetcherConfig> & {
564
+ client?: typeof client;
565
+ };
566
+ }): Promise<GetSiteBuildHookResponse>;
567
+ /**
568
+ * @link /sites/{site_id}/build_hooks/{id}
569
+ */
570
+ declare function updateSiteBuildHook({ pathParams, body, config, }?: {
571
+ pathParams: {
572
+ site_id: string;
573
+ id: string;
574
+ };
575
+ body: UpdateSiteBuildHookBody;
576
+ config?: Partial<FetcherConfig> & {
577
+ client?: typeof client;
578
+ };
579
+ }): Promise<unknown>;
580
+ /**
581
+ * @link /sites/{site_id}/build_hooks/{id}
582
+ */
583
+ declare function deleteSiteBuildHook({ pathParams, config, }?: {
584
+ pathParams: {
585
+ site_id: string;
586
+ id: string;
587
+ };
588
+ config?: Partial<FetcherConfig> & {
589
+ client?: typeof client;
590
+ };
591
+ }): Promise<unknown>;
592
+ /**
593
+ * @link /sites/{site_id}/deploys
594
+ */
595
+ declare function listSiteDeploys({ pathParams, queryParams, config, }?: {
596
+ pathParams: {
597
+ site_id: string;
598
+ };
599
+ queryParams?: {
600
+ "deploy-previews"?: boolean;
601
+ production?: boolean;
602
+ state?: "new" | "pending_review" | "accepted" | "rejected" | "enqueued" | "building" | "uploading" | "uploaded" | "preparing" | "prepared" | "processing" | "processed" | "ready" | "error" | "retrying";
603
+ branch?: string;
604
+ "latest-published"?: boolean;
605
+ page?: number;
606
+ per_page?: number;
607
+ };
608
+ config?: Partial<FetcherConfig> & {
609
+ client?: typeof client;
610
+ };
611
+ }): Promise<ListSiteDeploysResponse>;
612
+ /**
613
+ * @link /sites/{site_id}/deploys
614
+ */
615
+ declare function createSiteDeploy({ pathParams, body, queryParams, config, }?: {
616
+ pathParams: {
617
+ site_id: string;
618
+ };
619
+ body: CreateSiteDeployBody;
620
+ queryParams?: {
621
+ "deploy-previews"?: boolean;
622
+ production?: boolean;
623
+ state?: "new" | "pending_review" | "accepted" | "rejected" | "enqueued" | "building" | "uploading" | "uploaded" | "preparing" | "prepared" | "processing" | "processed" | "ready" | "error" | "retrying";
624
+ branch?: string;
625
+ "latest-published"?: boolean;
626
+ title?: string;
627
+ };
628
+ config?: Partial<FetcherConfig> & {
629
+ client?: typeof client;
630
+ };
631
+ }): Promise<CreateSiteDeployResponse>;
632
+ /**
633
+ * @link /sites/{site_id}/deploys/{deploy_id}
634
+ */
635
+ declare function getSiteDeploy({ pathParams, config, }?: {
636
+ pathParams: {
637
+ site_id: string;
638
+ deploy_id: string;
639
+ };
640
+ config?: Partial<FetcherConfig> & {
641
+ client?: typeof client;
642
+ };
643
+ }): Promise<GetSiteDeployResponse>;
644
+ /**
645
+ * @link /sites/{site_id}/deploys/{deploy_id}
646
+ */
647
+ declare function updateSiteDeploy({ pathParams, body, queryParams, config, }?: {
648
+ pathParams: {
649
+ site_id: string;
650
+ deploy_id: string;
651
+ };
652
+ body: UpdateSiteDeployBody;
653
+ queryParams?: {
654
+ commit_ref?: string;
655
+ };
656
+ config?: Partial<FetcherConfig> & {
657
+ client?: typeof client;
658
+ };
659
+ }): Promise<UpdateSiteDeployResponse>;
660
+ /**
661
+ * @link /sites/{site_id}/deploys/{deploy_id}
662
+ */
663
+ declare function deleteSiteDeploy({ pathParams, config, }?: {
664
+ pathParams: {
665
+ deploy_id: string;
666
+ site_id: string;
667
+ };
668
+ config?: Partial<FetcherConfig> & {
669
+ client?: typeof client;
670
+ };
671
+ }): Promise<unknown>;
672
+ /**
673
+ * @link /deploys/{deploy_id}/cancel
674
+ */
675
+ declare function cancelSiteDeploy({ pathParams, config, }?: {
676
+ pathParams: {
677
+ deploy_id: string;
678
+ };
679
+ config?: Partial<FetcherConfig> & {
680
+ client?: typeof client;
681
+ };
682
+ }): Promise<CancelSiteDeployResponse>;
683
+ /**
684
+ * @link /sites/{site_id}/deploys/{deploy_id}/restore
685
+ */
686
+ declare function restoreSiteDeploy({ pathParams, config, }?: {
687
+ pathParams: {
688
+ site_id: string;
689
+ deploy_id: string;
690
+ };
691
+ config?: Partial<FetcherConfig> & {
692
+ client?: typeof client;
693
+ };
694
+ }): Promise<RestoreSiteDeployResponse>;
695
+ /**
696
+ * @link /sites/{site_id}/builds
697
+ */
698
+ declare function listSiteBuilds({ pathParams, queryParams, config, }?: {
699
+ pathParams: {
700
+ site_id: string;
701
+ };
702
+ queryParams?: {
703
+ page?: number;
704
+ per_page?: number;
705
+ };
706
+ config?: Partial<FetcherConfig> & {
707
+ client?: typeof client;
708
+ };
709
+ }): Promise<ListSiteBuildsResponse>;
710
+ /**
711
+ * @description Runs a build for a site. The build will be scheduled to run at the first opportunity, but it might not start immediately if insufficient account build capacity is available.
712
+ * Files for build can be uploaded as a zipped site using one of these methods:
713
+ * 1. Set Content-Type to 'application/zip' and send the zip file as the raw request body
714
+ * 2. Set Content-Type to 'multipart/form-data' and include the zip file in the 'zip' field
715
+ * @link /sites/{site_id}/builds
716
+ */
717
+ declare function createSiteBuild({ pathParams, queryParams, config, }?: {
718
+ pathParams: {
719
+ site_id: string;
720
+ };
721
+ queryParams?: {
722
+ branch?: string;
723
+ clear_cache?: boolean;
724
+ image?: string;
725
+ template_id?: string;
726
+ title?: string;
727
+ };
728
+ config?: Partial<FetcherConfig> & {
729
+ client?: typeof client;
730
+ };
731
+ }): Promise<unknown>;
732
+ /**
733
+ * @link /sites/{site_id}/deployed-branches
734
+ */
735
+ declare function listSiteDeployedBranches({ pathParams, config, }?: {
736
+ pathParams: {
737
+ site_id: string;
738
+ };
739
+ config?: Partial<FetcherConfig> & {
740
+ client?: typeof client;
741
+ };
742
+ }): Promise<ListSiteDeployedBranchesResponse>;
743
+ /**
744
+ * @description [Beta] Unlinks the repo from the site.
745
+ * This action will also:
746
+ * - Delete associated deploy keys
747
+ * - Delete outgoing webhooks for the repo
748
+ * - Delete the site's build hooks
749
+ * @link /sites/{site_id}/unlink_repo
750
+ */
751
+ declare function unlinkSiteRepo({ pathParams, config, }?: {
752
+ pathParams: {
753
+ site_id: string;
754
+ };
755
+ config?: Partial<FetcherConfig> & {
756
+ client?: typeof client;
757
+ };
758
+ }): Promise<unknown>;
759
+ /**
760
+ * @description Re-enables a site that was previously disabled by the user. Sites that were disabled for usage exceeded or marked as spam cannot be re-enabled via this endpoint.
761
+ * @link /sites/{site_id}/enable
762
+ */
763
+ declare function enableSite({ pathParams, config, }?: {
764
+ pathParams: {
765
+ site_id: string;
766
+ };
767
+ config?: Partial<FetcherConfig> & {
768
+ client?: typeof client;
769
+ };
770
+ }): Promise<unknown>;
771
+ /**
772
+ * @description Disables a site, preventing it from serving content. The site can be re-enabled later using the enable endpoint.
773
+ * @link /sites/{site_id}/disable
774
+ */
775
+ declare function disableSite({ pathParams, queryParams, config, }?: {
776
+ pathParams: {
777
+ site_id: string;
778
+ };
779
+ queryParams?: {
780
+ reason?: string;
781
+ };
782
+ config?: Partial<FetcherConfig> & {
783
+ client?: typeof client;
784
+ };
785
+ }): Promise<unknown>;
786
+ /**
787
+ * @link /builds/{build_id}
788
+ */
789
+ declare function getSiteBuild({ pathParams, config, }?: {
790
+ pathParams: {
791
+ build_id: string;
792
+ };
793
+ config?: Partial<FetcherConfig> & {
794
+ client?: typeof client;
795
+ };
796
+ }): Promise<GetSiteBuildResponse>;
797
+ /**
798
+ * @link /builds/{build_id}/log
799
+ */
800
+ declare function updateSiteBuildLog({ pathParams, body, config, }?: {
801
+ pathParams: {
802
+ build_id: string;
803
+ };
804
+ body: UpdateSiteBuildLogBody;
805
+ config?: Partial<FetcherConfig> & {
806
+ client?: typeof client;
807
+ };
808
+ }): Promise<unknown>;
809
+ /**
810
+ * @link /builds/{build_id}/start
811
+ */
812
+ declare function notifyBuildStart({ pathParams, queryParams, config, }?: {
813
+ pathParams: {
814
+ build_id: string;
815
+ };
816
+ queryParams?: {
817
+ buildbot_version?: string;
818
+ build_version?: string;
819
+ task_id?: string;
820
+ };
821
+ config?: Partial<FetcherConfig> & {
822
+ client?: typeof client;
823
+ };
824
+ }): Promise<unknown>;
825
+ /**
826
+ * @link /{account_id}/builds/status
827
+ */
828
+ declare function getAccountBuildStatus({ pathParams, config, }?: {
829
+ pathParams: {
830
+ account_id: string;
831
+ };
832
+ config?: Partial<FetcherConfig> & {
833
+ client?: typeof client;
834
+ };
835
+ }): Promise<GetAccountBuildStatusResponse>;
836
+ /**
837
+ * @link /sites/{site_id}/dns
838
+ */
839
+ declare function getDNSForSite({ pathParams, config, }?: {
840
+ pathParams: {
841
+ site_id: string;
842
+ };
843
+ config?: Partial<FetcherConfig> & {
844
+ client?: typeof client;
845
+ };
846
+ }): Promise<GetDNSForSiteResponse>;
847
+ /**
848
+ * @link /sites/{site_id}/dns
849
+ */
850
+ declare function configureDNSForSite({ pathParams, config, }?: {
851
+ pathParams: {
852
+ site_id: string;
853
+ };
854
+ config?: Partial<FetcherConfig> & {
855
+ client?: typeof client;
856
+ };
857
+ }): Promise<ConfigureDNSForSiteResponse>;
858
+ /**
859
+ * @link /sites/{site_id}/rollback
860
+ */
861
+ declare function rollbackSiteDeploy({ pathParams, config, }?: {
862
+ pathParams: {
863
+ site_id: string;
864
+ };
865
+ config?: Partial<FetcherConfig> & {
866
+ client?: typeof client;
867
+ };
868
+ }): Promise<unknown>;
869
+ /**
870
+ * @link /deploys/{deploy_id}
871
+ */
872
+ declare function getDeploy({ pathParams, config, }?: {
873
+ pathParams: {
874
+ deploy_id: string;
875
+ };
876
+ config?: Partial<FetcherConfig> & {
877
+ client?: typeof client;
878
+ };
879
+ }): Promise<GetDeployResponse>;
880
+ /**
881
+ * @link /deploys/{deploy_id}
882
+ */
883
+ declare function deleteDeploy({ pathParams, config, }?: {
884
+ pathParams: {
885
+ deploy_id: string;
886
+ };
887
+ config?: Partial<FetcherConfig> & {
888
+ client?: typeof client;
889
+ };
890
+ }): Promise<unknown>;
891
+ /**
892
+ * @description Updates the deploy validations report for a deploy.
893
+ * @link /deploys/{deploy_id}/validations_report
894
+ */
895
+ declare function updateDeployValidations({ pathParams, body, config, }?: {
896
+ pathParams: {
897
+ deploy_id: string;
898
+ };
899
+ body: UpdateDeployValidationsBody;
900
+ config?: Partial<FetcherConfig> & {
901
+ client?: typeof client;
902
+ };
903
+ }): Promise<UpdateDeployValidationsStatus200>;
904
+ /**
905
+ * @link /deploys/{deploy_id}/lock
906
+ */
907
+ declare function lockDeploy({ pathParams, config, }?: {
908
+ pathParams: {
909
+ deploy_id: string;
910
+ };
911
+ config?: Partial<FetcherConfig> & {
912
+ client?: typeof client;
913
+ };
914
+ }): Promise<LockDeployResponse>;
915
+ /**
916
+ * @link /deploys/{deploy_id}/unlock
917
+ */
918
+ declare function unlockDeploy({ pathParams, config, }?: {
919
+ pathParams: {
920
+ deploy_id: string;
921
+ };
922
+ config?: Partial<FetcherConfig> & {
923
+ client?: typeof client;
924
+ };
925
+ }): Promise<UnlockDeployResponse>;
926
+ /**
927
+ * @link /deploys/{deploy_id}/files/{path}
928
+ */
929
+ declare function uploadDeployFile({ pathParams, queryParams, config, }?: {
930
+ pathParams: {
931
+ deploy_id: string;
932
+ path: string;
933
+ };
934
+ queryParams?: {
935
+ size?: number;
936
+ };
937
+ config?: Partial<FetcherConfig> & {
938
+ client?: typeof client;
939
+ };
940
+ }): Promise<UploadDeployFileResponse>;
941
+ /**
942
+ * @link /deploys/{deploy_id}/functions/{name}
943
+ */
944
+ declare function uploadDeployFunction({ pathParams, queryParams, headers, config, }?: {
945
+ pathParams: {
946
+ deploy_id: string;
947
+ name: string;
948
+ };
949
+ queryParams?: {
950
+ runtime?: string;
951
+ invocation_mode?: string;
952
+ timeout?: number;
953
+ size?: number;
954
+ };
955
+ headers?: {
956
+ "X-Nf-Retry-Count"?: number;
957
+ };
958
+ config?: Partial<FetcherConfig> & {
959
+ client?: typeof client;
960
+ };
961
+ }): Promise<UploadDeployFunctionResponse>;
962
+ /**
963
+ * @link /deploys/{deploy_id}/edge_functions/{code_sha}
964
+ */
965
+ declare function uploadDeployEdgeFunction({ pathParams, headers, config, }?: {
966
+ pathParams: {
967
+ deploy_id: string;
968
+ code_sha: string;
969
+ };
970
+ headers?: {
971
+ "X-Nf-Retry-Count"?: number;
972
+ };
973
+ config?: Partial<FetcherConfig> & {
974
+ client?: typeof client;
975
+ };
976
+ }): Promise<unknown>;
977
+ /**
978
+ * @description This is an internal-only endpoint.
979
+ * @link /sites/{site_id}/plugin_runs/latest
980
+ */
981
+ declare function getLatestPluginRuns({ pathParams, queryParams, config, }?: {
982
+ pathParams: {
983
+ site_id: string;
984
+ };
985
+ queryParams?: {
986
+ packages?: Array<string>;
987
+ state?: string;
988
+ };
989
+ config?: Partial<FetcherConfig> & {
990
+ client?: typeof client;
991
+ };
992
+ }): Promise<GetLatestPluginRunsResponse>;
993
+ /**
994
+ * @description This is an internal-only endpoint.
995
+ * @link /deploys/{deploy_id}/plugin_runs
996
+ */
997
+ declare function createPluginRun({ pathParams, body, config, }?: {
998
+ pathParams: {
999
+ deploy_id: string;
1000
+ };
1001
+ body?: CreatePluginRunBody;
1002
+ config?: Partial<FetcherConfig> & {
1003
+ client?: typeof client;
1004
+ };
1005
+ }): Promise<CreatePluginRunResponse>;
1006
+ /**
1007
+ * @link /forms/{form_id}/submissions
1008
+ */
1009
+ declare function listFormSubmissions({ pathParams, queryParams, config, }?: {
1010
+ pathParams: {
1011
+ form_id: string;
1012
+ };
1013
+ queryParams?: {
1014
+ page?: number;
1015
+ per_page?: number;
1016
+ };
1017
+ config?: Partial<FetcherConfig> & {
1018
+ client?: typeof client;
1019
+ };
1020
+ }): Promise<ListFormSubmissionsResponse>;
1021
+ /**
1022
+ * @link /hooks
1023
+ */
1024
+ declare function listHooksBySiteId({ queryParams, config, }?: {
1025
+ queryParams?: {
1026
+ site_id?: string;
1027
+ };
1028
+ config?: Partial<FetcherConfig> & {
1029
+ client?: typeof client;
1030
+ };
1031
+ }): Promise<ListHooksBySiteIdResponse>;
1032
+ /**
1033
+ * @link /hooks
1034
+ */
1035
+ declare function createHookBySiteId({ body, queryParams, config, }?: {
1036
+ body: CreateHookBySiteIdBody;
1037
+ queryParams?: {
1038
+ site_id?: string;
1039
+ };
1040
+ config?: Partial<FetcherConfig> & {
1041
+ client?: typeof client;
1042
+ };
1043
+ }): Promise<CreateHookBySiteIdResponse>;
1044
+ /**
1045
+ * @link /hooks/{hook_id}
1046
+ */
1047
+ declare function getHook({ pathParams, config, }?: {
1048
+ pathParams: {
1049
+ hook_id: string;
1050
+ };
1051
+ config?: Partial<FetcherConfig> & {
1052
+ client?: typeof client;
1053
+ };
1054
+ }): Promise<GetHookResponse>;
1055
+ /**
1056
+ * @link /hooks/{hook_id}
1057
+ */
1058
+ declare function updateHook({ pathParams, body, config, }?: {
1059
+ pathParams: {
1060
+ hook_id: string;
1061
+ };
1062
+ body: UpdateHookBody;
1063
+ config?: Partial<FetcherConfig> & {
1064
+ client?: typeof client;
1065
+ };
1066
+ }): Promise<UpdateHookResponse>;
1067
+ /**
1068
+ * @link /hooks/{hook_id}
1069
+ */
1070
+ declare function deleteHook({ pathParams, config, }?: {
1071
+ pathParams: {
1072
+ hook_id: string;
1073
+ };
1074
+ config?: Partial<FetcherConfig> & {
1075
+ client?: typeof client;
1076
+ };
1077
+ }): Promise<unknown>;
1078
+ /**
1079
+ * @link /hooks/{hook_id}/enable
1080
+ */
1081
+ declare function enableHook({ pathParams, config, }?: {
1082
+ pathParams: {
1083
+ hook_id: string;
1084
+ };
1085
+ config?: Partial<FetcherConfig> & {
1086
+ client?: typeof client;
1087
+ };
1088
+ }): Promise<EnableHookResponse>;
1089
+ /**
1090
+ * @link /hooks/types
1091
+ */
1092
+ declare function listHookTypes({ config }?: {
1093
+ config?: Partial<FetcherConfig> & {
1094
+ client?: typeof client;
1095
+ };
1096
+ }): Promise<ListHookTypesResponse>;
1097
+ /**
1098
+ * @link /oauth/tickets
1099
+ */
1100
+ declare function createTicket({ body, queryParams, config, }?: {
1101
+ body?: CreateTicketBody;
1102
+ queryParams?: {
1103
+ client_id?: string;
1104
+ };
1105
+ config?: Partial<FetcherConfig> & {
1106
+ client?: typeof client;
1107
+ };
1108
+ }): Promise<CreateTicketResponse>;
1109
+ /**
1110
+ * @link /oauth/tickets/{ticket_id}
1111
+ */
1112
+ declare function showTicket({ pathParams, config, }?: {
1113
+ pathParams: {
1114
+ ticket_id: string;
1115
+ };
1116
+ config?: Partial<FetcherConfig> & {
1117
+ client?: typeof client;
1118
+ };
1119
+ }): Promise<ShowTicketResponse>;
1120
+ /**
1121
+ * @link /oauth/tickets/{ticket_id}/exchange
1122
+ */
1123
+ declare function exchangeTicket({ pathParams, config, }?: {
1124
+ pathParams: {
1125
+ ticket_id: string;
1126
+ };
1127
+ config?: Partial<FetcherConfig> & {
1128
+ client?: typeof client;
1129
+ };
1130
+ }): Promise<ExchangeTicketResponse>;
1131
+ /**
1132
+ * @link /deploy_keys
1133
+ */
1134
+ declare function listDeployKeys({ config }?: {
1135
+ config?: Partial<FetcherConfig> & {
1136
+ client?: typeof client;
1137
+ };
1138
+ }): Promise<ListDeployKeysResponse>;
1139
+ /**
1140
+ * @link /deploy_keys
1141
+ */
1142
+ declare function createDeployKey({ config }?: {
1143
+ config?: Partial<FetcherConfig> & {
1144
+ client?: typeof client;
1145
+ };
1146
+ }): Promise<CreateDeployKeyResponse>;
1147
+ /**
1148
+ * @link /deploy_keys/{key_id}
1149
+ */
1150
+ declare function getDeployKey({ pathParams, config, }?: {
1151
+ pathParams: {
1152
+ key_id: string;
1153
+ };
1154
+ config?: Partial<FetcherConfig> & {
1155
+ client?: typeof client;
1156
+ };
1157
+ }): Promise<GetDeployKeyResponse>;
1158
+ /**
1159
+ * @link /deploy_keys/{key_id}
1160
+ */
1161
+ declare function deleteDeployKey({ pathParams, config, }?: {
1162
+ pathParams: {
1163
+ key_id: string;
1164
+ };
1165
+ config?: Partial<FetcherConfig> & {
1166
+ client?: typeof client;
1167
+ };
1168
+ }): Promise<unknown>;
1169
+ /**
1170
+ * @description **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.
1171
+ * @link /{account_slug}/sites
1172
+ */
1173
+ declare function createSiteInTeam({ pathParams, body, queryParams, config, }?: {
1174
+ pathParams: {
1175
+ account_slug: string;
1176
+ };
1177
+ body?: CreateSiteInTeamBody;
1178
+ queryParams?: {
1179
+ configure_dns?: boolean;
1180
+ };
1181
+ config?: Partial<FetcherConfig> & {
1182
+ client?: typeof client;
1183
+ };
1184
+ }): Promise<CreateSiteInTeamResponse>;
1185
+ /**
1186
+ * @description **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.
1187
+ * @link /{account_slug}/sites
1188
+ */
1189
+ declare function listSitesForAccount({ pathParams, queryParams, config, }?: {
1190
+ pathParams: {
1191
+ account_slug: string;
1192
+ };
1193
+ queryParams?: {
1194
+ name?: string;
1195
+ page?: number;
1196
+ per_page?: number;
1197
+ };
1198
+ config?: Partial<FetcherConfig> & {
1199
+ client?: typeof client;
1200
+ };
1201
+ }): Promise<ListSitesForAccountResponse>;
1202
+ /**
1203
+ * @link /{account_slug}/members
1204
+ */
1205
+ declare function listMembersForAccount({ pathParams, config, }?: {
1206
+ pathParams: {
1207
+ account_slug: string;
1208
+ };
1209
+ config?: Partial<FetcherConfig> & {
1210
+ client?: typeof client;
1211
+ };
1212
+ }): Promise<ListMembersForAccountResponse>;
1213
+ /**
1214
+ * @link /{account_slug}/members
1215
+ */
1216
+ declare function addMemberToAccount({ pathParams, body, config, }?: {
1217
+ pathParams: {
1218
+ account_slug: string;
1219
+ };
1220
+ body: AddMemberToAccountBody;
1221
+ config?: Partial<FetcherConfig> & {
1222
+ client?: typeof client;
1223
+ };
1224
+ }): Promise<AddMemberToAccountResponse>;
1225
+ /**
1226
+ * @link /{account_slug}/members/{member_id}
1227
+ */
1228
+ declare function getAccountMember({ pathParams, config, }?: {
1229
+ pathParams: {
1230
+ account_slug: string;
1231
+ member_id: string;
1232
+ };
1233
+ config?: Partial<FetcherConfig> & {
1234
+ client?: typeof client;
1235
+ };
1236
+ }): Promise<GetAccountMemberResponse>;
1237
+ /**
1238
+ * @link /{account_slug}/members/{member_id}
1239
+ */
1240
+ declare function updateAccountMember({ pathParams, body, config, }?: {
1241
+ pathParams: {
1242
+ account_slug: string;
1243
+ member_id: string;
1244
+ };
1245
+ body: UpdateAccountMemberBody;
1246
+ config?: Partial<FetcherConfig> & {
1247
+ client?: typeof client;
1248
+ };
1249
+ }): Promise<UpdateAccountMemberResponse>;
1250
+ /**
1251
+ * @link /{account_slug}/members/{member_id}
1252
+ */
1253
+ declare function removeAccountMember({ pathParams, config, }?: {
1254
+ pathParams: {
1255
+ account_slug: string;
1256
+ member_id: string;
1257
+ };
1258
+ config?: Partial<FetcherConfig> & {
1259
+ client?: typeof client;
1260
+ };
1261
+ }): Promise<unknown>;
1262
+ /**
1263
+ * @link /billing/payment_methods
1264
+ */
1265
+ declare function listPaymentMethodsForUser({ config }?: {
1266
+ config?: Partial<FetcherConfig> & {
1267
+ client?: typeof client;
1268
+ };
1269
+ }): Promise<ListPaymentMethodsForUserResponse>;
1270
+ /**
1271
+ * @link /accounts/types
1272
+ */
1273
+ declare function listAccountTypesForUser({ config }?: {
1274
+ config?: Partial<FetcherConfig> & {
1275
+ client?: typeof client;
1276
+ };
1277
+ }): Promise<ListAccountTypesForUserResponse>;
1278
+ /**
1279
+ * @link /accounts
1280
+ */
1281
+ declare function listAccountsForUser({ queryParams, config, }?: {
1282
+ queryParams?: {
1283
+ minimal?: boolean;
1284
+ };
1285
+ config?: Partial<FetcherConfig> & {
1286
+ client?: typeof client;
1287
+ };
1288
+ }): Promise<ListAccountsForUserResponse>;
1289
+ /**
1290
+ * @link /accounts
1291
+ */
1292
+ declare function createAccount({ body, config, }?: {
1293
+ body: CreateAccountBody;
1294
+ config?: Partial<FetcherConfig> & {
1295
+ client?: typeof client;
1296
+ };
1297
+ }): Promise<CreateAccountResponse>;
1298
+ /**
1299
+ * @link /accounts/{account_id}
1300
+ */
1301
+ declare function getAccount({ pathParams, config, }?: {
1302
+ pathParams: {
1303
+ account_id: string;
1304
+ };
1305
+ config?: Partial<FetcherConfig> & {
1306
+ client?: typeof client;
1307
+ };
1308
+ }): Promise<GetAccountResponse>;
1309
+ /**
1310
+ * @link /accounts/{account_id}
1311
+ */
1312
+ declare function updateAccount({ pathParams, body, config, }?: {
1313
+ pathParams: {
1314
+ account_id: string;
1315
+ };
1316
+ body?: UpdateAccountBody;
1317
+ config?: Partial<FetcherConfig> & {
1318
+ client?: typeof client;
1319
+ };
1320
+ }): Promise<UpdateAccountResponse>;
1321
+ /**
1322
+ * @link /accounts/{account_id}
1323
+ */
1324
+ declare function cancelAccount({ pathParams, config, }?: {
1325
+ pathParams: {
1326
+ account_id: string;
1327
+ };
1328
+ config?: Partial<FetcherConfig> & {
1329
+ client?: typeof client;
1330
+ };
1331
+ }): Promise<unknown>;
1332
+ /**
1333
+ * @link /accounts/{account_id}/audit
1334
+ */
1335
+ declare function listAccountAuditEvents({ pathParams, queryParams, config, }?: {
1336
+ pathParams: {
1337
+ account_id: string;
1338
+ };
1339
+ queryParams?: {
1340
+ query?: string;
1341
+ log_type?: string;
1342
+ page?: number;
1343
+ per_page?: number;
1344
+ };
1345
+ config?: Partial<FetcherConfig> & {
1346
+ client?: typeof client;
1347
+ };
1348
+ }): Promise<ListAccountAuditEventsResponse>;
1349
+ /**
1350
+ * @link /agent_runners
1351
+ */
1352
+ declare function listAgentRunners({ queryParams, config, }?: {
1353
+ queryParams?: {
1354
+ account_id?: string;
1355
+ site_id?: string;
1356
+ page?: number;
1357
+ per_page?: number;
1358
+ state?: "live" | "error";
1359
+ title?: string;
1360
+ branch?: string;
1361
+ result_branch?: string;
1362
+ from?: number;
1363
+ to?: number;
1364
+ };
1365
+ config?: Partial<FetcherConfig> & {
1366
+ client?: typeof client;
1367
+ };
1368
+ }): Promise<ListAgentRunnersResponse>;
1369
+ /**
1370
+ * @link /agent_runners
1371
+ */
1372
+ declare function createAgentRunner({ queryParams, config, }?: {
1373
+ queryParams?: {
1374
+ site_id?: string;
1375
+ deploy_id?: string;
1376
+ branch?: string;
1377
+ prompt?: string;
1378
+ agent?: string;
1379
+ model?: string;
1380
+ parent_agent_runner_id?: string;
1381
+ dev_server_image?: string;
1382
+ file_keys?: Array<string>;
1383
+ };
1384
+ config?: Partial<FetcherConfig> & {
1385
+ client?: typeof client;
1386
+ };
1387
+ }): Promise<unknown>;
1388
+ /**
1389
+ * @link /agent_runners/upload_url
1390
+ */
1391
+ declare function createAgentRunnerUploadUrl({ queryParams, config, }?: {
1392
+ queryParams?: {
1393
+ account_id?: string;
1394
+ filename?: string;
1395
+ content_type?: string;
1396
+ };
1397
+ config?: Partial<FetcherConfig> & {
1398
+ client?: typeof client;
1399
+ };
1400
+ }): Promise<unknown>;
1401
+ /**
1402
+ * @link /agent_runners/{agent_runner_id}
1403
+ */
1404
+ declare function getAgentRunner({ pathParams, config, }?: {
1405
+ pathParams: {
1406
+ agent_runner_id: string;
1407
+ };
1408
+ config?: Partial<FetcherConfig> & {
1409
+ client?: typeof client;
1410
+ };
1411
+ }): Promise<GetAgentRunnerResponse>;
1412
+ /**
1413
+ * @link /agent_runners/{agent_runner_id}
1414
+ */
1415
+ declare function updateAgentRunner({ pathParams, config, }?: {
1416
+ pathParams: {
1417
+ agent_runner_id: string;
1418
+ };
1419
+ config?: Partial<FetcherConfig> & {
1420
+ client?: typeof client;
1421
+ };
1422
+ }): Promise<UpdateAgentRunnerResponse>;
1423
+ /**
1424
+ * @link /agent_runners/{agent_runner_id}
1425
+ */
1426
+ declare function deleteAgentRunner({ pathParams, config, }?: {
1427
+ pathParams: {
1428
+ agent_runner_id: string;
1429
+ };
1430
+ config?: Partial<FetcherConfig> & {
1431
+ client?: typeof client;
1432
+ };
1433
+ }): Promise<unknown>;
1434
+ /**
1435
+ * @link /agent_runners/{agent_runner_id}/archive
1436
+ */
1437
+ declare function archiveAgentRunner({ pathParams, config, }?: {
1438
+ pathParams: {
1439
+ agent_runner_id: string;
1440
+ };
1441
+ config?: Partial<FetcherConfig> & {
1442
+ client?: typeof client;
1443
+ };
1444
+ }): Promise<unknown>;
1445
+ /**
1446
+ * @link /agent_runners/{agent_runner_id}/pull_request
1447
+ */
1448
+ declare function agentRunnerPullRequest({ pathParams, config, }?: {
1449
+ pathParams: {
1450
+ agent_runner_id: string;
1451
+ };
1452
+ config?: Partial<FetcherConfig> & {
1453
+ client?: typeof client;
1454
+ };
1455
+ }): Promise<unknown>;
1456
+ /**
1457
+ * @link /agent_runners/{agent_runner_id}/commit
1458
+ */
1459
+ declare function agentRunnerCommitToBranch({ pathParams, queryParams, config, }?: {
1460
+ pathParams: {
1461
+ agent_runner_id: string;
1462
+ };
1463
+ queryParams?: {
1464
+ target_branch?: string;
1465
+ };
1466
+ config?: Partial<FetcherConfig> & {
1467
+ client?: typeof client;
1468
+ };
1469
+ }): Promise<unknown>;
1470
+ /**
1471
+ * @link /agent_runners/{agent_runner_id}/sessions
1472
+ */
1473
+ declare function listAgentRunnerSessions({ pathParams, queryParams, config, }?: {
1474
+ pathParams: {
1475
+ agent_runner_id: string;
1476
+ };
1477
+ queryParams?: {
1478
+ page?: number;
1479
+ per_page?: number;
1480
+ state?: "live" | "error";
1481
+ from?: number;
1482
+ to?: number;
1483
+ order_by?: "asc" | "desc";
1484
+ };
1485
+ config?: Partial<FetcherConfig> & {
1486
+ client?: typeof client;
1487
+ };
1488
+ }): Promise<ListAgentRunnerSessionsResponse>;
1489
+ /**
1490
+ * @link /agent_runners/{agent_runner_id}/sessions
1491
+ */
1492
+ declare function createAgentRunnerSession({ pathParams, queryParams, config, }?: {
1493
+ pathParams: {
1494
+ agent_runner_id: string;
1495
+ };
1496
+ queryParams?: {
1497
+ prompt?: string;
1498
+ agent?: string;
1499
+ model?: string;
1500
+ file_keys?: Array<string>;
1501
+ };
1502
+ config?: Partial<FetcherConfig> & {
1503
+ client?: typeof client;
1504
+ };
1505
+ }): Promise<unknown>;
1506
+ /**
1507
+ * @link /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}
1508
+ */
1509
+ declare function getAgentRunnerSession({ pathParams, config, }?: {
1510
+ pathParams: {
1511
+ agent_runner_id: string;
1512
+ agent_runner_session_id: string;
1513
+ };
1514
+ config?: Partial<FetcherConfig> & {
1515
+ client?: typeof client;
1516
+ };
1517
+ }): Promise<GetAgentRunnerSessionResponse>;
1518
+ /**
1519
+ * @link /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}
1520
+ */
1521
+ declare function updateAgentRunnerSession({ pathParams, queryParams, config, }?: {
1522
+ pathParams: {
1523
+ agent_runner_id: string;
1524
+ agent_runner_session_id: string;
1525
+ };
1526
+ queryParams?: {
1527
+ is_published?: boolean;
1528
+ };
1529
+ config?: Partial<FetcherConfig> & {
1530
+ client?: typeof client;
1531
+ };
1532
+ }): Promise<UpdateAgentRunnerSessionResponse>;
1533
+ /**
1534
+ * @link /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}
1535
+ */
1536
+ declare function deleteAgentRunnerSession({ pathParams, config, }?: {
1537
+ pathParams: {
1538
+ agent_runner_id: string;
1539
+ agent_runner_session_id: string;
1540
+ };
1541
+ config?: Partial<FetcherConfig> & {
1542
+ client?: typeof client;
1543
+ };
1544
+ }): Promise<unknown>;
1545
+ /**
1546
+ * @link /submissions/{submission_id}
1547
+ */
1548
+ declare function listFormSubmission({ pathParams, queryParams, config, }?: {
1549
+ pathParams: {
1550
+ submission_id: string;
1551
+ };
1552
+ queryParams?: {
1553
+ query?: string;
1554
+ page?: number;
1555
+ per_page?: number;
1556
+ };
1557
+ config?: Partial<FetcherConfig> & {
1558
+ client?: typeof client;
1559
+ };
1560
+ }): Promise<ListFormSubmissionResponse>;
1561
+ /**
1562
+ * @link /submissions/{submission_id}
1563
+ */
1564
+ declare function deleteSubmission({ pathParams, config, }?: {
1565
+ pathParams: {
1566
+ submission_id: string;
1567
+ };
1568
+ config?: Partial<FetcherConfig> & {
1569
+ client?: typeof client;
1570
+ };
1571
+ }): Promise<unknown>;
1572
+ /**
1573
+ * @link /sites/{site_id}/service-instances
1574
+ */
1575
+ declare function listServiceInstancesForSite({ pathParams, config, }?: {
1576
+ pathParams: {
1577
+ site_id: string;
1578
+ };
1579
+ config?: Partial<FetcherConfig> & {
1580
+ client?: typeof client;
1581
+ };
1582
+ }): Promise<ListServiceInstancesForSiteResponse>;
1583
+ /**
1584
+ * @link /sites/{site_id}/services/{addon}/instances
1585
+ */
1586
+ declare function createServiceInstance({ pathParams, body, config, }?: {
1587
+ pathParams: {
1588
+ site_id: string;
1589
+ addon: string;
1590
+ };
1591
+ body: CreateServiceInstanceBody;
1592
+ config?: Partial<FetcherConfig> & {
1593
+ client?: typeof client;
1594
+ };
1595
+ }): Promise<CreateServiceInstanceResponse>;
1596
+ /**
1597
+ * @link /sites/{site_id}/services/{addon}/instances/{instance_id}
1598
+ */
1599
+ declare function showServiceInstance({ pathParams, config, }?: {
1600
+ pathParams: {
1601
+ site_id: string;
1602
+ addon: string;
1603
+ instance_id: string;
1604
+ };
1605
+ config?: Partial<FetcherConfig> & {
1606
+ client?: typeof client;
1607
+ };
1608
+ }): Promise<ShowServiceInstanceResponse>;
1609
+ /**
1610
+ * @link /sites/{site_id}/services/{addon}/instances/{instance_id}
1611
+ */
1612
+ declare function updateServiceInstance({ pathParams, body, config, }?: {
1613
+ pathParams: {
1614
+ site_id: string;
1615
+ addon: string;
1616
+ instance_id: string;
1617
+ };
1618
+ body: UpdateServiceInstanceBody;
1619
+ config?: Partial<FetcherConfig> & {
1620
+ client?: typeof client;
1621
+ };
1622
+ }): Promise<unknown>;
1623
+ /**
1624
+ * @link /sites/{site_id}/services/{addon}/instances/{instance_id}
1625
+ */
1626
+ declare function deleteServiceInstance({ pathParams, config, }?: {
1627
+ pathParams: {
1628
+ site_id: string;
1629
+ addon: string;
1630
+ instance_id: string;
1631
+ };
1632
+ config?: Partial<FetcherConfig> & {
1633
+ client?: typeof client;
1634
+ };
1635
+ }): Promise<unknown>;
1636
+ /**
1637
+ * @link /services/
1638
+ */
1639
+ declare function getServices({ queryParams, config, }?: {
1640
+ queryParams?: {
1641
+ search?: string;
1642
+ };
1643
+ config?: Partial<FetcherConfig> & {
1644
+ client?: typeof client;
1645
+ };
1646
+ }): Promise<GetServicesResponse>;
1647
+ /**
1648
+ * @link /services/{addonName}
1649
+ */
1650
+ declare function showService({ pathParams, config, }?: {
1651
+ pathParams: {
1652
+ addonName: string;
1653
+ };
1654
+ config?: Partial<FetcherConfig> & {
1655
+ client?: typeof client;
1656
+ };
1657
+ }): Promise<ShowServiceResponse>;
1658
+ /**
1659
+ * @link /services/{addonName}/manifest
1660
+ */
1661
+ declare function showServiceManifest({ pathParams, config, }?: {
1662
+ pathParams: {
1663
+ addonName: string;
1664
+ };
1665
+ config?: Partial<FetcherConfig> & {
1666
+ client?: typeof client;
1667
+ };
1668
+ }): Promise<ShowServiceManifestResponse>;
1669
+ /**
1670
+ * @link /user
1671
+ */
1672
+ declare function getCurrentUser({ config }?: {
1673
+ config?: Partial<FetcherConfig> & {
1674
+ client?: typeof client;
1675
+ };
1676
+ }): Promise<GetCurrentUserResponse>;
1677
+ /**
1678
+ * @link /sites/{site_id}/traffic_splits
1679
+ */
1680
+ declare function createSplitTest({ pathParams, body, config, }?: {
1681
+ pathParams: {
1682
+ site_id: string;
1683
+ };
1684
+ body: CreateSplitTestBody;
1685
+ config?: Partial<FetcherConfig> & {
1686
+ client?: typeof client;
1687
+ };
1688
+ }): Promise<CreateSplitTestResponse>;
1689
+ /**
1690
+ * @link /sites/{site_id}/traffic_splits
1691
+ */
1692
+ declare function getSplitTests({ pathParams, config, }?: {
1693
+ pathParams: {
1694
+ site_id: string;
1695
+ };
1696
+ config?: Partial<FetcherConfig> & {
1697
+ client?: typeof client;
1698
+ };
1699
+ }): Promise<GetSplitTestsResponse>;
1700
+ /**
1701
+ * @link /sites/{site_id}/traffic_splits/{split_test_id}
1702
+ */
1703
+ declare function updateSplitTest({ pathParams, body, config, }?: {
1704
+ pathParams: {
1705
+ site_id: string;
1706
+ split_test_id: string;
1707
+ };
1708
+ body: UpdateSplitTestBody;
1709
+ config?: Partial<FetcherConfig> & {
1710
+ client?: typeof client;
1711
+ };
1712
+ }): Promise<UpdateSplitTestResponse>;
1713
+ /**
1714
+ * @link /sites/{site_id}/traffic_splits/{split_test_id}
1715
+ */
1716
+ declare function getSplitTest({ pathParams, config, }?: {
1717
+ pathParams: {
1718
+ site_id: string;
1719
+ split_test_id: string;
1720
+ };
1721
+ config?: Partial<FetcherConfig> & {
1722
+ client?: typeof client;
1723
+ };
1724
+ }): Promise<GetSplitTestResponse>;
1725
+ /**
1726
+ * @link /sites/{site_id}/traffic_splits/{split_test_id}/publish
1727
+ */
1728
+ declare function enableSplitTest({ pathParams, config, }?: {
1729
+ pathParams: {
1730
+ site_id: string;
1731
+ split_test_id: string;
1732
+ };
1733
+ config?: Partial<FetcherConfig> & {
1734
+ client?: typeof client;
1735
+ };
1736
+ }): Promise<unknown>;
1737
+ /**
1738
+ * @link /sites/{site_id}/traffic_splits/{split_test_id}/unpublish
1739
+ */
1740
+ declare function disableSplitTest({ pathParams, config, }?: {
1741
+ pathParams: {
1742
+ site_id: string;
1743
+ split_test_id: string;
1744
+ };
1745
+ config?: Partial<FetcherConfig> & {
1746
+ client?: typeof client;
1747
+ };
1748
+ }): Promise<unknown>;
1749
+ /**
1750
+ * @link /dns_zones
1751
+ */
1752
+ declare function createDnsZone({ body, config, }?: {
1753
+ body: CreateDnsZoneBody;
1754
+ config?: Partial<FetcherConfig> & {
1755
+ client?: typeof client;
1756
+ };
1757
+ }): Promise<CreateDnsZoneResponse>;
1758
+ /**
1759
+ * @link /dns_zones
1760
+ */
1761
+ declare function getDnsZones({ queryParams, config, }?: {
1762
+ queryParams?: {
1763
+ account_slug?: string;
1764
+ };
1765
+ config?: Partial<FetcherConfig> & {
1766
+ client?: typeof client;
1767
+ };
1768
+ }): Promise<GetDnsZonesResponse>;
1769
+ /**
1770
+ * @link /dns_zones/{zone_id}
1771
+ */
1772
+ declare function getDnsZone({ pathParams, config, }?: {
1773
+ pathParams: {
1774
+ zone_id: string;
1775
+ };
1776
+ config?: Partial<FetcherConfig> & {
1777
+ client?: typeof client;
1778
+ };
1779
+ }): Promise<GetDnsZoneResponse>;
1780
+ /**
1781
+ * @link /dns_zones/{zone_id}
1782
+ */
1783
+ declare function deleteDnsZone({ pathParams, config, }?: {
1784
+ pathParams: {
1785
+ zone_id: string;
1786
+ };
1787
+ config?: Partial<FetcherConfig> & {
1788
+ client?: typeof client;
1789
+ };
1790
+ }): Promise<unknown>;
1791
+ /**
1792
+ * @link /dns_zones/{zone_id}/transfer
1793
+ */
1794
+ declare function transferDnsZone({ pathParams, queryParams, config, }?: {
1795
+ pathParams: {
1796
+ zone_id: string;
1797
+ };
1798
+ queryParams?: {
1799
+ account_id?: string;
1800
+ transfer_account_id?: string;
1801
+ transfer_user_id?: string;
1802
+ };
1803
+ config?: Partial<FetcherConfig> & {
1804
+ client?: typeof client;
1805
+ };
1806
+ }): Promise<TransferDnsZoneResponse>;
1807
+ /**
1808
+ * @link /dns_zones/{zone_id}/dns_records
1809
+ */
1810
+ declare function getDnsRecords({ pathParams, config, }?: {
1811
+ pathParams: {
1812
+ zone_id: string;
1813
+ };
1814
+ config?: Partial<FetcherConfig> & {
1815
+ client?: typeof client;
1816
+ };
1817
+ }): Promise<GetDnsRecordsResponse>;
1818
+ /**
1819
+ * @link /dns_zones/{zone_id}/dns_records
1820
+ */
1821
+ declare function createDnsRecord({ pathParams, body, config, }?: {
1822
+ pathParams: {
1823
+ zone_id: string;
1824
+ };
1825
+ body: CreateDnsRecordBody;
1826
+ config?: Partial<FetcherConfig> & {
1827
+ client?: typeof client;
1828
+ };
1829
+ }): Promise<CreateDnsRecordResponse>;
1830
+ /**
1831
+ * @link /dns_zones/{zone_id}/dns_records/{dns_record_id}
1832
+ */
1833
+ declare function getIndividualDnsRecord({ pathParams, config, }?: {
1834
+ pathParams: {
1835
+ zone_id: string;
1836
+ dns_record_id: string;
1837
+ };
1838
+ config?: Partial<FetcherConfig> & {
1839
+ client?: typeof client;
1840
+ };
1841
+ }): Promise<GetIndividualDnsRecordResponse>;
1842
+ /**
1843
+ * @link /dns_zones/{zone_id}/dns_records/{dns_record_id}
1844
+ */
1845
+ declare function deleteDnsRecord({ pathParams, config, }?: {
1846
+ pathParams: {
1847
+ zone_id: string;
1848
+ dns_record_id: string;
1849
+ };
1850
+ config?: Partial<FetcherConfig> & {
1851
+ client?: typeof client;
1852
+ };
1853
+ }): Promise<unknown>;
1854
+ /**
1855
+ * @link /sites/{site_id}/dev_servers
1856
+ */
1857
+ declare function listSiteDevServers({ pathParams, queryParams, config, }?: {
1858
+ pathParams: {
1859
+ site_id: string;
1860
+ };
1861
+ queryParams?: {
1862
+ page?: number;
1863
+ per_page?: number;
1864
+ };
1865
+ config?: Partial<FetcherConfig> & {
1866
+ client?: typeof client;
1867
+ };
1868
+ }): Promise<ListSiteDevServersResponse>;
1869
+ /**
1870
+ * @link /sites/{site_id}/dev_servers
1871
+ */
1872
+ declare function createSiteDevServer({ pathParams, queryParams, config, }?: {
1873
+ pathParams: {
1874
+ site_id: string;
1875
+ };
1876
+ queryParams?: {
1877
+ branch?: string;
1878
+ };
1879
+ config?: Partial<FetcherConfig> & {
1880
+ client?: typeof client;
1881
+ };
1882
+ }): Promise<CreateSiteDevServerResponse>;
1883
+ /**
1884
+ * @link /sites/{site_id}/dev_servers
1885
+ */
1886
+ declare function deleteSiteDevServers({ pathParams, queryParams, config, }?: {
1887
+ pathParams: {
1888
+ site_id: string;
1889
+ };
1890
+ queryParams?: {
1891
+ branch?: string;
1892
+ };
1893
+ config?: Partial<FetcherConfig> & {
1894
+ client?: typeof client;
1895
+ };
1896
+ }): Promise<unknown>;
1897
+ /**
1898
+ * @link /sites/{site_id}/dev_servers/{dev_server_id}
1899
+ */
1900
+ declare function getSiteDevServer({ pathParams, config, }?: {
1901
+ pathParams: {
1902
+ site_id: string;
1903
+ dev_server_id: string;
1904
+ };
1905
+ config?: Partial<FetcherConfig> & {
1906
+ client?: typeof client;
1907
+ };
1908
+ }): Promise<GetSiteDevServerStatus200>;
1909
+ /**
1910
+ * @link /sites/{site_id}/dev_servers/{dev_server_id}/activity
1911
+ */
1912
+ declare function markDevServerActivity({ pathParams, config, }?: {
1913
+ pathParams: {
1914
+ site_id: string;
1915
+ dev_server_id: string;
1916
+ };
1917
+ config?: Partial<FetcherConfig> & {
1918
+ client?: typeof client;
1919
+ };
1920
+ }): Promise<unknown>;
1921
+ /**
1922
+ * @link /sites/{site_id}/dev_servers/{dev_server_id}/state
1923
+ */
1924
+ declare function updateDevServerState({ pathParams, body, config, }?: {
1925
+ pathParams: {
1926
+ site_id: string;
1927
+ dev_server_id: string;
1928
+ };
1929
+ body: UpdateDevServerStateBody;
1930
+ config?: Partial<FetcherConfig> & {
1931
+ client?: typeof client;
1932
+ };
1933
+ }): Promise<unknown>;
1934
+ /**
1935
+ * @link /sites/{site_id}/dev_server_hooks
1936
+ */
1937
+ declare function listSiteDevServerHooks({ pathParams, config, }?: {
1938
+ pathParams: {
1939
+ site_id: string;
1940
+ };
1941
+ config?: Partial<FetcherConfig> & {
1942
+ client?: typeof client;
1943
+ };
1944
+ }): Promise<ListSiteDevServerHooksResponse>;
1945
+ /**
1946
+ * @link /sites/{site_id}/dev_server_hooks
1947
+ */
1948
+ declare function createSiteDevServerHook({ pathParams, body, config, }?: {
1949
+ pathParams: {
1950
+ site_id: string;
1951
+ };
1952
+ body: CreateSiteDevServerHookBody;
1953
+ config?: Partial<FetcherConfig> & {
1954
+ client?: typeof client;
1955
+ };
1956
+ }): Promise<CreateSiteDevServerHookResponse>;
1957
+ /**
1958
+ * @link /sites/{site_id}/dev_server_hooks/{id}
1959
+ */
1960
+ declare function getSiteDevServerHook({ pathParams, config, }?: {
1961
+ pathParams: {
1962
+ site_id: string;
1963
+ id: string;
1964
+ };
1965
+ config?: Partial<FetcherConfig> & {
1966
+ client?: typeof client;
1967
+ };
1968
+ }): Promise<GetSiteDevServerHookResponse>;
1969
+ /**
1970
+ * @link /sites/{site_id}/dev_server_hooks/{id}
1971
+ */
1972
+ declare function updateSiteDevServerHook({ pathParams, body, config, }?: {
1973
+ pathParams: {
1974
+ site_id: string;
1975
+ id: string;
1976
+ };
1977
+ body: UpdateSiteDevServerHookBody;
1978
+ config?: Partial<FetcherConfig> & {
1979
+ client?: typeof client;
1980
+ };
1981
+ }): Promise<unknown>;
1982
+ /**
1983
+ * @link /sites/{site_id}/dev_server_hooks/{id}
1984
+ */
1985
+ declare function deleteSiteDevServerHook({ pathParams, config, }?: {
1986
+ pathParams: {
1987
+ site_id: string;
1988
+ id: string;
1989
+ };
1990
+ config?: Partial<FetcherConfig> & {
1991
+ client?: typeof client;
1992
+ };
1993
+ }): Promise<unknown>;
1994
+ /**
1995
+ * @link /sites/{site_id}/agent_runner_hooks
1996
+ */
1997
+ declare function listSiteAgentRunnerHooks({ pathParams, config, }?: {
1998
+ pathParams: {
1999
+ site_id: string;
2000
+ };
2001
+ config?: Partial<FetcherConfig> & {
2002
+ client?: typeof client;
2003
+ };
2004
+ }): Promise<ListSiteAgentRunnerHooksResponse>;
2005
+ /**
2006
+ * @link /sites/{site_id}/agent_runner_hooks
2007
+ */
2008
+ declare function createSiteAgentRunnerHook({ pathParams, body, config, }?: {
2009
+ pathParams: {
2010
+ site_id: string;
2011
+ };
2012
+ body: CreateSiteAgentRunnerHookBody;
2013
+ config?: Partial<FetcherConfig> & {
2014
+ client?: typeof client;
2015
+ };
2016
+ }): Promise<CreateSiteAgentRunnerHookResponse>;
2017
+ /**
2018
+ * @link /sites/{site_id}/agent_runner_hooks/{id}
2019
+ */
2020
+ declare function getSiteAgentRunnerHook({ pathParams, config, }?: {
2021
+ pathParams: {
2022
+ site_id: string;
2023
+ id: string;
2024
+ };
2025
+ config?: Partial<FetcherConfig> & {
2026
+ client?: typeof client;
2027
+ };
2028
+ }): Promise<GetSiteAgentRunnerHookResponse>;
2029
+ /**
2030
+ * @link /sites/{site_id}/agent_runner_hooks/{id}
2031
+ */
2032
+ declare function updateSiteAgentRunnerHook({ pathParams, body, config, }?: {
2033
+ pathParams: {
2034
+ site_id: string;
2035
+ id: string;
2036
+ };
2037
+ body: UpdateSiteAgentRunnerHookBody;
2038
+ config?: Partial<FetcherConfig> & {
2039
+ client?: typeof client;
2040
+ };
2041
+ }): Promise<unknown>;
2042
+ /**
2043
+ * @link /sites/{site_id}/agent_runner_hooks/{id}
2044
+ */
2045
+ declare function deleteSiteAgentRunnerHook({ pathParams, config, }?: {
2046
+ pathParams: {
2047
+ site_id: string;
2048
+ id: string;
2049
+ };
2050
+ config?: Partial<FetcherConfig> & {
2051
+ client?: typeof client;
2052
+ };
2053
+ }): Promise<unknown>;
2054
+ /**
2055
+ * @link /ai-gateway/providers
2056
+ */
2057
+ declare function getAIGatewayProviders({ config }?: {
2058
+ config?: Partial<FetcherConfig> & {
2059
+ client?: typeof client;
2060
+ };
2061
+ }): Promise<GetAIGatewayProvidersResponse>;
2062
+ /**
2063
+ * @description Returns an AI Gateway token for a specific site
2064
+ * @link /sites/{site_id}/ai-gateway/token
2065
+ */
2066
+ declare function getAIGatewayToken({ pathParams, config, }?: {
2067
+ pathParams: {
2068
+ site_id: string;
2069
+ };
2070
+ config?: Partial<FetcherConfig> & {
2071
+ client?: typeof client;
2072
+ };
2073
+ }): Promise<unknown>;
2074
+ /**
2075
+ * @description Returns an AI Gateway token scoped to an account
2076
+ * @link /accounts/{account_id}/ai-gateway/token
2077
+ */
2078
+ declare function getAccountAIGatewayToken({ pathParams, config, }?: {
2079
+ pathParams: {
2080
+ account_id: string;
2081
+ };
2082
+ config?: Partial<FetcherConfig> & {
2083
+ client?: typeof client;
2084
+ };
2085
+ }): Promise<unknown>;
2086
+ /**
2087
+ * @description Creates a new database for the specified site. If a database already exists, returns the existing connection string. The database region defaults to the site's functions region if not specified.
2088
+ * @link /sites/{site_id}/database
2089
+ */
2090
+ declare function createSiteDatabase({ pathParams, body, config, }?: {
2091
+ pathParams: {
2092
+ site_id: string;
2093
+ };
2094
+ body?: CreateSiteDatabaseBody;
2095
+ config?: Partial<FetcherConfig> & {
2096
+ client?: typeof client;
2097
+ };
2098
+ }): Promise<CreateSiteDatabaseResponse>;
2099
+ /**
2100
+ * @description Returns the database connection string for the specified site.
2101
+ * @link /sites/{site_id}/database
2102
+ */
2103
+ declare function getSiteDatabase({ pathParams, queryParams, config, }?: {
2104
+ pathParams: {
2105
+ site_id: string;
2106
+ };
2107
+ queryParams?: {
2108
+ role?: "netlifydb_owner" | "netlifydb_readonly";
2109
+ };
2110
+ config?: Partial<FetcherConfig> & {
2111
+ client?: typeof client;
2112
+ };
2113
+ }): Promise<GetSiteDatabaseResponse>;
2114
+ /**
2115
+ * @description Deletes the database and all associated branches and snapshots for the specified site.
2116
+ * @link /sites/{site_id}/database
2117
+ */
2118
+ declare function deleteSiteDatabase({ pathParams, config, }?: {
2119
+ pathParams: {
2120
+ site_id: string;
2121
+ };
2122
+ config?: Partial<FetcherConfig> & {
2123
+ client?: typeof client;
2124
+ };
2125
+ }): Promise<unknown>;
2126
+ /**
2127
+ * @description Creates a new database branch. If a branch already exists for the specified branch ID, returns the existing connection string.
2128
+ * @link /sites/{site_id}/database/branch
2129
+ */
2130
+ declare function createSiteDatabaseBranch({ pathParams, body, config, }?: {
2131
+ pathParams: {
2132
+ site_id: string;
2133
+ };
2134
+ body: CreateSiteDatabaseBranchBody;
2135
+ config?: Partial<FetcherConfig> & {
2136
+ client?: typeof client;
2137
+ };
2138
+ }): Promise<CreateSiteDatabaseBranchResponse>;
2139
+ /**
2140
+ * @description Returns all branches for the site's database with compute status and metadata.
2141
+ * @link /sites/{site_id}/database/branches
2142
+ */
2143
+ declare function listSiteDatabaseBranches({ pathParams, config, }?: {
2144
+ pathParams: {
2145
+ site_id: string;
2146
+ };
2147
+ config?: Partial<FetcherConfig> & {
2148
+ client?: typeof client;
2149
+ };
2150
+ }): Promise<ListSiteDatabaseBranchesResponse>;
2151
+ /**
2152
+ * @description Returns the database branch connection string for a specific branch.
2153
+ * @link /sites/{site_id}/database/branch/{branch_id}
2154
+ */
2155
+ declare function getSiteDatabaseBranch({ pathParams, queryParams, config, }?: {
2156
+ pathParams: {
2157
+ site_id: string;
2158
+ branch_id: string;
2159
+ };
2160
+ queryParams?: {
2161
+ role?: "netlifydb_owner" | "netlifydb_readonly";
2162
+ };
2163
+ config?: Partial<FetcherConfig> & {
2164
+ client?: typeof client;
2165
+ };
2166
+ }): Promise<unknown>;
2167
+ /**
2168
+ * @description Deletes a database branch.
2169
+ * @link /sites/{site_id}/database/branch/{branch_id}
2170
+ */
2171
+ declare function deleteSiteDatabaseBranch({ pathParams, config, }?: {
2172
+ pathParams: {
2173
+ site_id: string;
2174
+ branch_id: string;
2175
+ };
2176
+ config?: Partial<FetcherConfig> & {
2177
+ client?: typeof client;
2178
+ };
2179
+ }): Promise<unknown>;
2180
+ /**
2181
+ * @description Resets a non-production database branch by re-forking it from a source branch (defaults to the production branch). If the target branch is already in sync with the source, returns the existing connection string without performing a reset, unless `force=true` is passed. The production branch cannot be reset.
2182
+ * @link /sites/{site_id}/database/branch/{branch_id}/reset
2183
+ */
2184
+ declare function resetSiteDatabaseBranch({ pathParams, body, queryParams, config, }?: {
2185
+ pathParams: {
2186
+ site_id: string;
2187
+ branch_id: string;
2188
+ };
2189
+ body?: ResetSiteDatabaseBranchBody;
2190
+ queryParams?: {
2191
+ force?: boolean;
2192
+ role?: "netlifydb_owner" | "netlifydb_readonly";
2193
+ };
2194
+ config?: Partial<FetcherConfig> & {
2195
+ client?: typeof client;
2196
+ };
2197
+ }): Promise<unknown>;
2198
+ /**
2199
+ * @description Sets compute settings for a specific database branch, overriding project-level settings. Requires a Pro or higher plan.
2200
+ * @link /sites/{site_id}/database/branch/{branch_id}/compute/settings
2201
+ */
2202
+ declare function setSiteDatabaseBranchComputeSettings({ pathParams, body, config, }?: {
2203
+ pathParams: {
2204
+ site_id: string;
2205
+ branch_id: string;
2206
+ };
2207
+ body: SetSiteDatabaseBranchComputeSettingsBody;
2208
+ config?: Partial<FetcherConfig> & {
2209
+ client?: typeof client;
2210
+ };
2211
+ }): Promise<unknown>;
2212
+ /**
2213
+ * @description Sets project-level compute settings for the database. Applied to new branches. Can be overridden per-branch. Requires a Pro or higher plan.
2214
+ * @link /sites/{site_id}/database/compute/settings
2215
+ */
2216
+ declare function setSiteDatabaseComputeSettings({ pathParams, body, config, }?: {
2217
+ pathParams: {
2218
+ site_id: string;
2219
+ };
2220
+ body: SetSiteDatabaseComputeSettingsBody;
2221
+ config?: Partial<FetcherConfig> & {
2222
+ client?: typeof client;
2223
+ };
2224
+ }): Promise<unknown>;
2225
+ /**
2226
+ * @description Returns the project-level compute settings for the database. Returns effective settings (custom or tier defaults). Requires a Pro or higher plan.
2227
+ * @link /sites/{site_id}/database/compute/settings
2228
+ */
2229
+ declare function getSiteDatabaseComputeSettings({ pathParams, config, }?: {
2230
+ pathParams: {
2231
+ site_id: string;
2232
+ };
2233
+ config?: Partial<FetcherConfig> & {
2234
+ client?: typeof client;
2235
+ };
2236
+ }): Promise<unknown>;
2237
+ /**
2238
+ * @description Resets project-level compute settings to tier defaults. Requires a Pro or higher plan.
2239
+ * @link /sites/{site_id}/database/compute/settings
2240
+ */
2241
+ declare function clearSiteDatabaseComputeSettings({ pathParams, config, }?: {
2242
+ pathParams: {
2243
+ site_id: string;
2244
+ };
2245
+ config?: Partial<FetcherConfig> & {
2246
+ client?: typeof client;
2247
+ };
2248
+ }): Promise<unknown>;
2249
+ /**
2250
+ * @description Returns the list of migrations available for the specified branch, indicating which ones have been applied to the database.
2251
+ * @link /sites/{site_id}/database/migrations
2252
+ */
2253
+ declare function listSiteDatabaseMigrations({ pathParams, queryParams, config, }?: {
2254
+ pathParams: {
2255
+ site_id: string;
2256
+ };
2257
+ queryParams?: {
2258
+ branch?: string;
2259
+ };
2260
+ config?: Partial<FetcherConfig> & {
2261
+ client?: typeof client;
2262
+ };
2263
+ }): Promise<unknown>;
2264
+ /**
2265
+ * @description Returns the contents of a named migration for the specified branch.
2266
+ * @link /sites/{site_id}/database/migrations/{name}
2267
+ */
2268
+ declare function getSiteDatabaseMigration({ pathParams, queryParams, config, }?: {
2269
+ pathParams: {
2270
+ site_id: string;
2271
+ name: string;
2272
+ };
2273
+ queryParams?: {
2274
+ branch?: string;
2275
+ };
2276
+ config?: Partial<FetcherConfig> & {
2277
+ client?: typeof client;
2278
+ };
2279
+ }): Promise<unknown>;
2280
+ /**
2281
+ * @description Runs database migrations for the specified deploy. Finds the deploy and determines the appropriate branch.
2282
+ * @link /sites/{site_id}/database/migrations/{deploy_id}
2283
+ */
2284
+ declare function runSiteDatabaseMigrations({ pathParams, body, config, }?: {
2285
+ pathParams: {
2286
+ site_id: string;
2287
+ deploy_id: string;
2288
+ };
2289
+ body?: RunSiteDatabaseMigrationsBody;
2290
+ config?: Partial<FetcherConfig> & {
2291
+ client?: typeof client;
2292
+ };
2293
+ }): Promise<unknown>;
2294
+ /**
2295
+ * @description Creates a point-in-time snapshot of a database branch. Defaults to the production branch if no branch name is specified.
2296
+ * @link /sites/{site_id}/database/snapshot
2297
+ */
2298
+ declare function createSiteDatabaseSnapshot({ pathParams, body, config, }?: {
2299
+ pathParams: {
2300
+ site_id: string;
2301
+ };
2302
+ body?: CreateSiteDatabaseSnapshotBody;
2303
+ config?: Partial<FetcherConfig> & {
2304
+ client?: typeof client;
2305
+ };
2306
+ }): Promise<CreateSiteDatabaseSnapshotResponse>;
2307
+ /**
2308
+ * @description Returns all snapshots for the site's database.
2309
+ * @link /sites/{site_id}/database/snapshots
2310
+ */
2311
+ declare function listSiteDatabaseSnapshots({ pathParams, config, }?: {
2312
+ pathParams: {
2313
+ site_id: string;
2314
+ };
2315
+ config?: Partial<FetcherConfig> & {
2316
+ client?: typeof client;
2317
+ };
2318
+ }): Promise<ListSiteDatabaseSnapshotsResponse>;
2319
+ /**
2320
+ * @description Deletes a database snapshot.
2321
+ * @link /sites/{site_id}/database/snapshot/{snapshot_id}
2322
+ */
2323
+ declare function deleteSiteDatabaseSnapshot({ pathParams, config, }?: {
2324
+ pathParams: {
2325
+ site_id: string;
2326
+ snapshot_id: string;
2327
+ };
2328
+ config?: Partial<FetcherConfig> & {
2329
+ client?: typeof client;
2330
+ };
2331
+ }): Promise<unknown>;
2332
+ /**
2333
+ * @description Restores a snapshot to a database branch. Defaults to the production branch if no branch_name is specified.
2334
+ * @link /sites/{site_id}/database/snapshot/{snapshot_id}/restore
2335
+ */
2336
+ declare function restoreSiteDatabaseSnapshot({ pathParams, body, config, }?: {
2337
+ pathParams: {
2338
+ site_id: string;
2339
+ snapshot_id: string;
2340
+ };
2341
+ body?: RestoreSiteDatabaseSnapshotBody;
2342
+ config?: Partial<FetcherConfig> & {
2343
+ client?: typeof client;
2344
+ };
2345
+ }): Promise<unknown>;
2346
+ /**
2347
+ * @description This is an internal-only endpoint.
2348
+ * @link /sites/{site_id}/plugins/{_package}
2349
+ */
2350
+ declare function updatePlugin({ pathParams, body, config, }?: {
2351
+ pathParams: {
2352
+ site_id: string;
2353
+ _package: string;
2354
+ };
2355
+ body?: UpdatePluginBody;
2356
+ config?: Partial<FetcherConfig> & {
2357
+ client?: typeof client;
2358
+ };
2359
+ }): Promise<UpdatePluginResponse>;
2360
+ declare const operationsByPath: {
2361
+ "GET /sites": typeof listSites;
2362
+ "POST /sites": typeof createSite;
2363
+ "GET /sites/{site_id}": typeof getSite;
2364
+ "PATCH /sites/{site_id}": typeof updateSite;
2365
+ "DELETE /sites/{site_id}": typeof deleteSite;
2366
+ "POST /sites/{site_id}/ssl": typeof provisionSiteTLSCertificate;
2367
+ "GET /sites/{site_id}/ssl": typeof showSiteTLSCertificate;
2368
+ "GET /sites/{site_id}/ssl/certificates": typeof getAllCertificates;
2369
+ "GET /accounts/{account_id}/env": typeof getEnvVars;
2370
+ "POST /accounts/{account_id}/env": typeof createEnvVars;
2371
+ "GET /api/v1/sites/{site_id}/env": typeof getSiteEnvVars;
2372
+ "GET /accounts/{account_id}/env/{key}": typeof getEnvVar;
2373
+ "PUT /accounts/{account_id}/env/{key}": typeof updateEnvVar;
2374
+ "PATCH /accounts/{account_id}/env/{key}": typeof setEnvVarValue;
2375
+ "DELETE /accounts/{account_id}/env/{key}": typeof deleteEnvVar;
2376
+ "DELETE /accounts/{account_id}/env/{key}/value/{id}": typeof deleteEnvVarValue;
2377
+ "GET /sites/{site_id}/functions": typeof searchSiteFunctions;
2378
+ "GET /sites/{site_id}/forms": typeof listSiteForms;
2379
+ "DELETE /sites/{site_id}/forms/{form_id}": typeof deleteSiteForm;
2380
+ "GET /sites/{site_id}/submissions": typeof listSiteSubmissions;
2381
+ "GET /sites/{site_id}/files": typeof listSiteFiles;
2382
+ "GET /sites/{site_id}/assets": typeof listSiteAssets;
2383
+ "POST /sites/{site_id}/assets": typeof createSiteAsset;
2384
+ "GET /sites/{site_id}/assets/{asset_id}": typeof getSiteAssetInfo;
2385
+ "PUT /sites/{site_id}/assets/{asset_id}": typeof updateSiteAsset;
2386
+ "DELETE /sites/{site_id}/assets/{asset_id}": typeof deleteSiteAsset;
2387
+ "GET /sites/{site_id}/assets/{asset_id}/public_signature": typeof getSiteAssetPublicSignature;
2388
+ "GET /sites/{site_id}/files/{file_path}": typeof getSiteFileByPathName;
2389
+ "POST /purge": typeof purgeCache;
2390
+ "GET /sites/{site_id}/snippets": typeof listSiteSnippets;
2391
+ "POST /sites/{site_id}/snippets": typeof createSiteSnippet;
2392
+ "GET /sites/{site_id}/snippets/{snippet_id}": typeof getSiteSnippet;
2393
+ "PUT /sites/{site_id}/snippets/{snippet_id}": typeof updateSiteSnippet;
2394
+ "DELETE /sites/{site_id}/snippets/{snippet_id}": typeof deleteSiteSnippet;
2395
+ "GET /sites/{site_id}/metadata": typeof getSiteMetadata;
2396
+ "PUT /sites/{site_id}/metadata": typeof updateSiteMetadata;
2397
+ "GET /sites/{site_id}/build_hooks": typeof listSiteBuildHooks;
2398
+ "POST /sites/{site_id}/build_hooks": typeof createSiteBuildHook;
2399
+ "GET /sites/{site_id}/build_hooks/{id}": typeof getSiteBuildHook;
2400
+ "PUT /sites/{site_id}/build_hooks/{id}": typeof updateSiteBuildHook;
2401
+ "DELETE /sites/{site_id}/build_hooks/{id}": typeof deleteSiteBuildHook;
2402
+ "GET /sites/{site_id}/deploys": typeof listSiteDeploys;
2403
+ "POST /sites/{site_id}/deploys": typeof createSiteDeploy;
2404
+ "GET /sites/{site_id}/deploys/{deploy_id}": typeof getSiteDeploy;
2405
+ "PUT /sites/{site_id}/deploys/{deploy_id}": typeof updateSiteDeploy;
2406
+ "DELETE /sites/{site_id}/deploys/{deploy_id}": typeof deleteSiteDeploy;
2407
+ "POST /deploys/{deploy_id}/cancel": typeof cancelSiteDeploy;
2408
+ "POST /sites/{site_id}/deploys/{deploy_id}/restore": typeof restoreSiteDeploy;
2409
+ "GET /sites/{site_id}/builds": typeof listSiteBuilds;
2410
+ "POST /sites/{site_id}/builds": typeof createSiteBuild;
2411
+ "GET /sites/{site_id}/deployed-branches": typeof listSiteDeployedBranches;
2412
+ "PUT /sites/{site_id}/unlink_repo": typeof unlinkSiteRepo;
2413
+ "PUT /sites/{site_id}/enable": typeof enableSite;
2414
+ "PUT /sites/{site_id}/disable": typeof disableSite;
2415
+ "GET /builds/{build_id}": typeof getSiteBuild;
2416
+ "POST /builds/{build_id}/log": typeof updateSiteBuildLog;
2417
+ "POST /builds/{build_id}/start": typeof notifyBuildStart;
2418
+ "GET /{account_id}/builds/status": typeof getAccountBuildStatus;
2419
+ "GET /sites/{site_id}/dns": typeof getDNSForSite;
2420
+ "PUT /sites/{site_id}/dns": typeof configureDNSForSite;
2421
+ "PUT /sites/{site_id}/rollback": typeof rollbackSiteDeploy;
2422
+ "GET /deploys/{deploy_id}": typeof getDeploy;
2423
+ "DELETE /deploys/{deploy_id}": typeof deleteDeploy;
2424
+ "PATCH /deploys/{deploy_id}/validations_report": typeof updateDeployValidations;
2425
+ "POST /deploys/{deploy_id}/lock": typeof lockDeploy;
2426
+ "POST /deploys/{deploy_id}/unlock": typeof unlockDeploy;
2427
+ "PUT /deploys/{deploy_id}/files/{path}": typeof uploadDeployFile;
2428
+ "PUT /deploys/{deploy_id}/functions/{name}": typeof uploadDeployFunction;
2429
+ "PUT /deploys/{deploy_id}/edge_functions/{code_sha}": typeof uploadDeployEdgeFunction;
2430
+ "GET /sites/{site_id}/plugin_runs/latest": typeof getLatestPluginRuns;
2431
+ "POST /deploys/{deploy_id}/plugin_runs": typeof createPluginRun;
2432
+ "GET /forms/{form_id}/submissions": typeof listFormSubmissions;
2433
+ "GET /hooks": typeof listHooksBySiteId;
2434
+ "POST /hooks": typeof createHookBySiteId;
2435
+ "GET /hooks/{hook_id}": typeof getHook;
2436
+ "PUT /hooks/{hook_id}": typeof updateHook;
2437
+ "DELETE /hooks/{hook_id}": typeof deleteHook;
2438
+ "POST /hooks/{hook_id}/enable": typeof enableHook;
2439
+ "GET /hooks/types": typeof listHookTypes;
2440
+ "POST /oauth/tickets": typeof createTicket;
2441
+ "GET /oauth/tickets/{ticket_id}": typeof showTicket;
2442
+ "POST /oauth/tickets/{ticket_id}/exchange": typeof exchangeTicket;
2443
+ "GET /deploy_keys": typeof listDeployKeys;
2444
+ "POST /deploy_keys": typeof createDeployKey;
2445
+ "GET /deploy_keys/{key_id}": typeof getDeployKey;
2446
+ "DELETE /deploy_keys/{key_id}": typeof deleteDeployKey;
2447
+ "POST /{account_slug}/sites": typeof createSiteInTeam;
2448
+ "GET /{account_slug}/sites": typeof listSitesForAccount;
2449
+ "GET /{account_slug}/members": typeof listMembersForAccount;
2450
+ "POST /{account_slug}/members": typeof addMemberToAccount;
2451
+ "GET /{account_slug}/members/{member_id}": typeof getAccountMember;
2452
+ "PUT /{account_slug}/members/{member_id}": typeof updateAccountMember;
2453
+ "DELETE /{account_slug}/members/{member_id}": typeof removeAccountMember;
2454
+ "GET /billing/payment_methods": typeof listPaymentMethodsForUser;
2455
+ "GET /accounts/types": typeof listAccountTypesForUser;
2456
+ "GET /accounts": typeof listAccountsForUser;
2457
+ "POST /accounts": typeof createAccount;
2458
+ "GET /accounts/{account_id}": typeof getAccount;
2459
+ "PUT /accounts/{account_id}": typeof updateAccount;
2460
+ "DELETE /accounts/{account_id}": typeof cancelAccount;
2461
+ "GET /accounts/{account_id}/audit": typeof listAccountAuditEvents;
2462
+ "GET /agent_runners": typeof listAgentRunners;
2463
+ "POST /agent_runners": typeof createAgentRunner;
2464
+ "POST /agent_runners/upload_url": typeof createAgentRunnerUploadUrl;
2465
+ "GET /agent_runners/{agent_runner_id}": typeof getAgentRunner;
2466
+ "PATCH /agent_runners/{agent_runner_id}": typeof updateAgentRunner;
2467
+ "DELETE /agent_runners/{agent_runner_id}": typeof deleteAgentRunner;
2468
+ "POST /agent_runners/{agent_runner_id}/archive": typeof archiveAgentRunner;
2469
+ "POST /agent_runners/{agent_runner_id}/pull_request": typeof agentRunnerPullRequest;
2470
+ "POST /agent_runners/{agent_runner_id}/commit": typeof agentRunnerCommitToBranch;
2471
+ "GET /agent_runners/{agent_runner_id}/sessions": typeof listAgentRunnerSessions;
2472
+ "POST /agent_runners/{agent_runner_id}/sessions": typeof createAgentRunnerSession;
2473
+ "GET /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}": typeof getAgentRunnerSession;
2474
+ "PATCH /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}": typeof updateAgentRunnerSession;
2475
+ "DELETE /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}": typeof deleteAgentRunnerSession;
2476
+ "GET /submissions/{submission_id}": typeof listFormSubmission;
2477
+ "DELETE /submissions/{submission_id}": typeof deleteSubmission;
2478
+ "GET /sites/{site_id}/service-instances": typeof listServiceInstancesForSite;
2479
+ "POST /sites/{site_id}/services/{addon}/instances": typeof createServiceInstance;
2480
+ "GET /sites/{site_id}/services/{addon}/instances/{instance_id}": typeof showServiceInstance;
2481
+ "PUT /sites/{site_id}/services/{addon}/instances/{instance_id}": typeof updateServiceInstance;
2482
+ "DELETE /sites/{site_id}/services/{addon}/instances/{instance_id}": typeof deleteServiceInstance;
2483
+ "GET /services/": typeof getServices;
2484
+ "GET /services/{addonName}": typeof showService;
2485
+ "GET /services/{addonName}/manifest": typeof showServiceManifest;
2486
+ "GET /user": typeof getCurrentUser;
2487
+ "POST /sites/{site_id}/traffic_splits": typeof createSplitTest;
2488
+ "GET /sites/{site_id}/traffic_splits": typeof getSplitTests;
2489
+ "PUT /sites/{site_id}/traffic_splits/{split_test_id}": typeof updateSplitTest;
2490
+ "GET /sites/{site_id}/traffic_splits/{split_test_id}": typeof getSplitTest;
2491
+ "POST /sites/{site_id}/traffic_splits/{split_test_id}/publish": typeof enableSplitTest;
2492
+ "POST /sites/{site_id}/traffic_splits/{split_test_id}/unpublish": typeof disableSplitTest;
2493
+ "POST /dns_zones": typeof createDnsZone;
2494
+ "GET /dns_zones": typeof getDnsZones;
2495
+ "GET /dns_zones/{zone_id}": typeof getDnsZone;
2496
+ "DELETE /dns_zones/{zone_id}": typeof deleteDnsZone;
2497
+ "PUT /dns_zones/{zone_id}/transfer": typeof transferDnsZone;
2498
+ "GET /dns_zones/{zone_id}/dns_records": typeof getDnsRecords;
2499
+ "POST /dns_zones/{zone_id}/dns_records": typeof createDnsRecord;
2500
+ "GET /dns_zones/{zone_id}/dns_records/{dns_record_id}": typeof getIndividualDnsRecord;
2501
+ "DELETE /dns_zones/{zone_id}/dns_records/{dns_record_id}": typeof deleteDnsRecord;
2502
+ "GET /sites/{site_id}/dev_servers": typeof listSiteDevServers;
2503
+ "POST /sites/{site_id}/dev_servers": typeof createSiteDevServer;
2504
+ "DELETE /sites/{site_id}/dev_servers": typeof deleteSiteDevServers;
2505
+ "GET /sites/{site_id}/dev_servers/{dev_server_id}": typeof getSiteDevServer;
2506
+ "POST /sites/{site_id}/dev_servers/{dev_server_id}/activity": typeof markDevServerActivity;
2507
+ "POST /sites/{site_id}/dev_servers/{dev_server_id}/state": typeof updateDevServerState;
2508
+ "GET /sites/{site_id}/dev_server_hooks": typeof listSiteDevServerHooks;
2509
+ "POST /sites/{site_id}/dev_server_hooks": typeof createSiteDevServerHook;
2510
+ "GET /sites/{site_id}/dev_server_hooks/{id}": typeof getSiteDevServerHook;
2511
+ "PUT /sites/{site_id}/dev_server_hooks/{id}": typeof updateSiteDevServerHook;
2512
+ "DELETE /sites/{site_id}/dev_server_hooks/{id}": typeof deleteSiteDevServerHook;
2513
+ "GET /sites/{site_id}/agent_runner_hooks": typeof listSiteAgentRunnerHooks;
2514
+ "POST /sites/{site_id}/agent_runner_hooks": typeof createSiteAgentRunnerHook;
2515
+ "GET /sites/{site_id}/agent_runner_hooks/{id}": typeof getSiteAgentRunnerHook;
2516
+ "PUT /sites/{site_id}/agent_runner_hooks/{id}": typeof updateSiteAgentRunnerHook;
2517
+ "DELETE /sites/{site_id}/agent_runner_hooks/{id}": typeof deleteSiteAgentRunnerHook;
2518
+ "GET /ai-gateway/providers": typeof getAIGatewayProviders;
2519
+ "GET /sites/{site_id}/ai-gateway/token": typeof getAIGatewayToken;
2520
+ "GET /accounts/{account_id}/ai-gateway/token": typeof getAccountAIGatewayToken;
2521
+ "POST /sites/{site_id}/database": typeof createSiteDatabase;
2522
+ "GET /sites/{site_id}/database": typeof getSiteDatabase;
2523
+ "DELETE /sites/{site_id}/database": typeof deleteSiteDatabase;
2524
+ "POST /sites/{site_id}/database/branch": typeof createSiteDatabaseBranch;
2525
+ "GET /sites/{site_id}/database/branches": typeof listSiteDatabaseBranches;
2526
+ "GET /sites/{site_id}/database/branch/{branch_id}": typeof getSiteDatabaseBranch;
2527
+ "DELETE /sites/{site_id}/database/branch/{branch_id}": typeof deleteSiteDatabaseBranch;
2528
+ "POST /sites/{site_id}/database/branch/{branch_id}/reset": typeof resetSiteDatabaseBranch;
2529
+ "PUT /sites/{site_id}/database/branch/{branch_id}/compute/settings": typeof setSiteDatabaseBranchComputeSettings;
2530
+ "PUT /sites/{site_id}/database/compute/settings": typeof setSiteDatabaseComputeSettings;
2531
+ "GET /sites/{site_id}/database/compute/settings": typeof getSiteDatabaseComputeSettings;
2532
+ "DELETE /sites/{site_id}/database/compute/settings": typeof clearSiteDatabaseComputeSettings;
2533
+ "GET /sites/{site_id}/database/migrations": typeof listSiteDatabaseMigrations;
2534
+ "GET /sites/{site_id}/database/migrations/{name}": typeof getSiteDatabaseMigration;
2535
+ "POST /sites/{site_id}/database/migrations/{deploy_id}": typeof runSiteDatabaseMigrations;
2536
+ "POST /sites/{site_id}/database/snapshot": typeof createSiteDatabaseSnapshot;
2537
+ "GET /sites/{site_id}/database/snapshots": typeof listSiteDatabaseSnapshots;
2538
+ "DELETE /sites/{site_id}/database/snapshot/{snapshot_id}": typeof deleteSiteDatabaseSnapshot;
2539
+ "POST /sites/{site_id}/database/snapshot/{snapshot_id}/restore": typeof restoreSiteDatabaseSnapshot;
2540
+ "PUT /sites/{site_id}/plugins/{_package}": typeof updatePlugin;
2541
+ };
2542
+ declare const operationsByTag: {
2543
+ site: {
2544
+ listSites: typeof listSites;
2545
+ createSite: typeof createSite;
2546
+ getSite: typeof getSite;
2547
+ updateSite: typeof updateSite;
2548
+ deleteSite: typeof deleteSite;
2549
+ unlinkSiteRepo: typeof unlinkSiteRepo;
2550
+ enableSite: typeof enableSite;
2551
+ disableSite: typeof disableSite;
2552
+ createSiteInTeam: typeof createSiteInTeam;
2553
+ listSitesForAccount: typeof listSitesForAccount;
2554
+ };
2555
+ snicertificate: {
2556
+ provisionSiteTLSCertificate: typeof provisionSiteTLSCertificate;
2557
+ showSiteTLSCertificate: typeof showSiteTLSCertificate;
2558
+ getAllCertificates: typeof getAllCertificates;
2559
+ };
2560
+ environmentvariables: {
2561
+ getEnvVars: typeof getEnvVars;
2562
+ createEnvVars: typeof createEnvVars;
2563
+ getSiteEnvVars: typeof getSiteEnvVars;
2564
+ getEnvVar: typeof getEnvVar;
2565
+ updateEnvVar: typeof updateEnvVar;
2566
+ setEnvVarValue: typeof setEnvVarValue;
2567
+ deleteEnvVar: typeof deleteEnvVar;
2568
+ deleteEnvVarValue: typeof deleteEnvVarValue;
2569
+ };
2570
+ function: {
2571
+ searchSiteFunctions: typeof searchSiteFunctions;
2572
+ uploadDeployFunction: typeof uploadDeployFunction;
2573
+ };
2574
+ form: {
2575
+ listSiteForms: typeof listSiteForms;
2576
+ deleteSiteForm: typeof deleteSiteForm;
2577
+ };
2578
+ submission: {
2579
+ listSiteSubmissions: typeof listSiteSubmissions;
2580
+ listFormSubmissions: typeof listFormSubmissions;
2581
+ listFormSubmission: typeof listFormSubmission;
2582
+ deleteSubmission: typeof deleteSubmission;
2583
+ };
2584
+ file: {
2585
+ listSiteFiles: typeof listSiteFiles;
2586
+ getSiteFileByPathName: typeof getSiteFileByPathName;
2587
+ uploadDeployFile: typeof uploadDeployFile;
2588
+ };
2589
+ asset: {
2590
+ listSiteAssets: typeof listSiteAssets;
2591
+ createSiteAsset: typeof createSiteAsset;
2592
+ getSiteAssetInfo: typeof getSiteAssetInfo;
2593
+ updateSiteAsset: typeof updateSiteAsset;
2594
+ deleteSiteAsset: typeof deleteSiteAsset;
2595
+ };
2596
+ assetpublicsignature: {
2597
+ getSiteAssetPublicSignature: typeof getSiteAssetPublicSignature;
2598
+ };
2599
+ purge: {
2600
+ purgeCache: typeof purgeCache;
2601
+ };
2602
+ snippet: {
2603
+ listSiteSnippets: typeof listSiteSnippets;
2604
+ createSiteSnippet: typeof createSiteSnippet;
2605
+ getSiteSnippet: typeof getSiteSnippet;
2606
+ updateSiteSnippet: typeof updateSiteSnippet;
2607
+ deleteSiteSnippet: typeof deleteSiteSnippet;
2608
+ };
2609
+ metadata: {
2610
+ getSiteMetadata: typeof getSiteMetadata;
2611
+ updateSiteMetadata: typeof updateSiteMetadata;
2612
+ };
2613
+ buildhook: {
2614
+ listSiteBuildHooks: typeof listSiteBuildHooks;
2615
+ createSiteBuildHook: typeof createSiteBuildHook;
2616
+ getSiteBuildHook: typeof getSiteBuildHook;
2617
+ updateSiteBuildHook: typeof updateSiteBuildHook;
2618
+ deleteSiteBuildHook: typeof deleteSiteBuildHook;
2619
+ };
2620
+ deploy: {
2621
+ listSiteDeploys: typeof listSiteDeploys;
2622
+ createSiteDeploy: typeof createSiteDeploy;
2623
+ getSiteDeploy: typeof getSiteDeploy;
2624
+ updateSiteDeploy: typeof updateSiteDeploy;
2625
+ deleteSiteDeploy: typeof deleteSiteDeploy;
2626
+ cancelSiteDeploy: typeof cancelSiteDeploy;
2627
+ restoreSiteDeploy: typeof restoreSiteDeploy;
2628
+ rollbackSiteDeploy: typeof rollbackSiteDeploy;
2629
+ getDeploy: typeof getDeploy;
2630
+ deleteDeploy: typeof deleteDeploy;
2631
+ updateDeployValidations: typeof updateDeployValidations;
2632
+ lockDeploy: typeof lockDeploy;
2633
+ unlockDeploy: typeof unlockDeploy;
2634
+ };
2635
+ build: {
2636
+ listSiteBuilds: typeof listSiteBuilds;
2637
+ createSiteBuild: typeof createSiteBuild;
2638
+ getSiteBuild: typeof getSiteBuild;
2639
+ notifyBuildStart: typeof notifyBuildStart;
2640
+ getAccountBuildStatus: typeof getAccountBuildStatus;
2641
+ };
2642
+ deployedbranch: {
2643
+ listSiteDeployedBranches: typeof listSiteDeployedBranches;
2644
+ };
2645
+ buildlogmsg: {
2646
+ updateSiteBuildLog: typeof updateSiteBuildLog;
2647
+ };
2648
+ dnszone: {
2649
+ getDNSForSite: typeof getDNSForSite;
2650
+ configureDNSForSite: typeof configureDNSForSite;
2651
+ createDnsZone: typeof createDnsZone;
2652
+ getDnsZones: typeof getDnsZones;
2653
+ getDnsZone: typeof getDnsZone;
2654
+ deleteDnsZone: typeof deleteDnsZone;
2655
+ transferDnsZone: typeof transferDnsZone;
2656
+ getDnsRecords: typeof getDnsRecords;
2657
+ createDnsRecord: typeof createDnsRecord;
2658
+ getIndividualDnsRecord: typeof getIndividualDnsRecord;
2659
+ deleteDnsRecord: typeof deleteDnsRecord;
2660
+ };
2661
+ edgefunction: {
2662
+ uploadDeployEdgeFunction: typeof uploadDeployEdgeFunction;
2663
+ };
2664
+ xInternal: {
2665
+ getLatestPluginRuns: typeof getLatestPluginRuns;
2666
+ createPluginRun: typeof createPluginRun;
2667
+ updatePlugin: typeof updatePlugin;
2668
+ };
2669
+ hook: {
2670
+ listHooksBySiteId: typeof listHooksBySiteId;
2671
+ createHookBySiteId: typeof createHookBySiteId;
2672
+ getHook: typeof getHook;
2673
+ updateHook: typeof updateHook;
2674
+ deleteHook: typeof deleteHook;
2675
+ enableHook: typeof enableHook;
2676
+ };
2677
+ hooktype: {
2678
+ listHookTypes: typeof listHookTypes;
2679
+ };
2680
+ ticket: {
2681
+ createTicket: typeof createTicket;
2682
+ showTicket: typeof showTicket;
2683
+ };
2684
+ accesstoken: {
2685
+ exchangeTicket: typeof exchangeTicket;
2686
+ };
2687
+ deploykey: {
2688
+ listDeployKeys: typeof listDeployKeys;
2689
+ createDeployKey: typeof createDeployKey;
2690
+ getDeployKey: typeof getDeployKey;
2691
+ deleteDeployKey: typeof deleteDeployKey;
2692
+ };
2693
+ member: {
2694
+ listMembersForAccount: typeof listMembersForAccount;
2695
+ addMemberToAccount: typeof addMemberToAccount;
2696
+ getAccountMember: typeof getAccountMember;
2697
+ updateAccountMember: typeof updateAccountMember;
2698
+ removeAccountMember: typeof removeAccountMember;
2699
+ };
2700
+ paymentmethod: {
2701
+ listPaymentMethodsForUser: typeof listPaymentMethodsForUser;
2702
+ };
2703
+ accounttype: {
2704
+ listAccountTypesForUser: typeof listAccountTypesForUser;
2705
+ };
2706
+ accountmembership: {
2707
+ listAccountsForUser: typeof listAccountsForUser;
2708
+ createAccount: typeof createAccount;
2709
+ getAccount: typeof getAccount;
2710
+ updateAccount: typeof updateAccount;
2711
+ cancelAccount: typeof cancelAccount;
2712
+ };
2713
+ auditlog: {
2714
+ listAccountAuditEvents: typeof listAccountAuditEvents;
2715
+ };
2716
+ agentrunner: {
2717
+ listAgentRunners: typeof listAgentRunners;
2718
+ createAgentRunner: typeof createAgentRunner;
2719
+ createAgentRunnerUploadUrl: typeof createAgentRunnerUploadUrl;
2720
+ getAgentRunner: typeof getAgentRunner;
2721
+ updateAgentRunner: typeof updateAgentRunner;
2722
+ deleteAgentRunner: typeof deleteAgentRunner;
2723
+ archiveAgentRunner: typeof archiveAgentRunner;
2724
+ agentRunnerPullRequest: typeof agentRunnerPullRequest;
2725
+ agentRunnerCommitToBranch: typeof agentRunnerCommitToBranch;
2726
+ };
2727
+ agentrunnersession: {
2728
+ listAgentRunnerSessions: typeof listAgentRunnerSessions;
2729
+ createAgentRunnerSession: typeof createAgentRunnerSession;
2730
+ getAgentRunnerSession: typeof getAgentRunnerSession;
2731
+ updateAgentRunnerSession: typeof updateAgentRunnerSession;
2732
+ deleteAgentRunnerSession: typeof deleteAgentRunnerSession;
2733
+ };
2734
+ serviceinstance: {
2735
+ listServiceInstancesForSite: typeof listServiceInstancesForSite;
2736
+ createServiceInstance: typeof createServiceInstance;
2737
+ showServiceInstance: typeof showServiceInstance;
2738
+ updateServiceInstance: typeof updateServiceInstance;
2739
+ deleteServiceInstance: typeof deleteServiceInstance;
2740
+ };
2741
+ service: {
2742
+ getServices: typeof getServices;
2743
+ showService: typeof showService;
2744
+ showServiceManifest: typeof showServiceManifest;
2745
+ };
2746
+ user: {
2747
+ getCurrentUser: typeof getCurrentUser;
2748
+ };
2749
+ splittest: {
2750
+ createSplitTest: typeof createSplitTest;
2751
+ getSplitTests: typeof getSplitTests;
2752
+ updateSplitTest: typeof updateSplitTest;
2753
+ getSplitTest: typeof getSplitTest;
2754
+ enableSplitTest: typeof enableSplitTest;
2755
+ disableSplitTest: typeof disableSplitTest;
2756
+ };
2757
+ devserver: {
2758
+ listSiteDevServers: typeof listSiteDevServers;
2759
+ createSiteDevServer: typeof createSiteDevServer;
2760
+ deleteSiteDevServers: typeof deleteSiteDevServers;
2761
+ getSiteDevServer: typeof getSiteDevServer;
2762
+ markDevServerActivity: typeof markDevServerActivity;
2763
+ updateDevServerState: typeof updateDevServerState;
2764
+ };
2765
+ devserverhook: {
2766
+ listSiteDevServerHooks: typeof listSiteDevServerHooks;
2767
+ createSiteDevServerHook: typeof createSiteDevServerHook;
2768
+ getSiteDevServerHook: typeof getSiteDevServerHook;
2769
+ updateSiteDevServerHook: typeof updateSiteDevServerHook;
2770
+ deleteSiteDevServerHook: typeof deleteSiteDevServerHook;
2771
+ };
2772
+ agentrunnerhook: {
2773
+ listSiteAgentRunnerHooks: typeof listSiteAgentRunnerHooks;
2774
+ createSiteAgentRunnerHook: typeof createSiteAgentRunnerHook;
2775
+ getSiteAgentRunnerHook: typeof getSiteAgentRunnerHook;
2776
+ updateSiteAgentRunnerHook: typeof updateSiteAgentRunnerHook;
2777
+ deleteSiteAgentRunnerHook: typeof deleteSiteAgentRunnerHook;
2778
+ };
2779
+ aigateway: {
2780
+ getAIGatewayProviders: typeof getAIGatewayProviders;
2781
+ getAIGatewayToken: typeof getAIGatewayToken;
2782
+ getAccountAIGatewayToken: typeof getAccountAIGatewayToken;
2783
+ };
2784
+ database: {
2785
+ createSiteDatabase: typeof createSiteDatabase;
2786
+ getSiteDatabase: typeof getSiteDatabase;
2787
+ deleteSiteDatabase: typeof deleteSiteDatabase;
2788
+ createSiteDatabaseBranch: typeof createSiteDatabaseBranch;
2789
+ listSiteDatabaseBranches: typeof listSiteDatabaseBranches;
2790
+ getSiteDatabaseBranch: typeof getSiteDatabaseBranch;
2791
+ deleteSiteDatabaseBranch: typeof deleteSiteDatabaseBranch;
2792
+ resetSiteDatabaseBranch: typeof resetSiteDatabaseBranch;
2793
+ setSiteDatabaseBranchComputeSettings: typeof setSiteDatabaseBranchComputeSettings;
2794
+ setSiteDatabaseComputeSettings: typeof setSiteDatabaseComputeSettings;
2795
+ getSiteDatabaseComputeSettings: typeof getSiteDatabaseComputeSettings;
2796
+ clearSiteDatabaseComputeSettings: typeof clearSiteDatabaseComputeSettings;
2797
+ listSiteDatabaseMigrations: typeof listSiteDatabaseMigrations;
2798
+ getSiteDatabaseMigration: typeof getSiteDatabaseMigration;
2799
+ runSiteDatabaseMigrations: typeof runSiteDatabaseMigrations;
2800
+ createSiteDatabaseSnapshot: typeof createSiteDatabaseSnapshot;
2801
+ listSiteDatabaseSnapshots: typeof listSiteDatabaseSnapshots;
2802
+ deleteSiteDatabaseSnapshot: typeof deleteSiteDatabaseSnapshot;
2803
+ restoreSiteDatabaseSnapshot: typeof restoreSiteDatabaseSnapshot;
2804
+ };
2805
+ };
2806
+ declare const tagDictionary: {
2807
+ readonly site: {
2808
+ readonly GET: readonly ["listSites", "getSite", "listSitesForAccount"];
2809
+ readonly POST: readonly ["createSite", "createSiteInTeam"];
2810
+ readonly PATCH: readonly ["updateSite"];
2811
+ readonly DELETE: readonly ["deleteSite"];
2812
+ readonly PUT: readonly ["unlinkSiteRepo", "enableSite", "disableSite"];
2813
+ };
2814
+ readonly snicertificate: {
2815
+ readonly POST: readonly ["provisionSiteTLSCertificate"];
2816
+ readonly GET: readonly ["showSiteTLSCertificate", "getAllCertificates"];
2817
+ };
2818
+ readonly environmentvariables: {
2819
+ readonly GET: readonly ["getEnvVars", "getSiteEnvVars", "getEnvVar"];
2820
+ readonly POST: readonly ["createEnvVars"];
2821
+ readonly PUT: readonly ["updateEnvVar"];
2822
+ readonly PATCH: readonly ["setEnvVarValue"];
2823
+ readonly DELETE: readonly ["deleteEnvVar", "deleteEnvVarValue"];
2824
+ };
2825
+ readonly function: {
2826
+ readonly GET: readonly ["searchSiteFunctions"];
2827
+ readonly PUT: readonly ["uploadDeployFunction"];
2828
+ };
2829
+ readonly form: {
2830
+ readonly GET: readonly ["listSiteForms"];
2831
+ readonly DELETE: readonly ["deleteSiteForm"];
2832
+ };
2833
+ readonly submission: {
2834
+ readonly GET: readonly ["listSiteSubmissions", "listFormSubmissions", "listFormSubmission"];
2835
+ readonly DELETE: readonly ["deleteSubmission"];
2836
+ };
2837
+ readonly file: {
2838
+ readonly GET: readonly ["listSiteFiles", "getSiteFileByPathName"];
2839
+ readonly PUT: readonly ["uploadDeployFile"];
2840
+ };
2841
+ readonly asset: {
2842
+ readonly GET: readonly ["listSiteAssets", "getSiteAssetInfo"];
2843
+ readonly POST: readonly ["createSiteAsset"];
2844
+ readonly PUT: readonly ["updateSiteAsset"];
2845
+ readonly DELETE: readonly ["deleteSiteAsset"];
2846
+ };
2847
+ readonly assetpublicsignature: {
2848
+ readonly GET: readonly ["getSiteAssetPublicSignature"];
2849
+ };
2850
+ readonly purge: {
2851
+ readonly POST: readonly ["purgeCache"];
2852
+ };
2853
+ readonly snippet: {
2854
+ readonly GET: readonly ["listSiteSnippets", "getSiteSnippet"];
2855
+ readonly POST: readonly ["createSiteSnippet"];
2856
+ readonly PUT: readonly ["updateSiteSnippet"];
2857
+ readonly DELETE: readonly ["deleteSiteSnippet"];
2858
+ };
2859
+ readonly metadata: {
2860
+ readonly GET: readonly ["getSiteMetadata"];
2861
+ readonly PUT: readonly ["updateSiteMetadata"];
2862
+ };
2863
+ readonly buildhook: {
2864
+ readonly GET: readonly ["listSiteBuildHooks", "getSiteBuildHook"];
2865
+ readonly POST: readonly ["createSiteBuildHook"];
2866
+ readonly PUT: readonly ["updateSiteBuildHook"];
2867
+ readonly DELETE: readonly ["deleteSiteBuildHook"];
2868
+ };
2869
+ readonly deploy: {
2870
+ readonly GET: readonly ["listSiteDeploys", "getSiteDeploy", "getDeploy"];
2871
+ readonly POST: readonly ["createSiteDeploy", "cancelSiteDeploy", "restoreSiteDeploy", "lockDeploy", "unlockDeploy"];
2872
+ readonly PUT: readonly ["updateSiteDeploy", "rollbackSiteDeploy"];
2873
+ readonly DELETE: readonly ["deleteSiteDeploy", "deleteDeploy"];
2874
+ readonly PATCH: readonly ["updateDeployValidations"];
2875
+ };
2876
+ readonly build: {
2877
+ readonly GET: readonly ["listSiteBuilds", "getSiteBuild", "getAccountBuildStatus"];
2878
+ readonly POST: readonly ["createSiteBuild", "notifyBuildStart"];
2879
+ };
2880
+ readonly deployedbranch: {
2881
+ readonly GET: readonly ["listSiteDeployedBranches"];
2882
+ };
2883
+ readonly buildlogmsg: {
2884
+ readonly POST: readonly ["updateSiteBuildLog"];
2885
+ };
2886
+ readonly dnszone: {
2887
+ readonly GET: readonly ["getDNSForSite", "getDnsZones", "getDnsZone", "getDnsRecords", "getIndividualDnsRecord"];
2888
+ readonly PUT: readonly ["configureDNSForSite", "transferDnsZone"];
2889
+ readonly POST: readonly ["createDnsZone", "createDnsRecord"];
2890
+ readonly DELETE: readonly ["deleteDnsZone", "deleteDnsRecord"];
2891
+ };
2892
+ readonly edgefunction: {
2893
+ readonly PUT: readonly ["uploadDeployEdgeFunction"];
2894
+ };
2895
+ readonly xInternal: {
2896
+ readonly GET: readonly ["getLatestPluginRuns"];
2897
+ readonly POST: readonly ["createPluginRun"];
2898
+ readonly PUT: readonly ["updatePlugin"];
2899
+ };
2900
+ readonly hook: {
2901
+ readonly GET: readonly ["listHooksBySiteId", "getHook"];
2902
+ readonly POST: readonly ["createHookBySiteId", "enableHook"];
2903
+ readonly PUT: readonly ["updateHook"];
2904
+ readonly DELETE: readonly ["deleteHook"];
2905
+ };
2906
+ readonly hooktype: {
2907
+ readonly GET: readonly ["listHookTypes"];
2908
+ };
2909
+ readonly ticket: {
2910
+ readonly POST: readonly ["createTicket"];
2911
+ readonly GET: readonly ["showTicket"];
2912
+ };
2913
+ readonly accesstoken: {
2914
+ readonly POST: readonly ["exchangeTicket"];
2915
+ };
2916
+ readonly deploykey: {
2917
+ readonly GET: readonly ["listDeployKeys", "getDeployKey"];
2918
+ readonly POST: readonly ["createDeployKey"];
2919
+ readonly DELETE: readonly ["deleteDeployKey"];
2920
+ };
2921
+ readonly member: {
2922
+ readonly GET: readonly ["listMembersForAccount", "getAccountMember"];
2923
+ readonly POST: readonly ["addMemberToAccount"];
2924
+ readonly PUT: readonly ["updateAccountMember"];
2925
+ readonly DELETE: readonly ["removeAccountMember"];
2926
+ };
2927
+ readonly paymentmethod: {
2928
+ readonly GET: readonly ["listPaymentMethodsForUser"];
2929
+ };
2930
+ readonly accounttype: {
2931
+ readonly GET: readonly ["listAccountTypesForUser"];
2932
+ };
2933
+ readonly accountmembership: {
2934
+ readonly GET: readonly ["listAccountsForUser", "getAccount"];
2935
+ readonly POST: readonly ["createAccount"];
2936
+ readonly PUT: readonly ["updateAccount"];
2937
+ readonly DELETE: readonly ["cancelAccount"];
2938
+ };
2939
+ readonly auditlog: {
2940
+ readonly GET: readonly ["listAccountAuditEvents"];
2941
+ };
2942
+ readonly agentrunner: {
2943
+ readonly GET: readonly ["listAgentRunners", "getAgentRunner"];
2944
+ readonly POST: readonly ["createAgentRunner", "createAgentRunnerUploadUrl", "archiveAgentRunner", "agentRunnerPullRequest", "agentRunnerCommitToBranch"];
2945
+ readonly PATCH: readonly ["updateAgentRunner"];
2946
+ readonly DELETE: readonly ["deleteAgentRunner"];
2947
+ };
2948
+ readonly agentrunnersession: {
2949
+ readonly GET: readonly ["listAgentRunnerSessions", "getAgentRunnerSession"];
2950
+ readonly POST: readonly ["createAgentRunnerSession"];
2951
+ readonly PATCH: readonly ["updateAgentRunnerSession"];
2952
+ readonly DELETE: readonly ["deleteAgentRunnerSession"];
2953
+ };
2954
+ readonly serviceinstance: {
2955
+ readonly GET: readonly ["listServiceInstancesForSite", "showServiceInstance"];
2956
+ readonly POST: readonly ["createServiceInstance"];
2957
+ readonly PUT: readonly ["updateServiceInstance"];
2958
+ readonly DELETE: readonly ["deleteServiceInstance"];
2959
+ };
2960
+ readonly service: {
2961
+ readonly GET: readonly ["getServices", "showService", "showServiceManifest"];
2962
+ };
2963
+ readonly user: {
2964
+ readonly GET: readonly ["getCurrentUser"];
2965
+ };
2966
+ readonly splittest: {
2967
+ readonly POST: readonly ["createSplitTest", "enableSplitTest", "disableSplitTest"];
2968
+ readonly GET: readonly ["getSplitTests", "getSplitTest"];
2969
+ readonly PUT: readonly ["updateSplitTest"];
2970
+ };
2971
+ readonly devserver: {
2972
+ readonly GET: readonly ["listSiteDevServers", "getSiteDevServer"];
2973
+ readonly POST: readonly ["createSiteDevServer", "markDevServerActivity", "updateDevServerState"];
2974
+ readonly DELETE: readonly ["deleteSiteDevServers"];
2975
+ };
2976
+ readonly devserverhook: {
2977
+ readonly GET: readonly ["listSiteDevServerHooks", "getSiteDevServerHook"];
2978
+ readonly POST: readonly ["createSiteDevServerHook"];
2979
+ readonly PUT: readonly ["updateSiteDevServerHook"];
2980
+ readonly DELETE: readonly ["deleteSiteDevServerHook"];
2981
+ };
2982
+ readonly agentrunnerhook: {
2983
+ readonly GET: readonly ["listSiteAgentRunnerHooks", "getSiteAgentRunnerHook"];
2984
+ readonly POST: readonly ["createSiteAgentRunnerHook"];
2985
+ readonly PUT: readonly ["updateSiteAgentRunnerHook"];
2986
+ readonly DELETE: readonly ["deleteSiteAgentRunnerHook"];
2987
+ };
2988
+ readonly aigateway: {
2989
+ readonly GET: readonly ["getAIGatewayProviders", "getAIGatewayToken", "getAccountAIGatewayToken"];
2990
+ };
2991
+ readonly database: {
2992
+ readonly POST: readonly ["createSiteDatabase", "createSiteDatabaseBranch", "resetSiteDatabaseBranch", "runSiteDatabaseMigrations", "createSiteDatabaseSnapshot", "restoreSiteDatabaseSnapshot"];
2993
+ readonly GET: readonly ["getSiteDatabase", "listSiteDatabaseBranches", "getSiteDatabaseBranch", "getSiteDatabaseComputeSettings", "listSiteDatabaseMigrations", "getSiteDatabaseMigration", "listSiteDatabaseSnapshots"];
2994
+ readonly DELETE: readonly ["deleteSiteDatabase", "deleteSiteDatabaseBranch", "clearSiteDatabaseComputeSettings", "deleteSiteDatabaseSnapshot"];
2995
+ readonly PUT: readonly ["setSiteDatabaseBranchComputeSettings", "setSiteDatabaseComputeSettings"];
2996
+ };
2997
+ };
2998
+
2999
+ export { addMemberToAccount, agentRunnerCommitToBranch, agentRunnerPullRequest, archiveAgentRunner, cancelAccount, cancelSiteDeploy, clearSiteDatabaseComputeSettings, configureDNSForSite, createAccount, createAgentRunner, createAgentRunnerSession, createAgentRunnerUploadUrl, createDeployKey, createDnsRecord, createDnsZone, createEnvVars, createHookBySiteId, createPluginRun, createServiceInstance, createSite, createSiteAgentRunnerHook, createSiteAsset, createSiteBuild, createSiteBuildHook, createSiteDatabase, createSiteDatabaseBranch, createSiteDatabaseSnapshot, createSiteDeploy, createSiteDevServer, createSiteDevServerHook, createSiteInTeam, createSiteSnippet, createSplitTest, createTicket, deleteAgentRunner, deleteAgentRunnerSession, deleteDeploy, deleteDeployKey, deleteDnsRecord, deleteDnsZone, deleteEnvVar, deleteEnvVarValue, deleteHook, deleteServiceInstance, deleteSite, deleteSiteAgentRunnerHook, deleteSiteAsset, deleteSiteBuildHook, deleteSiteDatabase, deleteSiteDatabaseBranch, deleteSiteDatabaseSnapshot, deleteSiteDeploy, deleteSiteDevServerHook, deleteSiteDevServers, deleteSiteForm, deleteSiteSnippet, deleteSubmission, disableSite, disableSplitTest, enableHook, enableSite, enableSplitTest, exchangeTicket, getAIGatewayProviders, getAIGatewayToken, getAccount, getAccountAIGatewayToken, getAccountBuildStatus, getAccountMember, getAgentRunner, getAgentRunnerSession, getAllCertificates, getCurrentUser, getDNSForSite, getDeploy, getDeployKey, getDnsRecords, getDnsZone, getDnsZones, getEnvVar, getEnvVars, getHook, getIndividualDnsRecord, getLatestPluginRuns, getServices, getSite, getSiteAgentRunnerHook, getSiteAssetInfo, getSiteAssetPublicSignature, getSiteBuild, getSiteBuildHook, getSiteDatabase, getSiteDatabaseBranch, getSiteDatabaseComputeSettings, getSiteDatabaseMigration, getSiteDeploy, getSiteDevServer, getSiteDevServerHook, getSiteEnvVars, getSiteFileByPathName, getSiteMetadata, getSiteSnippet, getSplitTest, getSplitTests, listAccountAuditEvents, listAccountTypesForUser, listAccountsForUser, listAgentRunnerSessions, listAgentRunners, listDeployKeys, listFormSubmission, listFormSubmissions, listHookTypes, listHooksBySiteId, listMembersForAccount, listPaymentMethodsForUser, listServiceInstancesForSite, listSiteAgentRunnerHooks, listSiteAssets, listSiteBuildHooks, listSiteBuilds, listSiteDatabaseBranches, listSiteDatabaseMigrations, listSiteDatabaseSnapshots, listSiteDeployedBranches, listSiteDeploys, listSiteDevServerHooks, listSiteDevServers, listSiteFiles, listSiteForms, listSiteSnippets, listSiteSubmissions, listSites, listSitesForAccount, lockDeploy, markDevServerActivity, notifyBuildStart, operationsByPath, operationsByTag, provisionSiteTLSCertificate, purgeCache, removeAccountMember, resetSiteDatabaseBranch, restoreSiteDatabaseSnapshot, restoreSiteDeploy, rollbackSiteDeploy, runSiteDatabaseMigrations, searchSiteFunctions, setEnvVarValue, setSiteDatabaseBranchComputeSettings, setSiteDatabaseComputeSettings, showService, showServiceInstance, showServiceManifest, showSiteTLSCertificate, showTicket, tagDictionary, transferDnsZone, unlinkSiteRepo, unlockDeploy, updateAccount, updateAccountMember, updateAgentRunner, updateAgentRunnerSession, updateDeployValidations, updateDevServerState, updateEnvVar, updateHook, updatePlugin, updateServiceInstance, updateSite, updateSiteAgentRunnerHook, updateSiteAsset, updateSiteBuildHook, updateSiteBuildLog, updateSiteDeploy, updateSiteDevServerHook, updateSiteMetadata, updateSiteSnippet, updateSplitTest, uploadDeployEdgeFunction, uploadDeployFile, uploadDeployFunction };
3000
+ //# sourceMappingURL=components.d.mts.map