hostinger-api-sdk 1.28.0 → 1.29.1

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/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.29.0
7
+ * API Version: 1.30.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -20,14 +20,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.MailV1SchemaUpdateWebhookRequestSchemaEventsEnum = exports.MailV1SchemaCreateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaCreateWebhookRequestSchemaEventsEnum = exports.MailV1OrdersOrderResourceStatusEnum = exports.MailV1MailboxesMailboxResourceStatusEnum = exports.MailV1LogsMailboxActionsMailboxActionLogResourceEventEnum = exports.MailV1LogsActionActionLogResourceResponseStatusEnum = exports.MailV1ApiTokensApiTokenResourceTypeEnum = exports.MailV1ApiTokensApiTokenCreatedResourceTypeEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsVulnerabilityResourceSeverityEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1WHOISChangeUpdateRequestChangeForEnum = exports.DomainsV1PortfolioClaimResourceStatusEnum = exports.DomainsV1MoveMoveResourceStatusEnum = exports.DomainsV1IRTPVerificationResourceStatusEnum = exports.DomainsV1ForwardingUpdateRequestRedirectTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = exports.AgencyHostingV1WebsitesWebsiteResourceStateEnum = exports.AgencyHostingV1WebsitesWebsiteProcessResourceStatusEnum = exports.AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = exports.AgencyHostingV1SetupsCreateSetupRequestTypeEnum = void 0;
23
- exports.AgencyHostingCacheApi = exports.AgencyHostingCacheApiFactory = exports.AgencyHostingCacheApiFp = exports.AgencyHostingCacheApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1MemcachedMemcachedStatusResourceStatusEnum = exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = exports.WordPressV1InstallationsUpdateResourceTypeEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ContactsUpdateRequestSubscriptionStatusEnum = exports.ReachV1ContactsTagsTagResourceTypeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = exports.ReachV1ContactsProfileContactResourceSourceEnum = exports.ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsFieldsStoreRequestTypeEnum = exports.ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = exports.ReachV1ContactsFieldsContactFieldResourceTypeEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactDetailsResourceSourceEnum = exports.ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = exports.MailV1WebhooksWebhookSecretResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceEventsEnum = exports.MailV1WebhooksWebhookResourceStatusEnum = exports.MailV1WebhooksWebhookResourceEventsEnum = exports.MailV1WebhooksWebhookCreatedResourceStatusEnum = exports.MailV1WebhooksWebhookCreatedResourceEventsEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaStatusEnum = void 0;
24
- exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.BillingOrdersApi = exports.BillingOrdersApiFactory = exports.BillingOrdersApiFp = exports.BillingOrdersApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.AgencyHostingWordPressApi = exports.AgencyHostingWordPressApiFactory = exports.AgencyHostingWordPressApiFp = exports.AgencyHostingWordPressApiAxiosParamCreator = exports.AgencyHostingWebsitesApi = exports.AgencyHostingWebsitesApiFactory = exports.AgencyHostingWebsitesApiFp = exports.AgencyHostingWebsitesApiAxiosParamCreator = exports.AgencyHostingWebsiteSetupsApi = exports.AgencyHostingWebsiteSetupsApiFactory = exports.AgencyHostingWebsiteSetupsApiFp = exports.AgencyHostingWebsiteSetupsApiAxiosParamCreator = exports.AgencyHostingOrdersApi = exports.AgencyHostingOrdersApiFactory = exports.AgencyHostingOrdersApiFp = exports.AgencyHostingOrdersApiAxiosParamCreator = exports.AgencyHostingFilesApi = exports.AgencyHostingFilesApiFactory = exports.AgencyHostingFilesApiFp = exports.AgencyHostingFilesApiAxiosParamCreator = exports.AgencyHostingDomainsApi = exports.AgencyHostingDomainsApiFactory = exports.AgencyHostingDomainsApiFp = exports.AgencyHostingDomainsApiAxiosParamCreator = exports.AgencyHostingDatacentersApi = exports.AgencyHostingDatacentersApiFactory = exports.AgencyHostingDatacentersApiFp = exports.AgencyHostingDatacentersApiAxiosParamCreator = exports.AgencyHostingDatabasesApi = exports.AgencyHostingDatabasesApiFactory = exports.AgencyHostingDatabasesApiFp = exports.AgencyHostingDatabasesApiAxiosParamCreator = exports.AgencyHostingCronJobsApi = exports.AgencyHostingCronJobsApiFactory = exports.AgencyHostingCronJobsApiFp = exports.AgencyHostingCronJobsApiAxiosParamCreator = void 0;
25
- exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsTransferApi = exports.DomainsTransferApiFactory = exports.DomainsTransferApiFp = exports.DomainsTransferApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsMoveApi = exports.DomainsMoveApiFactory = exports.DomainsMoveApiFp = exports.DomainsMoveApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = void 0;
26
- exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJsVulnerabilitiesV1SeveritiesEnum = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HostingCacheApi = exports.HostingCacheApiFactory = exports.HostingCacheApiFp = exports.HostingCacheApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.EcommerceProductsApi = void 0;
27
- exports.MailWebhooksApiFactory = exports.MailWebhooksApiFp = exports.MailWebhooksApiAxiosParamCreator = exports.ListOrdersV1SortEnum = exports.ListOrdersV1StatusEnum = exports.MailOrdersApi = exports.MailOrdersApiFactory = exports.MailOrdersApiFp = exports.MailOrdersApiAxiosParamCreator = exports.ListMailboxesV1SortEnum = exports.MailMailboxesApi = exports.MailMailboxesApiFactory = exports.MailMailboxesApiFp = exports.MailMailboxesApiAxiosParamCreator = exports.ListOutboundLogsV1StatusEnum = exports.ListMailboxActionLogsV1EventEnum = exports.ListInboundLogsV1StatusEnum = exports.ListActionLogsV1StatusEnum = exports.ListAccessLogsV1ProtocolEnum = exports.ListAccessLogsV1StatusEnum = exports.MailLogsApi = exports.MailLogsApiFactory = exports.MailLogsApiFp = exports.MailLogsApiAxiosParamCreator = exports.MailForwardersApi = exports.MailForwardersApiFactory = exports.MailForwardersApiFp = exports.MailForwardersApiAxiosParamCreator = exports.MailCatchallsApi = exports.MailCatchallsApiFactory = exports.MailCatchallsApiFp = exports.MailCatchallsApiAxiosParamCreator = exports.MailAutorepliesApi = exports.MailAutorepliesApiFactory = exports.MailAutorepliesApiFp = exports.MailAutorepliesApiAxiosParamCreator = exports.MailAliasesApi = exports.MailAliasesApiFactory = exports.MailAliasesApiFp = exports.MailAliasesApiAxiosParamCreator = exports.MailAPITokensApi = exports.MailAPITokensApiFactory = exports.MailAPITokensApiFp = exports.MailAPITokensApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = void 0;
28
- exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachTagsApi = exports.ReachTagsApiFactory = exports.ReachTagsApiFp = exports.ReachTagsApiAxiosParamCreator = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListProfileContactsV1SubscriptionStatusEnum = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ReachContactFieldsApi = exports.ReachContactFieldsApiFactory = exports.ReachContactFieldsApiFp = exports.ReachContactFieldsApiAxiosParamCreator = exports.ListWebhooksV1StatusEnum = exports.MailWebhooksApi = void 0;
29
- exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = void 0;
30
- exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = void 0;
23
+ exports.AgencyHostingCacheApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1MemcachedMemcachedStatusResourceStatusEnum = exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = exports.WordPressV1InstallationsUpdateResourceTypeEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ContactsUpdateRequestSubscriptionStatusEnum = exports.ReachV1ContactsTagsTagResourceTypeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestLogicEnum = exports.ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = exports.ReachV1ContactsProfileContactResourceSourceEnum = exports.ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsFieldsStoreRequestTypeEnum = exports.ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = exports.ReachV1ContactsFieldsContactFieldResourceTypeEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactDetailsResourceSourceEnum = exports.ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = exports.MailV1WebhooksWebhookSecretResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceEventsEnum = exports.MailV1WebhooksWebhookResourceStatusEnum = exports.MailV1WebhooksWebhookResourceEventsEnum = exports.MailV1WebhooksWebhookCreatedResourceStatusEnum = exports.MailV1WebhooksWebhookCreatedResourceEventsEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaStatusEnum = void 0;
24
+ exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.BillingOrdersApi = exports.BillingOrdersApiFactory = exports.BillingOrdersApiFp = exports.BillingOrdersApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.AgencyHostingWordPressApi = exports.AgencyHostingWordPressApiFactory = exports.AgencyHostingWordPressApiFp = exports.AgencyHostingWordPressApiAxiosParamCreator = exports.AgencyHostingWebsitesApi = exports.AgencyHostingWebsitesApiFactory = exports.AgencyHostingWebsitesApiFp = exports.AgencyHostingWebsitesApiAxiosParamCreator = exports.AgencyHostingWebsiteSetupsApi = exports.AgencyHostingWebsiteSetupsApiFactory = exports.AgencyHostingWebsiteSetupsApiFp = exports.AgencyHostingWebsiteSetupsApiAxiosParamCreator = exports.AgencyHostingOrdersApi = exports.AgencyHostingOrdersApiFactory = exports.AgencyHostingOrdersApiFp = exports.AgencyHostingOrdersApiAxiosParamCreator = exports.AgencyHostingFilesApi = exports.AgencyHostingFilesApiFactory = exports.AgencyHostingFilesApiFp = exports.AgencyHostingFilesApiAxiosParamCreator = exports.AgencyHostingDomainsApi = exports.AgencyHostingDomainsApiFactory = exports.AgencyHostingDomainsApiFp = exports.AgencyHostingDomainsApiAxiosParamCreator = exports.AgencyHostingDatacentersApi = exports.AgencyHostingDatacentersApiFactory = exports.AgencyHostingDatacentersApiFp = exports.AgencyHostingDatacentersApiAxiosParamCreator = exports.AgencyHostingDatabasesApi = exports.AgencyHostingDatabasesApiFactory = exports.AgencyHostingDatabasesApiFp = exports.AgencyHostingDatabasesApiAxiosParamCreator = exports.AgencyHostingCronJobsApi = exports.AgencyHostingCronJobsApiFactory = exports.AgencyHostingCronJobsApiFp = exports.AgencyHostingCronJobsApiAxiosParamCreator = exports.AgencyHostingCacheApi = exports.AgencyHostingCacheApiFactory = exports.AgencyHostingCacheApiFp = void 0;
25
+ exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsTransferApi = exports.DomainsTransferApiFactory = exports.DomainsTransferApiFp = exports.DomainsTransferApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsMoveApi = exports.DomainsMoveApiFactory = exports.DomainsMoveApiFp = exports.DomainsMoveApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = void 0;
26
+ exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJsVulnerabilitiesV1SeveritiesEnum = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HostingCacheApi = exports.HostingCacheApiFactory = exports.HostingCacheApiFp = exports.HostingCacheApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = void 0;
27
+ exports.ListOrdersV1SortEnum = exports.ListOrdersV1StatusEnum = exports.MailOrdersApi = exports.MailOrdersApiFactory = exports.MailOrdersApiFp = exports.MailOrdersApiAxiosParamCreator = exports.ListMailboxesV1SortEnum = exports.MailMailboxesApi = exports.MailMailboxesApiFactory = exports.MailMailboxesApiFp = exports.MailMailboxesApiAxiosParamCreator = exports.ListOutboundLogsV1StatusEnum = exports.ListMailboxActionLogsV1EventEnum = exports.ListInboundLogsV1StatusEnum = exports.ListActionLogsV1StatusEnum = exports.ListAccessLogsV1ProtocolEnum = exports.ListAccessLogsV1StatusEnum = exports.MailLogsApi = exports.MailLogsApiFactory = exports.MailLogsApiFp = exports.MailLogsApiAxiosParamCreator = exports.MailForwardersApi = exports.MailForwardersApiFactory = exports.MailForwardersApiFp = exports.MailForwardersApiAxiosParamCreator = exports.MailCatchallsApi = exports.MailCatchallsApiFactory = exports.MailCatchallsApiFp = exports.MailCatchallsApiAxiosParamCreator = exports.MailAutorepliesApi = exports.MailAutorepliesApiFactory = exports.MailAutorepliesApiFp = exports.MailAutorepliesApiAxiosParamCreator = exports.MailAliasesApi = exports.MailAliasesApiFactory = exports.MailAliasesApiFp = exports.MailAliasesApiAxiosParamCreator = exports.MailAPITokensApi = exports.MailAPITokensApiFactory = exports.MailAPITokensApiFp = exports.MailAPITokensApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = void 0;
28
+ exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachTagsApi = exports.ReachTagsApiFactory = exports.ReachTagsApiFp = exports.ReachTagsApiAxiosParamCreator = exports.ListProfileSegmentsV1CountTypeEnum = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListProfileContactsV1SubscriptionStatusEnum = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ReachContactFieldsApi = exports.ReachContactFieldsApiFactory = exports.ReachContactFieldsApiFp = exports.ReachContactFieldsApiAxiosParamCreator = exports.ListWebhooksV1StatusEnum = exports.MailWebhooksApi = exports.MailWebhooksApiFactory = exports.MailWebhooksApiFp = exports.MailWebhooksApiAxiosParamCreator = void 0;
29
+ exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = void 0;
30
+ exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = void 0;
31
31
  const axios_1 = require("axios");
