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/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.28.0
4
+ * API Version: 1.30.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -7494,6 +7494,25 @@ export interface ReachListProfileSegmentContactsV1200Response {
7494
7494
  */
7495
7495
  'meta': CommonSchemaPaginationMetaSchema;
7496
7496
  }
7497
+ /**
7498
+ *
7499
+ * @export
7500
+ * @interface ReachListProfileSegmentsV1200Response
7501
+ */
7502
+ export interface ReachListProfileSegmentsV1200Response {
7503
+ /**
7504
+ * Array of [`Reach.V1.Contacts.Segments.SegmentListItemResource`](#model/reachv1contactssegmentssegmentlistitemresource)
7505
+ * @type {Array<ReachV1ContactsSegmentsSegmentListItemResource>}
7506
+ * @memberof ReachListProfileSegmentsV1200Response
7507
+ */
7508
+ 'data': Array<ReachV1ContactsSegmentsSegmentListItemResource>;
7509
+ /**
7510
+ *
7511
+ * @type {CommonSchemaPaginationMetaSchema}
7512
+ * @memberof ReachListProfileSegmentsV1200Response
7513
+ */
7514
+ 'meta': CommonSchemaPaginationMetaSchema;
7515
+ }
7497
7516
  /**
7498
7517
  * Create many contacts in one call
7499
7518
  * @export
@@ -8130,6 +8149,170 @@ export interface ReachV1ContactsSegmentsContactSegmentResource {
8130
8149
  */
8131
8150
  'updated_at': string;
8132
8151
  }
8152
+ /**
8153
+ * Create a segment from a set of conditions
8154
+ * @export
8155
+ * @interface ReachV1ContactsSegmentsProfileStoreRequest
8156
+ */
8157
+ export interface ReachV1ContactsSegmentsProfileStoreRequest {
8158
+ /**
8159
+ *
8160
+ * @type {string}
8161
+ * @memberof ReachV1ContactsSegmentsProfileStoreRequest
8162
+ */
8163
+ 'name': string;
8164
+ /**
8165
+ * Conditions a contact must satisfy to fall into the segment
8166
+ * @type {Array<ReachV1ContactsSegmentsProfileStoreRequestConditionsInner>}
8167
+ * @memberof ReachV1ContactsSegmentsProfileStoreRequest
8168
+ */
8169
+ 'conditions': Array<ReachV1ContactsSegmentsProfileStoreRequestConditionsInner>;
8170
+ /**
8171
+ * How to combine multiple conditions
8172
+ * @type {string}
8173
+ * @memberof ReachV1ContactsSegmentsProfileStoreRequest
8174
+ */
8175
+ 'logic': ReachV1ContactsSegmentsProfileStoreRequestLogicEnum;
8176
+ }
8177
+ export declare const ReachV1ContactsSegmentsProfileStoreRequestLogicEnum: {
8178
+ readonly And: "AND";
8179
+ readonly Or: "OR";
8180
+ };
8181
+ export type ReachV1ContactsSegmentsProfileStoreRequestLogicEnum = typeof ReachV1ContactsSegmentsProfileStoreRequestLogicEnum[keyof typeof ReachV1ContactsSegmentsProfileStoreRequestLogicEnum];
8182
+ /**
8183
+ *
8184
+ * @export
8185
+ * @interface ReachV1ContactsSegmentsProfileStoreRequestConditionsInner
8186
+ */
8187
+ export interface ReachV1ContactsSegmentsProfileStoreRequestConditionsInner {
8188
+ /**
8189
+ * 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.
8190
+ * @type {string}
8191
+ * @memberof ReachV1ContactsSegmentsProfileStoreRequestConditionsInner
8192
+ */
8193
+ 'attribute': string;
8194
+ /**
8195
+ *
8196
+ * @type {string}
8197
+ * @memberof ReachV1ContactsSegmentsProfileStoreRequestConditionsInner
8198
+ */
8199
+ 'operator': ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum;
8200
+ /**
8201
+ * Always a string, including for numeric and date comparisons
8202
+ * @type {string}
8203
+ * @memberof ReachV1ContactsSegmentsProfileStoreRequestConditionsInner
8204
+ */
8205
+ 'value': string;
8206
+ }
8207
+ export declare const ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum: {
8208
+ readonly Equals: "equals";
8209
+ readonly NotEquals: "not_equals";
8210
+ readonly Contains: "contains";
8211
+ readonly NotContains: "not_contains";
8212
+ readonly Gte: "gte";
8213
+ readonly Lte: "lte";
8214
+ readonly Exists: "exists";
8215
+ readonly WithinLastDays: "within_last_days";
8216
+ readonly NotWithinLastDays: "not_within_last_days";
8217
+ readonly OlderThanDays: "older_than_days";
8218
+ readonly Processed: "processed";
8219
+ readonly NotProcessed: "not_processed";
8220
+ readonly Delivered: "delivered";
8221
+ readonly NotDelivered: "not_delivered";
8222
+ readonly Dropped: "dropped";
8223
+ readonly NotDropped: "not_dropped";
8224
+ readonly Bounced: "bounced";
8225
+ readonly NotBounced: "not_bounced";
8226
+ readonly SoftBounced: "soft_bounced";
8227
+ readonly NotSoftBounced: "not_soft_bounced";
8228
+ readonly Opened: "opened";
8229
+ readonly NotOpened: "not_opened";
8230
+ readonly Clicked: "clicked";
8231
+ readonly NotClicked: "not_clicked";
8232
+ readonly Unsubscribed: "unsubscribed";
8233
+ readonly NotUnsubscribed: "not_unsubscribed";
8234
+ };
8235
+ export type ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum = typeof ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum[keyof typeof ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum];
8236
+ /**
8237
+ * Rename a segment and/or replace the conditions that define it
8238
+ * @export
8239
+ * @interface ReachV1ContactsSegmentsProfileUpdateRequest
8240
+ */
8241
+ export interface ReachV1ContactsSegmentsProfileUpdateRequest {
8242
+ /**
8243
+ *
8244
+ * @type {string}
8245
+ * @memberof ReachV1ContactsSegmentsProfileUpdateRequest
8246
+ */
8247
+ 'name': string;
8248
+ /**
8249
+ * Replaces the existing conditions entirely. Omit to keep the current ones.
8250
+ * @type {Array<ReachV1ContactsSegmentsProfileStoreRequestConditionsInner>}
8251
+ * @memberof ReachV1ContactsSegmentsProfileUpdateRequest
8252
+ */
8253
+ 'conditions': Array<ReachV1ContactsSegmentsProfileStoreRequestConditionsInner>;
8254
+ /**
8255
+ * How to combine multiple conditions. Required when conditions are given.
8256
+ * @type {string}
8257
+ * @memberof ReachV1ContactsSegmentsProfileUpdateRequest
8258
+ */
8259
+ 'logic': ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum;
8260
+ }
8261
+ export declare const ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum: {
8262
+ readonly And: "AND";
8263
+ readonly Or: "OR";
8264
+ };
8265
+ export type ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum = typeof ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum[keyof typeof ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum];
8266
+ /**
8267
+ *
8268
+ * @export
8269
+ * @interface ReachV1ContactsSegmentsSegmentContactsCountResource
8270
+ */
8271
+ export interface ReachV1ContactsSegmentsSegmentContactsCountResource {
8272
+ /**
8273
+ * Contacts currently matching the segment conditions
8274
+ * @type {number}
8275
+ * @memberof ReachV1ContactsSegmentsSegmentContactsCountResource
8276
+ */
8277
+ 'count': number;
8278
+ }
8279
+ /**
8280
+ *
8281
+ * @export
8282
+ * @interface ReachV1ContactsSegmentsSegmentListItemResource
8283
+ */
8284
+ export interface ReachV1ContactsSegmentsSegmentListItemResource {
8285
+ /**
8286
+ *
8287
+ * @type {string}
8288
+ * @memberof ReachV1ContactsSegmentsSegmentListItemResource
8289
+ */
8290
+ 'uuid': string;
8291
+ /**
8292
+ *
8293
+ * @type {string}
8294
+ * @memberof ReachV1ContactsSegmentsSegmentListItemResource
8295
+ */
8296
+ 'name': string;
8297
+ /**
8298
+ * Contacts currently matching the segment conditions
8299
+ * @type {number}
8300
+ * @memberof ReachV1ContactsSegmentsSegmentListItemResource
8301
+ */
8302
+ 'contacts_count': number;
8303
+ /**
8304
+ *
8305
+ * @type {string}
8306
+ * @memberof ReachV1ContactsSegmentsSegmentListItemResource
8307
+ */
8308
+ 'created_at': string;
8309
+ /**
8310
+ *
8311
+ * @type {string}
8312
+ * @memberof ReachV1ContactsSegmentsSegmentListItemResource
8313
+ */
8314
+ 'updated_at': string;
8315
+ }
8133
8316
  /**
8134
8317
  *
8135
8318
  * @export
@@ -8313,6 +8496,8 @@ export declare const ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorE
8313
8496
  readonly NotDropped: "not_dropped";
8314
8497
  readonly Bounced: "bounced";
8315
8498
  readonly NotBounced: "not_bounced";
8499
+ readonly SoftBounced: "soft_bounced";
8500
+ readonly NotSoftBounced: "not_soft_bounced";
8316
8501
  readonly Opened: "opened";
8317
8502
  readonly NotOpened: "not_opened";
8318
8503
  readonly Clicked: "clicked";
@@ -8386,6 +8571,38 @@ export interface ReachV1ContactsStoreRequest {
8386
8571
  */
