hostinger-api-sdk 1.33.1 → 1.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1179 -72
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +643 -1
  7. package/dist/api.js +866 -25
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +643 -1
  15. package/dist/esm/api.js +846 -13
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/AgencyHostingPHPApi.md +400 -0
  27. package/docs/AgencyHostingV1PhpExtensionResource.md +24 -0
  28. package/docs/AgencyHostingV1PhpOptionResource.md +30 -0
  29. package/docs/AgencyHostingV1PhpUpdateExtensionsRequest.md +20 -0
  30. package/docs/AgencyHostingV1PhpUpdateOptionsRequest.md +20 -0
  31. package/docs/AgencyHostingV1PhpUpdateOptionsRequestOptionsInner.md +22 -0
  32. package/docs/AgencyHostingV1PhpUpdateVersionRequest.md +20 -0
  33. package/docs/AgencyHostingV1PhpVersionResource.md +20 -0
  34. package/docs/HostingListWebsiteRedirectsV1200Response.md +22 -0
  35. package/docs/HostingRedirectsApi.md +193 -0
  36. package/docs/HostingV1RedirectsCreateRedirectRequest.md +22 -0
  37. package/docs/HostingV1RedirectsDeleteRedirectRequest.md +20 -0
  38. package/docs/HostingV1RedirectsRedirectResource.md +22 -0
  39. package/index.ts +1 -1
  40. package/package.json +1 -1
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.35.1
4
+ * API Version: 1.37.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -312,6 +312,156 @@ export interface AgencyHostingV1OrdersPlanResource {
312
312
  */
313
313
  'key': string | null;
314
314
  }
