netlify-api 1.4.1 → 3.0.5

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.
Files changed (43) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +44 -3
  3. package/dist/components-c1mxsnm9.d.ts +2772 -0
  4. package/dist/components-c1mxsnm9.d.ts.map +1 -0
  5. package/dist/{components-eneirm1i.js → components-guauto8m.js} +923 -440
  6. package/dist/{components-clupkq1b.cjs → components-kairy70t.cjs} +929 -439
  7. package/dist/components-lahqw4b2.d.ts +2772 -0
  8. package/dist/components-lahqw4b2.d.ts.map +1 -0
  9. package/dist/components.cjs +8 -1
  10. package/dist/components.d.cts +2 -0
  11. package/dist/components.d.cts.map +1 -0
  12. package/dist/components.d.mts +1 -3021
  13. package/dist/components.d.mts.map +1 -1
  14. package/dist/components.mjs +1 -1
  15. package/dist/effect.cjs +131 -24
  16. package/dist/effect.d.cts +543 -0
  17. package/dist/effect.d.cts.map +1 -0
  18. package/dist/effect.d.mts +97 -9
  19. package/dist/effect.d.mts.map +1 -1
  20. package/dist/effect.mjs +125 -4
  21. package/dist/index.cjs +346 -26
  22. package/dist/index.d.cts +249 -0
  23. package/dist/index.d.cts.map +1 -0
  24. package/dist/index.d.mts +249 -0
  25. package/dist/index.d.mts.map +1 -0
  26. package/dist/index.d.ts +6293 -2409
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.mjs +31 -27
  29. package/dist/{schemas-bl2qhxel.cjs → schemas-gcraq33n.cjs} +2259 -379
  30. package/dist/{schemas-goc7bnr4.js → schemas-i1pnxe6s.js} +1954 -380
  31. package/dist/schemas.cjs +307 -1
  32. package/dist/schemas.d.cts +11531 -0
  33. package/dist/schemas.d.cts.map +1 -0
  34. package/dist/schemas.d.mts +2495 -616
  35. package/dist/schemas.d.mts.map +1 -1
  36. package/dist/schemas.mjs +1 -1
  37. package/dist/types.cjs +75 -8
  38. package/dist/types.d.cts +17004 -0
  39. package/dist/types.d.cts.map +1 -0
  40. package/dist/types.d.mts +3031 -785
  41. package/dist/types.d.mts.map +1 -1
  42. package/dist/types.mjs +64 -7
  43. package/package.json +73 -29
