hostinger-api-sdk 1.26.0 → 1.28.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 (48) hide show
  1. package/README.md +2 -2
  2. package/api.ts +2789 -531
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +1522 -78
  7. package/dist/api.js +2011 -490
  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 +1522 -78
  15. package/dist/esm/api.js +1935 -423
  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/ReachContactFieldsApi.md +239 -0
  27. package/docs/ReachContactsApi.md +308 -4
  28. package/docs/ReachListProfileContactsV1200Response.md +22 -0
  29. package/docs/ReachTagsApi.md +483 -0
  30. package/docs/ReachV1ContactsBulkStoreRequest.md +25 -0
  31. package/docs/ReachV1ContactsBulkStoreRequestContactsInner.md +26 -0
  32. package/docs/ReachV1ContactsContactDetailsResource.md +46 -0
  33. package/docs/ReachV1ContactsFieldsContactFieldOptionResource.md +24 -0
  34. package/docs/ReachV1ContactsFieldsContactFieldResource.md +30 -0
  35. package/docs/ReachV1ContactsFieldsContactFieldValueResource.md +33 -0
  36. package/docs/ReachV1ContactsFieldsStoreRequest.md +25 -0
  37. package/docs/ReachV1ContactsFieldsUpdateRequest.md +23 -0
  38. package/docs/ReachV1ContactsFieldsUpdateRequestOptionsInner.md +22 -0
  39. package/docs/ReachV1ContactsProfileContactResource.md +38 -0
  40. package/docs/ReachV1ContactsProfileContactUpdateResource.md +34 -0
  41. package/docs/ReachV1ContactsTagsManageContactsRequest.md +23 -0
  42. package/docs/ReachV1ContactsTagsStoreRequest.md +21 -0
  43. package/docs/ReachV1ContactsTagsTagResource.md +26 -0
  44. package/docs/ReachV1ContactsTagsUpdateRequest.md +21 -0
  45. package/docs/ReachV1ContactsUpdateRequest.md +33 -0
  46. package/docs/ReachV1ContactsUpdateRequestFieldsInner.md +24 -0
  47. package/index.ts +1 -1
  48. package/package.json +1 -1
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.27.0
6
+ * API Version: 1.29.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -349,23 +349,92 @@ export const MailV1WebhooksWebhookSecretResourceStatusEnum = {
349
349
  Disabled: 'disabled',
350
350
  Paused: 'paused'
351
351
  };
352
+ export const ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = {
353
+ Subscribed: 'subscribed',
354
+ Unsubscribed: 'unsubscribed',
355
+ Confirmed: 'confirmed',
356
+ Pending: 'pending'
357
+ };
358
+ export const ReachV1ContactsContactDetailsResourceSourceEnum = {
359
+ Sync: 'sync',
360
+ Import: 'import',
361
+ Manual: 'manual',
362
+ Api: 'api',
363
+ Form: 'form',
364
+ Checkout: 'checkout',
365
+ Horizons: 'horizons'
366
+ };
352
367
  export const ReachV1ContactsContactResourceSubscriptionStatusEnum = {
353
368
  Subscribed: 'subscribed',
354
- Unsubscribed: 'unsubscribed'
369
+ Unsubscribed: 'unsubscribed',
370
+ Confirmed: 'confirmed',
371
+ Pending: 'pending'
355
372
  };
356
373
  export const ReachV1ContactsContactResourceSourceEnum = {
357
374
  Sync: 'sync',
358
375
  Import: 'import',
359
- Manual: 'manual'
376
+ Manual: 'manual',
377
+ Api: 'api',
378
+ Form: 'form',
379
+ Checkout: 'checkout',
380
+ Horizons: 'horizons'
381
+ };
382
+ export const ReachV1ContactsFieldsContactFieldResourceTypeEnum = {
383
+ Text: 'text',
384
+ Number: 'number',
385
+ Date: 'date',
386
+ SingleChoice: 'single_choice',
387
+ MultiChoice: 'multi_choice'
388
+ };
389
+ export const ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = {
390
+ Text: 'text',
391
+ Number: 'number',
392
+ Date: 'date',
393
+ SingleChoice: 'single_choice',
394
+ MultiChoice: 'multi_choice'
395
+ };
396
+ export const ReachV1ContactsFieldsStoreRequestTypeEnum = {
397
+ Text: 'text',
398
+ Number: 'number',
399
+ Date: 'date',
400
+ SingleChoice: 'single_choice',
401
+ MultiChoice: 'multi_choice'
402
+ };
403
+ export const ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = {
404
+ Subscribed: 'subscribed',
405
+ Unsubscribed: 'unsubscribed',
406
+ Confirmed: 'confirmed',
407
+ Pending: 'pending'
408
+ };
409
+ export const ReachV1ContactsProfileContactResourceSourceEnum = {
410
+ Sync: 'sync',
411
+ Import: 'import',
412
+ Manual: 'manual',
413
+ Api: 'api',
414
+ Form: 'form',
415
+ Checkout: 'checkout',
416
+ Horizons: 'horizons'
417
+ };
418
+ export const ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = {
419
+ Subscribed: 'subscribed',
420
+ Unsubscribed: 'unsubscribed',
421
+ Confirmed: 'confirmed',
422
+ Pending: 'pending'
360
423
  };
361
424
  export const ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = {
362
425
  Subscribed: 'subscribed',
363
- Unsubscribed: 'unsubscribed'
426
+ Unsubscribed: 'unsubscribed',
427
+ Confirmed: 'confirmed',
428
+ Pending: 'pending'
364
429
  };
365
430
  export const ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = {
366
431
  Sync: 'sync',
367
432
  Import: 'import',
368
- Manual: 'manual'
433
+ Manual: 'manual',
434
+ Api: 'api',
435
+ Form: 'form',
436
+ Checkout: 'checkout',
437
+ Horizons: 'horizons'
369
438
  };
