@spacefast/wpcloud-sdk 0.0.13 → 0.0.18

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.
@@ -1517,7 +1517,7 @@ export const getSiteAliasServiceIdentifierAction = (options) => {
1517
1517
  * - `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.
1518
1518
  * - `opcache_memory_limit_mb` may be used to set the per-request PHP memory limit to a value up to 300.
1519
1519
  * - `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.
1520
- * - `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.
1520
+ * - `burst_php_conns` controls PHP burst behavior. 0 means burst is disabled, 1 means burst is enabled (legacy), and 2 allows up to 2x default_php_conns. Negative integers (e.g. -8) request a flat additive bonus of abs(value) connections above default_php_conns. All values are clamped to the global ceiling on the server.
1521
1521
  * - `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.
1522
1522
  * - `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")
1523
1523
  * - `_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.
@@ -1558,7 +1558,7 @@ export const getSiteMetaSiteKeyAction = (options) => {
1558
1558
  * - `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.
1559
1559
  * - `opcache_memory_limit_mb` may be used to set the per-request PHP memory limit to a value up to 300.
1560
1560
  * - `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.
1561
- * - `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.
1561
+ * - `burst_php_conns` controls PHP burst behavior. 0 means burst is disabled, 1 means burst is enabled (legacy), and 2 allows up to 2x default_php_conns. Negative integers (e.g. -8) request a flat additive bonus of abs(value) connections above default_php_conns. All values are clamped to the global ceiling on the server.
1562
1562
  * - `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.
1563
1563
  * - `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")
1564
1564
  * - `_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.
@@ -1853,6 +1853,22 @@ export const postMalwareScanSite = (options) => {
1853
1853
  },
1854
1854
  });
1855
1855
  };
