hostinger-api-sdk 1.27.0 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1622 -150
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +843 -17
  7. package/dist/api.js +1248 -44
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +843 -17
  15. package/dist/esm/api.js +1236 -36
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/ReachListProfileSegmentsV1200Response.md +22 -0
  27. package/docs/ReachSegmentsApi.md +359 -4
  28. package/docs/ReachTagsApi.md +483 -0
  29. package/docs/ReachV1ContactsSegmentsProfileStoreRequest.md +25 -0
  30. package/docs/ReachV1ContactsSegmentsProfileStoreRequestConditionsInner.md +24 -0
  31. package/docs/ReachV1ContactsSegmentsProfileUpdateRequest.md +25 -0
  32. package/docs/ReachV1ContactsSegmentsSegmentContactsCountResource.md +20 -0
  33. package/docs/ReachV1ContactsSegmentsSegmentListItemResource.md +28 -0
  34. package/docs/ReachV1ContactsTagsManageContactsRequest.md +23 -0
  35. package/docs/ReachV1ContactsTagsStoreRequest.md +21 -0
  36. package/docs/ReachV1ContactsTagsUpdateRequest.md +21 -0
  37. package/index.ts +1 -1
  38. package/package.json +1 -1
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.28.0
7
+ * API Version: 1.30.0
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.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = 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.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.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = 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 = void 0;
30
- exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = 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',
@@ -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,59 +17565,128 @@ 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.
17280
- * @summary Get segment details
17281
- * @param {string} segmentUuid Segment uuid parameter
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
17282
17572
  * @param {*} [options] Override http request option.
17283
17573
  * @throws {RequiredError}
17284
17574
  */
17285
- getSegmentDetailsV1(segmentUuid, options) {
17575
+ createAProfileSegmentV1(profileUuid, reachV1ContactsSegmentsProfileStoreRequest, options) {
17286
17576
  return __awaiter(this, void 0, void 0, function* () {
17287
17577
  var _a, _b;
17288
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSegmentDetailsV1(segmentUuid, options);
17289
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.getSegmentDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
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;
17290
17580
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17291
17581
  });
17292
17582
  },
17293
17583
  /**
17294
- * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
17295
- * @summary List profile segment contacts
17584
+ * Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
17585
+ * @summary Delete a profile segment
17296
17586
  * @param {string} profileUuid Profile uuid parameter
17297
17587
  * @param {string} segmentUuid Segment uuid parameter
17298
- * @param {number} [page] Page number
17299
- * @param {number} [perPage] Number of items per page
17300
17588
  * @param {*} [options] Override http request option.
17301
17589
  * @throws {RequiredError}
17302
17590
  */
17303
- listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
17591
+ deleteAProfileSegmentV1(profileUuid, segmentUuid, options) {
17304
17592
  return __awaiter(this, void 0, void 0, function* () {
17305
17593
  var _a, _b;
17306
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options);
17307
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.listProfileSegmentContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
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;
17308
17596
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17309
17597
  });
17310
17598
  },
17311
17599
  /**
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.
17313
- * @summary List segment contacts
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
17314
17603
  * @param {string} segmentUuid Segment uuid parameter
17315
- * @param {number} [page] Page number
17316
- * @param {number} [perPage] Number of items per page
17317
17604
  * @param {*} [options] Override http request option.
17318
17605
  * @throws {RequiredError}
17319
17606
  */