315
+ /**
316
+ *
317
+ * @export
318
+ * @interface AgencyHostingV1PhpExtensionResource
319
+ */
320
+ export interface AgencyHostingV1PhpExtensionResource {
321
+ /**
322
+ * PHP extension name.
323
+ * @type {string}
324
+ * @memberof AgencyHostingV1PhpExtensionResource
325
+ */
326
+ 'name': string;
327
+ /**
328
+ * What the extension provides.
329
+ * @type {string}
330
+ * @memberof AgencyHostingV1PhpExtensionResource
331
+ */
332
+ 'description': string;
333
+ /**
334
+ * Whether the extension is currently enabled. Extensions in the \"built-in\" state are compiled into PHP and cannot be turned off.
335
+ * @type {string}
336
+ * @memberof AgencyHostingV1PhpExtensionResource
337
+ */
338
+ 'state': AgencyHostingV1PhpExtensionResourceStateEnum;
339
+ }
340
+ export declare const AgencyHostingV1PhpExtensionResourceStateEnum: {
341
+ readonly Enabled: "enabled";
342
+ readonly Disabled: "disabled";
343
+ readonly BuiltIn: "built-in";
344
+ };
345
+ export type AgencyHostingV1PhpExtensionResourceStateEnum = typeof AgencyHostingV1PhpExtensionResourceStateEnum[keyof typeof AgencyHostingV1PhpExtensionResourceStateEnum];
346
+ /**
347
+ *
348
+ * @export
349
+ * @interface AgencyHostingV1PhpOptionResource
350
+ */
351
+ export interface AgencyHostingV1PhpOptionResource {
352
+ /**
353
+ * php.ini directive name.
354
+ * @type {string}
355
+ * @memberof AgencyHostingV1PhpOptionResource
356
+ */
357
+ 'name': string;
358
+ /**
359
+ * What the directive controls.
360
+ * @type {string}
361
+ * @memberof AgencyHostingV1PhpOptionResource
362
+ */
363
+ 'description': string;
364
+ /**
365
+ * Value applied when no custom value is set.
366
+ * @type {string}
367
+ * @memberof AgencyHostingV1PhpOptionResource
368
+ */
369
+ 'default_value': string;
370
+ /**
371
+ * Values this option accepts. Null when the option accepts any value of its type.
372
+ * @type {Array<string>}
373
+ * @memberof AgencyHostingV1PhpOptionResource
374
+ */
375
+ 'allowed_values': Array<string> | null;
376
+ /**
377
+ * Value currently in effect for the website.
378
+ * @type {string}
379
+ * @memberof AgencyHostingV1PhpOptionResource
380
+ */
381
+ 'value': string;
382
+ /**
383
+ * Whether the option takes a single value or a list of values.
384
+ * @type {string}
385
+ * @memberof AgencyHostingV1PhpOptionResource
386
+ */
387
+ 'type': AgencyHostingV1PhpOptionResourceTypeEnum;
388
+ }
389
+ export declare const AgencyHostingV1PhpOptionResourceTypeEnum: {
390
+ readonly Value: "value";
391
+ readonly List: "list";
392
+ };
393
+ export type AgencyHostingV1PhpOptionResourceTypeEnum = typeof AgencyHostingV1PhpOptionResourceTypeEnum[keyof typeof AgencyHostingV1PhpOptionResourceTypeEnum];
394
+ /**
395
+ *
396
+ * @export
397
+ * @interface AgencyHostingV1PhpUpdateExtensionsRequest
398
+ */
399
+ export interface AgencyHostingV1PhpUpdateExtensionsRequest {
400
+ /**
401
+ * Extension names, exactly as returned by the extensions endpoint.
402
+ * @type {Array<string>}
403
+ * @memberof AgencyHostingV1PhpUpdateExtensionsRequest
404
+ */
405
+ 'extensions': Array<string>;
406
+ }
407
+ /**
408
+ *
409
+ * @export
410
+ * @interface AgencyHostingV1PhpUpdateOptionsRequest
411
+ */
412
+ export interface AgencyHostingV1PhpUpdateOptionsRequest {
413
+ /**
414
+ * Option names and values. Each name must be one of the options returned by the options endpoint, and each value must satisfy that option\'s allowed_values when it declares them.
415
+ * @type {Array<AgencyHostingV1PhpUpdateOptionsRequestOptionsInner>}
416
+ * @memberof AgencyHostingV1PhpUpdateOptionsRequest
417
+ */
418
+ 'options': Array<AgencyHostingV1PhpUpdateOptionsRequestOptionsInner>;
419
+ }
420
+ /**
421
+ *
422
+ * @export
423
+ * @interface AgencyHostingV1PhpUpdateOptionsRequestOptionsInner
424
+ */
425
+ export interface AgencyHostingV1PhpUpdateOptionsRequestOptionsInner {
426
+ /**
427
+ * php.ini directive name.
428
+ * @type {string}
429
+ * @memberof AgencyHostingV1PhpUpdateOptionsRequestOptionsInner
430
+ */
431
+ 'name': string;
432
+ /**
433
+ * Value to apply.
434
+ * @type {string}
435
+ * @memberof AgencyHostingV1PhpUpdateOptionsRequestOptionsInner
436
+ */
437
+ 'value': string;
438
+ }
439
+ /**
440
+ *
441
+ * @export
442
+ * @interface AgencyHostingV1PhpUpdateVersionRequest
443
+ */
444
+ export interface AgencyHostingV1PhpUpdateVersionRequest {
445
+ /**
446
+ * PHP version to switch the website to, as major.minor. Must be one of the versions returned by the available versions endpoint.
447
+ * @type {string}
448
+ * @memberof AgencyHostingV1PhpUpdateVersionRequest
449
+ */
450
+ 'version': string;
451
+ }
452
+ /**
453
+ *
454
+ * @export
455
+ * @interface AgencyHostingV1PhpVersionResource
456
+ */
457
+ export interface AgencyHostingV1PhpVersionResource {
458
+ /**
459
+ * PHP version available for the website.
460
+ * @type {string}
461
+ * @memberof AgencyHostingV1PhpVersionResource
462
+ */
463
+ 'version': string;
464
+ }
315
465
  /**
316
466
  * Create a new Agency Plan website setup on the given order
317
467
  * @export
@@ -4253,6 +4403,25 @@ export interface HostingListOrdersV1200Response {
4253
4403
  */
4254
4404
  'meta': CommonSchemaPaginationMetaSchema;
4255
4405
  }
4406
+ /**
4407
+ *
4408
+ * @export
4409
+ * @interface HostingListWebsiteRedirectsV1200Response
4410
+ */
4411
+ export interface HostingListWebsiteRedirectsV1200Response {
4412
+ /**
4413
+ * Array of [`Hosting.V1.Redirects.RedirectResource`](#model/hostingv1redirectsredirectresource)
4414
+ * @type {Array<HostingV1RedirectsRedirectResource>}
4415
+ * @memberof HostingListWebsiteRedirectsV1200Response
4416
+ */
4417
+ 'data': Array<HostingV1RedirectsRedirectResource>;
4418
+ /**
4419
+ *
4420
+ * @type {CommonSchemaPaginationMetaSchema}
4421
+ * @memberof HostingListWebsiteRedirectsV1200Response
4422
+ */
4423
+ 'meta': CommonSchemaPaginationMetaSchema;
4424
+ }
4256
4425
  /**
4257
4426
  *
4258
4427
  * @export
@@ -5484,6 +5653,57 @@ export interface HostingV1PhpUpdatePhpVersionRequest {
5484
5653
  */