32
32
  // Some imports not used depending on template conditions
33
33
  // @ts-ignore
@@ -432,6 +432,42 @@ exports.ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = {
432
432
  Confirmed: 'confirmed',
433
433
  Pending: 'pending'
434
434
  };
435
+ exports.ReachV1ContactsSegmentsProfileStoreRequestLogicEnum = {
436
+ And: 'AND',
437
+ Or: 'OR'
438
+ };
439
+ exports.ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum = {
440
+ Equals: 'equals',
441
+ NotEquals: 'not_equals',
442
+ Contains: 'contains',
443
+ NotContains: 'not_contains',
444
+ Gte: 'gte',
445
+ Lte: 'lte',
446
+ Exists: 'exists',
447
+ WithinLastDays: 'within_last_days',
448
+ NotWithinLastDays: 'not_within_last_days',
449
+ OlderThanDays: 'older_than_days',
450
+ Processed: 'processed',
451
+ NotProcessed: 'not_processed',
452
+ Delivered: 'delivered',
453
+ NotDelivered: 'not_delivered',
454
+ Dropped: 'dropped',
455
+ NotDropped: 'not_dropped',
456
+ Bounced: 'bounced',
457
+ NotBounced: 'not_bounced',
458
+ SoftBounced: 'soft_bounced',
459
+ NotSoftBounced: 'not_soft_bounced',
460
+ Opened: 'opened',
461
+ NotOpened: 'not_opened',
462
+ Clicked: 'clicked',
463
+ NotClicked: 'not_clicked',
464
+ Unsubscribed: 'unsubscribed',
465
+ NotUnsubscribed: 'not_unsubscribed'
466
+ };
467
+ exports.ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum = {
468
+ And: 'AND',
469
+ Or: 'OR'
470
+ };
435
471
  exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = {
436
472
  Subscribed: 'subscribed',
437
473
  Unsubscribed: 'unsubscribed',
@@ -470,6 +506,8 @@ exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = {
470
506
  NotDropped: 'not_dropped',
471
507
  Bounced: 'bounced',
472
508
  NotBounced: 'not_bounced',
509
+ SoftBounced: 'soft_bounced',
510
+ NotSoftBounced: 'not_soft_bounced',
473
511
  Opened: 'opened',
474
512
  NotOpened: 'not_opened',
475
513
  Clicked: 'clicked',
@@ -2394,7 +2432,7 @@ const AgencyHostingWebsitesApiAxiosParamCreator = function (configuration) {
2394
2432
  };
2395
2433
  }),