370
439
  export const ReachV1ContactsSegmentsStoreRequestLogicEnum = {
371
440
  And: 'AND',
@@ -419,6 +488,16 @@ export const ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = {
419
488
  Tag: 'tag',
420
489
  Campaigns: 'campaigns'
421
490
  };
491
+ export const ReachV1ContactsTagsTagResourceTypeEnum = {
492
+ Form: 'form',
493
+ Custom: 'custom'
494
+ };
495
+ export const ReachV1ContactsUpdateRequestSubscriptionStatusEnum = {
496
+ Subscribed: 'subscribed',
497
+ Unsubscribed: 'unsubscribed',
498
+ Confirmed: 'confirmed',
499
+ Pending: 'pending'
500
+ };
422
501
  export const VPSV1ActionActionResourceStateEnum = {
423
502
  Success: 'success',
424
503
  Error: 'error',
@@ -15439,59 +15518,25 @@ export const ListWebhooksV1StatusEnum = {
15439
15518
  Paused: 'paused'
15440
15519
  };
15441
15520
  /**
15442
- * ReachContactsApi - axios parameter creator
15521
+ * ReachContactFieldsApi - axios parameter creator
15443
15522
  * @export
15444
15523
  */
15445
- export const ReachContactsApiAxiosParamCreator = function (configuration) {
15524
+ export const ReachContactFieldsApiAxiosParamCreator = function (configuration) {
15446
15525
  return {
15447
15526
  /**
15448
- * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
15449
- * @summary Create a new contact
15450
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
15451
- * @param {*} [options] Override http request option.
15452
- * @deprecated
15453
- * @throws {RequiredError}
15454
- */
15455
- createANewContactV1: (reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsStoreRequest, options = {}) {
15456
- // verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
15457
- assertParamExists('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
15458
- const localVarPath = `/api/reach/v1/contacts`;
15459
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
15460
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15461
- let baseOptions;
15462
- if (configuration) {
15463
- baseOptions = configuration.baseOptions;
15464
- }
15465
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15466
- const localVarHeaderParameter = {};
15467
- const localVarQueryParameter = {};
15468
- // authentication apiToken required
15469
- // http bearer authentication required
15470
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
15471
- localVarHeaderParameter['Content-Type'] = 'application/json';
15472
- setSearchParams(localVarUrlObj, localVarQueryParameter);
15473
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15474
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15475
- localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
15476
- return {
15477
- url: toPathString(localVarUrlObj),
15478
- options: localVarRequestOptions,
15479
- };
15480
- }),
15481
- /**
15482
- * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
15483
- * @summary Create new contacts
15527
+ * Define a new custom contact field in a profile. The `slug` is derived from the label and, like the field type, cannot be changed later. Use the returned uuid to set values on contacts.
15528
+ * @summary Create a contact field
15484
15529
  * @param {string} profileUuid Profile uuid parameter
15485
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
15530
+ * @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
15486
15531
  * @param {*} [options] Override http request option.
15487
15532
  * @throws {RequiredError}
15488
15533
  */
15489
- createNewContactsV1: (profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsStoreRequest, options = {}) {
15534
+ createAContactFieldV1: (profileUuid_1, reachV1ContactsFieldsStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsFieldsStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsFieldsStoreRequest, options = {}) {
15490
15535
  // verify required parameter 'profileUuid' is not null or undefined
15491
- assertParamExists('createNewContactsV1', 'profileUuid', profileUuid);
15492
- // verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
15493
- assertParamExists('createNewContactsV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
15494
- const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts`
15536
+ assertParamExists('createAContactFieldV1', 'profileUuid', profileUuid);
15537
+ // verify required parameter 'reachV1ContactsFieldsStoreRequest' is not null or undefined
15538
+ assertParamExists('createAContactFieldV1', 'reachV1ContactsFieldsStoreRequest', reachV1ContactsFieldsStoreRequest);
15539
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/fields`
15495
15540
  .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
15496
15541
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15497
15542
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15509,24 +15554,28 @@ export const ReachContactsApiAxiosParamCreator = function (configuration) {
15509
15554
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15510
15555
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15511
15556
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15512
- localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
15557
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsFieldsStoreRequest, localVarRequestOptions, configuration);
15513
15558
  return {
15514
15559
  url: toPathString(localVarUrlObj),
15515
15560
  options: localVarRequestOptions,
15516
15561
  };
15517
15562
  }),
15518
15563
  /**
15519
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
15520
- * @summary Delete a contact
15521
- * @param {string} uuid UUID of the contact to delete
15564
+ * Delete a custom contact field. Every value contacts hold for the field is deleted with it, and for the choice types so are its options. The contacts themselves are not affected.
15565
+ * @summary Delete a contact field
15566
+ * @param {string} profileUuid Profile uuid parameter
15567
+ * @param {string} fieldUuid Contact field uuid parameter
15522
15568
  * @param {*} [options] Override http request option.
15523
15569
  * @throws {RequiredError}
15524
15570
  */
15525
- deleteAContactV1: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
15526
- // verify required parameter 'uuid' is not null or undefined
15527
- assertParamExists('deleteAContactV1', 'uuid', uuid);
15528
- const localVarPath = `/api/reach/v1/contacts/{uuid}`
15529
- .replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
15571
+ deleteAContactFieldV1: (profileUuid_1, fieldUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, fieldUuid_1, ...args_1], void 0, function* (profileUuid, fieldUuid, options = {}) {
15572
+ // verify required parameter 'profileUuid' is not null or undefined
15573
+ assertParamExists('deleteAContactFieldV1', 'profileUuid', profileUuid);
15574
+ // verify required parameter 'fieldUuid' is not null or undefined
15575
+ assertParamExists('deleteAContactFieldV1', 'fieldUuid', fieldUuid);
15576
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/fields/{fieldUuid}`
15577
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
15578
+ .replace(`{${"fieldUuid"}}`, encodeURIComponent(String(fieldUuid)));
15530
15579
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15531
15580
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15532
15581
  let baseOptions;
@@ -15548,14 +15597,17 @@ export const ReachContactsApiAxiosParamCreator = function (configuration) {
15548
15597
  };
15549
15598
  }),
15550
15599
  /**
15551
- * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
15552
- * @summary List contact groups
15600
+ * Get the custom contact fields defined in a profile. Custom fields let you store your own attributes on contacts. The returned uuids are what you pass to the contact update endpoint to set values, and choice fields also list the options available to pick from.
15601
+ * @summary List contact fields
15602
+ * @param {string} profileUuid Profile uuid parameter
15553
15603
  * @param {*} [options] Override http request option.
15554
- * @deprecated
15555
15604
  * @throws {RequiredError}
15556
15605
  */
15557
- listContactGroupsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
15558
- const localVarPath = `/api/reach/v1/contacts/groups`;
15606
+ listContactFieldsV1: (profileUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, ...args_1], void 0, function* (profileUuid, options = {}) {
15607
+ // verify required parameter 'profileUuid' is not null or undefined
15608
+ assertParamExists('listContactFieldsV1', 'profileUuid', profileUuid);
15609
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/fields`
15610
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
15559
15611
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15560
15612
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15561
15613
  let baseOptions;
@@ -15577,40 +15629,41 @@ export const ReachContactsApiAxiosParamCreator = function (configuration) {
15577
15629
  };
15578
15630
  }),
15579
15631
  /**
15580
- * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
15581
- * @summary List contacts
15582
- * @param {string} [groupUuid] Filter contacts by group UUID
15583
- * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
15584
- * @param {number} [page] Page number
15632
+ * Rename a custom contact field and, for the choice types, replace its option set. Options carrying a uuid are kept and relabelled, options without one are created, and any existing option left out of the list is deleted along with the values contacts hold for it. The field type and slug cannot be changed.
15633
+ * @summary Update a contact field
15634
+ * @param {string} profileUuid Profile uuid parameter
15635
+ * @param {string} fieldUuid Contact field uuid parameter
15636
+ * @param {ReachV1ContactsFieldsUpdateRequest} reachV1ContactsFieldsUpdateRequest
15585
15637
  * @param {*} [options] Override http request option.
15586
15638
  * @throws {RequiredError}
15587
15639
  */
15588
- listContactsV1: (groupUuid_1, subscriptionStatus_1, page_1, ...args_1) => __awaiter(this, [groupUuid_1, subscriptionStatus_1, page_1, ...args_1], void 0, function* (groupUuid, subscriptionStatus, page, options = {}) {
15589
- const localVarPath = `/api/reach/v1/contacts`;
15640
+ updateAContactFieldV1: (profileUuid_1, fieldUuid_1, reachV1ContactsFieldsUpdateRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, fieldUuid_1, reachV1ContactsFieldsUpdateRequest_1, ...args_1], void 0, function* (profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options = {}) {
15641
+ // verify required parameter 'profileUuid' is not null or undefined
15642
+ assertParamExists('updateAContactFieldV1', 'profileUuid', profileUuid);
15643
+ // verify required parameter 'fieldUuid' is not null or undefined
15644
+ assertParamExists('updateAContactFieldV1', 'fieldUuid', fieldUuid);
15645
+ // verify required parameter 'reachV1ContactsFieldsUpdateRequest' is not null or undefined
15646
+ assertParamExists('updateAContactFieldV1', 'reachV1ContactsFieldsUpdateRequest', reachV1ContactsFieldsUpdateRequest);
15647
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/fields/{fieldUuid}`
15648
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
15649
+ .replace(`{${"fieldUuid"}}`, encodeURIComponent(String(fieldUuid)));
15590
15650
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15591
15651
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15592
15652
  let baseOptions;
15593
15653
  if (configuration) {
15594
15654
  baseOptions = configuration.baseOptions;
15595
15655
  }
15596
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15656
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
15597
15657
  const localVarHeaderParameter = {};
15598
15658
  const localVarQueryParameter = {};
15599
15659
  // authentication apiToken required
15600
15660
  // http bearer authentication required
15601
15661
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
15602
- if (groupUuid !== undefined) {
15603
- localVarQueryParameter['group_uuid'] = groupUuid;
15604
- }
15605
- if (subscriptionStatus !== undefined) {
15606
- localVarQueryParameter['subscription_status'] = subscriptionStatus;
15607
- }
15608
- if (page !== undefined) {
15609
- localVarQueryParameter['page'] = page;
15610
- }
15662
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15611
15663
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15612
15664
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15613
15665
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15666
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsFieldsUpdateRequest, localVarRequestOptions, configuration);
15614
15667
  return {
15615
15668
  url: toPathString(localVarUrlObj),
15616
15669
  options: localVarRequestOptions,
@@ -15619,248 +15672,1237 @@ export const ReachContactsApiAxiosParamCreator = function (configuration) {
15619
15672
  };
15620
15673
  };
15621
15674
  /**
15622
- * ReachContactsApi - functional programming interface
15675
+ * ReachContactFieldsApi - functional programming interface
15623
15676
  * @export
15624
15677
  */
15625
- export const ReachContactsApiFp = function (configuration) {
15626
- const localVarAxiosParamCreator = ReachContactsApiAxiosParamCreator(configuration);
15678
+ export const ReachContactFieldsApiFp = function (configuration) {
15679
+ const localVarAxiosParamCreator = ReachContactFieldsApiAxiosParamCreator(configuration);
15627
15680
  return {
15628
15681
  /**
15629
- * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
15630
- * @summary Create a new contact
15631
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
15632
- * @param {*} [options] Override http request option.
15633
- * @deprecated
15634
- * @throws {RequiredError}
15635
- */
15636
- createANewContactV1(reachV1ContactsStoreRequest, options) {
15637
- return __awaiter(this, void 0, void 0, function* () {
15638
- var _a, _b;
15639
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createANewContactV1(reachV1ContactsStoreRequest, options);
15640
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.createANewContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15641
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15642
- });
15643
- },
15644
- /**
15645
- * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
15646
- * @summary Create new contacts
15682
+ * Define a new custom contact field in a profile. The `slug` is derived from the label and, like the field type, cannot be changed later. Use the returned uuid to set values on contacts.
15683
+ * @summary Create a contact field
15647
15684
  * @param {string} profileUuid Profile uuid parameter
15648
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
15685
+ * @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
15649
15686
  * @param {*} [options] Override http request option.
15650
15687
  * @throws {RequiredError}
15651
15688
  */
15652
- createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options) {
15689
+ createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options) {
15653
15690
  return __awaiter(this, void 0, void 0, function* () {
15654
15691
  var _a, _b;
15655
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options);
15656
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.createNewContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15692
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options);
15693
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactFieldsApi.createAContactFieldV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15657
15694
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15658
15695
  });
15659
15696
  },
15660
15697
  /**
15661
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
15662
- * @summary Delete a contact
15663
- * @param {string} uuid UUID of the contact to delete
15698
+ * Delete a custom contact field. Every value contacts hold for the field is deleted with it, and for the choice types so are its options. The contacts themselves are not affected.
15699
+ * @summary Delete a contact field
15700
+ * @param {string} profileUuid Profile uuid parameter
15701
+ * @param {string} fieldUuid Contact field uuid parameter
15664
15702
  * @param {*} [options] Override http request option.
15665
15703
  * @throws {RequiredError}
15666
15704
  */
15667
- deleteAContactV1(uuid, options) {
15705
+ deleteAContactFieldV1(profileUuid, fieldUuid, options) {
15668
15706
  return __awaiter(this, void 0, void 0, function* () {
15669
15707
  var _a, _b;
15670
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAContactV1(uuid, options);
15671
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.deleteAContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15708
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAContactFieldV1(profileUuid, fieldUuid, options);
15709
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactFieldsApi.deleteAContactFieldV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15672
15710
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15673
15711
  });
15674
15712
  },
15675
15713
  /**
15676
- * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
15677
- * @summary List contact groups
15714
+ * Get the custom contact fields defined in a profile. Custom fields let you store your own attributes on contacts. The returned uuids are what you pass to the contact update endpoint to set values, and choice fields also list the options available to pick from.
15715
+ * @summary List contact fields
15716
+ * @param {string} profileUuid Profile uuid parameter
15678
15717
  * @param {*} [options] Override http request option.
15679
- * @deprecated
15680
15718
  * @throws {RequiredError}
15681
15719
  */
15682
- listContactGroupsV1(options) {
15720
+ listContactFieldsV1(profileUuid, options) {
15683
15721
  return __awaiter(this, void 0, void 0, function* () {
15684
15722
  var _a, _b;
15685
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactGroupsV1(options);
15686
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.listContactGroupsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15723
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactFieldsV1(profileUuid, options);
15724
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactFieldsApi.listContactFieldsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15687
15725
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15688
15726
  });
15689
15727
  },
15690
15728
  /**
15691
- * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
15692
- * @summary List contacts
15693
- * @param {string} [groupUuid] Filter contacts by group UUID
15694
- * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
15695
- * @param {number} [page] Page number
15729
+ * Rename a custom contact field and, for the choice types, replace its option set. Options carrying a uuid are kept and relabelled, options without one are created, and any existing option left out of the list is deleted along with the values contacts hold for it. The field type and slug cannot be changed.
15730
+ * @summary Update a contact field
15731
+ * @param {string} profileUuid Profile uuid parameter
15732
+ * @param {string} fieldUuid Contact field uuid parameter
15733
+ * @param {ReachV1ContactsFieldsUpdateRequest} reachV1ContactsFieldsUpdateRequest
15696
15734
  * @param {*} [options] Override http request option.
15697
15735
  * @throws {RequiredError}
15698
15736
  */
15699
- listContactsV1(groupUuid, subscriptionStatus, page, options) {
15737
+ updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options) {
15700
15738
  return __awaiter(this, void 0, void 0, function* () {
15701
15739
  var _a, _b;
15702
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactsV1(groupUuid, subscriptionStatus, page, options);
15703
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.listContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15740
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options);
15741
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactFieldsApi.updateAContactFieldV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15704
15742
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15705
15743
  });
15706
15744
  },
15707
15745
  };
15708
15746
  };
15709
15747
  /**
15710
- * ReachContactsApi - factory interface
15748
+ * ReachContactFieldsApi - factory interface
15711
15749
  * @export
15712
15750
  */
15713
- export const ReachContactsApiFactory = function (configuration, basePath, axios) {
15714
- const localVarFp = ReachContactsApiFp(configuration);
15751
+ export const ReachContactFieldsApiFactory = function (configuration, basePath, axios) {
15752
+ const localVarFp = ReachContactFieldsApiFp(configuration);
15715
15753
  return {
15716
15754
  /**
15717
- * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
15718
- * @summary Create a new contact
15719
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
15720
- * @param {*} [options] Override http request option.
15721
- * @deprecated
15722
- * @throws {RequiredError}
15723
- */
15724
- createANewContactV1(reachV1ContactsStoreRequest, options) {
15725
- return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
15726
- },
15727
- /**
15728
- * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
15729
- * @summary Create new contacts
15755
+ * Define a new custom contact field in a profile. The `slug` is derived from the label and, like the field type, cannot be changed later. Use the returned uuid to set values on contacts.
15756
+ * @summary Create a contact field
15730
15757
  * @param {string} profileUuid Profile uuid parameter
15731
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
15758
+ * @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
15732
15759
  * @param {*} [options] Override http request option.
15733
15760
  * @throws {RequiredError}
15734
15761
  */
15735
- createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options) {
15736
- return localVarFp.createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
15762
+ createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options) {
15763
+ return localVarFp.createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options).then((request) => request(axios, basePath));
15737
15764
  },
15738
15765
  /**
15739
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
15740
- * @summary Delete a contact
15741
- * @param {string} uuid UUID of the contact to delete
15766
+ * Delete a custom contact field. Every value contacts hold for the field is deleted with it, and for the choice types so are its options. The contacts themselves are not affected.
15767
+ * @summary Delete a contact field
15768
+ * @param {string} profileUuid Profile uuid parameter
15769
+ * @param {string} fieldUuid Contact field uuid parameter
15742
15770
  * @param {*} [options] Override http request option.
15743
15771
  * @throws {RequiredError}
15744
15772
  */
15745
- deleteAContactV1(uuid, options) {
15746
- return localVarFp.deleteAContactV1(uuid, options).then((request) => request(axios, basePath));
15773
+ deleteAContactFieldV1(profileUuid, fieldUuid, options) {
15774
+ return localVarFp.deleteAContactFieldV1(profileUuid, fieldUuid, options).then((request) => request(axios, basePath));
15747
15775
  },
15748
15776
  /**
15749
- * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
15750
- * @summary List contact groups
15777
+ * Get the custom contact fields defined in a profile. Custom fields let you store your own attributes on contacts. The returned uuids are what you pass to the contact update endpoint to set values, and choice fields also list the options available to pick from.
15778
+ * @summary List contact fields
15779
+ * @param {string} profileUuid Profile uuid parameter
15751
15780
  * @param {*} [options] Override http request option.
15752
- * @deprecated
15753
15781
  * @throws {RequiredError}
15754
15782
  */
15755
- listContactGroupsV1(options) {
15756
- return localVarFp.listContactGroupsV1(options).then((request) => request(axios, basePath));
15783
+ listContactFieldsV1(profileUuid, options) {
15784
+ return localVarFp.listContactFieldsV1(profileUuid, options).then((request) => request(axios, basePath));
15757
15785
  },
15758
15786
  /**
15759
- * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
15760
- * @summary List contacts
15761
- * @param {string} [groupUuid] Filter contacts by group UUID
15762
- * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
15763
- * @param {number} [page] Page number
15787
+ * Rename a custom contact field and, for the choice types, replace its option set. Options carrying a uuid are kept and relabelled, options without one are created, and any existing option left out of the list is deleted along with the values contacts hold for it. The field type and slug cannot be changed.
15788
+ * @summary Update a contact field
15789
+ * @param {string} profileUuid Profile uuid parameter
15790
+ * @param {string} fieldUuid Contact field uuid parameter
15791
+ * @param {ReachV1ContactsFieldsUpdateRequest} reachV1ContactsFieldsUpdateRequest
15764
15792
  * @param {*} [options] Override http request option.
15765
15793
  * @throws {RequiredError}
15766
15794
  */
15767
- listContactsV1(groupUuid, subscriptionStatus, page, options) {
15768
- return localVarFp.listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(axios, basePath));
15795
+ updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options) {
15796
+ return localVarFp.updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options).then((request) => request(axios, basePath));
15769
15797
  },
15770
15798
  };
15771
15799
  };
15772
15800
  /**
15773
- * ReachContactsApi - object-oriented interface
15801
+ * ReachContactFieldsApi - object-oriented interface
15774
15802
  * @export
15775
- * @class ReachContactsApi
15803
+ * @class ReachContactFieldsApi
15776
15804
  * @extends {BaseAPI}
15777
15805
  */
15778
- export class ReachContactsApi extends BaseAPI {
15779
- /**
15780
- * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
15781
- * @summary Create a new contact
15782
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
15783
- * @param {*} [options] Override http request option.
15784
- * @deprecated
15785
- * @throws {RequiredError}
15786
- * @memberof ReachContactsApi
15787
- */
15788
- createANewContactV1(reachV1ContactsStoreRequest, options) {
15789
- return ReachContactsApiFp(this.configuration).createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
15790
- }
15806
+ export class ReachContactFieldsApi extends BaseAPI {
15791
15807
  /**
15792
- * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
15793
- * @summary Create new contacts
15808
+ * Define a new custom contact field in a profile. The `slug` is derived from the label and, like the field type, cannot be changed later. Use the returned uuid to set values on contacts.
15809
+ * @summary Create a contact field
15794
15810
  * @param {string} profileUuid Profile uuid parameter
15795
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
15811
+ * @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
15796
15812
  * @param {*} [options] Override http request option.
15797
15813
  * @throws {RequiredError}
15798
- * @memberof ReachContactsApi
15814
+ * @memberof ReachContactFieldsApi
15799
15815
  */
15800
- createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options) {
15801
- return ReachContactsApiFp(this.configuration).createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
15816
+ createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options) {
15817
+ return ReachContactFieldsApiFp(this.configuration).createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options).then((request) => request(this.axios, this.basePath));
15802
15818
  }
15803
15819
  /**
15804
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
15805
- * @summary Delete a contact
15806
- * @param {string} uuid UUID of the contact to delete
15820
+ * Delete a custom contact field. Every value contacts hold for the field is deleted with it, and for the choice types so are its options. The contacts themselves are not affected.
15821
+ * @summary Delete a contact field
15822
+ * @param {string} profileUuid Profile uuid parameter
15823
+ * @param {string} fieldUuid Contact field uuid parameter
15807
15824
  * @param {*} [options] Override http request option.
15808
15825
  * @throws {RequiredError}
15809
- * @memberof ReachContactsApi
15826
+ * @memberof ReachContactFieldsApi
15810
15827
  */
15811
- deleteAContactV1(uuid, options) {
15812
- return ReachContactsApiFp(this.configuration).deleteAContactV1(uuid, options).then((request) => request(this.axios, this.basePath));
15828
+ deleteAContactFieldV1(profileUuid, fieldUuid, options) {
15829
+ return ReachContactFieldsApiFp(this.configuration).deleteAContactFieldV1(profileUuid, fieldUuid, options).then((request) => request(this.axios, this.basePath));
15813
15830
  }
15814
15831
  /**
15815
- * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
15816
- * @summary List contact groups
15832
+ * Get the custom contact fields defined in a profile. Custom fields let you store your own attributes on contacts. The returned uuids are what you pass to the contact update endpoint to set values, and choice fields also list the options available to pick from.
15833
+ * @summary List contact fields
15834
+ * @param {string} profileUuid Profile uuid parameter
15817
15835
  * @param {*} [options] Override http request option.
15818
- * @deprecated
15819
15836
  * @throws {RequiredError}
15820
- * @memberof ReachContactsApi
15837
+ * @memberof ReachContactFieldsApi
15821
15838
  */
15822
- listContactGroupsV1(options) {
15823
- return ReachContactsApiFp(this.configuration).listContactGroupsV1(options).then((request) => request(this.axios, this.basePath));
15839
+ listContactFieldsV1(profileUuid, options) {
15840
+ return ReachContactFieldsApiFp(this.configuration).listContactFieldsV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
15824
15841
  }
15825
15842
  /**
15826
- * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
15827
- * @summary List contacts
15828
- * @param {string} [groupUuid] Filter contacts by group UUID
15829
- * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
15830
- * @param {number} [page] Page number
15843
+ * Rename a custom contact field and, for the choice types, replace its option set. Options carrying a uuid are kept and relabelled, options without one are created, and any existing option left out of the list is deleted along with the values contacts hold for it. The field type and slug cannot be changed.
15844
+ * @summary Update a contact field
15845
+ * @param {string} profileUuid Profile uuid parameter
15846
+ * @param {string} fieldUuid Contact field uuid parameter
15847
+ * @param {ReachV1ContactsFieldsUpdateRequest} reachV1ContactsFieldsUpdateRequest
15831
15848
  * @param {*} [options] Override http request option.
15832
15849
  * @throws {RequiredError}
15833
- * @memberof ReachContactsApi
15850
+ * @memberof ReachContactFieldsApi
15834
15851
  */
15835
- listContactsV1(groupUuid, subscriptionStatus, page, options) {
15836
- return ReachContactsApiFp(this.configuration).listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(this.axios, this.basePath));
15852
+ updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options) {
15853
+ return ReachContactFieldsApiFp(this.configuration).updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
15837
15854
  }
15838
15855
  }
15839
15856
  /**
15857
+ * ReachContactsApi - axios parameter creator
15840
15858
  * @export
15841
15859
  */
15842
- export const ListContactsV1SubscriptionStatusEnum = {
15843
- Subscribed: 'subscribed',
15844
- Unsubscribed: 'unsubscribed'
15845
- };
15846
- /**
15847
- * ReachProfilesApi - axios parameter creator
15848
- * @export
15849
- */
15850
- export const ReachProfilesApiAxiosParamCreator = function (configuration) {
15860
+ export const ReachContactsApiAxiosParamCreator = function (configuration) {
15851
15861
  return {
15852
15862
  /**
15853
- * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
15854
- * @summary Get profile domain DNS status
15855
- * @param {string} profileUuid Profile uuid parameter
15863
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
15864
+ * @summary Create a new contact
15865
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
15856
15866
  * @param {*} [options] Override http request option.
15867
+ * @deprecated
15857
15868
  * @throws {RequiredError}
15858
15869
  */
15859
- getProfileDomainDNSStatusV1: (profileUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, ...args_1], void 0, function* (profileUuid, options = {}) {
15860
- // verify required parameter 'profileUuid' is not null or undefined
15861
- assertParamExists('getProfileDomainDNSStatusV1', 'profileUuid', profileUuid);
15862
- const localVarPath = `/api/reach/v1/profiles/{profileUuid}/domains/dns-status`
15863
- .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
15870
+ createANewContactV1: (reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsStoreRequest, options = {}) {
15871
+ // verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
15872
+ assertParamExists('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
15873
+ const localVarPath = `/api/reach/v1/contacts`;
15874
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15875
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15876
+ let baseOptions;
15877
+ if (configuration) {
15878
+ baseOptions = configuration.baseOptions;
15879
+ }
15880
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15881
+ const localVarHeaderParameter = {};
15882
+ const localVarQueryParameter = {};
15883
+ // authentication apiToken required
15884
+ // http bearer authentication required
15885
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
15886
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15887
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15888
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15889
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15890
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
15891
+ return {
15892
+ url: toPathString(localVarUrlObj),
15893
+ options: localVarRequestOptions,
15894
+ };
15895
+ }),
15896
+ /**
15897
+ * Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are left as they are. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
15898
+ * @summary Create contacts in bulk
15899
+ * @param {string} profileUuid Profile uuid parameter
15900
+ * @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
15901
+ * @param {*} [options] Override http request option.
15902
+ * @throws {RequiredError}
15903
+ */
15904
+ createContactsInBulkV1: (profileUuid_1, reachV1ContactsBulkStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsBulkStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsBulkStoreRequest, options = {}) {
15905
+ // verify required parameter 'profileUuid' is not null or undefined
15906
+ assertParamExists('createContactsInBulkV1', 'profileUuid', profileUuid);
15907
+ // verify required parameter 'reachV1ContactsBulkStoreRequest' is not null or undefined
15908
+ assertParamExists('createContactsInBulkV1', 'reachV1ContactsBulkStoreRequest', reachV1ContactsBulkStoreRequest);
15909
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/bulk`
15910
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
15911
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15912
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15913
+ let baseOptions;
15914
+ if (configuration) {
15915
+ baseOptions = configuration.baseOptions;
15916
+ }
15917
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15918
+ const localVarHeaderParameter = {};
15919
+ const localVarQueryParameter = {};
15920
+ // authentication apiToken required
15921
+ // http bearer authentication required
15922
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
15923
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15924
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15925
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15926
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15927
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsBulkStoreRequest, localVarRequestOptions, configuration);
15928
+ return {
15929
+ url: toPathString(localVarUrlObj),
15930
+ options: localVarRequestOptions,
15931
+ };
15932
+ }),
15933
+ /**
15934
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
15935
+ * @summary Create new contacts
15936
+ * @param {string} profileUuid Profile uuid parameter
15937
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
15938
+ * @param {*} [options] Override http request option.
15939
+ * @throws {RequiredError}
15940
+ */
15941
+ createNewContactsV1: (profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsStoreRequest, options = {}) {
15942
+ // verify required parameter 'profileUuid' is not null or undefined
15943
+ assertParamExists('createNewContactsV1', 'profileUuid', profileUuid);
15944
+ // verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
15945
+ assertParamExists('createNewContactsV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
15946
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts`
15947
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
15948
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15949
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15950
+ let baseOptions;
15951
+ if (configuration) {
15952
+ baseOptions = configuration.baseOptions;
15953
+ }
15954
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15955
+ const localVarHeaderParameter = {};
15956
+ const localVarQueryParameter = {};
15957
+ // authentication apiToken required
15958
+ // http bearer authentication required
15959
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
15960
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15961
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15962
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15963
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15964
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
15965
+ return {
15966
+ url: toPathString(localVarUrlObj),
15967
+ options: localVarRequestOptions,
15968
+ };
15969
+ }),
15970
+ /**
15971
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot delete contacts of any other profile. Use `DELETE /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}` instead.
15972
+ * @summary Delete a contact
15973
+ * @param {string} uuid UUID of the contact to delete
15974
+ * @param {*} [options] Override http request option.
15975
+ * @deprecated
15976
+ * @throws {RequiredError}
15977
+ */
15978
+ deleteAContactV1: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
15979
+ // verify required parameter 'uuid' is not null or undefined
15980
+ assertParamExists('deleteAContactV1', 'uuid', uuid);
15981
+ const localVarPath = `/api/reach/v1/contacts/{uuid}`
15982
+ .replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
15983
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15984
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15985
+ let baseOptions;
15986
+ if (configuration) {
15987
+ baseOptions = configuration.baseOptions;
15988
+ }
15989
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
15990
+ const localVarHeaderParameter = {};
15991
+ const localVarQueryParameter = {};
15992
+ // authentication apiToken required
15993
+ // http bearer authentication required
15994
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
15995
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15996
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15997
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15998
+ return {
15999
+ url: toPathString(localVarUrlObj),
16000
+ options: localVarRequestOptions,
16001
+ };
16002
+ }),
16003
+ /**
16004
+ * Permanently delete a contact from a profile. The contact is removed together with its custom field values and tag assignments.
16005
+ * @summary Delete a profile contact
16006
+ * @param {string} profileUuid Profile uuid parameter
16007
+ * @param {string} contactUuid Contact uuid parameter
16008
+ * @param {*} [options] Override http request option.
16009
+ * @throws {RequiredError}
16010
+ */
16011
+ deleteAProfileContactV1: (profileUuid_1, contactUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, contactUuid_1, ...args_1], void 0, function* (profileUuid, contactUuid, options = {}) {
16012
+ // verify required parameter 'profileUuid' is not null or undefined
16013
+ assertParamExists('deleteAProfileContactV1', 'profileUuid', profileUuid);
16014
+ // verify required parameter 'contactUuid' is not null or undefined
16015
+ assertParamExists('deleteAProfileContactV1', 'contactUuid', contactUuid);
16016
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`
16017
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
16018
+ .replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
16019
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16020
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16021
+ let baseOptions;
16022
+ if (configuration) {
16023
+ baseOptions = configuration.baseOptions;
16024
+ }
16025
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
16026
+ const localVarHeaderParameter = {};
16027
+ const localVarQueryParameter = {};
16028
+ // authentication apiToken required
16029
+ // http bearer authentication required
16030
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
16031
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16032
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16033
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16034
+ return {
16035
+ url: toPathString(localVarUrlObj),
16036
+ options: localVarRequestOptions,
16037
+ };
16038
+ }),
16039
+ /**
16040
+ * Get the full details of a single contact. Alongside the contact\'s own attributes this returns the tags assigned to it and the values it holds for the profile\'s custom contact fields.
16041
+ * @summary Get contact details
16042
+ * @param {string} profileUuid Profile uuid parameter
16043
+ * @param {string} contactUuid Contact uuid parameter
16044
+ * @param {*} [options] Override http request option.
16045
+ * @throws {RequiredError}
16046
+ */
16047
+ getContactDetailsV1: (profileUuid_1, contactUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, contactUuid_1, ...args_1], void 0, function* (profileUuid, contactUuid, options = {}) {
16048
+ // verify required parameter 'profileUuid' is not null or undefined
16049
+ assertParamExists('getContactDetailsV1', 'profileUuid', profileUuid);
16050
+ // verify required parameter 'contactUuid' is not null or undefined
16051
+ assertParamExists('getContactDetailsV1', 'contactUuid', contactUuid);
16052
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`
16053
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
16054
+ .replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
16055
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16056
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16057
+ let baseOptions;
16058
+ if (configuration) {
16059
+ baseOptions = configuration.baseOptions;
16060
+ }
16061
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16062
+ const localVarHeaderParameter = {};
16063
+ const localVarQueryParameter = {};
16064
+ // authentication apiToken required
16065
+ // http bearer authentication required
16066
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
16067
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16068
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16069
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16070
+ return {
16071
+ url: toPathString(localVarUrlObj),
16072
+ options: localVarRequestOptions,
16073
+ };
16074
+ }),
16075
+ /**
16076
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
16077
+ * @summary List contact groups
16078
+ * @param {*} [options] Override http request option.
16079
+ * @deprecated
16080
+ * @throws {RequiredError}
16081
+ */
16082
+ listContactGroupsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
16083
+ const localVarPath = `/api/reach/v1/contacts/groups`;
16084
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16085
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16086
+ let baseOptions;
16087
+ if (configuration) {
16088
+ baseOptions = configuration.baseOptions;
16089
+ }
16090
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16091
+ const localVarHeaderParameter = {};
16092
+ const localVarQueryParameter = {};
16093
+ // authentication apiToken required
16094
+ // http bearer authentication required
16095
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
16096
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16097
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16098
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16099
+ return {
16100
+ url: toPathString(localVarUrlObj),
16101
+ options: localVarRequestOptions,
16102
+ };
16103
+ }),
16104
+ /**
16105
+ * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list contacts of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/contacts` instead, which also replaces the group filter with a tag filter.
16106
+ * @summary List contacts
16107
+ * @param {string} [groupUuid] Filter contacts by group UUID
16108
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
16109
+ * @param {number} [page] Page number
16110
+ * @param {*} [options] Override http request option.
16111
+ * @deprecated
16112
+ * @throws {RequiredError}
16113
+ */
16114
+ listContactsV1: (groupUuid_1, subscriptionStatus_1, page_1, ...args_1) => __awaiter(this, [groupUuid_1, subscriptionStatus_1, page_1, ...args_1], void 0, function* (groupUuid, subscriptionStatus, page, options = {}) {
16115
+ const localVarPath = `/api/reach/v1/contacts`;
16116
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16117
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16118
+ let baseOptions;
16119
+ if (configuration) {
16120
+ baseOptions = configuration.baseOptions;
16121
+ }
16122
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16123
+ const localVarHeaderParameter = {};
16124
+ const localVarQueryParameter = {};
16125
+ // authentication apiToken required
16126
+ // http bearer authentication required
16127
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
16128
+ if (groupUuid !== undefined) {
16129
+ localVarQueryParameter['group_uuid'] = groupUuid;
16130
+ }
16131
+ if (subscriptionStatus !== undefined) {
16132
+ localVarQueryParameter['subscription_status'] = subscriptionStatus;
16133
+ }
16134
+ if (page !== undefined) {
16135
+ localVarQueryParameter['page'] = page;
16136
+ }
16137
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16138
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16139
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16140
+ return {
16141
+ url: toPathString(localVarUrlObj),
16142
+ options: localVarRequestOptions,
16143
+ };
16144
+ }),
16145
+ /**
16146
+ * Get a paginated list of contacts belonging to a profile. Contacts can be filtered by subscription status, by tag, and by an email search term. The `meta.total` field of the response is the number of contacts matching the filters, so calling this endpoint without filters gives the profile\'s total contact count.
16147
+ * @summary List profile contacts
16148
+ * @param {string} profileUuid Profile uuid parameter
16149
+ * @param {ListProfileContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
16150
+ * @param {string} [tagUuid] Filter contacts by tag UUID
16151
+ * @param {string} [search] Search contacts by email
16152
+ * @param {number} [page] Page number
16153
+ * @param {number} [perPage] Number of items per page
16154
+ * @param {*} [options] Override http request option.
16155
+ * @throws {RequiredError}
16156
+ */
16157
+ listProfileContactsV1: (profileUuid_1, subscriptionStatus_1, tagUuid_1, search_1, page_1, perPage_1, ...args_1) => __awaiter(this, [profileUuid_1, subscriptionStatus_1, tagUuid_1, search_1, page_1, perPage_1, ...args_1], void 0, function* (profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options = {}) {
16158
+ // verify required parameter 'profileUuid' is not null or undefined
16159
+ assertParamExists('listProfileContactsV1', 'profileUuid', profileUuid);
16160
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts`
16161
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
16162
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16163
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16164
+ let baseOptions;
16165
+ if (configuration) {
16166
+ baseOptions = configuration.baseOptions;
16167
+ }
16168
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16169
+ const localVarHeaderParameter = {};
16170
+ const localVarQueryParameter = {};
16171
+ // authentication apiToken required
16172
+ // http bearer authentication required
16173
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
16174
+ if (subscriptionStatus !== undefined) {
16175
+ localVarQueryParameter['subscription_status'] = subscriptionStatus;
16176
+ }
16177
+ if (tagUuid !== undefined) {
16178
+ localVarQueryParameter['tag_uuid'] = tagUuid;
16179
+ }
16180
+ if (search !== undefined) {
16181
+ localVarQueryParameter['search'] = search;
16182
+ }
16183
+ if (page !== undefined) {
16184
+ localVarQueryParameter['page'] = page;
16185
+ }
16186
+ if (perPage !== undefined) {
16187
+ localVarQueryParameter['per_page'] = perPage;
16188
+ }
16189
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16190
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16191
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16192
+ return {
16193
+ url: toPathString(localVarUrlObj),
16194
+ options: localVarRequestOptions,
16195
+ };
16196
+ }),
16197
+ /**
16198
+ * Update a contact\'s attributes and custom field values. Only the properties present in the request body are changed, so a partial body is enough to change a single attribute. Sending a property as `null` clears it. The response carries the contact\'s core attributes. Read back its tags, custom field values, source and note with `GET /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`.
16199
+ * @summary Update a contact
16200
+ * @param {string} profileUuid Profile uuid parameter
16201
+ * @param {string} contactUuid Contact uuid parameter
16202
+ * @param {ReachV1ContactsUpdateRequest} reachV1ContactsUpdateRequest
16203
+ * @param {*} [options] Override http request option.
16204
+ * @throws {RequiredError}
16205
+ */
16206
+ updateAContactV1: (profileUuid_1, contactUuid_1, reachV1ContactsUpdateRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, contactUuid_1, reachV1ContactsUpdateRequest_1, ...args_1], void 0, function* (profileUuid, contactUuid, reachV1ContactsUpdateRequest, options = {}) {
16207
+ // verify required parameter 'profileUuid' is not null or undefined
16208
+ assertParamExists('updateAContactV1', 'profileUuid', profileUuid);
16209
+ // verify required parameter 'contactUuid' is not null or undefined
16210
+ assertParamExists('updateAContactV1', 'contactUuid', contactUuid);
16211
+ // verify required parameter 'reachV1ContactsUpdateRequest' is not null or undefined
16212
+ assertParamExists('updateAContactV1', 'reachV1ContactsUpdateRequest', reachV1ContactsUpdateRequest);
16213
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`
16214
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
16215
+ .replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
16216
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16217
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16218
+ let baseOptions;
16219
+ if (configuration) {
16220
+ baseOptions = configuration.baseOptions;
16221
+ }
16222
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
16223
+ const localVarHeaderParameter = {};
16224
+ const localVarQueryParameter = {};
16225
+ // authentication apiToken required
16226
+ // http bearer authentication required
16227
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
16228
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16229
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16230
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16231
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16232
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsUpdateRequest, localVarRequestOptions, configuration);
16233
+ return {
16234
+ url: toPathString(localVarUrlObj),
16235
+ options: localVarRequestOptions,
16236
+ };
16237
+ }),
16238
+ };
16239
+ };
16240
+ /**
16241
+ * ReachContactsApi - functional programming interface
16242
+ * @export
16243
+ */
16244
+ export const ReachContactsApiFp = function (configuration) {
16245
+ const localVarAxiosParamCreator = ReachContactsApiAxiosParamCreator(configuration);
16246
+ return {
16247
+ /**
16248
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
16249
+ * @summary Create a new contact
16250
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
16251
+ * @param {*} [options] Override http request option.
16252
+ * @deprecated
16253
+ * @throws {RequiredError}
16254
+ */
16255
+ createANewContactV1(reachV1ContactsStoreRequest, options) {
16256
+ return __awaiter(this, void 0, void 0, function* () {
16257
+ var _a, _b;
16258
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createANewContactV1(reachV1ContactsStoreRequest, options);
16259
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.createANewContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16260
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16261
+ });
16262
+ },
16263
+ /**
16264
+ * Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are left as they are. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
16265
+ * @summary Create contacts in bulk
16266
+ * @param {string} profileUuid Profile uuid parameter
16267
+ * @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
16268
+ * @param {*} [options] Override http request option.
16269
+ * @throws {RequiredError}
16270
+ */
16271
+ createContactsInBulkV1(profileUuid, reachV1ContactsBulkStoreRequest, options) {
16272
+ return __awaiter(this, void 0, void 0, function* () {
16273
+ var _a, _b;
16274
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createContactsInBulkV1(profileUuid, reachV1ContactsBulkStoreRequest, options);
16275
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.createContactsInBulkV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16276
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16277
+ });
16278
+ },
16279
+ /**
16280
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
16281
+ * @summary Create new contacts
16282
+ * @param {string} profileUuid Profile uuid parameter
16283
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
16284
+ * @param {*} [options] Override http request option.
16285
+ * @throws {RequiredError}
16286
+ */
16287
+ createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options) {
16288
+ return __awaiter(this, void 0, void 0, function* () {
16289
+ var _a, _b;
16290
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options);
16291
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.createNewContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16292
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16293
+ });
16294
+ },
16295
+ /**
16296
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot delete contacts of any other profile. Use `DELETE /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}` instead.
16297
+ * @summary Delete a contact
16298
+ * @param {string} uuid UUID of the contact to delete
16299
+ * @param {*} [options] Override http request option.
16300
+ * @deprecated
16301
+ * @throws {RequiredError}
16302
+ */
16303
+ deleteAContactV1(uuid, options) {
16304
+ return __awaiter(this, void 0, void 0, function* () {
16305
+ var _a, _b;
16306
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAContactV1(uuid, options);
16307
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.deleteAContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16308
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16309
+ });
16310
+ },
16311
+ /**
16312
+ * Permanently delete a contact from a profile. The contact is removed together with its custom field values and tag assignments.
16313
+ * @summary Delete a profile contact
16314
+ * @param {string} profileUuid Profile uuid parameter
16315
+ * @param {string} contactUuid Contact uuid parameter
16316
+ * @param {*} [options] Override http request option.
16317
+ * @throws {RequiredError}
16318
+ */
16319
+ deleteAProfileContactV1(profileUuid, contactUuid, options) {
16320
+ return __awaiter(this, void 0, void 0, function* () {
16321
+ var _a, _b;
16322
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAProfileContactV1(profileUuid, contactUuid, options);
16323
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.deleteAProfileContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16324
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16325
+ });
16326
+ },
16327
+ /**
16328
+ * Get the full details of a single contact. Alongside the contact\'s own attributes this returns the tags assigned to it and the values it holds for the profile\'s custom contact fields.
16329
+ * @summary Get contact details
16330
+ * @param {string} profileUuid Profile uuid parameter
16331
+ * @param {string} contactUuid Contact uuid parameter
16332
+ * @param {*} [options] Override http request option.
16333
+ * @throws {RequiredError}
16334
+ */
16335
+ getContactDetailsV1(profileUuid, contactUuid, options) {
16336
+ return __awaiter(this, void 0, void 0, function* () {
16337
+ var _a, _b;
16338
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getContactDetailsV1(profileUuid, contactUuid, options);
16339
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.getContactDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16340
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16341
+ });
16342
+ },
16343
+ /**
16344
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
16345
+ * @summary List contact groups
16346
+ * @param {*} [options] Override http request option.
16347
+ * @deprecated
16348
+ * @throws {RequiredError}
16349
+ */
16350
+ listContactGroupsV1(options) {
16351
+ return __awaiter(this, void 0, void 0, function* () {
16352
+ var _a, _b;
16353
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactGroupsV1(options);
16354
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.listContactGroupsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16355
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16356
+ });
16357
+ },
16358
+ /**
16359
+ * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list contacts of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/contacts` instead, which also replaces the group filter with a tag filter.
16360
+ * @summary List contacts
16361
+ * @param {string} [groupUuid] Filter contacts by group UUID
16362
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
16363
+ * @param {number} [page] Page number
16364
+ * @param {*} [options] Override http request option.
16365
+ * @deprecated
16366
+ * @throws {RequiredError}
16367
+ */
16368
+ listContactsV1(groupUuid, subscriptionStatus, page, options) {
16369
+ return __awaiter(this, void 0, void 0, function* () {
16370
+ var _a, _b;
16371
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactsV1(groupUuid, subscriptionStatus, page, options);
16372
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.listContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16373
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16374
+ });
16375
+ },
16376
+ /**
16377
+ * Get a paginated list of contacts belonging to a profile. Contacts can be filtered by subscription status, by tag, and by an email search term. The `meta.total` field of the response is the number of contacts matching the filters, so calling this endpoint without filters gives the profile\'s total contact count.
16378
+ * @summary List profile contacts
16379
+ * @param {string} profileUuid Profile uuid parameter
16380
+ * @param {ListProfileContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
16381
+ * @param {string} [tagUuid] Filter contacts by tag UUID
16382
+ * @param {string} [search] Search contacts by email
16383
+ * @param {number} [page] Page number
16384
+ * @param {number} [perPage] Number of items per page
16385
+ * @param {*} [options] Override http request option.
16386
+ * @throws {RequiredError}
16387
+ */
16388
+ listProfileContactsV1(profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options) {
16389
+ return __awaiter(this, void 0, void 0, function* () {
16390
+ var _a, _b;
16391
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfileContactsV1(profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options);
16392
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.listProfileContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16393
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16394
+ });
16395
+ },
16396
+ /**
16397
+ * Update a contact\'s attributes and custom field values. Only the properties present in the request body are changed, so a partial body is enough to change a single attribute. Sending a property as `null` clears it. The response carries the contact\'s core attributes. Read back its tags, custom field values, source and note with `GET /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`.
16398
+ * @summary Update a contact
16399
+ * @param {string} profileUuid Profile uuid parameter
16400
+ * @param {string} contactUuid Contact uuid parameter
16401
+ * @param {ReachV1ContactsUpdateRequest} reachV1ContactsUpdateRequest
16402
+ * @param {*} [options] Override http request option.
16403
+ * @throws {RequiredError}
16404
+ */
16405
+ updateAContactV1(profileUuid, contactUuid, reachV1ContactsUpdateRequest, options) {
16406
+ return __awaiter(this, void 0, void 0, function* () {
16407
+ var _a, _b;
16408
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAContactV1(profileUuid, contactUuid, reachV1ContactsUpdateRequest, options);
16409
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.updateAContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16410
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16411
+ });
16412
+ },
16413
+ };
16414
+ };
16415
+ /**
16416
+ * ReachContactsApi - factory interface
16417
+ * @export
16418
+ */
16419
+ export const ReachContactsApiFactory = function (configuration, basePath, axios) {
16420
+ const localVarFp = ReachContactsApiFp(configuration);
16421
+ return {
16422
+ /**
16423
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
16424
+ * @summary Create a new contact
16425
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
16426
+ * @param {*} [options] Override http request option.
16427
+ * @deprecated
16428
+ * @throws {RequiredError}
16429
+ */
16430
+ createANewContactV1(reachV1ContactsStoreRequest, options) {
16431
+ return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
16432
+ },
16433
+ /**
16434
+ * Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are left as they are. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
16435
+ * @summary Create contacts in bulk
16436
+ * @param {string} profileUuid Profile uuid parameter
16437
+ * @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
16438
+ * @param {*} [options] Override http request option.
16439
+ * @throws {RequiredError}
16440
+ */
16441
+ createContactsInBulkV1(profileUuid, reachV1ContactsBulkStoreRequest, options) {
16442
+ return localVarFp.createContactsInBulkV1(profileUuid, reachV1ContactsBulkStoreRequest, options).then((request) => request(axios, basePath));
16443
+ },
16444
+ /**
16445
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
16446
+ * @summary Create new contacts
16447
+ * @param {string} profileUuid Profile uuid parameter
16448
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
16449
+ * @param {*} [options] Override http request option.
16450
+ * @throws {RequiredError}
16451
+ */
16452
+ createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options) {
16453
+ return localVarFp.createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
16454
+ },
16455
+ /**
16456
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot delete contacts of any other profile. Use `DELETE /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}` instead.
16457
+ * @summary Delete a contact
16458
+ * @param {string} uuid UUID of the contact to delete
16459
+ * @param {*} [options] Override http request option.
16460
+ * @deprecated
16461
+ * @throws {RequiredError}
16462
+ */
16463
+ deleteAContactV1(uuid, options) {
16464
+ return localVarFp.deleteAContactV1(uuid, options).then((request) => request(axios, basePath));
16465
+ },
16466
+ /**
16467
+ * Permanently delete a contact from a profile. The contact is removed together with its custom field values and tag assignments.
16468
+ * @summary Delete a profile contact
16469
+ * @param {string} profileUuid Profile uuid parameter
16470
+ * @param {string} contactUuid Contact uuid parameter
16471
+ * @param {*} [options] Override http request option.
16472
+ * @throws {RequiredError}
16473
+ */
16474
+ deleteAProfileContactV1(profileUuid, contactUuid, options) {
16475
+ return localVarFp.deleteAProfileContactV1(profileUuid, contactUuid, options).then((request) => request(axios, basePath));
16476
+ },
16477
+ /**
16478
+ * Get the full details of a single contact. Alongside the contact\'s own attributes this returns the tags assigned to it and the values it holds for the profile\'s custom contact fields.
16479
+ * @summary Get contact details
16480
+ * @param {string} profileUuid Profile uuid parameter
16481
+ * @param {string} contactUuid Contact uuid parameter
16482
+ * @param {*} [options] Override http request option.
16483
+ * @throws {RequiredError}
16484
+ */
16485
+ getContactDetailsV1(profileUuid, contactUuid, options) {
16486
+ return localVarFp.getContactDetailsV1(profileUuid, contactUuid, options).then((request) => request(axios, basePath));
16487
+ },
16488
+ /**
16489
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
16490
+ * @summary List contact groups
16491
+ * @param {*} [options] Override http request option.
16492
+ * @deprecated
16493
+ * @throws {RequiredError}
16494
+ */
16495
+ listContactGroupsV1(options) {
16496
+ return localVarFp.listContactGroupsV1(options).then((request) => request(axios, basePath));
16497
+ },
16498
+ /**
16499
+ * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list contacts of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/contacts` instead, which also replaces the group filter with a tag filter.
16500
+ * @summary List contacts
16501
+ * @param {string} [groupUuid] Filter contacts by group UUID
16502
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
16503
+ * @param {number} [page] Page number
16504
+ * @param {*} [options] Override http request option.
16505
+ * @deprecated
16506
+ * @throws {RequiredError}
16507
+ */
16508
+ listContactsV1(groupUuid, subscriptionStatus, page, options) {
16509
+ return localVarFp.listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(axios, basePath));
16510
+ },
16511
+ /**
16512
+ * Get a paginated list of contacts belonging to a profile. Contacts can be filtered by subscription status, by tag, and by an email search term. The `meta.total` field of the response is the number of contacts matching the filters, so calling this endpoint without filters gives the profile\'s total contact count.
16513
+ * @summary List profile contacts
16514
+ * @param {string} profileUuid Profile uuid parameter
16515
+ * @param {ListProfileContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
16516
+ * @param {string} [tagUuid] Filter contacts by tag UUID
16517
+ * @param {string} [search] Search contacts by email
16518
+ * @param {number} [page] Page number
16519
+ * @param {number} [perPage] Number of items per page
16520
+ * @param {*} [options] Override http request option.
16521
+ * @throws {RequiredError}
16522
+ */
16523
+ listProfileContactsV1(profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options) {
16524
+ return localVarFp.listProfileContactsV1(profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options).then((request) => request(axios, basePath));
16525
+ },
16526
+ /**
16527
+ * Update a contact\'s attributes and custom field values. Only the properties present in the request body are changed, so a partial body is enough to change a single attribute. Sending a property as `null` clears it. The response carries the contact\'s core attributes. Read back its tags, custom field values, source and note with `GET /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`.
16528
+ * @summary Update a contact
16529
+ * @param {string} profileUuid Profile uuid parameter
16530
+ * @param {string} contactUuid Contact uuid parameter
16531
+ * @param {ReachV1ContactsUpdateRequest} reachV1ContactsUpdateRequest
16532
+ * @param {*} [options] Override http request option.
16533
+ * @throws {RequiredError}
16534
+ */
16535
+ updateAContactV1(profileUuid, contactUuid, reachV1ContactsUpdateRequest, options) {
16536
+ return localVarFp.updateAContactV1(profileUuid, contactUuid, reachV1ContactsUpdateRequest, options).then((request) => request(axios, basePath));
16537
+ },
16538
+ };
16539
+ };
16540
+ /**
16541
+ * ReachContactsApi - object-oriented interface
16542
+ * @export
16543
+ * @class ReachContactsApi
16544
+ * @extends {BaseAPI}
16545
+ */
16546
+ export class ReachContactsApi extends BaseAPI {
16547
+ /**
16548
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
16549
+ * @summary Create a new contact
16550
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
16551
+ * @param {*} [options] Override http request option.
16552
+ * @deprecated
16553
+ * @throws {RequiredError}
16554
+ * @memberof ReachContactsApi
16555
+ */
16556
+ createANewContactV1(reachV1ContactsStoreRequest, options) {
16557
+ return ReachContactsApiFp(this.configuration).createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
16558
+ }
16559
+ /**
16560
+ * Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are left as they are. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
16561
+ * @summary Create contacts in bulk
16562
+ * @param {string} profileUuid Profile uuid parameter
16563
+ * @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
16564
+ * @param {*} [options] Override http request option.
16565
+ * @throws {RequiredError}
16566
+ * @memberof ReachContactsApi
16567
+ */
16568
+ createContactsInBulkV1(profileUuid, reachV1ContactsBulkStoreRequest, options) {
16569
+ return ReachContactsApiFp(this.configuration).createContactsInBulkV1(profileUuid, reachV1ContactsBulkStoreRequest, options).then((request) => request(this.axios, this.basePath));
16570
+ }
16571
+ /**
16572
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
16573
+ * @summary Create new contacts
16574
+ * @param {string} profileUuid Profile uuid parameter
16575
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
16576
+ * @param {*} [options] Override http request option.
16577
+ * @throws {RequiredError}
16578
+ * @memberof ReachContactsApi
16579
+ */
16580
+ createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options) {
16581
+ return ReachContactsApiFp(this.configuration).createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
16582
+ }
16583
+ /**
16584
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot delete contacts of any other profile. Use `DELETE /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}` instead.
16585
+ * @summary Delete a contact
16586
+ * @param {string} uuid UUID of the contact to delete
16587
+ * @param {*} [options] Override http request option.
16588
+ * @deprecated
16589
+ * @throws {RequiredError}
16590
+ * @memberof ReachContactsApi
16591
+ */
16592
+ deleteAContactV1(uuid, options) {
16593
+ return ReachContactsApiFp(this.configuration).deleteAContactV1(uuid, options).then((request) => request(this.axios, this.basePath));
16594
+ }
16595
+ /**
16596
+ * Permanently delete a contact from a profile. The contact is removed together with its custom field values and tag assignments.
16597
+ * @summary Delete a profile contact
16598
+ * @param {string} profileUuid Profile uuid parameter
16599
+ * @param {string} contactUuid Contact uuid parameter
16600
+ * @param {*} [options] Override http request option.
16601
+ * @throws {RequiredError}
16602
+ * @memberof ReachContactsApi
16603
+ */
16604
+ deleteAProfileContactV1(profileUuid, contactUuid, options) {
16605
+ return ReachContactsApiFp(this.configuration).deleteAProfileContactV1(profileUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
16606
+ }
16607
+ /**
16608
+ * Get the full details of a single contact. Alongside the contact\'s own attributes this returns the tags assigned to it and the values it holds for the profile\'s custom contact fields.
16609
+ * @summary Get contact details
16610
+ * @param {string} profileUuid Profile uuid parameter
16611
+ * @param {string} contactUuid Contact uuid parameter
16612
+ * @param {*} [options] Override http request option.
16613
+ * @throws {RequiredError}
16614
+ * @memberof ReachContactsApi
16615
+ */
16616
+ getContactDetailsV1(profileUuid, contactUuid, options) {
16617
+ return ReachContactsApiFp(this.configuration).getContactDetailsV1(profileUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
16618
+ }
16619
+ /**
16620
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
16621
+ * @summary List contact groups
16622
+ * @param {*} [options] Override http request option.
16623
+ * @deprecated
16624
+ * @throws {RequiredError}
16625
+ * @memberof ReachContactsApi
16626
+ */
16627
+ listContactGroupsV1(options) {
16628
+ return ReachContactsApiFp(this.configuration).listContactGroupsV1(options).then((request) => request(this.axios, this.basePath));
16629
+ }
16630
+ /**
16631
+ * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list contacts of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/contacts` instead, which also replaces the group filter with a tag filter.
16632
+ * @summary List contacts
16633
+ * @param {string} [groupUuid] Filter contacts by group UUID
16634
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
16635
+ * @param {number} [page] Page number
16636
+ * @param {*} [options] Override http request option.
16637
+ * @deprecated
16638
+ * @throws {RequiredError}
16639
+ * @memberof ReachContactsApi
16640
+ */
16641
+ listContactsV1(groupUuid, subscriptionStatus, page, options) {
16642
+ return ReachContactsApiFp(this.configuration).listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(this.axios, this.basePath));
16643
+ }
16644
+ /**
16645
+ * Get a paginated list of contacts belonging to a profile. Contacts can be filtered by subscription status, by tag, and by an email search term. The `meta.total` field of the response is the number of contacts matching the filters, so calling this endpoint without filters gives the profile\'s total contact count.
16646
+ * @summary List profile contacts
16647
+ * @param {string} profileUuid Profile uuid parameter
16648
+ * @param {ListProfileContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
16649
+ * @param {string} [tagUuid] Filter contacts by tag UUID
16650
+ * @param {string} [search] Search contacts by email
16651
+ * @param {number} [page] Page number
16652
+ * @param {number} [perPage] Number of items per page
16653
+ * @param {*} [options] Override http request option.
16654
+ * @throws {RequiredError}
16655
+ * @memberof ReachContactsApi
16656
+ */
16657
+ listProfileContactsV1(profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options) {
16658
+ return ReachContactsApiFp(this.configuration).listProfileContactsV1(profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options).then((request) => request(this.axios, this.basePath));
16659
+ }
16660
+ /**
16661
+ * Update a contact\'s attributes and custom field values. Only the properties present in the request body are changed, so a partial body is enough to change a single attribute. Sending a property as `null` clears it. The response carries the contact\'s core attributes. Read back its tags, custom field values, source and note with `GET /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`.
16662
+ * @summary Update a contact
16663
+ * @param {string} profileUuid Profile uuid parameter
16664
+ * @param {string} contactUuid Contact uuid parameter
16665
+ * @param {ReachV1ContactsUpdateRequest} reachV1ContactsUpdateRequest
16666
+ * @param {*} [options] Override http request option.
16667
+ * @throws {RequiredError}
16668
+ * @memberof ReachContactsApi
16669
+ */
16670
+ updateAContactV1(profileUuid, contactUuid, reachV1ContactsUpdateRequest, options) {
16671
+ return ReachContactsApiFp(this.configuration).updateAContactV1(profileUuid, contactUuid, reachV1ContactsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
16672
+ }
16673
+ }
16674
+ /**
16675
+ * @export
16676
+ */
16677
+ export const ListContactsV1SubscriptionStatusEnum = {
16678
+ Subscribed: 'subscribed',
16679
+ Unsubscribed: 'unsubscribed',
16680
+ Confirmed: 'confirmed',
16681
+ Pending: 'pending'
16682
+ };
16683
+ /**
16684
+ * @export
16685
+ */
16686
+ export const ListProfileContactsV1SubscriptionStatusEnum = {
16687
+ Subscribed: 'subscribed',
16688
+ Unsubscribed: 'unsubscribed',
16689
+ Confirmed: 'confirmed',
16690
+ Pending: 'pending'
16691
+ };
16692
+ /**
16693
+ * ReachProfilesApi - axios parameter creator
16694
+ * @export
16695
+ */
16696
+ export const ReachProfilesApiAxiosParamCreator = function (configuration) {
16697
+ return {
16698
+ /**
16699
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
16700
+ * @summary Get profile domain DNS status
16701
+ * @param {string} profileUuid Profile uuid parameter
16702
+ * @param {*} [options] Override http request option.
16703
+ * @throws {RequiredError}
16704
+ */
16705
+ getProfileDomainDNSStatusV1: (profileUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, ...args_1], void 0, function* (profileUuid, options = {}) {
16706
+ // verify required parameter 'profileUuid' is not null or undefined
16707
+ assertParamExists('getProfileDomainDNSStatusV1', 'profileUuid', profileUuid);
16708
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/domains/dns-status`
16709
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
16710
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16711
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16712
+ let baseOptions;
16713
+ if (configuration) {
16714
+ baseOptions = configuration.baseOptions;
16715
+ }
16716
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16717
+ const localVarHeaderParameter = {};
16718
+ const localVarQueryParameter = {};
16719
+ // authentication apiToken required
16720
+ // http bearer authentication required
16721
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
16722
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16723
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16724
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16725
+ return {
16726
+ url: toPathString(localVarUrlObj),
16727
+ options: localVarRequestOptions,
16728
+ };
16729
+ }),
16730
+ /**
16731
+ * This endpoint returns all profiles available to the client, including their basic information.
16732
+ * @summary List Profiles
16733
+ * @param {*} [options] Override http request option.
16734
+ * @throws {RequiredError}
16735
+ */
16736
+ listProfilesV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
16737
+ const localVarPath = `/api/reach/v1/profiles`;
16738
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16739
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16740
+ let baseOptions;
16741
+ if (configuration) {
16742
+ baseOptions = configuration.baseOptions;
16743
+ }
16744
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16745
+ const localVarHeaderParameter = {};
16746
+ const localVarQueryParameter = {};
16747
+ // authentication apiToken required
16748
+ // http bearer authentication required
16749
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
16750
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16751
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16752
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16753
+ return {
16754
+ url: toPathString(localVarUrlObj),
16755
+ options: localVarRequestOptions,
16756
+ };
16757
+ }),
16758
+ };
16759
+ };
16760
+ /**
16761
+ * ReachProfilesApi - functional programming interface
16762
+ * @export
16763
+ */
16764
+ export const ReachProfilesApiFp = function (configuration) {
16765
+ const localVarAxiosParamCreator = ReachProfilesApiAxiosParamCreator(configuration);
16766
+ return {
16767
+ /**
16768
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
16769
+ * @summary Get profile domain DNS status
16770
+ * @param {string} profileUuid Profile uuid parameter
16771
+ * @param {*} [options] Override http request option.
16772
+ * @throws {RequiredError}
16773
+ */
16774
+ getProfileDomainDNSStatusV1(profileUuid, options) {
16775
+ return __awaiter(this, void 0, void 0, function* () {
16776
+ var _a, _b;
16777
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProfileDomainDNSStatusV1(profileUuid, options);
16778
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachProfilesApi.getProfileDomainDNSStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16779
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16780
+ });
16781
+ },
16782
+ /**
16783
+ * This endpoint returns all profiles available to the client, including their basic information.
16784
+ * @summary List Profiles
16785
+ * @param {*} [options] Override http request option.
16786
+ * @throws {RequiredError}
16787
+ */
16788
+ listProfilesV1(options) {
16789
+ return __awaiter(this, void 0, void 0, function* () {
16790
+ var _a, _b;
16791
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfilesV1(options);
16792
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachProfilesApi.listProfilesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16793
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16794
+ });
16795
+ },
16796
+ };
16797
+ };
16798
+ /**
16799
+ * ReachProfilesApi - factory interface
16800
+ * @export
16801
+ */
16802
+ export const ReachProfilesApiFactory = function (configuration, basePath, axios) {
16803
+ const localVarFp = ReachProfilesApiFp(configuration);
16804
+ return {
16805
+ /**
16806
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
16807
+ * @summary Get profile domain DNS status
16808
+ * @param {string} profileUuid Profile uuid parameter
16809
+ * @param {*} [options] Override http request option.
16810
+ * @throws {RequiredError}
16811
+ */
16812
+ getProfileDomainDNSStatusV1(profileUuid, options) {
16813
+ return localVarFp.getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(axios, basePath));
16814
+ },
16815
+ /**
16816
+ * This endpoint returns all profiles available to the client, including their basic information.
16817
+ * @summary List Profiles
16818
+ * @param {*} [options] Override http request option.
16819
+ * @throws {RequiredError}
16820
+ */
16821
+ listProfilesV1(options) {
16822
+ return localVarFp.listProfilesV1(options).then((request) => request(axios, basePath));
16823
+ },
16824
+ };
16825
+ };
16826
+ /**
16827
+ * ReachProfilesApi - object-oriented interface
16828
+ * @export
16829
+ * @class ReachProfilesApi
16830
+ * @extends {BaseAPI}
16831
+ */
16832
+ export class ReachProfilesApi extends BaseAPI {
16833
+ /**
16834
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
16835
+ * @summary Get profile domain DNS status
16836
+ * @param {string} profileUuid Profile uuid parameter
16837
+ * @param {*} [options] Override http request option.
16838
+ * @throws {RequiredError}
16839
+ * @memberof ReachProfilesApi
16840
+ */
16841
+ getProfileDomainDNSStatusV1(profileUuid, options) {
16842
+ return ReachProfilesApiFp(this.configuration).getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
16843
+ }
16844
+ /**
16845
+ * This endpoint returns all profiles available to the client, including their basic information.
16846
+ * @summary List Profiles
16847
+ * @param {*} [options] Override http request option.
16848
+ * @throws {RequiredError}
16849
+ * @memberof ReachProfilesApi
16850
+ */
16851
+ listProfilesV1(options) {
16852
+ return ReachProfilesApiFp(this.configuration).listProfilesV1(options).then((request) => request(this.axios, this.basePath));
16853
+ }
16854
+ }
16855
+ /**
16856
+ * ReachSegmentsApi - axios parameter creator
16857
+ * @export
16858
+ */
16859
+ export const ReachSegmentsApiAxiosParamCreator = function (configuration) {
16860
+ return {
16861
+ /**
16862
+ * 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.
16863
+ * @summary Create a new contact segment
16864
+ * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
16865
+ * @param {*} [options] Override http request option.
16866
+ * @throws {RequiredError}
16867
+ */
16868
+ createANewContactSegmentV1: (reachV1ContactsSegmentsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsSegmentsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsSegmentsStoreRequest, options = {}) {
16869
+ // verify required parameter 'reachV1ContactsSegmentsStoreRequest' is not null or undefined
16870
+ assertParamExists('createANewContactSegmentV1', 'reachV1ContactsSegmentsStoreRequest', reachV1ContactsSegmentsStoreRequest);
16871
+ const localVarPath = `/api/reach/v1/segmentation/segments`;
16872
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16873
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16874
+ let baseOptions;
16875
+ if (configuration) {
16876
+ baseOptions = configuration.baseOptions;
16877
+ }
16878
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
16879
+ const localVarHeaderParameter = {};
16880
+ const localVarQueryParameter = {};
16881
+ // authentication apiToken required
16882
+ // http bearer authentication required
16883
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
16884
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16885
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16886
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16887
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16888
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsSegmentsStoreRequest, localVarRequestOptions, configuration);
16889
+ return {
16890
+ url: toPathString(localVarUrlObj),
16891
+ options: localVarRequestOptions,
16892
+ };
16893
+ }),
16894
+ /**
16895
+ * 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.
16896
+ * @summary Get segment details
16897
+ * @param {string} segmentUuid Segment uuid parameter
16898
+ * @param {*} [options] Override http request option.
16899
+ * @throws {RequiredError}
16900
+ */
16901
+ getSegmentDetailsV1: (segmentUuid_1, ...args_1) => __awaiter(this, [segmentUuid_1, ...args_1], void 0, function* (segmentUuid, options = {}) {
16902
+ // verify required parameter 'segmentUuid' is not null or undefined
16903
+ assertParamExists('getSegmentDetailsV1', 'segmentUuid', segmentUuid);
16904
+ const localVarPath = `/api/reach/v1/segmentation/segments/{segmentUuid}`
16905
+ .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
15864
16906
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15865
16907
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15866
16908
  let baseOptions;
@@ -15882,13 +16924,97 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration) {
15882
16924
  };
15883
16925
  }),
15884
16926
  /**
15885
- * This endpoint returns all profiles available to the client, including their basic information.
15886
- * @summary List Profiles
16927
+ * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
16928
+ * @summary List profile segment contacts
16929
+ * @param {string} profileUuid Profile uuid parameter
16930
+ * @param {string} segmentUuid Segment uuid parameter
16931
+ * @param {number} [page] Page number
16932
+ * @param {number} [perPage] Number of items per page
15887
16933
  * @param {*} [options] Override http request option.
15888
16934
  * @throws {RequiredError}
15889
16935
  */
15890
- listProfilesV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
15891
- const localVarPath = `/api/reach/v1/profiles`;
16936
+ listProfileSegmentContactsV1: (profileUuid_1, segmentUuid_1, page_1, perPage_1, ...args_1) => __awaiter(this, [profileUuid_1, segmentUuid_1, page_1, perPage_1, ...args_1], void 0, function* (profileUuid, segmentUuid, page, perPage, options = {}) {
16937
+ // verify required parameter 'profileUuid' is not null or undefined
16938
+ assertParamExists('listProfileSegmentContactsV1', 'profileUuid', profileUuid);
16939
+ // verify required parameter 'segmentUuid' is not null or undefined
16940
+ assertParamExists('listProfileSegmentContactsV1', 'segmentUuid', segmentUuid);
16941
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts`
16942
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
16943
+ .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
16944
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16945
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16946
+ let baseOptions;
16947
+ if (configuration) {
16948
+ baseOptions = configuration.baseOptions;
16949
+ }
16950
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16951
+ const localVarHeaderParameter = {};
16952
+ const localVarQueryParameter = {};
16953
+ // authentication apiToken required
16954
+ // http bearer authentication required
16955
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
16956
+ if (page !== undefined) {
16957
+ localVarQueryParameter['page'] = page;
16958
+ }
16959
+ if (perPage !== undefined) {
16960
+ localVarQueryParameter['per_page'] = perPage;
16961
+ }
16962
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16963
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16964
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16965
+ return {
16966
+ url: toPathString(localVarUrlObj),
16967
+ options: localVarRequestOptions,
16968
+ };
16969
+ }),
16970
+ /**
16971
+ * 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.
16972
+ * @summary List segment contacts
16973
+ * @param {string} segmentUuid Segment uuid parameter
16974
+ * @param {number} [page] Page number
16975
+ * @param {number} [perPage] Number of items per page
16976
+ * @param {*} [options] Override http request option.
16977
+ * @throws {RequiredError}
16978
+ */
16979
+ listSegmentContactsV1: (segmentUuid_1, page_1, perPage_1, ...args_1) => __awaiter(this, [segmentUuid_1, page_1, perPage_1, ...args_1], void 0, function* (segmentUuid, page, perPage, options = {}) {
16980
+ // verify required parameter 'segmentUuid' is not null or undefined
16981
+ assertParamExists('listSegmentContactsV1', 'segmentUuid', segmentUuid);
16982
+ const localVarPath = `/api/reach/v1/segmentation/segments/{segmentUuid}/contacts`
16983
+ .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
16984
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16985
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16986
+ let baseOptions;
16987
+ if (configuration) {
16988
+ baseOptions = configuration.baseOptions;
16989
+ }
16990
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16991
+ const localVarHeaderParameter = {};
16992
+ const localVarQueryParameter = {};
16993
+ // authentication apiToken required
16994
+ // http bearer authentication required
16995
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
16996
+ if (page !== undefined) {
16997
+ localVarQueryParameter['page'] = page;
16998
+ }
16999
+ if (perPage !== undefined) {
17000
+ localVarQueryParameter['per_page'] = perPage;
17001
+ }
17002
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17003
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17004
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17005
+ return {
17006
+ url: toPathString(localVarUrlObj),
17007
+ options: localVarRequestOptions,
17008
+ };
17009
+ }),
17010
+ /**
17011
+ * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
17012
+ * @summary List segments
17013
+ * @param {*} [options] Override http request option.
17014
+ * @throws {RequiredError}
17015
+ */
17016
+ listSegmentsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
17017
+ const localVarPath = `/api/reach/v1/segmentation/segments`;
15892
17018
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15893
17019
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15894
17020
  let baseOptions;
@@ -15912,151 +17038,395 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration) {
15912
17038
  };
15913
17039
  };