@@ -0,0 +1,2772 @@
1
+ import { AddMemberToAccountPath, AddMemberToAccountBody, AddMemberToAccountStatus200, AgentRunnerCommitToBranchPath, AgentRunnerCommitToBranchQuery, AgentRunnerCommitToBranchStatus200, AgentRunnerPullRequestPath, AgentRunnerPullRequestStatus200, AnswerAgentRunnerSessionPath, AnswerAgentRunnerSessionBody, AnswerAgentRunnerSessionStatus200, ArchiveAgentRunnerPath, CancelAccountPath, CancelSiteDeployPath, CancelSiteDeployStatus201, ClearSiteDatabaseComputeSettingsPath, ConfigureDNSForSitePath, ConfigureDNSForSiteStatus200, CreateAccountBody, CreateAccountStatus201, CreateAgentRunnerQuery, CreateAgentRunnerStatus200, CreateAgentRunnerSessionPath, CreateAgentRunnerSessionBody, CreateAgentRunnerSessionQuery, CreateAgentRunnerSessionStatus200, CreateAgentRunnerUploadUrlQuery, CreateAgentRunnerUploadUrlStatus200, CreateDeployKeyStatus201, CreateDnsRecordPath, CreateDnsRecordBody, CreateDnsRecordStatus201, CreateDnsZoneBody, CreateDnsZoneStatus201, CreateEnvVarsPath, CreateEnvVarsBody, CreateEnvVarsQuery, CreateEnvVarsStatus201, CreateHookBySiteIdBody, CreateHookBySiteIdQuery, CreateHookBySiteIdStatus201, CreatePluginRunPath, CreatePluginRunBody, CreatePluginRunStatus201, CreateServiceInstancePath, CreateServiceInstanceBody, CreateServiceInstanceStatus201, CreateSiteBody, CreateSiteQuery, CreateSiteStatus201, CreateSiteAgentRunnerPath, CreateSiteAgentRunnerBody, CreateSiteAgentRunnerStatus200, CreateSiteAgentRunnerHookPath, CreateSiteAgentRunnerHookBody, CreateSiteAgentRunnerHookStatus201, CreateSiteAssetPath, CreateSiteAssetQuery, CreateSiteAssetStatus201, CreateSiteBuildPath, CreateSiteBuildBody, CreateSiteBuildQuery, CreateSiteBuildStatus200, CreateSiteBuildHookPath, CreateSiteBuildHookBody, CreateSiteBuildHookStatus201, CreateSiteDatabasePath, CreateSiteDatabaseBody, CreateSiteDatabaseResponse, CreateSiteDatabaseBranchPath, CreateSiteDatabaseBranchBody, CreateSiteDatabaseBranchResponse, CreateSiteDatabaseSnapshotPath, CreateSiteDatabaseSnapshotBody, CreateSiteDatabaseSnapshotStatus201, CreateSiteDeployPath, CreateSiteDeployBody, CreateSiteDeployQuery, CreateSiteDeployStatus200, CreateSiteDevServerPath, CreateSiteDevServerQuery, CreateSiteDevServerStatus200, CreateSiteDevServerHookPath, CreateSiteDevServerHookBody, CreateSiteDevServerHookStatus201, CreateSiteInTeamPath, CreateSiteInTeamBody, CreateSiteInTeamQuery, CreateSiteInTeamStatus201, CreateSiteSnippetPath, CreateSiteSnippetBody, CreateSiteSnippetStatus201, CreateSplitTestPath, CreateSplitTestBody, CreateSplitTestStatus201, CreateTicketBody, CreateTicketQuery, CreateTicketStatus201, DeleteAgentRunnerPath, DeleteAgentRunnerSessionPath, DeleteDeployPath, DeleteDeployKeyPath, DeleteDnsRecordPath, DeleteDnsZonePath, DeleteEnvVarPath, DeleteEnvVarQuery, DeleteEnvVarValuePath, DeleteEnvVarValueQuery, DeleteHookPath, DeleteServiceInstancePath, DeleteSitePath, DeleteSiteAgentRunnerHookPath, DeleteSiteAssetPath, DeleteSiteBuildHookPath, DeleteSiteDatabasePath, DeleteSiteDatabaseBranchPath, DeleteSiteDatabaseSnapshotPath, DeleteSiteDeployPath, DeleteSiteDevServerHookPath, DeleteSiteDevServersPath, DeleteSiteDevServersQuery, DeleteSiteFormPath, DeleteSiteSnippetPath, DeleteSubmissionPath, DisableSitePath, DisableSiteQuery, DisableSplitTestPath, EnableHookPath, EnableHookStatus200, EnableSitePath, EnableSplitTestPath, ExchangeTicketPath, ExchangeTicketStatus201, GetAIGatewayProvidersStatus200, GetAIGatewayTokenPath, GetAIGatewayTokenStatus200, GetAccountPath, GetAccountStatus200, GetAccountAIGatewayTokenPath, GetAccountAIGatewayTokenStatus200, GetAccountBuildStatusPath, GetAccountBuildStatusStatus200, GetAccountMemberPath, GetAccountMemberStatus200, GetAgentRunnerPath, GetAgentRunnerStatus200, GetAgentRunnerDiffPath, GetAgentRunnerDiffQuery, GetAgentRunnerSessionPath, GetAgentRunnerSessionStatus200, GetAllCertificatesPath, GetAllCertificatesQuery, GetAllCertificatesStatus200, GetCurrentUserStatus200, GetDNSForSitePath, GetDNSForSiteStatus200, GetDeployPath, GetDeployStatus200, GetDeployKeyPath, GetDeployKeyStatus200, GetDnsRecordsPath, GetDnsRecordsStatus200, GetDnsZonePath, GetDnsZoneStatus200, GetDnsZonesQuery, GetDnsZonesStatus200, GetEnvVarPath, GetEnvVarQuery, GetEnvVarStatus200, GetEnvVarsPath, GetEnvVarsQuery, GetEnvVarsStatus200, GetHookPath, GetHookStatus200, GetIdentityUserPath, GetIdentityUserStatus200, GetIndividualDnsRecordPath, GetIndividualDnsRecordStatus200, GetLatestPluginRunsPath, GetLatestPluginRunsQuery, GetLatestPluginRunsStatus200, GetServicesQuery, GetServicesStatus200, GetSitePath, GetSiteQuery, GetSiteStatus200, GetSiteAgentRunnerHookPath, GetSiteAgentRunnerHookStatus200, GetSiteAssetInfoPath, GetSiteAssetInfoStatus200, GetSiteAssetPublicSignaturePath, GetSiteAssetPublicSignatureStatus200, GetSiteBuildPath, GetSiteBuildStatus200, GetSiteBuildHookPath, GetSiteBuildHookStatus200, GetSiteDatabasePath, GetSiteDatabaseQuery, GetSiteDatabaseStatus200, GetSiteDatabaseBranchPath, GetSiteDatabaseBranchQuery, GetSiteDatabaseBranchStatus200, GetSiteDatabaseComputeSettingsPath, GetSiteDatabaseComputeSettingsStatus200, GetSiteDatabaseMigrationPath, GetSiteDatabaseMigrationQuery, GetSiteDatabaseMigrationStatus200, GetSiteDeployPath, GetSiteDeployStatus200, GetSiteDevServerPath, GetSiteDevServerStatus200, GetSiteDevServerHookPath, GetSiteDevServerHookStatus200, GetSiteEnvVarsPath, GetSiteEnvVarsQuery, GetSiteEnvVarsStatus200, GetSiteFileByPathNamePath, GetSiteFileByPathNameStatus200, GetSiteMetadataPath, GetSiteSnippetPath, GetSiteSnippetStatus200, GetSplitTestPath, GetSplitTestStatus200, GetSplitTestsPath, GetSplitTestsStatus200, ListAccountAuditEventsPath, ListAccountAuditEventsQuery, ListAccountAuditEventsStatus200, ListAccountTypesForUserStatus200, ListAccountsForUserQuery, ListAccountsForUserStatus200, ListAgentRunnerSessionsPath, ListAgentRunnerSessionsQuery, ListAgentRunnerSessionsStatus200, ListAgentRunnersQuery, ListAgentRunnersStatus200, ListDeployKeysStatus200, ListFormSubmissionPath, ListFormSubmissionQuery, ListFormSubmissionStatus200, ListFormSubmissionsPath, ListFormSubmissionsQuery, ListFormSubmissionsStatus200, ListHookTypesQuery, ListHookTypesStatus200, ListHooksBySiteIdQuery, ListHooksBySiteIdStatus200, ListMembersForAccountPath, ListMembersForAccountStatus200, ListPaymentMethodsForUserStatus200, ListServiceInstancesForSitePath, ListServiceInstancesForSiteStatus200, ListSiteAgentRunnerHooksPath, ListSiteAgentRunnerHooksStatus200, ListSiteAssetsPath, ListSiteAssetsStatus200, ListSiteBuildHooksPath, ListSiteBuildHooksStatus200, ListSiteBuildsPath, ListSiteBuildsQuery, ListSiteBuildsStatus200, ListSiteDatabaseBranchesPath, ListSiteDatabaseBranchesStatus200, ListSiteDatabaseMigrationsPath, ListSiteDatabaseMigrationsQuery, ListSiteDatabaseMigrationsStatus200, ListSiteDatabaseSnapshotsPath, ListSiteDatabaseSnapshotsStatus200, ListSiteDeployedBranchesPath, ListSiteDeployedBranchesStatus200, ListSiteDeploysPath, ListSiteDeploysQuery, ListSiteDeploysStatus200, ListSiteDevServerHooksPath, ListSiteDevServerHooksStatus200, ListSiteDevServersPath, ListSiteDevServersQuery, ListSiteDevServersStatus200, ListSiteFilesPath, ListSiteFilesStatus200, ListSiteFormsPath, ListSiteFormsStatus200, ListSiteSnippetsPath, ListSiteSnippetsStatus200, ListSiteSubmissionsPath, ListSiteSubmissionsQuery, ListSiteSubmissionsStatus200, ListSitesQuery, ListSitesStatus200, ListSitesForAccountPath, ListSitesForAccountQuery, ListSitesForAccountStatus200, LockDeployPath, LockDeployStatus200, LookupIdentityUserPath, LookupIdentityUserBody, LookupIdentityUserStatus200, MarkDevServerActivityPath, MarkDevServerActivityStatus200, NotifyBuildStartPath, NotifyBuildStartQuery, UpdateSitePath, UpdateSiteBody, UpdateSiteStatus200, ProvisionSiteTLSCertificatePath, ProvisionSiteTLSCertificateQuery, ProvisionSiteTLSCertificateStatus200, ShowSiteTLSCertificatePath, ShowSiteTLSCertificateStatus200, UpdateEnvVarPath, UpdateEnvVarBody, UpdateEnvVarQuery, UpdateEnvVarStatus200, SetEnvVarValuePath, SetEnvVarValueBody, SetEnvVarValueQuery, SetEnvVarValueStatus201, SearchSiteFunctionsPath, SearchSiteFunctionsQuery, SearchSiteFunctionsStatus200, UpdateSiteAssetPath, UpdateSiteAssetQuery, UpdateSiteAssetStatus200, PurgeCacheBody, UpdateSiteSnippetPath, UpdateSiteSnippetBody, UpdateSiteMetadataPath, UpdateSiteMetadataBody, UpdateSiteBuildHookPath, UpdateSiteBuildHookBody, UpdateSiteDeployPath, UpdateSiteDeployBody, UpdateSiteDeployQuery, UpdateSiteDeployStatus200, RestoreSiteDeployPath, RestoreSiteDeployStatus201, UnlinkSiteRepoPath, UnlinkSiteRepoStatus200, UpdateSiteBuildLogPath, UpdateSiteBuildLogBody, RollbackSiteDeployPath, UpdateDeployValidationsPath, UpdateDeployValidationsBody, UpdateDeployValidationsStatus200, UnlockDeployPath, UnlockDeployStatus200, UploadDeployFilePath, UploadDeployFileQuery, UploadDeployFileStatus200, UploadDeployFunctionPath, UploadDeployFunctionQuery, UploadDeployFunctionHeaders, UploadDeployFunctionStatus200, UploadDeployServerPath, UploadDeployServerQuery, UploadDeployServerHeaders, UploadDeployEdgeFunctionPath, UploadDeployEdgeFunctionHeaders, UpdateHookPath, UpdateHookBody, UpdateHookStatus200, ShowTicketPath, ShowTicketStatus200, UpdateAccountMemberPath, UpdateAccountMemberBody, UpdateAccountMemberStatus200, RemoveAccountMemberPath, UpdateAccountPath, UpdateAccountBody, UpdateAccountStatus200, UpdateAgentRunnerPath, UpdateAgentRunnerStatus200, StopAgentRunnerPath, UpdateAgentRunnerSessionPath, UpdateAgentRunnerSessionQuery, UpdateAgentRunnerSessionStatus200, StopAgentRunnerSessionPath, ShowServiceInstancePath, ShowServiceInstanceStatus200, UpdateServiceInstancePath, UpdateServiceInstanceBody, ShowServicePath, ShowServiceStatus200, ShowServiceManifestPath, UpdateSplitTestPath, UpdateSplitTestBody, UpdateSplitTestStatus201, TransferDnsZonePath, TransferDnsZoneQuery, TransferDnsZoneStatus200, UpdateDevServerStatePath, UpdateDevServerStateBody, UpdateDevServerStateStatus200, UpdateSiteDevServerHookPath, UpdateSiteDevServerHookBody, UpdateSiteAgentRunnerHookPath, UpdateSiteAgentRunnerHookBody, ResetSiteDatabaseBranchPath, ResetSiteDatabaseBranchBody, ResetSiteDatabaseBranchQuery, ResetSiteDatabaseBranchStatus200, SetSiteDatabaseBranchComputeSettingsPath, SetSiteDatabaseBranchComputeSettingsBody, SetSiteDatabaseBranchComputeSettingsStatus200, SetSiteDatabaseComputeSettingsPath, SetSiteDatabaseComputeSettingsBody, SetSiteDatabaseComputeSettingsStatus200, RunSiteDatabaseMigrationsPath, RunSiteDatabaseMigrationsBody, RestoreSiteDatabaseSnapshotPath, RestoreSiteDatabaseSnapshotBody, UpdatePluginPath, UpdatePluginBody, UpdatePluginStatus200 } from './types.cjs';
2
+
3
+ type RequestInit = {
4
+ body?: string | FormData | Blob | ArrayBuffer | Uint8Array | ReadableStream | undefined;
5
+ headers?: Record<string, string> | undefined;
6
+ method?: string | undefined;
7
+ signal?: any | undefined;
8
+ duplex?: "half" | undefined;
9
+ };
10
+ type Response = {
11
+ ok: boolean;
12
+ status: number;
13
+ url: string;
14
+ json(): Promise<any>;
15
+ text(): Promise<string>;
16
+ blob?(): Promise<Blob>;
17
+ headers?: {
18
+ get(name: string): string | null;
19
+ } | undefined;
20
+ };
21
+ type FetchImpl = (url: string, init?: RequestInit | undefined) => Promise<Response>;
22
+
23
+ type FetcherConfig = {
24
+ token?: string | null;
25
+ fetchImpl?: FetchImpl;
26
+ basePath?: string;
27
+ headers?: Record<string, any>;
28
+ signal?: AbortSignal | undefined;
29
+ };
30
+ type FetcherOptions<TBody, THeaders, TQueryParams, TPathParams> = {
31
+ url: string;
32
+ method: string;
33
+ body?: TBody | undefined;
34
+ headers?: THeaders | undefined;
35
+ queryParams?: TQueryParams | undefined;
36
+ pathParams?: TPathParams | undefined;
37
+ } & FetcherConfig;
38
+ 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>;
39
+
40
+ /**
41
+ * @summary List sites
42
+ * @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.
43
+ * @link /sites
44
+ */
45
+ declare function listSites({ queryParams, config, }?: {
46
+ queryParams?: Partial<ListSitesQuery>;
47
+ config?: Partial<FetcherConfig> & {
48
+ client?: typeof client;
49
+ };
50
+ }): Promise<ListSitesStatus200>;
51
+ /**
52
+ * @summary Create a site
53
+ * @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.
54
+ * @link /sites
55
+ */
56
+ declare function createSite({ body, queryParams, config, }?: {
57
+ body: CreateSiteBody;
58
+ queryParams?: Partial<CreateSiteQuery>;
59
+ config?: Partial<FetcherConfig> & {
60
+ client?: typeof client;
61
+ };
62
+ }): Promise<CreateSiteStatus201>;
63
+ /**
64
+ * @summary Get a site
65
+ * @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.
66
+ * @link /sites/{site_id}
67
+ */
68
+ declare function getSite({ pathParams, queryParams, config, }?: {
69
+ pathParams: GetSitePath;
70
+ queryParams?: Partial<GetSiteQuery>;
71
+ config?: Partial<FetcherConfig> & {
72
+ client?: typeof client;
73
+ };
74
+ }): Promise<GetSiteStatus200>;
75
+ /**
76
+ * @summary Update a site
77
+ * @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.
78
+ * @link /sites/{site_id}
79
+ */
80
+ declare function updateSite({ pathParams, body, config, }?: {
81
+ pathParams: UpdateSitePath;
82
+ body: UpdateSiteBody;
83
+ config?: Partial<FetcherConfig> & {
84
+ client?: typeof client;
85
+ };
86
+ }): Promise<UpdateSiteStatus200>;
87
+ /**
88
+ * @summary Delete a site
89
+ * @link /sites/{site_id}
90
+ */
91
+ declare function deleteSite({ pathParams, config, }?: {
92
+ pathParams: DeleteSitePath;
93
+ config?: Partial<FetcherConfig> & {
94
+ client?: typeof client;
95
+ };
96
+ }): Promise<unknown>;
97
+ /**
98
+ * @summary Provision or update a site's TLS certificate
99
+ * @description Provisions or updates a TLS certificate for the site.
100
+ * **Creating a certificate (site has no certificate):**
101
+ * - Omit certificate params to initiate Let's Encrypt provisioning
102
+ * - Provide certificate, key, and ca_certificates to upload a custom certificate
103
+ * **Updating a certificate (site already has a certificate):**
104
+ * - REQUIRES certificate, key, and ca_certificates to replace with a new custom certificate
105
+ * - Use POST /api/v1/sites/{site_id}/ssl/renew to renew an existing Let's Encrypt certificate
106
+ * @link /sites/{site_id}/ssl
107
+ */
108
+ declare function provisionSiteTLSCertificate({ pathParams, queryParams, config, }?: {
109
+ pathParams: ProvisionSiteTLSCertificatePath;
110
+ queryParams?: Partial<ProvisionSiteTLSCertificateQuery>;
111
+ config?: Partial<FetcherConfig> & {
112
+ client?: typeof client;
113
+ };
114
+ }): Promise<ProvisionSiteTLSCertificateStatus200>;
115
+ /**
116
+ * @summary Get a site's TLS certificate
117
+ * @link /sites/{site_id}/ssl
118
+ */
119
+ declare function showSiteTLSCertificate({ pathParams, config, }?: {
120
+ pathParams: ShowSiteTLSCertificatePath;
121
+ config?: Partial<FetcherConfig> & {
122
+ client?: typeof client;
123
+ };
124
+ }): Promise<ShowSiteTLSCertificateStatus200>;
125
+ /**
126
+ * @summary List TLS certificates for a site's domain
127
+ * @description Returns details about the certificates associated with a domain. The site must be using the domain.
128
+ * @link /sites/{site_id}/ssl/certificates
129
+ */
130
+ declare function getAllCertificates({ pathParams, queryParams, config, }?: {
131
+ pathParams: GetAllCertificatesPath;
132
+ queryParams: GetAllCertificatesQuery;
133
+ config?: Partial<FetcherConfig> & {
134
+ client?: typeof client;
135
+ };
136
+ }): Promise<GetAllCertificatesStatus200>;
137
+ /**
138
+ * @summary List environment variables for a team or site
139
+ * @description Returns all environment variables for an account or site. An account corresponds to a team in the Netlify UI.
140
+ * @link /accounts/{account_id}/env
141
+ */
142
+ declare function getEnvVars({ pathParams, queryParams, config, }?: {
143
+ pathParams: GetEnvVarsPath;
144
+ queryParams?: Partial<GetEnvVarsQuery>;
145
+ config?: Partial<FetcherConfig> & {
146
+ client?: typeof client;
147
+ };
148
+ }): Promise<GetEnvVarsStatus200>;
149
+ /**
150
+ * @summary Create environment variables
151
+ * @description Creates new environment variables. Granular scopes are available on Pro plans and above.
152
+ * @link /accounts/{account_id}/env
153
+ */
154
+ declare function createEnvVars({ pathParams, body, queryParams, config, }?: {
155
+ pathParams: CreateEnvVarsPath;
156
+ body?: CreateEnvVarsBody;
157
+ queryParams?: Partial<CreateEnvVarsQuery>;
158
+ config?: Partial<FetcherConfig> & {
159
+ client?: typeof client;
160
+ };
161
+ }): Promise<CreateEnvVarsStatus201>;
162
+ /**
163
+ * @summary List environment variables for a site
164
+ * @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.
165
+ * @link /sites/{site_id}/env
166
+ */
167
+ declare function getSiteEnvVars({ pathParams, queryParams, config, }?: {
168
+ pathParams: GetSiteEnvVarsPath;
169
+ queryParams?: Partial<GetSiteEnvVarsQuery>;
170
+ config?: Partial<FetcherConfig> & {
171
+ client?: typeof client;
172
+ };
173
+ }): Promise<GetSiteEnvVarsStatus200>;
174
+ /**
175
+ * @summary Get an environment variable
176
+ * @description Returns an individual environment variable.
177
+ * @link /accounts/{account_id}/env/{key}
178
+ */
179
+ declare function getEnvVar({ pathParams, queryParams, config, }?: {
180
+ pathParams: GetEnvVarPath;
181
+ queryParams?: Partial<GetEnvVarQuery>;
182
+ config?: Partial<FetcherConfig> & {
183
+ client?: typeof client;
184
+ };
185
+ }): Promise<GetEnvVarStatus200>;
186
+ /**
187
+ * @summary Update an environment variable
188
+ * @description Updates an existing environment variable and all of its values. Existing values will be replaced by values provided.
189
+ * @link /accounts/{account_id}/env/{key}
190
+ */
191
+ declare function updateEnvVar({ pathParams, body, queryParams, config, }?: {
192
+ pathParams: UpdateEnvVarPath;
193
+ body?: UpdateEnvVarBody;
194
+ queryParams?: Partial<UpdateEnvVarQuery>;
195
+ config?: Partial<FetcherConfig> & {
196
+ client?: typeof client;
197
+ };
198
+ }): Promise<UpdateEnvVarStatus200>;
199
+ /**
200
+ * @summary Set a value on an environment variable
201
+ * @description Updates or creates a new value for an existing environment variable.
202
+ * @link /accounts/{account_id}/env/{key}
203
+ */
204
+ declare function setEnvVarValue({ pathParams, body, queryParams, config, }?: {
205
+ pathParams: SetEnvVarValuePath;
206
+ body?: SetEnvVarValueBody;
207
+ queryParams?: Partial<SetEnvVarValueQuery>;
208
+ config?: Partial<FetcherConfig> & {
209
+ client?: typeof client;
210
+ };
211
+ }): Promise<SetEnvVarValueStatus201>;
212
+ /**
213
+ * @summary Delete an environment variable
214
+ * @description Deletes an environment variable
215
+ * @link /accounts/{account_id}/env/{key}
216
+ */
217
+ declare function deleteEnvVar({ pathParams, queryParams, config, }?: {
218
+ pathParams: DeleteEnvVarPath;
219
+ queryParams?: Partial<DeleteEnvVarQuery>;
220
+ config?: Partial<FetcherConfig> & {
221
+ client?: typeof client;
222
+ };
223
+ }): Promise<unknown>;
224
+ /**
225
+ * @summary Delete an environment variable value
226
+ * @description Deletes a specific environment variable value.
227
+ * @link /accounts/{account_id}/env/{key}/value/{id}
228
+ */
229
+ declare function deleteEnvVarValue({ pathParams, queryParams, config, }?: {
230
+ pathParams: DeleteEnvVarValuePath;
231
+ queryParams?: Partial<DeleteEnvVarValueQuery>;
232
+ config?: Partial<FetcherConfig> & {
233
+ client?: typeof client;
234
+ };
235
+ }): Promise<unknown>;
236
+ /**
237
+ * @summary Search a site's functions
238
+ * @link /sites/{site_id}/functions
239
+ */
240
+ declare function searchSiteFunctions({ pathParams, queryParams, config, }?: {
241
+ pathParams: SearchSiteFunctionsPath;
242
+ queryParams?: Partial<SearchSiteFunctionsQuery>;
243
+ config?: Partial<FetcherConfig> & {
244
+ client?: typeof client;
245
+ };
246
+ }): Promise<SearchSiteFunctionsStatus200>;
247
+ /**
248
+ * @summary List a site's forms
249
+ * @link /sites/{site_id}/forms
250
+ */
251
+ declare function listSiteForms({ pathParams, config, }?: {
252
+ pathParams: ListSiteFormsPath;
253
+ config?: Partial<FetcherConfig> & {
254
+ client?: typeof client;
255
+ };
256
+ }): Promise<ListSiteFormsStatus200>;
257
+ /**
258
+ * @summary Delete a form
259
+ * @description Deletes a form and all of its submissions.
260
+ * @link /sites/{site_id}/forms/{form_id}
261
+ */
262
+ declare function deleteSiteForm({ pathParams, config, }?: {
263
+ pathParams: DeleteSiteFormPath;
264
+ config?: Partial<FetcherConfig> & {
265
+ client?: typeof client;
266
+ };
267
+ }): Promise<unknown>;
268
+ /**
269
+ * @summary List a site's form submissions
270
+ * @link /sites/{site_id}/submissions
271
+ */
272
+ declare function listSiteSubmissions({ pathParams, queryParams, config, }?: {
273
+ pathParams: ListSiteSubmissionsPath;
274
+ queryParams?: Partial<ListSiteSubmissionsQuery>;
275
+ config?: Partial<FetcherConfig> & {
276
+ client?: typeof client;
277
+ };
278
+ }): Promise<ListSiteSubmissionsStatus200>;
279
+ /**
280
+ * @summary List a site's files
281
+ * @link /sites/{site_id}/files
282
+ */
283
+ declare function listSiteFiles({ pathParams, config, }?: {
284
+ pathParams: ListSiteFilesPath;
285
+ config?: Partial<FetcherConfig> & {
286
+ client?: typeof client;
287
+ };
288
+ }): Promise<ListSiteFilesStatus200>;
289
+ /**
290
+ * @summary List a site's assets
291
+ * @description _This endpoint is only available to certain sites._
292
+ * @link /sites/{site_id}/assets
293
+ */
294
+ declare function listSiteAssets({ pathParams, config, }?: {
295
+ pathParams: ListSiteAssetsPath;
296
+ config?: Partial<FetcherConfig> & {
297
+ client?: typeof client;
298
+ };
299
+ }): Promise<ListSiteAssetsStatus200>;
300
+ /**
301
+ * @summary Create a site asset
302
+ * @description _This endpoint is only available to certain sites._
303
+ * @link /sites/{site_id}/assets
304
+ */
305
+ declare function createSiteAsset({ pathParams, queryParams, config, }?: {
306
+ pathParams: CreateSiteAssetPath;
307
+ queryParams: CreateSiteAssetQuery;
308
+ config?: Partial<FetcherConfig> & {
309
+ client?: typeof client;
310
+ };
311
+ }): Promise<CreateSiteAssetStatus201>;
312
+ /**
313
+ * @summary Get a site asset
314
+ * @description _This endpoint is only available to certain sites._
315
+ * @link /sites/{site_id}/assets/{asset_id}
316
+ */
317
+ declare function getSiteAssetInfo({ pathParams, config, }?: {
318
+ pathParams: GetSiteAssetInfoPath;
319
+ config?: Partial<FetcherConfig> & {
320
+ client?: typeof client;
321
+ };
322
+ }): Promise<GetSiteAssetInfoStatus200>;
323
+ /**
324
+ * @summary Update a site asset's state
325
+ * @description _This endpoint is only available to certain sites._
326
+ * @link /sites/{site_id}/assets/{asset_id}
327
+ */
328
+ declare function updateSiteAsset({ pathParams, queryParams, config, }?: {
329
+ pathParams: UpdateSiteAssetPath;
330
+ queryParams: UpdateSiteAssetQuery;
331
+ config?: Partial<FetcherConfig> & {
332
+ client?: typeof client;
333
+ };
334
+ }): Promise<UpdateSiteAssetStatus200>;
335
+ /**
336
+ * @summary Delete a site asset
337
+ * @description _This endpoint is only available to certain sites._
338
+ * @link /sites/{site_id}/assets/{asset_id}
339
+ */
340
+ declare function deleteSiteAsset({ pathParams, config, }?: {
341
+ pathParams: DeleteSiteAssetPath;
342
+ config?: Partial<FetcherConfig> & {
343
+ client?: typeof client;
344
+ };
345
+ }): Promise<unknown>;
346
+ /**
347
+ * @summary Get a site asset's URL
348
+ * @description Returns the URL of the asset. If the asset isn't publicly visible, returns a signed URL. _This endpoint is only available to certain sites._
349
+ * @link /sites/{site_id}/assets/{asset_id}/public_signature
350
+ */
351
+ declare function getSiteAssetPublicSignature({ pathParams, config, }?: {
352
+ pathParams: GetSiteAssetPublicSignaturePath;
353
+ config?: Partial<FetcherConfig> & {
354
+ client?: typeof client;
355
+ };
356
+ }): Promise<GetSiteAssetPublicSignatureStatus200>;
357
+ /**
358
+ * @summary Get a site file by path
359
+ * @link /sites/{site_id}/files/{file_path}
360
+ */
361
+ declare function getSiteFileByPathName({ pathParams, config, }?: {
362
+ pathParams: GetSiteFileByPathNamePath;
363
+ config?: Partial<FetcherConfig> & {
364
+ client?: typeof client;
365
+ };
366
+ }): Promise<GetSiteFileByPathNameStatus200>;
367
+ /**
368
+ * @summary Purge cached content
369
+ * @description Purges cached content from Netlify's CDN. Supports purging by Cache-Tag.
370
+ * @link /purge
371
+ */
372
+ declare function purgeCache({ body, config, }?: {
373
+ body: PurgeCacheBody;
374
+ config?: Partial<FetcherConfig> & {
375
+ client?: typeof client;
376
+ };
377
+ }): Promise<unknown>;
378
+ /**
379
+ * @summary List a site's snippets
380
+ * @link /sites/{site_id}/snippets
381
+ */
382
+ declare function listSiteSnippets({ pathParams, config, }?: {
383
+ pathParams: ListSiteSnippetsPath;
384
+ config?: Partial<FetcherConfig> & {
385
+ client?: typeof client;
386
+ };
387
+ }): Promise<ListSiteSnippetsStatus200>;
388
+ /**
389
+ * @summary Create a snippet
390
+ * @link /sites/{site_id}/snippets
391
+ */
392
+ declare function createSiteSnippet({ pathParams, body, config, }?: {
393
+ pathParams: CreateSiteSnippetPath;
394
+ body: CreateSiteSnippetBody;
395
+ config?: Partial<FetcherConfig> & {
396
+ client?: typeof client;
397
+ };
398
+ }): Promise<CreateSiteSnippetStatus201>;
399
+ /**
400
+ * @summary Get a snippet
401
+ * @link /sites/{site_id}/snippets/{snippet_id}
402
+ */
403
+ declare function getSiteSnippet({ pathParams, config, }?: {
404
+ pathParams: GetSiteSnippetPath;
405
+ config?: Partial<FetcherConfig> & {
406
+ client?: typeof client;
407
+ };
408
+ }): Promise<GetSiteSnippetStatus200>;
409
+ /**
410
+ * @summary Update a snippet
411
+ * @link /sites/{site_id}/snippets/{snippet_id}
412
+ */
413
+ declare function updateSiteSnippet({ pathParams, body, config, }?: {
414
+ pathParams: UpdateSiteSnippetPath;
415
+ body: UpdateSiteSnippetBody;
416
+ config?: Partial<FetcherConfig> & {
417
+ client?: typeof client;
418
+ };
419
+ }): Promise<unknown>;
420
+ /**
421
+ * @summary Delete a snippet
422
+ * @link /sites/{site_id}/snippets/{snippet_id}
423
+ */
424
+ declare function deleteSiteSnippet({ pathParams, config, }?: {
425
+ pathParams: DeleteSiteSnippetPath;
426
+ config?: Partial<FetcherConfig> & {
427
+ client?: typeof client;
428
+ };
429
+ }): Promise<unknown>;
430
+ /**
431
+ * @summary Get a site's metadata
432
+ * @link /sites/{site_id}/metadata
433
+ */
434
+ declare function getSiteMetadata({ pathParams, config, }?: {
435
+ pathParams: GetSiteMetadataPath;
436
+ config?: Partial<FetcherConfig> & {
437
+ client?: typeof client;
438
+ };
439
+ }): Promise<object>;
440
+ /**
441
+ * @summary Update a site's metadata
442
+ * @link /sites/{site_id}/metadata
443
+ */
444
+ declare function updateSiteMetadata({ pathParams, body, config, }?: {
445
+ pathParams: UpdateSiteMetadataPath;
446
+ body: UpdateSiteMetadataBody;
447
+ config?: Partial<FetcherConfig> & {
448
+ client?: typeof client;
449
+ };
450
+ }): Promise<unknown>;
451
+ /**
452
+ * @summary List a site's build hooks
453
+ * @link /sites/{site_id}/build_hooks
454
+ */
455
+ declare function listSiteBuildHooks({ pathParams, config, }?: {
456
+ pathParams: ListSiteBuildHooksPath;
457
+ config?: Partial<FetcherConfig> & {
458
+ client?: typeof client;
459
+ };
460
+ }): Promise<ListSiteBuildHooksStatus200>;
461
+ /**
462
+ * @summary Create a build hook
463
+ * @link /sites/{site_id}/build_hooks
464
+ */
465
+ declare function createSiteBuildHook({ pathParams, body, config, }?: {
466
+ pathParams: CreateSiteBuildHookPath;
467
+ body: CreateSiteBuildHookBody;
468
+ config?: Partial<FetcherConfig> & {
469
+ client?: typeof client;
470
+ };
471
+ }): Promise<CreateSiteBuildHookStatus201>;
472
+ /**
473
+ * @summary Get a build hook
474
+ * @link /sites/{site_id}/build_hooks/{id}
475
+ */
476
+ declare function getSiteBuildHook({ pathParams, config, }?: {
477
+ pathParams: GetSiteBuildHookPath;
478
+ config?: Partial<FetcherConfig> & {
479
+ client?: typeof client;
480
+ };
481
+ }): Promise<GetSiteBuildHookStatus200>;
482
+ /**
483
+ * @summary Update a build hook
484
+ * @link /sites/{site_id}/build_hooks/{id}
485
+ */
486
+ declare function updateSiteBuildHook({ pathParams, body, config, }?: {
487
+ pathParams: UpdateSiteBuildHookPath;
488
+ body: UpdateSiteBuildHookBody;
489
+ config?: Partial<FetcherConfig> & {
490
+ client?: typeof client;
491
+ };
492
+ }): Promise<unknown>;
493
+ /**
494
+ * @summary Delete a build hook
495
+ * @link /sites/{site_id}/build_hooks/{id}
496
+ */
497
+ declare function deleteSiteBuildHook({ pathParams, config, }?: {
498
+ pathParams: DeleteSiteBuildHookPath;
499
+ config?: Partial<FetcherConfig> & {
500
+ client?: typeof client;
501
+ };
502
+ }): Promise<unknown>;
503
+ /**
504
+ * @summary List a site's deploys
505
+ * @link /sites/{site_id}/deploys
506
+ */
507
+ declare function listSiteDeploys({ pathParams, queryParams, config, }?: {
508
+ pathParams: ListSiteDeploysPath;
509
+ queryParams?: Partial<ListSiteDeploysQuery>;
510
+ config?: Partial<FetcherConfig> & {
511
+ client?: typeof client;
512
+ };
513
+ }): Promise<ListSiteDeploysStatus200>;
514
+ /**
515
+ * @summary Create a deploy
516
+ * @link /sites/{site_id}/deploys
517
+ */
518
+ declare function createSiteDeploy({ pathParams, body, queryParams, config, }?: {
519
+ pathParams: CreateSiteDeployPath;
520
+ body: CreateSiteDeployBody;
521
+ queryParams?: Partial<CreateSiteDeployQuery>;
522
+ config?: Partial<FetcherConfig> & {
523
+ client?: typeof client;
524
+ };
525
+ }): Promise<CreateSiteDeployStatus200>;
526
+ /**
527
+ * @summary Get a site's deploy
528
+ * @link /sites/{site_id}/deploys/{deploy_id}
529
+ */
530
+ declare function getSiteDeploy({ pathParams, config, }?: {
531
+ pathParams: GetSiteDeployPath;
532
+ config?: Partial<FetcherConfig> & {
533
+ client?: typeof client;
534
+ };
535
+ }): Promise<GetSiteDeployStatus200>;
536
+ /**
537
+ * @summary Update a deploy
538
+ * @link /sites/{site_id}/deploys/{deploy_id}
539
+ */
540
+ declare function updateSiteDeploy({ pathParams, body, queryParams, config, }?: {
541
+ pathParams: UpdateSiteDeployPath;
542
+ body: UpdateSiteDeployBody;
543
+ queryParams?: Partial<UpdateSiteDeployQuery>;
544
+ config?: Partial<FetcherConfig> & {
545
+ client?: typeof client;
546
+ };
547
+ }): Promise<UpdateSiteDeployStatus200>;
548
+ /**
549
+ * @summary Delete a site's deploy
550
+ * @description Marks a deploy for deletion.
551
+ * @link /sites/{site_id}/deploys/{deploy_id}
552
+ */
553
+ declare function deleteSiteDeploy({ pathParams, config, }?: {
554
+ pathParams: DeleteSiteDeployPath;
555
+ config?: Partial<FetcherConfig> & {
556
+ client?: typeof client;
557
+ };
558
+ }): Promise<unknown>;
559
+ /**
560
+ * @summary Cancel a deploy
561
+ * @link /deploys/{deploy_id}/cancel
562
+ */
563
+ declare function cancelSiteDeploy({ pathParams, config, }?: {
564
+ pathParams: CancelSiteDeployPath;
565
+ config?: Partial<FetcherConfig> & {
566
+ client?: typeof client;
567
+ };
568
+ }): Promise<CancelSiteDeployStatus201>;
569
+ /**
570
+ * @summary Restore a previous deploy
571
+ * @description Publishes a previous deploy of the site.
572
+ * @link /sites/{site_id}/deploys/{deploy_id}/restore
573
+ */
574
+ declare function restoreSiteDeploy({ pathParams, config, }?: {
575
+ pathParams: RestoreSiteDeployPath;
576
+ config?: Partial<FetcherConfig> & {
577
+ client?: typeof client;
578
+ };
579
+ }): Promise<RestoreSiteDeployStatus201>;
580
+ /**
581
+ * @summary List a site's builds
582
+ * @link /sites/{site_id}/builds
583
+ */
584
+ declare function listSiteBuilds({ pathParams, queryParams, config, }?: {
585
+ pathParams: ListSiteBuildsPath;
586
+ queryParams?: Partial<ListSiteBuildsQuery>;
587
+ config?: Partial<FetcherConfig> & {
588
+ client?: typeof client;
589
+ };
590
+ }): Promise<ListSiteBuildsStatus200>;
591
+ /**
592
+ * @summary Start a build
593
+ * @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.
594
+ * Files for build can be uploaded as a zipped site using one of these methods:
595
+ * 1. Set Content-Type to 'application/zip' and send the zip file as the raw request body
596
+ * 2. Set Content-Type to 'multipart/form-data' and include the zip file in the 'zip' field
597
+ * @link /sites/{site_id}/builds
598
+ */
599
+ declare function createSiteBuild({ pathParams, body, queryParams, config, }?: {
600
+ pathParams: CreateSiteBuildPath;
601
+ body?: CreateSiteBuildBody;
602
+ queryParams?: Partial<CreateSiteBuildQuery>;
603
+ config?: Partial<FetcherConfig> & {
604
+ client?: typeof client;
605
+ };
606
+ }): Promise<CreateSiteBuildStatus200>;
607
+ /**
608
+ * @summary List a site's deployed branches
609
+ * @link /sites/{site_id}/deployed-branches
610
+ */
611
+ declare function listSiteDeployedBranches({ pathParams, config, }?: {
612
+ pathParams: ListSiteDeployedBranchesPath;
613
+ config?: Partial<FetcherConfig> & {
614
+ client?: typeof client;
615
+ };
616
+ }): Promise<ListSiteDeployedBranchesStatus200>;
617
+ /**
618
+ * @summary Unlink a site's repository
619
+ * @description [Beta] Unlinks the repo from the site.
620
+ * This action will also:
621
+ * - Delete associated deploy keys
622
+ * - Delete outgoing webhooks for the repo
623
+ * - Delete the site's build hooks
624
+ * @link /sites/{site_id}/unlink_repo
625
+ */
626
+ declare function unlinkSiteRepo({ pathParams, config, }?: {
627
+ pathParams: UnlinkSiteRepoPath;
628
+ config?: Partial<FetcherConfig> & {
629
+ client?: typeof client;
630
+ };
631
+ }): Promise<UnlinkSiteRepoStatus200>;
632
+ /**
633
+ * @summary Enable a site
634
+ * @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.
635
+ * @link /sites/{site_id}/enable
636
+ */
637
+ declare function enableSite({ pathParams, config, }?: {
638
+ pathParams: EnableSitePath;
639
+ config?: Partial<FetcherConfig> & {
640
+ client?: typeof client;
641
+ };
642
+ }): Promise<unknown>;
643
+ /**
644
+ * @summary Disable a site
645
+ * @description Disables a site, preventing it from serving content. The site can be re-enabled later using the enable endpoint.
646
+ * @link /sites/{site_id}/disable
647
+ */
648
+ declare function disableSite({ pathParams, queryParams, config, }?: {
649
+ pathParams: DisableSitePath;
650
+ queryParams: DisableSiteQuery;
651
+ config?: Partial<FetcherConfig> & {
652
+ client?: typeof client;
653
+ };
654
+ }): Promise<unknown>;
655
+ /**
656
+ * @summary Get a build
657
+ * @link /builds/{build_id}
658
+ */
659
+ declare function getSiteBuild({ pathParams, config, }?: {
660
+ pathParams: GetSiteBuildPath;
661
+ config?: Partial<FetcherConfig> & {
662
+ client?: typeof client;
663
+ };
664
+ }): Promise<GetSiteBuildStatus200>;
665
+ /**
666
+ * @summary Add a message to a build log
667
+ * @link /builds/{build_id}/log
668
+ */
669
+ declare function updateSiteBuildLog({ pathParams, body, config, }?: {
670
+ pathParams: UpdateSiteBuildLogPath;
671
+ body: UpdateSiteBuildLogBody;
672
+ config?: Partial<FetcherConfig> & {
673
+ client?: typeof client;
674
+ };
675
+ }): Promise<unknown>;
676
+ /**
677
+ * @summary Mark a build as started
678
+ * @link /builds/{build_id}/start
679
+ */
680
+ declare function notifyBuildStart({ pathParams, queryParams, config, }?: {
681
+ pathParams: NotifyBuildStartPath;
682
+ queryParams?: Partial<NotifyBuildStartQuery>;
683
+ config?: Partial<FetcherConfig> & {
684
+ client?: typeof client;
685
+ };
686
+ }): Promise<unknown>;
687
+ /**
688
+ * @summary Get a team's build status
689
+ * @description Returns the team's counts of active, concurrency-pending, and enqueued builds, and its build minutes usage.
690
+ * @link /{account_id}/builds/status
691
+ */
692
+ declare function getAccountBuildStatus({ pathParams, config, }?: {
693
+ pathParams: GetAccountBuildStatusPath;
694
+ config?: Partial<FetcherConfig> & {
695
+ client?: typeof client;
696
+ };
697
+ }): Promise<GetAccountBuildStatusStatus200>;
698
+ /**
699
+ * @summary Get a site's DNS configuration
700
+ * @link /sites/{site_id}/dns
701
+ */
702
+ declare function getDNSForSite({ pathParams, config, }?: {
703
+ pathParams: GetDNSForSitePath;
704
+ config?: Partial<FetcherConfig> & {
705
+ client?: typeof client;
706
+ };
707
+ }): Promise<GetDNSForSiteStatus200>;
708
+ /**
709
+ * @summary Configure a site's DNS
710
+ * @description Creates any missing DNS zones and records for the site's custom domain and domain aliases. This usually runs automatically when the custom domain is set.
711
+ * @link /sites/{site_id}/dns
712
+ */
713
+ declare function configureDNSForSite({ pathParams, config, }?: {
714
+ pathParams: ConfigureDNSForSitePath;
715
+ config?: Partial<FetcherConfig> & {
716
+ client?: typeof client;
717
+ };
718
+ }): Promise<ConfigureDNSForSiteStatus200>;
719
+ /**
720
+ * @summary Roll back a site's production deploy
721
+ * @description Rolls back the production deploy to the deploy referenced by its `rollback_id`. Does nothing if the current production deploy has no `rollback_id`.
722
+ * @link /sites/{site_id}/rollback
723
+ */
724
+ declare function rollbackSiteDeploy({ pathParams, config, }?: {
725
+ pathParams: RollbackSiteDeployPath;
726
+ config?: Partial<FetcherConfig> & {
727
+ client?: typeof client;
728
+ };
729
+ }): Promise<unknown>;
730
+ /**
731
+ * @summary Get a deploy
732
+ * @link /deploys/{deploy_id}
733
+ */
734
+ declare function getDeploy({ pathParams, config, }?: {
735
+ pathParams: GetDeployPath;
736
+ config?: Partial<FetcherConfig> & {
737
+ client?: typeof client;
738
+ };
739
+ }): Promise<GetDeployStatus200>;
740
+ /**
741
+ * @summary Delete a deploy
742
+ * @description Marks a deploy for deletion.
743
+ * @link /deploys/{deploy_id}
744
+ */
745
+ declare function deleteDeploy({ pathParams, config, }?: {
746
+ pathParams: DeleteDeployPath;
747
+ config?: Partial<FetcherConfig> & {
748
+ client?: typeof client;
749
+ };
750
+ }): Promise<unknown>;
751
+ /**
752
+ * @summary Update a deploy's validations report
753
+ * @description Updates the deploy validations report for a deploy.
754
+ * @link /deploys/{deploy_id}/validations_report
755
+ */
756
+ declare function updateDeployValidations({ pathParams, body, config, }?: {
757
+ pathParams: UpdateDeployValidationsPath;
758
+ body: UpdateDeployValidationsBody;
759
+ config?: Partial<FetcherConfig> & {
760
+ client?: typeof client;
761
+ };
762
+ }): Promise<UpdateDeployValidationsStatus200>;
763
+ /**
764
+ * @summary Lock a deploy
765
+ * @description Locks a deploy so that subsequent deploys are built but not published. If the deploy is not the site's published deploy, locking publishes it first. When publishing is gated, the publish and lock are queued and the API responds with 202 Accepted and the deploy; poll `getDeploy` to follow it.
766
+ * @link /deploys/{deploy_id}/lock
767
+ */
768
+ declare function lockDeploy({ pathParams, config, }?: {
769
+ pathParams: LockDeployPath;
770
+ config?: Partial<FetcherConfig> & {
771
+ client?: typeof client;
772
+ };
773
+ }): Promise<LockDeployStatus200>;
774
+ /**
775
+ * @summary Unlock a deploy
776
+ * @link /deploys/{deploy_id}/unlock
777
+ */
778
+ declare function unlockDeploy({ pathParams, config, }?: {
779
+ pathParams: UnlockDeployPath;
780
+ config?: Partial<FetcherConfig> & {
781
+ client?: typeof client;
782
+ };
783
+ }): Promise<UnlockDeployStatus200>;
784
+ /**
785
+ * @summary Upload a deploy file
786
+ * @link /deploys/{deploy_id}/files/{path}
787
+ */
788
+ declare function uploadDeployFile({ pathParams, body, queryParams, config, }?: {
789
+ pathParams: UploadDeployFilePath;
790
+ body: Blob | ArrayBuffer | Uint8Array | ReadableStream | string;
791
+ queryParams?: Partial<UploadDeployFileQuery>;
792
+ config?: Partial<FetcherConfig> & {
793
+ client?: typeof client;
794
+ };
795
+ }): Promise<UploadDeployFileStatus200>;
796
+ /**
797
+ * @summary Upload a deploy function
798
+ * @link /deploys/{deploy_id}/functions/{name}
799
+ */
800
+ declare function uploadDeployFunction({ pathParams, body, queryParams, headers, config, }?: {
801
+ pathParams: UploadDeployFunctionPath;
802
+ body: Blob | ArrayBuffer | Uint8Array | ReadableStream | string;
803
+ queryParams?: Partial<UploadDeployFunctionQuery>;
804
+ headers?: Partial<UploadDeployFunctionHeaders>;
805
+ config?: Partial<FetcherConfig> & {
806
+ client?: typeof client;
807
+ };
808
+ }): Promise<UploadDeployFunctionStatus200>;
809
+ /**
810
+ * @summary Upload a deploy's Netlify Server bundle
811
+ * @description Uploads the deploy's Netlify Server bundle, addressed by the digest the deploy
812
+ * declared in its `server` property.
813
+ * @link /deploys/{deploy_id}/server/{code_sha}
814
+ */
815
+ declare function uploadDeployServer({ pathParams, body, queryParams, headers, config, }?: {
816
+ pathParams: UploadDeployServerPath;
817
+ body: Blob | ArrayBuffer | Uint8Array | ReadableStream | string;
818
+ queryParams?: Partial<UploadDeployServerQuery>;
819
+ headers?: Partial<UploadDeployServerHeaders>;
820
+ config?: Partial<FetcherConfig> & {
821
+ client?: typeof client;
822
+ };
823
+ }): Promise<unknown>;
824
+ /**
825
+ * @summary Upload a deploy's edge functions bundle
826
+ * @link /deploys/{deploy_id}/edge_functions/{code_sha}
827
+ */
828
+ declare function uploadDeployEdgeFunction({ pathParams, body, headers, config, }?: {
829
+ pathParams: UploadDeployEdgeFunctionPath;
830
+ body: Blob | ArrayBuffer | Uint8Array | ReadableStream | string;
831
+ headers?: Partial<UploadDeployEdgeFunctionHeaders>;
832
+ config?: Partial<FetcherConfig> & {
833
+ client?: typeof client;
834
+ };
835
+ }): Promise<unknown>;
836
+ /**
837
+ * @summary List a site's latest build plugin runs
838
+ * @description This is an internal-only endpoint.
839
+ * @link /sites/{site_id}/plugin_runs/latest
840
+ */
841
+ declare function getLatestPluginRuns({ pathParams, queryParams, config, }?: {
842
+ pathParams: GetLatestPluginRunsPath;
843
+ queryParams: GetLatestPluginRunsQuery;
844
+ config?: Partial<FetcherConfig> & {
845
+ client?: typeof client;
846
+ };
847
+ }): Promise<GetLatestPluginRunsStatus200>;
848
+ /**
849
+ * @summary Create a build plugin run
850
+ * @description This is an internal-only endpoint.
851
+ * @link /deploys/{deploy_id}/plugin_runs
852
+ */
853
+ declare function createPluginRun({ pathParams, body, config, }?: {
854
+ pathParams: CreatePluginRunPath;
855
+ body?: CreatePluginRunBody;
856
+ config?: Partial<FetcherConfig> & {
857
+ client?: typeof client;
858
+ };
859
+ }): Promise<CreatePluginRunStatus201>;
860
+ /**
861
+ * @summary List a form's submissions
862
+ * @link /forms/{form_id}/submissions
863
+ */
864
+ declare function listFormSubmissions({ pathParams, queryParams, config, }?: {
865
+ pathParams: ListFormSubmissionsPath;
866
+ queryParams?: Partial<ListFormSubmissionsQuery>;
867
+ config?: Partial<FetcherConfig> & {
868
+ client?: typeof client;
869
+ };
870
+ }): Promise<ListFormSubmissionsStatus200>;
871
+ /**
872
+ * @summary List a site's outgoing hooks
873
+ * @description Returns the outgoing hooks for a site. Pass `form_id` or `event` to filter the results.
874
+ * @link /hooks
875
+ */
876
+ declare function listHooksBySiteId({ queryParams, config, }?: {
877
+ queryParams: ListHooksBySiteIdQuery;
878
+ config?: Partial<FetcherConfig> & {
879
+ client?: typeof client;
880
+ };
881
+ }): Promise<ListHooksBySiteIdStatus200>;
882
+ /**
883
+ * @summary Create an outgoing hook
884
+ * @link /hooks
885
+ */
886
+ declare function createHookBySiteId({ body, queryParams, config, }?: {
887
+ body: CreateHookBySiteIdBody;
888
+ queryParams: CreateHookBySiteIdQuery;
889
+ config?: Partial<FetcherConfig> & {
890
+ client?: typeof client;
891
+ };
892
+ }): Promise<CreateHookBySiteIdStatus201>;
893
+ /**
894
+ * @summary Get an outgoing hook
895
+ * @link /hooks/{hook_id}
896
+ */
897
+ declare function getHook({ pathParams, config, }?: {
898
+ pathParams: GetHookPath;
899
+ config?: Partial<FetcherConfig> & {
900
+ client?: typeof client;
901
+ };
902
+ }): Promise<GetHookStatus200>;
903
+ /**
904
+ * @summary Update an outgoing hook
905
+ * @link /hooks/{hook_id}
906
+ */
907
+ declare function updateHook({ pathParams, body, config, }?: {
908
+ pathParams: UpdateHookPath;
909
+ body: UpdateHookBody;
910
+ config?: Partial<FetcherConfig> & {
911
+ client?: typeof client;
912
+ };
913
+ }): Promise<UpdateHookStatus200>;
914
+ /**
915
+ * @summary Delete an outgoing hook
916
+ * @link /hooks/{hook_id}
917
+ */
918
+ declare function deleteHook({ pathParams, config, }?: {
919
+ pathParams: DeleteHookPath;
920
+ config?: Partial<FetcherConfig> & {
921
+ client?: typeof client;
922
+ };
923
+ }): Promise<unknown>;
924
+ /**
925
+ * @summary Re-enable an outgoing hook
926
+ * @description Re-enables an outgoing hook that was disabled after repeated delivery errors.
927
+ * @link /hooks/{hook_id}/enable
928
+ */
929
+ declare function enableHook({ pathParams, config, }?: {
930
+ pathParams: EnableHookPath;
931
+ config?: Partial<FetcherConfig> & {
932
+ client?: typeof client;
933
+ };
934
+ }): Promise<EnableHookStatus200>;
935
+ /**
936
+ * @summary List outgoing hook types
937
+ * @description Returns the available outgoing hook types. When `site_id` is given, returns only the types available to that site.
938
+ * @link /hooks/types
939
+ */
940
+ declare function listHookTypes({ queryParams, config, }?: {
941
+ queryParams?: Partial<ListHookTypesQuery>;
942
+ config?: Partial<FetcherConfig> & {
943
+ client?: typeof client;
944
+ };
945
+ }): Promise<ListHookTypesStatus200>;
946
+ /**
947
+ * @summary Create an OAuth ticket
948
+ * @link /oauth/tickets
949
+ */
950
+ declare function createTicket({ body, queryParams, config, }?: {
951
+ body?: CreateTicketBody;
952
+ queryParams: CreateTicketQuery;
953
+ config?: Partial<FetcherConfig> & {
954
+ client?: typeof client;
955
+ };
956
+ }): Promise<CreateTicketStatus201>;
957
+ /**
958
+ * @summary Get an OAuth ticket
959
+ * @link /oauth/tickets/{ticket_id}
960
+ */
961
+ declare function showTicket({ pathParams, config, }?: {
962
+ pathParams: ShowTicketPath;
963
+ config?: Partial<FetcherConfig> & {
964
+ client?: typeof client;
965
+ };
966
+ }): Promise<ShowTicketStatus200>;
967
+ /**
968
+ * @summary Exchange an OAuth ticket for an access token
969
+ * @link /oauth/tickets/{ticket_id}/exchange
970
+ */
971
+ declare function exchangeTicket({ pathParams, config, }?: {
972
+ pathParams: ExchangeTicketPath;
973
+ config?: Partial<FetcherConfig> & {
974
+ client?: typeof client;
975
+ };
976
+ }): Promise<ExchangeTicketStatus201>;
977
+ /**
978
+ * @summary List deploy keys
979
+ * @link /deploy_keys
980
+ */
981
+ declare function listDeployKeys({ config }?: {
982
+ config?: Partial<FetcherConfig> & {
983
+ client?: typeof client;
984
+ };
985
+ }): Promise<ListDeployKeysStatus200>;
986
+ /**
987
+ * @summary Create a deploy key
988
+ * @link /deploy_keys
989
+ */
990
+ declare function createDeployKey({ config }?: {
991
+ config?: Partial<FetcherConfig> & {
992
+ client?: typeof client;
993
+ };
994
+ }): Promise<CreateDeployKeyStatus201>;
995
+ /**
996
+ * @summary Get a deploy key
997
+ * @link /deploy_keys/{key_id}
998
+ */
999
+ declare function getDeployKey({ pathParams, config, }?: {
1000
+ pathParams: GetDeployKeyPath;
1001
+ config?: Partial<FetcherConfig> & {
1002
+ client?: typeof client;
1003
+ };
1004
+ }): Promise<GetDeployKeyStatus200>;
1005
+ /**
1006
+ * @summary Delete a deploy key
1007
+ * @link /deploy_keys/{key_id}
1008
+ */
1009
+ declare function deleteDeployKey({ pathParams, config, }?: {
1010
+ pathParams: DeleteDeployKeyPath;
1011
+ config?: Partial<FetcherConfig> & {
1012
+ client?: typeof client;
1013
+ };
1014
+ }): Promise<unknown>;
1015
+ /**
1016
+ * @summary Create a site in a team
1017
+ * @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.
1018
+ * @link /{account_slug}/sites
1019
+ */
1020
+ declare function createSiteInTeam({ pathParams, body, queryParams, config, }?: {
1021
+ pathParams: CreateSiteInTeamPath;
1022
+ body?: CreateSiteInTeamBody;
1023
+ queryParams?: Partial<CreateSiteInTeamQuery>;
1024
+ config?: Partial<FetcherConfig> & {
1025
+ client?: typeof client;
1026
+ };
1027
+ }): Promise<CreateSiteInTeamStatus201>;
1028
+ /**
1029
+ * @summary List a team's sites
1030
+ * @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.
1031
+ * @link /{account_slug}/sites
1032
+ */
1033
+ declare function listSitesForAccount({ pathParams, queryParams, config, }?: {
1034
+ pathParams: ListSitesForAccountPath;
1035
+ queryParams?: Partial<ListSitesForAccountQuery>;
1036
+ config?: Partial<FetcherConfig> & {
1037
+ client?: typeof client;
1038
+ };
1039
+ }): Promise<ListSitesForAccountStatus200>;
1040
+ /**
1041
+ * @summary List a team's members
1042
+ * @link /{account_slug}/members
1043
+ */
1044
+ declare function listMembersForAccount({ pathParams, config, }?: {
1045
+ pathParams: ListMembersForAccountPath;
1046
+ config?: Partial<FetcherConfig> & {
1047
+ client?: typeof client;
1048
+ };
1049
+ }): Promise<ListMembersForAccountStatus200>;
1050
+ /**
1051
+ * @summary Add a member to a team
1052
+ * @link /{account_slug}/members
1053
+ */
1054
+ declare function addMemberToAccount({ pathParams, body, config, }?: {
1055
+ pathParams: AddMemberToAccountPath;
1056
+ body: AddMemberToAccountBody;
1057
+ config?: Partial<FetcherConfig> & {
1058
+ client?: typeof client;
1059
+ };
1060
+ }): Promise<AddMemberToAccountStatus200>;
1061
+ /**
1062
+ * @summary Get a team member
1063
+ * @link /{account_slug}/members/{member_id}
1064
+ */
1065
+ declare function getAccountMember({ pathParams, config, }?: {
1066
+ pathParams: GetAccountMemberPath;
1067
+ config?: Partial<FetcherConfig> & {
1068
+ client?: typeof client;
1069
+ };
1070
+ }): Promise<GetAccountMemberStatus200>;
1071
+ /**
1072
+ * @summary Update a team member
1073
+ * @link /{account_slug}/members/{member_id}
1074
+ */
1075
+ declare function updateAccountMember({ pathParams, body, config, }?: {
1076
+ pathParams: UpdateAccountMemberPath;
1077
+ body: UpdateAccountMemberBody;
1078
+ config?: Partial<FetcherConfig> & {
1079
+ client?: typeof client;
1080
+ };
1081
+ }): Promise<UpdateAccountMemberStatus200>;
1082
+ /**
1083
+ * @summary Remove a team member
1084
+ * @link /{account_slug}/members/{member_id}
1085
+ */
1086
+ declare function removeAccountMember({ pathParams, config, }?: {
1087
+ pathParams: RemoveAccountMemberPath;
1088
+ config?: Partial<FetcherConfig> & {
1089
+ client?: typeof client;
1090
+ };
1091
+ }): Promise<unknown>;
1092
+ /**
1093
+ * @summary List payment methods
1094
+ * @link /billing/payment_methods
1095
+ */
1096
+ declare function listPaymentMethodsForUser({ config }?: {
1097
+ config?: Partial<FetcherConfig> & {
1098
+ client?: typeof client;
1099
+ };
1100
+ }): Promise<ListPaymentMethodsForUserStatus200>;
1101
+ /**
1102
+ * @summary List plans available for new teams
1103
+ * @link /accounts/types
1104
+ */
1105
+ declare function listAccountTypesForUser({ config }?: {
1106
+ config?: Partial<FetcherConfig> & {
1107
+ client?: typeof client;
1108
+ };
1109
+ }): Promise<ListAccountTypesForUserStatus200>;
1110
+ /**
1111
+ * @summary List the current user's teams
1112
+ * @link /accounts
1113
+ */
1114
+ declare function listAccountsForUser({ queryParams, config, }?: {
1115
+ queryParams?: Partial<ListAccountsForUserQuery>;
1116
+ config?: Partial<FetcherConfig> & {
1117
+ client?: typeof client;
1118
+ };
1119
+ }): Promise<ListAccountsForUserStatus200>;
1120
+ /**
1121
+ * @summary Create a team
1122
+ * @link /accounts
1123
+ */
1124
+ declare function createAccount({ body, config, }?: {
1125
+ body: CreateAccountBody;
1126
+ config?: Partial<FetcherConfig> & {
1127
+ client?: typeof client;
1128
+ };
1129
+ }): Promise<CreateAccountStatus201>;
1130
+ /**
1131
+ * @summary Get a team
1132
+ * @link /accounts/{account_id}
1133
+ */
1134
+ declare function getAccount({ pathParams, config, }?: {
1135
+ pathParams: GetAccountPath;
1136
+ config?: Partial<FetcherConfig> & {
1137
+ client?: typeof client;
1138
+ };
1139
+ }): Promise<GetAccountStatus200>;
1140
+ /**
1141
+ * @summary Update a team
1142
+ * @link /accounts/{account_id}
1143
+ */
1144
+ declare function updateAccount({ pathParams, body, config, }?: {
1145
+ pathParams: UpdateAccountPath;
1146
+ body?: UpdateAccountBody;
1147
+ config?: Partial<FetcherConfig> & {
1148
+ client?: typeof client;
1149
+ };
1150
+ }): Promise<UpdateAccountStatus200>;
1151
+ /**
1152
+ * @summary Cancel a team
1153
+ * @link /accounts/{account_id}
1154
+ */
1155
+ declare function cancelAccount({ pathParams, config, }?: {
1156
+ pathParams: CancelAccountPath;
1157
+ config?: Partial<FetcherConfig> & {
1158
+ client?: typeof client;
1159
+ };
1160
+ }): Promise<unknown>;
1161
+ /**
1162
+ * @summary List a team's audit log events
1163
+ * @link /accounts/{account_id}/audit
1164
+ */
1165
+ declare function listAccountAuditEvents({ pathParams, queryParams, config, }?: {
1166
+ pathParams: ListAccountAuditEventsPath;
1167
+ queryParams?: Partial<ListAccountAuditEventsQuery>;
1168
+ config?: Partial<FetcherConfig> & {
1169
+ client?: typeof client;
1170
+ };
1171
+ }): Promise<ListAccountAuditEventsStatus200>;
1172
+ /**
1173
+ * @summary List a site's agent runs
1174
+ * @description Lists a site's agent runs, most recently active first. Archived runs are left out unless `state` is `archived`.
1175
+ * @link /agent_runners
1176
+ */
1177
+ declare function listAgentRunners({ queryParams, config, }?: {
1178
+ queryParams: ListAgentRunnersQuery;
1179
+ config?: Partial<FetcherConfig> & {
1180
+ client?: typeof client;
1181
+ };
1182
+ }): Promise<ListAgentRunnersStatus200>;
1183
+ /**
1184
+ * @summary Start an agent run
1185
+ * @link /agent_runners
1186
+ */
1187
+ declare function createAgentRunner({ queryParams, config, }?: {
1188
+ queryParams: CreateAgentRunnerQuery;
1189
+ config?: Partial<FetcherConfig> & {
1190
+ client?: typeof client;
1191
+ };
1192
+ }): Promise<CreateAgentRunnerStatus200>;
1193
+ /**
1194
+ * @summary Start an agent run on a site
1195
+ * @description Starts an agent run on the site.
1196
+ * @link /sites/{site_id}/agent_runners
1197
+ */
1198
+ declare function createSiteAgentRunner({ pathParams, body, config, }?: {
1199
+ pathParams: CreateSiteAgentRunnerPath;
1200
+ body: CreateSiteAgentRunnerBody;
1201
+ config?: Partial<FetcherConfig> & {
1202
+ client?: typeof client;
1203
+ };
1204
+ }): Promise<CreateSiteAgentRunnerStatus200>;
1205
+ /**
1206
+ * @summary Create an upload URL for agent run files
1207
+ * @description Returns a presigned URL for uploading a file that agent run sessions can use, and the file's storage key.
1208
+ * @link /agent_runners/upload_url
1209
+ */
1210
+ declare function createAgentRunnerUploadUrl({ queryParams, config, }?: {
1211
+ queryParams: CreateAgentRunnerUploadUrlQuery;
1212
+ config?: Partial<FetcherConfig> & {
1213
+ client?: typeof client;
1214
+ };
1215
+ }): Promise<CreateAgentRunnerUploadUrlStatus200>;
1216
+ /**
1217
+ * @summary Get an agent run
1218
+ * @link /agent_runners/{agent_runner_id}
1219
+ */
1220
+ declare function getAgentRunner({ pathParams, config, }?: {
1221
+ pathParams: GetAgentRunnerPath;
1222
+ config?: Partial<FetcherConfig> & {
1223
+ client?: typeof client;
1224
+ };
1225
+ }): Promise<GetAgentRunnerStatus200>;
1226
+ /**
1227
+ * @summary Update an agent run
1228
+ * @link /agent_runners/{agent_runner_id}
1229
+ */
1230
+ declare function updateAgentRunner({ pathParams, config, }?: {
1231
+ pathParams: UpdateAgentRunnerPath;
1232
+ config?: Partial<FetcherConfig> & {
1233
+ client?: typeof client;
1234
+ };
1235
+ }): Promise<UpdateAgentRunnerStatus200>;
1236
+ /**
1237
+ * @summary Stop an agent run (alias)
1238
+ * @description Same as `POST /agent_runners/{agent_runner_id}/stop`. Doesn't delete the run.
1239
+ * @link /agent_runners/{agent_runner_id}
1240
+ */
1241
+ declare function deleteAgentRunner({ pathParams, config, }?: {
1242
+ pathParams: DeleteAgentRunnerPath;
1243
+ config?: Partial<FetcherConfig> & {
1244
+ client?: typeof client;
1245
+ };
1246
+ }): Promise<unknown>;
1247
+ /**
1248
+ * @summary Stop an agent run
1249
+ * @description Stops the run's active session. Stopping happens in the background.
1250
+ * @link /agent_runners/{agent_runner_id}/stop
1251
+ */
1252
+ declare function stopAgentRunner({ pathParams, config, }?: {
1253
+ pathParams: StopAgentRunnerPath;
1254
+ config?: Partial<FetcherConfig> & {
1255
+ client?: typeof client;
1256
+ };
1257
+ }): Promise<unknown>;
1258
+ /**
1259
+ * @summary Get an agent run's diff
1260
+ * @description Returns the run's changes as a unified diff. With `page`, returns that page of changed files and sets pagination headers.
1261
+ * @link /agent_runners/{agent_runner_id}/diff
1262
+ */
1263
+ declare function getAgentRunnerDiff({ pathParams, queryParams, config, }?: {
1264
+ pathParams: GetAgentRunnerDiffPath;
1265
+ queryParams?: Partial<GetAgentRunnerDiffQuery>;
1266
+ config?: Partial<FetcherConfig> & {
1267
+ client?: typeof client;
1268
+ };
1269
+ }): Promise<string>;
1270
+ /**
1271
+ * @summary Archive an agent run
1272
+ * @link /agent_runners/{agent_runner_id}/archive
1273
+ */
1274
+ declare function archiveAgentRunner({ pathParams, config, }?: {
1275
+ pathParams: ArchiveAgentRunnerPath;
1276
+ config?: Partial<FetcherConfig> & {
1277
+ client?: typeof client;
1278
+ };
1279
+ }): Promise<unknown>;
1280
+ /**
1281
+ * @summary Open a pull request from an agent run
1282
+ * @description Queues a pull request for the run's diff (`result_diff`). The pull request is created in the background, so `pr_url` is usually not set yet in the response: `pr_is_being_created` is `true` until it finishes. Poll `getAgentRunner` until `pr_url` or `pr_error` is set. Returns 409 if a pull request already exists or is being created, and 422 if the run has no diff, no branch, no GitHub repository or installation, or needs a git sync.
1283
+ * @link /agent_runners/{agent_runner_id}/pull_request
1284
+ */
1285
+ declare function agentRunnerPullRequest({ pathParams, config, }?: {
1286
+ pathParams: AgentRunnerPullRequestPath;
1287
+ config?: Partial<FetcherConfig> & {
1288
+ client?: typeof client;
1289
+ };
1290
+ }): Promise<AgentRunnerPullRequestStatus200>;
1291
+ /**
1292
+ * @summary Commit an agent run's changes to a branch
1293
+ * @description Queues a commit of the run's diff to `target_branch`. The commit is made in the background: `merge_commit_is_being_created` is `true` until it finishes. Poll `getAgentRunner` until `merge_commit_sha` or `merge_commit_error` is set.
1294
+ * @link /agent_runners/{agent_runner_id}/commit
1295
+ */
1296
+ declare function agentRunnerCommitToBranch({ pathParams, queryParams, config, }?: {
1297
+ pathParams: AgentRunnerCommitToBranchPath;
1298
+ queryParams: AgentRunnerCommitToBranchQuery;
1299
+ config?: Partial<FetcherConfig> & {
1300
+ client?: typeof client;
1301
+ };
1302
+ }): Promise<AgentRunnerCommitToBranchStatus200>;
1303
+ /**
1304
+ * @summary List an agent run's sessions
1305
+ * @link /agent_runners/{agent_runner_id}/sessions
1306
+ */
1307
+ declare function listAgentRunnerSessions({ pathParams, queryParams, config, }?: {
1308
+ pathParams: ListAgentRunnerSessionsPath;
1309
+ queryParams?: Partial<ListAgentRunnerSessionsQuery>;
1310
+ config?: Partial<FetcherConfig> & {
1311
+ client?: typeof client;
1312
+ };
1313
+ }): Promise<ListAgentRunnerSessionsStatus200>;
1314
+ /**
1315
+ * @summary Start a follow-up agent run session
1316
+ * @description Starts a follow-up session on the run.
1317
+ * @link /agent_runners/{agent_runner_id}/sessions
1318
+ */
1319
+ declare function createAgentRunnerSession({ pathParams, body, queryParams, config, }?: {
1320
+ pathParams: CreateAgentRunnerSessionPath;
1321
+ body?: CreateAgentRunnerSessionBody;
1322
+ queryParams?: Partial<CreateAgentRunnerSessionQuery>;
1323
+ config?: Partial<FetcherConfig> & {
1324
+ client?: typeof client;
1325
+ };
1326
+ }): Promise<CreateAgentRunnerSessionStatus200>;
1327
+ /**
1328
+ * @summary Get an agent run session
1329
+ * @link /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}
1330
+ */
1331
+ declare function getAgentRunnerSession({ pathParams, config, }?: {
1332
+ pathParams: GetAgentRunnerSessionPath;
1333
+ config?: Partial<FetcherConfig> & {
1334
+ client?: typeof client;
1335
+ };
1336
+ }): Promise<GetAgentRunnerSessionStatus200>;
1337
+ /**
1338
+ * @summary Update an agent run session
1339
+ * @link /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}
1340
+ */
1341
+ declare function updateAgentRunnerSession({ pathParams, queryParams, config, }?: {
1342
+ pathParams: UpdateAgentRunnerSessionPath;
1343
+ queryParams?: Partial<UpdateAgentRunnerSessionQuery>;
1344
+ config?: Partial<FetcherConfig> & {
1345
+ client?: typeof client;
1346
+ };
1347
+ }): Promise<UpdateAgentRunnerSessionStatus200>;
1348
+ /**
1349
+ * @summary Stop an agent run session (alias)
1350
+ * @description Same as `POST /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}/stop`. Doesn't delete the session.
1351
+ * @link /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}
1352
+ */
1353
+ declare function deleteAgentRunnerSession({ pathParams, config, }?: {
1354
+ pathParams: DeleteAgentRunnerSessionPath;
1355
+ config?: Partial<FetcherConfig> & {
1356
+ client?: typeof client;
1357
+ };
1358
+ }): Promise<unknown>;
1359
+ /**
1360
+ * @summary Stop an agent run session
1361
+ * @description Stops the session. Stopping happens in the background.
1362
+ * @link /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}/stop
1363
+ */
1364
+ declare function stopAgentRunnerSession({ pathParams, config, }?: {
1365
+ pathParams: StopAgentRunnerSessionPath;
1366
+ config?: Partial<FetcherConfig> & {
1367
+ client?: typeof client;
1368
+ };
1369
+ }): Promise<unknown>;
1370
+ /**
1371
+ * @summary Answer an agent run session's pending interaction
1372
+ * @description Answers or skips a pending interaction and resumes the session. A session waiting on an interaction is in the `await_input` state.
1373
+ * @link /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}/answers
1374
+ */
1375
+ declare function answerAgentRunnerSession({ pathParams, body, config, }?: {
1376
+ pathParams: AnswerAgentRunnerSessionPath;
1377
+ body: AnswerAgentRunnerSessionBody;
1378
+ config?: Partial<FetcherConfig> & {
1379
+ client?: typeof client;
1380
+ };
1381
+ }): Promise<AnswerAgentRunnerSessionStatus200>;
1382
+ /**
1383
+ * @summary Get a form submission
1384
+ * @link /submissions/{submission_id}
1385
+ */
1386
+ declare function listFormSubmission({ pathParams, queryParams, config, }?: {
1387
+ pathParams: ListFormSubmissionPath;
1388
+ queryParams?: Partial<ListFormSubmissionQuery>;
1389
+ config?: Partial<FetcherConfig> & {
1390
+ client?: typeof client;
1391
+ };
1392
+ }): Promise<ListFormSubmissionStatus200>;
1393
+ /**
1394
+ * @summary Delete a form submission
1395
+ * @link /submissions/{submission_id}
1396
+ */
1397
+ declare function deleteSubmission({ pathParams, config, }?: {
1398
+ pathParams: DeleteSubmissionPath;
1399
+ config?: Partial<FetcherConfig> & {
1400
+ client?: typeof client;
1401
+ };
1402
+ }): Promise<unknown>;
1403
+ /**
1404
+ * @summary List a site's add-on instances
1405
+ * @link /sites/{site_id}/service-instances
1406
+ */
1407
+ declare function listServiceInstancesForSite({ pathParams, config, }?: {
1408
+ pathParams: ListServiceInstancesForSitePath;
1409
+ config?: Partial<FetcherConfig> & {
1410
+ client?: typeof client;
1411
+ };
1412
+ }): Promise<ListServiceInstancesForSiteStatus200>;
1413
+ /**
1414
+ * @summary Create an add-on instance
1415
+ * @link /sites/{site_id}/services/{addon}/instances
1416
+ */
1417
+ declare function createServiceInstance({ pathParams, body, config, }?: {
1418
+ pathParams: CreateServiceInstancePath;
1419
+ body: CreateServiceInstanceBody;
1420
+ config?: Partial<FetcherConfig> & {
1421
+ client?: typeof client;
1422
+ };
1423
+ }): Promise<CreateServiceInstanceStatus201>;
1424
+ /**
1425
+ * @summary Get an add-on instance
1426
+ * @link /sites/{site_id}/services/{addon}/instances/{instance_id}
1427
+ */
1428
+ declare function showServiceInstance({ pathParams, config, }?: {
1429
+ pathParams: ShowServiceInstancePath;
1430
+ config?: Partial<FetcherConfig> & {
1431
+ client?: typeof client;
1432
+ };
1433
+ }): Promise<ShowServiceInstanceStatus200>;
1434
+ /**
1435
+ * @summary Update an add-on instance
1436
+ * @link /sites/{site_id}/services/{addon}/instances/{instance_id}
1437
+ */
1438
+ declare function updateServiceInstance({ pathParams, body, config, }?: {
1439
+ pathParams: UpdateServiceInstancePath;
1440
+ body: UpdateServiceInstanceBody;
1441
+ config?: Partial<FetcherConfig> & {
1442
+ client?: typeof client;
1443
+ };
1444
+ }): Promise<unknown>;
1445
+ /**
1446
+ * @summary Delete an add-on instance
1447
+ * @link /sites/{site_id}/services/{addon}/instances/{instance_id}
1448
+ */
1449
+ declare function deleteServiceInstance({ pathParams, config, }?: {
1450
+ pathParams: DeleteServiceInstancePath;
1451
+ config?: Partial<FetcherConfig> & {
1452
+ client?: typeof client;
1453
+ };
1454
+ }): Promise<unknown>;
1455
+ /**
1456
+ * @summary Get an Identity user
1457
+ * @description Returns one Identity user by ID. Agent runner tokens receive only the user's ID, email, confirmation, invitation, sign-in, password-reset and email-change timestamps, and the `provider` and `roles` fields of `app_metadata`.
1458
+ * @link /sites/{site_id}/identity/{identity_id}/users/{user_id}
1459
+ */
1460
+ declare function getIdentityUser({ pathParams, config, }?: {
1461
+ pathParams: GetIdentityUserPath;
1462
+ config?: Partial<FetcherConfig> & {
1463
+ client?: typeof client;
1464
+ };
1465
+ }): Promise<GetIdentityUserStatus200>;
1466
+ /**
1467
+ * @summary Look up an Identity user by email
1468
+ * @description Returns the one Identity user with this exact email. Matching ignores case and trailing spaces. Partial matches and pagination are not supported, and an unknown email returns 404. Agent runner tokens receive the same restricted fields as `getIdentityUser`.
1469
+ * @link /sites/{site_id}/identity/{identity_id}/users/lookup
1470
+ */
1471
+ declare function lookupIdentityUser({ pathParams, body, config, }?: {
1472
+ pathParams: LookupIdentityUserPath;
1473
+ body: LookupIdentityUserBody;
1474
+ config?: Partial<FetcherConfig> & {
1475
+ client?: typeof client;
1476
+ };
1477
+ }): Promise<LookupIdentityUserStatus200>;
1478
+ /**
1479
+ * @summary List add-on services
1480
+ * @link /services/
1481
+ */
1482
+ declare function getServices({ queryParams, config, }?: {
1483
+ queryParams?: Partial<GetServicesQuery>;
1484
+ config?: Partial<FetcherConfig> & {
1485
+ client?: typeof client;
1486
+ };
1487
+ }): Promise<GetServicesStatus200>;
1488
+ /**
1489
+ * @summary Get an add-on service
1490
+ * @link /services/{addonName}
1491
+ */
1492
+ declare function showService({ pathParams, config, }?: {
1493
+ pathParams: ShowServicePath;
1494
+ config?: Partial<FetcherConfig> & {
1495
+ client?: typeof client;
1496
+ };
1497
+ }): Promise<ShowServiceStatus200>;
1498
+ /**
1499
+ * @summary Get an add-on service's manifest
1500
+ * @link /services/{addonName}/manifest
1501
+ */
1502
+ declare function showServiceManifest({ pathParams, config, }?: {
1503
+ pathParams: ShowServiceManifestPath;
1504
+ config?: Partial<FetcherConfig> & {
1505
+ client?: typeof client;
1506
+ };
1507
+ }): Promise<object>;
1508
+ /**
1509
+ * @summary Get the current user
1510
+ * @link /user
1511
+ */
1512
+ declare function getCurrentUser({ config }?: {
1513
+ config?: Partial<FetcherConfig> & {
1514
+ client?: typeof client;
1515
+ };
1516
+ }): Promise<GetCurrentUserStatus200>;
1517
+ /**
1518
+ * @summary Create a split test
1519
+ * @link /sites/{site_id}/traffic_splits
1520
+ */
1521
+ declare function createSplitTest({ pathParams, body, config, }?: {
1522
+ pathParams: CreateSplitTestPath;
1523
+ body: CreateSplitTestBody;
1524
+ config?: Partial<FetcherConfig> & {
1525
+ client?: typeof client;
1526
+ };
1527
+ }): Promise<CreateSplitTestStatus201>;
1528
+ /**
1529
+ * @summary List a site's split tests
1530
+ * @link /sites/{site_id}/traffic_splits
1531
+ */
1532
+ declare function getSplitTests({ pathParams, config, }?: {
1533
+ pathParams: GetSplitTestsPath;
1534
+ config?: Partial<FetcherConfig> & {
1535
+ client?: typeof client;
1536
+ };
1537
+ }): Promise<GetSplitTestsStatus200>;
1538
+ /**
1539
+ * @summary Update a split test
1540
+ * @link /sites/{site_id}/traffic_splits/{split_test_id}
1541
+ */
1542
+ declare function updateSplitTest({ pathParams, body, config, }?: {
1543
+ pathParams: UpdateSplitTestPath;
1544
+ body: UpdateSplitTestBody;
1545
+ config?: Partial<FetcherConfig> & {
1546
+ client?: typeof client;
1547
+ };
1548
+ }): Promise<UpdateSplitTestStatus201>;
1549
+ /**
1550
+ * @summary Get a split test
1551
+ * @link /sites/{site_id}/traffic_splits/{split_test_id}
1552
+ */
1553
+ declare function getSplitTest({ pathParams, config, }?: {
1554
+ pathParams: GetSplitTestPath;
1555
+ config?: Partial<FetcherConfig> & {
1556
+ client?: typeof client;
1557
+ };
1558
+ }): Promise<GetSplitTestStatus200>;
1559
+ /**
1560
+ * @summary Publish a split test
1561
+ * @link /sites/{site_id}/traffic_splits/{split_test_id}/publish
1562
+ */
1563
+ declare function enableSplitTest({ pathParams, config, }?: {
1564
+ pathParams: EnableSplitTestPath;
1565
+ config?: Partial<FetcherConfig> & {
1566
+ client?: typeof client;
1567
+ };
1568
+ }): Promise<unknown>;
1569
+ /**
1570
+ * @summary Unpublish a split test
1571
+ * @link /sites/{site_id}/traffic_splits/{split_test_id}/unpublish
1572
+ */
1573
+ declare function disableSplitTest({ pathParams, config, }?: {
1574
+ pathParams: DisableSplitTestPath;
1575
+ config?: Partial<FetcherConfig> & {
1576
+ client?: typeof client;
1577
+ };
1578
+ }): Promise<unknown>;
1579
+ /**
1580
+ * @summary Create a DNS zone
1581
+ * @link /dns_zones
1582
+ */
1583
+ declare function createDnsZone({ body, config, }?: {
1584
+ body: CreateDnsZoneBody;
1585
+ config?: Partial<FetcherConfig> & {
1586
+ client?: typeof client;
1587
+ };
1588
+ }): Promise<CreateDnsZoneStatus201>;
1589
+ /**
1590
+ * @summary List DNS zones
1591
+ * @description Returns the DNS zones for the team given by `account_slug`, or all DNS zones the current user can access.
1592
+ * @link /dns_zones
1593
+ */
1594
+ declare function getDnsZones({ queryParams, config, }?: {
1595
+ queryParams?: Partial<GetDnsZonesQuery>;
1596
+ config?: Partial<FetcherConfig> & {
1597
+ client?: typeof client;
1598
+ };
1599
+ }): Promise<GetDnsZonesStatus200>;
1600
+ /**
1601
+ * @summary Get a DNS zone
1602
+ * @link /dns_zones/{zone_id}
1603
+ */
1604
+ declare function getDnsZone({ pathParams, config, }?: {
1605
+ pathParams: GetDnsZonePath;
1606
+ config?: Partial<FetcherConfig> & {
1607
+ client?: typeof client;
1608
+ };
1609
+ }): Promise<GetDnsZoneStatus200>;
1610
+ /**
1611
+ * @summary Delete a DNS zone
1612
+ * @link /dns_zones/{zone_id}
1613
+ */
1614
+ declare function deleteDnsZone({ pathParams, config, }?: {
1615
+ pathParams: DeleteDnsZonePath;
1616
+ config?: Partial<FetcherConfig> & {
1617
+ client?: typeof client;
1618
+ };
1619
+ }): Promise<unknown>;
1620
+ /**
1621
+ * @summary Transfer a DNS zone to another team
1622
+ * @link /dns_zones/{zone_id}/transfer
1623
+ */
1624
+ declare function transferDnsZone({ pathParams, queryParams, config, }?: {
1625
+ pathParams: TransferDnsZonePath;
1626
+ queryParams: TransferDnsZoneQuery;
1627
+ config?: Partial<FetcherConfig> & {
1628
+ client?: typeof client;
1629
+ };
1630
+ }): Promise<TransferDnsZoneStatus200>;
1631
+ /**
1632
+ * @summary List a DNS zone's records
1633
+ * @link /dns_zones/{zone_id}/dns_records
1634
+ */
1635
+ declare function getDnsRecords({ pathParams, config, }?: {
1636
+ pathParams: GetDnsRecordsPath;
1637
+ config?: Partial<FetcherConfig> & {
1638
+ client?: typeof client;
1639
+ };
1640
+ }): Promise<GetDnsRecordsStatus200>;
1641
+ /**
1642
+ * @summary Create a DNS record
1643
+ * @link /dns_zones/{zone_id}/dns_records
1644
+ */
1645
+ declare function createDnsRecord({ pathParams, body, config, }?: {
1646
+ pathParams: CreateDnsRecordPath;
1647
+ body: CreateDnsRecordBody;
1648
+ config?: Partial<FetcherConfig> & {
1649
+ client?: typeof client;
1650
+ };
1651
+ }): Promise<CreateDnsRecordStatus201>;
1652
+ /**
1653
+ * @summary Get a DNS record
1654
+ * @link /dns_zones/{zone_id}/dns_records/{dns_record_id}
1655
+ */
1656
+ declare function getIndividualDnsRecord({ pathParams, config, }?: {
1657
+ pathParams: GetIndividualDnsRecordPath;
1658
+ config?: Partial<FetcherConfig> & {
1659
+ client?: typeof client;
1660
+ };
1661
+ }): Promise<GetIndividualDnsRecordStatus200>;
1662
+ /**
1663
+ * @summary Delete a DNS record
1664
+ * @link /dns_zones/{zone_id}/dns_records/{dns_record_id}
1665
+ */
1666
+ declare function deleteDnsRecord({ pathParams, config, }?: {
1667
+ pathParams: DeleteDnsRecordPath;
1668
+ config?: Partial<FetcherConfig> & {
1669
+ client?: typeof client;
1670
+ };
1671
+ }): Promise<unknown>;
1672
+ /**
1673
+ * @summary List a site's dev servers
1674
+ * @link /sites/{site_id}/dev_servers
1675
+ */
1676
+ declare function listSiteDevServers({ pathParams, queryParams, config, }?: {
1677
+ pathParams: ListSiteDevServersPath;
1678
+ queryParams?: Partial<ListSiteDevServersQuery>;
1679
+ config?: Partial<FetcherConfig> & {
1680
+ client?: typeof client;
1681
+ };
1682
+ }): Promise<ListSiteDevServersStatus200>;
1683
+ /**
1684
+ * @summary Start a dev server
1685
+ * @link /sites/{site_id}/dev_servers
1686
+ */
1687
+ declare function createSiteDevServer({ pathParams, queryParams, config, }?: {
1688
+ pathParams: CreateSiteDevServerPath;
1689
+ queryParams?: Partial<CreateSiteDevServerQuery>;
1690
+ config?: Partial<FetcherConfig> & {
1691
+ client?: typeof client;
1692
+ };
1693
+ }): Promise<CreateSiteDevServerStatus200>;
1694
+ /**
1695
+ * @summary Stop a branch's dev servers
1696
+ * @description Stops all dev servers for a branch. Stopping happens in the background.
1697
+ * @link /sites/{site_id}/dev_servers
1698
+ */
1699
+ declare function deleteSiteDevServers({ pathParams, queryParams, config, }?: {
1700
+ pathParams: DeleteSiteDevServersPath;
1701
+ queryParams?: Partial<DeleteSiteDevServersQuery>;
1702
+ config?: Partial<FetcherConfig> & {
1703
+ client?: typeof client;
1704
+ };
1705
+ }): Promise<unknown>;
1706
+ /**
1707
+ * @summary Get a dev server
1708
+ * @link /sites/{site_id}/dev_servers/{dev_server_id}
1709
+ */
1710
+ declare function getSiteDevServer({ pathParams, config, }?: {
1711
+ pathParams: GetSiteDevServerPath;
1712
+ config?: Partial<FetcherConfig> & {
1713
+ client?: typeof client;
1714
+ };
1715
+ }): Promise<GetSiteDevServerStatus200>;
1716
+ /**
1717
+ * @summary Record dev server activity
1718
+ * @link /sites/{site_id}/dev_servers/{dev_server_id}/activity
1719
+ */
1720
+ declare function markDevServerActivity({ pathParams, config, }?: {
1721
+ pathParams: MarkDevServerActivityPath;
1722
+ config?: Partial<FetcherConfig> & {
1723
+ client?: typeof client;
1724
+ };
1725
+ }): Promise<MarkDevServerActivityStatus200>;
1726
+ /**
1727
+ * @summary Update a dev server's state
1728
+ * @link /sites/{site_id}/dev_servers/{dev_server_id}/state
1729
+ */
1730
+ declare function updateDevServerState({ pathParams, body, config, }?: {
1731
+ pathParams: UpdateDevServerStatePath;
1732
+ body: UpdateDevServerStateBody;
1733
+ config?: Partial<FetcherConfig> & {
1734
+ client?: typeof client;
1735
+ };
1736
+ }): Promise<UpdateDevServerStateStatus200>;
1737
+ /**
1738
+ * @summary List a site's dev server hooks
1739
+ * @link /sites/{site_id}/dev_server_hooks
1740
+ */
1741
+ declare function listSiteDevServerHooks({ pathParams, config, }?: {
1742
+ pathParams: ListSiteDevServerHooksPath;
1743
+ config?: Partial<FetcherConfig> & {
1744
+ client?: typeof client;
1745
+ };
1746
+ }): Promise<ListSiteDevServerHooksStatus200>;
1747
+ /**
1748
+ * @summary Create a dev server hook
1749
+ * @link /sites/{site_id}/dev_server_hooks
1750
+ */
1751
+ declare function createSiteDevServerHook({ pathParams, body, config, }?: {
1752
+ pathParams: CreateSiteDevServerHookPath;
1753
+ body: CreateSiteDevServerHookBody;
1754
+ config?: Partial<FetcherConfig> & {
1755
+ client?: typeof client;
1756
+ };
1757
+ }): Promise<CreateSiteDevServerHookStatus201>;
1758
+ /**
1759
+ * @summary Get a dev server hook
1760
+ * @link /sites/{site_id}/dev_server_hooks/{id}
1761
+ */
1762
+ declare function getSiteDevServerHook({ pathParams, config, }?: {
1763
+ pathParams: GetSiteDevServerHookPath;
1764
+ config?: Partial<FetcherConfig> & {
1765
+ client?: typeof client;
1766
+ };
1767
+ }): Promise<GetSiteDevServerHookStatus200>;
1768
+ /**
1769
+ * @summary Update a dev server hook
1770
+ * @link /sites/{site_id}/dev_server_hooks/{id}
1771
+ */
1772
+ declare function updateSiteDevServerHook({ pathParams, body, config, }?: {
1773
+ pathParams: UpdateSiteDevServerHookPath;
1774
+ body: UpdateSiteDevServerHookBody;
1775
+ config?: Partial<FetcherConfig> & {
1776
+ client?: typeof client;
1777
+ };
1778
+ }): Promise<unknown>;
1779
+ /**
1780
+ * @summary Delete a dev server hook
1781
+ * @link /sites/{site_id}/dev_server_hooks/{id}
1782
+ */
1783
+ declare function deleteSiteDevServerHook({ pathParams, config, }?: {
1784
+ pathParams: DeleteSiteDevServerHookPath;
1785
+ config?: Partial<FetcherConfig> & {
1786
+ client?: typeof client;
1787
+ };
1788
+ }): Promise<unknown>;
1789
+ /**
1790
+ * @summary List a site's agent runner hooks
1791
+ * @link /sites/{site_id}/agent_runner_hooks
1792
+ */
1793
+ declare function listSiteAgentRunnerHooks({ pathParams, config, }?: {
1794
+ pathParams: ListSiteAgentRunnerHooksPath;
1795
+ config?: Partial<FetcherConfig> & {
1796
+ client?: typeof client;
1797
+ };
1798
+ }): Promise<ListSiteAgentRunnerHooksStatus200>;
1799
+ /**
1800
+ * @summary Create an agent runner hook
1801
+ * @link /sites/{site_id}/agent_runner_hooks
1802
+ */
1803
+ declare function createSiteAgentRunnerHook({ pathParams, body, config, }?: {
1804
+ pathParams: CreateSiteAgentRunnerHookPath;
1805
+ body: CreateSiteAgentRunnerHookBody;
1806
+ config?: Partial<FetcherConfig> & {
1807
+ client?: typeof client;
1808
+ };
1809
+ }): Promise<CreateSiteAgentRunnerHookStatus201>;
1810
+ /**
1811
+ * @summary Get an agent runner hook
1812
+ * @link /sites/{site_id}/agent_runner_hooks/{id}
1813
+ */
1814
+ declare function getSiteAgentRunnerHook({ pathParams, config, }?: {
1815
+ pathParams: GetSiteAgentRunnerHookPath;
1816
+ config?: Partial<FetcherConfig> & {
1817
+ client?: typeof client;
1818
+ };
1819
+ }): Promise<GetSiteAgentRunnerHookStatus200>;
1820
+ /**
1821
+ * @summary Update an agent runner hook
1822
+ * @link /sites/{site_id}/agent_runner_hooks/{id}
1823
+ */
1824
+ declare function updateSiteAgentRunnerHook({ pathParams, body, config, }?: {
1825
+ pathParams: UpdateSiteAgentRunnerHookPath;
1826
+ body: UpdateSiteAgentRunnerHookBody;
1827
+ config?: Partial<FetcherConfig> & {
1828
+ client?: typeof client;
1829
+ };
1830
+ }): Promise<unknown>;
1831
+ /**
1832
+ * @summary Delete an agent runner hook
1833
+ * @link /sites/{site_id}/agent_runner_hooks/{id}
1834
+ */
1835
+ declare function deleteSiteAgentRunnerHook({ pathParams, config, }?: {
1836
+ pathParams: DeleteSiteAgentRunnerHookPath;
1837
+ config?: Partial<FetcherConfig> & {
1838
+ client?: typeof client;
1839
+ };
1840
+ }): Promise<unknown>;
1841
+ /**
1842
+ * @summary List AI Gateway providers and models
1843
+ * @link /ai-gateway/providers
1844
+ */
1845
+ declare function getAIGatewayProviders({ config }?: {
1846
+ config?: Partial<FetcherConfig> & {
1847
+ client?: typeof client;
1848
+ };
1849
+ }): Promise<GetAIGatewayProvidersStatus200>;
1850
+ /**
1851
+ * @summary Get a site's AI Gateway token
1852
+ * @description Returns an AI Gateway token for a specific site
1853
+ * @link /sites/{site_id}/ai-gateway/token
1854
+ */
1855
+ declare function getAIGatewayToken({ pathParams, config, }?: {
1856
+ pathParams: GetAIGatewayTokenPath;
1857
+ config?: Partial<FetcherConfig> & {
1858
+ client?: typeof client;
1859
+ };
1860
+ }): Promise<GetAIGatewayTokenStatus200>;
1861
+ /**
1862
+ * @summary Get a team's AI Gateway token
1863
+ * @description Returns an AI Gateway token scoped to an account
1864
+ * @link /accounts/{account_id}/ai-gateway/token
1865
+ */
1866
+ declare function getAccountAIGatewayToken({ pathParams, config, }?: {
1867
+ pathParams: GetAccountAIGatewayTokenPath;
1868
+ config?: Partial<FetcherConfig> & {
1869
+ client?: typeof client;
1870
+ };
1871
+ }): Promise<GetAccountAIGatewayTokenStatus200>;
1872
+ /**
1873
+ * @summary Create a site database
1874
+ * @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.
1875
+ * @link /sites/{site_id}/database
1876
+ */
1877
+ declare function createSiteDatabase({ pathParams, body, config, }?: {
1878
+ pathParams: CreateSiteDatabasePath;
1879
+ body?: CreateSiteDatabaseBody;
1880
+ config?: Partial<FetcherConfig> & {
1881
+ client?: typeof client;
1882
+ };
1883
+ }): Promise<CreateSiteDatabaseResponse>;
1884
+ /**
1885
+ * @summary Get a site database
1886
+ * @description Returns the database connection string for the specified site.
1887
+ * @link /sites/{site_id}/database
1888
+ */
1889
+ declare function getSiteDatabase({ pathParams, queryParams, config, }?: {
1890
+ pathParams: GetSiteDatabasePath;
1891
+ queryParams?: Partial<GetSiteDatabaseQuery>;
1892
+ config?: Partial<FetcherConfig> & {
1893
+ client?: typeof client;
1894
+ };
1895
+ }): Promise<GetSiteDatabaseStatus200>;
1896
+ /**
1897
+ * @summary Delete a site database
1898
+ * @description Deletes the database and all associated branches and snapshots for the specified site.
1899
+ * @link /sites/{site_id}/database
1900
+ */
1901
+ declare function deleteSiteDatabase({ pathParams, config, }?: {
1902
+ pathParams: DeleteSiteDatabasePath;
1903
+ config?: Partial<FetcherConfig> & {
1904
+ client?: typeof client;
1905
+ };
1906
+ }): Promise<unknown>;
1907
+ /**
1908
+ * @summary Create a database branch
1909
+ * @description Creates a new database branch. If a branch already exists for the specified branch ID, returns the existing connection string.
1910
+ * @link /sites/{site_id}/database/branch
1911
+ */
1912
+ declare function createSiteDatabaseBranch({ pathParams, body, config, }?: {
1913
+ pathParams: CreateSiteDatabaseBranchPath;
1914
+ body: CreateSiteDatabaseBranchBody;
1915
+ config?: Partial<FetcherConfig> & {
1916
+ client?: typeof client;
1917
+ };
1918
+ }): Promise<CreateSiteDatabaseBranchResponse>;
1919
+ /**
1920
+ * @summary List database branches
1921
+ * @description Returns all branches for the site's database with compute status and metadata.
1922
+ * @link /sites/{site_id}/database/branches
1923
+ */
1924
+ declare function listSiteDatabaseBranches({ pathParams, config, }?: {
1925
+ pathParams: ListSiteDatabaseBranchesPath;
1926
+ config?: Partial<FetcherConfig> & {
1927
+ client?: typeof client;
1928
+ };
1929
+ }): Promise<ListSiteDatabaseBranchesStatus200>;
1930
+ /**
1931
+ * @summary Get a database branch
1932
+ * @description Returns the database branch connection string for a specific branch.
1933
+ * @link /sites/{site_id}/database/branch/{branch_id}
1934
+ */
1935
+ declare function getSiteDatabaseBranch({ pathParams, queryParams, config, }?: {
1936
+ pathParams: GetSiteDatabaseBranchPath;
1937
+ queryParams?: Partial<GetSiteDatabaseBranchQuery>;
1938
+ config?: Partial<FetcherConfig> & {
1939
+ client?: typeof client;
1940
+ };
1941
+ }): Promise<GetSiteDatabaseBranchStatus200>;
1942
+ /**
1943
+ * @summary Delete a database branch
1944
+ * @description Deletes a database branch.
1945
+ * @link /sites/{site_id}/database/branch/{branch_id}
1946
+ */
1947
+ declare function deleteSiteDatabaseBranch({ pathParams, config, }?: {
1948
+ pathParams: DeleteSiteDatabaseBranchPath;
1949
+ config?: Partial<FetcherConfig> & {
1950
+ client?: typeof client;
1951
+ };
1952
+ }): Promise<unknown>;
1953
+ /**
1954
+ * @summary Reset a database branch
1955
+ * @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.
1956
+ * @link /sites/{site_id}/database/branch/{branch_id}/reset
1957
+ */
1958
+ declare function resetSiteDatabaseBranch({ pathParams, body, queryParams, config, }?: {
1959
+ pathParams: ResetSiteDatabaseBranchPath;
1960
+ body?: ResetSiteDatabaseBranchBody;
1961
+ queryParams?: Partial<ResetSiteDatabaseBranchQuery>;
1962
+ config?: Partial<FetcherConfig> & {
1963
+ client?: typeof client;
1964
+ };
1965
+ }): Promise<ResetSiteDatabaseBranchStatus200>;
1966
+ /**
1967
+ * @summary Set a database branch's compute settings
1968
+ * @description Sets compute settings for a specific database branch, overriding project-level settings. Requires a Pro or higher plan.
1969
+ * @link /sites/{site_id}/database/branch/{branch_id}/compute/settings
1970
+ */
1971
+ declare function setSiteDatabaseBranchComputeSettings({ pathParams, body, config, }?: {
1972
+ pathParams: SetSiteDatabaseBranchComputeSettingsPath;
1973
+ body: SetSiteDatabaseBranchComputeSettingsBody;
1974
+ config?: Partial<FetcherConfig> & {
1975
+ client?: typeof client;
1976
+ };
1977
+ }): Promise<SetSiteDatabaseBranchComputeSettingsStatus200>;
1978
+ /**
1979
+ * @summary Set database compute settings
1980
+ * @description Sets project-level compute settings for the database. Applied to new branches. Can be overridden per-branch. Requires a Pro or higher plan.
1981
+ * @link /sites/{site_id}/database/compute/settings
1982
+ */
1983
+ declare function setSiteDatabaseComputeSettings({ pathParams, body, config, }?: {
1984
+ pathParams: SetSiteDatabaseComputeSettingsPath;
1985
+ body: SetSiteDatabaseComputeSettingsBody;
1986
+ config?: Partial<FetcherConfig> & {
1987
+ client?: typeof client;
1988
+ };
1989
+ }): Promise<SetSiteDatabaseComputeSettingsStatus200>;
1990
+ /**
1991
+ * @summary Get database compute settings
1992
+ * @description Returns the project-level compute settings for the database. Returns effective settings (custom or tier defaults). Requires a Pro or higher plan.
1993
+ * @link /sites/{site_id}/database/compute/settings
1994
+ */
1995
+ declare function getSiteDatabaseComputeSettings({ pathParams, config, }?: {
1996
+ pathParams: GetSiteDatabaseComputeSettingsPath;
1997
+ config?: Partial<FetcherConfig> & {
1998
+ client?: typeof client;
1999
+ };
2000
+ }): Promise<GetSiteDatabaseComputeSettingsStatus200>;
2001
+ /**
2002
+ * @summary Reset database compute settings to defaults
2003
+ * @description Resets project-level compute settings to tier defaults. Requires a Pro or higher plan.
2004
+ * @link /sites/{site_id}/database/compute/settings
2005
+ */
2006
+ declare function clearSiteDatabaseComputeSettings({ pathParams, config, }?: {
2007
+ pathParams: ClearSiteDatabaseComputeSettingsPath;
2008
+ config?: Partial<FetcherConfig> & {
2009
+ client?: typeof client;
2010
+ };
2011
+ }): Promise<unknown>;
2012
+ /**
2013
+ * @summary List database migrations
2014
+ * @description Returns the list of migrations available for the specified branch, indicating which ones have been applied to the database.
2015
+ * @link /sites/{site_id}/database/migrations
2016
+ */
2017
+ declare function listSiteDatabaseMigrations({ pathParams, queryParams, config, }?: {
2018
+ pathParams: ListSiteDatabaseMigrationsPath;
2019
+ queryParams?: Partial<ListSiteDatabaseMigrationsQuery>;
2020
+ config?: Partial<FetcherConfig> & {
2021
+ client?: typeof client;
2022
+ };
2023
+ }): Promise<ListSiteDatabaseMigrationsStatus200>;
2024
+ /**
2025
+ * @summary Get a database migration
2026
+ * @description Returns the contents of a named migration for the specified branch.
2027
+ * @link /sites/{site_id}/database/migrations/{name}
2028
+ */
2029
+ declare function getSiteDatabaseMigration({ pathParams, queryParams, config, }?: {
2030
+ pathParams: GetSiteDatabaseMigrationPath;
2031
+ queryParams?: Partial<GetSiteDatabaseMigrationQuery>;
2032
+ config?: Partial<FetcherConfig> & {
2033
+ client?: typeof client;
2034
+ };
2035
+ }): Promise<GetSiteDatabaseMigrationStatus200>;
2036
+ /**
2037
+ * @summary Run database migrations for a deploy
2038
+ * @description Runs database migrations for the specified deploy. Finds the deploy and determines the appropriate branch.
2039
+ * @link /sites/{site_id}/database/migrations/{deploy_id}
2040
+ */
2041
+ declare function runSiteDatabaseMigrations({ pathParams, body, config, }?: {
2042
+ pathParams: RunSiteDatabaseMigrationsPath;
2043
+ body?: RunSiteDatabaseMigrationsBody;
2044
+ config?: Partial<FetcherConfig> & {
2045
+ client?: typeof client;
2046
+ };
2047
+ }): Promise<unknown>;
2048
+ /**
2049
+ * @summary Create a database snapshot
2050
+ * @description Creates a point-in-time snapshot of a database branch. Defaults to the production branch if no branch name is specified.
2051
+ * @link /sites/{site_id}/database/snapshot
2052
+ */
2053
+ declare function createSiteDatabaseSnapshot({ pathParams, body, config, }?: {
2054
+ pathParams: CreateSiteDatabaseSnapshotPath;
2055
+ body?: CreateSiteDatabaseSnapshotBody;
2056
+ config?: Partial<FetcherConfig> & {
2057
+ client?: typeof client;
2058
+ };
2059
+ }): Promise<CreateSiteDatabaseSnapshotStatus201>;
2060
+ /**
2061
+ * @summary List database snapshots
2062
+ * @description Returns all snapshots for the site's database.
2063
+ * @link /sites/{site_id}/database/snapshots
2064
+ */
2065
+ declare function listSiteDatabaseSnapshots({ pathParams, config, }?: {
2066
+ pathParams: ListSiteDatabaseSnapshotsPath;
2067
+ config?: Partial<FetcherConfig> & {
2068
+ client?: typeof client;
2069
+ };
2070
+ }): Promise<ListSiteDatabaseSnapshotsStatus200>;
2071
+ /**
2072
+ * @summary Delete a database snapshot
2073
+ * @description Deletes a database snapshot.
2074
+ * @link /sites/{site_id}/database/snapshot/{snapshot_id}
2075
+ */
2076
+ declare function deleteSiteDatabaseSnapshot({ pathParams, config, }?: {
2077
+ pathParams: DeleteSiteDatabaseSnapshotPath;
2078
+ config?: Partial<FetcherConfig> & {
2079
+ client?: typeof client;
2080
+ };
2081
+ }): Promise<unknown>;
2082
+ /**
2083
+ * @summary Restore a database snapshot
2084
+ * @description Restores a snapshot to a database branch. Defaults to the production branch if no branch_name is specified.
2085
+ * @link /sites/{site_id}/database/snapshot/{snapshot_id}/restore
2086
+ */
2087
+ declare function restoreSiteDatabaseSnapshot({ pathParams, body, config, }?: {
2088
+ pathParams: RestoreSiteDatabaseSnapshotPath;
2089
+ body?: RestoreSiteDatabaseSnapshotBody;
2090
+ config?: Partial<FetcherConfig> & {
2091
+ client?: typeof client;
2092
+ };
2093
+ }): Promise<unknown>;
2094
+ /**
2095
+ * @summary Update a site's build plugin
2096
+ * @description This is an internal-only endpoint.
2097
+ * @link /sites/{site_id}/plugins/{_package}
2098
+ */
2099
+ declare function updatePlugin({ pathParams, body, config, }?: {
2100
+ pathParams: UpdatePluginPath;
2101
+ body?: UpdatePluginBody;
2102
+ config?: Partial<FetcherConfig> & {
2103
+ client?: typeof client;
2104
+ };
2105
+ }): Promise<UpdatePluginStatus200>;
2106
+ declare const operationsByPath: {
2107
+ "GET /sites": typeof listSites;
2108
+ "POST /sites": typeof createSite;
2109
+ "GET /sites/{site_id}": typeof getSite;
2110
+ "PATCH /sites/{site_id}": typeof updateSite;
2111
+ "DELETE /sites/{site_id}": typeof deleteSite;
2112
+ "POST /sites/{site_id}/ssl": typeof provisionSiteTLSCertificate;
2113
+ "GET /sites/{site_id}/ssl": typeof showSiteTLSCertificate;
2114
+ "GET /sites/{site_id}/ssl/certificates": typeof getAllCertificates;
2115
+ "GET /accounts/{account_id}/env": typeof getEnvVars;
2116
+ "POST /accounts/{account_id}/env": typeof createEnvVars;
2117
+ "GET /sites/{site_id}/env": typeof getSiteEnvVars;
2118
+ "GET /accounts/{account_id}/env/{key}": typeof getEnvVar;
2119
+ "PUT /accounts/{account_id}/env/{key}": typeof updateEnvVar;
2120
+ "PATCH /accounts/{account_id}/env/{key}": typeof setEnvVarValue;
2121
+ "DELETE /accounts/{account_id}/env/{key}": typeof deleteEnvVar;
2122
+ "DELETE /accounts/{account_id}/env/{key}/value/{id}": typeof deleteEnvVarValue;
2123
+ "GET /sites/{site_id}/functions": typeof searchSiteFunctions;
2124
+ "GET /sites/{site_id}/forms": typeof listSiteForms;
2125
+ "DELETE /sites/{site_id}/forms/{form_id}": typeof deleteSiteForm;
2126
+ "GET /sites/{site_id}/submissions": typeof listSiteSubmissions;
2127
+ "GET /sites/{site_id}/files": typeof listSiteFiles;
2128
+ "GET /sites/{site_id}/assets": typeof listSiteAssets;
2129
+ "POST /sites/{site_id}/assets": typeof createSiteAsset;
2130
+ "GET /sites/{site_id}/assets/{asset_id}": typeof getSiteAssetInfo;
2131
+ "PUT /sites/{site_id}/assets/{asset_id}": typeof updateSiteAsset;
2132
+ "DELETE /sites/{site_id}/assets/{asset_id}": typeof deleteSiteAsset;
2133
+ "GET /sites/{site_id}/assets/{asset_id}/public_signature": typeof getSiteAssetPublicSignature;
2134
+ "GET /sites/{site_id}/files/{file_path}": typeof getSiteFileByPathName;
2135
+ "POST /purge": typeof purgeCache;
2136
+ "GET /sites/{site_id}/snippets": typeof listSiteSnippets;
2137
+ "POST /sites/{site_id}/snippets": typeof createSiteSnippet;
2138
+ "GET /sites/{site_id}/snippets/{snippet_id}": typeof getSiteSnippet;
2139
+ "PUT /sites/{site_id}/snippets/{snippet_id}": typeof updateSiteSnippet;
2140
+ "DELETE /sites/{site_id}/snippets/{snippet_id}": typeof deleteSiteSnippet;
2141
+ "GET /sites/{site_id}/metadata": typeof getSiteMetadata;
2142
+ "PUT /sites/{site_id}/metadata": typeof updateSiteMetadata;
2143
+ "GET /sites/{site_id}/build_hooks": typeof listSiteBuildHooks;
2144
+ "POST /sites/{site_id}/build_hooks": typeof createSiteBuildHook;
2145
+ "GET /sites/{site_id}/build_hooks/{id}": typeof getSiteBuildHook;
2146
+ "PUT /sites/{site_id}/build_hooks/{id}": typeof updateSiteBuildHook;
2147
+ "DELETE /sites/{site_id}/build_hooks/{id}": typeof deleteSiteBuildHook;
2148
+ "GET /sites/{site_id}/deploys": typeof listSiteDeploys;
2149
+ "POST /sites/{site_id}/deploys": typeof createSiteDeploy;
2150
+ "GET /sites/{site_id}/deploys/{deploy_id}": typeof getSiteDeploy;
2151
+ "PUT /sites/{site_id}/deploys/{deploy_id}": typeof updateSiteDeploy;
2152
+ "DELETE /sites/{site_id}/deploys/{deploy_id}": typeof deleteSiteDeploy;
2153
+ "POST /deploys/{deploy_id}/cancel": typeof cancelSiteDeploy;
2154
+ "POST /sites/{site_id}/deploys/{deploy_id}/restore": typeof restoreSiteDeploy;
2155
+ "GET /sites/{site_id}/builds": typeof listSiteBuilds;
2156
+ "POST /sites/{site_id}/builds": typeof createSiteBuild;
2157
+ "GET /sites/{site_id}/deployed-branches": typeof listSiteDeployedBranches;
2158
+ "PUT /sites/{site_id}/unlink_repo": typeof unlinkSiteRepo;
2159
+ "PUT /sites/{site_id}/enable": typeof enableSite;
2160
+ "PUT /sites/{site_id}/disable": typeof disableSite;
2161
+ "GET /builds/{build_id}": typeof getSiteBuild;
2162
+ "POST /builds/{build_id}/log": typeof updateSiteBuildLog;
2163
+ "POST /builds/{build_id}/start": typeof notifyBuildStart;
2164
+ "GET /{account_id}/builds/status": typeof getAccountBuildStatus;
2165
+ "GET /sites/{site_id}/dns": typeof getDNSForSite;
2166
+ "PUT /sites/{site_id}/dns": typeof configureDNSForSite;
2167
+ "PUT /sites/{site_id}/rollback": typeof rollbackSiteDeploy;
2168
+ "GET /deploys/{deploy_id}": typeof getDeploy;
2169
+ "DELETE /deploys/{deploy_id}": typeof deleteDeploy;
2170
+ "PATCH /deploys/{deploy_id}/validations_report": typeof updateDeployValidations;
2171
+ "POST /deploys/{deploy_id}/lock": typeof lockDeploy;
2172
+ "POST /deploys/{deploy_id}/unlock": typeof unlockDeploy;
2173
+ "PUT /deploys/{deploy_id}/files/{path}": typeof uploadDeployFile;
2174
+ "PUT /deploys/{deploy_id}/functions/{name}": typeof uploadDeployFunction;
2175
+ "PUT /deploys/{deploy_id}/server/{code_sha}": typeof uploadDeployServer;
2176
+ "PUT /deploys/{deploy_id}/edge_functions/{code_sha}": typeof uploadDeployEdgeFunction;
2177
+ "GET /sites/{site_id}/plugin_runs/latest": typeof getLatestPluginRuns;
2178
+ "POST /deploys/{deploy_id}/plugin_runs": typeof createPluginRun;
2179
+ "GET /forms/{form_id}/submissions": typeof listFormSubmissions;
2180
+ "GET /hooks": typeof listHooksBySiteId;
2181
+ "POST /hooks": typeof createHookBySiteId;
2182
+ "GET /hooks/{hook_id}": typeof getHook;
2183
+ "PUT /hooks/{hook_id}": typeof updateHook;
2184
+ "DELETE /hooks/{hook_id}": typeof deleteHook;
2185
+ "POST /hooks/{hook_id}/enable": typeof enableHook;
2186
+ "GET /hooks/types": typeof listHookTypes;
2187
+ "POST /oauth/tickets": typeof createTicket;
2188
+ "GET /oauth/tickets/{ticket_id}": typeof showTicket;
2189
+ "POST /oauth/tickets/{ticket_id}/exchange": typeof exchangeTicket;
2190
+ "GET /deploy_keys": typeof listDeployKeys;
2191
+ "POST /deploy_keys": typeof createDeployKey;
2192
+ "GET /deploy_keys/{key_id}": typeof getDeployKey;
2193
+ "DELETE /deploy_keys/{key_id}": typeof deleteDeployKey;
2194
+ "POST /{account_slug}/sites": typeof createSiteInTeam;
2195
+ "GET /{account_slug}/sites": typeof listSitesForAccount;
2196
+ "GET /{account_slug}/members": typeof listMembersForAccount;
2197
+ "POST /{account_slug}/members": typeof addMemberToAccount;
2198
+ "GET /{account_slug}/members/{member_id}": typeof getAccountMember;
2199
+ "PUT /{account_slug}/members/{member_id}": typeof updateAccountMember;
2200
+ "DELETE /{account_slug}/members/{member_id}": typeof removeAccountMember;
2201
+ "GET /billing/payment_methods": typeof listPaymentMethodsForUser;
2202
+ "GET /accounts/types": typeof listAccountTypesForUser;
2203
+ "GET /accounts": typeof listAccountsForUser;
2204
+ "POST /accounts": typeof createAccount;
2205
+ "GET /accounts/{account_id}": typeof getAccount;
2206
+ "PUT /accounts/{account_id}": typeof updateAccount;
2207
+ "DELETE /accounts/{account_id}": typeof cancelAccount;
2208
+ "GET /accounts/{account_id}/audit": typeof listAccountAuditEvents;
2209
+ "GET /agent_runners": typeof listAgentRunners;
2210
+ "POST /agent_runners": typeof createAgentRunner;
2211
+ "POST /sites/{site_id}/agent_runners": typeof createSiteAgentRunner;
2212
+ "POST /agent_runners/upload_url": typeof createAgentRunnerUploadUrl;
2213
+ "GET /agent_runners/{agent_runner_id}": typeof getAgentRunner;
2214
+ "PATCH /agent_runners/{agent_runner_id}": typeof updateAgentRunner;
2215
+ "DELETE /agent_runners/{agent_runner_id}": typeof deleteAgentRunner;
2216
+ "POST /agent_runners/{agent_runner_id}/stop": typeof stopAgentRunner;
2217
+ "GET /agent_runners/{agent_runner_id}/diff": typeof getAgentRunnerDiff;
2218
+ "POST /agent_runners/{agent_runner_id}/archive": typeof archiveAgentRunner;
2219
+ "POST /agent_runners/{agent_runner_id}/pull_request": typeof agentRunnerPullRequest;
2220
+ "POST /agent_runners/{agent_runner_id}/commit": typeof agentRunnerCommitToBranch;
2221
+ "GET /agent_runners/{agent_runner_id}/sessions": typeof listAgentRunnerSessions;
2222
+ "POST /agent_runners/{agent_runner_id}/sessions": typeof createAgentRunnerSession;
2223
+ "GET /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}": typeof getAgentRunnerSession;
2224
+ "PATCH /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}": typeof updateAgentRunnerSession;
2225
+ "DELETE /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}": typeof deleteAgentRunnerSession;
2226
+ "POST /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}/stop": typeof stopAgentRunnerSession;
2227
+ "POST /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}/answers": typeof answerAgentRunnerSession;
2228
+ "GET /submissions/{submission_id}": typeof listFormSubmission;
2229
+ "DELETE /submissions/{submission_id}": typeof deleteSubmission;
2230
+ "GET /sites/{site_id}/service-instances": typeof listServiceInstancesForSite;
2231
+ "POST /sites/{site_id}/services/{addon}/instances": typeof createServiceInstance;
2232
+ "GET /sites/{site_id}/services/{addon}/instances/{instance_id}": typeof showServiceInstance;
2233
+ "PUT /sites/{site_id}/services/{addon}/instances/{instance_id}": typeof updateServiceInstance;
2234
+ "DELETE /sites/{site_id}/services/{addon}/instances/{instance_id}": typeof deleteServiceInstance;
2235
+ "GET /sites/{site_id}/identity/{identity_id}/users/{user_id}": typeof getIdentityUser;
2236
+ "POST /sites/{site_id}/identity/{identity_id}/users/lookup": typeof lookupIdentityUser;
2237
+ "GET /services/": typeof getServices;
2238
+ "GET /services/{addonName}": typeof showService;
2239
+ "GET /services/{addonName}/manifest": typeof showServiceManifest;
2240
+ "GET /user": typeof getCurrentUser;
2241
+ "POST /sites/{site_id}/traffic_splits": typeof createSplitTest;
2242
+ "GET /sites/{site_id}/traffic_splits": typeof getSplitTests;
2243
+ "PUT /sites/{site_id}/traffic_splits/{split_test_id}": typeof updateSplitTest;
2244
+ "GET /sites/{site_id}/traffic_splits/{split_test_id}": typeof getSplitTest;
2245
+ "POST /sites/{site_id}/traffic_splits/{split_test_id}/publish": typeof enableSplitTest;
2246
+ "POST /sites/{site_id}/traffic_splits/{split_test_id}/unpublish": typeof disableSplitTest;
2247
+ "POST /dns_zones": typeof createDnsZone;
2248
+ "GET /dns_zones": typeof getDnsZones;
2249
+ "GET /dns_zones/{zone_id}": typeof getDnsZone;
2250
+ "DELETE /dns_zones/{zone_id}": typeof deleteDnsZone;
2251
+ "PUT /dns_zones/{zone_id}/transfer": typeof transferDnsZone;
2252
+ "GET /dns_zones/{zone_id}/dns_records": typeof getDnsRecords;
2253
+ "POST /dns_zones/{zone_id}/dns_records": typeof createDnsRecord;
2254
+ "GET /dns_zones/{zone_id}/dns_records/{dns_record_id}": typeof getIndividualDnsRecord;
2255
+ "DELETE /dns_zones/{zone_id}/dns_records/{dns_record_id}": typeof deleteDnsRecord;
2256
+ "GET /sites/{site_id}/dev_servers": typeof listSiteDevServers;
2257
+ "POST /sites/{site_id}/dev_servers": typeof createSiteDevServer;
2258
+ "DELETE /sites/{site_id}/dev_servers": typeof deleteSiteDevServers;
2259
+ "GET /sites/{site_id}/dev_servers/{dev_server_id}": typeof getSiteDevServer;
2260
+ "POST /sites/{site_id}/dev_servers/{dev_server_id}/activity": typeof markDevServerActivity;
2261
+ "POST /sites/{site_id}/dev_servers/{dev_server_id}/state": typeof updateDevServerState;
2262
+ "GET /sites/{site_id}/dev_server_hooks": typeof listSiteDevServerHooks;
2263
+ "POST /sites/{site_id}/dev_server_hooks": typeof createSiteDevServerHook;
2264
+ "GET /sites/{site_id}/dev_server_hooks/{id}": typeof getSiteDevServerHook;
2265
+ "PUT /sites/{site_id}/dev_server_hooks/{id}": typeof updateSiteDevServerHook;
2266
+ "DELETE /sites/{site_id}/dev_server_hooks/{id}": typeof deleteSiteDevServerHook;
2267
+ "GET /sites/{site_id}/agent_runner_hooks": typeof listSiteAgentRunnerHooks;
2268
+ "POST /sites/{site_id}/agent_runner_hooks": typeof createSiteAgentRunnerHook;
2269
+ "GET /sites/{site_id}/agent_runner_hooks/{id}": typeof getSiteAgentRunnerHook;
2270
+ "PUT /sites/{site_id}/agent_runner_hooks/{id}": typeof updateSiteAgentRunnerHook;
2271
+ "DELETE /sites/{site_id}/agent_runner_hooks/{id}": typeof deleteSiteAgentRunnerHook;
2272
+ "GET /ai-gateway/providers": typeof getAIGatewayProviders;
2273
+ "GET /sites/{site_id}/ai-gateway/token": typeof getAIGatewayToken;
2274
+ "GET /accounts/{account_id}/ai-gateway/token": typeof getAccountAIGatewayToken;
2275
+ "POST /sites/{site_id}/database": typeof createSiteDatabase;
2276
+ "GET /sites/{site_id}/database": typeof getSiteDatabase;
2277
+ "DELETE /sites/{site_id}/database": typeof deleteSiteDatabase;
2278
+ "POST /sites/{site_id}/database/branch": typeof createSiteDatabaseBranch;
2279
+ "GET /sites/{site_id}/database/branches": typeof listSiteDatabaseBranches;
2280
+ "GET /sites/{site_id}/database/branch/{branch_id}": typeof getSiteDatabaseBranch;
2281
+ "DELETE /sites/{site_id}/database/branch/{branch_id}": typeof deleteSiteDatabaseBranch;
2282
+ "POST /sites/{site_id}/database/branch/{branch_id}/reset": typeof resetSiteDatabaseBranch;
2283
+ "PUT /sites/{site_id}/database/branch/{branch_id}/compute/settings": typeof setSiteDatabaseBranchComputeSettings;
2284
+ "PUT /sites/{site_id}/database/compute/settings": typeof setSiteDatabaseComputeSettings;
2285
+ "GET /sites/{site_id}/database/compute/settings": typeof getSiteDatabaseComputeSettings;
2286
+ "DELETE /sites/{site_id}/database/compute/settings": typeof clearSiteDatabaseComputeSettings;
2287
+ "GET /sites/{site_id}/database/migrations": typeof listSiteDatabaseMigrations;
2288
+ "GET /sites/{site_id}/database/migrations/{name}": typeof getSiteDatabaseMigration;
2289
+ "POST /sites/{site_id}/database/migrations/{deploy_id}": typeof runSiteDatabaseMigrations;
2290
+ "POST /sites/{site_id}/database/snapshot": typeof createSiteDatabaseSnapshot;
2291
+ "GET /sites/{site_id}/database/snapshots": typeof listSiteDatabaseSnapshots;
2292
+ "DELETE /sites/{site_id}/database/snapshot/{snapshot_id}": typeof deleteSiteDatabaseSnapshot;
2293
+ "POST /sites/{site_id}/database/snapshot/{snapshot_id}/restore": typeof restoreSiteDatabaseSnapshot;
2294
+ "PUT /sites/{site_id}/plugins/{_package}": typeof updatePlugin;
2295
+ };
2296
+ declare const operationsByTag: {
2297
+ site: {
2298
+ listSites: typeof listSites;
2299
+ createSite: typeof createSite;
2300
+ getSite: typeof getSite;
2301
+ updateSite: typeof updateSite;
2302
+ deleteSite: typeof deleteSite;
2303
+ unlinkSiteRepo: typeof unlinkSiteRepo;
2304
+ enableSite: typeof enableSite;
2305
+ disableSite: typeof disableSite;
2306
+ createSiteInTeam: typeof createSiteInTeam;
2307
+ listSitesForAccount: typeof listSitesForAccount;
2308
+ };
2309
+ snicertificate: {
2310
+ provisionSiteTLSCertificate: typeof provisionSiteTLSCertificate;
2311
+ showSiteTLSCertificate: typeof showSiteTLSCertificate;
2312
+ getAllCertificates: typeof getAllCertificates;
2313
+ };
2314
+ environmentvariables: {
2315
+ getEnvVars: typeof getEnvVars;
2316
+ createEnvVars: typeof createEnvVars;
2317
+ getSiteEnvVars: typeof getSiteEnvVars;
2318
+ getEnvVar: typeof getEnvVar;
2319
+ updateEnvVar: typeof updateEnvVar;
2320
+ setEnvVarValue: typeof setEnvVarValue;
2321
+ deleteEnvVar: typeof deleteEnvVar;
2322
+ deleteEnvVarValue: typeof deleteEnvVarValue;
2323
+ };
2324
+ function: {
2325
+ searchSiteFunctions: typeof searchSiteFunctions;
2326
+ uploadDeployFunction: typeof uploadDeployFunction;
2327
+ };
2328
+ form: {
2329
+ listSiteForms: typeof listSiteForms;
2330
+ deleteSiteForm: typeof deleteSiteForm;
2331
+ };
2332
+ submission: {
2333
+ listSiteSubmissions: typeof listSiteSubmissions;
2334
+ listFormSubmissions: typeof listFormSubmissions;
2335
+ listFormSubmission: typeof listFormSubmission;
2336
+ deleteSubmission: typeof deleteSubmission;
2337
+ };
2338
+ file: {
2339
+ listSiteFiles: typeof listSiteFiles;
2340
+ getSiteFileByPathName: typeof getSiteFileByPathName;
2341
+ uploadDeployFile: typeof uploadDeployFile;
2342
+ };
2343
+ asset: {
2344
+ listSiteAssets: typeof listSiteAssets;
2345
+ createSiteAsset: typeof createSiteAsset;
2346
+ getSiteAssetInfo: typeof getSiteAssetInfo;
2347
+ updateSiteAsset: typeof updateSiteAsset;
2348
+ deleteSiteAsset: typeof deleteSiteAsset;
2349
+ };
2350
+ assetpublicsignature: {
2351
+ getSiteAssetPublicSignature: typeof getSiteAssetPublicSignature;
2352
+ };
2353
+ purge: {
2354
+ purgeCache: typeof purgeCache;
2355
+ };
2356
+ snippet: {
2357
+ listSiteSnippets: typeof listSiteSnippets;
2358
+ createSiteSnippet: typeof createSiteSnippet;
2359
+ getSiteSnippet: typeof getSiteSnippet;
2360
+ updateSiteSnippet: typeof updateSiteSnippet;
2361
+ deleteSiteSnippet: typeof deleteSiteSnippet;
2362
+ };
2363
+ metadata: {
2364
+ getSiteMetadata: typeof getSiteMetadata;
2365
+ updateSiteMetadata: typeof updateSiteMetadata;
2366
+ };
2367
+ buildhook: {
2368
+ listSiteBuildHooks: typeof listSiteBuildHooks;
2369
+ createSiteBuildHook: typeof createSiteBuildHook;
2370
+ getSiteBuildHook: typeof getSiteBuildHook;
2371
+ updateSiteBuildHook: typeof updateSiteBuildHook;
2372
+ deleteSiteBuildHook: typeof deleteSiteBuildHook;
2373
+ };
2374
+ deploy: {
2375
+ listSiteDeploys: typeof listSiteDeploys;
2376
+ createSiteDeploy: typeof createSiteDeploy;
2377
+ getSiteDeploy: typeof getSiteDeploy;
2378
+ updateSiteDeploy: typeof updateSiteDeploy;
2379
+ deleteSiteDeploy: typeof deleteSiteDeploy;
2380
+ cancelSiteDeploy: typeof cancelSiteDeploy;
2381
+ restoreSiteDeploy: typeof restoreSiteDeploy;
2382
+ rollbackSiteDeploy: typeof rollbackSiteDeploy;
2383
+ getDeploy: typeof getDeploy;
2384
+ deleteDeploy: typeof deleteDeploy;
2385
+ updateDeployValidations: typeof updateDeployValidations;
2386
+ lockDeploy: typeof lockDeploy;
2387
+ unlockDeploy: typeof unlockDeploy;
2388
+ uploadDeployServer: typeof uploadDeployServer;
2389
+ };
2390
+ build: {
2391
+ listSiteBuilds: typeof listSiteBuilds;
2392
+ createSiteBuild: typeof createSiteBuild;
2393
+ getSiteBuild: typeof getSiteBuild;
2394
+ notifyBuildStart: typeof notifyBuildStart;
2395
+ getAccountBuildStatus: typeof getAccountBuildStatus;
2396
+ };
2397
+ deployedbranch: {
2398
+ listSiteDeployedBranches: typeof listSiteDeployedBranches;
2399
+ };
2400
+ buildlogmsg: {
2401
+ updateSiteBuildLog: typeof updateSiteBuildLog;
2402
+ };
2403
+ dnszone: {
2404
+ getDNSForSite: typeof getDNSForSite;
2405
+ configureDNSForSite: typeof configureDNSForSite;
2406
+ createDnsZone: typeof createDnsZone;
2407
+ getDnsZones: typeof getDnsZones;
2408
+ getDnsZone: typeof getDnsZone;
2409
+ deleteDnsZone: typeof deleteDnsZone;
2410
+ transferDnsZone: typeof transferDnsZone;
2411
+ getDnsRecords: typeof getDnsRecords;
2412
+ createDnsRecord: typeof createDnsRecord;
2413
+ getIndividualDnsRecord: typeof getIndividualDnsRecord;
2414
+ deleteDnsRecord: typeof deleteDnsRecord;
2415
+ };
2416
+ edgefunction: {
2417
+ uploadDeployEdgeFunction: typeof uploadDeployEdgeFunction;
2418
+ };
2419
+ xInternal: {
2420
+ getLatestPluginRuns: typeof getLatestPluginRuns;
2421
+ createPluginRun: typeof createPluginRun;
2422
+ updatePlugin: typeof updatePlugin;
2423
+ };
2424
+ hook: {
2425
+ listHooksBySiteId: typeof listHooksBySiteId;
2426
+ createHookBySiteId: typeof createHookBySiteId;
2427
+ getHook: typeof getHook;
2428
+ updateHook: typeof updateHook;
2429
+ deleteHook: typeof deleteHook;
2430
+ enableHook: typeof enableHook;
2431
+ };
2432
+ hooktype: {
2433
+ listHookTypes: typeof listHookTypes;
2434
+ };
2435
+ ticket: {
2436
+ createTicket: typeof createTicket;
2437
+ showTicket: typeof showTicket;
2438
+ };
2439
+ accesstoken: {
2440
+ exchangeTicket: typeof exchangeTicket;
2441
+ };
2442
+ deploykey: {
2443
+ listDeployKeys: typeof listDeployKeys;
2444
+ createDeployKey: typeof createDeployKey;
2445
+ getDeployKey: typeof getDeployKey;
2446
+ deleteDeployKey: typeof deleteDeployKey;
2447
+ };
2448
+ member: {
2449
+ listMembersForAccount: typeof listMembersForAccount;
2450
+ addMemberToAccount: typeof addMemberToAccount;
2451
+ getAccountMember: typeof getAccountMember;
2452
+ updateAccountMember: typeof updateAccountMember;
2453
+ removeAccountMember: typeof removeAccountMember;
2454
+ };
2455
+ paymentmethod: {
2456
+ listPaymentMethodsForUser: typeof listPaymentMethodsForUser;
2457
+ };
2458
+ accounttype: {
2459
+ listAccountTypesForUser: typeof listAccountTypesForUser;
2460
+ };
2461
+ accountmembership: {
2462
+ listAccountsForUser: typeof listAccountsForUser;
2463
+ createAccount: typeof createAccount;
2464
+ getAccount: typeof getAccount;
2465
+ updateAccount: typeof updateAccount;
2466
+ cancelAccount: typeof cancelAccount;
2467
+ };
2468
+ auditlog: {
2469
+ listAccountAuditEvents: typeof listAccountAuditEvents;
2470
+ };
2471
+ agentrunner: {
2472
+ listAgentRunners: typeof listAgentRunners;
2473
+ createAgentRunner: typeof createAgentRunner;
2474
+ createSiteAgentRunner: typeof createSiteAgentRunner;
2475
+ createAgentRunnerUploadUrl: typeof createAgentRunnerUploadUrl;
2476
+ getAgentRunner: typeof getAgentRunner;
2477
+ updateAgentRunner: typeof updateAgentRunner;
2478
+ stopAgentRunner: typeof stopAgentRunner;
2479
+ getAgentRunnerDiff: typeof getAgentRunnerDiff;
2480
+ archiveAgentRunner: typeof archiveAgentRunner;
2481
+ agentRunnerPullRequest: typeof agentRunnerPullRequest;
2482
+ agentRunnerCommitToBranch: typeof agentRunnerCommitToBranch;
2483
+ };
2484
+ hiddenagentrunner: {
2485
+ deleteAgentRunner: typeof deleteAgentRunner;
2486
+ deleteAgentRunnerSession: typeof deleteAgentRunnerSession;
2487
+ };
2488
+ agentrunnersession: {
2489
+ listAgentRunnerSessions: typeof listAgentRunnerSessions;
2490
+ createAgentRunnerSession: typeof createAgentRunnerSession;
2491
+ getAgentRunnerSession: typeof getAgentRunnerSession;
2492
+ updateAgentRunnerSession: typeof updateAgentRunnerSession;
2493
+ stopAgentRunnerSession: typeof stopAgentRunnerSession;
2494
+ answerAgentRunnerSession: typeof answerAgentRunnerSession;
2495
+ };
2496
+ serviceinstance: {
2497
+ listServiceInstancesForSite: typeof listServiceInstancesForSite;
2498
+ createServiceInstance: typeof createServiceInstance;
2499
+ showServiceInstance: typeof showServiceInstance;
2500
+ updateServiceInstance: typeof updateServiceInstance;
2501
+ deleteServiceInstance: typeof deleteServiceInstance;
2502
+ };
2503
+ identityuser: {
2504
+ getIdentityUser: typeof getIdentityUser;
2505
+ lookupIdentityUser: typeof lookupIdentityUser;
2506
+ };
2507
+ service: {
2508
+ getServices: typeof getServices;
2509
+ showService: typeof showService;
2510
+ showServiceManifest: typeof showServiceManifest;
2511
+ };
2512
+ user: {
2513
+ getCurrentUser: typeof getCurrentUser;
2514
+ };
2515
+ splittest: {
2516
+ createSplitTest: typeof createSplitTest;
2517
+ getSplitTests: typeof getSplitTests;
2518
+ updateSplitTest: typeof updateSplitTest;
2519
+ getSplitTest: typeof getSplitTest;
2520
+ enableSplitTest: typeof enableSplitTest;
2521
+ disableSplitTest: typeof disableSplitTest;
2522
+ };
2523
+ devserver: {
2524
+ listSiteDevServers: typeof listSiteDevServers;
2525
+ createSiteDevServer: typeof createSiteDevServer;
2526
+ deleteSiteDevServers: typeof deleteSiteDevServers;
2527
+ getSiteDevServer: typeof getSiteDevServer;
2528
+ markDevServerActivity: typeof markDevServerActivity;
2529
+ updateDevServerState: typeof updateDevServerState;
2530
+ };
2531
+ devserverhook: {
2532
+ listSiteDevServerHooks: typeof listSiteDevServerHooks;
2533
+ createSiteDevServerHook: typeof createSiteDevServerHook;
2534
+ getSiteDevServerHook: typeof getSiteDevServerHook;
2535
+ updateSiteDevServerHook: typeof updateSiteDevServerHook;
2536
+ deleteSiteDevServerHook: typeof deleteSiteDevServerHook;
2537
+ };
2538
+ agentrunnerhook: {
2539
+ listSiteAgentRunnerHooks: typeof listSiteAgentRunnerHooks;
2540
+ createSiteAgentRunnerHook: typeof createSiteAgentRunnerHook;
2541
+ getSiteAgentRunnerHook: typeof getSiteAgentRunnerHook;
2542
+ updateSiteAgentRunnerHook: typeof updateSiteAgentRunnerHook;
2543
+ deleteSiteAgentRunnerHook: typeof deleteSiteAgentRunnerHook;
2544
+ };
2545
+ aigateway: {
2546
+ getAIGatewayProviders: typeof getAIGatewayProviders;
2547
+ getAIGatewayToken: typeof getAIGatewayToken;
2548
+ getAccountAIGatewayToken: typeof getAccountAIGatewayToken;
2549
+ };
2550
+ database: {
2551
+ createSiteDatabase: typeof createSiteDatabase;
2552
+ getSiteDatabase: typeof getSiteDatabase;
2553
+ deleteSiteDatabase: typeof deleteSiteDatabase;
2554
+ createSiteDatabaseBranch: typeof createSiteDatabaseBranch;
2555
+ listSiteDatabaseBranches: typeof listSiteDatabaseBranches;
2556
+ getSiteDatabaseBranch: typeof getSiteDatabaseBranch;
2557
+ deleteSiteDatabaseBranch: typeof deleteSiteDatabaseBranch;
2558
+ resetSiteDatabaseBranch: typeof resetSiteDatabaseBranch;
2559
+ setSiteDatabaseBranchComputeSettings: typeof setSiteDatabaseBranchComputeSettings;
2560
+ setSiteDatabaseComputeSettings: typeof setSiteDatabaseComputeSettings;
2561
+ getSiteDatabaseComputeSettings: typeof getSiteDatabaseComputeSettings;
2562
+ clearSiteDatabaseComputeSettings: typeof clearSiteDatabaseComputeSettings;
2563
+ listSiteDatabaseMigrations: typeof listSiteDatabaseMigrations;
2564
+ getSiteDatabaseMigration: typeof getSiteDatabaseMigration;
2565
+ runSiteDatabaseMigrations: typeof runSiteDatabaseMigrations;
2566
+ createSiteDatabaseSnapshot: typeof createSiteDatabaseSnapshot;
2567
+ listSiteDatabaseSnapshots: typeof listSiteDatabaseSnapshots;
2568
+ deleteSiteDatabaseSnapshot: typeof deleteSiteDatabaseSnapshot;
2569
+ restoreSiteDatabaseSnapshot: typeof restoreSiteDatabaseSnapshot;
2570
+ };
2571
+ };
2572
+ declare const tagDictionary: {
2573
+ readonly site: {
2574
+ readonly GET: readonly ["listSites", "getSite", "listSitesForAccount"];
2575
+ readonly POST: readonly ["createSite", "createSiteInTeam"];
2576
+ readonly PATCH: readonly ["updateSite"];
2577
+ readonly DELETE: readonly ["deleteSite"];
2578
+ readonly PUT: readonly ["unlinkSiteRepo", "enableSite", "disableSite"];
2579
+ };
2580
+ readonly snicertificate: {
2581
+ readonly POST: readonly ["provisionSiteTLSCertificate"];
2582
+ readonly GET: readonly ["showSiteTLSCertificate", "getAllCertificates"];
2583
+ };
2584
+ readonly environmentvariables: {
2585
+ readonly GET: readonly ["getEnvVars", "getSiteEnvVars", "getEnvVar"];
2586
+ readonly POST: readonly ["createEnvVars"];
2587
+ readonly PUT: readonly ["updateEnvVar"];
2588
+ readonly PATCH: readonly ["setEnvVarValue"];
2589
+ readonly DELETE: readonly ["deleteEnvVar", "deleteEnvVarValue"];
2590
+ };
2591
+ readonly function: {
2592
+ readonly GET: readonly ["searchSiteFunctions"];
2593
+ readonly PUT: readonly ["uploadDeployFunction"];
2594
+ };
2595
+ readonly form: {
2596
+ readonly GET: readonly ["listSiteForms"];
2597
+ readonly DELETE: readonly ["deleteSiteForm"];
2598
+ };
2599
+ readonly submission: {
2600
+ readonly GET: readonly ["listSiteSubmissions", "listFormSubmissions", "listFormSubmission"];
2601
+ readonly DELETE: readonly ["deleteSubmission"];
2602
+ };
2603
+ readonly file: {
2604
+ readonly GET: readonly ["listSiteFiles", "getSiteFileByPathName"];
2605
+ readonly PUT: readonly ["uploadDeployFile"];
2606
+ };
2607
+ readonly asset: {
2608
+ readonly GET: readonly ["listSiteAssets", "getSiteAssetInfo"];
2609
+ readonly POST: readonly ["createSiteAsset"];
2610
+ readonly PUT: readonly ["updateSiteAsset"];
2611
+ readonly DELETE: readonly ["deleteSiteAsset"];
2612
+ };
2613
+ readonly assetpublicsignature: {
2614
+ readonly GET: readonly ["getSiteAssetPublicSignature"];
2615
+ };
2616
+ readonly purge: {
2617
+ readonly POST: readonly ["purgeCache"];
2618
+ };
2619
+ readonly snippet: {
2620
+ readonly GET: readonly ["listSiteSnippets", "getSiteSnippet"];
2621
+ readonly POST: readonly ["createSiteSnippet"];
2622
+ readonly PUT: readonly ["updateSiteSnippet"];
2623
+ readonly DELETE: readonly ["deleteSiteSnippet"];
2624
+ };
2625
+ readonly metadata: {
2626
+ readonly GET: readonly ["getSiteMetadata"];
2627
+ readonly PUT: readonly ["updateSiteMetadata"];
2628
+ };
2629
+ readonly buildhook: {
2630
+ readonly GET: readonly ["listSiteBuildHooks", "getSiteBuildHook"];
2631
+ readonly POST: readonly ["createSiteBuildHook"];
2632
+ readonly PUT: readonly ["updateSiteBuildHook"];
2633
+ readonly DELETE: readonly ["deleteSiteBuildHook"];
2634
+ };
2635
+ readonly deploy: {
2636
+ readonly GET: readonly ["listSiteDeploys", "getSiteDeploy", "getDeploy"];
2637
+ readonly POST: readonly ["createSiteDeploy", "cancelSiteDeploy", "restoreSiteDeploy", "lockDeploy", "unlockDeploy"];
2638
+ readonly PUT: readonly ["updateSiteDeploy", "rollbackSiteDeploy", "uploadDeployServer"];
2639
+ readonly DELETE: readonly ["deleteSiteDeploy", "deleteDeploy"];
2640
+ readonly PATCH: readonly ["updateDeployValidations"];
2641
+ };
2642
+ readonly build: {
2643
+ readonly GET: readonly ["listSiteBuilds", "getSiteBuild", "getAccountBuildStatus"];
2644
+ readonly POST: readonly ["createSiteBuild", "notifyBuildStart"];
2645
+ };
2646
+ readonly deployedbranch: {
2647
+ readonly GET: readonly ["listSiteDeployedBranches"];
2648
+ };
2649
+ readonly buildlogmsg: {
2650
+ readonly POST: readonly ["updateSiteBuildLog"];
2651
+ };
2652
+ readonly dnszone: {
2653
+ readonly GET: readonly ["getDNSForSite", "getDnsZones", "getDnsZone", "getDnsRecords", "getIndividualDnsRecord"];
2654
+ readonly PUT: readonly ["configureDNSForSite", "transferDnsZone"];
2655
+ readonly POST: readonly ["createDnsZone", "createDnsRecord"];
2656
+ readonly DELETE: readonly ["deleteDnsZone", "deleteDnsRecord"];
2657
+ };
2658
+ readonly edgefunction: {
2659
+ readonly PUT: readonly ["uploadDeployEdgeFunction"];
2660
+ };
2661
+ readonly xInternal: {
2662
+ readonly GET: readonly ["getLatestPluginRuns"];
2663
+ readonly POST: readonly ["createPluginRun"];
2664
+ readonly PUT: readonly ["updatePlugin"];
2665
+ };
2666
+ readonly hook: {
2667
+ readonly GET: readonly ["listHooksBySiteId", "getHook"];
2668
+ readonly POST: readonly ["createHookBySiteId", "enableHook"];
2669
+ readonly PUT: readonly ["updateHook"];
2670
+ readonly DELETE: readonly ["deleteHook"];
2671
+ };
2672
+ readonly hooktype: {
2673
+ readonly GET: readonly ["listHookTypes"];
2674
+ };
2675
+ readonly ticket: {
2676
+ readonly POST: readonly ["createTicket"];
2677
+ readonly GET: readonly ["showTicket"];
2678
+ };
2679
+ readonly accesstoken: {
2680
+ readonly POST: readonly ["exchangeTicket"];
2681
+ };
2682
+ readonly deploykey: {
2683
+ readonly GET: readonly ["listDeployKeys", "getDeployKey"];
2684
+ readonly POST: readonly ["createDeployKey"];
2685
+ readonly DELETE: readonly ["deleteDeployKey"];
2686
+ };
2687
+ readonly member: {
2688
+ readonly GET: readonly ["listMembersForAccount", "getAccountMember"];
2689
+ readonly POST: readonly ["addMemberToAccount"];
2690
+ readonly PUT: readonly ["updateAccountMember"];
2691
+ readonly DELETE: readonly ["removeAccountMember"];
2692
+ };
2693
+ readonly paymentmethod: {
2694
+ readonly GET: readonly ["listPaymentMethodsForUser"];
2695
+ };
2696
+ readonly accounttype: {
2697
+ readonly GET: readonly ["listAccountTypesForUser"];
2698
+ };
2699
+ readonly accountmembership: {
2700
+ readonly GET: readonly ["listAccountsForUser", "getAccount"];
2701
+ readonly POST: readonly ["createAccount"];
2702
+ readonly PUT: readonly ["updateAccount"];
2703
+ readonly DELETE: readonly ["cancelAccount"];
2704
+ };
2705
+ readonly auditlog: {
2706
+ readonly GET: readonly ["listAccountAuditEvents"];
2707
+ };
2708
+ readonly agentrunner: {
2709
+ readonly GET: readonly ["listAgentRunners", "getAgentRunner", "getAgentRunnerDiff"];
2710
+ readonly POST: readonly ["createAgentRunner", "createSiteAgentRunner", "createAgentRunnerUploadUrl", "stopAgentRunner", "archiveAgentRunner", "agentRunnerPullRequest", "agentRunnerCommitToBranch"];
2711
+ readonly PATCH: readonly ["updateAgentRunner"];
2712
+ };
2713
+ readonly hiddenagentrunner: {
2714
+ readonly DELETE: readonly ["deleteAgentRunner", "deleteAgentRunnerSession"];
2715
+ };
2716
+ readonly agentrunnersession: {
2717
+ readonly GET: readonly ["listAgentRunnerSessions", "getAgentRunnerSession"];
2718
+ readonly POST: readonly ["createAgentRunnerSession", "stopAgentRunnerSession", "answerAgentRunnerSession"];
2719
+ readonly PATCH: readonly ["updateAgentRunnerSession"];
2720
+ };
2721
+ readonly serviceinstance: {
2722
+ readonly GET: readonly ["listServiceInstancesForSite", "showServiceInstance"];
2723
+ readonly POST: readonly ["createServiceInstance"];
2724
+ readonly PUT: readonly ["updateServiceInstance"];
2725
+ readonly DELETE: readonly ["deleteServiceInstance"];
2726
+ };
2727
+ readonly identityuser: {
2728
+ readonly GET: readonly ["getIdentityUser"];
2729
+ readonly POST: readonly ["lookupIdentityUser"];
2730
+ };
2731
+ readonly service: {
2732
+ readonly GET: readonly ["getServices", "showService", "showServiceManifest"];
2733
+ };
2734
+ readonly user: {
2735
+ readonly GET: readonly ["getCurrentUser"];
2736
+ };
2737
+ readonly splittest: {
2738
+ readonly POST: readonly ["createSplitTest", "enableSplitTest", "disableSplitTest"];
2739
+ readonly GET: readonly ["getSplitTests", "getSplitTest"];
2740
+ readonly PUT: readonly ["updateSplitTest"];
2741
+ };
2742
+ readonly devserver: {
2743
+ readonly GET: readonly ["listSiteDevServers", "getSiteDevServer"];
2744
+ readonly POST: readonly ["createSiteDevServer", "markDevServerActivity", "updateDevServerState"];
2745
+ readonly DELETE: readonly ["deleteSiteDevServers"];
2746
+ };
2747
+ readonly devserverhook: {
2748
+ readonly GET: readonly ["listSiteDevServerHooks", "getSiteDevServerHook"];
2749
+ readonly POST: readonly ["createSiteDevServerHook"];
2750
+ readonly PUT: readonly ["updateSiteDevServerHook"];
2751
+ readonly DELETE: readonly ["deleteSiteDevServerHook"];
2752
+ };
2753
+ readonly agentrunnerhook: {
2754
+ readonly GET: readonly ["listSiteAgentRunnerHooks", "getSiteAgentRunnerHook"];
2755
+ readonly POST: readonly ["createSiteAgentRunnerHook"];
2756
+ readonly PUT: readonly ["updateSiteAgentRunnerHook"];
2757
+ readonly DELETE: readonly ["deleteSiteAgentRunnerHook"];
2758
+ };
2759
+ readonly aigateway: {
2760
+ readonly GET: readonly ["getAIGatewayProviders", "getAIGatewayToken", "getAccountAIGatewayToken"];
2761
+ };
2762
+ readonly database: {
2763
+ readonly POST: readonly ["createSiteDatabase", "createSiteDatabaseBranch", "resetSiteDatabaseBranch", "runSiteDatabaseMigrations", "createSiteDatabaseSnapshot", "restoreSiteDatabaseSnapshot"];
2764
+ readonly GET: readonly ["getSiteDatabase", "listSiteDatabaseBranches", "getSiteDatabaseBranch", "getSiteDatabaseComputeSettings", "listSiteDatabaseMigrations", "getSiteDatabaseMigration", "listSiteDatabaseSnapshots"];
2765
+ readonly DELETE: readonly ["deleteSiteDatabase", "deleteSiteDatabaseBranch", "clearSiteDatabaseComputeSettings", "deleteSiteDatabaseSnapshot"];
2766
+ readonly PUT: readonly ["setSiteDatabaseBranchComputeSettings", "setSiteDatabaseComputeSettings"];
2767
+ };
2768
+ };
2769
+
2770
+ export { getSiteDeploy as $, listFormSubmissions as A, listFormSubmission as B, deleteSubmission as C, listSiteFiles as D, getSiteFileByPathName as E, uploadDeployFile as F, listSiteAssets as G, createSiteAsset as H, getSiteAssetInfo as I, updateSiteAsset as J, deleteSiteAsset as K, getSiteAssetPublicSignature as L, purgeCache as M, listSiteSnippets as N, createSiteSnippet as O, getSiteSnippet as P, updateSiteSnippet as Q, deleteSiteSnippet as R, getSiteMetadata as S, updateSiteMetadata as T, listSiteBuildHooks as U, createSiteBuildHook as V, getSiteBuildHook as W, updateSiteBuildHook as X, deleteSiteBuildHook as Y, listSiteDeploys as Z, createSiteDeploy as _, unlinkSiteRepo as a, createAgentRunnerUploadUrl as a$, updateSiteDeploy as a0, deleteSiteDeploy as a1, cancelSiteDeploy as a2, restoreSiteDeploy as a3, rollbackSiteDeploy as a4, getDeploy as a5, deleteDeploy as a6, updateDeployValidations as a7, lockDeploy as a8, unlockDeploy as a9, updateHook as aA, deleteHook as aB, enableHook as aC, listHookTypes as aD, createTicket as aE, showTicket as aF, exchangeTicket as aG, listDeployKeys as aH, createDeployKey as aI, getDeployKey as aJ, deleteDeployKey as aK, listMembersForAccount as aL, addMemberToAccount as aM, getAccountMember as aN, updateAccountMember as aO, removeAccountMember as aP, listPaymentMethodsForUser as aQ, listAccountTypesForUser as aR, listAccountsForUser as aS, createAccount as aT, getAccount as aU, updateAccount as aV, cancelAccount as aW, listAccountAuditEvents as aX, listAgentRunners as aY, createAgentRunner as aZ, createSiteAgentRunner as a_, uploadDeployServer as aa, listSiteBuilds as ab, createSiteBuild as ac, getSiteBuild as ad, notifyBuildStart as ae, getAccountBuildStatus as af, listSiteDeployedBranches as ag, updateSiteBuildLog as ah, getDNSForSite as ai, configureDNSForSite as aj, createDnsZone as ak, getDnsZones as al, getDnsZone as am, deleteDnsZone as an, transferDnsZone as ao, getDnsRecords as ap, createDnsRecord as aq, getIndividualDnsRecord as ar, deleteDnsRecord as as, uploadDeployEdgeFunction as at, getLatestPluginRuns as au, createPluginRun as av, updatePlugin as aw, listHooksBySiteId as ax, createHookBySiteId as ay, getHook as az, disableSite as b, listSiteDatabaseMigrations as b$, getAgentRunner as b0, updateAgentRunner as b1, stopAgentRunner as b2, getAgentRunnerDiff as b3, archiveAgentRunner as b4, agentRunnerPullRequest as b5, agentRunnerCommitToBranch as b6, deleteAgentRunner as b7, deleteAgentRunnerSession as b8, listAgentRunnerSessions as b9, markDevServerActivity as bA, updateDevServerState as bB, listSiteDevServerHooks as bC, createSiteDevServerHook as bD, getSiteDevServerHook as bE, updateSiteDevServerHook as bF, deleteSiteDevServerHook as bG, listSiteAgentRunnerHooks as bH, createSiteAgentRunnerHook as bI, getSiteAgentRunnerHook as bJ, updateSiteAgentRunnerHook as bK, deleteSiteAgentRunnerHook as bL, getAIGatewayProviders as bM, getAIGatewayToken as bN, getAccountAIGatewayToken as bO, createSiteDatabase as bP, getSiteDatabase as bQ, deleteSiteDatabase as bR, createSiteDatabaseBranch as bS, listSiteDatabaseBranches as bT, getSiteDatabaseBranch as bU, deleteSiteDatabaseBranch as bV, resetSiteDatabaseBranch as bW, setSiteDatabaseBranchComputeSettings as bX, setSiteDatabaseComputeSettings as bY, getSiteDatabaseComputeSettings as bZ, clearSiteDatabaseComputeSettings as b_, createAgentRunnerSession as ba, getAgentRunnerSession as bb, updateAgentRunnerSession as bc, stopAgentRunnerSession as bd, answerAgentRunnerSession as be, listServiceInstancesForSite as bf, createServiceInstance as bg, showServiceInstance as bh, updateServiceInstance as bi, deleteServiceInstance as bj, getIdentityUser as bk, lookupIdentityUser as bl, getServices as bm, showService as bn, showServiceManifest as bo, getCurrentUser as bp, createSplitTest as bq, getSplitTests as br, updateSplitTest as bs, getSplitTest as bt, enableSplitTest as bu, disableSplitTest as bv, listSiteDevServers as bw, createSiteDevServer as bx, deleteSiteDevServers as by, getSiteDevServer as bz, createSite as c, getSiteDatabaseMigration as c0, runSiteDatabaseMigrations as c1, createSiteDatabaseSnapshot as c2, listSiteDatabaseSnapshots as c3, deleteSiteDatabaseSnapshot as c4, restoreSiteDatabaseSnapshot as c5, operationsByTag as c6, tagDictionary as c7, operationsByPath as c9, deleteSite as d, enableSite as e, createSiteInTeam as f, getSite as g, listSitesForAccount as h, getAllCertificates as i, getEnvVars as j, createEnvVars as k, listSites as l, getSiteEnvVars as m, getEnvVar as n, updateEnvVar as o, provisionSiteTLSCertificate as p, setEnvVarValue as q, deleteEnvVar as r, showSiteTLSCertificate as s, deleteEnvVarValue as t, updateSite as u, searchSiteFunctions as v, uploadDeployFunction as w, listSiteForms as x, deleteSiteForm as y, listSiteSubmissions as z };
2771
+ export type { FetchImpl as c8 };
2772
+ //# sourceMappingURL=components-c1mxsnm9.d.ts.map