2396
2434
  /**
2397
- * Deletes an Agency Plan website and schedules cleanup of its resources. This action is irreversible. Website files, databases, and linked domains are removed.
2435
+ * Permanently deletes an Agency Plan website. Deletion is processed asynchronously: the website is immediately transitioned to a deleting state and the underlying server resources are removed in the background.
2398
2436
  * @summary Delete Agency Plan website
2399
2437
  * @param {string} websiteUid Agency Plan website UID
2400
2438
  * @param {*} [options] Override http request option.
@@ -2516,7 +2554,7 @@ const AgencyHostingWebsitesApiFp = function (configuration) {
2516
2554
  });
2517
2555
  },
2518
2556
  /**
2519
- * Deletes an Agency Plan website and schedules cleanup of its resources. This action is irreversible. Website files, databases, and linked domains are removed.
2557
+ * Permanently deletes an Agency Plan website. Deletion is processed asynchronously: the website is immediately transitioned to a deleting state and the underlying server resources are removed in the background.
2520
2558
  * @summary Delete Agency Plan website
2521
2559
  * @param {string} websiteUid Agency Plan website UID
2522
2560
  * @param {*} [options] Override http request option.
@@ -2582,7 +2620,7 @@ const AgencyHostingWebsitesApiFactory = function (configuration, basePath, axios
2582
2620
  return localVarFp.buildAgencyPlanWebsiteNodeJSAssetsV1(websiteUid, agencyHostingV1WebsitesBuildAssetsRequest, options).then((request) => request(axios, basePath));
2583
2621
  },
2584
2622
  /**
2585
- * Deletes an Agency Plan website and schedules cleanup of its resources. This action is irreversible. Website files, databases, and linked domains are removed.
2623
+ * Permanently deletes an Agency Plan website. Deletion is processed asynchronously: the website is immediately transitioned to a deleting state and the underlying server resources are removed in the background.
2586
2624
  * @summary Delete Agency Plan website
2587
2625
  * @param {string} websiteUid Agency Plan website UID
2588
2626
  * @param {*} [options] Override http request option.
@@ -2634,7 +2672,7 @@ class AgencyHostingWebsitesApi extends base_1.BaseAPI {
2634
2672
  return (0, exports.AgencyHostingWebsitesApiFp)(this.configuration).buildAgencyPlanWebsiteNodeJSAssetsV1(websiteUid, agencyHostingV1WebsitesBuildAssetsRequest, options).then((request) => request(this.axios, this.basePath));
2635
2673
  }
2636
2674
  /**
2637
- * Deletes an Agency Plan website and schedules cleanup of its resources. This action is irreversible. Website files, databases, and linked domains are removed.
2675
+ * Permanently deletes an Agency Plan website. Deletion is processed asynchronously: the website is immediately transitioned to a deleting state and the underlying server resources are removed in the background.
2638
2676
  * @summary Delete Agency Plan website
2639
2677
  * @param {string} websiteUid Agency Plan website UID
2640
2678
  * @param {*} [options] Override http request option.
@@ -17074,10 +17112,47 @@ exports.ReachProfilesApi = ReachProfilesApi;
17074
17112
  const ReachSegmentsApiAxiosParamCreator = function (configuration) {
17075
17113
  return {
17076
17114
  /**
17077
- * Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc.
17115
+ * Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
17116
+ * @summary Count profile segment contacts
17117
+ * @param {string} profileUuid Profile uuid parameter
17118
+ * @param {string} segmentUuid Segment uuid parameter
17119
+ * @param {*} [options] Override http request option.
17120
+ * @throws {RequiredError}
17121
+ */
17122
+ countProfileSegmentContactsV1: (profileUuid_1, segmentUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, segmentUuid_1, ...args_1], void 0, function* (profileUuid, segmentUuid, options = {}) {
17123
+ // verify required parameter 'profileUuid' is not null or undefined
17124
+ (0, common_1.assertParamExists)('countProfileSegmentContactsV1', 'profileUuid', profileUuid);
17125
+ // verify required parameter 'segmentUuid' is not null or undefined
17126
+ (0, common_1.assertParamExists)('countProfileSegmentContactsV1', 'segmentUuid', segmentUuid);
17127
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/count`
17128
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
17129
+ .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
17130
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17131
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17132
+ let baseOptions;
17133
+ if (configuration) {
17134
+ baseOptions = configuration.baseOptions;
17135
+ }
17136
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
17137
+ const localVarHeaderParameter = {};
17138
+ const localVarQueryParameter = {};
17139
+ // authentication apiToken required
17140
+ // http bearer authentication required
17141
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
17142
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
17143
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17144
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17145
+ return {
17146
+ url: (0, common_1.toPathString)(localVarUrlObj),
17147
+ options: localVarRequestOptions,
17148
+ };
17149
+ }),
17150
+ /**
17151
+ * Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot create segments in any other profile. Use `POST /api/reach/v1/profiles/{profileUuid}/segmentation/segments` instead.
17078
17152
  * @summary Create a new contact segment
17079
17153
  * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
17080
17154
  * @param {*} [options] Override http request option.
17155
+ * @deprecated
17081
17156
  * @throws {RequiredError}
17082
17157
  */
17083
17158
  createANewContactSegmentV1: (reachV1ContactsSegmentsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsSegmentsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsSegmentsStoreRequest, options = {}) {
@@ -17107,10 +17182,120 @@ const ReachSegmentsApiAxiosParamCreator = function (configuration) {
17107
17182
  };
17108
17183
  }),
17109
17184
  /**
17110
- * Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria.
17185
+ * Create a segment in a profile. A segment is a saved set of conditions rather than a fixed list, so its membership changes as contacts change. Creating one does not modify any contact.
17186
+ * @summary Create a profile segment
17187
+ * @param {string} profileUuid Profile uuid parameter
17188
+ * @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
17189
+ * @param {*} [options] Override http request option.
17190
+ * @throws {RequiredError}
17191
+ */
17192
+ createAProfileSegmentV1: (profileUuid_1, reachV1ContactsSegmentsProfileStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsSegmentsProfileStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsSegmentsProfileStoreRequest, options = {}) {
17193
+ // verify required parameter 'profileUuid' is not null or undefined
17194
+ (0, common_1.assertParamExists)('createAProfileSegmentV1', 'profileUuid', profileUuid);
17195
+ // verify required parameter 'reachV1ContactsSegmentsProfileStoreRequest' is not null or undefined
17196
+ (0, common_1.assertParamExists)('createAProfileSegmentV1', 'reachV1ContactsSegmentsProfileStoreRequest', reachV1ContactsSegmentsProfileStoreRequest);
17197
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments`
17198
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
17199
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17200
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17201
+ let baseOptions;
17202
+ if (configuration) {
17203
+ baseOptions = configuration.baseOptions;
17204
+ }
17205
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
17206
+ const localVarHeaderParameter = {};
17207
+ const localVarQueryParameter = {};
17208
+ // authentication apiToken required
17209
+ // http bearer authentication required
17210
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
17211
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17212
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
17213
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17214
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17215
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsSegmentsProfileStoreRequest, localVarRequestOptions, configuration);
17216
+ return {
17217
+ url: (0, common_1.toPathString)(localVarUrlObj),
17218
+ options: localVarRequestOptions,
17219
+ };
17220
+ }),
17221
+ /**
17222
+ * Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
17223
+ * @summary Delete a profile segment
17224
+ * @param {string} profileUuid Profile uuid parameter
17225
+ * @param {string} segmentUuid Segment uuid parameter
17226
+ * @param {*} [options] Override http request option.
17227
+ * @throws {RequiredError}
17228
+ */
17229
+ deleteAProfileSegmentV1: (profileUuid_1, segmentUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, segmentUuid_1, ...args_1], void 0, function* (profileUuid, segmentUuid, options = {}) {
17230
+ // verify required parameter 'profileUuid' is not null or undefined
17231
+ (0, common_1.assertParamExists)('deleteAProfileSegmentV1', 'profileUuid', profileUuid);
17232
+ // verify required parameter 'segmentUuid' is not null or undefined
17233
+ (0, common_1.assertParamExists)('deleteAProfileSegmentV1', 'segmentUuid', segmentUuid);
17234
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}`
17235
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
17236
+ .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
17237
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17238
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17239
+ let baseOptions;
17240
+ if (configuration) {
17241
+ baseOptions = configuration.baseOptions;
17242
+ }
17243
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
17244
+ const localVarHeaderParameter = {};
17245
+ const localVarQueryParameter = {};
17246
+ // authentication apiToken required
17247
+ // http bearer authentication required
17248
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
17249
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
17250
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17251
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17252
+ return {
17253
+ url: (0, common_1.toPathString)(localVarUrlObj),
17254
+ options: localVarRequestOptions,
17255
+ };
17256
+ }),
17257
+ /**
17258
+ * Get a single segment of a profile, including the conditions that define it. To retrieve the contacts currently matching those conditions, use the segment contacts endpoint instead.
17259
+ * @summary Get profile segment details
17260
+ * @param {string} profileUuid Profile uuid parameter
17261
+ * @param {string} segmentUuid Segment uuid parameter
17262
+ * @param {*} [options] Override http request option.
17263
+ * @throws {RequiredError}
17264
+ */
17265
+ getProfileSegmentDetailsV1: (profileUuid_1, segmentUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, segmentUuid_1, ...args_1], void 0, function* (profileUuid, segmentUuid, options = {}) {
17266
+ // verify required parameter 'profileUuid' is not null or undefined
17267
+ (0, common_1.assertParamExists)('getProfileSegmentDetailsV1', 'profileUuid', profileUuid);
17268
+ // verify required parameter 'segmentUuid' is not null or undefined
17269
+ (0, common_1.assertParamExists)('getProfileSegmentDetailsV1', 'segmentUuid', segmentUuid);
17270
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}`
17271
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
17272
+ .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
17273
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17274
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17275
+ let baseOptions;
17276
+ if (configuration) {
17277
+ baseOptions = configuration.baseOptions;
17278
+ }
17279
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
17280
+ const localVarHeaderParameter = {};
17281
+ const localVarQueryParameter = {};
17282
+ // authentication apiToken required
17283
+ // http bearer authentication required
17284
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
17285
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
17286
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17287
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17288
+ return {
17289
+ url: (0, common_1.toPathString)(localVarUrlObj),
17290
+ options: localVarRequestOptions,
17291
+ };
17292
+ }),
17293
+ /**
17294
+ * Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot read segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}` instead.
17111
17295
  * @summary Get segment details
17112
17296
  * @param {string} segmentUuid Segment uuid parameter
17113
17297
  * @param {*} [options] Override http request option.
17298
+ * @deprecated
17114
17299
  * @throws {RequiredError}
17115
17300
  */