15914
17040
  /**
15915
- * ReachProfilesApi - functional programming interface
17041
+ * ReachSegmentsApi - functional programming interface
15916
17042
  * @export
15917
17043
  */
15918
- export const ReachProfilesApiFp = function (configuration) {
15919
- const localVarAxiosParamCreator = ReachProfilesApiAxiosParamCreator(configuration);
17044
+ export const ReachSegmentsApiFp = function (configuration) {
17045
+ const localVarAxiosParamCreator = ReachSegmentsApiAxiosParamCreator(configuration);
15920
17046
  return {
15921
17047
  /**
15922
- * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
15923
- * @summary Get profile domain DNS status
17048
+ * 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.
17049
+ * @summary Create a new contact segment
17050
+ * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
17051
+ * @param {*} [options] Override http request option.
17052
+ * @throws {RequiredError}
17053
+ */
17054
+ createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
17055
+ return __awaiter(this, void 0, void 0, function* () {
17056
+ var _a, _b;
17057
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options);
17058
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.createANewContactSegmentV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17059
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17060
+ });
17061
+ },
17062
+ /**
17063
+ * 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.
17064
+ * @summary Get segment details
17065
+ * @param {string} segmentUuid Segment uuid parameter
17066
+ * @param {*} [options] Override http request option.
17067
+ * @throws {RequiredError}
17068
+ */
17069
+ getSegmentDetailsV1(segmentUuid, options) {
17070
+ return __awaiter(this, void 0, void 0, function* () {
17071
+ var _a, _b;
17072
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSegmentDetailsV1(segmentUuid, options);
17073
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.getSegmentDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17074
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17075
+ });
17076
+ },
17077
+ /**
17078
+ * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
17079
+ * @summary List profile segment contacts
15924
17080
  * @param {string} profileUuid Profile uuid parameter
17081
+ * @param {string} segmentUuid Segment uuid parameter
17082
+ * @param {number} [page] Page number
17083
+ * @param {number} [perPage] Number of items per page
15925
17084
  * @param {*} [options] Override http request option.
15926
17085
  * @throws {RequiredError}
15927
17086
  */
15928
- getProfileDomainDNSStatusV1(profileUuid, options) {
17087
+ listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
15929
17088
  return __awaiter(this, void 0, void 0, function* () {
15930
17089
  var _a, _b;
15931
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getProfileDomainDNSStatusV1(profileUuid, options);
15932
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachProfilesApi.getProfileDomainDNSStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17090
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options);
17091
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.listProfileSegmentContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15933
17092
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15934
17093
  });
15935
17094
  },