5485
5654
  'version': string;
5486
5655
  }
5656
+ /**
5657
+ *
5658
+ * @export
5659
+ * @interface HostingV1RedirectsCreateRedirectRequest
5660
+ */
5661
+ export interface HostingV1RedirectsCreateRedirectRequest {
5662
+ /**
5663
+ * Source URL on the selected website
5664
+ * @type {string}
5665
+ * @memberof HostingV1RedirectsCreateRedirectRequest
5666
+ */
5667
+ 'from': string;
5668
+ /**
5669
+ * Destination URL or IP address
5670
+ * @type {string}
5671
+ * @memberof HostingV1RedirectsCreateRedirectRequest
5672
+ */
5673
+ 'to': string;
5674
+ }
5675
+ /**
5676
+ *
5677
+ * @export
5678
+ * @interface HostingV1RedirectsDeleteRedirectRequest
5679
+ */
5680
+ export interface HostingV1RedirectsDeleteRedirectRequest {
5681
+ /**
5682
+ * Source URL returned by the list redirects endpoint
5683
+ * @type {string}
5684
+ * @memberof HostingV1RedirectsDeleteRedirectRequest
5685
+ */
5686
+ 'from': string;
5687
+ }
5688
+ /**
5689
+ *
5690
+ * @export
5691
+ * @interface HostingV1RedirectsRedirectResource
5692
+ */
5693
+ export interface HostingV1RedirectsRedirectResource {
5694
+ /**
5695
+ * Source URL
5696
+ * @type {string}
5697
+ * @memberof HostingV1RedirectsRedirectResource
5698
+ */
5699
+ 'from': string;
5700
+ /**
5701
+ * Destination URL
5702
+ * @type {string}
5703
+ * @memberof HostingV1RedirectsRedirectResource
5704
+ */
5705
+ 'to': string;
5706
+ }
5487
5707
  /**
5488
5708
  *
5489
5709
  * @export
@@ -13352,6 +13572,275 @@ export declare class AgencyHostingOrdersApi extends BaseAPI {
13352
13572
  */
13353
13573
  listOrdersV1(page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgencyHostingListOrdersV1200Response, any, {}, any>>;
13354
13574
  }