17116
17301
  getSegmentDetailsV1: (segmentUuid_1, ...args_1) => __awaiter(this, [segmentUuid_1, ...args_1], void 0, function* (segmentUuid, options = {}) {
@@ -17183,12 +17368,57 @@ const ReachSegmentsApiAxiosParamCreator = function (configuration) {
17183
17368
  };
17184
17369
  }),
17185
17370
  /**
17186
- * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
17371
+ * Get a paginated list of the segments defined in a profile. Each entry carries the number of contacts currently matching it, which is recalculated on read rather than stored. Use `count_type` to count either every matching contact or only the subscribed ones.
17372
+ * @summary List profile segments
17373
+ * @param {string} profileUuid Profile uuid parameter
17374
+ * @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
17375
+ * @param {number} [page] Page number
17376
+ * @param {number} [perPage] Number of items per page
17377
+ * @param {*} [options] Override http request option.
17378
+ * @throws {RequiredError}
17379
+ */
17380
+ listProfileSegmentsV1: (profileUuid_1, countType_1, page_1, perPage_1, ...args_1) => __awaiter(this, [profileUuid_1, countType_1, page_1, perPage_1, ...args_1], void 0, function* (profileUuid, countType, page, perPage, options = {}) {
17381
+ // verify required parameter 'profileUuid' is not null or undefined
17382
+ (0, common_1.assertParamExists)('listProfileSegmentsV1', 'profileUuid', profileUuid);
17383
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments`
17384
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
17385
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17386
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17387
+ let baseOptions;
17388
+ if (configuration) {
17389
+ baseOptions = configuration.baseOptions;
17390
+ }
17391
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
17392
+ const localVarHeaderParameter = {};
17393
+ const localVarQueryParameter = {};
17394
+ // authentication apiToken required
17395
+ // http bearer authentication required
17396
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
17397
+ if (countType !== undefined) {
17398
+ localVarQueryParameter['count_type'] = countType;
17399
+ }
17400
+ if (page !== undefined) {
17401
+ localVarQueryParameter['page'] = page;
17402
+ }
17403
+ if (perPage !== undefined) {
17404
+ localVarQueryParameter['per_page'] = perPage;
17405
+ }
17406
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
17407
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17408
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17409
+ return {
17410
+ url: (0, common_1.toPathString)(localVarUrlObj),
17411
+ options: localVarRequestOptions,
17412
+ };
17413
+ }),
17414
+ /**
17415
+ * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot read segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts` instead.
17187
17416
  * @summary List segment contacts
17188
17417
  * @param {string} segmentUuid Segment uuid parameter
17189
17418
  * @param {number} [page] Page number
17190
17419
  * @param {number} [perPage] Number of items per page
17191
17420
  * @param {*} [options] Override http request option.
17421
+ * @deprecated
17192
17422
  * @throws {RequiredError}
17193
17423
  */
17194
17424
  listSegmentContactsV1: (segmentUuid_1, page_1, perPage_1, ...args_1) => __awaiter(this, [segmentUuid_1, page_1, perPage_1, ...args_1], void 0, function* (segmentUuid, page, perPage, options = {}) {
@@ -17223,9 +17453,10 @@ const ReachSegmentsApiAxiosParamCreator = function (configuration) {
17223
17453
  };
17224
17454
  }),
17225
17455
  /**
17226
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
17456
+ * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list the segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments` instead.
17227
17457
  * @summary List segments
17228
17458
  * @param {*} [options] Override http request option.
17459
+ * @deprecated
17229
17460
  * @throws {RequiredError}
17230
17461
  */
17231
17462
  listSegmentsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
@@ -17250,6 +17481,47 @@ const ReachSegmentsApiAxiosParamCreator = function (configuration) {
17250
17481
  options: localVarRequestOptions,
17251
17482
  };
17252
17483
  }),