15936
17095
  /**
15937
- * This endpoint returns all profiles available to the client, including their basic information.
15938
- * @summary List Profiles
17096
+ * 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.
17097
+ * @summary List segment contacts
17098
+ * @param {string} segmentUuid Segment uuid parameter
17099
+ * @param {number} [page] Page number
17100
+ * @param {number} [perPage] Number of items per page
15939
17101
  * @param {*} [options] Override http request option.
15940
17102
  * @throws {RequiredError}
15941
17103
  */
15942
- listProfilesV1(options) {
17104
+ listSegmentContactsV1(segmentUuid, page, perPage, options) {
15943
17105
  return __awaiter(this, void 0, void 0, function* () {
15944
17106
  var _a, _b;
15945
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfilesV1(options);
15946
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachProfilesApi.listProfilesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17107
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listSegmentContactsV1(segmentUuid, page, perPage, options);
17108
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.listSegmentContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17109
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17110
+ });
17111
+ },
17112
+ /**
17113
+ * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
17114
+ * @summary List segments
17115
+ * @param {*} [options] Override http request option.
17116
+ * @throws {RequiredError}
17117
+ */
17118
+ listSegmentsV1(options) {
17119
+ return __awaiter(this, void 0, void 0, function* () {
17120
+ var _a, _b;
17121
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listSegmentsV1(options);
17122
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.listSegmentsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15947
17123
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15948
17124
  });
15949
17125
  },
15950
17126
  };