1856
+ /**
1857
+ * Set Site Service Access Type
1858
+ * Set access type for given service and site.
1859
+ */
1860
+ export const getSiteSetAccessTypeServiceIdentifierType = (options) => {
1861
+ return (options.client ?? _heyApiClient).get({
1862
+ security: [
1863
+ {
1864
+ name: "auth",
1865
+ type: "apiKey",
1866
+ },
1867
+ ],
1868
+ url: "/site-set-access-type/{service}/{identifier}/{type}",
1869
+ ...options,
1870
+ });
1871
+ };
1856
1872
  /**
1857
1873
  * Stage a Custom Certificate
1858
1874
  * Prepare a certificate for use on one or more domains. Does not activate the certificate immediately.
@@ -1874,6 +1890,117 @@ export const postCustomCertificatesSiteStage = (options) => {
1874
1890
  },
1875
1891
  });
1876
1892
  };
1893
+ /**
1894
+ * Test Status
1895
+ * Utility endpoint for testing interaction with the API.
1896
+ */
1897
+ export const getTestStatus = (options) => {
1898
+ return (options?.client ?? _heyApiClient).get({
1899
+ security: [
1900
+ {
1901
+ name: "auth",
1902
+ type: "apiKey",
1903
+ },
1904
+ ],
1905
+ url: "/test-status",
1906
+ ...options,
1907
+ });
1908
+ };
1909
+ /**
1910
+ * Test Status
1911
+ * Utility endpoint for testing interaction with the API.
1912
+ */
1913
+ export const postTestStatus = (options) => {
1914
+ return (options?.client ?? _heyApiClient).post({
1915
+ ...urlSearchParamsBodySerializer,
1916
+ security: [
1917
+ {
1918
+ name: "auth",
1919
+ type: "apiKey",
1920
+ },
1921
+ ],
1922
+ url: "/test-status",
1923
+ ...options,
1924
+ headers: {
1925
+ "Content-Type": "application/x-www-form-urlencoded",
1926
+ ...options?.headers,
1927
+ },
1928
+ });
1929
+ };
1930
+ /**
1931
+ * Test Status
1932
+ * Utility endpoint for testing interaction with the API.
1933
+ */
1934
+ export const getTestStatusStatus = (options) => {
1935
+ return (options.client ?? _heyApiClient).get({
1936
+ security: [
1937
+ {
1938
+ name: "auth",
1939
+ type: "apiKey",
1940
+ },
1941
+ ],
1942
+ url: "/test-status/{status}",
1943
+ ...options,
1944
+ });
1945
+ };
1946
+ /**
1947
+ * Test Status
1948
+ * Utility endpoint for testing interaction with the API.
1949
+ */
1950
+ export const postTestStatusStatus = (options) => {
1951
+ return (options.client ?? _heyApiClient).post({
1952
+ ...urlSearchParamsBodySerializer,
1953
+ security: [
1954
+ {
1955
+ name: "auth",
1956
+ type: "apiKey",
1957
+ },
1958
+ ],
1959
+ url: "/test-status/{status}",
1960
+ ...options,
1961
+ headers: {
1962
+ "Content-Type": "application/x-www-form-urlencoded",
1963
+ ...options.headers,
1964
+ },
1965
+ });
1966
+ };
1967
+ /**
1968
+ * Test Status
1969
+ * Utility endpoint for testing interaction with the API.
1970
+ */
1971
+ export const getTestStatusStatusMessage = (options) => {
1972
+ return (options.client ?? _heyApiClient).get({
1973
+ security: [
1974
+ {
1975
+ name: "auth",
1976
+ type: "apiKey",
1977
+ },
1978
+ ],
1979
+ url: "/test-status/{status}/{message}",
1980
+ ...options,
1981
+ });
1982
+ };
1983
+ /**
1984
+ * Test Status
1985
+ * Utility endpoint for testing interaction with the API.
1986
+ */
1987
+ export const postTestStatusStatusMessage = (options) => {
1988
+ return (options.client ?? _heyApiClient).post({
1989
+ ...urlSearchParamsBodySerializer,
1990
+ security: [
1991
+ {
1992
+ name: "auth",
1993
+ type: "apiKey",
1994
+ },
1995
+ ],
1996
+ url: "/test-status/{status}/{message}",
1997
+ ...options,
1998
+ headers: {
1999
+ "Content-Type": "application/x-www-form-urlencoded",
2000
+ ...options.headers,
2001
+ },
2002
+ });
2003
+ };
1877
2004
  /**
1878
2005
  * Toggle Android Compatibility
1879
2006
  * Enable/disable certificates compatible with older Android devices. Android compatibility is enabled by default.
@@ -6026,6 +6026,62 @@ export type PostMalwareScanSiteResponses = {
6026
6026
  };
6027
6027
  };
6028
6028
  export type PostMalwareScanSiteResponse = PostMalwareScanSiteResponses[keyof PostMalwareScanSiteResponses];
6029
+ export type GetSiteSetAccessTypeServiceIdentifierTypeData = {
6030
+ body?: never;
6031
+ path: {
6032
+ /**
6033
+ * Service type (client name, "domain" for domain lookup, or "wpcom" for WordPress.com blog ID).
6034
+ */
6035
+ service: string;
6036
+ /**
6037
+ * Site identifier (domain for "domain" service, site ID for client, WordPress.com blog ID for "wpcom").
6038
+ */
6039
+ identifier: string;
6040
+ /**
6041
+ * Access type.
6042
+ */
6043
+ type: "ssh" | "sftp" | "legacy";
6044
+ };
6045
+ query?: never;
6046
+ url: "/site-set-access-type/{service}/{identifier}/{type}";
6047
+ };
6048
+ export type GetSiteSetAccessTypeServiceIdentifierTypeErrors = {
6049
+ /**
6050
+ * Access denied.
6051
+ */
6052
+ 403: {
6053
+ /**
6054
+ * Access denied.
6055
+ */
6056
+ Forbidden?: string;
6057
+ };
6058
+ /**
6059
+ * Site not found.
6060
+ */
6061
+ 404: {
6062
+ /**
6063
+ * Site not found.
6064
+ */
6065
+ NotFound?: string;
6066
+ };
6067
+ };
6068
+ export type GetSiteSetAccessTypeServiceIdentifierTypeError = GetSiteSetAccessTypeServiceIdentifierTypeErrors[keyof GetSiteSetAccessTypeServiceIdentifierTypeErrors];
6069
+ export type GetSiteSetAccessTypeServiceIdentifierTypeResponses = {
6070
+ /**
6071
+ * Response object.
6072
+ */
6073
+ 200: {
6074
+ /**
6075
+ * Site ID.
6076
+ */
6077
+ atomic_site_id?: number;
6078
+ /**
6079
+ * Access type set.
6080
+ */
6081
+ type?: string;
6082
+ };
6083
+ };
6084
+ export type GetSiteSetAccessTypeServiceIdentifierTypeResponse = GetSiteSetAccessTypeServiceIdentifierTypeResponses[keyof GetSiteSetAccessTypeServiceIdentifierTypeResponses];
6029
6085
  export type PostCustomCertificatesSiteStageData = {
6030
6086
  body?: {
6031
6087
  /**
@@ -6112,6 +6168,157 @@ export type PostCustomCertificatesSiteStageResponses = {
6112
6168
  };
6113
6169
  };
6114
6170
  export type PostCustomCertificatesSiteStageResponse = PostCustomCertificatesSiteStageResponses[keyof PostCustomCertificatesSiteStageResponses];
6171
+ export type GetTestStatusData = {
6172
+ body?: never;
6173
+ path?: never;
6174
+ query?: never;
6175
+ url: "/test-status";
6176
+ };
6177
+ export type GetTestStatusErrors = {
6178
+ 404: {
6179
+ [key: string]: unknown;
6180
+ };
6181
+ };
6182
+ export type GetTestStatusError = GetTestStatusErrors[keyof GetTestStatusErrors];
6183
+ export type GetTestStatusResponses = {
6184
+ /**
6185
+ * Successful operation
6186
+ */
6187
+ 200: unknown;
6188
+ };
6189
+ export type PostTestStatusData = {
6190
+ body?: {
6191
+ /**
6192
+ * POST data to respond with.
6193
+ */
6194
+ data?: string;
6195
+ };
6196
+ path?: never;
6197
+ query?: never;
6198
+ url: "/test-status";
6199
+ };
6200
+ export type PostTestStatusErrors = {
6201
+ 404: {
6202
+ [key: string]: unknown;
6203
+ };
6204
+ };
6205
+ export type PostTestStatusError = PostTestStatusErrors[keyof PostTestStatusErrors];
6206
+ export type PostTestStatusResponses = {
6207
+ /**
6208
+ * Successful operation
6209
+ */
6210
+ 200: unknown;
6211
+ };
6212
+ export type GetTestStatusStatusData = {
6213
+ body?: never;
6214
+ path: {
6215
+ /**
6216
+ * HTTP status to respond with.
6217
+ */
6218
+ status: string;
6219
+ };
6220
+ query?: never;
6221
+ url: "/test-status/{status}";
6222
+ };
6223
+ export type GetTestStatusStatusErrors = {
6224
+ 404: {
6225
+ [key: string]: unknown;
6226
+ };
6227
+ };
6228
+ export type GetTestStatusStatusError = GetTestStatusStatusErrors[keyof GetTestStatusStatusErrors];
6229
+ export type GetTestStatusStatusResponses = {
6230
+ /**
6231
+ * Successful operation
6232
+ */
6233
+ 200: unknown;
6234
+ };
6235
+ export type PostTestStatusStatusData = {
6236
+ body?: {
6237
+ /**
6238
+ * POST data to respond with.
6239
+ */
6240
+ data?: string;
6241
+ };
6242
+ path: {
6243
+ /**
6244
+ * HTTP status to respond with.
6245
+ */
6246
+ status: string;
6247
+ };
6248
+ query?: never;
6249
+ url: "/test-status/{status}";
6250
+ };
6251
+ export type PostTestStatusStatusErrors = {
6252
+ 404: {
6253
+ [key: string]: unknown;
6254
+ };
6255
+ };
6256
+ export type PostTestStatusStatusError = PostTestStatusStatusErrors[keyof PostTestStatusStatusErrors];
6257
+ export type PostTestStatusStatusResponses = {
6258
+ /**
6259
+ * Successful operation
6260
+ */
6261
+ 200: unknown;
6262
+ };
6263
+ export type GetTestStatusStatusMessageData = {
6264
+ body?: never;
6265
+ path: {
6266
+ /**
6267
+ * HTTP status to respond with.
6268
+ */
6269
+ status: string;
6270
+ /**
6271
+ * Message to respond with.
6272
+ */
6273
+ message: string;
6274
+ };
6275
+ query?: never;
6276
+ url: "/test-status/{status}/{message}";
6277
+ };
6278
+ export type GetTestStatusStatusMessageErrors = {
6279
+ 404: {
6280
+ [key: string]: unknown;
6281
+ };
6282
+ };
6283
+ export type GetTestStatusStatusMessageError = GetTestStatusStatusMessageErrors[keyof GetTestStatusStatusMessageErrors];
6284
+ export type GetTestStatusStatusMessageResponses = {
6285
+ /**
6286
+ * Successful operation
6287
+ */
6288
+ 200: unknown;
6289
+ };
6290
+ export type PostTestStatusStatusMessageData = {
6291
+ body?: {
6292
+ /**
6293
+ * POST data to respond with.
6294
+ */
6295
+ data?: string;
6296
+ };
6297
+ path: {
6298
+ /**
6299
+ * HTTP status to respond with.
6300
+ */
6301
+ status: string;
6302
+ /**
6303
+ * Message to respond with.
6304
+ */
6305
+ message: string;
6306
+ };
6307
+ query?: never;
6308
+ url: "/test-status/{status}/{message}";
6309
+ };
6310
+ export type PostTestStatusStatusMessageErrors = {
6311
+ 404: {
6312
+ [key: string]: unknown;
6313
+ };
6314
+ };
6315
+ export type PostTestStatusStatusMessageError = PostTestStatusStatusMessageErrors[keyof PostTestStatusStatusMessageErrors];
6316
+ export type PostTestStatusStatusMessageResponses = {
6317
+ /**
6318
+ * Successful operation
6319
+ */
6320
+ 200: unknown;
6321
+ };
6115
6322
  export type PostSslAndroidCompatDomainEnableData = {
6116
6323
  body?: never;
6117
6324
  path: {