@spacefast/wpcloud-sdk 0.0.2

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 (59) hide show
  1. package/README.md +38 -0
  2. package/dist/fake/index.d.ts +4 -0
  3. package/dist/fake/index.d.ts.map +1 -0
  4. package/dist/fake/index.js +3 -0
  5. package/dist/fake/router.d.ts +17 -0
  6. package/dist/fake/router.d.ts.map +1 -0
  7. package/dist/fake/router.js +188 -0
  8. package/dist/fake/server.d.ts +10 -0
  9. package/dist/fake/server.d.ts.map +1 -0
  10. package/dist/fake/server.js +62 -0
  11. package/dist/fake/store.d.ts +67 -0
  12. package/dist/fake/store.d.ts.map +1 -0
  13. package/dist/fake/store.js +174 -0
  14. package/dist/generated/client/client.gen.d.ts +3 -0
  15. package/dist/generated/client/client.gen.d.ts.map +1 -0
  16. package/dist/generated/client/client.gen.js +216 -0
  17. package/dist/generated/client/index.d.ts +8 -0
  18. package/dist/generated/client/index.d.ts.map +1 -0
  19. package/dist/generated/client/index.js +5 -0
  20. package/dist/generated/client/types.gen.d.ts +125 -0
  21. package/dist/generated/client/types.gen.d.ts.map +1 -0
  22. package/dist/generated/client/types.gen.js +2 -0
  23. package/dist/generated/client/utils.gen.d.ts +39 -0
  24. package/dist/generated/client/utils.gen.d.ts.map +1 -0
  25. package/dist/generated/client/utils.gen.js +228 -0
  26. package/dist/generated/client.gen.d.ts +13 -0
  27. package/dist/generated/client.gen.d.ts.map +1 -0
  28. package/dist/generated/client.gen.js +7 -0
  29. package/dist/generated/core/auth.gen.d.ts +19 -0
  30. package/dist/generated/core/auth.gen.d.ts.map +1 -0
  31. package/dist/generated/core/auth.gen.js +14 -0
  32. package/dist/generated/core/bodySerializer.gen.d.ts +18 -0
  33. package/dist/generated/core/bodySerializer.gen.d.ts.map +1 -0
  34. package/dist/generated/core/bodySerializer.gen.js +57 -0
  35. package/dist/generated/core/params.gen.d.ts +34 -0
  36. package/dist/generated/core/params.gen.d.ts.map +1 -0
  37. package/dist/generated/core/params.gen.js +88 -0
  38. package/dist/generated/core/pathSerializer.gen.d.ts +34 -0
  39. package/dist/generated/core/pathSerializer.gen.d.ts.map +1 -0
  40. package/dist/generated/core/pathSerializer.gen.js +106 -0
  41. package/dist/generated/core/serverSentEvents.gen.d.ts +72 -0
  42. package/dist/generated/core/serverSentEvents.gen.d.ts.map +1 -0
  43. package/dist/generated/core/serverSentEvents.gen.js +131 -0
  44. package/dist/generated/core/types.gen.d.ts +79 -0
  45. package/dist/generated/core/types.gen.d.ts.map +1 -0
  46. package/dist/generated/core/types.gen.js +2 -0
  47. package/dist/generated/core/utils.gen.d.ts +15 -0
  48. package/dist/generated/core/utils.gen.d.ts.map +1 -0
  49. package/dist/generated/core/utils.gen.js +69 -0
  50. package/dist/generated/sdk.gen.d.ts +840 -0
  51. package/dist/generated/sdk.gen.d.ts.map +1 -0
  52. package/dist/generated/sdk.gen.js +2198 -0
  53. package/dist/generated/types.gen.d.ts +7970 -0
  54. package/dist/generated/types.gen.d.ts.map +1 -0
  55. package/dist/generated/types.gen.js +2 -0
  56. package/dist/runtime.d.ts +24 -0
  57. package/dist/runtime.d.ts.map +1 -0
  58. package/dist/runtime.js +486 -0
  59. package/package.json +36 -0