15951
17127
  };
15952
17128
  /**
15953
- * ReachProfilesApi - factory interface
17129
+ * ReachSegmentsApi - factory interface
15954
17130
  * @export
15955
17131
  */
15956
- export const ReachProfilesApiFactory = function (configuration, basePath, axios) {
15957
- const localVarFp = ReachProfilesApiFp(configuration);
17132
+ export const ReachSegmentsApiFactory = function (configuration, basePath, axios) {
17133
+ const localVarFp = ReachSegmentsApiFp(configuration);
15958
17134
  return {
15959
17135
  /**
15960
- * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
15961
- * @summary Get profile domain DNS status
17136
+ * 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.
17137
+ * @summary Create a new contact segment
17138
+ * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
17139
+ * @param {*} [options] Override http request option.
17140
+ * @throws {RequiredError}
17141
+ */
17142
+ createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
17143
+ return localVarFp.createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(axios, basePath));
17144
+ },
17145
+ /**
17146
+ * 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.
17147
+ * @summary Get segment details
17148
+ * @param {string} segmentUuid Segment uuid parameter
17149
+ * @param {*} [options] Override http request option.
17150
+ * @throws {RequiredError}
17151
+ */
17152
+ getSegmentDetailsV1(segmentUuid, options) {
17153
+ return localVarFp.getSegmentDetailsV1(segmentUuid, options).then((request) => request(axios, basePath));
17154
+ },
17155
+ /**
17156
+ * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
17157
+ * @summary List profile segment contacts
15962
17158
  * @param {string} profileUuid Profile uuid parameter
17159
+ * @param {string} segmentUuid Segment uuid parameter
17160
+ * @param {number} [page] Page number
17161
+ * @param {number} [perPage] Number of items per page
15963
17162
  * @param {*} [options] Override http request option.
15964
17163
  * @throws {RequiredError}
15965
17164
  */
15966
- getProfileDomainDNSStatusV1(profileUuid, options) {
15967
- return localVarFp.getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(axios, basePath));
17165
+ listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
17166
+ return localVarFp.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
15968
17167
  },
