hostinger-api-sdk 1.28.0 → 1.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.29.0
4
+ * API Version: 1.30.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -743,43 +743,6 @@ export interface AgencyHostingV1WebsitesSslCertResource {
743
743
  */
744
744
  'created_at': string;
745
745
  }
746
- /**
747
- *
748
- * @export
749
- * @interface AgencyHostingV1WebsitesWebsiteDeletionResource
750
- */
751
- export interface AgencyHostingV1WebsitesWebsiteDeletionResource {
752
- /**
753
- * Deleted website UID
754
- * @type {string}
755
- * @memberof AgencyHostingV1WebsitesWebsiteDeletionResource
756
- */
757
- 'website_uid': string;
758
- /**
759
- * Deletion status
760
- * @type {string}
761
- * @memberof AgencyHostingV1WebsitesWebsiteDeletionResource
762
- */
763
- 'status': string;
764
- /**
765
- * Human-readable result message
766
- * @type {string}
767
- * @memberof AgencyHostingV1WebsitesWebsiteDeletionResource
768
- */
769
- 'message': string;
770
- /**
771
- *
772
- * @type {string}
773
- * @memberof AgencyHostingV1WebsitesWebsiteDeletionResource
774
- */
775
- 'deleted_at': string;
776
- /**
777
- * Whether background cleanup has been scheduled
778
- * @type {boolean}
779
- * @memberof AgencyHostingV1WebsitesWebsiteDeletionResource
780
- */
781
- 'is_cleanup_scheduled': boolean;
782
- }
783
746
  /**
784
747
  *
785
748
  * @export
@@ -7494,6 +7457,25 @@ export interface ReachListProfileSegmentContactsV1200Response {
7494
7457
  */
7495
7458
  'meta': CommonSchemaPaginationMetaSchema;
7496
7459
  }
7460
+ /**
7461
+ *
7462
+ * @export
7463
+ * @interface ReachListProfileSegmentsV1200Response
7464
+ */
7465
+ export interface ReachListProfileSegmentsV1200Response {
7466
+ /**
7467
+ * Array of [`Reach.V1.Contacts.Segments.SegmentListItemResource`](#model/reachv1contactssegmentssegmentlistitemresource)
7468
+ * @type {Array<ReachV1ContactsSegmentsSegmentListItemResource>}
7469
+ * @memberof ReachListProfileSegmentsV1200Response
7470
+ */
7471
+ 'data': Array<ReachV1ContactsSegmentsSegmentListItemResource>;
7472
+ /**
7473
+ *
7474
+ * @type {CommonSchemaPaginationMetaSchema}
7475
+ * @memberof ReachListProfileSegmentsV1200Response
7476
+ */
7477
+ 'meta': CommonSchemaPaginationMetaSchema;
7478
+ }
7497
7479
  /**
7498
7480
  * Create many contacts in one call
7499
7481
  * @export
@@ -8130,6 +8112,170 @@ export interface ReachV1ContactsSegmentsContactSegmentResource {
8130
8112
  */
8131
8113
  'updated_at': string;
8132
8114
  }