17484
+ /**
17485
+ * Rename a segment and/or replace the conditions that define it. `name` is always required. Omit `conditions` to rename without touching the conditions; supply them and they replace the existing set entirely rather than being merged into it. Contacts are never modified, but which of them match the segment can change immediately.
17486
+ * @summary Update a profile segment
17487
+ * @param {string} profileUuid Profile uuid parameter
17488
+ * @param {string} segmentUuid Segment uuid parameter
17489
+ * @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
17490
+ * @param {*} [options] Override http request option.
17491
+ * @throws {RequiredError}
17492
+ */
17493
+ updateAProfileSegmentV1: (profileUuid_1, segmentUuid_1, reachV1ContactsSegmentsProfileUpdateRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, segmentUuid_1, reachV1ContactsSegmentsProfileUpdateRequest_1, ...args_1], void 0, function* (profileUuid, segmentUuid, reachV1ContactsSegmentsProfileUpdateRequest, options = {}) {
17494
+ // verify required parameter 'profileUuid' is not null or undefined
17495
+ (0, common_1.assertParamExists)('updateAProfileSegmentV1', 'profileUuid', profileUuid);
17496
+ // verify required parameter 'segmentUuid' is not null or undefined
17497
+ (0, common_1.assertParamExists)('updateAProfileSegmentV1', 'segmentUuid', segmentUuid);
17498
+ // verify required parameter 'reachV1ContactsSegmentsProfileUpdateRequest' is not null or undefined
17499
+ (0, common_1.assertParamExists)('updateAProfileSegmentV1', 'reachV1ContactsSegmentsProfileUpdateRequest', reachV1ContactsSegmentsProfileUpdateRequest);
17500
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}`
17501
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
17502
+ .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
17503
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17504
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17505
+ let baseOptions;
17506
+ if (configuration) {
17507
+ baseOptions = configuration.baseOptions;
17508
+ }
17509
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
17510
+ const localVarHeaderParameter = {};
17511
+ const localVarQueryParameter = {};
17512
+ // authentication apiToken required
17513
+ // http bearer authentication required
17514
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
17515
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17516
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
17517
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17518
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17519
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsSegmentsProfileUpdateRequest, localVarRequestOptions, configuration);
17520
+ return {
17521
+ url: (0, common_1.toPathString)(localVarUrlObj),
17522
+ options: localVarRequestOptions,
17523
+ };
17524
+ }),
17253
17525
  };
17254
17526
  };
17255
17527
  exports.ReachSegmentsApiAxiosParamCreator = ReachSegmentsApiAxiosParamCreator;
@@ -17261,10 +17533,27 @@ const ReachSegmentsApiFp = function (configuration) {
17261
17533
  const localVarAxiosParamCreator = (0, exports.ReachSegmentsApiAxiosParamCreator)(configuration);
17262
17534
  return {
17263
17535
  /**
17264
- * Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc.
17536
+ * Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
17537
+ * @summary Count profile segment contacts
17538
+ * @param {string} profileUuid Profile uuid parameter
17539
+ * @param {string} segmentUuid Segment uuid parameter
17540
+ * @param {*} [options] Override http request option.
17541
+ * @throws {RequiredError}
17542
+ */
17543
+ countProfileSegmentContactsV1(profileUuid, segmentUuid, options) {
17544
+ return __awaiter(this, void 0, void 0, function* () {
17545
+ var _a, _b;
17546
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.countProfileSegmentContactsV1(profileUuid, segmentUuid, options);
17547
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.countProfileSegmentContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17548
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17549
+ });
17550
+ },
17551
+ /**
17552
+ * Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot create segments in any other profile. Use `POST /api/reach/v1/profiles/{profileUuid}/segmentation/segments` instead.
17265
17553
  * @summary Create a new contact segment
17266
17554
  * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
17267
17555
  * @param {*} [options] Override http request option.
17556
+ * @deprecated
17268
17557
  * @throws {RequiredError}
17269
17558
  */
17270
17559
  createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
@@ -17276,10 +17565,59 @@ const ReachSegmentsApiFp = function (configuration) {
17276
17565
  });
17277
17566
  },
17278
17567
  /**
17279
- * Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria.
17568
+ * Create a segment in a profile. A segment is a saved set of conditions rather than a fixed list, so its membership changes as contacts change. Creating one does not modify any contact.
17569
+ * @summary Create a profile segment
17570
+ * @param {string} profileUuid Profile uuid parameter
17571
+ * @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
17572
+ * @param {*} [options] Override http request option.
17573
+ * @throws {RequiredError}
17574
+ */
17575
+ createAProfileSegmentV1(profileUuid, reachV1ContactsSegmentsProfileStoreRequest, options) {
17576
+ return __awaiter(this, void 0, void 0, function* () {
17577
+ var _a, _b;
17578
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createAProfileSegmentV1(profileUuid, reachV1ContactsSegmentsProfileStoreRequest, options);
17579
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.createAProfileSegmentV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17580
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17581
+ });
17582
+ },
17583
+ /**
17584
+ * Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
17585
+ * @summary Delete a profile segment
17586
+ * @param {string} profileUuid Profile uuid parameter
17587
+ * @param {string} segmentUuid Segment uuid parameter
17588
+ * @param {*} [options] Override http request option.
17589
+ * @throws {RequiredError}
17590
+ */
17591
+ deleteAProfileSegmentV1(profileUuid, segmentUuid, options) {
17592
+ return __awaiter(this, void 0, void 0, function* () {
17593
+ var _a, _b;
17594
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAProfileSegmentV1(profileUuid, segmentUuid, options);
17595
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.deleteAProfileSegmentV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17596
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17597
+ });
17598
+ },
17599
+ /**
17600
+ * Get a single segment of a profile, including the conditions that define it. To retrieve the contacts currently matching those conditions, use the segment contacts endpoint instead.
17601
+ * @summary Get profile segment details
17602
+ * @param {string} profileUuid Profile uuid parameter
17603
+ * @param {string} segmentUuid Segment uuid parameter
17604
+ * @param {*} [options] Override http request option.
17605
+ * @throws {RequiredError}
17606
+ */
17607
+ getProfileSegmentDetailsV1(profileUuid, segmentUuid, options) {
17608
+ return __awaiter(this, void 0, void 0, function* () {
17609
+ var _a, _b;
17610
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProfileSegmentDetailsV1(profileUuid, segmentUuid, options);
17611
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.getProfileSegmentDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17612
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17613
+ });
17614
+ },
17615
+ /**
17616
+ * Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot read segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}` instead.
17280
17617
  * @summary Get segment details