15969
17168
  /**
15970
- * This endpoint returns all profiles available to the client, including their basic information.
15971
- * @summary List Profiles
17169
+ * 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.
17170
+ * @summary List segment contacts
17171
+ * @param {string} segmentUuid Segment uuid parameter
17172
+ * @param {number} [page] Page number
17173
+ * @param {number} [perPage] Number of items per page
15972
17174
  * @param {*} [options] Override http request option.
15973
17175
  * @throws {RequiredError}
15974
17176
  */
15975
- listProfilesV1(options) {
15976
- return localVarFp.listProfilesV1(options).then((request) => request(axios, basePath));
17177
+ listSegmentContactsV1(segmentUuid, page, perPage, options) {
17178
+ return localVarFp.listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
17179
+ },
17180
+ /**
17181
+ * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
17182
+ * @summary List segments
17183
+ * @param {*} [options] Override http request option.
17184
+ * @throws {RequiredError}
17185
+ */
17186
+ listSegmentsV1(options) {
17187
+ return localVarFp.listSegmentsV1(options).then((request) => request(axios, basePath));
15977
17188
  },
15978
17189
  };
15979
17190
  };
15980
17191
  /**
15981
- * ReachProfilesApi - object-oriented interface
17192
+ * ReachSegmentsApi - object-oriented interface
15982
17193
  * @export
15983
- * @class ReachProfilesApi
17194
+ * @class ReachSegmentsApi
15984
17195
  * @extends {BaseAPI}
15985
17196
  */
15986
- export class ReachProfilesApi extends BaseAPI {
17197
+ export class ReachSegmentsApi extends BaseAPI {
15987
17198
  /**
15988
- * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
15989
- * @summary Get profile domain DNS status
17199
+ * 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.
17200
+ * @summary Create a new contact segment
17201
+ * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
17202
+ * @param {*} [options] Override http request option.
17203
+ * @throws {RequiredError}
17204
+ * @memberof ReachSegmentsApi
17205
+ */
17206
+ createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
17207
+ return ReachSegmentsApiFp(this.configuration).createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(this.axios, this.basePath));
17208
+ }
17209
+ /**
17210
+ * 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.
17211
+ * @summary Get segment details
17212
+ * @param {string} segmentUuid Segment uuid parameter
17213
+ * @param {*} [options] Override http request option.
17214
+ * @throws {RequiredError}
17215
+ * @memberof ReachSegmentsApi
17216
+ */
17217
+ getSegmentDetailsV1(segmentUuid, options) {
17218
+ return ReachSegmentsApiFp(this.configuration).getSegmentDetailsV1(segmentUuid, options).then((request) => request(this.axios, this.basePath));
17219
+ }
17220
+ /**
17221
+ * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
17222
+ * @summary List profile segment contacts
15990
17223
  * @param {string} profileUuid Profile uuid parameter
17224
+ * @param {string} segmentUuid Segment uuid parameter
17225
+ * @param {number} [page] Page number
17226
+ * @param {number} [perPage] Number of items per page
15991
17227
  * @param {*} [options] Override http request option.
15992
17228
  * @throws {RequiredError}
15993
- * @memberof ReachProfilesApi
17229
+ * @memberof ReachSegmentsApi
15994
17230
  */
15995
- getProfileDomainDNSStatusV1(profileUuid, options) {
15996
- return ReachProfilesApiFp(this.configuration).getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
17231
+ listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
17232
+ return ReachSegmentsApiFp(this.configuration).listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
15997
17233
  }
15998
17234
  /**
15999
- * This endpoint returns all profiles available to the client, including their basic information.
16000
- * @summary List Profiles
17235
+ * 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.
17236
+ * @summary List segment contacts
17237
+ * @param {string} segmentUuid Segment uuid parameter
17238
+ * @param {number} [page] Page number
17239
+ * @param {number} [perPage] Number of items per page
16001
17240
  * @param {*} [options] Override http request option.
16002
17241
  * @throws {RequiredError}
16003
- * @memberof ReachProfilesApi
17242
+ * @memberof ReachSegmentsApi
16004
17243
  */
16005
- listProfilesV1(options) {
16006
- return ReachProfilesApiFp(this.configuration).listProfilesV1(options).then((request) => request(this.axios, this.basePath));
17244
+ listSegmentContactsV1(segmentUuid, page, perPage, options) {
17245
+ return ReachSegmentsApiFp(this.configuration).listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
17246
+ }
17247
+ /**
17248
+ * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
17249
+ * @summary List segments
17250
+ * @param {*} [options] Override http request option.
17251
+ * @throws {RequiredError}
17252
+ * @memberof ReachSegmentsApi
17253
+ */
17254
+ listSegmentsV1(options) {
17255
+ return ReachSegmentsApiFp(this.configuration).listSegmentsV1(options).then((request) => request(this.axios, this.basePath));
16007
17256
  }
16008
17257
  }
16009
17258
  /**
16010
- * ReachSegmentsApi - axios parameter creator
17259
+ * ReachTagsApi - axios parameter creator
16011
17260
  * @export
16012
17261
  */
16013
- export const ReachSegmentsApiAxiosParamCreator = function (configuration) {
17262
+ export const ReachTagsApiAxiosParamCreator = function (configuration) {
16014
17263
  return {
16015
17264
  /**
16016
- * 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.
16017
- * @summary Create a new contact segment
16018
- * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
17265
+ * 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.
17266
+ * @summary Assign a contact to a tag
17267
+ * @param {string} profileUuid Profile uuid parameter
17268
+ * @param {string} tagUuid Tag uuid parameter
17269
+ * @param {string} contactUuid Contact uuid parameter
17270
+ * @param {*} [options] Override http request option.
17271
+ * @throws {RequiredError}
17272
+ */
17273
+ assignAContactToATagV1: (profileUuid_1, tagUuid_1, contactUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, contactUuid_1, ...args_1], void 0, function* (profileUuid, tagUuid, contactUuid, options = {}) {
17274
+ // verify required parameter 'profileUuid' is not null or undefined
17275
+ assertParamExists('assignAContactToATagV1', 'profileUuid', profileUuid);
17276
+ // verify required parameter 'tagUuid' is not null or undefined
17277
+ assertParamExists('assignAContactToATagV1', 'tagUuid', tagUuid);
17278
+ // verify required parameter 'contactUuid' is not null or undefined
17279
+ assertParamExists('assignAContactToATagV1', 'contactUuid', contactUuid);
17280
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid}`
17281
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
17282
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)))
17283
+ .replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
17284
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17285
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17286
+ let baseOptions;
17287
+ if (configuration) {
17288
+ baseOptions = configuration.baseOptions;
17289
+ }
17290
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
17291
+ const localVarHeaderParameter = {};
17292
+ const localVarQueryParameter = {};
17293
+ // authentication apiToken required
17294
+ // http bearer authentication required
17295
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
17296
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17297
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17298
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17299
+ return {
17300
+ url: toPathString(localVarUrlObj),
17301
+ options: localVarRequestOptions,
17302
+ };
17303
+ }),
17304
+ /**
17305
+ * 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.
17306
+ * @summary Assign contacts to a tag
17307
+ * @param {string} profileUuid Profile uuid parameter
17308
+ * @param {string} tagUuid Tag uuid parameter
17309
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
17310
+ * @param {*} [options] Override http request option.
17311
+ * @throws {RequiredError}
17312
+ */
17313
+ assignContactsToATagV1: (profileUuid_1, tagUuid_1, reachV1ContactsTagsManageContactsRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, reachV1ContactsTagsManageContactsRequest_1, ...args_1], void 0, function* (profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options = {}) {
17314
+ // verify required parameter 'profileUuid' is not null or undefined
17315
+ assertParamExists('assignContactsToATagV1', 'profileUuid', profileUuid);
17316
+ // verify required parameter 'tagUuid' is not null or undefined
17317
+ assertParamExists('assignContactsToATagV1', 'tagUuid', tagUuid);
17318
+ // verify required parameter 'reachV1ContactsTagsManageContactsRequest' is not null or undefined
17319
+ assertParamExists('assignContactsToATagV1', 'reachV1ContactsTagsManageContactsRequest', reachV1ContactsTagsManageContactsRequest);
17320
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts`
17321
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
17322
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
17323
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17324
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17325
+ let baseOptions;
17326
+ if (configuration) {
17327
+ baseOptions = configuration.baseOptions;
17328
+ }
17329
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
17330
+ const localVarHeaderParameter = {};
17331
+ const localVarQueryParameter = {};
17332
+ // authentication apiToken required
17333
+ // http bearer authentication required
17334
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
17335
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17336
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17337
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17338
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17339
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsTagsManageContactsRequest, localVarRequestOptions, configuration);
17340
+ return {
17341
+ url: toPathString(localVarUrlObj),
17342
+ options: localVarRequestOptions,
17343
+ };
17344
+ }),
17345
+ /**
17346
+ * 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.
17347
+ * @summary Create or find tags
17348
+ * @param {string} profileUuid Profile uuid parameter
17349
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
17350
+ * @param {*} [options] Override http request option.
17351
+ * @throws {RequiredError}
17352
+ */
17353
+ createOrFindTagsV1: (profileUuid_1, reachV1ContactsTagsStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsTagsStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsTagsStoreRequest, options = {}) {
17354
+ // verify required parameter 'profileUuid' is not null or undefined
17355
+ assertParamExists('createOrFindTagsV1', 'profileUuid', profileUuid);
17356
+ // verify required parameter 'reachV1ContactsTagsStoreRequest' is not null or undefined
17357
+ assertParamExists('createOrFindTagsV1', 'reachV1ContactsTagsStoreRequest', reachV1ContactsTagsStoreRequest);
17358
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags`
17359
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
17360
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17361
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17362
+ let baseOptions;
17363
+ if (configuration) {
17364
+ baseOptions = configuration.baseOptions;
17365
+ }
17366
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
17367
+ const localVarHeaderParameter = {};
17368
+ const localVarQueryParameter = {};
17369
+ // authentication apiToken required
17370
+ // http bearer authentication required
17371
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
17372
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17373
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17374
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17375
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17376
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsTagsStoreRequest, localVarRequestOptions, configuration);
17377
+ return {
17378
+ url: toPathString(localVarUrlObj),
17379
+ options: localVarRequestOptions,
17380
+ };
17381
+ }),
17382
+ /**
17383
+ * 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.
17384
+ * @summary Delete a tag
17385
+ * @param {string} profileUuid Profile uuid parameter
17386
+ * @param {string} tagUuid Tag uuid parameter
16019
17387
  * @param {*} [options] Override http request option.
16020
17388
  * @throws {RequiredError}
16021
17389
  */
16022
- createANewContactSegmentV1: (reachV1ContactsSegmentsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsSegmentsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsSegmentsStoreRequest, options = {}) {
16023
- // verify required parameter 'reachV1ContactsSegmentsStoreRequest' is not null or undefined
16024
- assertParamExists('createANewContactSegmentV1', 'reachV1ContactsSegmentsStoreRequest', reachV1ContactsSegmentsStoreRequest);
16025
- const localVarPath = `/api/reach/v1/segmentation/segments`;
17390
+ deleteATagV1: (profileUuid_1, tagUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, ...args_1], void 0, function* (profileUuid, tagUuid, options = {}) {
17391
+ // verify required parameter 'profileUuid' is not null or undefined
17392
+ assertParamExists('deleteATagV1', 'profileUuid', profileUuid);
17393
+ // verify required parameter 'tagUuid' is not null or undefined
17394
+ assertParamExists('deleteATagV1', 'tagUuid', tagUuid);
17395
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}`
17396
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
17397
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
16026
17398
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
16027
17399
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16028
17400
  let baseOptions;
16029
17401
  if (configuration) {
16030
17402
  baseOptions = configuration.baseOptions;
16031
17403
  }
16032
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
17404
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
16033
17405
  const localVarHeaderParameter = {};
16034
17406
  const localVarQueryParameter = {};
16035
17407
  // authentication apiToken required
16036
17408
  // http bearer authentication required
16037
17409
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
16038
- localVarHeaderParameter['Content-Type'] = 'application/json';
16039
17410
  setSearchParams(localVarUrlObj, localVarQueryParameter);
16040
17411
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16041
17412
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16042
- localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsSegmentsStoreRequest, localVarRequestOptions, configuration);
16043
17413
  return {
16044
17414
  url: toPathString(localVarUrlObj),
16045
17415
  options: localVarRequestOptions,
16046
17416
  };