13575
+ /**
13576
+ * AgencyHostingPHPApi - axios parameter creator
13577
+ * @export
13578
+ */
13579
+ export declare const AgencyHostingPHPApiAxiosParamCreator: (configuration?: Configuration) => {
13580
+ /**
13581
+ * Lists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.
13582
+ * @summary List available PHP versions for a website
13583
+ * @param {string} websiteUid Agency Plan website UID
13584
+ * @param {*} [options] Override http request option.
13585
+ * @throws {RequiredError}
13586
+ */
13587
+ listAvailablePHPVersionsForAWebsiteV1: (websiteUid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13588
+ /**
13589
+ * Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on. Use this before creating a website; for a website that already exists, call the website-scoped versions endpoint instead.
13590
+ * @summary List available PHP versions for an order
13591
+ * @param {number} orderId Agency Plan order ID
13592
+ * @param {*} [options] Override http request option.
13593
+ * @throws {RequiredError}
13594
+ */
13595
+ listAvailablePHPVersionsForAnOrderV1: (orderId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13596
+ /**
13597
+ * Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.
13598
+ * @summary List PHP extensions for a website
13599
+ * @param {string} websiteUid Agency Plan website UID
13600
+ * @param {*} [options] Override http request option.
13601
+ * @throws {RequiredError}
13602
+ */
13603
+ listPHPExtensionsForAWebsiteV1: (websiteUid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13604
+ /**
13605
+ * Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.
13606
+ * @summary List PHP options for a website
13607
+ * @param {string} websiteUid Agency Plan website UID
13608
+ * @param {*} [options] Override http request option.
13609
+ * @throws {RequiredError}
13610
+ */
13611
+ listPHPOptionsForAWebsiteV1: (websiteUid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13612
+ /**
13613
+ * Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the \"built-in\" state, are always active and are unaffected.
13614
+ * @summary Replace website PHP extensions
13615
+ * @param {string} websiteUid Agency Plan website UID
13616
+ * @param {AgencyHostingV1PhpUpdateExtensionsRequest} agencyHostingV1PhpUpdateExtensionsRequest
13617
+ * @param {*} [options] Override http request option.
13618
+ * @throws {RequiredError}
13619
+ */
13620
+ replaceWebsitePHPExtensionsV1: (websiteUid: string, agencyHostingV1PhpUpdateExtensionsRequest: AgencyHostingV1PhpUpdateExtensionsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13621
+ /**
13622
+ * Replaces the custom php.ini values on an Agency Plan website with the ones provided. Any option not in the request is reset to its default, so call the options endpoint first and send the full desired set. Sending an empty array resets every option to its default.
13623
+ * @summary Replace website PHP options
13624
+ * @param {string} websiteUid Agency Plan website UID
13625
+ * @param {AgencyHostingV1PhpUpdateOptionsRequest} agencyHostingV1PhpUpdateOptionsRequest
13626
+ * @param {*} [options] Override http request option.
13627
+ * @throws {RequiredError}
13628
+ */
13629
+ replaceWebsitePHPOptionsV1: (websiteUid: string, agencyHostingV1PhpUpdateOptionsRequest: AgencyHostingV1PhpUpdateOptionsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13630
+ /**
13631
+ * Switches an Agency Plan website to a different PHP version. Call the available versions endpoint first to see which versions can be selected. The website restarts on the new version, so requests served during the switch may fail and code that is incompatible with the target version will break.
13632
+ * @summary Update website PHP version
13633
+ * @param {string} websiteUid Agency Plan website UID
13634
+ * @param {AgencyHostingV1PhpUpdateVersionRequest} agencyHostingV1PhpUpdateVersionRequest
13635
+ * @param {*} [options] Override http request option.
13636
+ * @throws {RequiredError}
13637
+ */
13638
+ updateWebsitePHPVersionV1: (websiteUid: string, agencyHostingV1PhpUpdateVersionRequest: AgencyHostingV1PhpUpdateVersionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13639
+ };
13640
+ /**
13641
+ * AgencyHostingPHPApi - functional programming interface
13642
+ * @export
13643
+ */
13644
+ export declare const AgencyHostingPHPApiFp: (configuration?: Configuration) => {
13645
+ /**
13646
+ * Lists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.
13647
+ * @summary List available PHP versions for a website
13648
+ * @param {string} websiteUid Agency Plan website UID
13649
+ * @param {*} [options] Override http request option.
13650
+ * @throws {RequiredError}
13651
+ */
13652
+ listAvailablePHPVersionsForAWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgencyHostingV1PhpVersionResource>>>;
13653
+ /**
13654
+ * Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on. Use this before creating a website; for a website that already exists, call the website-scoped versions endpoint instead.
13655
+ * @summary List available PHP versions for an order
13656
+ * @param {number} orderId Agency Plan order ID
13657
+ * @param {*} [options] Override http request option.
13658
+ * @throws {RequiredError}
13659
+ */
13660
+ listAvailablePHPVersionsForAnOrderV1(orderId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgencyHostingV1PhpVersionResource>>>;
13661
+ /**
13662
+ * Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.
13663
+ * @summary List PHP extensions for a website
13664
+ * @param {string} websiteUid Agency Plan website UID
13665
+ * @param {*} [options] Override http request option.
13666
+ * @throws {RequiredError}
13667
+ */
13668
+ listPHPExtensionsForAWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgencyHostingV1PhpExtensionResource>>>;
13669
+ /**
13670
+ * Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.
13671
+ * @summary List PHP options for a website
13672
+ * @param {string} websiteUid Agency Plan website UID
13673
+ * @param {*} [options] Override http request option.
13674
+ * @throws {RequiredError}
13675
+ */
13676
+ listPHPOptionsForAWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgencyHostingV1PhpOptionResource>>>;
13677
+ /**
13678
+ * Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the \"built-in\" state, are always active and are unaffected.
13679
+ * @summary Replace website PHP extensions
13680
+ * @param {string} websiteUid Agency Plan website UID
13681
+ * @param {AgencyHostingV1PhpUpdateExtensionsRequest} agencyHostingV1PhpUpdateExtensionsRequest
13682
+ * @param {*} [options] Override http request option.
13683
+ * @throws {RequiredError}
13684
+ */
13685
+ replaceWebsitePHPExtensionsV1(websiteUid: string, agencyHostingV1PhpUpdateExtensionsRequest: AgencyHostingV1PhpUpdateExtensionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
13686
+ /**
13687
+ * Replaces the custom php.ini values on an Agency Plan website with the ones provided. Any option not in the request is reset to its default, so call the options endpoint first and send the full desired set. Sending an empty array resets every option to its default.
13688
+ * @summary Replace website PHP options
13689
+ * @param {string} websiteUid Agency Plan website UID
13690
+ * @param {AgencyHostingV1PhpUpdateOptionsRequest} agencyHostingV1PhpUpdateOptionsRequest
13691
+ * @param {*} [options] Override http request option.
13692
+ * @throws {RequiredError}
13693
+ */
13694
+ replaceWebsitePHPOptionsV1(websiteUid: string, agencyHostingV1PhpUpdateOptionsRequest: AgencyHostingV1PhpUpdateOptionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
13695
+ /**
13696
+ * Switches an Agency Plan website to a different PHP version. Call the available versions endpoint first to see which versions can be selected. The website restarts on the new version, so requests served during the switch may fail and code that is incompatible with the target version will break.
13697
+ * @summary Update website PHP version
13698
+ * @param {string} websiteUid Agency Plan website UID
13699
+ * @param {AgencyHostingV1PhpUpdateVersionRequest} agencyHostingV1PhpUpdateVersionRequest
13700
+ * @param {*} [options] Override http request option.
13701
+ * @throws {RequiredError}
13702
+ */
13703
+ updateWebsitePHPVersionV1(websiteUid: string, agencyHostingV1PhpUpdateVersionRequest: AgencyHostingV1PhpUpdateVersionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
13704
+ };
13705
+ /**
13706
+ * AgencyHostingPHPApi - factory interface
13707
+ * @export
13708
+ */
13709
+ export declare const AgencyHostingPHPApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
13710
+ /**
13711
+ * Lists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.
13712
+ * @summary List available PHP versions for a website
13713
+ * @param {string} websiteUid Agency Plan website UID
13714
+ * @param {*} [options] Override http request option.
13715
+ * @throws {RequiredError}
13716
+ */
13717
+ listAvailablePHPVersionsForAWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AgencyHostingV1PhpVersionResource>>;
13718
+ /**
13719
+ * Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on. Use this before creating a website; for a website that already exists, call the website-scoped versions endpoint instead.
13720
+ * @summary List available PHP versions for an order
13721
+ * @param {number} orderId Agency Plan order ID
13722
+ * @param {*} [options] Override http request option.
13723
+ * @throws {RequiredError}
13724
+ */
13725
+ listAvailablePHPVersionsForAnOrderV1(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<AgencyHostingV1PhpVersionResource>>;
13726
+ /**
13727
+ * Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.
13728
+ * @summary List PHP extensions for a website
13729
+ * @param {string} websiteUid Agency Plan website UID
13730
+ * @param {*} [options] Override http request option.
13731
+ * @throws {RequiredError}
13732
+ */
13733
+ listPHPExtensionsForAWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AgencyHostingV1PhpExtensionResource>>;
13734
+ /**
13735
+ * Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.
13736
+ * @summary List PHP options for a website
13737
+ * @param {string} websiteUid Agency Plan website UID
13738
+ * @param {*} [options] Override http request option.
13739
+ * @throws {RequiredError}
13740
+ */
13741
+ listPHPOptionsForAWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AgencyHostingV1PhpOptionResource>>;
13742
+ /**
13743
+ * Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the \"built-in\" state, are always active and are unaffected.
13744
+ * @summary Replace website PHP extensions
13745
+ * @param {string} websiteUid Agency Plan website UID
13746
+ * @param {AgencyHostingV1PhpUpdateExtensionsRequest} agencyHostingV1PhpUpdateExtensionsRequest
13747
+ * @param {*} [options] Override http request option.
13748
+ * @throws {RequiredError}
13749
+ */
13750
+ replaceWebsitePHPExtensionsV1(websiteUid: string, agencyHostingV1PhpUpdateExtensionsRequest: AgencyHostingV1PhpUpdateExtensionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
13751
+ /**
13752
+ * Replaces the custom php.ini values on an Agency Plan website with the ones provided. Any option not in the request is reset to its default, so call the options endpoint first and send the full desired set. Sending an empty array resets every option to its default.
13753
+ * @summary Replace website PHP options
13754
+ * @param {string} websiteUid Agency Plan website UID
13755
+ * @param {AgencyHostingV1PhpUpdateOptionsRequest} agencyHostingV1PhpUpdateOptionsRequest
13756
+ * @param {*} [options] Override http request option.
13757
+ * @throws {RequiredError}
13758
+ */
13759
+ replaceWebsitePHPOptionsV1(websiteUid: string, agencyHostingV1PhpUpdateOptionsRequest: AgencyHostingV1PhpUpdateOptionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
13760
+ /**
13761
+ * Switches an Agency Plan website to a different PHP version. Call the available versions endpoint first to see which versions can be selected. The website restarts on the new version, so requests served during the switch may fail and code that is incompatible with the target version will break.
13762
+ * @summary Update website PHP version
13763
+ * @param {string} websiteUid Agency Plan website UID
13764
+ * @param {AgencyHostingV1PhpUpdateVersionRequest} agencyHostingV1PhpUpdateVersionRequest
13765
+ * @param {*} [options] Override http request option.
13766
+ * @throws {RequiredError}
13767
+ */
13768
+ updateWebsitePHPVersionV1(websiteUid: string, agencyHostingV1PhpUpdateVersionRequest: AgencyHostingV1PhpUpdateVersionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
13769
+ };
13770
+ /**
13771
+ * AgencyHostingPHPApi - object-oriented interface
13772
+ * @export
13773
+ * @class AgencyHostingPHPApi
13774
+ * @extends {BaseAPI}
13775
+ */
13776
+ export declare class AgencyHostingPHPApi extends BaseAPI {
13777
+ /**
13778
+ * Lists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.
13779
+ * @summary List available PHP versions for a website
13780
+ * @param {string} websiteUid Agency Plan website UID
13781
+ * @param {*} [options] Override http request option.
13782
+ * @throws {RequiredError}
13783
+ * @memberof AgencyHostingPHPApi
13784
+ */
13785
+ listAvailablePHPVersionsForAWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgencyHostingV1PhpVersionResource[], any, {}, any>>;
13786
+ /**
13787
+ * Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on. Use this before creating a website; for a website that already exists, call the website-scoped versions endpoint instead.
13788
+ * @summary List available PHP versions for an order
13789
+ * @param {number} orderId Agency Plan order ID
13790
+ * @param {*} [options] Override http request option.
13791
+ * @throws {RequiredError}
13792
+ * @memberof AgencyHostingPHPApi
13793
+ */
13794
+ listAvailablePHPVersionsForAnOrderV1(orderId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgencyHostingV1PhpVersionResource[], any, {}, any>>;
13795
+ /**
13796
+ * Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.
13797
+ * @summary List PHP extensions for a website
13798
+ * @param {string} websiteUid Agency Plan website UID
13799
+ * @param {*} [options] Override http request option.
13800
+ * @throws {RequiredError}
13801
+ * @memberof AgencyHostingPHPApi
13802
+ */
13803
+ listPHPExtensionsForAWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgencyHostingV1PhpExtensionResource[], any, {}, any>>;
13804
+ /**
13805
+ * Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.
13806
+ * @summary List PHP options for a website
13807
+ * @param {string} websiteUid Agency Plan website UID
13808
+ * @param {*} [options] Override http request option.
13809
+ * @throws {RequiredError}
13810
+ * @memberof AgencyHostingPHPApi
13811
+ */
13812
+ listPHPOptionsForAWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgencyHostingV1PhpOptionResource[], any, {}, any>>;
13813
+ /**
13814
+ * Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the \"built-in\" state, are always active and are unaffected.
13815
+ * @summary Replace website PHP extensions
13816
+ * @param {string} websiteUid Agency Plan website UID
13817
+ * @param {AgencyHostingV1PhpUpdateExtensionsRequest} agencyHostingV1PhpUpdateExtensionsRequest
13818
+ * @param {*} [options] Override http request option.
13819
+ * @throws {RequiredError}
13820
+ * @memberof AgencyHostingPHPApi
13821
+ */
13822
+ replaceWebsitePHPExtensionsV1(websiteUid: string, agencyHostingV1PhpUpdateExtensionsRequest: AgencyHostingV1PhpUpdateExtensionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
13823
+ /**
13824
+ * Replaces the custom php.ini values on an Agency Plan website with the ones provided. Any option not in the request is reset to its default, so call the options endpoint first and send the full desired set. Sending an empty array resets every option to its default.
13825
+ * @summary Replace website PHP options
13826
+ * @param {string} websiteUid Agency Plan website UID
13827
+ * @param {AgencyHostingV1PhpUpdateOptionsRequest} agencyHostingV1PhpUpdateOptionsRequest
13828
+ * @param {*} [options] Override http request option.
13829
+ * @throws {RequiredError}
13830
+ * @memberof AgencyHostingPHPApi
13831
+ */
13832
+ replaceWebsitePHPOptionsV1(websiteUid: string, agencyHostingV1PhpUpdateOptionsRequest: AgencyHostingV1PhpUpdateOptionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
13833
+ /**
13834
+ * Switches an Agency Plan website to a different PHP version. Call the available versions endpoint first to see which versions can be selected. The website restarts on the new version, so requests served during the switch may fail and code that is incompatible with the target version will break.
13835
+ * @summary Update website PHP version
13836
+ * @param {string} websiteUid Agency Plan website UID
13837
+ * @param {AgencyHostingV1PhpUpdateVersionRequest} agencyHostingV1PhpUpdateVersionRequest
13838
+ * @param {*} [options] Override http request option.
13839
+ * @throws {RequiredError}
13840
+ * @memberof AgencyHostingPHPApi
13841
+ */
13842
+ updateWebsitePHPVersionV1(websiteUid: string, agencyHostingV1PhpUpdateVersionRequest: AgencyHostingV1PhpUpdateVersionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
13843
+ }
13355
13844
  /**
13356
13845
  * AgencyHostingWebsiteSetupsApi - axios parameter creator
13357
13846
  * @export
@@ -18620,6 +19109,159 @@ export declare class HostingPHPApi extends BaseAPI {
18620
19109
  */
18621
19110
  updatePHPVersionV1(username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
18622
19111
  }
19112
+ /**
19113
+ * HostingRedirectsApi - axios parameter creator
19114
+ * @export
19115
+ */
19116
+ export declare const HostingRedirectsApiAxiosParamCreator: (configuration?: Configuration) => {
19117
+ /**
19118
+ * Creates a redirect from a URL on the selected website to another URL or IP address.
19119
+ * @summary Create website redirect
19120
+ * @param {string} username
19121
+ * @param {string} domain Domain name
19122
+ * @param {HostingV1RedirectsCreateRedirectRequest} hostingV1RedirectsCreateRedirectRequest
19123
+ * @param {*} [options] Override http request option.
19124
+ * @throws {RequiredError}
19125
+ */
19126
+ createWebsiteRedirectV1: (username: string, domain: string, hostingV1RedirectsCreateRedirectRequest: HostingV1RedirectsCreateRedirectRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19127
+ /**
19128
+ * Permanently deletes the redirect identified by its source URL. Pass the `from` value exactly as returned by the list redirects endpoint.
19129
+ * @summary Delete website redirect
19130
+ * @param {string} username
19131
+ * @param {string} domain Domain name
19132
+ * @param {string} from Source URL returned by the list redirects endpoint.
19133
+ * @param {*} [options] Override http request option.
19134
+ * @throws {RequiredError}
19135
+ */
19136
+ deleteWebsiteRedirectV1: (username: string, domain: string, from: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19137
+ /**
19138
+ * Returns a paginated list of redirects configured for the selected website.
19139
+ * @summary List website redirects
19140
+ * @param {string} username
19141
+ * @param {string} domain Domain name
19142
+ * @param {number} [page] Page number
19143
+ * @param {number} [perPage] Number of items per page
19144
+ * @param {*} [options] Override http request option.
19145
+ * @throws {RequiredError}
19146
+ */
19147
+ listWebsiteRedirectsV1: (username: string, domain: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19148
+ };
19149
+ /**
19150
+ * HostingRedirectsApi - functional programming interface
19151
+ * @export
19152
+ */
19153
+ export declare const HostingRedirectsApiFp: (configuration?: Configuration) => {
19154
+ /**
19155
+ * Creates a redirect from a URL on the selected website to another URL or IP address.
19156
+ * @summary Create website redirect
19157
+ * @param {string} username
19158
+ * @param {string} domain Domain name
19159
+ * @param {HostingV1RedirectsCreateRedirectRequest} hostingV1RedirectsCreateRedirectRequest
19160
+ * @param {*} [options] Override http request option.
19161
+ * @throws {RequiredError}
19162
+ */
19163
+ createWebsiteRedirectV1(username: string, domain: string, hostingV1RedirectsCreateRedirectRequest: HostingV1RedirectsCreateRedirectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1RedirectsRedirectResource>>;
19164
+ /**
19165
+ * Permanently deletes the redirect identified by its source URL. Pass the `from` value exactly as returned by the list redirects endpoint.
19166
+ * @summary Delete website redirect
19167
+ * @param {string} username
19168
+ * @param {string} domain Domain name
19169
+ * @param {string} from Source URL returned by the list redirects endpoint.
19170
+ * @param {*} [options] Override http request option.
19171
+ * @throws {RequiredError}
19172
+ */
19173
+ deleteWebsiteRedirectV1(username: string, domain: string, from: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
19174
+ /**
19175
+ * Returns a paginated list of redirects configured for the selected website.
19176
+ * @summary List website redirects
19177
+ * @param {string} username
19178
+ * @param {string} domain Domain name
19179
+ * @param {number} [page] Page number
19180
+ * @param {number} [perPage] Number of items per page
19181
+ * @param {*} [options] Override http request option.
19182
+ * @throws {RequiredError}
19183
+ */
19184
+ listWebsiteRedirectsV1(username: string, domain: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingListWebsiteRedirectsV1200Response>>;
19185
+ };
19186
+ /**
19187
+ * HostingRedirectsApi - factory interface
19188
+ * @export
19189
+ */
19190
+ export declare const HostingRedirectsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
19191
+ /**
19192
+ * Creates a redirect from a URL on the selected website to another URL or IP address.
19193
+ * @summary Create website redirect
19194
+ * @param {string} username
19195
+ * @param {string} domain Domain name
19196
+ * @param {HostingV1RedirectsCreateRedirectRequest} hostingV1RedirectsCreateRedirectRequest
19197
+ * @param {*} [options] Override http request option.
19198
+ * @throws {RequiredError}
19199
+ */
19200
+ createWebsiteRedirectV1(username: string, domain: string, hostingV1RedirectsCreateRedirectRequest: HostingV1RedirectsCreateRedirectRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1RedirectsRedirectResource>;
19201
+ /**
19202
+ * Permanently deletes the redirect identified by its source URL. Pass the `from` value exactly as returned by the list redirects endpoint.
19203
+ * @summary Delete website redirect
19204
+ * @param {string} username
19205
+ * @param {string} domain Domain name
19206
+ * @param {string} from Source URL returned by the list redirects endpoint.
19207
+ * @param {*} [options] Override http request option.
19208
+ * @throws {RequiredError}
19209
+ */
19210
+ deleteWebsiteRedirectV1(username: string, domain: string, from: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
19211
+ /**
19212
+ * Returns a paginated list of redirects configured for the selected website.
19213
+ * @summary List website redirects
19214
+ * @param {string} username
19215
+ * @param {string} domain Domain name
19216
+ * @param {number} [page] Page number
19217
+ * @param {number} [perPage] Number of items per page
19218
+ * @param {*} [options] Override http request option.
19219
+ * @throws {RequiredError}
19220
+ */
19221
+ listWebsiteRedirectsV1(username: string, domain: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<HostingListWebsiteRedirectsV1200Response>;
19222
+ };
19223
+ /**
19224
+ * HostingRedirectsApi - object-oriented interface
19225
+ * @export
19226
+ * @class HostingRedirectsApi
19227
+ * @extends {BaseAPI}
19228
+ */
19229
+ export declare class HostingRedirectsApi extends BaseAPI {
19230
+ /**
19231
+ * Creates a redirect from a URL on the selected website to another URL or IP address.
19232
+ * @summary Create website redirect
19233
+ * @param {string} username
19234
+ * @param {string} domain Domain name
19235
+ * @param {HostingV1RedirectsCreateRedirectRequest} hostingV1RedirectsCreateRedirectRequest
19236
+ * @param {*} [options] Override http request option.
19237
+ * @throws {RequiredError}
19238
+ * @memberof HostingRedirectsApi
19239
+ */
19240
+ createWebsiteRedirectV1(username: string, domain: string, hostingV1RedirectsCreateRedirectRequest: HostingV1RedirectsCreateRedirectRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1RedirectsRedirectResource, any, {}, any>>;
19241
+ /**
19242
+ * Permanently deletes the redirect identified by its source URL. Pass the `from` value exactly as returned by the list redirects endpoint.
19243
+ * @summary Delete website redirect
19244
+ * @param {string} username
19245
+ * @param {string} domain Domain name
19246
+ * @param {string} from Source URL returned by the list redirects endpoint.
19247
+ * @param {*} [options] Override http request option.
19248
+ * @throws {RequiredError}
19249
+ * @memberof HostingRedirectsApi
19250
+ */
19251
+ deleteWebsiteRedirectV1(username: string, domain: string, from: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
19252
+ /**
19253
+ * Returns a paginated list of redirects configured for the selected website.
19254
+ * @summary List website redirects
19255
+ * @param {string} username
19256
+ * @param {string} domain Domain name
19257
+ * @param {number} [page] Page number
19258
+ * @param {number} [perPage] Number of items per page
19259
+ * @param {*} [options] Override http request option.
19260
+ * @throws {RequiredError}
19261
+ * @memberof HostingRedirectsApi
19262
+ */
19263
+ listWebsiteRedirectsV1(username: string, domain: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingListWebsiteRedirectsV1200Response, any, {}, any>>;
19264
+ }
18623
19265
  /**
18624
19266
  * HostingWebsitesApi - axios parameter creator
18625
19267
  * @export