8387
8572
  'note': string | null;
8388
8573
  }
8574
+ /**
8575
+ * Contacts to assign to, or remove from, a tag
8576
+ * @export
8577
+ * @interface ReachV1ContactsTagsManageContactsRequest
8578
+ */
8579
+ export interface ReachV1ContactsTagsManageContactsRequest {
8580
+ /**
8581
+ * Contacts to apply the change to. Required unless all_contacts is true.
8582
+ * @type {Array<string>}
8583
+ * @memberof ReachV1ContactsTagsManageContactsRequest
8584
+ */
8585
+ 'contact_uuids': Array<string>;
8586
+ /**
8587
+ * Apply to every contact in the profile
8588
+ * @type {boolean}
8589
+ * @memberof ReachV1ContactsTagsManageContactsRequest
8590
+ */
8591
+ 'all_contacts': boolean;
8592
+ }
8593
+ /**
8594
+ * Names to create. Names that already exist in the profile are returned as they are.
8595
+ * @export
8596
+ * @interface ReachV1ContactsTagsStoreRequest
8597
+ */
8598
+ export interface ReachV1ContactsTagsStoreRequest {
8599
+ /**
8600
+ *
8601
+ * @type {Array<string>}
8602
+ * @memberof ReachV1ContactsTagsStoreRequest
8603
+ */
8604
+ 'names': Array<string>;
8605
+ }
8389
8606
  /**
8390
8607
  *
8391
8608
  * @export
@@ -8422,6 +8639,19 @@ export declare const ReachV1ContactsTagsTagResourceTypeEnum: {
8422
8639
  readonly Custom: "custom";
8423
8640
  };
8424
8641
  export type ReachV1ContactsTagsTagResourceTypeEnum = typeof ReachV1ContactsTagsTagResourceTypeEnum[keyof typeof ReachV1ContactsTagsTagResourceTypeEnum];
8642
+ /**
8643
+ * Rename a tag
8644
+ * @export
8645
+ * @interface ReachV1ContactsTagsUpdateRequest
8646
+ */
8647
+ export interface ReachV1ContactsTagsUpdateRequest {
8648
+ /**
8649
+ * New tag name
8650
+ * @type {string}
8651
+ * @memberof ReachV1ContactsTagsUpdateRequest
8652
+ */
8653
+ 'value': string;
8654
+ }
8425
8655
  /**
8426
8656
  * Fields to change on a contact. Omitted properties are left untouched.
8427
8657
  * @export
@@ -19785,18 +20015,56 @@ export declare class ReachProfilesApi extends BaseAPI {
19785
20015
  */