16047
17417
  }),
16048
17418
  /**
16049
- * 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.
16050
- * @summary Get segment details
16051
- * @param {string} segmentUuid Segment uuid parameter
17419
+ * 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.
17420
+ * @summary List profile tags
17421
+ * @param {string} profileUuid Profile uuid parameter
16052
17422
  * @param {*} [options] Override http request option.
16053
17423
  * @throws {RequiredError}
16054
17424
  */
16055
- getSegmentDetailsV1: (segmentUuid_1, ...args_1) => __awaiter(this, [segmentUuid_1, ...args_1], void 0, function* (segmentUuid, options = {}) {
16056
- // verify required parameter 'segmentUuid' is not null or undefined
16057
- assertParamExists('getSegmentDetailsV1', 'segmentUuid', segmentUuid);
16058
- const localVarPath = `/api/reach/v1/segmentation/segments/{segmentUuid}`
16059
- .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
17425
+ listProfileTagsV1: (profileUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, ...args_1], void 0, function* (profileUuid, options = {}) {
17426
+ // verify required parameter 'profileUuid' is not null or undefined
17427
+ assertParamExists('listProfileTagsV1', 'profileUuid', profileUuid);
17428
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags`
17429
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
16060
17430
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
16061
17431
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16062
17432
  let baseOptions;
@@ -16078,41 +17448,37 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration) {
16078
17448
  };
16079
17449
  }),
16080
17450
  /**
16081
- * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
16082
- * @summary List profile segment contacts
17451
+ * 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.
17452
+ * @summary Remove a contact from a tag
16083
17453
  * @param {string} profileUuid Profile uuid parameter
16084
- * @param {string} segmentUuid Segment uuid parameter
16085
- * @param {number} [page] Page number
16086
- * @param {number} [perPage] Number of items per page
17454
+ * @param {string} tagUuid Tag uuid parameter
17455
+ * @param {string} contactUuid Contact uuid parameter
16087
17456
  * @param {*} [options] Override http request option.
16088
17457
  * @throws {RequiredError}
16089
17458
  */
16090
- listProfileSegmentContactsV1: (profileUuid_1, segmentUuid_1, page_1, perPage_1, ...args_1) => __awaiter(this, [profileUuid_1, segmentUuid_1, page_1, perPage_1, ...args_1], void 0, function* (profileUuid, segmentUuid, page, perPage, options = {}) {
17459
+ removeAContactFromATagV1: (profileUuid_1, tagUuid_1, contactUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, contactUuid_1, ...args_1], void 0, function* (profileUuid, tagUuid, contactUuid, options = {}) {
16091
17460
  // verify required parameter 'profileUuid' is not null or undefined
16092
- assertParamExists('listProfileSegmentContactsV1', 'profileUuid', profileUuid);
16093
- // verify required parameter 'segmentUuid' is not null or undefined
16094
- assertParamExists('listProfileSegmentContactsV1', 'segmentUuid', segmentUuid);
16095
- const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts`
17461
+ assertParamExists('removeAContactFromATagV1', 'profileUuid', profileUuid);
17462
+ // verify required parameter 'tagUuid' is not null or undefined
17463
+ assertParamExists('removeAContactFromATagV1', 'tagUuid', tagUuid);
17464
+ // verify required parameter 'contactUuid' is not null or undefined
17465
+ assertParamExists('removeAContactFromATagV1', 'contactUuid', contactUuid);
17466
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid}`
16096
17467
  .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
16097
- .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
17468
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)))
17469
+ .replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
16098
17470
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
16099
17471
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16100
17472
  let baseOptions;
16101
17473
  if (configuration) {
16102
17474
  baseOptions = configuration.baseOptions;
16103
17475
  }
16104
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
17476
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
16105
17477
  const localVarHeaderParameter = {};
16106
17478
  const localVarQueryParameter = {};
16107
17479
  // authentication apiToken required
16108
17480
  // http bearer authentication required
16109
17481
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
16110
- if (page !== undefined) {
16111
- localVarQueryParameter['page'] = page;
16112
- }
16113
- if (perPage !== undefined) {
16114
- localVarQueryParameter['per_page'] = perPage;
16115
- }
16116
17482
  setSearchParams(localVarUrlObj, localVarQueryParameter);
16117
17483
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16118
17484
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -16122,68 +17488,82 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration) {
16122
17488
  };
16123
17489
  }),
16124
17490
  /**
16125
- * 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.
16126
- * @summary List segment contacts
16127
- * @param {string} segmentUuid Segment uuid parameter
16128
- * @param {number} [page] Page number
16129
- * @param {number} [perPage] Number of items per page
17491
+ * 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.
17492
+ * @summary Remove contacts from a tag
17493
+ * @param {string} profileUuid Profile uuid parameter
17494
+ * @param {string} tagUuid Tag uuid parameter
17495
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
16130
17496
  * @param {*} [options] Override http request option.
16131
17497
  * @throws {RequiredError}
16132
17498
  */
16133
- listSegmentContactsV1: (segmentUuid_1, page_1, perPage_1, ...args_1) => __awaiter(this, [segmentUuid_1, page_1, perPage_1, ...args_1], void 0, function* (segmentUuid, page, perPage, options = {}) {
16134
- // verify required parameter 'segmentUuid' is not null or undefined
16135
- assertParamExists('listSegmentContactsV1', 'segmentUuid', segmentUuid);
16136
- const localVarPath = `/api/reach/v1/segmentation/segments/{segmentUuid}/contacts`
16137
- .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
17499
+ removeContactsFromATagV1: (profileUuid_1, tagUuid_1, reachV1ContactsTagsManageContactsRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, reachV1ContactsTagsManageContactsRequest_1, ...args_1], void 0, function* (profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options = {}) {
17500
+ // verify required parameter 'profileUuid' is not null or undefined
17501
+ assertParamExists('removeContactsFromATagV1', 'profileUuid', profileUuid);
17502
+ // verify required parameter 'tagUuid' is not null or undefined
17503
+ assertParamExists('removeContactsFromATagV1', 'tagUuid', tagUuid);
17504
+ // verify required parameter 'reachV1ContactsTagsManageContactsRequest' is not null or undefined
17505
+ assertParamExists('removeContactsFromATagV1', 'reachV1ContactsTagsManageContactsRequest', reachV1ContactsTagsManageContactsRequest);
17506
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts`
17507
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
17508
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
16138
17509
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
16139
17510
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16140
17511
  let baseOptions;
16141
17512
  if (configuration) {
16142
17513
  baseOptions = configuration.baseOptions;
16143
17514
  }
16144
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
17515
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
16145
17516
  const localVarHeaderParameter = {};
16146
17517
  const localVarQueryParameter = {};
16147
17518
  // authentication apiToken required
16148
17519
  // http bearer authentication required
16149
17520
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
16150
- if (page !== undefined) {
16151
- localVarQueryParameter['page'] = page;
16152
- }
16153
- if (perPage !== undefined) {
16154
- localVarQueryParameter['per_page'] = perPage;
16155
- }
17521
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16156
17522
  setSearchParams(localVarUrlObj, localVarQueryParameter);
16157
17523
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16158
17524
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17525
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsTagsManageContactsRequest, localVarRequestOptions, configuration);
16159
17526
  return {
16160
17527
  url: toPathString(localVarUrlObj),
16161
17528
  options: localVarRequestOptions,
16162
17529
  };
16163
17530
  }),
16164
17531
  /**
16165
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
16166
- * @summary List segments
17532
+ * 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.
17533
+ * @summary Rename a tag
17534
+ * @param {string} profileUuid Profile uuid parameter
17535
+ * @param {string} tagUuid Tag uuid parameter
17536
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
16167
17537
  * @param {*} [options] Override http request option.
16168
17538
  * @throws {RequiredError}
16169
17539
  */