17281
17618
  * @param {string} segmentUuid Segment uuid parameter
17282
17619
  * @param {*} [options] Override http request option.
17620
+ * @deprecated
17283
17621
  * @throws {RequiredError}
17284
17622
  */
17285
17623
  getSegmentDetailsV1(segmentUuid, options) {
@@ -17309,12 +17647,31 @@ const ReachSegmentsApiFp = function (configuration) {
17309
17647
  });
17310
17648
  },
17311
17649
  /**
17312
- * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
17650
+ * Get a paginated list of the segments defined in a profile. Each entry carries the number of contacts currently matching it, which is recalculated on read rather than stored. Use `count_type` to count either every matching contact or only the subscribed ones.
17651
+ * @summary List profile segments
17652
+ * @param {string} profileUuid Profile uuid parameter
17653
+ * @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
17654
+ * @param {number} [page] Page number
17655
+ * @param {number} [perPage] Number of items per page
17656
+ * @param {*} [options] Override http request option.
17657
+ * @throws {RequiredError}
17658
+ */
17659
+ listProfileSegmentsV1(profileUuid, countType, page, perPage, options) {
17660
+ return __awaiter(this, void 0, void 0, function* () {
17661
+ var _a, _b;
17662
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfileSegmentsV1(profileUuid, countType, page, perPage, options);
17663
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.listProfileSegmentsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17664
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17665
+ });
17666
+ },
17667
+ /**
17668
+ * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot read segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts` instead.
17313
17669
  * @summary List segment contacts
17314
17670
  * @param {string} segmentUuid Segment uuid parameter
17315
17671
  * @param {number} [page] Page number
17316
17672
  * @param {number} [perPage] Number of items per page
17317
17673
  * @param {*} [options] Override http request option.
17674
+ * @deprecated
17318
17675
  * @throws {RequiredError}
17319
17676
  */
17320
17677
  listSegmentContactsV1(segmentUuid, page, perPage, options) {
@@ -17326,9 +17683,10 @@ const ReachSegmentsApiFp = function (configuration) {
17326
17683
  });
17327
17684
  },
17328
17685
  /**
17329
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
17686
+ * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list the segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments` instead.
17330
17687
  * @summary List segments
17331
17688
  * @param {*} [options] Override http request option.
17689
+ * @deprecated
17332
17690
  * @throws {RequiredError}
17333
17691
  */
17334
17692
  listSegmentsV1(options) {
@@ -17339,6 +17697,23 @@ const ReachSegmentsApiFp = function (configuration) {
17339
17697
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17340
17698
  });
17341
17699
  },
17700
+ /**
17701
+ * Rename a segment and/or replace the conditions that define it. `name` is always required. Omit `conditions` to rename without touching the conditions; supply them and they replace the existing set entirely rather than being merged into it. Contacts are never modified, but which of them match the segment can change immediately.
17702
+ * @summary Update a profile segment
17703
+ * @param {string} profileUuid Profile uuid parameter
17704
+ * @param {string} segmentUuid Segment uuid parameter
17705
+ * @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
17706
+ * @param {*} [options] Override http request option.
17707
+ * @throws {RequiredError}
17708
+ */
17709
+ updateAProfileSegmentV1(profileUuid, segmentUuid, reachV1ContactsSegmentsProfileUpdateRequest, options) {
17710
+ return __awaiter(this, void 0, void 0, function* () {
17711
+ var _a, _b;
17712
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAProfileSegmentV1(profileUuid, segmentUuid, reachV1ContactsSegmentsProfileUpdateRequest, options);
17713
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.updateAProfileSegmentV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17714
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17715
+ });
17716
+ },
17342
17717
  };
17343
17718
  };
17344
17719
  exports.ReachSegmentsApiFp = ReachSegmentsApiFp;
@@ -17350,20 +17725,66 @@ const ReachSegmentsApiFactory = function (configuration, basePath, axios) {
17350
17725
  const localVarFp = (0, exports.ReachSegmentsApiFp)(configuration);
17351
17726
  return {
17352
17727
  /**
17353
- * Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc.
17728
+ * Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
17729
+ * @summary Count profile segment contacts
17730
+ * @param {string} profileUuid Profile uuid parameter
17731
+ * @param {string} segmentUuid Segment uuid parameter
17732
+ * @param {*} [options] Override http request option.
17733
+ * @throws {RequiredError}
17734
+ */
17735
+ countProfileSegmentContactsV1(profileUuid, segmentUuid, options) {
17736
+ return localVarFp.countProfileSegmentContactsV1(profileUuid, segmentUuid, options).then((request) => request(axios, basePath));
17737
+ },
17738
+ /**
17739
+ * Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot create segments in any other profile. Use `POST /api/reach/v1/profiles/{profileUuid}/segmentation/segments` instead.
17354
17740
  * @summary Create a new contact segment
17355
17741
  * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
17356
17742
  * @param {*} [options] Override http request option.
17743
+ * @deprecated
17357
17744
  * @throws {RequiredError}
17358
17745
  */
17359
17746
  createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
17360
17747
  return localVarFp.createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(axios, basePath));
17361
17748
  },
