hostinger-api-mcp 2.12.0 → 2.13.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.
package/types.d.ts CHANGED
@@ -7436,12 +7436,15 @@ directly usable template URL and for the tags the form puts on the contacts it c
7436
7436
  };
7437
7437
 
7438
7438
  /**
7439
- * Retrieve the DNS configuration status for a profile's domain.
7439
+ * Get the sending domain connected to the profile, its verification status and any suspended
7440
+ sender addresses.
7440
7441
 
7441
- This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the
7442
- actual records found and the suggested records required for correct email delivery.
7442
+ Campaigns only go out once a domain is connected and active, so this is the cheapest way to
7443
+ check that precondition before building one. A profile with no domain connected returns the
7444
+ same shape with every field set to `null`. For the individual MX, SPF, DKIM and DMARC records
7445
+ behind the status, use the DNS status endpoint.
7443
7446
  */
7444
- "reach_profiles_domain-dns-status": {
7447
+ "reach_profiles_connected-sending-domain": {
7445
7448
  params: {
7446
7449
  /**
7447
7450
  * Profile uuid parameter
@@ -7452,15 +7455,61 @@ actual records found and the suggested records required for correct email delive
7452
7455
  };
7453
7456
 
7454
7457
  /**
7455
- * Get the sending domain connected to the profile, its verification status and any suspended
7456
- sender addresses.
7458
+ * Connect a sending domain to the profile so emails can be sent from addresses on it.
7457
7459
 
7458
- Campaigns only go out once a domain is connected and active, so this is the cheapest way to
7459
- check that precondition before building one. A profile with no domain connected returns the
7460
- same shape with every field set to `null`. For the individual MX, SPF, DKIM and DMARC records
7461
- behind the status, use the DNS status endpoint.
7460
+ Connecting does not make the domain ready to send: check the DNS status endpoint next for
7461
+ records that are still missing. A domain the account owns or has already verified connects
7462
+ immediately. Any other domain starts a TXT ownership verification and returns `409`;
7463
+ complete the verification in Reach, then retry. Returns `422` when the profile or another
7464
+ profile already has the domain, the domain is blocked, or its ownership cannot be verified.
7465
+ An already connected domain is never replaced.
7466
+
7467
+ On success the sender address of draft and scheduled campaigns, and of published automation
7468
+ and double opt-in emails, moves onto the new domain in the background, keeping the part
7469
+ before the `@`.
7462
7470
  */
7463
- "reach_profiles_connected-sending-domain": {
7471
+ "reach_profiles_connect-sending-domain": {
7472
+ params: {
7473
+ /**
7474
+ * Profile uuid parameter
7475
+ */
7476
+ profileUuid: string;
7477
+ /**
7478
+ * domain parameter
7479
+ */
7480
+ domain: string;
7481
+ };
7482
+ response: any; // Response structure will depend on the API
7483
+ };
7484
+
7485
+ /**
7486
+ * Disconnect the sending domain from the profile.
7487
+
7488
+ The domain record is removed, so the profile has no sending domain afterwards and campaigns
7489
+ cannot be sent until a domain is connected again. Sender addresses already stored on
7490
+ campaigns, automations and settings are left untouched and keep pointing at the removed
7491
+ domain. A domain that is not connected to the profile also succeeds, so success is not proof
7492
+ that anything was deleted. DNS records at the DNS provider are not removed. To switch
7493
+ domains, delete this one and connect the new one. Confirm the domain with the customer
7494
+ before calling.
7495
+ */
7496
+ "reach_profiles_delete-sending-domain": {
7497
+ params: {
7498
+ /**
7499
+ * Profile uuid parameter
7500
+ */
7501
+ profileUuid: string;
7502
+ };
7503
+ response: any; // Response structure will depend on the API
7504
+ };
7505
+
7506
+ /**
7507
+ * Retrieve the DNS configuration status for a profile's domain.
7508
+
7509
+ This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the
7510
+ actual records found and the suggested records required for correct email delivery.
7511
+ */
7512
+ "reach_profiles_domain-dns-status": {
7464
7513
  params: {
7465
7514
  /**
7466
7515
  * Profile uuid parameter
@@ -7519,6 +7568,133 @@ not kept.
7519
7568
  response: any; // Response structure will depend on the API
7520
7569
  };
7521
7570
 
7571
+ /**
7572
+ * Get the profile's saved sender identity and brand details.
7573
+
7574
+ Read the default sender before creating a campaign instead of asking the customer, and
7575
+ reuse the brand fields when generating email content. Any field can be `null` for a profile
7576
+ that never filled its settings in. This does not check that the sending domain is
7577
+ verified, use the connected sending domain endpoint for that.
7578
+ */
7579
+ "reach_profiles_settings": {
7580
+ params: {
7581
+ /**
7582
+ * Profile uuid parameter
7583
+ */
7584
+ profileUuid: string;
7585
+ };
7586
+ response: any; // Response structure will depend on the API
7587
+ };
7588
+
7589
+ /**
7590
+ * Change the profile's default sender and brand details.
7591
+
7592
+ Send only the fields to change: every omitted field keeps its value, and `null` or an empty
7593
+ string clears a text field. The default sender is what campaigns created afterwards start
7594
+ from; existing campaigns keep their own sender. `sender_email` is only the part before the
7595
+ `@`, because Reach combines it with the profile's connected sending domain, so an address
7596
+ outside that domain cannot be set. Connecting a sending domain is a separate endpoint and
7597
+ a connected domain cannot be changed here. Returns the settings after the change.
7598
+ */
7599
+ "reach_profiles_update-settings": {
7600
+ params: {
7601
+ /**
7602
+ * Profile uuid parameter
7603
+ */
7604
+ profileUuid: string;
7605
+ /**
7606
+ * brand_name parameter
7607
+ */
7608
+ brand_name?: string;
7609
+ /**
7610
+ * website_url parameter
7611
+ */
7612
+ website_url?: string;
7613
+ /**
7614
+ * business_address parameter
7615
+ */
7616
+ business_address?: string;
7617
+ /**
7618
+ * privacy_policy_url parameter
7619
+ */
7620
+ privacy_policy_url?: string;
7621
+ /**
7622
+ * accent_color parameter
7623
+ */
7624
+ accent_color?: string;
7625
+ /**
7626
+ * button_color parameter
7627
+ */
7628
+ button_color?: string;
7629
+ /**
7630
+ * background_color parameter
7631
+ */
7632
+ background_color?: string;
7633
+ /**
7634
+ * text_color parameter
7635
+ */
7636
+ text_color?: string;
7637
+ /**
7638
+ * links_color parameter
7639
+ */
7640
+ links_color?: string;
7641
+ /**
7642
+ * Button text colour.
7643
+ */
7644
+ button_text?: string;
7645
+ /**
7646
+ * button_corners parameter
7647
+ */
7648
+ button_corners?: number;
7649
+ /**
7650
+ * font_family parameter
7651
+ */
7652
+ font_family?: string;
7653
+ /**
7654
+ * heading_font_family parameter
7655
+ */
7656
+ heading_font_family?: string;
7657
+ /**
7658
+ * Public image URL. Logo uploads are not supported.
7659
+ */
7660
+ logo_url?: string;
7661
+ /**
7662
+ * social_links parameter
7663
+ */
7664
+ social_links?: array;
7665
+ /**
7666
+ * Social profile links keyed by platform.
7667
+ */
7668
+ socials?: object;
7669
+ /**
7670
+ * about parameter
7671
+ */
7672
+ about?: string;
7673
+ /**
7674
+ * keywords parameter
7675
+ */
7676
+ keywords?: array;
7677
+ /**
7678
+ * topics parameter
7679
+ */
7680
+ topics?: array;
7681
+ /**
7682
+ * selling_points parameter
7683
+ */
7684
+ selling_points?: array;
7685
+ /**
7686
+ * Default sender name. Letters, numbers and spaces only.
7687
+ */
7688
+ sender_name?: string;
7689
+ /**
7690
+ * Part of the default sender address before the `@`, for example `hello`. Never send a
7691
+ full address: Reach adds the profile's connected sending domain itself.
7692
+ */
7693
+ sender_email?: string;
7694
+ };
7695
+ response: any; // Response structure will depend on the API
7696
+ };
7697
+
7522
7698
  /**
7523
7699
  * Get a list of the email templates in a profile, most recently updated first.
7524
7700