16170
- listSegmentsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
16171
- const localVarPath = `/api/reach/v1/segmentation/segments`;
17540
+ renameATagV1: (profileUuid_1, tagUuid_1, reachV1ContactsTagsUpdateRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, tagUuid_1, reachV1ContactsTagsUpdateRequest_1, ...args_1], void 0, function* (profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options = {}) {
17541
+ // verify required parameter 'profileUuid' is not null or undefined
17542
+ assertParamExists('renameATagV1', 'profileUuid', profileUuid);
17543
+ // verify required parameter 'tagUuid' is not null or undefined
17544
+ assertParamExists('renameATagV1', 'tagUuid', tagUuid);
17545
+ // verify required parameter 'reachV1ContactsTagsUpdateRequest' is not null or undefined
17546
+ assertParamExists('renameATagV1', 'reachV1ContactsTagsUpdateRequest', reachV1ContactsTagsUpdateRequest);
17547
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}`
17548
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
17549
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
16172
17550
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
16173
17551
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16174
17552
  let baseOptions;
16175
17553
  if (configuration) {
16176
17554
  baseOptions = configuration.baseOptions;
16177
17555
  }
16178
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
17556
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
16179
17557
  const localVarHeaderParameter = {};
16180
17558
  const localVarQueryParameter = {};
16181
17559
  // authentication apiToken required
16182
17560
  // http bearer authentication required
16183
17561
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
17562
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16184
17563
  setSearchParams(localVarUrlObj, localVarQueryParameter);
16185
17564
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16186
17565
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17566
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsTagsUpdateRequest, localVarRequestOptions, configuration);
16187
17567
  return {
16188
17568
  url: toPathString(localVarUrlObj),
16189
17569
  options: localVarRequestOptions,
@@ -16192,221 +17572,353 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration) {
16192
17572
  };
16193
17573
  };
16194
17574
  /**
16195
- * ReachSegmentsApi - functional programming interface
17575
+ * ReachTagsApi - functional programming interface
16196
17576
  * @export
16197
17577
  */
16198
- export const ReachSegmentsApiFp = function (configuration) {
16199
- const localVarAxiosParamCreator = ReachSegmentsApiAxiosParamCreator(configuration);
17578
+ export const ReachTagsApiFp = function (configuration) {
17579
+ const localVarAxiosParamCreator = ReachTagsApiAxiosParamCreator(configuration);
16200
17580
  return {
16201
17581
  /**
16202
- * 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.
16203
- * @summary Create a new contact segment
16204
- * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
17582
+ * 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.
17583
+ * @summary Assign a contact to a tag
17584
+ * @param {string} profileUuid Profile uuid parameter
17585
+ * @param {string} tagUuid Tag uuid parameter
17586
+ * @param {string} contactUuid Contact uuid parameter
16205
17587
  * @param {*} [options] Override http request option.
16206
17588
  * @throws {RequiredError}
16207
17589
  */
16208
- createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
17590
+ assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options) {
16209
17591
  return __awaiter(this, void 0, void 0, function* () {
16210
17592
  var _a, _b;
16211
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options);
16212
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.createANewContactSegmentV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17593
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options);
17594
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachTagsApi.assignAContactToATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16213
17595
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16214
17596
  });
16215
17597
  },
16216
17598
  /**
16217
- * 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.
16218
- * @summary Get segment details
16219
- * @param {string} segmentUuid Segment uuid parameter
17599
+ * 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.
17600
+ * @summary Assign contacts to a tag
17601
+ * @param {string} profileUuid Profile uuid parameter
17602
+ * @param {string} tagUuid Tag uuid parameter
17603
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
16220
17604
  * @param {*} [options] Override http request option.
16221
17605
  * @throws {RequiredError}
16222
17606
  */
16223
- getSegmentDetailsV1(segmentUuid, options) {
17607
+ assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
16224
17608
  return __awaiter(this, void 0, void 0, function* () {
16225
17609
  var _a, _b;
16226
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSegmentDetailsV1(segmentUuid, options);
16227
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.getSegmentDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17610
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options);
17611
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachTagsApi.assignContactsToATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16228
17612
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16229
17613
  });
16230
17614
  },
16231
17615
  /**
16232
- * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
16233
- * @summary List profile segment contacts
17616
+ * 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.
17617
+ * @summary Create or find tags
16234
17618
  * @param {string} profileUuid Profile uuid parameter
16235
- * @param {string} segmentUuid Segment uuid parameter
16236
- * @param {number} [page] Page number
16237
- * @param {number} [perPage] Number of items per page
17619
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
16238
17620
  * @param {*} [options] Override http request option.
16239
17621
  * @throws {RequiredError}
16240
17622
  */
16241
- listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
17623
+ createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options) {
16242
17624
  return __awaiter(this, void 0, void 0, function* () {
16243
17625
  var _a, _b;
16244
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options);
16245
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.listProfileSegmentContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17626
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options);
17627
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachTagsApi.createOrFindTagsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16246
17628
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16247
17629
  });
16248
17630
  },
16249
17631
  /**
16250
- * 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.
16251
- * @summary List segment contacts
16252
- * @param {string} segmentUuid Segment uuid parameter
16253
- * @param {number} [page] Page number
16254
- * @param {number} [perPage] Number of items per page
17632
+ * 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.
17633
+ * @summary Delete a tag
17634
+ * @param {string} profileUuid Profile uuid parameter
17635
+ * @param {string} tagUuid Tag uuid parameter
16255
17636
  * @param {*} [options] Override http request option.
16256
17637
  * @throws {RequiredError}
16257
17638
  */
16258
- listSegmentContactsV1(segmentUuid, page, perPage, options) {
17639
+ deleteATagV1(profileUuid, tagUuid, options) {
16259
17640
  return __awaiter(this, void 0, void 0, function* () {
16260
17641
  var _a, _b;
16261
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listSegmentContactsV1(segmentUuid, page, perPage, options);
16262
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.listSegmentContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17642
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteATagV1(profileUuid, tagUuid, options);
17643
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachTagsApi.deleteATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16263
17644
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16264
17645
  });
16265
17646
  },
16266
17647
  /**
16267
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
16268
- * @summary List segments
17648
+ * 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.
17649
+ * @summary List profile tags
17650
+ * @param {string} profileUuid Profile uuid parameter
16269
17651
  * @param {*} [options] Override http request option.
16270
17652
  * @throws {RequiredError}
16271
17653
  */
16272
- listSegmentsV1(options) {
17654
+ listProfileTagsV1(profileUuid, options) {
16273
17655
  return __awaiter(this, void 0, void 0, function* () {
16274
17656
  var _a, _b;
16275
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listSegmentsV1(options);
16276
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.listSegmentsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17657
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfileTagsV1(profileUuid, options);
17658
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachTagsApi.listProfileTagsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17659
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17660
+ });
17661
+ },
17662
+ /**
17663
+ * 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.
17664
+ * @summary Remove a contact from a tag
17665
+ * @param {string} profileUuid Profile uuid parameter
17666
+ * @param {string} tagUuid Tag uuid parameter
17667
+ * @param {string} contactUuid Contact uuid parameter
17668
+ * @param {*} [options] Override http request option.
17669
+ * @throws {RequiredError}
17670
+ */
17671
+ removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options) {
17672
+ return __awaiter(this, void 0, void 0, function* () {
17673
+ var _a, _b;
17674
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options);
17675
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachTagsApi.removeAContactFromATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17676
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17677
+ });
17678
+ },
17679
+ /**
17680
+ * 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.
17681
+ * @summary Remove contacts from a tag
17682
+ * @param {string} profileUuid Profile uuid parameter
17683
+ * @param {string} tagUuid Tag uuid parameter
17684
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
17685
+ * @param {*} [options] Override http request option.
17686
+ * @throws {RequiredError}
17687
+ */
17688
+ removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
17689
+ return __awaiter(this, void 0, void 0, function* () {
17690
+ var _a, _b;
17691
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options);
17692
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachTagsApi.removeContactsFromATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
17693
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17694
+ });
17695
+ },
17696
+ /**
17697
+ * 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.
17698
+ * @summary Rename a tag
17699
+ * @param {string} profileUuid Profile uuid parameter
17700
+ * @param {string} tagUuid Tag uuid parameter
17701
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
17702
+ * @param {*} [options] Override http request option.
17703
+ * @throws {RequiredError}
17704
+ */
17705
+ renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options) {
17706
+ return __awaiter(this, void 0, void 0, function* () {
17707
+ var _a, _b;
17708
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options);
17709
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachTagsApi.renameATagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
16277
17710
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16278
17711
  });
16279
17712
  },
16280
17713
  };
16281
17714
  };
16282
17715
  /**
16283
- * ReachSegmentsApi - factory interface
17716
+ * ReachTagsApi - factory interface
16284
17717
  * @export
16285
17718
  */
16286
- export const ReachSegmentsApiFactory = function (configuration, basePath, axios) {
16287
- const localVarFp = ReachSegmentsApiFp(configuration);
17719
+ export const ReachTagsApiFactory = function (configuration, basePath, axios) {
17720
+ const localVarFp = ReachTagsApiFp(configuration);
16288
17721
  return {
16289
17722
  /**
16290
- * 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.
16291
- * @summary Create a new contact segment
16292
- * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
17723
+ * 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.
17724
+ * @summary Assign a contact to a tag
17725
+ * @param {string} profileUuid Profile uuid parameter
17726
+ * @param {string} tagUuid Tag uuid parameter
17727
+ * @param {string} contactUuid Contact uuid parameter
16293
17728
  * @param {*} [options] Override http request option.
16294
17729
  * @throws {RequiredError}
16295
17730
  */
16296
- createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
16297
- return localVarFp.createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(axios, basePath));
17731
+ assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options) {
17732
+ return localVarFp.assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(axios, basePath));
16298
17733
  },
16299
17734
  /**
16300
- * 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.
16301
- * @summary Get segment details
16302
- * @param {string} segmentUuid Segment uuid parameter
17735
+ * 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.
17736
+ * @summary Assign contacts to a tag
17737
+ * @param {string} profileUuid Profile uuid parameter
17738
+ * @param {string} tagUuid Tag uuid parameter
17739
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
16303
17740
  * @param {*} [options] Override http request option.
16304
17741
  * @throws {RequiredError}
16305
17742
  */
16306
- getSegmentDetailsV1(segmentUuid, options) {
16307
- return localVarFp.getSegmentDetailsV1(segmentUuid, options).then((request) => request(axios, basePath));
17743
+ assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
17744
+ return localVarFp.assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(axios, basePath));
16308
17745
  },
16309
17746
  /**
16310
- * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
16311
- * @summary List profile segment contacts
17747
+ * 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.
17748
+ * @summary Create or find tags
16312
17749
  * @param {string} profileUuid Profile uuid parameter
16313
- * @param {string} segmentUuid Segment uuid parameter
16314
- * @param {number} [page] Page number
16315
- * @param {number} [perPage] Number of items per page
17750
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
16316
17751
  * @param {*} [options] Override http request option.
16317
17752
  * @throws {RequiredError}
16318
17753
  */
16319
- listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
16320
- return localVarFp.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
17754
+ createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options) {
17755
+ return localVarFp.createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options).then((request) => request(axios, basePath));
16321
17756
  },
16322
17757
  /**
16323
- * 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.
16324
- * @summary List segment contacts
16325
- * @param {string} segmentUuid Segment uuid parameter
16326
- * @param {number} [page] Page number
16327
- * @param {number} [perPage] Number of items per page
17758
+ * 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.
17759
+ * @summary Delete a tag
17760
+ * @param {string} profileUuid Profile uuid parameter
17761
+ * @param {string} tagUuid Tag uuid parameter
16328
17762
  * @param {*} [options] Override http request option.
16329
17763
  * @throws {RequiredError}
16330
17764
  */
16331
- listSegmentContactsV1(segmentUuid, page, perPage, options) {
16332
- return localVarFp.listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
17765
+ deleteATagV1(profileUuid, tagUuid, options) {
17766
+ return localVarFp.deleteATagV1(profileUuid, tagUuid, options).then((request) => request(axios, basePath));
16333
17767
  },
16334
17768
  /**
16335
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
16336
- * @summary List segments
17769
+ * 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.
17770
+ * @summary List profile tags
17771
+ * @param {string} profileUuid Profile uuid parameter
16337
17772
  * @param {*} [options] Override http request option.
16338
17773
  * @throws {RequiredError}
16339
17774
  */
16340
- listSegmentsV1(options) {
16341
- return localVarFp.listSegmentsV1(options).then((request) => request(axios, basePath));
17775
+ listProfileTagsV1(profileUuid, options) {
17776
+ return localVarFp.listProfileTagsV1(profileUuid, options).then((request) => request(axios, basePath));
17777
+ },
17778
+ /**
17779
+ * 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.
17780
+ * @summary Remove a contact from a tag
17781
+ * @param {string} profileUuid Profile uuid parameter
17782
+ * @param {string} tagUuid Tag uuid parameter
17783
+ * @param {string} contactUuid Contact uuid parameter
17784
+ * @param {*} [options] Override http request option.
17785
+ * @throws {RequiredError}
17786
+ */
17787
+ removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options) {
17788
+ return localVarFp.removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(axios, basePath));
17789
+ },
17790
+ /**
17791
+ * 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.
17792
+ * @summary Remove contacts from a tag
17793
+ * @param {string} profileUuid Profile uuid parameter
17794
+ * @param {string} tagUuid Tag uuid parameter
17795
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
17796
+ * @param {*} [options] Override http request option.
17797
+ * @throws {RequiredError}
17798
+ */
17799
+ removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
17800
+ return localVarFp.removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(axios, basePath));
17801
+ },
17802
+ /**
17803
+ * 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.
17804
+ * @summary Rename a tag
17805
+ * @param {string} profileUuid Profile uuid parameter
17806
+ * @param {string} tagUuid Tag uuid parameter
17807
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
17808
+ * @param {*} [options] Override http request option.
17809
+ * @throws {RequiredError}
17810
+ */
17811
+ renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options) {
17812
+ return localVarFp.renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options).then((request) => request(axios, basePath));
16342
17813
  },
16343
17814
  };
16344
17815
  };
16345
17816
  /**
16346
- * ReachSegmentsApi - object-oriented interface
17817
+ * ReachTagsApi - object-oriented interface
16347
17818
  * @export
16348
- * @class ReachSegmentsApi
17819
+ * @class ReachTagsApi
16349
17820
  * @extends {BaseAPI}
16350
17821
  */
16351
- export class ReachSegmentsApi extends BaseAPI {
17822
+ export class ReachTagsApi extends BaseAPI {
16352
17823
  /**
16353
- * 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.
16354
- * @summary Create a new contact segment
16355
- * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
17824
+ * 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.
17825
+ * @summary Assign a contact to a tag
17826
+ * @param {string} profileUuid Profile uuid parameter
17827
+ * @param {string} tagUuid Tag uuid parameter
17828
+ * @param {string} contactUuid Contact uuid parameter
16356
17829
  * @param {*} [options] Override http request option.
16357
17830
  * @throws {RequiredError}
16358
- * @memberof ReachSegmentsApi
17831
+ * @memberof ReachTagsApi
16359
17832
  */
16360
- createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
16361
- return ReachSegmentsApiFp(this.configuration).createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(this.axios, this.basePath));
17833
+ assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options) {
17834
+ return ReachTagsApiFp(this.configuration).assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
16362
17835
  }
16363
17836
  /**
16364
- * 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.
16365
- * @summary Get segment details
16366
- * @param {string} segmentUuid Segment uuid parameter
17837
+ * 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.
17838
+ * @summary Assign contacts to a tag
17839
+ * @param {string} profileUuid Profile uuid parameter
17840
+ * @param {string} tagUuid Tag uuid parameter
17841
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
16367
17842
  * @param {*} [options] Override http request option.
16368
17843
  * @throws {RequiredError}
16369
- * @memberof ReachSegmentsApi
17844
+ * @memberof ReachTagsApi
16370
17845
  */
16371
- getSegmentDetailsV1(segmentUuid, options) {
16372
- return ReachSegmentsApiFp(this.configuration).getSegmentDetailsV1(segmentUuid, options).then((request) => request(this.axios, this.basePath));
17846
+ assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
17847
+ return ReachTagsApiFp(this.configuration).assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(this.axios, this.basePath));
16373
17848
  }
16374
17849
  /**
16375
- * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
16376
- * @summary List profile segment contacts
17850
+ * 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.
17851
+ * @summary Create or find tags
16377
17852
  * @param {string} profileUuid Profile uuid parameter
16378
- * @param {string} segmentUuid Segment uuid parameter
16379
- * @param {number} [page] Page number
16380
- * @param {number} [perPage] Number of items per page
17853
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
16381
17854
  * @param {*} [options] Override http request option.
16382
17855
  * @throws {RequiredError}
16383
- * @memberof ReachSegmentsApi
17856
+ * @memberof ReachTagsApi
16384
17857
  */
16385
- listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
16386
- return ReachSegmentsApiFp(this.configuration).listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
17858
+ createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options) {
17859
+ return ReachTagsApiFp(this.configuration).createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options).then((request) => request(this.axios, this.basePath));
16387
17860
  }
16388
17861
  /**
16389
- * 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.
16390
- * @summary List segment contacts
16391
- * @param {string} segmentUuid Segment uuid parameter
16392
- * @param {number} [page] Page number
16393
- * @param {number} [perPage] Number of items per page
17862
+ * 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.
17863
+ * @summary Delete a tag
17864
+ * @param {string} profileUuid Profile uuid parameter
17865
+ * @param {string} tagUuid Tag uuid parameter
16394
17866
  * @param {*} [options] Override http request option.
16395
17867
  * @throws {RequiredError}
16396
- * @memberof ReachSegmentsApi
17868
+ * @memberof ReachTagsApi
16397
17869
  */
16398
- listSegmentContactsV1(segmentUuid, page, perPage, options) {
16399
- return ReachSegmentsApiFp(this.configuration).listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
17870
+ deleteATagV1(profileUuid, tagUuid, options) {
17871
+ return ReachTagsApiFp(this.configuration).deleteATagV1(profileUuid, tagUuid, options).then((request) => request(this.axios, this.basePath));
16400
17872
  }
16401
17873
  /**
16402
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
16403
- * @summary List segments
17874
+ * 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.
17875
+ * @summary List profile tags
17876
+ * @param {string} profileUuid Profile uuid parameter
16404
17877
  * @param {*} [options] Override http request option.
16405
17878
  * @throws {RequiredError}
16406
- * @memberof ReachSegmentsApi
17879
+ * @memberof ReachTagsApi
16407
17880
  */
16408
- listSegmentsV1(options) {
16409
- return ReachSegmentsApiFp(this.configuration).listSegmentsV1(options).then((request) => request(this.axios, this.basePath));
17881
+ listProfileTagsV1(profileUuid, options) {
17882
+ return ReachTagsApiFp(this.configuration).listProfileTagsV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
17883
+ }
17884
+ /**
17885
+ * 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.
17886
+ * @summary Remove a contact from a tag
17887
+ * @param {string} profileUuid Profile uuid parameter
17888
+ * @param {string} tagUuid Tag uuid parameter
17889
+ * @param {string} contactUuid Contact uuid parameter
17890
+ * @param {*} [options] Override http request option.
17891
+ * @throws {RequiredError}
17892
+ * @memberof ReachTagsApi
17893
+ */
17894
+ removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options) {
17895
+ return ReachTagsApiFp(this.configuration).removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
17896
+ }
17897
+ /**
17898
+ * 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.
17899
+ * @summary Remove contacts from a tag
17900
+ * @param {string} profileUuid Profile uuid parameter
17901
+ * @param {string} tagUuid Tag uuid parameter
17902
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
17903
+ * @param {*} [options] Override http request option.
17904
+ * @throws {RequiredError}
17905
+ * @memberof ReachTagsApi
17906
+ */
17907
+ removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options) {
17908
+ return ReachTagsApiFp(this.configuration).removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(this.axios, this.basePath));
17909
+ }
17910
+ /**
17911
+ * 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.
17912
+ * @summary Rename a tag
17913
+ * @param {string} profileUuid Profile uuid parameter
17914
+ * @param {string} tagUuid Tag uuid parameter
17915
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
17916
+ * @param {*} [options] Override http request option.
17917
+ * @throws {RequiredError}
17918
+ * @memberof ReachTagsApi
17919
+ */
17920
+ renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options) {
17921
+ return ReachTagsApiFp(this.configuration).renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
16410
17922
  }
16411
17923
  }
16412
17924
  /**