17362
17749
  /**
17363
- * Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria.
17750
+ * Create a segment in a profile. A segment is a saved set of conditions rather than a fixed list, so its membership changes as contacts change. Creating one does not modify any contact.
17751
+ * @summary Create a profile segment
17752
+ * @param {string} profileUuid Profile uuid parameter
17753
+ * @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
17754
+ * @param {*} [options] Override http request option.
17755
+ * @throws {RequiredError}
17756
+ */
17757
+ createAProfileSegmentV1(profileUuid, reachV1ContactsSegmentsProfileStoreRequest, options) {
17758
+ return localVarFp.createAProfileSegmentV1(profileUuid, reachV1ContactsSegmentsProfileStoreRequest, options).then((request) => request(axios, basePath));
17759
+ },
17760
+ /**
17761
+ * Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
17762
+ * @summary Delete a profile segment
17763
+ * @param {string} profileUuid Profile uuid parameter
17764
+ * @param {string} segmentUuid Segment uuid parameter
17765
+ * @param {*} [options] Override http request option.
17766
+ * @throws {RequiredError}
17767
+ */
17768
+ deleteAProfileSegmentV1(profileUuid, segmentUuid, options) {
17769
+ return localVarFp.deleteAProfileSegmentV1(profileUuid, segmentUuid, options).then((request) => request(axios, basePath));
17770
+ },
17771
+ /**
17772
+ * Get a single segment of a profile, including the conditions that define it. To retrieve the contacts currently matching those conditions, use the segment contacts endpoint instead.
17773
+ * @summary Get profile segment details
17774
+ * @param {string} profileUuid Profile uuid parameter
17775
+ * @param {string} segmentUuid Segment uuid parameter
17776
+ * @param {*} [options] Override http request option.
17777
+ * @throws {RequiredError}
17778
+ */
17779
+ getProfileSegmentDetailsV1(profileUuid, segmentUuid, options) {
17780
+ return localVarFp.getProfileSegmentDetailsV1(profileUuid, segmentUuid, options).then((request) => request(axios, basePath));
17781
+ },
17782
+ /**
17783
+ * Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot read segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}` instead.
17364
17784
  * @summary Get segment details
17365
17785
  * @param {string} segmentUuid Segment uuid parameter
17366
17786
  * @param {*} [options] Override http request option.
17787
+ * @deprecated
17367
17788
  * @throws {RequiredError}
17368
17789
  */
17369
17790
  getSegmentDetailsV1(segmentUuid, options) {
@@ -17383,26 +17804,53 @@ const ReachSegmentsApiFactory = function (configuration, basePath, axios) {
17383
17804
  return localVarFp.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
17384
17805
  },
17385
17806
  /**
17386
- * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
17807
+ * Get a paginated list of the segments defined in a profile. Each entry carries the number of contacts currently matching it, which is recalculated on read rather than stored. Use `count_type` to count either every matching contact or only the subscribed ones.
17808
+ * @summary List profile segments
17809
+ * @param {string} profileUuid Profile uuid parameter
17810
+ * @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
17811
+ * @param {number} [page] Page number
17812
+ * @param {number} [perPage] Number of items per page
17813
+ * @param {*} [options] Override http request option.
17814
+ * @throws {RequiredError}
17815
+ */
17816
+ listProfileSegmentsV1(profileUuid, countType, page, perPage, options) {
17817
+ return localVarFp.listProfileSegmentsV1(profileUuid, countType, page, perPage, options).then((request) => request(axios, basePath));
17818
+ },
17819
+ /**
17820
+ * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot read segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts` instead.
17387
17821
  * @summary List segment contacts
17388
17822
  * @param {string} segmentUuid Segment uuid parameter
17389
17823
  * @param {number} [page] Page number
17390
17824
  * @param {number} [perPage] Number of items per page
17391
17825
  * @param {*} [options] Override http request option.
17826
+ * @deprecated
17392
17827
  * @throws {RequiredError}
17393
17828
  */
17394
17829
  listSegmentContactsV1(segmentUuid, page, perPage, options) {
17395
17830
  return localVarFp.listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
17396
17831
  },
17397
17832
  /**
17398
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
17833
+ * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list the segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments` instead.
17399
17834
  * @summary List segments
17400
17835
  * @param {*} [options] Override http request option.
17836
+ * @deprecated
17401
17837
  * @throws {RequiredError}
17402
17838
  */
17403
17839
  listSegmentsV1(options) {
17404
17840
  return localVarFp.listSegmentsV1(options).then((request) => request(axios, basePath));
17405
17841
  },
17842
+ /**
17843
+ * Rename a segment and/or replace the conditions that define it. `name` is always required. Omit `conditions` to rename without touching the conditions; supply them and they replace the existing set entirely rather than being merged into it. Contacts are never modified, but which of them match the segment can change immediately.
17844
+ * @summary Update a profile segment
17845
+ * @param {string} profileUuid Profile uuid parameter
17846
+ * @param {string} segmentUuid Segment uuid parameter
17847
+ * @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
17848
+ * @param {*} [options] Override http request option.
17849
+ * @throws {RequiredError}
17850
+ */
17851
+ updateAProfileSegmentV1(profileUuid, segmentUuid, reachV1ContactsSegmentsProfileUpdateRequest, options) {
17852
+ return localVarFp.updateAProfileSegmentV1(profileUuid, segmentUuid, reachV1ContactsSegmentsProfileUpdateRequest, options).then((request) => request(axios, basePath));
17853
+ },
17406
17854
  };
17407
17855
  };
17408
17856
  exports.ReachSegmentsApiFactory = ReachSegmentsApiFactory;
@@ -17414,10 +17862,23 @@ exports.ReachSegmentsApiFactory = ReachSegmentsApiFactory;
17414
17862
  */
17415
17863
  class ReachSegmentsApi extends base_1.BaseAPI {
17416
17864
  /**
17417
- * Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc.
17865
+ * Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
17866
+ * @summary Count profile segment contacts
17867
+ * @param {string} profileUuid Profile uuid parameter
17868
+ * @param {string} segmentUuid Segment uuid parameter
17869
+ * @param {*} [options] Override http request option.
17870
+ * @throws {RequiredError}
17871
+ * @memberof ReachSegmentsApi
17872
+ */
17873
+ countProfileSegmentContactsV1(profileUuid, segmentUuid, options) {
17874
+ return (0, exports.ReachSegmentsApiFp)(this.configuration).countProfileSegmentContactsV1(profileUuid, segmentUuid, options).then((request) => request(this.axios, this.basePath));
17875
+ }
17876
+ /**
17877
+ * Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot create segments in any other profile. Use `POST /api/reach/v1/profiles/{profileUuid}/segmentation/segments` instead.
17418
17878
  * @summary Create a new contact segment
17419
17879
  * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
17420
17880
  * @param {*} [options] Override http request option.
17881
+ * @deprecated
17421
17882
  * @throws {RequiredError}
17422
17883
  * @memberof ReachSegmentsApi
17423
17884
  */
@@ -17425,10 +17886,47 @@ class ReachSegmentsApi extends base_1.BaseAPI {
17425
17886
  return (0, exports.ReachSegmentsApiFp)(this.configuration).createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(this.axios, this.basePath));
17426
17887
  }