8115
+ /**
8116
+ * Create a segment from a set of conditions
8117
+ * @export
8118
+ * @interface ReachV1ContactsSegmentsProfileStoreRequest
8119
+ */
8120
+ export interface ReachV1ContactsSegmentsProfileStoreRequest {
8121
+ /**
8122
+ *
8123
+ * @type {string}
8124
+ * @memberof ReachV1ContactsSegmentsProfileStoreRequest
8125
+ */
8126
+ 'name': string;
8127
+ /**
8128
+ * Conditions a contact must satisfy to fall into the segment
8129
+ * @type {Array<ReachV1ContactsSegmentsProfileStoreRequestConditionsInner>}
8130
+ * @memberof ReachV1ContactsSegmentsProfileStoreRequest
8131
+ */
8132
+ 'conditions': Array<ReachV1ContactsSegmentsProfileStoreRequestConditionsInner>;
8133
+ /**
8134
+ * How to combine multiple conditions
8135
+ * @type {string}
8136
+ * @memberof ReachV1ContactsSegmentsProfileStoreRequest
8137
+ */
8138
+ 'logic': ReachV1ContactsSegmentsProfileStoreRequestLogicEnum;
8139
+ }
8140
+ export declare const ReachV1ContactsSegmentsProfileStoreRequestLogicEnum: {
8141
+ readonly And: "AND";
8142
+ readonly Or: "OR";
8143
+ };
8144
+ export type ReachV1ContactsSegmentsProfileStoreRequestLogicEnum = typeof ReachV1ContactsSegmentsProfileStoreRequestLogicEnum[keyof typeof ReachV1ContactsSegmentsProfileStoreRequestLogicEnum];
8145
+ /**
8146
+ *
8147
+ * @export
8148
+ * @interface ReachV1ContactsSegmentsProfileStoreRequestConditionsInner
8149
+ */
8150
+ export interface ReachV1ContactsSegmentsProfileStoreRequestConditionsInner {
8151
+ /**
8152
+ * A built-in contact attribute, or `cf:{fieldUuid}` to target a custom contact field. Custom fields are addressed by field UUID; their slug is not accepted. Built-in attributes: `email`, `note`, `domain`, `source`, `opt_in_method`, `subscription_status`, `subscribed_at`, `unsubscribed_at`, `created_at`, `tag`, `campaigns`, `processed`, `opened`, `clicked`, `delivered`, `bounced`, `soft_bounced`, `dropped`. Which operators are accepted depends on the attribute.
8153
+ * @type {string}
8154
+ * @memberof ReachV1ContactsSegmentsProfileStoreRequestConditionsInner
8155
+ */
8156
+ 'attribute': string;
8157
+ /**
8158
+ *
8159
+ * @type {string}
8160
+ * @memberof ReachV1ContactsSegmentsProfileStoreRequestConditionsInner
8161
+ */
8162
+ 'operator': ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum;
8163
+ /**
8164
+ * Always a string, including for numeric and date comparisons
8165
+ * @type {string}
8166
+ * @memberof ReachV1ContactsSegmentsProfileStoreRequestConditionsInner
8167
+ */
8168
+ 'value': string;
8169
+ }
8170
+ export declare const ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum: {
8171
+ readonly Equals: "equals";
8172
+ readonly NotEquals: "not_equals";
8173
+ readonly Contains: "contains";
8174
+ readonly NotContains: "not_contains";
8175
+ readonly Gte: "gte";
8176
+ readonly Lte: "lte";
8177
+ readonly Exists: "exists";
8178
+ readonly WithinLastDays: "within_last_days";
8179
+ readonly NotWithinLastDays: "not_within_last_days";
8180
+ readonly OlderThanDays: "older_than_days";
8181
+ readonly Processed: "processed";
8182
+ readonly NotProcessed: "not_processed";
8183
+ readonly Delivered: "delivered";
8184
+ readonly NotDelivered: "not_delivered";
8185
+ readonly Dropped: "dropped";
8186
+ readonly NotDropped: "not_dropped";
8187
+ readonly Bounced: "bounced";
8188
+ readonly NotBounced: "not_bounced";
8189
+ readonly SoftBounced: "soft_bounced";
8190
+ readonly NotSoftBounced: "not_soft_bounced";
8191
+ readonly Opened: "opened";
8192
+ readonly NotOpened: "not_opened";
8193
+ readonly Clicked: "clicked";
8194
+ readonly NotClicked: "not_clicked";
8195
+ readonly Unsubscribed: "unsubscribed";
8196
+ readonly NotUnsubscribed: "not_unsubscribed";
8197
+ };
8198
+ export type ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum = typeof ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum[keyof typeof ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum];
8199
+ /**
8200
+ * Rename a segment and/or replace the conditions that define it
8201
+ * @export
8202
+ * @interface ReachV1ContactsSegmentsProfileUpdateRequest
8203
+ */
8204
+ export interface ReachV1ContactsSegmentsProfileUpdateRequest {
8205
+ /**
8206
+ *
8207
+ * @type {string}
8208
+ * @memberof ReachV1ContactsSegmentsProfileUpdateRequest
8209
+ */
8210
+ 'name': string;
8211
+ /**
8212
+ * Replaces the existing conditions entirely. Omit to keep the current ones.
8213
+ * @type {Array<ReachV1ContactsSegmentsProfileStoreRequestConditionsInner>}
8214
+ * @memberof ReachV1ContactsSegmentsProfileUpdateRequest
8215
+ */
8216
+ 'conditions': Array<ReachV1ContactsSegmentsProfileStoreRequestConditionsInner>;
8217
+ /**
8218
+ * How to combine multiple conditions. Required when conditions are given.
8219
+ * @type {string}
8220
+ * @memberof ReachV1ContactsSegmentsProfileUpdateRequest
8221
+ */
8222
+ 'logic': ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum;
8223
+ }
8224
+ export declare const ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum: {
8225
+ readonly And: "AND";
8226
+ readonly Or: "OR";
8227
+ };
8228
+ export type ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum = typeof ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum[keyof typeof ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum];
8229
+ /**
8230
+ *
8231
+ * @export
8232
+ * @interface ReachV1ContactsSegmentsSegmentContactsCountResource
8233
+ */
8234
+ export interface ReachV1ContactsSegmentsSegmentContactsCountResource {
8235
+ /**
8236
+ * Contacts currently matching the segment conditions
8237
+ * @type {number}
8238
+ * @memberof ReachV1ContactsSegmentsSegmentContactsCountResource
8239
+ */
8240
+ 'count': number;
8241
+ }
8242
+ /**
8243
+ *
8244
+ * @export
8245
+ * @interface ReachV1ContactsSegmentsSegmentListItemResource
8246
+ */
8247
+ export interface ReachV1ContactsSegmentsSegmentListItemResource {
8248
+ /**
8249
+ *
8250
+ * @type {string}
8251
+ * @memberof ReachV1ContactsSegmentsSegmentListItemResource
8252
+ */
8253
+ 'uuid': string;
8254
+ /**
8255
+ *
8256
+ * @type {string}
8257
+ * @memberof ReachV1ContactsSegmentsSegmentListItemResource
8258
+ */
8259
+ 'name': string;
8260
+ /**
8261
+ * Contacts currently matching the segment conditions
8262
+ * @type {number}
8263
+ * @memberof ReachV1ContactsSegmentsSegmentListItemResource
8264
+ */
8265
+ 'contacts_count': number;
8266
+ /**
8267
+ *
8268
+ * @type {string}
8269
+ * @memberof ReachV1ContactsSegmentsSegmentListItemResource
8270
+ */
8271
+ 'created_at': string;
8272
+ /**
8273
+ *
8274
+ * @type {string}
8275
+ * @memberof ReachV1ContactsSegmentsSegmentListItemResource
8276
+ */
8277
+ 'updated_at': string;
8278
+ }
8133
8279
  /**
8134
8280
  *
8135
8281
  * @export
@@ -8313,6 +8459,8 @@ export declare const ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorE
8313
8459
  readonly NotDropped: "not_dropped";
8314
8460
  readonly Bounced: "bounced";
8315
8461
  readonly NotBounced: "not_bounced";
8462
+ readonly SoftBounced: "soft_bounced";
8463
+ readonly NotSoftBounced: "not_soft_bounced";
8316
8464
  readonly Opened: "opened";
8317
8465
  readonly NotOpened: "not_opened";
8318
8466
  readonly Clicked: "clicked";
@@ -12220,7 +12368,7 @@ export declare const AgencyHostingWebsitesApiAxiosParamCreator: (configuration?:
12220
12368
  */