19786
20016
  export declare const ReachSegmentsApiAxiosParamCreator: (configuration?: Configuration) => {
19787
20017
  /**
19788
- * 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.
20018
+ * Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
20019
+ * @summary Count profile segment contacts
20020
+ * @param {string} profileUuid Profile uuid parameter
20021
+ * @param {string} segmentUuid Segment uuid parameter
20022
+ * @param {*} [options] Override http request option.
20023
+ * @throws {RequiredError}
20024
+ */
20025
+ countProfileSegmentContactsV1: (profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20026
+ /**
20027
+ * 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.
19789
20028
  * @summary Create a new contact segment
19790
20029
  * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
19791
20030
  * @param {*} [options] Override http request option.
20031
+ * @deprecated
19792
20032
  * @throws {RequiredError}
19793
20033
  */
19794
20034
  createANewContactSegmentV1: (reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19795
20035
  /**
19796
- * 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.
20036
+ * 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.
20037
+ * @summary Create a profile segment
20038
+ * @param {string} profileUuid Profile uuid parameter
20039
+ * @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
20040
+ * @param {*} [options] Override http request option.
20041
+ * @throws {RequiredError}
20042
+ */
20043
+ createAProfileSegmentV1: (profileUuid: string, reachV1ContactsSegmentsProfileStoreRequest: ReachV1ContactsSegmentsProfileStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20044
+ /**
20045
+ * Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
20046
+ * @summary Delete a profile segment
20047
+ * @param {string} profileUuid Profile uuid parameter
20048
+ * @param {string} segmentUuid Segment uuid parameter
20049
+ * @param {*} [options] Override http request option.
20050
+ * @throws {RequiredError}
20051
+ */
20052
+ deleteAProfileSegmentV1: (profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20053
+ /**
20054
+ * 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.
20055
+ * @summary Get profile segment details
20056
+ * @param {string} profileUuid Profile uuid parameter
20057
+ * @param {string} segmentUuid Segment uuid parameter
20058
+ * @param {*} [options] Override http request option.
20059
+ * @throws {RequiredError}
20060
+ */
20061
+ getProfileSegmentDetailsV1: (profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20062
+ /**
20063
+ * 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.
19797
20064
  * @summary Get segment details
19798
20065
  * @param {string} segmentUuid Segment uuid parameter
19799
20066
  * @param {*} [options] Override http request option.
20067
+ * @deprecated
19800
20068
  * @throws {RequiredError}
19801
20069
  */
19802
20070
  getSegmentDetailsV1: (segmentUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
@@ -19812,22 +20080,45 @@ export declare const ReachSegmentsApiAxiosParamCreator: (configuration?: Configu
19812
20080
  */
19813
20081
  listProfileSegmentContactsV1: (profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19814
20082
  /**
19815
- * 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.
20083
+ * 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.
20084
+ * @summary List profile segments
20085
+ * @param {string} profileUuid Profile uuid parameter
20086
+ * @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
20087
+ * @param {number} [page] Page number
20088
+ * @param {number} [perPage] Number of items per page
20089
+ * @param {*} [options] Override http request option.
20090
+ * @throws {RequiredError}
20091
+ */
20092
+ listProfileSegmentsV1: (profileUuid: string, countType?: ListProfileSegmentsV1CountTypeEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20093
+ /**
20094
+ * 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.
19816
20095
  * @summary List segment contacts
19817
20096
  * @param {string} segmentUuid Segment uuid parameter
19818
20097
  * @param {number} [page] Page number
19819
20098
  * @param {number} [perPage] Number of items per page
19820
20099
  * @param {*} [options] Override http request option.
20100
+ * @deprecated
19821
20101
  * @throws {RequiredError}
19822
20102
  */
19823
20103
  listSegmentContactsV1: (segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19824
20104
  /**
19825
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
20105
+ * 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.
19826
20106
  * @summary List segments
19827
20107
  * @param {*} [options] Override http request option.
20108
+ * @deprecated
19828
20109
  * @throws {RequiredError}
19829
20110
  */
19830
20111
  listSegmentsV1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20112
+ /**
20113
+ * 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.
20114
+ * @summary Update a profile segment
20115
+ * @param {string} profileUuid Profile uuid parameter
20116
+ * @param {string} segmentUuid Segment uuid parameter
20117
+ * @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
20118
+ * @param {*} [options] Override http request option.
20119
+ * @throws {RequiredError}
20120
+ */
20121
+ updateAProfileSegmentV1: (profileUuid: string, segmentUuid: string, reachV1ContactsSegmentsProfileUpdateRequest: ReachV1ContactsSegmentsProfileUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19831
20122
  };
19832
20123
  /**
19833
20124
  * ReachSegmentsApi - functional programming interface
@@ -19835,18 +20126,56 @@ export declare const ReachSegmentsApiAxiosParamCreator: (configuration?: Configu
19835
20126
  */
19836
20127
  export declare const ReachSegmentsApiFp: (configuration?: Configuration) => {
19837
20128
  /**
19838
- * 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.
20129
+ * Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
20130
+ * @summary Count profile segment contacts
20131
+ * @param {string} profileUuid Profile uuid parameter
20132
+ * @param {string} segmentUuid Segment uuid parameter
20133
+ * @param {*} [options] Override http request option.
20134
+ * @throws {RequiredError}
20135
+ */
20136
+ countProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentContactsCountResource>>;
20137
+ /**
20138
+ * 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.
19839
20139
  * @summary Create a new contact segment
19840
20140
  * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
19841
20141
  * @param {*} [options] Override http request option.
20142
+ * @deprecated
19842
20143
  * @throws {RequiredError}
19843
20144
  */
19844
20145
  createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>>;
19845
20146
  /**
19846
- * 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.
20147
+ * 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.
20148
+ * @summary Create a profile segment
20149
+ * @param {string} profileUuid Profile uuid parameter
20150
+ * @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
20151
+ * @param {*} [options] Override http request option.
20152
+ * @throws {RequiredError}
20153
+ */
20154
+ createAProfileSegmentV1(profileUuid: string, reachV1ContactsSegmentsProfileStoreRequest: ReachV1ContactsSegmentsProfileStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>>;
20155
+ /**
20156
+ * Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
20157
+ * @summary Delete a profile segment
20158
+ * @param {string} profileUuid Profile uuid parameter
20159
+ * @param {string} segmentUuid Segment uuid parameter
20160
+ * @param {*} [options] Override http request option.
20161
+ * @throws {RequiredError}
20162
+ */
20163
+ deleteAProfileSegmentV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
20164
+ /**
20165
+ * 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.
20166
+ * @summary Get profile segment details
20167
+ * @param {string} profileUuid Profile uuid parameter
20168
+ * @param {string} segmentUuid Segment uuid parameter
20169
+ * @param {*} [options] Override http request option.
20170
+ * @throws {RequiredError}
20171
+ */
20172
+ getProfileSegmentDetailsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>>;
20173
+ /**
20174
+ * 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.
19847
20175
  * @summary Get segment details
19848
20176
  * @param {string} segmentUuid Segment uuid parameter
19849
20177
  * @param {*} [options] Override http request option.
20178
+ * @deprecated
19850
20179
  * @throws {RequiredError}
19851
20180
  */
19852
20181
  getSegmentDetailsV1(segmentUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>>;
@@ -19862,22 +20191,45 @@ export declare const ReachSegmentsApiFp: (configuration?: Configuration) => {
19862
20191
  */
19863
20192
  listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentContactsV1200Response>>;
19864
20193
  /**
19865
- * 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.
20194
+ * 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.
20195
+ * @summary List profile segments
20196
+ * @param {string} profileUuid Profile uuid parameter
20197
+ * @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
20198
+ * @param {number} [page] Page number
20199
+ * @param {number} [perPage] Number of items per page
20200
+ * @param {*} [options] Override http request option.
20201
+ * @throws {RequiredError}
20202
+ */
20203
+ listProfileSegmentsV1(profileUuid: string, countType?: ListProfileSegmentsV1CountTypeEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentsV1200Response>>;
20204
+ /**
20205
+ * 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.
19866
20206
  * @summary List segment contacts
19867
20207
  * @param {string} segmentUuid Segment uuid parameter
19868
20208
  * @param {number} [page] Page number
19869
20209
  * @param {number} [perPage] Number of items per page
19870
20210
  * @param {*} [options] Override http request option.
20211
+ * @deprecated
19871
20212
  * @throws {RequiredError}
19872
20213
  */
19873
20214
  listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentContactsV1200Response>>;
19874
20215
  /**
19875
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
20216
+ * 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.
19876
20217
  * @summary List segments
19877
20218
  * @param {*} [options] Override http request option.
20219
+ * @deprecated
19878
20220
  * @throws {RequiredError}
19879
20221
  */
19880
20222
  listSegmentsV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsSegmentsContactSegmentResource>>>;
20223
+ /**
20224
+ * 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.
20225
+ * @summary Update a profile segment
20226
+ * @param {string} profileUuid Profile uuid parameter
20227
+ * @param {string} segmentUuid Segment uuid parameter
20228
+ * @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
20229
+ * @param {*} [options] Override http request option.
20230
+ * @throws {RequiredError}
20231
+ */
20232
+ updateAProfileSegmentV1(profileUuid: string, segmentUuid: string, reachV1ContactsSegmentsProfileUpdateRequest: ReachV1ContactsSegmentsProfileUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>>;
19881
20233
  };
19882
20234
  /**
19883
20235
  * ReachSegmentsApi - factory interface
@@ -19885,18 +20237,56 @@ export declare const ReachSegmentsApiFp: (configuration?: Configuration) => {
19885
20237
  */
19886
20238
  export declare const ReachSegmentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
19887
20239
  /**
19888
- * 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.
20240
+ * Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
20241
+ * @summary Count profile segment contacts
20242
+ * @param {string} profileUuid Profile uuid parameter
20243
+ * @param {string} segmentUuid Segment uuid parameter
20244
+ * @param {*} [options] Override http request option.
20245
+ * @throws {RequiredError}
20246
+ */
20247
+ countProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentContactsCountResource>;
20248
+ /**
20249
+ * 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.
19889
20250
  * @summary Create a new contact segment
19890
20251
  * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
19891
20252
  * @param {*} [options] Override http request option.
20253
+ * @deprecated
19892
20254
  * @throws {RequiredError}
19893
20255
  */
19894
20256
  createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource>;
19895
20257
  /**
19896
- * 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.
20258
+ * 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.
20259
+ * @summary Create a profile segment
20260
+ * @param {string} profileUuid Profile uuid parameter
20261
+ * @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
20262
+ * @param {*} [options] Override http request option.
20263
+ * @throws {RequiredError}
20264
+ */
20265
+ createAProfileSegmentV1(profileUuid: string, reachV1ContactsSegmentsProfileStoreRequest: ReachV1ContactsSegmentsProfileStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource>;
20266
+ /**
20267
+ * Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
20268
+ * @summary Delete a profile segment
20269
+ * @param {string} profileUuid Profile uuid parameter
20270
+ * @param {string} segmentUuid Segment uuid parameter
20271
+ * @param {*} [options] Override http request option.
20272
+ * @throws {RequiredError}
20273
+ */
20274
+ deleteAProfileSegmentV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
20275
+ /**
20276
+ * 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.
20277
+ * @summary Get profile segment details
20278
+ * @param {string} profileUuid Profile uuid parameter
20279
+ * @param {string} segmentUuid Segment uuid parameter
20280
+ * @param {*} [options] Override http request option.
20281
+ * @throws {RequiredError}
20282
+ */
20283
+ getProfileSegmentDetailsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource>;
20284
+ /**
20285
+ * 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.
19897
20286
  * @summary Get segment details
19898
20287
  * @param {string} segmentUuid Segment uuid parameter
19899
20288
  * @param {*} [options] Override http request option.
20289
+ * @deprecated
19900
20290
  * @throws {RequiredError}
19901
20291
  */
19902
20292
  getSegmentDetailsV1(segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource>;
@@ -19912,22 +20302,45 @@ export declare const ReachSegmentsApiFactory: (configuration?: Configuration, ba
19912
20302
  */
19913
20303
  listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentContactsV1200Response>;
19914
20304
  /**
19915
- * 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.
20305
+ * 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.
20306
+ * @summary List profile segments
20307
+ * @param {string} profileUuid Profile uuid parameter
20308
+ * @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
20309
+ * @param {number} [page] Page number
20310
+ * @param {number} [perPage] Number of items per page
20311
+ * @param {*} [options] Override http request option.
20312
+ * @throws {RequiredError}
20313
+ */
20314
+ listProfileSegmentsV1(profileUuid: string, countType?: ListProfileSegmentsV1CountTypeEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentsV1200Response>;
20315
+ /**
20316
+ * 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.
19916
20317
  * @summary List segment contacts
19917
20318
  * @param {string} segmentUuid Segment uuid parameter
19918
20319
  * @param {number} [page] Page number
19919
20320
  * @param {number} [perPage] Number of items per page
19920
20321
  * @param {*} [options] Override http request option.
20322
+ * @deprecated
19921
20323
  * @throws {RequiredError}
19922
20324
  */
19923
20325
  listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentContactsV1200Response>;
19924
20326
  /**
19925
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
20327
+ * 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.
19926
20328
  * @summary List segments
19927
20329
  * @param {*} [options] Override http request option.
20330
+ * @deprecated
19928
20331
  * @throws {RequiredError}
19929
20332
  */
19930
20333
  listSegmentsV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsSegmentsContactSegmentResource>>;
20334
+ /**
20335
+ * 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.
20336
+ * @summary Update a profile segment
20337
+ * @param {string} profileUuid Profile uuid parameter
20338
+ * @param {string} segmentUuid Segment uuid parameter
20339
+ * @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
20340
+ * @param {*} [options] Override http request option.
20341
+ * @throws {RequiredError}
20342
+ */
20343
+ updateAProfileSegmentV1(profileUuid: string, segmentUuid: string, reachV1ContactsSegmentsProfileUpdateRequest: ReachV1ContactsSegmentsProfileUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource>;
19931
20344
  };
19932
20345
  /**
19933
20346
  * ReachSegmentsApi - object-oriented interface
@@ -19937,19 +20350,61 @@ export declare const ReachSegmentsApiFactory: (configuration?: Configuration, ba
19937
20350
  */
19938
20351
  export declare class ReachSegmentsApi extends BaseAPI {
19939
20352
  /**
19940
- * 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.
20353
+ * Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
20354
+ * @summary Count profile segment contacts
20355
+ * @param {string} profileUuid Profile uuid parameter
20356
+ * @param {string} segmentUuid Segment uuid parameter
20357
+ * @param {*} [options] Override http request option.
20358
+ * @throws {RequiredError}
20359
+ * @memberof ReachSegmentsApi
20360
+ */
20361
+ countProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsSegmentsSegmentContactsCountResource, any, {}, any>>;
20362
+ /**
20363
+ * 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.
19941
20364
  * @summary Create a new contact segment
19942
20365
  * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
19943
20366
  * @param {*} [options] Override http request option.
20367
+ * @deprecated
19944
20368
  * @throws {RequiredError}
19945
20369
  * @memberof ReachSegmentsApi
19946
20370
  */
19947
20371
  createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsSegmentsSegmentResource, any, {}, any>>;
19948
20372
  /**
19949
- * 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.
20373
+ * 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.
20374
+ * @summary Create a profile segment
20375
+ * @param {string} profileUuid Profile uuid parameter
20376
+ * @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
20377
+ * @param {*} [options] Override http request option.
20378
+ * @throws {RequiredError}
20379
+ * @memberof ReachSegmentsApi
20380
+ */
20381
+ createAProfileSegmentV1(profileUuid: string, reachV1ContactsSegmentsProfileStoreRequest: ReachV1ContactsSegmentsProfileStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsSegmentsSegmentResource, any, {}, any>>;
20382
+ /**
20383
+ * Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
20384
+ * @summary Delete a profile segment
20385
+ * @param {string} profileUuid Profile uuid parameter
20386
+ * @param {string} segmentUuid Segment uuid parameter
20387
+ * @param {*} [options] Override http request option.
20388
+ * @throws {RequiredError}
20389
+ * @memberof ReachSegmentsApi
20390
+ */
20391
+ deleteAProfileSegmentV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
20392
+ /**
20393
+ * 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.
20394
+ * @summary Get profile segment details
20395
+ * @param {string} profileUuid Profile uuid parameter
20396
+ * @param {string} segmentUuid Segment uuid parameter
20397
+ * @param {*} [options] Override http request option.
20398
+ * @throws {RequiredError}
20399
+ * @memberof ReachSegmentsApi
20400
+ */
20401
+ getProfileSegmentDetailsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsSegmentsSegmentResource, any, {}, any>>;
20402
+ /**
20403
+ * 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.
19950
20404
  * @summary Get segment details
19951
20405
  * @param {string} segmentUuid Segment uuid parameter
19952
20406
  * @param {*} [options] Override http request option.
20407
+ * @deprecated
19953
20408
  * @throws {RequiredError}
19954
20409
  * @memberof ReachSegmentsApi
19955
20410
  */
@@ -19967,24 +20422,395 @@ export declare class ReachSegmentsApi extends BaseAPI {
19967
20422
  */
19968
20423
  listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachListProfileSegmentContactsV1200Response, any, {}, any>>;
19969
20424
  /**
19970
- * 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.
20425
+ * 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.
20426
+ * @summary List profile segments
20427
+ * @param {string} profileUuid Profile uuid parameter
20428
+ * @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
20429
+ * @param {number} [page] Page number
20430
+ * @param {number} [perPage] Number of items per page
20431
+ * @param {*} [options] Override http request option.
20432
+ * @throws {RequiredError}
20433
+ * @memberof ReachSegmentsApi
20434
+ */
20435
+ listProfileSegmentsV1(profileUuid: string, countType?: ListProfileSegmentsV1CountTypeEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachListProfileSegmentsV1200Response, any, {}, any>>;
20436
+ /**
20437
+ * 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.
19971
20438
  * @summary List segment contacts
19972
20439
  * @param {string} segmentUuid Segment uuid parameter
19973
20440
  * @param {number} [page] Page number
19974
20441
  * @param {number} [perPage] Number of items per page
19975
20442
  * @param {*} [options] Override http request option.
20443
+ * @deprecated
19976
20444
  * @throws {RequiredError}
19977
20445
  * @memberof ReachSegmentsApi
19978
20446
  */
19979
20447
  listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachListProfileSegmentContactsV1200Response, any, {}, any>>;
19980
20448
  /**
19981
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
20449
+ * 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.
19982
20450
  * @summary List segments
19983
20451
  * @param {*} [options] Override http request option.
20452
+ * @deprecated
19984
20453
  * @throws {RequiredError}
19985
20454
  * @memberof ReachSegmentsApi
19986
20455
  */
19987
20456
  listSegmentsV1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsSegmentsContactSegmentResource[], any, {}, any>>;
20457
+ /**
20458
+ * 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.
20459
+ * @summary Update a profile segment
20460
+ * @param {string} profileUuid Profile uuid parameter
20461
+ * @param {string} segmentUuid Segment uuid parameter
20462
+ * @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
20463
+ * @param {*} [options] Override http request option.
20464
+ * @throws {RequiredError}
20465
+ * @memberof ReachSegmentsApi
20466
+ */
20467
+ updateAProfileSegmentV1(profileUuid: string, segmentUuid: string, reachV1ContactsSegmentsProfileUpdateRequest: ReachV1ContactsSegmentsProfileUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsSegmentsSegmentResource, any, {}, any>>;
20468
+ }
20469
+ /**
20470
+ * @export
20471
+ */
20472
+ export declare const ListProfileSegmentsV1CountTypeEnum: {
20473
+ readonly All: "all";
20474
+ readonly Subscribed: "subscribed";
20475
+ };
20476
+ export type ListProfileSegmentsV1CountTypeEnum = typeof ListProfileSegmentsV1CountTypeEnum[keyof typeof ListProfileSegmentsV1CountTypeEnum];
20477
+ /**
20478
+ * ReachTagsApi - axios parameter creator
20479
+ * @export
20480
+ */
20481
+ export declare const ReachTagsApiAxiosParamCreator: (configuration?: Configuration) => {
20482
+ /**
20483
+ * 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.
20484
+ * @summary Assign a contact to a tag
20485
+ * @param {string} profileUuid Profile uuid parameter
20486
+ * @param {string} tagUuid Tag uuid parameter
20487
+ * @param {string} contactUuid Contact uuid parameter
20488
+ * @param {*} [options] Override http request option.
20489
+ * @throws {RequiredError}
20490
+ */
20491
+ assignAContactToATagV1: (profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20492
+ /**
20493
+ * 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.
20494
+ * @summary Assign contacts to a tag
20495
+ * @param {string} profileUuid Profile uuid parameter
20496
+ * @param {string} tagUuid Tag uuid parameter
20497
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
20498
+ * @param {*} [options] Override http request option.
20499
+ * @throws {RequiredError}
20500
+ */
20501
+ assignContactsToATagV1: (profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20502
+ /**
20503
+ * 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.
20504
+ * @summary Create or find tags
20505
+ * @param {string} profileUuid Profile uuid parameter
20506
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
20507
+ * @param {*} [options] Override http request option.
20508
+ * @throws {RequiredError}
20509
+ */
20510
+ createOrFindTagsV1: (profileUuid: string, reachV1ContactsTagsStoreRequest: ReachV1ContactsTagsStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20511
+ /**
20512
+ * 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.
20513
+ * @summary Delete a tag
20514
+ * @param {string} profileUuid Profile uuid parameter
20515
+ * @param {string} tagUuid Tag uuid parameter
20516
+ * @param {*} [options] Override http request option.
20517
+ * @throws {RequiredError}
20518
+ */
20519
+ deleteATagV1: (profileUuid: string, tagUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20520
+ /**
20521
+ * 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.
20522
+ * @summary List profile tags
20523
+ * @param {string} profileUuid Profile uuid parameter
20524
+ * @param {*} [options] Override http request option.
20525
+ * @throws {RequiredError}
20526
+ */
20527
+ listProfileTagsV1: (profileUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20528
+ /**
20529
+ * 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.
20530
+ * @summary Remove a contact from a tag
20531
+ * @param {string} profileUuid Profile uuid parameter
20532
+ * @param {string} tagUuid Tag uuid parameter
20533
+ * @param {string} contactUuid Contact uuid parameter
20534
+ * @param {*} [options] Override http request option.
20535
+ * @throws {RequiredError}
20536
+ */
20537
+ removeAContactFromATagV1: (profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20538
+ /**
20539
+ * 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.
20540
+ * @summary Remove contacts from a tag
20541
+ * @param {string} profileUuid Profile uuid parameter
20542
+ * @param {string} tagUuid Tag uuid parameter
20543
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
20544
+ * @param {*} [options] Override http request option.
20545
+ * @throws {RequiredError}
20546
+ */
20547
+ removeContactsFromATagV1: (profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20548
+ /**
20549
+ * 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.
20550
+ * @summary Rename a tag
20551
+ * @param {string} profileUuid Profile uuid parameter
20552
+ * @param {string} tagUuid Tag uuid parameter
20553
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
20554
+ * @param {*} [options] Override http request option.
20555
+ * @throws {RequiredError}
20556
+ */
20557
+ renameATagV1: (profileUuid: string, tagUuid: string, reachV1ContactsTagsUpdateRequest: ReachV1ContactsTagsUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20558
+ };
20559
+ /**
20560
+ * ReachTagsApi - functional programming interface
20561
+ * @export
20562
+ */
20563
+ export declare const ReachTagsApiFp: (configuration?: Configuration) => {
20564
+ /**
20565
+ * 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.
20566
+ * @summary Assign a contact to a tag
20567
+ * @param {string} profileUuid Profile uuid parameter
20568
+ * @param {string} tagUuid Tag uuid parameter
20569
+ * @param {string} contactUuid Contact uuid parameter
20570
+ * @param {*} [options] Override http request option.
20571
+ * @throws {RequiredError}
20572
+ */
20573
+ assignAContactToATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsTagsTagResource>>;
20574
+ /**
20575
+ * 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.
20576
+ * @summary Assign contacts to a tag
20577
+ * @param {string} profileUuid Profile uuid parameter
20578
+ * @param {string} tagUuid Tag uuid parameter
20579
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
20580
+ * @param {*} [options] Override http request option.
20581
+ * @throws {RequiredError}
20582
+ */
20583
+ assignContactsToATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
20584
+ /**
20585
+ * 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.
20586
+ * @summary Create or find tags
20587
+ * @param {string} profileUuid Profile uuid parameter
20588
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
20589
+ * @param {*} [options] Override http request option.
20590
+ * @throws {RequiredError}
20591
+ */
20592
+ createOrFindTagsV1(profileUuid: string, reachV1ContactsTagsStoreRequest: ReachV1ContactsTagsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsTagsTagResource>>>;
20593
+ /**
20594
+ * 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.
20595
+ * @summary Delete a tag
20596
+ * @param {string} profileUuid Profile uuid parameter
20597
+ * @param {string} tagUuid Tag uuid parameter
20598
+ * @param {*} [options] Override http request option.
20599
+ * @throws {RequiredError}
20600
+ */
20601
+ deleteATagV1(profileUuid: string, tagUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
20602
+ /**
20603
+ * 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.
20604
+ * @summary List profile tags
20605
+ * @param {string} profileUuid Profile uuid parameter
20606
+ * @param {*} [options] Override http request option.
20607
+ * @throws {RequiredError}
20608
+ */
20609
+ listProfileTagsV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsTagsTagResource>>>;
20610
+ /**
20611
+ * 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.
20612
+ * @summary Remove a contact from a tag
20613
+ * @param {string} profileUuid Profile uuid parameter
20614
+ * @param {string} tagUuid Tag uuid parameter
20615
+ * @param {string} contactUuid Contact uuid parameter
20616
+ * @param {*} [options] Override http request option.
20617
+ * @throws {RequiredError}
20618
+ */
20619
+ removeAContactFromATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
20620
+ /**
20621
+ * 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.
20622
+ * @summary Remove contacts from a tag
20623
+ * @param {string} profileUuid Profile uuid parameter
20624
+ * @param {string} tagUuid Tag uuid parameter
20625
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
20626
+ * @param {*} [options] Override http request option.
20627
+ * @throws {RequiredError}
20628
+ */
20629
+ removeContactsFromATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
20630
+ /**
20631
+ * 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.
20632
+ * @summary Rename a tag
20633
+ * @param {string} profileUuid Profile uuid parameter
20634
+ * @param {string} tagUuid Tag uuid parameter
20635
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
20636
+ * @param {*} [options] Override http request option.
20637
+ * @throws {RequiredError}
20638
+ */
20639
+ renameATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsUpdateRequest: ReachV1ContactsTagsUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsTagsTagResource>>;
20640
+ };
20641
+ /**
20642
+ * ReachTagsApi - factory interface
20643
+ * @export
20644
+ */
20645
+ export declare const ReachTagsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
20646
+ /**
20647
+ * 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.
20648
+ * @summary Assign a contact to a tag
20649
+ * @param {string} profileUuid Profile uuid parameter
20650
+ * @param {string} tagUuid Tag uuid parameter
20651
+ * @param {string} contactUuid Contact uuid parameter
20652
+ * @param {*} [options] Override http request option.
20653
+ * @throws {RequiredError}
20654
+ */
20655
+ assignAContactToATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsTagsTagResource>;
20656
+ /**
20657
+ * 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.
20658
+ * @summary Assign contacts to a tag
20659
+ * @param {string} profileUuid Profile uuid parameter
20660
+ * @param {string} tagUuid Tag uuid parameter
20661
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
20662
+ * @param {*} [options] Override http request option.
20663
+ * @throws {RequiredError}
20664
+ */
20665
+ assignContactsToATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
20666
+ /**
20667
+ * 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.
20668
+ * @summary Create or find tags
20669
+ * @param {string} profileUuid Profile uuid parameter
20670
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
20671
+ * @param {*} [options] Override http request option.
20672
+ * @throws {RequiredError}
20673
+ */
20674
+ createOrFindTagsV1(profileUuid: string, reachV1ContactsTagsStoreRequest: ReachV1ContactsTagsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsTagsTagResource>>;
20675
+ /**
20676
+ * 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.
20677
+ * @summary Delete a tag
20678
+ * @param {string} profileUuid Profile uuid parameter
20679
+ * @param {string} tagUuid Tag uuid parameter
20680
+ * @param {*} [options] Override http request option.
20681
+ * @throws {RequiredError}
20682
+ */
20683
+ deleteATagV1(profileUuid: string, tagUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
20684
+ /**
20685
+ * 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.
20686
+ * @summary List profile tags
20687
+ * @param {string} profileUuid Profile uuid parameter
20688
+ * @param {*} [options] Override http request option.
20689
+ * @throws {RequiredError}
20690
+ */
20691
+ listProfileTagsV1(profileUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsTagsTagResource>>;
20692
+ /**
20693
+ * 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.
20694
+ * @summary Remove a contact from a tag
20695
+ * @param {string} profileUuid Profile uuid parameter
20696
+ * @param {string} tagUuid Tag uuid parameter
20697
+ * @param {string} contactUuid Contact uuid parameter
20698
+ * @param {*} [options] Override http request option.
20699
+ * @throws {RequiredError}
20700
+ */
20701
+ removeAContactFromATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
20702
+ /**
20703
+ * 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.
20704
+ * @summary Remove contacts from a tag
20705
+ * @param {string} profileUuid Profile uuid parameter
20706
+ * @param {string} tagUuid Tag uuid parameter
20707
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
20708
+ * @param {*} [options] Override http request option.
20709
+ * @throws {RequiredError}
20710
+ */
20711
+ removeContactsFromATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
20712
+ /**
20713
+ * 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.
20714
+ * @summary Rename a tag
20715
+ * @param {string} profileUuid Profile uuid parameter
20716
+ * @param {string} tagUuid Tag uuid parameter
20717
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
20718
+ * @param {*} [options] Override http request option.
20719
+ * @throws {RequiredError}
20720
+ */
20721
+ renameATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsUpdateRequest: ReachV1ContactsTagsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsTagsTagResource>;
20722
+ };
20723
+ /**
20724
+ * ReachTagsApi - object-oriented interface
20725
+ * @export
20726
+ * @class ReachTagsApi
20727
+ * @extends {BaseAPI}
20728
+ */
20729
+ export declare class ReachTagsApi extends BaseAPI {
20730
+ /**
20731
+ * 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.
20732
+ * @summary Assign a contact to a tag
20733
+ * @param {string} profileUuid Profile uuid parameter
20734
+ * @param {string} tagUuid Tag uuid parameter
20735
+ * @param {string} contactUuid Contact uuid parameter
20736
+ * @param {*} [options] Override http request option.
20737
+ * @throws {RequiredError}
20738
+ * @memberof ReachTagsApi
20739
+ */
20740
+ assignAContactToATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsTagsTagResource, any, {}, any>>;
20741
+ /**
20742
+ * 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.
20743
+ * @summary Assign contacts to a tag
20744
+ * @param {string} profileUuid Profile uuid parameter
20745
+ * @param {string} tagUuid Tag uuid parameter
20746
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
20747
+ * @param {*} [options] Override http request option.
20748
+ * @throws {RequiredError}
20749
+ * @memberof ReachTagsApi
20750
+ */
20751
+ assignContactsToATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
20752
+ /**
20753
+ * 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.
20754
+ * @summary Create or find tags
20755
+ * @param {string} profileUuid Profile uuid parameter
20756
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
20757
+ * @param {*} [options] Override http request option.
20758
+ * @throws {RequiredError}
20759
+ * @memberof ReachTagsApi
20760
+ */
20761
+ createOrFindTagsV1(profileUuid: string, reachV1ContactsTagsStoreRequest: ReachV1ContactsTagsStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsTagsTagResource[], any, {}, any>>;
20762
+ /**
20763
+ * 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.
20764
+ * @summary Delete a tag
20765
+ * @param {string} profileUuid Profile uuid parameter
20766
+ * @param {string} tagUuid Tag uuid parameter
20767
+ * @param {*} [options] Override http request option.
20768
+ * @throws {RequiredError}
20769
+ * @memberof ReachTagsApi
20770
+ */
20771
+ deleteATagV1(profileUuid: string, tagUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
20772
+ /**
20773
+ * 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.
20774
+ * @summary List profile tags
20775
+ * @param {string} profileUuid Profile uuid parameter
20776
+ * @param {*} [options] Override http request option.
20777
+ * @throws {RequiredError}
20778
+ * @memberof ReachTagsApi
20779
+ */
20780
+ listProfileTagsV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsTagsTagResource[], any, {}, any>>;
20781
+ /**
20782
+ * 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.
20783
+ * @summary Remove a contact from a tag
20784
+ * @param {string} profileUuid Profile uuid parameter
20785
+ * @param {string} tagUuid Tag uuid parameter
20786
+ * @param {string} contactUuid Contact uuid parameter
20787
+ * @param {*} [options] Override http request option.
20788
+ * @throws {RequiredError}
20789
+ * @memberof ReachTagsApi
20790
+ */
20791
+ removeAContactFromATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
20792
+ /**
20793
+ * 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.
20794
+ * @summary Remove contacts from a tag
20795
+ * @param {string} profileUuid Profile uuid parameter
20796
+ * @param {string} tagUuid Tag uuid parameter
20797
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
20798
+ * @param {*} [options] Override http request option.
20799
+ * @throws {RequiredError}
20800
+ * @memberof ReachTagsApi
20801
+ */
20802
+ removeContactsFromATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
20803
+ /**
20804
+ * 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.
20805
+ * @summary Rename a tag
20806
+ * @param {string} profileUuid Profile uuid parameter
20807
+ * @param {string} tagUuid Tag uuid parameter
20808
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
20809
+ * @param {*} [options] Override http request option.
20810
+ * @throws {RequiredError}
20811
+ * @memberof ReachTagsApi
20812
+ */
20813
+ renameATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsUpdateRequest: ReachV1ContactsTagsUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsTagsTagResource, any, {}, any>>;
19988
20814
  }
19989
20815
  /**
19990
20816
  * VPSActionsApi - axios parameter creator