17427
17888
  /**
17428
- * Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria.
17889
+ * Create a segment in a profile. A segment is a saved set of conditions rather than a fixed list, so its membership changes as contacts change. Creating one does not modify any contact.
17890
+ * @summary Create a profile segment
17891
+ * @param {string} profileUuid Profile uuid parameter
17892
+ * @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
17893
+ * @param {*} [options] Override http request option.
17894
+ * @throws {RequiredError}
17895
+ * @memberof ReachSegmentsApi
17896
+ */
17897
+ createAProfileSegmentV1(profileUuid, reachV1ContactsSegmentsProfileStoreRequest, options) {
17898
+ return (0, exports.ReachSegmentsApiFp)(this.configuration).createAProfileSegmentV1(profileUuid, reachV1ContactsSegmentsProfileStoreRequest, options).then((request) => request(this.axios, this.basePath));
17899
+ }
17900
+ /**
17901
+ * Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
17902
+ * @summary Delete a profile segment
17903
+ * @param {string} profileUuid Profile uuid parameter
17904
+ * @param {string} segmentUuid Segment uuid parameter
17905
+ * @param {*} [options] Override http request option.
17906
+ * @throws {RequiredError}
17907
+ * @memberof ReachSegmentsApi
17908
+ */
17909
+ deleteAProfileSegmentV1(profileUuid, segmentUuid, options) {
17910
+ return (0, exports.ReachSegmentsApiFp)(this.configuration).deleteAProfileSegmentV1(profileUuid, segmentUuid, options).then((request) => request(this.axios, this.basePath));
17911
+ }
17912
+ /**
17913
+ * Get a single segment of a profile, including the conditions that define it. To retrieve the contacts currently matching those conditions, use the segment contacts endpoint instead.
17914
+ * @summary Get profile segment details
17915
+ * @param {string} profileUuid Profile uuid parameter
17916
+ * @param {string} segmentUuid Segment uuid parameter
17917
+ * @param {*} [options] Override http request option.
17918
+ * @throws {RequiredError}
17919
+ * @memberof ReachSegmentsApi
17920
+ */
17921
+ getProfileSegmentDetailsV1(profileUuid, segmentUuid, options) {
17922
+ return (0, exports.ReachSegmentsApiFp)(this.configuration).getProfileSegmentDetailsV1(profileUuid, segmentUuid, options).then((request) => request(this.axios, this.basePath));
17923
+ }
17924
+ /**
17925
+ * Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot read segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}` instead.
17429
17926
  * @summary Get segment details
17430
17927
  * @param {string} segmentUuid Segment uuid parameter
17431
17928
  * @param {*} [options] Override http request option.
17929
+ * @deprecated
17432
17930
  * @throws {RequiredError}
17433
17931
  * @memberof ReachSegmentsApi
17434
17932
  */
@@ -17450,12 +17948,27 @@ class ReachSegmentsApi extends base_1.BaseAPI {
17450
17948
  return (0, exports.ReachSegmentsApiFp)(this.configuration).listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
17451
17949
  }
17452
17950
  /**
17453
- * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
17951
+ * Get a paginated list of the segments defined in a profile. Each entry carries the number of contacts currently matching it, which is recalculated on read rather than stored. Use `count_type` to count either every matching contact or only the subscribed ones.
17952
+ * @summary List profile segments
17953
+ * @param {string} profileUuid Profile uuid parameter
17954
+ * @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
17955
+ * @param {number} [page] Page number
17956
+ * @param {number} [perPage] Number of items per page
17957
+ * @param {*} [options] Override http request option.
17958
+ * @throws {RequiredError}
17959
+ * @memberof ReachSegmentsApi
17960
+ */
17961
+ listProfileSegmentsV1(profileUuid, countType, page, perPage, options) {
17962
+ return (0, exports.ReachSegmentsApiFp)(this.configuration).listProfileSegmentsV1(profileUuid, countType, page, perPage, options).then((request) => request(this.axios, this.basePath));
17963
+ }
17964
+ /**
17965
+ * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot read segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts` instead.
17454
17966
  * @summary List segment contacts
17455
17967
  * @param {string} segmentUuid Segment uuid parameter
17456
17968
  * @param {number} [page] Page number
17457
17969
  * @param {number} [perPage] Number of items per page
17458
17970
  * @param {*} [options] Override http request option.
17971
+ * @deprecated
17459
17972
  * @throws {RequiredError}
17460
17973
  * @memberof ReachSegmentsApi
17461
17974
  */
@@ -17463,17 +17976,38 @@ class ReachSegmentsApi extends base_1.BaseAPI {
17463
17976
  return (0, exports.ReachSegmentsApiFp)(this.configuration).listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
17464
17977
  }
17465
17978
  /**
17466
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
17979
+ * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list the segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments` instead.
17467
17980
  * @summary List segments
17468
17981
  * @param {*} [options] Override http request option.
17982
+ * @deprecated
17469
17983
  * @throws {RequiredError}
17470
17984
  * @memberof ReachSegmentsApi
17471
17985
  */
17472
17986
  listSegmentsV1(options) {
17473
17987
  return (0, exports.ReachSegmentsApiFp)(this.configuration).listSegmentsV1(options).then((request) => request(this.axios, this.basePath));
17474
17988
  }
17989
+ /**
17990
+ * Rename a segment and/or replace the conditions that define it. `name` is always required. Omit `conditions` to rename without touching the conditions; supply them and they replace the existing set entirely rather than being merged into it. Contacts are never modified, but which of them match the segment can change immediately.
17991
+ * @summary Update a profile segment
17992
+ * @param {string} profileUuid Profile uuid parameter
17993
+ * @param {string} segmentUuid Segment uuid parameter
17994
+ * @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
17995
+ * @param {*} [options] Override http request option.
17996
+ * @throws {RequiredError}
17997
+ * @memberof ReachSegmentsApi
17998
+ */
17999
+ updateAProfileSegmentV1(profileUuid, segmentUuid, reachV1ContactsSegmentsProfileUpdateRequest, options) {
18000
+ return (0, exports.ReachSegmentsApiFp)(this.configuration).updateAProfileSegmentV1(profileUuid, segmentUuid, reachV1ContactsSegmentsProfileUpdateRequest, options).then((request) => request(this.axios, this.basePath));
18001
+ }
17475
18002
  }
17476
18003
  exports.ReachSegmentsApi = ReachSegmentsApi;
18004
+ /**
18005
+ * @export
18006
+ */
18007
+ exports.ListProfileSegmentsV1CountTypeEnum = {
18008
+ All: 'all',
18009
+ Subscribed: 'subscribed'
18010
+ };
17477
18011
  /**
17478
18012
  * ReachTagsApi - axios parameter creator
17479
18013
  * @export