17320
- listSegmentContactsV1(segmentUuid, page, perPage, options) {
17607
+ getProfileSegmentDetailsV1(profileUuid, segmentUuid, options) {
17321
17608
  return __awaiter(this, void 0, void 0, function* () {
17322
17609
  var _a, _b;
17323
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listSegmentContactsV1(segmentUuid, page, perPage, options);
17324
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.listSegmentContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
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;
17325
17612
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17326
17613
  });
17327
17614
  },
17328
17615
  /**
17329
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
17330
- * @summary List segments
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.
17617
+ * @summary Get segment details
17618
+ * @param {string} segmentUuid Segment uuid parameter
17331
17619
  * @param {*} [options] Override http request option.
17620
+ * @deprecated
17621
+ * @throws {RequiredError}
17622
+ */
17623
+ getSegmentDetailsV1(segmentUuid, options) {
17624
+ return __awaiter(this, void 0, void 0, function* () {
17625
+ var _a, _b;
17626
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSegmentDetailsV1(segmentUuid, options);
17627
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.getSegmentDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17628
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17629
+ });
17630
+ },
17631
+ /**
17632
+ * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
17633
+ * @summary List profile segment contacts
17634
+ * @param {string} profileUuid Profile uuid parameter
17635
+ * @param {string} segmentUuid Segment uuid parameter
17636
+ * @param {number} [page] Page number
17637
+ * @param {number} [perPage] Number of items per page
17638
+ * @param {*} [options] Override http request option.
17639
+ * @throws {RequiredError}
17640
+ */
17641
+ listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
17642
+ return __awaiter(this, void 0, void 0, function* () {
17643
+ var _a, _b;
17644
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options);
17645
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.listProfileSegmentContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17646
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17647
+ });
17648
+ },
17649
+ /**
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.
17669
+ * @summary List segment contacts
17670
+ * @param {string} segmentUuid Segment uuid parameter
17671
+ * @param {number} [page] Page number
17672
+ * @param {number} [perPage] Number of items per page
17673
+ * @param {*} [options] Override http request option.
17674
+ * @deprecated
17675
+ * @throws {RequiredError}
17676
+ */
17677
+ listSegmentContactsV1(segmentUuid, page, perPage, options) {
17678
+ return __awaiter(this, void 0, void 0, function* () {
17679
+ var _a, _b;
17680
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listSegmentContactsV1(segmentUuid, page, perPage, options);
17681
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.listSegmentContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17682
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17683
+ });
17684
+ },
17685
+ /**
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.
17687
+ * @summary List segments
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,708 @@ 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
+ };
18011
+ /**
18012
+ * ReachTagsApi - axios parameter creator
18013
+ * @export
18014
+ */
18015
+ const ReachTagsApiAxiosParamCreator = function (configuration) {
18016
+ return {
18017
+ /**
18018
+ * Assign a tag to a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Assigning a tag the contact already carries succeeds without duplicating it.
18019
+ * @summary Assign a contact to a tag
18020
+ * @param {string} profileUuid Profile uuid parameter
18021
+ * @param {string} tagUuid Tag uuid parameter
18022
+ * @param {string} contactUuid Contact uuid parameter
18023
+ * @param {*} [options] Override http request option.
18024
+ * @throws {RequiredError}
18025
+ */
18026
+ assignAContactToATagV1: (profileUuid_1, tagUuid_1, contactUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, contactUuid_1, ...args_1], void 0, function* (profileUuid, tagUuid, contactUuid, options = {}) {
18027
+ // verify required parameter 'profileUuid' is not null or undefined
18028
+ (0, common_1.assertParamExists)('assignAContactToATagV1', 'profileUuid', profileUuid);
18029
+ // verify required parameter 'tagUuid' is not null or undefined
18030
+ (0, common_1.assertParamExists)('assignAContactToATagV1', 'tagUuid', tagUuid);
18031
+ // verify required parameter 'contactUuid' is not null or undefined
18032
+ (0, common_1.assertParamExists)('assignAContactToATagV1', 'contactUuid', contactUuid);
18033
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid}`
18034
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
18035
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)))
18036
+ .replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
18037
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18038
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18039
+ let baseOptions;
18040
+ if (configuration) {
18041
+ baseOptions = configuration.baseOptions;
18042
+ }
18043
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
18044
+ const localVarHeaderParameter = {};
18045
+ const localVarQueryParameter = {};
18046
+ // authentication apiToken required
18047
+ // http bearer authentication required
18048
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
18049
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
18050
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18051
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18052
+ return {
18053
+ url: (0, common_1.toPathString)(localVarUrlObj),
18054
+ options: localVarRequestOptions,
18055
+ };
18056
+ }),
18057
+ /**
18058
+ * Assign a tag to many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. Contacts that already carry the tag are left alone.
18059
+ * @summary Assign contacts to a tag
18060
+ * @param {string} profileUuid Profile uuid parameter
18061
+ * @param {string} tagUuid Tag uuid parameter
18062
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
18063
+ * @param {*} [options] Override http request option.
18064
+ * @throws {RequiredError}
18065
+ */
18066
+ assignContactsToATagV1: (profileUuid_1, tagUuid_1, reachV1ContactsTagsManageContactsRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, reachV1ContactsTagsManageContactsRequest_1, ...args_1], void 0, function* (profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options = {}) {
18067
+ // verify required parameter 'profileUuid' is not null or undefined
18068
+ (0, common_1.assertParamExists)('assignContactsToATagV1', 'profileUuid', profileUuid);
18069
+ // verify required parameter 'tagUuid' is not null or undefined
18070
+ (0, common_1.assertParamExists)('assignContactsToATagV1', 'tagUuid', tagUuid);
18071
+ // verify required parameter 'reachV1ContactsTagsManageContactsRequest' is not null or undefined
18072
+ (0, common_1.assertParamExists)('assignContactsToATagV1', 'reachV1ContactsTagsManageContactsRequest', reachV1ContactsTagsManageContactsRequest);
18073
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts`
18074
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
18075
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
18076
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18077
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18078
+ let baseOptions;
18079
+ if (configuration) {
18080
+ baseOptions = configuration.baseOptions;
18081
+ }
18082
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
18083
+ const localVarHeaderParameter = {};
18084
+ const localVarQueryParameter = {};
18085
+ // authentication apiToken required
18086
+ // http bearer authentication required
18087
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
18088
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18089
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
18090
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18091
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18092
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsTagsManageContactsRequest, localVarRequestOptions, configuration);
18093
+ return {
18094
+ url: (0, common_1.toPathString)(localVarUrlObj),
18095
+ options: localVarRequestOptions,
18096
+ };
18097
+ }),
18098
+ /**
18099
+ * Create tags in a profile. Names that already exist in the profile are not duplicated: the existing tag is returned instead, so the call is safe to repeat. Every tag in the request is returned, whether it was created now or already existed.
18100
+ * @summary Create or find tags
18101
+ * @param {string} profileUuid Profile uuid parameter
18102
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
18103
+ * @param {*} [options] Override http request option.
18104
+ * @throws {RequiredError}
18105
+ */
18106
+ createOrFindTagsV1: (profileUuid_1, reachV1ContactsTagsStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsTagsStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsTagsStoreRequest, options = {}) {
18107
+ // verify required parameter 'profileUuid' is not null or undefined
18108
+ (0, common_1.assertParamExists)('createOrFindTagsV1', 'profileUuid', profileUuid);
18109
+ // verify required parameter 'reachV1ContactsTagsStoreRequest' is not null or undefined
18110
+ (0, common_1.assertParamExists)('createOrFindTagsV1', 'reachV1ContactsTagsStoreRequest', reachV1ContactsTagsStoreRequest);
18111
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags`
18112
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
18113
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18114
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18115
+ let baseOptions;
18116
+ if (configuration) {
18117
+ baseOptions = configuration.baseOptions;
18118
+ }
18119
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
18120
+ const localVarHeaderParameter = {};
18121
+ const localVarQueryParameter = {};
18122
+ // authentication apiToken required
18123
+ // http bearer authentication required
18124
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
18125
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18126
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
18127
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18128
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18129
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsTagsStoreRequest, localVarRequestOptions, configuration);
18130
+ return {
18131
+ url: (0, common_1.toPathString)(localVarUrlObj),
18132
+ options: localVarRequestOptions,
18133
+ };
18134
+ }),
18135
+ /**
18136
+ * Delete a tag and remove it from every contact carrying it. The contacts themselves are not deleted. This is idempotent: deleting a tag that does not exist in the profile still succeeds.
18137
+ * @summary Delete a tag
18138
+ * @param {string} profileUuid Profile uuid parameter
18139
+ * @param {string} tagUuid Tag uuid parameter
18140
+ * @param {*} [options] Override http request option.
18141
+ * @throws {RequiredError}
18142
+ */
18143
+ deleteATagV1: (profileUuid_1, tagUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, ...args_1], void 0, function* (profileUuid, tagUuid, options = {}) {
18144
+ // verify required parameter 'profileUuid' is not null or undefined
18145
+ (0, common_1.assertParamExists)('deleteATagV1', 'profileUuid', profileUuid);
18146
+ // verify required parameter 'tagUuid' is not null or undefined
18147
+ (0, common_1.assertParamExists)('deleteATagV1', 'tagUuid', tagUuid);
18148
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}`
18149
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
18150
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
18151
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18152
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18153
+ let baseOptions;
18154
+ if (configuration) {
18155
+ baseOptions = configuration.baseOptions;
18156
+ }
18157
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
18158
+ const localVarHeaderParameter = {};
18159
+ const localVarQueryParameter = {};
18160
+ // authentication apiToken required
18161
+ // http bearer authentication required
18162
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
18163
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
18164
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18165
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18166
+ return {
18167
+ url: (0, common_1.toPathString)(localVarUrlObj),
18168
+ options: localVarRequestOptions,
18169
+ };
18170
+ }),
18171
+ /**
18172
+ * Get all tags defined in a profile. Tags are the way contacts are grouped in Reach, and can be used to filter the contact list or to build segments.
18173
+ * @summary List profile tags
18174
+ * @param {string} profileUuid Profile uuid parameter
18175
+ * @param {*} [options] Override http request option.
18176
+ * @throws {RequiredError}
18177
+ */
18178
+ listProfileTagsV1: (profileUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, ...args_1], void 0, function* (profileUuid, options = {}) {
18179
+ // verify required parameter 'profileUuid' is not null or undefined
18180
+ (0, common_1.assertParamExists)('listProfileTagsV1', 'profileUuid', profileUuid);
18181
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags`
18182
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
18183
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18184
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18185
+ let baseOptions;
18186
+ if (configuration) {
18187
+ baseOptions = configuration.baseOptions;
18188
+ }
18189
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
18190
+ const localVarHeaderParameter = {};
18191
+ const localVarQueryParameter = {};
18192
+ // authentication apiToken required
18193
+ // http bearer authentication required
18194
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
18195
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
18196
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18197
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18198
+ return {
18199
+ url: (0, common_1.toPathString)(localVarUrlObj),
18200
+ options: localVarRequestOptions,
18201
+ };
18202
+ }),
18203
+ /**
18204
+ * Remove a tag from a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Neither the tag nor the contact is deleted.
18205
+ * @summary Remove a contact from a tag
18206
+ * @param {string} profileUuid Profile uuid parameter
18207
+ * @param {string} tagUuid Tag uuid parameter
18208
+ * @param {string} contactUuid Contact uuid parameter
18209
+ * @param {*} [options] Override http request option.
18210
+ * @throws {RequiredError}
18211
+ */
18212
+ removeAContactFromATagV1: (profileUuid_1, tagUuid_1, contactUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, contactUuid_1, ...args_1], void 0, function* (profileUuid, tagUuid, contactUuid, options = {}) {
18213
+ // verify required parameter 'profileUuid' is not null or undefined
18214
+ (0, common_1.assertParamExists)('removeAContactFromATagV1', 'profileUuid', profileUuid);
18215
+ // verify required parameter 'tagUuid' is not null or undefined
18216
+ (0, common_1.assertParamExists)('removeAContactFromATagV1', 'tagUuid', tagUuid);
18217
+ // verify required parameter 'contactUuid' is not null or undefined
18218
+ (0, common_1.assertParamExists)('removeAContactFromATagV1', 'contactUuid', contactUuid);
18219
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid}`
18220
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
18221
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)))
18222
+ .replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
18223
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18224
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18225
+ let baseOptions;
18226
+ if (configuration) {
18227
+ baseOptions = configuration.baseOptions;
18228
+ }
18229
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
18230
+ const localVarHeaderParameter = {};
18231
+ const localVarQueryParameter = {};
18232
+ // authentication apiToken required
18233
+ // http bearer authentication required
18234
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
18235
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
18236
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18237
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18238
+ return {
18239
+ url: (0, common_1.toPathString)(localVarUrlObj),
18240
+ options: localVarRequestOptions,
18241
+ };
18242
+ }),
18243
+ /**
18244
+ * Remove a tag from many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. The tag itself and the contacts are not deleted.
18245
+ * @summary Remove contacts from a tag
18246
+ * @param {string} profileUuid Profile uuid parameter
18247
+ * @param {string} tagUuid Tag uuid parameter
18248
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
18249
+ * @param {*} [options] Override http request option.
18250
+ * @throws {RequiredError}
18251
+ */
18252
+ removeContactsFromATagV1: (profileUuid_1, tagUuid_1, reachV1ContactsTagsManageContactsRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, reachV1ContactsTagsManageContactsRequest_1, ...args_1], void 0, function* (profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options = {}) {
18253
+ // verify required parameter 'profileUuid' is not null or undefined
18254
+ (0, common_1.assertParamExists)('removeContactsFromATagV1', 'profileUuid', profileUuid);
18255
+ // verify required parameter 'tagUuid' is not null or undefined
18256
+ (0, common_1.assertParamExists)('removeContactsFromATagV1', 'tagUuid', tagUuid);
18257
+ // verify required parameter 'reachV1ContactsTagsManageContactsRequest' is not null or undefined
18258
+ (0, common_1.assertParamExists)('removeContactsFromATagV1', 'reachV1ContactsTagsManageContactsRequest', reachV1ContactsTagsManageContactsRequest);
18259
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts`
18260
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
18261
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
18262
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18263
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18264
+ let baseOptions;
18265
+ if (configuration) {
18266
+ baseOptions = configuration.baseOptions;
18267
+ }
18268
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
18269
+ const localVarHeaderParameter = {};
18270
+ const localVarQueryParameter = {};
18271
+ // authentication apiToken required
18272
+ // http bearer authentication required
18273
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
18274
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18275
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
18276
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18277
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18278
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsTagsManageContactsRequest, localVarRequestOptions, configuration);
18279
+ return {
18280
+ url: (0, common_1.toPathString)(localVarUrlObj),
18281
+ options: localVarRequestOptions,
18282
+ };
18283
+ }),
18284
+ /**
18285
+ * Rename a tag. The contacts assigned to the tag are unaffected. Names are unique within a profile, so renaming a tag to a name that is already taken is rejected.
18286
+ * @summary Rename a tag
18287
+ * @param {string} profileUuid Profile uuid parameter
18288
+ * @param {string} tagUuid Tag uuid parameter
18289
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
18290
+ * @param {*} [options] Override http request option.
18291
+ * @throws {RequiredError}
18292
+ */
18293
+ renameATagV1: (profileUuid_1, tagUuid_1, reachV1ContactsTagsUpdateRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, reachV1ContactsTagsUpdateRequest_1, ...args_1], void 0, function* (profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options = {}) {
18294
+ // verify required parameter 'profileUuid' is not null or undefined
18295
+ (0, common_1.assertParamExists)('renameATagV1', 'profileUuid', profileUuid);
18296
+ // verify required parameter 'tagUuid' is not null or undefined
18297
+ (0, common_1.assertParamExists)('renameATagV1', 'tagUuid', tagUuid);
18298
+ // verify required parameter 'reachV1ContactsTagsUpdateRequest' is not null or undefined
18299
+ (0, common_1.assertParamExists)('renameATagV1', 'reachV1ContactsTagsUpdateRequest', reachV1ContactsTagsUpdateRequest);
18300
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}`
18301
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
18302
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
18303
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18304
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18305
+ let baseOptions;
18306
+ if (configuration) {
18307
+ baseOptions = configuration.baseOptions;
18308
+ }
18309
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
18310
+ const localVarHeaderParameter = {};
18311
+ const localVarQueryParameter = {};
18312
+ // authentication apiToken required
18313
+ // http bearer authentication required
18314
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
18315
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18316
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
18317
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18318
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18319
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsTagsUpdateRequest, localVarRequestOptions, configuration);
18320
+ return {
18321
+ url: (0, common_1.toPathString)(localVarUrlObj),
18322
+ options: localVarRequestOptions,
18323
+ };
18324
+ }),
18325
+ };
18326
+ };
18327
+ exports.ReachTagsApiAxiosParamCreator = ReachTagsApiAxiosParamCreator;
18328
+ /**
18329
+ * ReachTagsApi - functional programming interface
18330
+ * @export
18331
+ */
18332
+ const ReachTagsApiFp = function (configuration) {
18333
+ const localVarAxiosParamCreator = (0, exports.ReachTagsApiAxiosParamCreator)(configuration);
18334
+ return {
18335
+ /**
18336
+ * Assign a tag to a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Assigning a tag the contact already carries succeeds without duplicating it.
18337
+ * @summary Assign a contact to a tag
18338
+ * @param {string} profileUuid Profile uuid parameter
18339
+ * @param {string} tagUuid Tag uuid parameter
18340
+ * @param {string} contactUuid Contact uuid parameter
18341
+ * @param {*} [options] Override http request option.
18342
+ * @throws {RequiredError}
18343
+ */
18344
+ assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options) {
18345
+ return __awaiter(this, void 0, void 0, function* () {
18346
+ var _a, _b;
18347
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options);
18348
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.assignAContactToATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
18349
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18350
+ });
18351
+ },
18352
+ /**
18353
+ * Assign a tag to many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. Contacts that already carry the tag are left alone.
18354
+ * @summary Assign contacts to a tag
18355
+ * @param {string} profileUuid Profile uuid parameter
18356
+ * @param {string} tagUuid Tag uuid parameter
18357
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
18358
+ * @param {*} [options] Override http request option.
18359
+ * @throws {RequiredError}
18360
+ */
18361
+ assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
18362
+ return __awaiter(this, void 0, void 0, function* () {
18363
+ var _a, _b;
18364
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options);
18365
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.assignContactsToATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
18366
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18367
+ });
18368
+ },
18369
+ /**
18370
+ * Create tags in a profile. Names that already exist in the profile are not duplicated: the existing tag is returned instead, so the call is safe to repeat. Every tag in the request is returned, whether it was created now or already existed.
18371
+ * @summary Create or find tags
18372
+ * @param {string} profileUuid Profile uuid parameter
18373
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
18374
+ * @param {*} [options] Override http request option.
18375
+ * @throws {RequiredError}
18376
+ */
18377
+ createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options) {
18378
+ return __awaiter(this, void 0, void 0, function* () {
18379
+ var _a, _b;
18380
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options);
18381
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.createOrFindTagsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
18382
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18383
+ });
18384
+ },
18385
+ /**
18386
+ * Delete a tag and remove it from every contact carrying it. The contacts themselves are not deleted. This is idempotent: deleting a tag that does not exist in the profile still succeeds.
18387
+ * @summary Delete a tag
18388
+ * @param {string} profileUuid Profile uuid parameter
18389
+ * @param {string} tagUuid Tag uuid parameter
18390
+ * @param {*} [options] Override http request option.
18391
+ * @throws {RequiredError}
18392
+ */
18393
+ deleteATagV1(profileUuid, tagUuid, options) {
18394
+ return __awaiter(this, void 0, void 0, function* () {
18395
+ var _a, _b;
18396
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteATagV1(profileUuid, tagUuid, options);
18397
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.deleteATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
18398
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18399
+ });
18400
+ },
18401
+ /**
18402
+ * Get all tags defined in a profile. Tags are the way contacts are grouped in Reach, and can be used to filter the contact list or to build segments.
18403
+ * @summary List profile tags
18404
+ * @param {string} profileUuid Profile uuid parameter
18405
+ * @param {*} [options] Override http request option.
18406
+ * @throws {RequiredError}
18407
+ */
18408
+ listProfileTagsV1(profileUuid, options) {
18409
+ return __awaiter(this, void 0, void 0, function* () {
18410
+ var _a, _b;
18411
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfileTagsV1(profileUuid, options);
18412
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.listProfileTagsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
18413
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18414
+ });
18415
+ },
18416
+ /**
18417
+ * Remove a tag from a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Neither the tag nor the contact is deleted.
18418
+ * @summary Remove a contact from a tag
18419
+ * @param {string} profileUuid Profile uuid parameter
18420
+ * @param {string} tagUuid Tag uuid parameter
18421
+ * @param {string} contactUuid Contact uuid parameter
18422
+ * @param {*} [options] Override http request option.
18423
+ * @throws {RequiredError}
18424
+ */
18425
+ removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options) {
18426
+ return __awaiter(this, void 0, void 0, function* () {
18427
+ var _a, _b;
18428
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options);
18429
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.removeAContactFromATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
18430
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18431
+ });
18432
+ },
18433
+ /**
18434
+ * Remove a tag from many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. The tag itself and the contacts are not deleted.
18435
+ * @summary Remove contacts from a tag
18436
+ * @param {string} profileUuid Profile uuid parameter
18437
+ * @param {string} tagUuid Tag uuid parameter
18438
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
18439
+ * @param {*} [options] Override http request option.
18440
+ * @throws {RequiredError}
18441
+ */
18442
+ removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
18443
+ return __awaiter(this, void 0, void 0, function* () {
18444
+ var _a, _b;
18445
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options);
18446
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.removeContactsFromATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
18447
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18448
+ });
18449
+ },
18450
+ /**
18451
+ * Rename a tag. The contacts assigned to the tag are unaffected. Names are unique within a profile, so renaming a tag to a name that is already taken is rejected.
18452
+ * @summary Rename a tag
18453
+ * @param {string} profileUuid Profile uuid parameter
18454
+ * @param {string} tagUuid Tag uuid parameter
18455
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
18456
+ * @param {*} [options] Override http request option.
18457
+ * @throws {RequiredError}
18458
+ */
18459
+ renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options) {
18460
+ return __awaiter(this, void 0, void 0, function* () {
18461
+ var _a, _b;
18462
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options);
18463
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachTagsApi.renameATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
18464
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18465
+ });
18466
+ },
18467
+ };
18468
+ };
18469
+ exports.ReachTagsApiFp = ReachTagsApiFp;
18470
+ /**
18471
+ * ReachTagsApi - factory interface
18472
+ * @export
18473
+ */
18474
+ const ReachTagsApiFactory = function (configuration, basePath, axios) {
18475
+ const localVarFp = (0, exports.ReachTagsApiFp)(configuration);
18476
+ return {
18477
+ /**
18478
+ * Assign a tag to a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Assigning a tag the contact already carries succeeds without duplicating it.
18479
+ * @summary Assign a contact to a tag
18480
+ * @param {string} profileUuid Profile uuid parameter
18481
+ * @param {string} tagUuid Tag uuid parameter
18482
+ * @param {string} contactUuid Contact uuid parameter
18483
+ * @param {*} [options] Override http request option.
18484
+ * @throws {RequiredError}
18485
+ */
18486
+ assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options) {
18487
+ return localVarFp.assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(axios, basePath));
18488
+ },
18489
+ /**
18490
+ * Assign a tag to many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. Contacts that already carry the tag are left alone.
18491
+ * @summary Assign contacts to a tag
18492
+ * @param {string} profileUuid Profile uuid parameter
18493
+ * @param {string} tagUuid Tag uuid parameter
18494
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
18495
+ * @param {*} [options] Override http request option.
18496
+ * @throws {RequiredError}
18497
+ */
18498
+ assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
18499
+ return localVarFp.assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(axios, basePath));
18500
+ },
18501
+ /**
18502
+ * Create tags in a profile. Names that already exist in the profile are not duplicated: the existing tag is returned instead, so the call is safe to repeat. Every tag in the request is returned, whether it was created now or already existed.
18503
+ * @summary Create or find tags
18504
+ * @param {string} profileUuid Profile uuid parameter
18505
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
18506
+ * @param {*} [options] Override http request option.
18507
+ * @throws {RequiredError}
18508
+ */
18509
+ createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options) {
18510
+ return localVarFp.createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options).then((request) => request(axios, basePath));
18511
+ },
18512
+ /**
18513
+ * Delete a tag and remove it from every contact carrying it. The contacts themselves are not deleted. This is idempotent: deleting a tag that does not exist in the profile still succeeds.
18514
+ * @summary Delete a tag
18515
+ * @param {string} profileUuid Profile uuid parameter
18516
+ * @param {string} tagUuid Tag uuid parameter
18517
+ * @param {*} [options] Override http request option.
18518
+ * @throws {RequiredError}
18519
+ */
18520
+ deleteATagV1(profileUuid, tagUuid, options) {
18521
+ return localVarFp.deleteATagV1(profileUuid, tagUuid, options).then((request) => request(axios, basePath));
18522
+ },
18523
+ /**
18524
+ * Get all tags defined in a profile. Tags are the way contacts are grouped in Reach, and can be used to filter the contact list or to build segments.
18525
+ * @summary List profile tags
18526
+ * @param {string} profileUuid Profile uuid parameter
18527
+ * @param {*} [options] Override http request option.
18528
+ * @throws {RequiredError}
18529
+ */
18530
+ listProfileTagsV1(profileUuid, options) {
18531
+ return localVarFp.listProfileTagsV1(profileUuid, options).then((request) => request(axios, basePath));
18532
+ },
18533
+ /**
18534
+ * Remove a tag from a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Neither the tag nor the contact is deleted.
18535
+ * @summary Remove a contact from a tag
18536
+ * @param {string} profileUuid Profile uuid parameter
18537
+ * @param {string} tagUuid Tag uuid parameter
18538
+ * @param {string} contactUuid Contact uuid parameter
18539
+ * @param {*} [options] Override http request option.
18540
+ * @throws {RequiredError}
18541
+ */
18542
+ removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options) {
18543
+ return localVarFp.removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(axios, basePath));
18544
+ },
18545
+ /**
18546
+ * Remove a tag from many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. The tag itself and the contacts are not deleted.
18547
+ * @summary Remove contacts from a tag
18548
+ * @param {string} profileUuid Profile uuid parameter
18549
+ * @param {string} tagUuid Tag uuid parameter
18550
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
18551
+ * @param {*} [options] Override http request option.
18552
+ * @throws {RequiredError}
18553
+ */
18554
+ removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
18555
+ return localVarFp.removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(axios, basePath));
18556
+ },
18557
+ /**
18558
+ * Rename a tag. The contacts assigned to the tag are unaffected. Names are unique within a profile, so renaming a tag to a name that is already taken is rejected.
18559
+ * @summary Rename a tag
18560
+ * @param {string} profileUuid Profile uuid parameter
18561
+ * @param {string} tagUuid Tag uuid parameter
18562
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
18563
+ * @param {*} [options] Override http request option.
18564
+ * @throws {RequiredError}
18565
+ */
18566
+ renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options) {
18567
+ return localVarFp.renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options).then((request) => request(axios, basePath));
18568
+ },
18569
+ };
18570
+ };
18571
+ exports.ReachTagsApiFactory = ReachTagsApiFactory;
18572
+ /**
18573
+ * ReachTagsApi - object-oriented interface
18574
+ * @export
18575
+ * @class ReachTagsApi
18576
+ * @extends {BaseAPI}
18577
+ */
18578
+ class ReachTagsApi extends base_1.BaseAPI {
18579
+ /**
18580
+ * Assign a tag to a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Assigning a tag the contact already carries succeeds without duplicating it.
18581
+ * @summary Assign a contact to a tag
18582
+ * @param {string} profileUuid Profile uuid parameter
18583
+ * @param {string} tagUuid Tag uuid parameter
18584
+ * @param {string} contactUuid Contact uuid parameter
18585
+ * @param {*} [options] Override http request option.
18586
+ * @throws {RequiredError}
18587
+ * @memberof ReachTagsApi
18588
+ */
18589
+ assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options) {
18590
+ return (0, exports.ReachTagsApiFp)(this.configuration).assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
18591
+ }
18592
+ /**
18593
+ * Assign a tag to many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. Contacts that already carry the tag are left alone.
18594
+ * @summary Assign contacts to a tag
18595
+ * @param {string} profileUuid Profile uuid parameter
18596
+ * @param {string} tagUuid Tag uuid parameter
18597
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
18598
+ * @param {*} [options] Override http request option.
18599
+ * @throws {RequiredError}
18600
+ * @memberof ReachTagsApi
18601
+ */
18602
+ assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
18603
+ return (0, exports.ReachTagsApiFp)(this.configuration).assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(this.axios, this.basePath));
18604
+ }
18605
+ /**
18606
+ * Create tags in a profile. Names that already exist in the profile are not duplicated: the existing tag is returned instead, so the call is safe to repeat. Every tag in the request is returned, whether it was created now or already existed.
18607
+ * @summary Create or find tags
18608
+ * @param {string} profileUuid Profile uuid parameter
18609
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
18610
+ * @param {*} [options] Override http request option.
18611
+ * @throws {RequiredError}
18612
+ * @memberof ReachTagsApi
18613
+ */
18614
+ createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options) {
18615
+ return (0, exports.ReachTagsApiFp)(this.configuration).createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options).then((request) => request(this.axios, this.basePath));
18616
+ }
18617
+ /**
18618
+ * Delete a tag and remove it from every contact carrying it. The contacts themselves are not deleted. This is idempotent: deleting a tag that does not exist in the profile still succeeds.
18619
+ * @summary Delete a tag
18620
+ * @param {string} profileUuid Profile uuid parameter
18621
+ * @param {string} tagUuid Tag uuid parameter
18622
+ * @param {*} [options] Override http request option.
18623
+ * @throws {RequiredError}
18624
+ * @memberof ReachTagsApi
18625
+ */
18626
+ deleteATagV1(profileUuid, tagUuid, options) {
18627
+ return (0, exports.ReachTagsApiFp)(this.configuration).deleteATagV1(profileUuid, tagUuid, options).then((request) => request(this.axios, this.basePath));
18628
+ }
18629
+ /**
18630
+ * Get all tags defined in a profile. Tags are the way contacts are grouped in Reach, and can be used to filter the contact list or to build segments.
18631
+ * @summary List profile tags
18632
+ * @param {string} profileUuid Profile uuid parameter
18633
+ * @param {*} [options] Override http request option.
18634
+ * @throws {RequiredError}
18635
+ * @memberof ReachTagsApi
18636
+ */
18637
+ listProfileTagsV1(profileUuid, options) {
18638
+ return (0, exports.ReachTagsApiFp)(this.configuration).listProfileTagsV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
18639
+ }
18640
+ /**
18641
+ * Remove a tag from a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Neither the tag nor the contact is deleted.
18642
+ * @summary Remove a contact from a tag
18643
+ * @param {string} profileUuid Profile uuid parameter
18644
+ * @param {string} tagUuid Tag uuid parameter
18645
+ * @param {string} contactUuid Contact uuid parameter
18646
+ * @param {*} [options] Override http request option.
18647
+ * @throws {RequiredError}
18648
+ * @memberof ReachTagsApi
18649
+ */
18650
+ removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options) {
18651
+ return (0, exports.ReachTagsApiFp)(this.configuration).removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
18652
+ }
18653
+ /**
18654
+ * Remove a tag from many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. The tag itself and the contacts are not deleted.
18655
+ * @summary Remove contacts from a tag
18656
+ * @param {string} profileUuid Profile uuid parameter
18657
+ * @param {string} tagUuid Tag uuid parameter
18658
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
18659
+ * @param {*} [options] Override http request option.
18660
+ * @throws {RequiredError}
18661
+ * @memberof ReachTagsApi
18662
+ */
18663
+ removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
18664
+ return (0, exports.ReachTagsApiFp)(this.configuration).removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(this.axios, this.basePath));
18665
+ }
18666
+ /**
18667
+ * Rename a tag. The contacts assigned to the tag are unaffected. Names are unique within a profile, so renaming a tag to a name that is already taken is rejected.
18668
+ * @summary Rename a tag
18669
+ * @param {string} profileUuid Profile uuid parameter
18670
+ * @param {string} tagUuid Tag uuid parameter
18671
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
18672
+ * @param {*} [options] Override http request option.
18673
+ * @throws {RequiredError}
18674
+ * @memberof ReachTagsApi
18675
+ */
18676
+ renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options) {
18677
+ return (0, exports.ReachTagsApiFp)(this.configuration).renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
18678
+ }
18679
+ }
18680
+ exports.ReachTagsApi = ReachTagsApi;
17477
18681
  /**
17478
18682
  * VPSActionsApi - axios parameter creator
17479
18683
  * @export