12221
12369
  buildAgencyPlanWebsiteNodeJSAssetsV1: (websiteUid: string, agencyHostingV1WebsitesBuildAssetsRequest: AgencyHostingV1WebsitesBuildAssetsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12222
12370
  /**
12223
- * Deletes an Agency Plan website and schedules cleanup of its resources. This action is irreversible. Website files, databases, and linked domains are removed.
12371
+ * Permanently deletes an Agency Plan website. Deletion is processed asynchronously: the website is immediately transitioned to a deleting state and the underlying server resources are removed in the background.
12224
12372
  * @summary Delete Agency Plan website
12225
12373
  * @param {string} websiteUid Agency Plan website UID
12226
12374
  * @param {*} [options] Override http request option.
@@ -12259,13 +12407,13 @@ export declare const AgencyHostingWebsitesApiFp: (configuration?: Configuration)
12259
12407
  */
12260
12408
  buildAgencyPlanWebsiteNodeJSAssetsV1(websiteUid: string, agencyHostingV1WebsitesBuildAssetsRequest: AgencyHostingV1WebsitesBuildAssetsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
12261
12409
  /**
12262
- * Deletes an Agency Plan website and schedules cleanup of its resources. This action is irreversible. Website files, databases, and linked domains are removed.
12410
+ * Permanently deletes an Agency Plan website. Deletion is processed asynchronously: the website is immediately transitioned to a deleting state and the underlying server resources are removed in the background.
12263
12411
  * @summary Delete Agency Plan website
12264
12412
  * @param {string} websiteUid Agency Plan website UID
12265
12413
  * @param {*} [options] Override http request option.
12266
12414
  * @throws {RequiredError}
12267
12415
  */
12268
- deleteAgencyPlanWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgencyHostingV1WebsitesWebsiteDeletionResource>>;
12416
+ deleteAgencyPlanWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
12269
12417
  /**
12270
12418
  * Retrieves detailed information about a specific Agency Plan website, including configuration, status, metadata, hosting plan details, and resource quotas.
12271
12419
  * @summary Get Agency Plan website details
@@ -12298,13 +12446,13 @@ export declare const AgencyHostingWebsitesApiFactory: (configuration?: Configura
12298
12446
  */
12299
12447
  buildAgencyPlanWebsiteNodeJSAssetsV1(websiteUid: string, agencyHostingV1WebsitesBuildAssetsRequest: AgencyHostingV1WebsitesBuildAssetsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
12300
12448
  /**
12301
- * Deletes an Agency Plan website and schedules cleanup of its resources. This action is irreversible. Website files, databases, and linked domains are removed.
12449
+ * Permanently deletes an Agency Plan website. Deletion is processed asynchronously: the website is immediately transitioned to a deleting state and the underlying server resources are removed in the background.
12302
12450
  * @summary Delete Agency Plan website
12303
12451
  * @param {string} websiteUid Agency Plan website UID
12304
12452
  * @param {*} [options] Override http request option.
12305
12453
  * @throws {RequiredError}
12306
12454
  */
12307
- deleteAgencyPlanWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): AxiosPromise<AgencyHostingV1WebsitesWebsiteDeletionResource>;
12455
+ deleteAgencyPlanWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
12308
12456
  /**
12309
12457
  * Retrieves detailed information about a specific Agency Plan website, including configuration, status, metadata, hosting plan details, and resource quotas.
12310
12458
  * @summary Get Agency Plan website details
@@ -12340,14 +12488,14 @@ export declare class AgencyHostingWebsitesApi extends BaseAPI {
12340
12488
  */
12341
12489
  buildAgencyPlanWebsiteNodeJSAssetsV1(websiteUid: string, agencyHostingV1WebsitesBuildAssetsRequest: AgencyHostingV1WebsitesBuildAssetsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
12342
12490
  /**
12343
- * Deletes an Agency Plan website and schedules cleanup of its resources. This action is irreversible. Website files, databases, and linked domains are removed.
12491
+ * Permanently deletes an Agency Plan website. Deletion is processed asynchronously: the website is immediately transitioned to a deleting state and the underlying server resources are removed in the background.
12344
12492
  * @summary Delete Agency Plan website
12345
12493
  * @param {string} websiteUid Agency Plan website UID
12346
12494
  * @param {*} [options] Override http request option.
12347
12495
  * @throws {RequiredError}
12348
12496
  * @memberof AgencyHostingWebsitesApi
12349
12497
  */
12350
- deleteAgencyPlanWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgencyHostingV1WebsitesWebsiteDeletionResource, any, {}, any>>;
12498
+ deleteAgencyPlanWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
12351
12499
  /**
12352
12500
  * Retrieves detailed information about a specific Agency Plan website, including configuration, status, metadata, hosting plan details, and resource quotas.
12353
12501
  * @summary Get Agency Plan website details
@@ -19830,18 +19978,56 @@ export declare class ReachProfilesApi extends BaseAPI {
19830
19978
  */
19831
19979
  export declare const ReachSegmentsApiAxiosParamCreator: (configuration?: Configuration) => {
19832
19980
  /**
19833
- * 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.
19981
+ * Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
19982
+ * @summary Count profile segment contacts
19983
+ * @param {string} profileUuid Profile uuid parameter
19984
+ * @param {string} segmentUuid Segment uuid parameter
19985
+ * @param {*} [options] Override http request option.
19986
+ * @throws {RequiredError}
19987
+ */
19988
+ countProfileSegmentContactsV1: (profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19989
+ /**
19990
+ * 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.
19834
19991
  * @summary Create a new contact segment
19835
19992
  * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
19836
19993
  * @param {*} [options] Override http request option.
19994
+ * @deprecated
19837
19995
  * @throws {RequiredError}
19838
19996
  */
19839
19997
  createANewContactSegmentV1: (reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19840
19998
  /**
19841
- * 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.
19999
+ * 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.
20000
+ * @summary Create a profile segment
20001
+ * @param {string} profileUuid Profile uuid parameter
20002
+ * @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
20003
+ * @param {*} [options] Override http request option.
20004
+ * @throws {RequiredError}
20005
+ */
20006
+ createAProfileSegmentV1: (profileUuid: string, reachV1ContactsSegmentsProfileStoreRequest: ReachV1ContactsSegmentsProfileStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20007
+ /**
20008
+ * Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
20009
+ * @summary Delete a profile segment
20010
+ * @param {string} profileUuid Profile uuid parameter
20011
+ * @param {string} segmentUuid Segment uuid parameter
20012
+ * @param {*} [options] Override http request option.
20013
+ * @throws {RequiredError}
20014
+ */
20015
+ deleteAProfileSegmentV1: (profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20016
+ /**
20017
+ * 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.
20018
+ * @summary Get profile segment details
20019
+ * @param {string} profileUuid Profile uuid parameter
20020
+ * @param {string} segmentUuid Segment uuid parameter
20021
+ * @param {*} [options] Override http request option.
20022
+ * @throws {RequiredError}
20023
+ */
20024
+ getProfileSegmentDetailsV1: (profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20025
+ /**
20026
+ * 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.
19842
20027
  * @summary Get segment details
19843
20028
  * @param {string} segmentUuid Segment uuid parameter
19844
20029
  * @param {*} [options] Override http request option.
20030
+ * @deprecated
19845
20031
  * @throws {RequiredError}
19846
20032
  */
19847
20033
  getSegmentDetailsV1: (segmentUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
@@ -19857,22 +20043,45 @@ export declare const ReachSegmentsApiAxiosParamCreator: (configuration?: Configu
19857
20043
  */
19858
20044
  listProfileSegmentContactsV1: (profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19859
20045
  /**
19860
- * 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.
20046
+ * 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.
20047
+ * @summary List profile segments
20048
+ * @param {string} profileUuid Profile uuid parameter
20049
+ * @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
20050
+ * @param {number} [page] Page number
20051
+ * @param {number} [perPage] Number of items per page
20052
+ * @param {*} [options] Override http request option.
20053
+ * @throws {RequiredError}
20054
+ */
20055
+ listProfileSegmentsV1: (profileUuid: string, countType?: ListProfileSegmentsV1CountTypeEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20056
+ /**
20057
+ * 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.
19861
20058
  * @summary List segment contacts
19862
20059
  * @param {string} segmentUuid Segment uuid parameter
19863
20060
  * @param {number} [page] Page number
19864
20061
  * @param {number} [perPage] Number of items per page
19865
20062
  * @param {*} [options] Override http request option.
20063
+ * @deprecated
19866
20064
  * @throws {RequiredError}
19867
20065
  */
19868
20066
  listSegmentContactsV1: (segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19869
20067
  /**
19870
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
20068
+ * 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.
19871
20069
  * @summary List segments
19872
20070
  * @param {*} [options] Override http request option.
20071
+ * @deprecated
19873
20072
  * @throws {RequiredError}
19874
20073
  */
19875
20074
  listSegmentsV1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20075
+ /**
20076
+ * 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.
20077
+ * @summary Update a profile segment
20078
+ * @param {string} profileUuid Profile uuid parameter
20079
+ * @param {string} segmentUuid Segment uuid parameter
20080
+ * @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
20081
+ * @param {*} [options] Override http request option.
20082
+ * @throws {RequiredError}
20083
+ */
20084
+ updateAProfileSegmentV1: (profileUuid: string, segmentUuid: string, reachV1ContactsSegmentsProfileUpdateRequest: ReachV1ContactsSegmentsProfileUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19876
20085
  };
19877
20086
  /**
19878
20087
  * ReachSegmentsApi - functional programming interface
@@ -19880,18 +20089,56 @@ export declare const ReachSegmentsApiAxiosParamCreator: (configuration?: Configu
19880
20089
  */
19881
20090
  export declare const ReachSegmentsApiFp: (configuration?: Configuration) => {
19882
20091
  /**
19883
- * 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.
20092
+ * Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
20093
+ * @summary Count profile segment contacts
20094
+ * @param {string} profileUuid Profile uuid parameter
20095
+ * @param {string} segmentUuid Segment uuid parameter
20096
+ * @param {*} [options] Override http request option.
20097
+ * @throws {RequiredError}
20098
+ */
20099
+ countProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentContactsCountResource>>;
20100
+ /**
20101
+ * 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.
19884
20102
  * @summary Create a new contact segment
19885
20103
  * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
19886
20104
  * @param {*} [options] Override http request option.
20105
+ * @deprecated
19887
20106
  * @throws {RequiredError}
19888
20107
  */
19889
20108
  createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>>;
19890
20109
  /**
19891
- * 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.
20110
+ * 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.
20111
+ * @summary Create a profile segment
20112
+ * @param {string} profileUuid Profile uuid parameter
20113
+ * @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
20114
+ * @param {*} [options] Override http request option.
20115
+ * @throws {RequiredError}
20116
+ */
20117
+ createAProfileSegmentV1(profileUuid: string, reachV1ContactsSegmentsProfileStoreRequest: ReachV1ContactsSegmentsProfileStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>>;
20118
+ /**
20119
+ * Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
20120
+ * @summary Delete a profile segment
20121
+ * @param {string} profileUuid Profile uuid parameter
20122
+ * @param {string} segmentUuid Segment uuid parameter
20123
+ * @param {*} [options] Override http request option.
20124
+ * @throws {RequiredError}
20125
+ */
20126
+ deleteAProfileSegmentV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
20127
+ /**
20128
+ * 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.
20129
+ * @summary Get profile segment details
20130
+ * @param {string} profileUuid Profile uuid parameter
20131
+ * @param {string} segmentUuid Segment uuid parameter
20132
+ * @param {*} [options] Override http request option.
20133
+ * @throws {RequiredError}
20134
+ */
20135
+ getProfileSegmentDetailsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>>;
20136
+ /**
20137
+ * 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.
19892
20138
  * @summary Get segment details
19893
20139
  * @param {string} segmentUuid Segment uuid parameter
19894
20140
  * @param {*} [options] Override http request option.
20141
+ * @deprecated
19895
20142
  * @throws {RequiredError}
19896
20143
  */
19897
20144
  getSegmentDetailsV1(segmentUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>>;
@@ -19907,22 +20154,45 @@ export declare const ReachSegmentsApiFp: (configuration?: Configuration) => {
19907
20154
  */
19908
20155
  listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentContactsV1200Response>>;
19909
20156
  /**
19910
- * 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.
20157
+ * 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.
20158
+ * @summary List profile segments
20159
+ * @param {string} profileUuid Profile uuid parameter
20160
+ * @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
20161
+ * @param {number} [page] Page number
20162
+ * @param {number} [perPage] Number of items per page
20163
+ * @param {*} [options] Override http request option.
20164
+ * @throws {RequiredError}
20165
+ */
20166
+ listProfileSegmentsV1(profileUuid: string, countType?: ListProfileSegmentsV1CountTypeEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentsV1200Response>>;
20167
+ /**
20168
+ * 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.
19911
20169
  * @summary List segment contacts
19912
20170
  * @param {string} segmentUuid Segment uuid parameter
19913
20171
  * @param {number} [page] Page number
19914
20172
  * @param {number} [perPage] Number of items per page
19915
20173
  * @param {*} [options] Override http request option.
20174
+ * @deprecated
19916
20175
  * @throws {RequiredError}
19917
20176
  */
19918
20177
  listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentContactsV1200Response>>;
19919
20178
  /**
19920
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
20179
+ * 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.
19921
20180
  * @summary List segments
19922
20181
  * @param {*} [options] Override http request option.
20182
+ * @deprecated
19923
20183
  * @throws {RequiredError}
19924
20184
  */
19925
20185
  listSegmentsV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsSegmentsContactSegmentResource>>>;
20186
+ /**
20187
+ * 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.
20188
+ * @summary Update a profile segment
20189
+ * @param {string} profileUuid Profile uuid parameter
20190
+ * @param {string} segmentUuid Segment uuid parameter
20191
+ * @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
20192
+ * @param {*} [options] Override http request option.
20193
+ * @throws {RequiredError}
20194
+ */
20195
+ updateAProfileSegmentV1(profileUuid: string, segmentUuid: string, reachV1ContactsSegmentsProfileUpdateRequest: ReachV1ContactsSegmentsProfileUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>>;
19926
20196
  };
19927
20197
  /**
19928
20198
  * ReachSegmentsApi - factory interface
@@ -19930,18 +20200,56 @@ export declare const ReachSegmentsApiFp: (configuration?: Configuration) => {
19930
20200
  */
19931
20201
  export declare const ReachSegmentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
19932
20202
  /**
19933
- * 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.
20203
+ * Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
20204
+ * @summary Count profile segment contacts
20205
+ * @param {string} profileUuid Profile uuid parameter
20206
+ * @param {string} segmentUuid Segment uuid parameter
20207
+ * @param {*} [options] Override http request option.
20208
+ * @throws {RequiredError}
20209
+ */
20210
+ countProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentContactsCountResource>;
20211
+ /**
20212
+ * 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.
19934
20213
  * @summary Create a new contact segment
19935
20214
  * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
19936
20215
  * @param {*} [options] Override http request option.
20216
+ * @deprecated
19937
20217
  * @throws {RequiredError}
19938
20218
  */
19939
20219
  createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource>;
19940
20220
  /**
19941
- * 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.
20221
+ * 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.
20222
+ * @summary Create a profile segment
20223
+ * @param {string} profileUuid Profile uuid parameter
20224
+ * @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
20225
+ * @param {*} [options] Override http request option.
20226
+ * @throws {RequiredError}
20227
+ */
20228
+ createAProfileSegmentV1(profileUuid: string, reachV1ContactsSegmentsProfileStoreRequest: ReachV1ContactsSegmentsProfileStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource>;
20229
+ /**
20230
+ * Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
20231
+ * @summary Delete a profile segment
20232
+ * @param {string} profileUuid Profile uuid parameter
20233
+ * @param {string} segmentUuid Segment uuid parameter
20234
+ * @param {*} [options] Override http request option.
20235
+ * @throws {RequiredError}
20236
+ */
20237
+ deleteAProfileSegmentV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
20238
+ /**
20239
+ * 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.
20240
+ * @summary Get profile segment details
20241
+ * @param {string} profileUuid Profile uuid parameter
20242
+ * @param {string} segmentUuid Segment uuid parameter
20243
+ * @param {*} [options] Override http request option.
20244
+ * @throws {RequiredError}
20245
+ */
20246
+ getProfileSegmentDetailsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource>;
20247
+ /**
20248
+ * 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.
19942
20249
  * @summary Get segment details
19943
20250
  * @param {string} segmentUuid Segment uuid parameter
19944
20251
  * @param {*} [options] Override http request option.
20252
+ * @deprecated
19945
20253
  * @throws {RequiredError}
19946
20254
  */
19947
20255
  getSegmentDetailsV1(segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource>;
@@ -19957,22 +20265,45 @@ export declare const ReachSegmentsApiFactory: (configuration?: Configuration, ba
19957
20265
  */
19958
20266
  listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentContactsV1200Response>;
19959
20267
  /**
19960
- * 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.
20268
+ * 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.
20269
+ * @summary List profile segments
20270
+ * @param {string} profileUuid Profile uuid parameter
20271
+ * @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
20272
+ * @param {number} [page] Page number
20273
+ * @param {number} [perPage] Number of items per page
20274
+ * @param {*} [options] Override http request option.
20275
+ * @throws {RequiredError}
20276
+ */
20277
+ listProfileSegmentsV1(profileUuid: string, countType?: ListProfileSegmentsV1CountTypeEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentsV1200Response>;
20278
+ /**
20279
+ * 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.
19961
20280
  * @summary List segment contacts
19962
20281
  * @param {string} segmentUuid Segment uuid parameter
19963
20282
  * @param {number} [page] Page number
19964
20283
  * @param {number} [perPage] Number of items per page
19965
20284
  * @param {*} [options] Override http request option.
20285
+ * @deprecated
19966
20286
  * @throws {RequiredError}
19967
20287
  */
19968
20288
  listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentContactsV1200Response>;
19969
20289
  /**
19970
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
20290
+ * 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.
19971
20291
  * @summary List segments
19972
20292
  * @param {*} [options] Override http request option.
20293
+ * @deprecated
19973
20294
  * @throws {RequiredError}
19974
20295
  */
19975
20296
  listSegmentsV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsSegmentsContactSegmentResource>>;
20297
+ /**
20298
+ * 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.
20299
+ * @summary Update a profile segment
20300
+ * @param {string} profileUuid Profile uuid parameter
20301
+ * @param {string} segmentUuid Segment uuid parameter
20302
+ * @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
20303
+ * @param {*} [options] Override http request option.
20304
+ * @throws {RequiredError}
20305
+ */
20306
+ updateAProfileSegmentV1(profileUuid: string, segmentUuid: string, reachV1ContactsSegmentsProfileUpdateRequest: ReachV1ContactsSegmentsProfileUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource>;
19976
20307
  };
19977
20308
  /**
19978
20309
  * ReachSegmentsApi - object-oriented interface
@@ -19982,19 +20313,61 @@ export declare const ReachSegmentsApiFactory: (configuration?: Configuration, ba
19982
20313
  */
19983
20314
  export declare class ReachSegmentsApi extends BaseAPI {
19984
20315
  /**
19985
- * 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.
20316
+ * Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
20317
+ * @summary Count profile segment contacts
20318
+ * @param {string} profileUuid Profile uuid parameter
20319
+ * @param {string} segmentUuid Segment uuid parameter
20320
+ * @param {*} [options] Override http request option.
20321
+ * @throws {RequiredError}
20322
+ * @memberof ReachSegmentsApi
20323
+ */
20324
+ countProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsSegmentsSegmentContactsCountResource, any, {}, any>>;
20325
+ /**
20326
+ * 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.
19986
20327
  * @summary Create a new contact segment
19987
20328
  * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
19988
20329
  * @param {*} [options] Override http request option.
20330
+ * @deprecated
19989
20331
  * @throws {RequiredError}
19990
20332
  * @memberof ReachSegmentsApi
19991
20333
  */
19992
20334
  createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsSegmentsSegmentResource, any, {}, any>>;
19993
20335
  /**
19994
- * 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.
20336
+ * 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.
20337
+ * @summary Create a profile segment
20338
+ * @param {string} profileUuid Profile uuid parameter
20339
+ * @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
20340
+ * @param {*} [options] Override http request option.
20341
+ * @throws {RequiredError}
20342
+ * @memberof ReachSegmentsApi
20343
+ */
20344
+ createAProfileSegmentV1(profileUuid: string, reachV1ContactsSegmentsProfileStoreRequest: ReachV1ContactsSegmentsProfileStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsSegmentsSegmentResource, any, {}, any>>;
20345
+ /**
20346
+ * Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
20347
+ * @summary Delete a profile segment
20348
+ * @param {string} profileUuid Profile uuid parameter
20349
+ * @param {string} segmentUuid Segment uuid parameter
20350
+ * @param {*} [options] Override http request option.
20351
+ * @throws {RequiredError}
20352
+ * @memberof ReachSegmentsApi
20353
+ */
20354
+ deleteAProfileSegmentV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
20355
+ /**
20356
+ * 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.
20357
+ * @summary Get profile segment details
20358
+ * @param {string} profileUuid Profile uuid parameter
20359
+ * @param {string} segmentUuid Segment uuid parameter
20360
+ * @param {*} [options] Override http request option.
20361
+ * @throws {RequiredError}
20362
+ * @memberof ReachSegmentsApi
20363
+ */
20364
+ getProfileSegmentDetailsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsSegmentsSegmentResource, any, {}, any>>;
20365
+ /**
20366
+ * 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.
19995
20367
  * @summary Get segment details
19996
20368
  * @param {string} segmentUuid Segment uuid parameter
19997
20369
  * @param {*} [options] Override http request option.
20370
+ * @deprecated
19998
20371
  * @throws {RequiredError}
19999
20372
  * @memberof ReachSegmentsApi
20000
20373
  */
@@ -20012,25 +20385,58 @@ export declare class ReachSegmentsApi extends BaseAPI {
20012
20385
  */
20013
20386
  listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachListProfileSegmentContactsV1200Response, any, {}, any>>;
20014
20387
  /**
20015
- * 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.
20388
+ * 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.
20389
+ * @summary List profile segments
20390
+ * @param {string} profileUuid Profile uuid parameter
20391
+ * @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
20392
+ * @param {number} [page] Page number
20393
+ * @param {number} [perPage] Number of items per page
20394
+ * @param {*} [options] Override http request option.
20395
+ * @throws {RequiredError}
20396
+ * @memberof ReachSegmentsApi
20397
+ */
20398
+ listProfileSegmentsV1(profileUuid: string, countType?: ListProfileSegmentsV1CountTypeEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachListProfileSegmentsV1200Response, any, {}, any>>;
20399
+ /**
20400
+ * 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.
20016
20401
  * @summary List segment contacts
20017
20402
  * @param {string} segmentUuid Segment uuid parameter
20018
20403
  * @param {number} [page] Page number
20019
20404
  * @param {number} [perPage] Number of items per page
20020
20405
  * @param {*} [options] Override http request option.
20406
+ * @deprecated
20021
20407
  * @throws {RequiredError}
20022
20408
  * @memberof ReachSegmentsApi
20023
20409
  */
20024
20410
  listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachListProfileSegmentContactsV1200Response, any, {}, any>>;
20025
20411
  /**
20026
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
20412
+ * 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.
20027
20413
  * @summary List segments
20028
20414
  * @param {*} [options] Override http request option.
20415
+ * @deprecated
20029
20416
  * @throws {RequiredError}
20030
20417
  * @memberof ReachSegmentsApi
20031
20418
  */
20032
20419
  listSegmentsV1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsSegmentsContactSegmentResource[], any, {}, any>>;
20420
+ /**
20421
+ * 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.
20422
+ * @summary Update a profile segment
20423
+ * @param {string} profileUuid Profile uuid parameter
20424
+ * @param {string} segmentUuid Segment uuid parameter
20425
+ * @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
20426
+ * @param {*} [options] Override http request option.
20427
+ * @throws {RequiredError}
20428
+ * @memberof ReachSegmentsApi
20429
+ */
20430
+ updateAProfileSegmentV1(profileUuid: string, segmentUuid: string, reachV1ContactsSegmentsProfileUpdateRequest: ReachV1ContactsSegmentsProfileUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsSegmentsSegmentResource, any, {}, any>>;
20033
20431
  }
20432
+ /**
20433
+ * @export
20434
+ */
20435
+ export declare const ListProfileSegmentsV1CountTypeEnum: {
20436
+ readonly All: "all";
20437
+ readonly Subscribed: "subscribed";
20438
+ };
20439
+ export type ListProfileSegmentsV1CountTypeEnum = typeof ListProfileSegmentsV1CountTypeEnum[keyof typeof ListProfileSegmentsV1CountTypeEnum];
20034
20440
  /**
20035
20441
  * ReachTagsApi - axios parameter creator
20036
20442
  * @export