@@ -0,0 +1,840 @@
1
+ import { type Options as ClientOptions, type TDataShape, type Client } from "./client";
2
+ import type { PostCustomCertificatesSiteCustomCertificateIdActivateData, PostCustomCertificatesSiteCustomCertificateIdActivateResponses, PostCustomCertificatesSiteCustomCertificateIdActivateErrors, PostClientMetaClientKeyAddData, PostClientMetaClientKeyAddResponses, PostClientMetaClientKeyAddErrors, PostCrontabSiteAddData, PostCrontabSiteAddResponses, PostCrontabSiteAddErrors, PostFirewallRulesSiteAddData, PostFirewallRulesSiteAddResponses, PostFirewallRulesSiteAddErrors, PostSitePersistDataSiteData, PostSitePersistDataSiteResponses, PostSitePersistDataSiteErrors, PostSshUserServiceIdentifierAddData, PostSshUserServiceIdentifierAddResponses, PostSshUserServiceIdentifierAddErrors, PostSiteAllowSshMigrationSiteData, PostSiteAllowSshMigrationSiteResponses, PostSiteAllowSshMigrationSiteErrors, GetEdgeCacheSiteDdosUntilData, GetEdgeCacheSiteDdosUntilResponses, GetEdgeCacheSiteDdosUntilErrors, PostEdgeCacheSiteDdosUntilData, PostEdgeCacheSiteDdosUntilResponses, PostEdgeCacheSiteDdosUntilErrors, GetEdgeCacheSiteDdosUntilDomainData, GetEdgeCacheSiteDdosUntilDomainResponses, GetEdgeCacheSiteDdosUntilDomainErrors, PostEdgeCacheSiteDdosUntilDomainData, PostEdgeCacheSiteDdosUntilDomainResponses, PostEdgeCacheSiteDdosUntilDomainErrors, GetSiteConvertDbCharsetServiceIdentifierFromToData, GetSiteConvertDbCharsetServiceIdentifierFromToResponses, GetSiteConvertDbCharsetServiceIdentifierFromToErrors, PostAliasPkeySetClientCategoryNameData, PostAliasPkeySetClientCategoryNameResponses, PostAliasPkeySetClientCategoryNameErrors, PostCreateSiteClientData, PostCreateSiteClientResponses, PostCreateSiteClientErrors, PostTaskCreateClientTypeData, PostTaskCreateClientTypeResponses, PostTaskCreateClientTypeErrors, PostCustomCertificatesSiteIdDeactivateData, PostCustomCertificatesSiteIdDeactivateResponses, PostCustomCertificatesSiteIdDeactivateErrors, PostCustomCertificatesSiteIdDeleteData, PostCustomCertificatesSiteIdDeleteResponses, PostCustomCertificatesSiteIdDeleteErrors, PostDeleteSiteServiceIdentifierData, PostDeleteSiteServiceIdentifierResponses, PostDeleteSiteServiceIdentifierErrors, PostSslHstsPreloadDomainFalseData, PostSslHstsPreloadDomainFalseResponses, PostSslHstsPreloadDomainFalseErrors, PostSslInfoDomainData, PostSslInfoDomainResponses, PostSslInfoDomainErrors, GetGetAvailableDatacentersClientData, GetGetAvailableDatacentersClientResponses, GetGetAvailableDatacentersClientErrors, GetGetIpsClientData, GetGetIpsClientResponses, GetGetIpsClientErrors, GetGetIpsClientDomainData, GetGetIpsClientDomainResponses, GetGetIpsClientDomainErrors, GetClientMetaClientKeyGetData, GetClientMetaClientKeyGetResponses, GetClientMetaClientKeyGetErrors, GetCustomCertificatesSiteData, GetCustomCertificatesSiteResponses, GetCustomCertificatesSiteErrors, GetCustomCertificatesSiteIdData, GetCustomCertificatesSiteIdResponses, GetCustomCertificatesSiteIdErrors, GetGetDomainVerificationCodeClientDomainData, GetGetDomainVerificationCodeClientDomainResponses, GetGetDomainVerificationCodeClientDomainErrors, GetEdgeCacheSiteData, GetEdgeCacheSiteResponses, GetEdgeCacheSiteErrors, GetEdgeCacheSiteActionData, GetEdgeCacheSiteActionResponses, GetEdgeCacheSiteActionErrors, PostEdgeCacheSiteActionData, PostEdgeCacheSiteActionResponses, PostEdgeCacheSiteActionErrors, GetEdgeCacheSiteActionDomainData, GetEdgeCacheSiteActionDomainResponses, GetEdgeCacheSiteActionDomainErrors, PostEdgeCacheSiteActionDomainData, PostEdgeCacheSiteActionDomainResponses, PostEdgeCacheSiteActionDomainErrors, GetJobCompletionIdData, GetJobCompletionIdResponses, GetJobCompletionIdErrors, PostJobCompletionIdData, PostJobCompletionIdResponses, PostJobCompletionIdErrors, GetJobStatusData, GetJobStatusResponses, GetJobStatusErrors, PostJobStatusData, PostJobStatusResponses, PostJobStatusErrors, GetJobStatusIdData, GetJobStatusIdResponses, GetJobStatusIdErrors, PostJobStatusIdData, PostJobStatusIdResponses, PostJobStatusIdErrors, PostResponseTicketMultiStatusData, PostResponseTicketMultiStatusResponses, PostResponseTicketMultiStatusErrors, GetGetPhpVersionsClientVerboseData, GetGetPhpVersionsClientVerboseResponses, GetGetPhpVersionsClientVerboseErrors, GetAliasPkeyGetClientCategoryNameData, GetAliasPkeyGetClientCategoryNameResponses, GetAliasPkeyGetClientCategoryNameErrors, PostResponseTicketGetFullData, PostResponseTicketGetFullResponses, PostResponseTicketGetFullErrors, PostResponseTicketGetSummaryData, PostResponseTicketGetSummaryResponses, PostResponseTicketGetSummaryErrors, GetSiteBackupGetServiceIdentifierBackupIdData, GetSiteBackupGetServiceIdentifierBackupIdResponses, GetSiteBackupGetServiceIdentifierBackupIdErrors, GetSiteBackupInfoServiceIdentifierBackupIdData, GetSiteBackupInfoServiceIdentifierBackupIdResponses, GetSiteBackupInfoServiceIdentifierBackupIdErrors, GetGetSiteSiteExtraData, GetGetSiteSiteExtraResponses, GetGetSiteSiteExtraErrors, PostSiteMetricsSiteSummarizeData, PostSiteMetricsSiteSummarizeResponses, PostSiteMetricsSiteSummarizeErrors, PostSiteErrorLogsSiteData, PostSiteErrorLogsSiteResponses, PostSiteErrorLogsSiteErrors, PostSitePhpmyadminSiteData, PostSitePhpmyadminSiteResponses, PostSitePhpmyadminSiteErrors, GetGetSshUserUsernameData, GetGetSshUserUsernameResponses, GetGetSshUserUsernameErrors, PostTaskGetAtomicTaskIdData, PostTaskGetAtomicTaskIdResponses, PostTaskGetAtomicTaskIdErrors, PostMetricsTypeKeySummarizeData, PostMetricsTypeKeySummarizeResponses, PostMetricsTypeKeySummarizeErrors, PostUsageSiteData, PostUsageSiteResponses, PostUsageSiteErrors, PostSiteLogsSiteData, PostSiteLogsSiteResponses, PostSiteLogsSiteErrors, PostLogsSiteSiteData, PostLogsSiteSiteResponses, PostLogsSiteSiteErrors, PostTaskInterruptTaskIdData, PostTaskInterruptTaskIdResponses, PostTaskInterruptTaskIdErrors, GetGetSitesClientData, GetGetSitesClientResponses, GetGetSitesClientErrors, GetGetSitesClientMetaData, GetGetSitesClientMetaResponses, GetGetSitesClientMetaErrors, GetCrontabSiteListData, GetCrontabSiteListResponses, GetCrontabSiteListErrors, GetCustomCertificatesSiteListData, GetCustomCertificatesSiteListResponses, GetCustomCertificatesSiteListErrors, GetWebhookFailuresClientData, GetWebhookFailuresClientResponses, GetWebhookFailuresClientErrors, GetFirewallRulesSiteListData, GetFirewallRulesSiteListResponses, GetFirewallRulesSiteListErrors, GetAliasPkeyCategoriesClientData, GetAliasPkeyCategoriesClientResponses, GetAliasPkeyCategoriesClientErrors, PostAliasPkeyListClientCategoryData, PostAliasPkeyListClientCategoryResponses, PostAliasPkeyListClientCategoryErrors, GetSiteBackupsListServiceIdentifierData, GetSiteBackupsListServiceIdentifierResponses, GetSiteBackupsListServiceIdentifierErrors, GetSiteBackupsListServiceIdentifierBackupTypeData, GetSiteBackupsListServiceIdentifierBackupTypeResponses, GetSiteBackupsListServiceIdentifierBackupTypeErrors, GetSshUserServiceIdentifierListData, GetSshUserServiceIdentifierListResponses, GetSshUserServiceIdentifierListErrors, GetEmailBlockClientActionTypeData, GetEmailBlockClientActionTypeResponses, GetEmailBlockClientActionTypeErrors, GetClientAuthorizedKeysClientActionData, GetClientAuthorizedKeysClientActionResponses, GetClientAuthorizedKeysClientActionErrors, PostClientAuthorizedKeysClientActionData, PostClientAuthorizedKeysClientActionResponses, PostClientAuthorizedKeysClientActionErrors, GetClientAuthorizedKeysClientActionIdData, GetClientAuthorizedKeysClientActionIdResponses, GetClientAuthorizedKeysClientActionIdErrors, PostClientAuthorizedKeysClientActionIdData, PostClientAuthorizedKeysClientActionIdResponses, PostClientAuthorizedKeysClientActionIdErrors, GetSiteAliasServiceIdentifierActionData, GetSiteAliasServiceIdentifierActionResponses, GetSiteAliasServiceIdentifierActionErrors, GetSiteMetaSiteKeyActionData, GetSiteMetaSiteKeyActionResponses, GetSiteMetaSiteKeyActionErrors, PostSiteMetaSiteKeyActionData, PostSiteMetaSiteKeyActionResponses, PostSiteMetaSiteKeyActionErrors, PostSiteManageSoftwareTypeSiteData, PostSiteManageSoftwareTypeSiteResponses, PostSiteManageSoftwareTypeSiteErrors, GetSshDisconnectAllUsersServiceIdentifierData, GetSshDisconnectAllUsersServiceIdentifierResponses, GetSshDisconnectAllUsersServiceIdentifierErrors, GetClientMetaClientKeyRemoveData, GetClientMetaClientKeyRemoveResponses, GetClientMetaClientKeyRemoveErrors, PostCrontabSiteRemoveData, PostCrontabSiteRemoveResponses, PostCrontabSiteRemoveErrors, PostFirewallRulesSiteRemoveData, PostFirewallRulesSiteRemoveResponses, PostFirewallRulesSiteRemoveErrors, PostAliasPkeyRemoveClientCategoryNameData, PostAliasPkeyRemoveClientCategoryNameResponses, PostAliasPkeyRemoveClientCategoryNameErrors, GetSshUserServiceIdentifierRemoveUsernameData, GetSshUserServiceIdentifierRemoveUsernameResponses, GetSshUserServiceIdentifierRemoveUsernameErrors, PostSshUserServiceIdentifierRemoveUsernameData, PostSshUserServiceIdentifierRemoveUsernameResponses, PostSshUserServiceIdentifierRemoveUsernameErrors, PostOnDemandBackupCreateSiteTypeData, PostOnDemandBackupCreateSiteTypeResponses, PostOnDemandBackupCreateSiteTypeErrors, PostOnDemandBackupDeleteSiteBackupIdData, PostOnDemandBackupDeleteSiteBackupIdResponses, PostOnDemandBackupDeleteSiteBackupIdErrors, PostResetDbPasswordTypeSiteData, PostResetDbPasswordTypeSiteResponses, PostResetDbPasswordTypeSiteErrors, PostResetDbPasswordTypeSiteNewData, PostResetDbPasswordTypeSiteNewResponses, PostResetDbPasswordTypeSiteNewErrors, PostRestoreSiteSiteData, PostRestoreSiteSiteResponses, PostRestoreSiteSiteErrors, PostSslRetryDomainData, PostSslRetryDomainResponses, PostSslRetryDomainErrors, PostMalwareScanSiteData, PostMalwareScanSiteResponses, PostMalwareScanSiteErrors, PostCustomCertificatesSiteStageData, PostCustomCertificatesSiteStageResponses, PostCustomCertificatesSiteStageErrors, PostSslAndroidCompatDomainEnableData, PostSslAndroidCompatDomainEnableResponses, PostSslAndroidCompatDomainEnableErrors, PostSslHstsSubdomainDomainEnableData, PostSslHstsSubdomainDomainEnableResponses, PostSslHstsSubdomainDomainEnableErrors, PostSslSocialCrawlerRedirectDomainEnableData, PostSslSocialCrawlerRedirectDomainEnableResponses, PostSslSocialCrawlerRedirectDomainEnableErrors, PostCustomCertificatesSiteIdUpdateData, PostCustomCertificatesSiteIdUpdateResponses, PostCustomCertificatesSiteIdUpdateErrors, PostClientMetaClientKeyUpdateData, PostClientMetaClientKeyUpdateResponses, PostClientMetaClientKeyUpdateErrors, PostCrontabSiteUpdateCronIdData, PostCrontabSiteUpdateCronIdResponses, PostCrontabSiteUpdateCronIdErrors, PostSiteSetChrootSiteDesiredData, PostSiteSetChrootSiteDesiredResponses, PostSiteSetChrootSiteDesiredErrors, PostUpdateSiteDomainServiceIdentifierDomainData, PostUpdateSiteDomainServiceIdentifierDomainResponses, PostUpdateSiteDomainServiceIdentifierDomainErrors, PostUpdateSiteDomainServiceIdentifierDomainKeepData, PostUpdateSiteDomainServiceIdentifierDomainKeepResponses, PostUpdateSiteDomainServiceIdentifierDomainKeepErrors, PostUpdateSiteOptionsTypeSiteData, PostUpdateSiteOptionsTypeSiteResponses, PostUpdateSiteOptionsTypeSiteErrors, PostSshUserServiceIdentifierUpdateUsernameData, PostSshUserServiceIdentifierUpdateUsernameResponses, PostSshUserServiceIdentifierUpdateUsernameErrors, PostSiteWordpressVersionSiteVersionData, PostSiteWordpressVersionSiteVersionResponses, PostSiteWordpressVersionSiteVersionErrors, PostCustomCertificatesSiteValidateData, PostCustomCertificatesSiteValidateResponses, PostCustomCertificatesSiteValidateErrors, GetCheckCanHostDomainClientDomainData, GetCheckCanHostDomainClientDomainResponses, GetCheckCanHostDomainClientDomainErrors, GetSiteAliasServiceIdentifierActionDomainData, GetSiteAliasServiceIdentifierActionDomainResponses, GetSiteAliasServiceIdentifierActionDomainErrors } from "./types.gen";
3
+ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
4
+ /**
5
+ * You can provide a client instance returned by `createClient()` instead of
6
+ * individual options. This might be also useful if you want to implement a
7
+ * custom client.
8
+ */
9
+ client?: Client;
10
+ /**
11
+ * You can pass arbitrary values through the `meta` object. This can be
12
+ * used to access values that aren't defined as part of the SDK function.
13
+ */
14
+ meta?: Record<string, unknown>;
15
+ };
16
+ /**
17
+ * Activate a Staged Custom Certificate
18
+ * Activate a previously staged custom SSL certificate for use on one or more domains.
19
+ */
20
+ export declare const postCustomCertificatesSiteCustomCertificateIdActivate: <ThrowOnError extends boolean = true>(options: Options<PostCustomCertificatesSiteCustomCertificateIdActivateData, ThrowOnError>) => import("./client").RequestResult<PostCustomCertificatesSiteCustomCertificateIdActivateResponses, PostCustomCertificatesSiteCustomCertificateIdActivateErrors, ThrowOnError, "fields">;
21
+ /**
22
+ * Add Client Meta
23
+ * Add a new client meta value.
24
+ *
25
+ * Note: `max_space_quota` is read-only and cannot be added.
26
+ */
27
+ export declare const postClientMetaClientKeyAdd: <ThrowOnError extends boolean = true>(options: Options<PostClientMetaClientKeyAddData, ThrowOnError>) => import("./client").RequestResult<PostClientMetaClientKeyAddResponses, PostClientMetaClientKeyAddErrors, ThrowOnError, "fields">;
28
+ /**
29
+ * Add Cron Entry
30
+ * Adds a cron entry for a site.
31
+ *
32
+ * A cron entry runs a `command` on the site according to a given `schedule`.
33
+ *
34
+ * A `schedule` is defined using the literals `hourly`, `daily`, `twicedaily` or `weekly`. Shorthand formats are also supported, such as `2h` (twice per hour), `6d` (six times per day), and `3w` (three times per week).
35
+ *
36
+ * If the site or client supports the advanced cron feature, the `schedule` may be specified as a full crontab expression. For example, `*\/2 * * * *` runs every two minutes.
37
+ *
38
+ * The `command` is executed in an environment similar to an SSH, with utilities such as WP-CLI available. Shell scripts may be used for more complex logic or multi-step commands.
39
+ *
40
+ * There are time and concurrency limits for cron entries:
41
+ *
42
+ * - Each cron entry has a maximum runtime of 8 hours.
43
+ * - A cron entry is skipped if its previous execution has not finished.
44
+ * - Up to three cron entries can run concurrently per site, additional ones will be postponed.
45
+ *
46
+ * A webhook named `site-cron-results` is sent if execution of a cron entry fails, either by exiting with a non-zero status code or by breaching concurrency limits.
47
+ */
48
+ export declare const postCrontabSiteAdd: <ThrowOnError extends boolean = true>(options: Options<PostCrontabSiteAddData, ThrowOnError>) => import("./client").RequestResult<PostCrontabSiteAddResponses, PostCrontabSiteAddErrors, ThrowOnError, "fields">;
49
+ /**
50
+ * Add Firewall Rule
51
+ * Add a new firewall rule for a site.
52
+ */
53
+ export declare const postFirewallRulesSiteAdd: <ThrowOnError extends boolean = true>(options: Options<PostFirewallRulesSiteAddData, ThrowOnError>) => import("./client").RequestResult<PostFirewallRulesSiteAddResponses, PostFirewallRulesSiteAddErrors, ThrowOnError, "fields">;
54
+ /**
55
+ * Add Persistent Site Data
56
+ * Add or remove persistent key-value data for a site. Persistent data is preserved across site resets and clones. Parameters use PHP nested array form encoding: data[key][value]=... to set, data[key][delete]=1 to remove.
57
+ */
58
+ export declare const postSitePersistDataSite: <ThrowOnError extends boolean = true>(options: Options<PostSitePersistDataSiteData, ThrowOnError>) => import("./client").RequestResult<PostSitePersistDataSiteResponses, PostSitePersistDataSiteErrors, ThrowOnError, "fields">;
59
+ /**
60
+ * Add Site SSH/SFTP User
61
+ * Create a new SSH/SFTP user for a site. Username must be 5+ characters and not all numbers. Password behavior: omit for random password, empty string for no password (key-only auth), or provide specific password. Allowed key types: ssh-rsa (2048-16384 bits), ecdsa-sha2-nistp256 (256 bits), ssh-ed25519 (256 bits).
62
+ */
63
+ export declare const postSshUserServiceIdentifierAdd: <ThrowOnError extends boolean = true>(options: Options<PostSshUserServiceIdentifierAddData, ThrowOnError>) => import("./client").RequestResult<PostSshUserServiceIdentifierAddResponses, PostSshUserServiceIdentifierAddErrors, ThrowOnError, "fields">;
64
+ /**
65
+ * Configure a site to accept an incoming SSH migration
66
+ * Configure a site to accept an incoming SSH migration. Because an SSH migration, by default is a destructive operation (destroying existing files and database data) you must first configure a site as a migration target before creating a migration for it. In this way you must explicitly signal to us that you accept responsibility for this site and its data being deleted by a migration should one be configured for it. You cannot currently undo this operation.
67
+ */
68
+ export declare const postSiteAllowSshMigrationSite: <ThrowOnError extends boolean = true>(options: Options<PostSiteAllowSshMigrationSiteData, ThrowOnError>) => import("./client").RequestResult<PostSiteAllowSshMigrationSiteResponses, PostSiteAllowSshMigrationSiteErrors, ThrowOnError, "fields">;
69
+ /**
70
+ * Get the current Defensive Mode status.
71
+ * Fetch the current state of Defensive Mode for a site.
72
+ */
73
+ export declare const getEdgeCacheSiteDdosUntil: <ThrowOnError extends boolean = true>(options: Options<GetEdgeCacheSiteDdosUntilData, ThrowOnError>) => import("./client").RequestResult<GetEdgeCacheSiteDdosUntilResponses, GetEdgeCacheSiteDdosUntilErrors, ThrowOnError, "fields">;
74
+ /**
75
+ * Configure Defensive Mode for a site.
76
+ * Enable or disable Defensive Mode for a site.
77
+ */
78
+ export declare const postEdgeCacheSiteDdosUntil: <ThrowOnError extends boolean = true>(options: Options<PostEdgeCacheSiteDdosUntilData, ThrowOnError>) => import("./client").RequestResult<PostEdgeCacheSiteDdosUntilResponses, PostEdgeCacheSiteDdosUntilErrors, ThrowOnError, "fields">;
79
+ /**
80
+ * Get the current Defensive Mode status.
81
+ * Fetch the current state of Defensive Mode for a site.
82
+ */
83
+ export declare const getEdgeCacheSiteDdosUntilDomain: <ThrowOnError extends boolean = true>(options: Options<GetEdgeCacheSiteDdosUntilDomainData, ThrowOnError>) => import("./client").RequestResult<GetEdgeCacheSiteDdosUntilDomainResponses, GetEdgeCacheSiteDdosUntilDomainErrors, ThrowOnError, "fields">;
84
+ /**
85
+ * Configure Defensive Mode for a site.
86
+ * Enable or disable Defensive Mode for a site.
87
+ */
88
+ export declare const postEdgeCacheSiteDdosUntilDomain: <ThrowOnError extends boolean = true>(options: Options<PostEdgeCacheSiteDdosUntilDomainData, ThrowOnError>) => import("./client").RequestResult<PostEdgeCacheSiteDdosUntilDomainResponses, PostEdgeCacheSiteDdosUntilDomainErrors, ThrowOnError, "fields">;
89
+ /**
90
+ * Convert Site Database Character Set
91
+ * Convert a site's tables from a known character set to a specified one.
92
+ */
93
+ export declare const getSiteConvertDbCharsetServiceIdentifierFromTo: <ThrowOnError extends boolean = true>(options: Options<GetSiteConvertDbCharsetServiceIdentifierFromToData, ThrowOnError>) => import("./client").RequestResult<GetSiteConvertDbCharsetServiceIdentifierFromToResponses, GetSiteConvertDbCharsetServiceIdentifierFromToErrors, ThrowOnError, "fields">;
94
+ /**
95
+ * Create or Update Public Key
96
+ * Create or update, as appropriate, an aliasable public key.
97
+ *
98
+ * Assuming your client name is "foo", your category is "bar", and your name is "test-key" this endpoint will create or update the public key at the address 'pub://foo/bar?test-key'
99
+ *
100
+ * Once created you can use 'pub://foo/bar?test-key' as the value for pkey in the ssh-user endpoint and also authorized_keys_line in the client-authorized-keys endpoint. If you do then when you update the referenced key (such as changing the public key, or changing the parsed options) those changes will be immediately reflected by all ssh-user and client-authorized-keys referencing this address.
101
+ *
102
+ * Categories. Categories should be used sparingly, and for the purposes of identifying classes of keys. A good use of categories would be to differentiate between end-user, developer, support, and automation keys. A poor use of categories would be grouping by site-id at scale. Category names are arbitrary, and exist, or not, based on there being keys using them.
103
+ *
104
+ * Names. Names are arbitrary identifiers. A name does not need to make sense to us, though it is helpful when attempting to support you if they do. It is perfectly acceptable to use something like {userid}, {siteid}-{userid}, {userid}-{keynumber}, or whatever else makes sense for your desired operation. It is suggested that some form of immutable ID number or string be used in the name for your aliases to reduce possible confusion when tracking them later on.
105
+ *
106
+ * Scale. It is acceptable to use alias-pkey's for 0% of your public keys, 100% of your public keys, or anywhere in-between. The main draw for using them is updating the referenced key once updates all N references to it at the same time N being 1 is acceptable but, in our opinion, it's usually very likely that that will change at some point.
107
+ *
108
+ * Uniqueness. Keys are unique based on [client,category,name]. Therefor all of the following are completely unique: pub://client-a/employees?jennifer pub://client-a/users?jennifer pub://client-b/users?jennifer
109
+ *
110
+ * Of interest is that it is entirely valid for an ssh-user or client-authorized-key to reference an address belonging to a different client entirely. It is assumed that this will not com up often but an example use case would be for allowing atomic staff access to a site for debugging purposes.
111
+ *
112
+ * Of note is that alias-pkeys cannot reference other alias-pkeys. This may change in the future given a compelling use case but this is not currently planned and there are no known good reasons to start planning.
113
+ *
114
+ * References to an aliasable key are not tracked by atomic. As such removing an aliasable key does not remove references to that address. Likewise removing an aliasable key does not remove objects which reference its address from the system either. If a client should have a use case which requires doing such then the client should plan on tracking where those keys are referenced on their end.
115
+ */
116
+ export declare const postAliasPkeySetClientCategoryName: <ThrowOnError extends boolean = true>(options: Options<PostAliasPkeySetClientCategoryNameData, ThrowOnError>) => import("./client").RequestResult<PostAliasPkeySetClientCategoryNameResponses, PostAliasPkeySetClientCategoryNameErrors, ThrowOnError, "fields">;
117
+ /**
118
+ * Create Site
119
+ * Create a WP Cloud site with the following options.
120
+ */
121
+ export declare const postCreateSiteClient: <ThrowOnError extends boolean = true>(options?: Options<PostCreateSiteClientData, ThrowOnError>) => import("./client").RequestResult<PostCreateSiteClientResponses, PostCreateSiteClientErrors, ThrowOnError, "fields">;
122
+ /**
123
+ * Create Task
124
+ * Create a task that will iterate over all client sites.
125
+ *
126
+ * "software" : Perform changes to site software (plugins and themes).
127
+ *
128
+ * "site-find-files" : Search for files that match the provided pattern. Note that * and ? characters can be used: * will be expanded to (.*) and ? will be expanded to (.)
129
+ *
130
+ * "run-wp-cli-command" : Perform a wp-cli command. Note that the command is limited to a run time of 5 minutes and max memory usage of 1200 MB.
131
+ *
132
+ * "wpcloud-scan" : Run WP Cloud Scan checks across sites.
133
+ */
134
+ export declare const postTaskCreateClientType: <ThrowOnError extends boolean = true>(options: Options<PostTaskCreateClientTypeData, ThrowOnError>) => import("./client").RequestResult<PostTaskCreateClientTypeResponses, PostTaskCreateClientTypeErrors, ThrowOnError, "fields">;
135
+ /**
136
+ * Deactivate a Custom Certificate
137
+ * Deactivate an active custom SSL certificate. If id is omitted, the currently active certificate is deactivated.
138
+ */
139
+ export declare const postCustomCertificatesSiteIdDeactivate: <ThrowOnError extends boolean = true>(options: Options<PostCustomCertificatesSiteIdDeactivateData, ThrowOnError>) => import("./client").RequestResult<PostCustomCertificatesSiteIdDeactivateResponses, PostCustomCertificatesSiteIdDeactivateErrors, ThrowOnError, "fields">;
140
+ /**
141
+ * Delete a Custom Certificate
142
+ * Delete a custom certificate by ID. The certificate must not be active.
143
+ */
144
+ export declare const postCustomCertificatesSiteIdDelete: <ThrowOnError extends boolean = true>(options: Options<PostCustomCertificatesSiteIdDeleteData, ThrowOnError>) => import("./client").RequestResult<PostCustomCertificatesSiteIdDeleteResponses, PostCustomCertificatesSiteIdDeleteErrors, ThrowOnError, "fields">;
145
+ /**
146
+ * Delete Site
147
+ * Mark a site for deletion.
148
+ */
149
+ export declare const postDeleteSiteServiceIdentifier: <ThrowOnError extends boolean = true>(options: Options<PostDeleteSiteServiceIdentifierData, ThrowOnError>) => import("./client").RequestResult<PostDeleteSiteServiceIdentifierResponses, PostDeleteSiteServiceIdentifierErrors, ThrowOnError, "fields">;
150
+ /**
151
+ * Disable HSTS preload directive
152
+ * Disable HSTS preload directive.
153
+ */
154
+ export declare const postSslHstsPreloadDomainFalse: <ThrowOnError extends boolean = true>(options: Options<PostSslHstsPreloadDomainFalseData, ThrowOnError>) => import("./client").RequestResult<PostSslHstsPreloadDomainFalseResponses, PostSslHstsPreloadDomainFalseErrors, ThrowOnError, "fields">;
155
+ /**
156
+ * Fetch SSL Certificate Information
157
+ * Fetch SSL certificate information.
158
+ */
159
+ export declare const postSslInfoDomain: <ThrowOnError extends boolean = true>(options: Options<PostSslInfoDomainData, ThrowOnError>) => import("./client").RequestResult<PostSslInfoDomainResponses, PostSslInfoDomainErrors, ThrowOnError, "fields">;
160
+ /**
161
+ * Get Available Datacenters
162
+ * Get a list of datacenters with available (non-full, active) servers.
163
+ */
164
+ export declare const getGetAvailableDatacentersClient: <ThrowOnError extends boolean = true>(options?: Options<GetGetAvailableDatacentersClientData, ThrowOnError>) => import("./client").RequestResult<GetGetAvailableDatacentersClientResponses, GetGetAvailableDatacentersClientErrors, ThrowOnError, "fields">;
165
+ /**
166
+ * Get Client IP Addresses
167
+ * Get the IPs for a client; if a domain is included, get suggested IPs if possible for the client.
168
+ */
169
+ export declare const getGetIpsClient: <ThrowOnError extends boolean = true>(options: Options<GetGetIpsClientData, ThrowOnError>) => import("./client").RequestResult<GetGetIpsClientResponses, GetGetIpsClientErrors, ThrowOnError, "fields">;
170
+ /**
171
+ * Get Client IP Addresses
172
+ * Get the IPs for a client; if a domain is included, get suggested IPs if possible for the client.
173
+ */
174
+ export declare const getGetIpsClientDomain: <ThrowOnError extends boolean = true>(options: Options<GetGetIpsClientDomainData, ThrowOnError>) => import("./client").RequestResult<GetGetIpsClientDomainResponses, GetGetIpsClientDomainErrors, ThrowOnError, "fields">;
175
+ /**
176
+ * Get Client Meta
177
+ * Retrieve a client meta value.
178
+ *
179
+ * Note: `webhook_hmac_key` does not support the `get` method.
180
+ */
181
+ export declare const getClientMetaClientKeyGet: <ThrowOnError extends boolean = true>(options: Options<GetClientMetaClientKeyGetData, ThrowOnError>) => import("./client").RequestResult<GetClientMetaClientKeyGetResponses, GetClientMetaClientKeyGetErrors, ThrowOnError, "fields">;
182
+ /**
183
+ * Get Custom Certificate details
184
+ * Retrieve details about a custom certificate for a site. Omit the certificate ID to fetch the currently active custom certificate (if any).
185
+ */
186
+ export declare const getCustomCertificatesSite: <ThrowOnError extends boolean = true>(options: Options<GetCustomCertificatesSiteData, ThrowOnError>) => import("./client").RequestResult<GetCustomCertificatesSiteResponses, GetCustomCertificatesSiteErrors, ThrowOnError, "fields">;
187
+ /**
188
+ * Get Custom Certificate details
189
+ * Retrieve details about a custom certificate for a site. Omit the certificate ID to fetch the currently active custom certificate (if any).
190
+ */
191
+ export declare const getCustomCertificatesSiteId: <ThrowOnError extends boolean = true>(options: Options<GetCustomCertificatesSiteIdData, ThrowOnError>) => import("./client").RequestResult<GetCustomCertificatesSiteIdResponses, GetCustomCertificatesSiteIdErrors, ThrowOnError, "fields">;
192
+ /**
193
+ * Get Domain Verification Code
194
+ * Generates the domain verification code, to be used as a TXT record so that a domain can be "claimed" from another WP Cloud client.
195
+ */
196
+ export declare const getGetDomainVerificationCodeClientDomain: <ThrowOnError extends boolean = true>(options: Options<GetGetDomainVerificationCodeClientDomainData, ThrowOnError>) => import("./client").RequestResult<GetGetDomainVerificationCodeClientDomainResponses, GetGetDomainVerificationCodeClientDomainErrors, ThrowOnError, "fields">;
197
+ /**
198
+ * Get Edge Cache Settings
199
+ * Endpoint for getting a site's edge cache settings.
200
+ */
201
+ export declare const getEdgeCacheSite: <ThrowOnError extends boolean = true>(options: Options<GetEdgeCacheSiteData, ThrowOnError>) => import("./client").RequestResult<GetEdgeCacheSiteResponses, GetEdgeCacheSiteErrors, ThrowOnError, "fields">;
202
+ /**
203
+ * Get Edge Cache Settings
204
+ * Endpoint for getting a site's edge cache settings.
205
+ */
206
+ export declare const getEdgeCacheSiteAction: <ThrowOnError extends boolean = true>(options: Options<GetEdgeCacheSiteActionData, ThrowOnError>) => import("./client").RequestResult<GetEdgeCacheSiteActionResponses, GetEdgeCacheSiteActionErrors, ThrowOnError, "fields">;
207
+ /**
208
+ * Update Edge Cache Settings
209
+ * Endpoint for managing a site's edge cache settings.
210
+ */
211
+ export declare const postEdgeCacheSiteAction: <ThrowOnError extends boolean = true>(options: Options<PostEdgeCacheSiteActionData, ThrowOnError>) => import("./client").RequestResult<PostEdgeCacheSiteActionResponses, PostEdgeCacheSiteActionErrors, ThrowOnError, "fields">;
212
+ /**
213
+ * Get Edge Cache Settings
214
+ * Endpoint for getting a site's edge cache settings.
215
+ */
216
+ export declare const getEdgeCacheSiteActionDomain: <ThrowOnError extends boolean = true>(options: Options<GetEdgeCacheSiteActionDomainData, ThrowOnError>) => import("./client").RequestResult<GetEdgeCacheSiteActionDomainResponses, GetEdgeCacheSiteActionDomainErrors, ThrowOnError, "fields">;
217
+ /**
218
+ * Update Edge Cache Settings
219
+ * Endpoint for managing a site's edge cache settings.
220
+ */
221
+ export declare const postEdgeCacheSiteActionDomain: <ThrowOnError extends boolean = true>(options: Options<PostEdgeCacheSiteActionDomainData, ThrowOnError>) => import("./client").RequestResult<PostEdgeCacheSiteActionDomainResponses, PostEdgeCacheSiteActionDomainErrors, ThrowOnError, "fields">;
222
+ /**
223
+ * Get Job Status
224
+ * Get status of a job by ID. Supports getting a single job via GET with URL parameter, or multiple jobs via POST with body parameter.
225
+ */
226
+ export declare const getJobCompletionId: <ThrowOnError extends boolean = true>(options: Options<GetJobCompletionIdData, ThrowOnError>) => import("./client").RequestResult<GetJobCompletionIdResponses, GetJobCompletionIdErrors, ThrowOnError, "fields">;
227
+ /**
228
+ * Get Job Status
229
+ * Get status of a job by ID. Supports getting a single job via GET with URL parameter, or multiple jobs via POST with body parameter.
230
+ */
231
+ export declare const postJobCompletionId: <ThrowOnError extends boolean = true>(options: Options<PostJobCompletionIdData, ThrowOnError>) => import("./client").RequestResult<PostJobCompletionIdResponses, PostJobCompletionIdErrors, ThrowOnError, "fields">;
232
+ /**
233
+ * Get Job Statuses
234
+ * Get full status details of one or more jobs by ID. Returns complete job object including status, data, and metadata.
235
+ */
236
+ export declare const getJobStatus: <ThrowOnError extends boolean = true>(options?: Options<GetJobStatusData, ThrowOnError>) => import("./client").RequestResult<GetJobStatusResponses, GetJobStatusErrors, ThrowOnError, "fields">;
237
+ /**
238
+ * Get Job Statuses
239
+ * Get full status details of one or more jobs by ID. Returns complete job object including status, data, and metadata.
240
+ */
241
+ export declare const postJobStatus: <ThrowOnError extends boolean = true>(options?: Options<PostJobStatusData, ThrowOnError>) => import("./client").RequestResult<PostJobStatusResponses, PostJobStatusErrors, ThrowOnError, "fields">;
242
+ /**
243
+ * Get Job Statuses
244
+ * Get full status details of one or more jobs by ID. Returns complete job object including status, data, and metadata.
245
+ */
246
+ export declare const getJobStatusId: <ThrowOnError extends boolean = true>(options: Options<GetJobStatusIdData, ThrowOnError>) => import("./client").RequestResult<GetJobStatusIdResponses, GetJobStatusIdErrors, ThrowOnError, "fields">;
247
+ /**
248
+ * Get Job Statuses
249
+ * Get full status details of one or more jobs by ID. Returns complete job object including status, data, and metadata.
250
+ */
251
+ export declare const postJobStatusId: <ThrowOnError extends boolean = true>(options: Options<PostJobStatusIdData, ThrowOnError>) => import("./client").RequestResult<PostJobStatusIdResponses, PostJobStatusIdErrors, ThrowOnError, "fields">;
252
+ /**
253
+ * Get Multiple Response Ticket Statuses
254
+ * Retrieve the current status of multiple response tickets in a single request. Requires the "response-ticket/multi-status" extended endpoint authorization.
255
+ */
256
+ export declare const postResponseTicketMultiStatus: <ThrowOnError extends boolean = true>(options?: Options<PostResponseTicketMultiStatusData, ThrowOnError>) => import("./client").RequestResult<PostResponseTicketMultiStatusResponses, PostResponseTicketMultiStatusErrors, ThrowOnError, "fields">;
257
+ /**
258
+ * Get PHP Versions
259
+ * Get a list of available PHP versions, in either simplified (default) or verbose format.
260
+ */
261
+ export declare const getGetPhpVersionsClientVerbose: <ThrowOnError extends boolean = true>(options?: Options<GetGetPhpVersionsClientVerboseData, ThrowOnError>) => import("./client").RequestResult<GetGetPhpVersionsClientVerboseResponses, GetGetPhpVersionsClientVerboseErrors, ThrowOnError, "fields">;
262
+ /**
263
+ * Get Public Key
264
+ * Retrieve a single aliasable public key.
265
+ */
266
+ export declare const getAliasPkeyGetClientCategoryName: <ThrowOnError extends boolean = true>(options: Options<GetAliasPkeyGetClientCategoryNameData, ThrowOnError>) => import("./client").RequestResult<GetAliasPkeyGetClientCategoryNameResponses, GetAliasPkeyGetClientCategoryNameErrors, ThrowOnError, "fields">;
267
+ /**
268
+ * Get Response Ticket Details
269
+ * Retrieve all data for the response ticket including all messages.
270
+ */
271
+ export declare const postResponseTicketGetFull: <ThrowOnError extends boolean = true>(options?: Options<PostResponseTicketGetFullData, ThrowOnError>) => import("./client").RequestResult<PostResponseTicketGetFullResponses, PostResponseTicketGetFullErrors, ThrowOnError, "fields">;
272
+ /**
273
+ * Get Response Ticket Summary
274
+ * Retrieve metadata about the response ticket.
275
+ */
276
+ export declare const postResponseTicketGetSummary: <ThrowOnError extends boolean = true>(options?: Options<PostResponseTicketGetSummaryData, ThrowOnError>) => import("./client").RequestResult<PostResponseTicketGetSummaryResponses, PostResponseTicketGetSummaryErrors, ThrowOnError, "fields">;
277
+ /**
278
+ * Get Site Backup Data
279
+ * Download a site's filesystem or database backup.
280
+ *
281
+ * The response body is the raw backup blob, not a JSON envelope. The exact bytes and headers depend on the backup `type` returned by `site-backup-info` and `site-backups-list`:
282
+ *
283
+ * - `fs` and `ondemand-fs`: `Content-Type: application/octet-stream`, no `Content-Encoding`. Body is a bzip2-compressed tar archive. Recommended filename: `<site_id>-<backup_id>-fs.tar.bz2`.
284
+ * - `db` and `ondemand-db`: `Content-Type: application/sql`, always returned with `Content-Encoding: gzip` regardless of the request's `Accept-Encoding`. Body on the wire is a gzip-compressed MySQL dump. Recommended filename: `<site_id>-<backup_id>-db.sql.gz` for the raw bytes, or `<site_id>-<backup_id>-db.sql` if the client decompresses in transit.
285
+ * - `ondemand` (legacy): inspect `type` via `site-backup-info` and follow the row above that matches the actual contents.
286
+ *
287
+ * Because DB downloads include `Content-Encoding: gzip` unconditionally, clients that honor the header (browsers, `curl --compressed`, most HTTP libraries with default settings) will deliver plain SQL text to disk, while clients that ignore it (default `curl -o file`, `wget` without `--compressed`) will deliver gzip-compressed bytes. The response is identical; only client handling differs. For byte-exact downloads, send `Accept-Encoding: identity` and avoid client-side auto-decompression flags such as `curl --compressed`.
288
+ *
289
+ * `Content-Disposition` is not set on either response, so callers must choose the filename and extension. `Accept-Ranges: bytes` is honored, which is useful for resuming the multi-GB filesystem downloads.
290
+ *
291
+ * When proxying the response to an end user, stream the body straight through without buffering -- FS backups can exceed several gigabytes. Decide deliberately whether to forward the upstream `Content-Encoding: gzip` to the end user (and serve `.sql.gz`) or decompress server-side first (and serve `.sql`).
292
+ */
293
+ export declare const getSiteBackupGetServiceIdentifierBackupId: <ThrowOnError extends boolean = true>(options: Options<GetSiteBackupGetServiceIdentifierBackupIdData, ThrowOnError>) => import("./client").RequestResult<GetSiteBackupGetServiceIdentifierBackupIdResponses, GetSiteBackupGetServiceIdentifierBackupIdErrors, ThrowOnError, "fields">;
294
+ /**
295
+ * Get Site Backup Details
296
+ * Get the details for a single backup.
297
+ *
298
+ * Pass the returned `atomic_backup_id` (with its `type`) to `site-backup-get` to download the backup. The `type` determines the response format and recommended filename -- see `site-backup-get` for the per-type format details.
299
+ */
300
+ export declare const getSiteBackupInfoServiceIdentifierBackupId: <ThrowOnError extends boolean = true>(options: Options<GetSiteBackupInfoServiceIdentifierBackupIdData, ThrowOnError>) => import("./client").RequestResult<GetSiteBackupInfoServiceIdentifierBackupIdResponses, GetSiteBackupInfoServiceIdentifierBackupIdErrors, ThrowOnError, "fields">;
301
+ /**
302
+ * Get Site Details
303
+ * Get site details by site ID or domain name.
304
+ */
305
+ export declare const getGetSiteSiteExtra: <ThrowOnError extends boolean = true>(options: Options<GetGetSiteSiteExtraData, ThrowOnError>) => import("./client").RequestResult<GetGetSiteSiteExtraResponses, GetGetSiteSiteExtraErrors, ThrowOnError, "fields">;
306
+ /**
307
+ * Get Site Metrics
308
+ * Get time series metrics from a site.
309
+ *
310
+ * **NOTE:** This endpoint is deprecated in favor of /metrics.
311
+ */
312
+ export declare const postSiteMetricsSiteSummarize: <ThrowOnError extends boolean = true>(options: Options<PostSiteMetricsSiteSummarizeData, ThrowOnError>) => import("./client").RequestResult<PostSiteMetricsSiteSummarizeResponses, PostSiteMetricsSiteSummarizeErrors, ThrowOnError, "fields">;
313
+ /**
314
+ * Get Site PHP Error Logs
315
+ * Get PHP error log data from a site. Logs are only guaranteed for 28 days; a start timestamp before that may return incomplete data.
316
+ */
317
+ export declare const postSiteErrorLogsSite: <ThrowOnError extends boolean = true>(options: Options<PostSiteErrorLogsSiteData, ThrowOnError>) => import("./client").RequestResult<PostSiteErrorLogsSiteResponses, PostSiteErrorLogsSiteErrors, ThrowOnError, "fields">;
318
+ /**
319
+ * Get Site phpMyAdmin URL
320
+ * Get a time-limited URL for accessing a site's database via phpMyAdmin.
321
+ */
322
+ export declare const postSitePhpmyadminSite: <ThrowOnError extends boolean = true>(options: Options<PostSitePhpmyadminSiteData, ThrowOnError>) => import("./client").RequestResult<PostSitePhpmyadminSiteResponses, PostSitePhpmyadminSiteErrors, ThrowOnError, "fields">;
323
+ /**
324
+ * Get SSH User Details
325
+ * Retrieve details for an SSH/SFTP user including site ID and timestamps. Validates that the requesting client has access to the user's site.
326
+ */
327
+ export declare const getGetSshUserUsername: <ThrowOnError extends boolean = true>(options: Options<GetGetSshUserUsernameData, ThrowOnError>) => import("./client").RequestResult<GetGetSshUserUsernameResponses, GetGetSshUserUsernameErrors, ThrowOnError, "fields">;
328
+ /**
329
+ * Get Task Details
330
+ * Get the details of a task.
331
+ */
332
+ export declare const postTaskGetAtomicTaskId: <ThrowOnError extends boolean = true>(options: Options<PostTaskGetAtomicTaskIdData, ThrowOnError>) => import("./client").RequestResult<PostTaskGetAtomicTaskIdResponses, PostTaskGetAtomicTaskIdErrors, ThrowOnError, "fields">;
333
+ /**
334
+ * Get Time Series Metrics
335
+ * Get time series metrics.
336
+ *
337
+ * This endpoint queries a time series database and returns metrics that correspond to a site or client. Each metric can be further analyzed by specifying a dimension to segment the metric data on for sub analysis. In the API response an array of time periods are returned with each array item containing a `timestamp` field that specifies the start time of the span of time that the metric is reported for. The number of seconds for the span is given by the `data._meta.resolution` field in the response.
338
+ *
339
+ * We support up to a 10 second resolution for recent data and metrics are downsampled into larger and larger minimum resolutions as time passes. Querying for a shorter and more recent time span will yield higher resolution data. Both longer time spans (longer time between the `start` and `end` parameters) as well as queries for older metrics data will result in lower resolution response data.
340
+ *
341
+ * This endpoint supports returning multiple metrics per 1 dimension or up to 5 dimensions per 1 metric. By passing an array of metrics or dimensions to the metric and dimension field respectively.
342
+ *
343
+ * Metrics can be pulled from multiple sources. Based on the Source different dimensions are available for segmentation. The API will respond with a 400 response if invalid metric, dimensions combinations are requested.
344
+ *
345
+ * Supported metrics and dimensions to report are:
346
+ *
347
+ * Edge Logs metrics
348
+ * - `requests` - Number of requests
349
+ * - `requests_persec` - Number of requests per second.
350
+ * - `response_bytes` - Bandwidth consumed for all responses in bytes.
351
+ * - `response_bytes_persec` - Bandwidth consumed for all responses in bytes per second.
352
+ * - `response_bytes_average` - Average number of bytes of each response.
353
+ * - `response_time_average` - (Default) Average response time of each response.
354
+ *
355
+ * Edge Logs dimensions:
356
+ * - `server_protocol` - Protocol version used by the client.
357
+ * - `request_method` - Type of request made. (GET, POST, etc.)
358
+ * - `http_host` - (Default) Hostname of the request.
359
+ * - `http_status` - HTTP status code of the response.
360
+ * - `http_user_agent` - HTTP User Agent of the request
361
+ * - `referer_domain` - Referer Domain of the request
362
+ * - `page_renderer` - The backend that handled the request (PHP, static file, etc.)
363
+ * - `page_is_cached` - If the response page came from cache.
364
+ * - `wp_admin_ajax_action` - For requests to the WP admin AJAX endpoint, which action was specified.
365
+ * - `visitor_asn` - The ASN that the request came from.
366
+ * - `visitor_country_code` - The country the request came from according to GeoIP.
367
+ * - `visitor_is_crawler` - If the visitor appears to be an automated bot or crawler.
368
+ * - `visitor_device_type` - The detected device that the request came from.
369
+ * - `visitor_browser` - The detected browser that the request came from.
370
+ * - `visitor_os` - The detected os that the request came from.
371
+ * - `visitor_is_logged_in` - If the visitor appears to be logged in.
372
+ * - `edge_cache_status` - Request Status from Edge.
373
+ * - `is_rate_limited` - If the request was rate limited.
374
+ * - `rate_limit_reason` - Reason for the request to be limited.
375
+ * - `datacenter` - Datacenter that processed the request
376
+ * - `path` - Request path/url without query string
377
+ * - `remote_address` - IP that the request was issued from.
378
+ * - `atomic_site_id` - WP Cloud Site ID associated with the request
379
+ * - `proxy_type` - Type of proxy server that the request came from.
380
+ *
381
+ * PHP Logs metrics
382
+ * - `php_cpu_time` - Total CPU time.
383
+ * - `php_cpu_time_persec` - CPU time per second.
384
+ * - `php_response_time` - Total response time.
385
+ * - `php_requests` - Number of requests .
386
+ * - `php_requests_persec` - Number of requests per second.
387
+ * - `php_workers_average` - Average number of php workers in use.
388
+ * - `php_workers_min` - Minimum number of php workers in use.
389
+ * - `php_workers_max` - Maximum number of php workers in use.
390
+ * - `php_request_burst_percentage` - Percentage of requests in burst mode
391
+ * - `php_request_limited_percentage` - Percentage of requests that were limited from burst mode.
392
+ * - `php_request_normal_percentage` - Percentage of requests that were not in burst mode.
393
+ *
394
+ * PHP logs dimensions:
395
+ * - `http_verb` - Type of request made. (GET, POST, etc.)
396
+ * - `http_host` - Hostname of the request
397
+ * - `datacenter` - Datacenter that processed the request
398
+ * - `atomic_site_id` - WP Cloud Site ID associated with the request
399
+ * - `burst_status` - Request Burst Status [BURST, LIMITED, -]
400
+ *
401
+ * Uniques and Views metrics (aggregated from edge available as daily stat)
402
+ * - `uniques` - Number of unique visitors
403
+ * - `views` - Number of page views
404
+ *
405
+ * Uniques and Views dimensions:
406
+ * - `hostname` - Hostname.
407
+ *
408
+ * MySQL UserStats metrics
409
+ * - `mysql_total_connections` - number of connections.
410
+ * - `mysql_concurrent_connections` - number of concurrent connections.
411
+ * - `mysql_connected_time` - cumulative number of seconds elapsed while there were connections
412
+ * - `mysql_busy_time` - cumulative number of seconds there was activity on connections
413
+ * - `mysql_cpu_time` - cumulative CPU time elapsed, in seconds, while servicing connections
414
+ * - `mysql_bytes_received` - number of bytes received
415
+ * - `mysql_bytes_sent` - number of bytes sent
416
+ * - `mysql_binlog_bytes_written` - number of bytes written to the binary log
417
+ * - `mysql_rows_read` - number of rows read from tables
418
+ * - `mysql_rows_sent` - number of rows sent to tables
419
+ * - `mysql_rows_deleted` - number of rows deleted from tables
420
+ * - `mysql_rows_inserted` - number of rows inserted to tables
421
+ * - `mysql_rows_updated` - number of rows updated in tables
422
+ * - `mysql_select_commands` - number of SELECT commands executed
423
+ * - `mysql_update_commands` - number of UPDATE commands executed
424
+ * - `mysql_other_commands` - number of OTHER commands executed
425
+ * - `mysql_commit_transactions` - number of COMMIT commands issued
426
+ * - `mysql_rollback_transactions` - number of ROLLBACK commands issued
427
+ * - `mysql_denied_connections` - number of connections denied
428
+ * - `mysql_lost_connections` - number of connections that were terminated uncleanly
429
+ * - `mysql_access_denied` - number of issued commands that were denied.
430
+ * - `mysql_empty_queries` - number of empty queries.
431
+ * - `mysql_total_ssl_connections` - number of thread connections that used SSL.
432
+ * - `mysql_max_statement_time_exceeded` - number of times a query has exceeded the maximum execution time
433
+ *
434
+ * All mysql metrics have _persec variants.
435
+ *
436
+ * MySQL Userstats dimensions:
437
+ * - `pool` - Pool Number
438
+ * - `server` - Server Name
439
+ * - `atomic_site_id` - WP Cloud Site ID
440
+ *
441
+ * CGroup Userstats metrics:
442
+ * - `cgroup_cpu_usage` - PHP CPU usage
443
+ * - `cgroup_cpu_usage_persec` - PHP CPU usage per second
444
+ *
445
+ * CGroup Userstats dimensions:
446
+ * - `pool` - Pool Number
447
+ * - `server` - Server Name
448
+ * - `atomic_site_id` - WP Cloud Site ID
449
+ */
450
+ export declare const postMetricsTypeKeySummarize: <ThrowOnError extends boolean = true>(options: Options<PostMetricsTypeKeySummarizeData, ThrowOnError>) => import("./client").RequestResult<PostMetricsTypeKeySummarizeResponses, PostMetricsTypeKeySummarizeErrors, ThrowOnError, "fields">;
451
+ /**
452
+ * Get Time Series Usage Data
453
+ * Get the usage data of a site.
454
+ *
455
+ * This endpoint queries a time series database and returns usage data for a site. Usage data includes: compute, bandwidth, email and storage.
456
+ *
457
+ * Note on Supported Resolutions and periods:
458
+ * - `hour` - Available for periods spanning 3 days up to 7 days ago
459
+ * - `day` - Available for periods spanning 31 days up to 2 months ago
460
+ * - `month` - Available for periods up to 2 years ago
461
+ *
462
+ * Forecast Usage:
463
+ *
464
+ * Day and Month resolution usage forecasts are available up to end of the current month. The forecast is generated from the 7-day rolling average of hourly usage and will not capture spikes in usage from sales, advertising or breaking news.
465
+ */
466
+ export declare const postUsageSite: <ThrowOnError extends boolean = true>(options: Options<PostUsageSiteData, ThrowOnError>) => import("./client").RequestResult<PostUsageSiteResponses, PostUsageSiteErrors, ThrowOnError, "fields">;
467
+ /**
468
+ * Get Web Server Logs
469
+ * Get web server (nginx) log data from a site. Logs are only guaranteed for 28 days; a start timestamp before that may return incomplete data.
470
+ */
471
+ export declare const postSiteLogsSite: <ThrowOnError extends boolean = true>(options: Options<PostSiteLogsSiteData, ThrowOnError>) => import("./client").RequestResult<PostSiteLogsSiteResponses, PostSiteLogsSiteErrors, ThrowOnError, "fields">;
472
+ /**
473
+ * Get Web Server Logs for a Site
474
+ * Get web server (nginx) log data for a site. Logs are only guaranteed for 28 days; a start timestamp before that may return incomplete data.
475
+ */
476
+ export declare const postLogsSiteSite: <ThrowOnError extends boolean = true>(options: Options<PostLogsSiteSiteData, ThrowOnError>) => import("./client").RequestResult<PostLogsSiteSiteResponses, PostLogsSiteSiteErrors, ThrowOnError, "fields">;
477
+ /**
478
+ * Interrupt Task
479
+ * Interrupt an incomplete task.
480
+ */
481
+ export declare const postTaskInterruptTaskId: <ThrowOnError extends boolean = true>(options: Options<PostTaskInterruptTaskIdData, ThrowOnError>) => import("./client").RequestResult<PostTaskInterruptTaskIdResponses, PostTaskInterruptTaskIdErrors, ThrowOnError, "fields">;
482
+ /**
483
+ * List Client Sites
484
+ * List a client's sites, generally for auditing purposes.
485
+ *
486
+ * Additional site meta keys can be added to the output by specifying them at the end of the endpoint URI separated by '/'. For example, `/get-sites/:client/php_version` would add each site's `php_version` to the output.
487
+ *
488
+ * The following additional site meta keys are supported:
489
+ * - `wp_version`
490
+ * - `php_version`
491
+ * - `space_quota`
492
+ * - `db_file_size`
493
+ * - `static_file_404`
494
+ * - `suspended`
495
+ * - `suspend_after`
496
+ * - `burst_php_conns`
497
+ * - `default_php_conns`
498
+ * - `php_memory_limit`
499
+ * - `opcache_memory_limit_mb`
500
+ * - `chroot_path`
501
+ * - `chroot_ssh_path`
502
+ * - `_data`
503
+ */
504
+ export declare const getGetSitesClient: <ThrowOnError extends boolean = true>(options: Options<GetGetSitesClientData, ThrowOnError>) => import("./client").RequestResult<GetGetSitesClientResponses, GetGetSitesClientErrors, ThrowOnError, "fields">;
505
+ /**
506
+ * List Client Sites
507
+ * List a client's sites, generally for auditing purposes.
508
+ *
509
+ * Additional site meta keys can be added to the output by specifying them at the end of the endpoint URI separated by '/'. For example, `/get-sites/:client/php_version` would add each site's `php_version` to the output.
510
+ *
511
+ * The following additional site meta keys are supported:
512
+ * - `wp_version`
513
+ * - `php_version`
514
+ * - `space_quota`
515
+ * - `db_file_size`
516
+ * - `static_file_404`
517
+ * - `suspended`
518
+ * - `suspend_after`
519
+ * - `burst_php_conns`
520
+ * - `default_php_conns`
521
+ * - `php_memory_limit`
522
+ * - `opcache_memory_limit_mb`
523
+ * - `chroot_path`
524
+ * - `chroot_ssh_path`
525
+ * - `_data`
526
+ */
527
+ export declare const getGetSitesClientMeta: <ThrowOnError extends boolean = true>(options: Options<GetGetSitesClientMetaData, ThrowOnError>) => import("./client").RequestResult<GetGetSitesClientMetaResponses, GetGetSitesClientMetaErrors, ThrowOnError, "fields">;
528
+ /**
529
+ * List Cron Entries
530
+ * Returns a list of cron entries for a site.
531
+ */
532
+ export declare const getCrontabSiteList: <ThrowOnError extends boolean = true>(options: Options<GetCrontabSiteListData, ThrowOnError>) => import("./client").RequestResult<GetCrontabSiteListResponses, GetCrontabSiteListErrors, ThrowOnError, "fields">;
533
+ /**
534
+ * List Custom Certificates
535
+ * List custom SSL certificates, with optional filtering and pagination.
536
+ */
537
+ export declare const getCustomCertificatesSiteList: <ThrowOnError extends boolean = true>(options: Options<GetCustomCertificatesSiteListData, ThrowOnError>) => import("./client").RequestResult<GetCustomCertificatesSiteListResponses, GetCustomCertificatesSiteListErrors, ThrowOnError, "fields">;
538
+ /**
539
+ * List Failed Webhook Jobs
540
+ * Lists recent failed webhook jobs for a client.
541
+ */
542
+ export declare const getWebhookFailuresClient: <ThrowOnError extends boolean = true>(options: Options<GetWebhookFailuresClientData, ThrowOnError>) => import("./client").RequestResult<GetWebhookFailuresClientResponses, GetWebhookFailuresClientErrors, ThrowOnError, "fields">;
543
+ /**
544
+ * List Firewall Rules
545
+ * Get a list of firewall rules for a site.
546
+ */
547
+ export declare const getFirewallRulesSiteList: <ThrowOnError extends boolean = true>(options: Options<GetFirewallRulesSiteListData, ThrowOnError>) => import("./client").RequestResult<GetFirewallRulesSiteListResponses, GetFirewallRulesSiteListErrors, ThrowOnError, "fields">;
548
+ /**
549
+ * List Public Key Categories
550
+ * Enumerate your category list.
551
+ */
552
+ export declare const getAliasPkeyCategoriesClient: <ThrowOnError extends boolean = true>(options: Options<GetAliasPkeyCategoriesClientData, ThrowOnError>) => import("./client").RequestResult<GetAliasPkeyCategoriesClientResponses, GetAliasPkeyCategoriesClientErrors, ThrowOnError, "fields">;
553
+ /**
554
+ * List Public Keys
555
+ * Enumerate your aliasable public keys, 1000 records at a time.
556
+ */
557
+ export declare const postAliasPkeyListClientCategory: <ThrowOnError extends boolean = true>(options: Options<PostAliasPkeyListClientCategoryData, ThrowOnError>) => import("./client").RequestResult<PostAliasPkeyListClientCategoryResponses, PostAliasPkeyListClientCategoryErrors, ThrowOnError, "fields">;
558
+ /**
559
+ * List Site Backups
560
+ * Get a list of backups for a site.
561
+ *
562
+ * Pass the returned `atomic_backup_id` (with its `type`) to `site-backup-get` to download a backup. The `type` determines the response format and recommended filename -- see `site-backup-get` for the per-type format details.
563
+ */
564
+ export declare const getSiteBackupsListServiceIdentifier: <ThrowOnError extends boolean = true>(options: Options<GetSiteBackupsListServiceIdentifierData, ThrowOnError>) => import("./client").RequestResult<GetSiteBackupsListServiceIdentifierResponses, GetSiteBackupsListServiceIdentifierErrors, ThrowOnError, "fields">;
565
+ /**
566
+ * List Site Backups
567
+ * Get a list of backups for a site.
568
+ *
569
+ * Pass the returned `atomic_backup_id` (with its `type`) to `site-backup-get` to download a backup. The `type` determines the response format and recommended filename -- see `site-backup-get` for the per-type format details.
570
+ */
571
+ export declare const getSiteBackupsListServiceIdentifierBackupType: <ThrowOnError extends boolean = true>(options: Options<GetSiteBackupsListServiceIdentifierBackupTypeData, ThrowOnError>) => import("./client").RequestResult<GetSiteBackupsListServiceIdentifierBackupTypeResponses, GetSiteBackupsListServiceIdentifierBackupTypeErrors, ThrowOnError, "fields">;
572
+ /**
573
+ * List Site SSH/SFTP Users
574
+ * List all SSH/SFTP usernames for a site.
575
+ */
576
+ export declare const getSshUserServiceIdentifierList: <ThrowOnError extends boolean = true>(options: Options<GetSshUserServiceIdentifierListData, ThrowOnError>) => import("./client").RequestResult<GetSshUserServiceIdentifierListResponses, GetSshUserServiceIdentifierListErrors, ThrowOnError, "fields">;
577
+ /**
578
+ * Manage Blocked Domains
579
+ * Manage domains that have been blocked from sending email via the platform-provided mail service.
580
+ *
581
+ * The following actions are allowed:
582
+ *
583
+ * - `list` - List blocked domains for a given client
584
+ *
585
+ * The following types are allowed:
586
+ *
587
+ * - `sasl_block` - Domains that are blocked as a sender
588
+ */
589
+ export declare const getEmailBlockClientActionType: <ThrowOnError extends boolean = true>(options: Options<GetEmailBlockClientActionTypeData, ThrowOnError>) => import("./client").RequestResult<GetEmailBlockClientActionTypeResponses, GetEmailBlockClientActionTypeErrors, ThrowOnError, "fields">;
590
+ /**
591
+ * Manage Client Authorized Keys
592
+ * Manage client-level SSH authorized keys that grant access to all sites owned by a client via client-ssh.atomicsites.net. Only available to fully onboarded clients with allowlisted IP addresses. Keys are parsed and validated, with specific SSH options honored (from, command) and enforced (restrict, agent-forwarding, pty). Allowed key types: ssh-rsa (2048-16384 bits), ecdsa-sha2-nistp256 (256 bits), ssh-ed25519 (256 bits). See OpenBSD sshd authorized_keys format for details.
593
+ */
594
+ export declare const getClientAuthorizedKeysClientAction: <ThrowOnError extends boolean = true>(options: Options<GetClientAuthorizedKeysClientActionData, ThrowOnError>) => import("./client").RequestResult<GetClientAuthorizedKeysClientActionResponses, GetClientAuthorizedKeysClientActionErrors, ThrowOnError, "fields">;
595
+ /**
596
+ * Manage Client Authorized Keys
597
+ * Manage client-level SSH authorized keys that grant access to all sites owned by a client via client-ssh.atomicsites.net. Only available to fully onboarded clients with allowlisted IP addresses. Keys are parsed and validated, with specific SSH options honored (from, command) and enforced (restrict, agent-forwarding, pty). Allowed key types: ssh-rsa (2048-16384 bits), ecdsa-sha2-nistp256 (256 bits), ssh-ed25519 (256 bits). See OpenBSD sshd authorized_keys format for details.
598
+ */
599
+ export declare const postClientAuthorizedKeysClientAction: <ThrowOnError extends boolean = true>(options: Options<PostClientAuthorizedKeysClientActionData, ThrowOnError>) => import("./client").RequestResult<PostClientAuthorizedKeysClientActionResponses, PostClientAuthorizedKeysClientActionErrors, ThrowOnError, "fields">;
600
+ /**
601
+ * Manage Client Authorized Keys
602
+ * Manage client-level SSH authorized keys that grant access to all sites owned by a client via client-ssh.atomicsites.net. Only available to fully onboarded clients with allowlisted IP addresses. Keys are parsed and validated, with specific SSH options honored (from, command) and enforced (restrict, agent-forwarding, pty). Allowed key types: ssh-rsa (2048-16384 bits), ecdsa-sha2-nistp256 (256 bits), ssh-ed25519 (256 bits). See OpenBSD sshd authorized_keys format for details.
603
+ */
604
+ export declare const getClientAuthorizedKeysClientActionId: <ThrowOnError extends boolean = true>(options: Options<GetClientAuthorizedKeysClientActionIdData, ThrowOnError>) => import("./client").RequestResult<GetClientAuthorizedKeysClientActionIdResponses, GetClientAuthorizedKeysClientActionIdErrors, ThrowOnError, "fields">;
605
+ /**
606
+ * Manage Client Authorized Keys
607
+ * Manage client-level SSH authorized keys that grant access to all sites owned by a client via client-ssh.atomicsites.net. Only available to fully onboarded clients with allowlisted IP addresses. Keys are parsed and validated, with specific SSH options honored (from, command) and enforced (restrict, agent-forwarding, pty). Allowed key types: ssh-rsa (2048-16384 bits), ecdsa-sha2-nistp256 (256 bits), ssh-ed25519 (256 bits). See OpenBSD sshd authorized_keys format for details.
608
+ */
609
+ export declare const postClientAuthorizedKeysClientActionId: <ThrowOnError extends boolean = true>(options: Options<PostClientAuthorizedKeysClientActionIdData, ThrowOnError>) => import("./client").RequestResult<PostClientAuthorizedKeysClientActionIdResponses, PostClientAuthorizedKeysClientActionIdErrors, ThrowOnError, "fields">;
610
+ /**
611
+ * Manage Site Aliases
612
+ * Manage domain aliases for a site.
613
+ */
614
+ export declare const getSiteAliasServiceIdentifierAction: <ThrowOnError extends boolean = true>(options: Options<GetSiteAliasServiceIdentifierActionData, ThrowOnError>) => import("./client").RequestResult<GetSiteAliasServiceIdentifierActionResponses, GetSiteAliasServiceIdentifierActionErrors, ThrowOnError, "fields">;
615
+ /**
616
+ * Manage Site Meta
617
+ * Endpoint for managing site meta.
618
+ *
619
+ * The following meta keys are supported:
620
+ *
621
+ * - Values for `db_charset` and `db_collate` include "latin1", "latin1_swedish_ci"; "utf8", "utf8_general_ci"; and "utf8mb4", "utf8mb4_general_ci".
622
+ * - `suspended` suspends a site. The value is the HTTP 4xx status code the site will respond with. The supported statuses are "403", "404", "410", "451", "480", and "503".
623
+ * - `suspend_after` will suspend a site after a given unixtime timestamp with the status specified in "suspended", default 480.
624
+ * - `allow_restore` opts a site into self-restore via the "restore-site" endpoint. The value must be a positive Unix timestamp, must not be more than 5 minutes in the future, and must be recent (within MONTH_IN_SECONDS) when "restore-site" is called. It only authorizes the restore window; the restore is started with the "restore-site" endpoint.
625
+ * - `php_version` sets the site's PHP version. Supported values include "8.2", "8.3", "8.4", and "8.5".
626
+ * - `wp_version` is a get-only key that can be used to retrieve the site's current managed WordPress version, which can be either "latest", "previous", or "beta" (used to test WordPress releases). Use the "site-wordpress-version" endpoint to set "wp_version".
627
+ * - `do_not_delete` may be set to a truthy value to prevent a site from begin deleted. This can be useful in some cases. For example, you might wish to preserve a site while it is being reviewed for Terms of Service violations.
628
+ * - `space_used` is a get-only key that returns an integer in bytes; it is updated every 12 hours with the amount of space used by a site's files.
629
+ * - `db_file_size` is a get-only key that returns an integer in bytes. It is updated every 12 hours with the amount of space used by a site's database.
630
+ * - `space_quota` can be used to get and set the space quota for a site. Value must be an integer followed by a size specifier like "200G".
631
+ * - `max_space_quota` is get-only and may be present if the platform has set a space_quota" maximum for a specific site.
632
+ * - `photon_subsizes` controls whether WP skips generating intermediate image files when an image is uploaded. The platform is able to satisfy requests for intermediate image files whether or not they exist, so sites can save disk space by not creating them. When the a site's web server receives a request for a non-existent intermediate image file, it proxies the request to Photon which responds with the intermediate image size. Can be set to "0" or "1" or deleted.
633
+ * - `privacy_model` facilitates protection of site assets. May be set to "wp_uploads" to block logged-out requests for WP uploads. If set, an AT_PRIVACY_MODEL constant will be defined in the PHP environment.
634
+ * - `geo_affinity` may be used to get and set a site's geo-affinity. Allowed values are those returned by the "get-available-datacenters" endpoint. It is not currently useful to set a site's geo-affinity after creation unless you have access to an endpoint that allows you to subsequently trigger migration of the site to another server pool.
635
+ * - `static_file_404` may be used to get and set how a site responds to requests for non-existent static files. May be set to "lightweight" for simple, fast web server 404s. May be set to "wordpress" to delegate such requests to WordPress. The current default is "wordpress".
636
+ * - `php_memory_limit` may be used to set the per-request PHP memory limit to a value between 512MB and 2048MB. Allowed values are 512, 1024, 1536, 2048. The default if not set is 512.
637
+ * - `opcache_memory_limit_mb` may be used to set the per-request PHP memory limit to a value up to 300.
638
+ * - `default_php_conns` may be used to either limit site's allowed concurrent PHP connections or to increase the default number of concurrent connections a site can use if the web server has spare PHP connections capacity. Clients may set any value for a site between 2 and 10; the platform has more leeway if needed.
639
+ * - `burst_php_conns` may be used to enable burst for sites with fewer than 10 default_php_conns. 0 or absent when default_php_conns < 10 means burst is disabled, 1 means burst is enabled.
640
+ * - `php_fs_permissions` may be used to cause HTTP requests being handled by PHP for a site to have that sites filesystem mounted specially. Currently supported values are "rw" (readwrite - the default), "ro" (readonly), and "loggedin" (read only unless logged into WordPress). It is possible that other more complicated settings may be added in the future.
641
+ * - `canonicalize_aliases` may be used to change whether a sites domain aliases redirect (default, "true") to the sites primary domain name or are served directly (when set to "false")
642
+ * - `_data` is provided for clients to store a JSON-encoded array of site-specific data not to exceed 1M in size; this string is available via the get-sites endpoint, but is not part of the get-site record, nor is it available in the context of the site itself.
643
+ */
644
+ export declare const getSiteMetaSiteKeyAction: <ThrowOnError extends boolean = true>(options: Options<GetSiteMetaSiteKeyActionData, ThrowOnError>) => import("./client").RequestResult<GetSiteMetaSiteKeyActionResponses, GetSiteMetaSiteKeyActionErrors, ThrowOnError, "fields">;
645
+ /**
646
+ * Manage Site Meta
647
+ * Endpoint for managing site meta.
648
+ *
649
+ * The following meta keys are supported:
650
+ *
651
+ * - Values for `db_charset` and `db_collate` include "latin1", "latin1_swedish_ci"; "utf8", "utf8_general_ci"; and "utf8mb4", "utf8mb4_general_ci".
652
+ * - `suspended` suspends a site. The value is the HTTP 4xx status code the site will respond with. The supported statuses are "403", "404", "410", "451", "480", and "503".
653
+ * - `suspend_after` will suspend a site after a given unixtime timestamp with the status specified in "suspended", default 480.
654
+ * - `allow_restore` opts a site into self-restore via the "restore-site" endpoint. The value must be a positive Unix timestamp, must not be more than 5 minutes in the future, and must be recent (within MONTH_IN_SECONDS) when "restore-site" is called. It only authorizes the restore window; the restore is started with the "restore-site" endpoint.
655
+ * - `php_version` sets the site's PHP version. Supported values include "8.2", "8.3", "8.4", and "8.5".
656
+ * - `wp_version` is a get-only key that can be used to retrieve the site's current managed WordPress version, which can be either "latest", "previous", or "beta" (used to test WordPress releases). Use the "site-wordpress-version" endpoint to set "wp_version".
657
+ * - `do_not_delete` may be set to a truthy value to prevent a site from begin deleted. This can be useful in some cases. For example, you might wish to preserve a site while it is being reviewed for Terms of Service violations.
658
+ * - `space_used` is a get-only key that returns an integer in bytes; it is updated every 12 hours with the amount of space used by a site's files.
659
+ * - `db_file_size` is a get-only key that returns an integer in bytes. It is updated every 12 hours with the amount of space used by a site's database.
660
+ * - `space_quota` can be used to get and set the space quota for a site. Value must be an integer followed by a size specifier like "200G".
661
+ * - `max_space_quota` is get-only and may be present if the platform has set a space_quota" maximum for a specific site.
662
+ * - `photon_subsizes` controls whether WP skips generating intermediate image files when an image is uploaded. The platform is able to satisfy requests for intermediate image files whether or not they exist, so sites can save disk space by not creating them. When the a site's web server receives a request for a non-existent intermediate image file, it proxies the request to Photon which responds with the intermediate image size. Can be set to "0" or "1" or deleted.
663
+ * - `privacy_model` facilitates protection of site assets. May be set to "wp_uploads" to block logged-out requests for WP uploads. If set, an AT_PRIVACY_MODEL constant will be defined in the PHP environment.
664
+ * - `geo_affinity` may be used to get and set a site's geo-affinity. Allowed values are those returned by the "get-available-datacenters" endpoint. It is not currently useful to set a site's geo-affinity after creation unless you have access to an endpoint that allows you to subsequently trigger migration of the site to another server pool.
665
+ * - `static_file_404` may be used to get and set how a site responds to requests for non-existent static files. May be set to "lightweight" for simple, fast web server 404s. May be set to "wordpress" to delegate such requests to WordPress. The current default is "wordpress".
666
+ * - `php_memory_limit` may be used to set the per-request PHP memory limit to a value between 512MB and 2048MB. Allowed values are 512, 1024, 1536, 2048. The default if not set is 512.
667
+ * - `opcache_memory_limit_mb` may be used to set the per-request PHP memory limit to a value up to 300.
668
+ * - `default_php_conns` may be used to either limit site's allowed concurrent PHP connections or to increase the default number of concurrent connections a site can use if the web server has spare PHP connections capacity. Clients may set any value for a site between 2 and 10; the platform has more leeway if needed.
669
+ * - `burst_php_conns` may be used to enable burst for sites with fewer than 10 default_php_conns. 0 or absent when default_php_conns < 10 means burst is disabled, 1 means burst is enabled.
670
+ * - `php_fs_permissions` may be used to cause HTTP requests being handled by PHP for a site to have that sites filesystem mounted specially. Currently supported values are "rw" (readwrite - the default), "ro" (readonly), and "loggedin" (read only unless logged into WordPress). It is possible that other more complicated settings may be added in the future.
671
+ * - `canonicalize_aliases` may be used to change whether a sites domain aliases redirect (default, "true") to the sites primary domain name or are served directly (when set to "false")
672
+ * - `_data` is provided for clients to store a JSON-encoded array of site-specific data not to exceed 1M in size; this string is available via the get-sites endpoint, but is not part of the get-site record, nor is it available in the context of the site itself.
673
+ */
674
+ export declare const postSiteMetaSiteKeyAction: <ThrowOnError extends boolean = true>(options: Options<PostSiteMetaSiteKeyActionData, ThrowOnError>) => import("./client").RequestResult<PostSiteMetaSiteKeyActionResponses, PostSiteMetaSiteKeyActionErrors, ThrowOnError, "fields">;
675
+ /**
676
+ * Manage Site Software
677
+ * Manage a site's software installation and activation.
678
+ */
679
+ export declare const postSiteManageSoftwareTypeSite: <ThrowOnError extends boolean = true>(options: Options<PostSiteManageSoftwareTypeSiteData, ThrowOnError>) => import("./client").RequestResult<PostSiteManageSoftwareTypeSiteResponses, PostSiteManageSoftwareTypeSiteErrors, ThrowOnError, "fields">;
680
+ /**
681
+ * Queue SSH Disconnect All Users Job
682
+ * Queue a job to terminate all active SSH and SFTP connections for a site. Affects both user-level and client-level connections.
683
+ */
684
+ export declare const getSshDisconnectAllUsersServiceIdentifier: <ThrowOnError extends boolean = true>(options: Options<GetSshDisconnectAllUsersServiceIdentifierData, ThrowOnError>) => import("./client").RequestResult<GetSshDisconnectAllUsersServiceIdentifierResponses, GetSshDisconnectAllUsersServiceIdentifierErrors, ThrowOnError, "fields">;
685
+ /**
686
+ * Remove Client Meta
687
+ * Remove a client meta value.
688
+ *
689
+ * Note: `max_space_quota` is read-only and cannot be removed.
690
+ */
691
+ export declare const getClientMetaClientKeyRemove: <ThrowOnError extends boolean = true>(options: Options<GetClientMetaClientKeyRemoveData, ThrowOnError>) => import("./client").RequestResult<GetClientMetaClientKeyRemoveResponses, GetClientMetaClientKeyRemoveErrors, ThrowOnError, "fields">;
692
+ /**
693
+ * Remove Cron Entry
694
+ * Removes a cron entry from a site.
695
+ *
696
+ * If the event is already running, removing it will prevent future runs, but will not interrupt any existing runs.
697
+ */
698
+ export declare const postCrontabSiteRemove: <ThrowOnError extends boolean = true>(options: Options<PostCrontabSiteRemoveData, ThrowOnError>) => import("./client").RequestResult<PostCrontabSiteRemoveResponses, PostCrontabSiteRemoveErrors, ThrowOnError, "fields">;
699
+ /**
700
+ * Remove Firewall Rule
701
+ * Remove an existing firewall rule from a site.
702
+ */
703
+ export declare const postFirewallRulesSiteRemove: <ThrowOnError extends boolean = true>(options: Options<PostFirewallRulesSiteRemoveData, ThrowOnError>) => import("./client").RequestResult<PostFirewallRulesSiteRemoveResponses, PostFirewallRulesSiteRemoveErrors, ThrowOnError, "fields">;
704
+ /**
705
+ * Remove Public Key
706
+ * Delete a single aliasable public key.
707
+ *
708
+ * Removes an aliasable public key. Any object referencing this address will still be doing so. An object referencing the address of a nonexistent key will, effectively, have no key. If a key is [re]created at an address then all objects referencing that address will then be accessible via the aliasable key.
709
+ */
710
+ export declare const postAliasPkeyRemoveClientCategoryName: <ThrowOnError extends boolean = true>(options: Options<PostAliasPkeyRemoveClientCategoryNameData, ThrowOnError>) => import("./client").RequestResult<PostAliasPkeyRemoveClientCategoryNameResponses, PostAliasPkeyRemoveClientCategoryNameErrors, ThrowOnError, "fields">;
711
+ /**
712
+ * Remove Site SSH/SFTP User
713
+ * Delete an SSH/SFTP user from a site. Also queues a disconnect job to terminate any active SSH sessions for this user.
714
+ */
715
+ export declare const getSshUserServiceIdentifierRemoveUsername: <ThrowOnError extends boolean = true>(options: Options<GetSshUserServiceIdentifierRemoveUsernameData, ThrowOnError>) => import("./client").RequestResult<GetSshUserServiceIdentifierRemoveUsernameResponses, GetSshUserServiceIdentifierRemoveUsernameErrors, ThrowOnError, "fields">;
716
+ /**
717
+ * Remove Site SSH/SFTP User
718
+ * Delete an SSH/SFTP user from a site. Also queues a disconnect job to terminate any active SSH sessions for this user.
719
+ */
720
+ export declare const postSshUserServiceIdentifierRemoveUsername: <ThrowOnError extends boolean = true>(options: Options<PostSshUserServiceIdentifierRemoveUsernameData, ThrowOnError>) => import("./client").RequestResult<PostSshUserServiceIdentifierRemoveUsernameResponses, PostSshUserServiceIdentifierRemoveUsernameErrors, ThrowOnError, "fields">;
721
+ /**
722
+ * Request Backup Creation
723
+ * Request creation of an on-demand backup for a site. The backup will contain either filesystem data, database data, or both depending on the type specified. Backups are subject to quota limits which can be customized via site or client metadata.
724
+ */
725
+ export declare const postOnDemandBackupCreateSiteType: <ThrowOnError extends boolean = true>(options: Options<PostOnDemandBackupCreateSiteTypeData, ThrowOnError>) => import("./client").RequestResult<PostOnDemandBackupCreateSiteTypeResponses, PostOnDemandBackupCreateSiteTypeErrors, ThrowOnError, "fields">;
726
+ /**
727
+ * Request Backup Deletion
728
+ * Request deletion of an existing on-demand backup. Only backups of type "ondemand-fs", "ondemand-db", or legacy "ondemand" can be deleted.
729
+ */
730
+ export declare const postOnDemandBackupDeleteSiteBackupId: <ThrowOnError extends boolean = true>(options: Options<PostOnDemandBackupDeleteSiteBackupIdData, ThrowOnError>) => import("./client").RequestResult<PostOnDemandBackupDeleteSiteBackupIdResponses, PostOnDemandBackupDeleteSiteBackupIdErrors, ThrowOnError, "fields">;
731
+ /**
732
+ * Reset Database Password
733
+ * Reset the database password for a site.
734
+ */
735
+ export declare const postResetDbPasswordTypeSite: <ThrowOnError extends boolean = true>(options: Options<PostResetDbPasswordTypeSiteData, ThrowOnError>) => import("./client").RequestResult<PostResetDbPasswordTypeSiteResponses, PostResetDbPasswordTypeSiteErrors, ThrowOnError, "fields">;
736
+ /**
737
+ * Reset Database Password
738
+ * Reset the database password for a site.
739
+ */
740
+ export declare const postResetDbPasswordTypeSiteNew: <ThrowOnError extends boolean = true>(options: Options<PostResetDbPasswordTypeSiteNewData, ThrowOnError>) => import("./client").RequestResult<PostResetDbPasswordTypeSiteNewResponses, PostResetDbPasswordTypeSiteNewErrors, ThrowOnError, "fields">;
741
+ /**
742
+ * Restore Existing Site From Its Own Backups
743
+ * Restore an existing site from a filesystem + database backup pair belonging to that same site. Requires the customer to have set the `allow_restore` site meta to a recent Unix timestamp (within MONTH_IN_SECONDS), and to have suspended the destination site with status 503 via the `suspended` site meta, using the `site-meta` endpoint.
744
+ *
745
+ * Mirrors the work performed by `site-provisioned/:site_id/restore` after a `create-site` with `restore_from`, but writes against an existing site instead of a freshly provisioned one.
746
+ */
747
+ export declare const postRestoreSiteSite: <ThrowOnError extends boolean = true>(options: Options<PostRestoreSiteSiteData, ThrowOnError>) => import("./client").RequestResult<PostRestoreSiteSiteResponses, PostRestoreSiteSiteErrors, ThrowOnError, "fields">;
748
+ /**
749
+ * Retry SSL Provisioning
750
+ * Retry SSL certificate provisioning.
751
+ */
752
+ export declare const postSslRetryDomain: <ThrowOnError extends boolean = true>(options: Options<PostSslRetryDomainData, ThrowOnError>) => import("./client").RequestResult<PostSslRetryDomainResponses, PostSslRetryDomainErrors, ThrowOnError, "fields">;
753
+ /**
754
+ * Scan Site for Malware
755
+ * Scan a site for malware.
756
+ */
757
+ export declare const postMalwareScanSite: <ThrowOnError extends boolean = true>(options: Options<PostMalwareScanSiteData, ThrowOnError>) => import("./client").RequestResult<PostMalwareScanSiteResponses, PostMalwareScanSiteErrors, ThrowOnError, "fields">;
758
+ /**
759
+ * Stage a Custom Certificate
760
+ * Prepare a certificate for use on one or more domains. Does not activate the certificate immediately.
761
+ */
762
+ export declare const postCustomCertificatesSiteStage: <ThrowOnError extends boolean = true>(options: Options<PostCustomCertificatesSiteStageData, ThrowOnError>) => import("./client").RequestResult<PostCustomCertificatesSiteStageResponses, PostCustomCertificatesSiteStageErrors, ThrowOnError, "fields">;
763
+ /**
764
+ * Toggle Android Compatibility
765
+ * Enable/disable certificates compatible with older Android devices. Android compatibility is enabled by default.
766
+ */
767
+ export declare const postSslAndroidCompatDomainEnable: <ThrowOnError extends boolean = true>(options: Options<PostSslAndroidCompatDomainEnableData, ThrowOnError>) => import("./client").RequestResult<PostSslAndroidCompatDomainEnableResponses, PostSslAndroidCompatDomainEnableErrors, ThrowOnError, "fields">;
768
+ /**
769
+ * Toggle HSTS includeSubDomains
770
+ * Enable/disable HSTS includeSubDomains directive. Includes the preload directive for ease of use.
771
+ */
772
+ export declare const postSslHstsSubdomainDomainEnable: <ThrowOnError extends boolean = true>(options: Options<PostSslHstsSubdomainDomainEnableData, ThrowOnError>) => import("./client").RequestResult<PostSslHstsSubdomainDomainEnableResponses, PostSslHstsSubdomainDomainEnableErrors, ThrowOnError, "fields">;
773
+ /**
774
+ * Toggle Social Crawler Redirect
775
+ * Enable/disable redirect from https to http for social crawlers. This is used to retain share counts between http/https for Facebook/Twitter/LinkedIn, if links were originally shared as http. Social crawler redirect is disabled by default for all new domains since 2022-11-04.
776
+ */
777
+ export declare const postSslSocialCrawlerRedirectDomainEnable: <ThrowOnError extends boolean = true>(options: Options<PostSslSocialCrawlerRedirectDomainEnableData, ThrowOnError>) => import("./client").RequestResult<PostSslSocialCrawlerRedirectDomainEnableResponses, PostSslSocialCrawlerRedirectDomainEnableErrors, ThrowOnError, "fields">;
778
+ /**
779
+ * Update a Custom Certificate
780
+ * Update an existing custom SSL certificate for renewal or rekeying. If id is omitted, the currently active certificate is updated.
781
+ */
782
+ export declare const postCustomCertificatesSiteIdUpdate: <ThrowOnError extends boolean = true>(options: Options<PostCustomCertificatesSiteIdUpdateData, ThrowOnError>) => import("./client").RequestResult<PostCustomCertificatesSiteIdUpdateResponses, PostCustomCertificatesSiteIdUpdateErrors, ThrowOnError, "fields">;
783
+ /**
784
+ * Update Client Meta
785
+ * Update an existing client meta value.
786
+ *
787
+ * Note: `max_space_quota` is read-only and cannot be updated.
788
+ */
789
+ export declare const postClientMetaClientKeyUpdate: <ThrowOnError extends boolean = true>(options: Options<PostClientMetaClientKeyUpdateData, ThrowOnError>) => import("./client").RequestResult<PostClientMetaClientKeyUpdateResponses, PostClientMetaClientKeyUpdateErrors, ThrowOnError, "fields">;
790
+ /**
791
+ * Update Cron Entry
792
+ * Update an existing cron entry.
793
+ */
794
+ export declare const postCrontabSiteUpdateCronId: <ThrowOnError extends boolean = true>(options: Options<PostCrontabSiteUpdateCronIdData, ThrowOnError>) => import("./client").RequestResult<PostCrontabSiteUpdateCronIdResponses, PostCrontabSiteUpdateCronIdErrors, ThrowOnError, "fields">;
795
+ /**
796
+ * Update Site Chroot
797
+ * Update the chroot environment for a site. The chroot slug must be one of the allowed values for the client. Queues a job to apply the filesystem changes on the pool server; use the returned job_id to track completion.
798
+ */
799
+ export declare const postSiteSetChrootSiteDesired: <ThrowOnError extends boolean = true>(options: Options<PostSiteSetChrootSiteDesiredData, ThrowOnError>) => import("./client").RequestResult<PostSiteSetChrootSiteDesiredResponses, PostSiteSetChrootSiteDesiredErrors, ThrowOnError, "fields">;
800
+ /**
801
+ * Update Site Domain
802
+ * Update a site's primary domain.
803
+ */
804
+ export declare const postUpdateSiteDomainServiceIdentifierDomain: <ThrowOnError extends boolean = true>(options: Options<PostUpdateSiteDomainServiceIdentifierDomainData, ThrowOnError>) => import("./client").RequestResult<PostUpdateSiteDomainServiceIdentifierDomainResponses, PostUpdateSiteDomainServiceIdentifierDomainErrors, ThrowOnError, "fields">;
805
+ /**
806
+ * Update Site Domain
807
+ * Update a site's primary domain.
808
+ */
809
+ export declare const postUpdateSiteDomainServiceIdentifierDomainKeep: <ThrowOnError extends boolean = true>(options: Options<PostUpdateSiteDomainServiceIdentifierDomainKeepData, ThrowOnError>) => import("./client").RequestResult<PostUpdateSiteDomainServiceIdentifierDomainKeepResponses, PostUpdateSiteDomainServiceIdentifierDomainKeepErrors, ThrowOnError, "fields">;
810
+ /**
811
+ * Update Site Options
812
+ * Update a site's WordPress options.
813
+ */
814
+ export declare const postUpdateSiteOptionsTypeSite: <ThrowOnError extends boolean = true>(options: Options<PostUpdateSiteOptionsTypeSiteData, ThrowOnError>) => import("./client").RequestResult<PostUpdateSiteOptionsTypeSiteResponses, PostUpdateSiteOptionsTypeSiteErrors, ThrowOnError, "fields">;
815
+ /**
816
+ * Update Site SSH/SFTP User
817
+ * Update password or SSH key for an existing SSH/SFTP user. Empty password string disables password authentication (key-only). Allowed key types: ssh-rsa (2048-16384 bits), ecdsa-sha2-nistp256 (256 bits), ssh-ed25519 (256 bits).
818
+ */
819
+ export declare const postSshUserServiceIdentifierUpdateUsername: <ThrowOnError extends boolean = true>(options: Options<PostSshUserServiceIdentifierUpdateUsernameData, ThrowOnError>) => import("./client").RequestResult<PostSshUserServiceIdentifierUpdateUsernameResponses, PostSshUserServiceIdentifierUpdateUsernameErrors, ThrowOnError, "fields">;
820
+ /**
821
+ * Update Site WordPress Version
822
+ * Configure a site to use a specific managed version of WordPress.
823
+ */
824
+ export declare const postSiteWordpressVersionSiteVersion: <ThrowOnError extends boolean = true>(options: Options<PostSiteWordpressVersionSiteVersionData, ThrowOnError>) => import("./client").RequestResult<PostSiteWordpressVersionSiteVersionResponses, PostSiteWordpressVersionSiteVersionErrors, ThrowOnError, "fields">;
825
+ /**
826
+ * Validate Custom Certificate
827
+ * Validate a custom SSL certificate for use on one or more domains.
828
+ */
829
+ export declare const postCustomCertificatesSiteValidate: <ThrowOnError extends boolean = true>(options: Options<PostCustomCertificatesSiteValidateData, ThrowOnError>) => import("./client").RequestResult<PostCustomCertificatesSiteValidateResponses, PostCustomCertificatesSiteValidateErrors, ThrowOnError, "fields">;
830
+ /**
831
+ * Validate Domain Eligibility
832
+ * Check whether a domain can be hosted on WP Cloud. Note that this check will return false for valid domains that are already hosted on WordPress.com or WP Cloud infrastructure.
833
+ */
834
+ export declare const getCheckCanHostDomainClientDomain: <ThrowOnError extends boolean = true>(options: Options<GetCheckCanHostDomainClientDomainData, ThrowOnError>) => import("./client").RequestResult<GetCheckCanHostDomainClientDomainResponses, GetCheckCanHostDomainClientDomainErrors, ThrowOnError, "fields">;
835
+ /**
836
+ * Manage Site Aliases
837
+ * Manage domain aliases for a site.
838
+ */
839
+ export declare const getSiteAliasServiceIdentifierActionDomain: <ThrowOnError extends boolean = true>(options: Options<GetSiteAliasServiceIdentifierActionDomainData, ThrowOnError>) => import("./client").RequestResult<GetSiteAliasServiceIdentifierActionDomainResponses, GetSiteAliasServiceIdentifierActionDomainErrors, ThrowOnError, "fields">;
840
+ //# sourceMappingURL=sdk.gen.d.ts.map