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/api.ts 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
@@ -7612,6 +7612,25 @@ export interface ReachListContactsV1200Response {
7612
7612
  */
7613
7613
  'meta': CommonSchemaPaginationMetaSchema;
7614
7614
  }
7615
+ /**
7616
+ *
7617
+ * @export
7618
+ * @interface ReachListProfileContactsV1200Response
7619
+ */
7620
+ export interface ReachListProfileContactsV1200Response {
7621
+ /**
7622
+ * Array of [`Reach.V1.Contacts.ProfileContactResource`](#model/reachv1contactsprofilecontactresource)
7623
+ * @type {Array<ReachV1ContactsProfileContactResource>}
7624
+ * @memberof ReachListProfileContactsV1200Response
7625
+ */
7626
+ 'data': Array<ReachV1ContactsProfileContactResource>;
7627
+ /**
7628
+ *
7629
+ * @type {CommonSchemaPaginationMetaSchema}
7630
+ * @memberof ReachListProfileContactsV1200Response
7631
+ */
7632
+ 'meta': CommonSchemaPaginationMetaSchema;
7633
+ }
7615
7634
  /**
7616
7635
  *
7617
7636
  * @export
@@ -7631,6 +7650,174 @@ export interface ReachListProfileSegmentContactsV1200Response {
7631
7650
  */
7632
7651
  'meta': CommonSchemaPaginationMetaSchema;
7633
7652
  }
7653
+ /**
7654
+ * Create many contacts in one call
7655
+ * @export
7656
+ * @interface ReachV1ContactsBulkStoreRequest
7657
+ */
7658
+ export interface ReachV1ContactsBulkStoreRequest {
7659
+ /**
7660
+ *
7661
+ * @type {Array<ReachV1ContactsBulkStoreRequestContactsInner>}
7662
+ * @memberof ReachV1ContactsBulkStoreRequest
7663
+ */
7664
+ 'contacts': Array<ReachV1ContactsBulkStoreRequestContactsInner>;
7665
+ /**
7666
+ * Existing tags to attach to every created contact
7667
+ * @type {Array<string>}
7668
+ * @memberof ReachV1ContactsBulkStoreRequest
7669
+ */
7670
+ 'tag_uuids': Array<string>;
7671
+ /**
7672
+ * Note applied to every created contact
7673
+ * @type {string}
7674
+ * @memberof ReachV1ContactsBulkStoreRequest
7675
+ */
7676
+ 'note': string | null;
7677
+ }
7678
+ /**
7679
+ *
7680
+ * @export
7681
+ * @interface ReachV1ContactsBulkStoreRequestContactsInner
7682
+ */
7683
+ export interface ReachV1ContactsBulkStoreRequestContactsInner {
7684
+ /**
7685
+ *
7686
+ * @type {string}
7687
+ * @memberof ReachV1ContactsBulkStoreRequestContactsInner
7688
+ */
7689
+ 'email': string;
7690
+ /**
7691
+ *
7692
+ * @type {string}
7693
+ * @memberof ReachV1ContactsBulkStoreRequestContactsInner
7694
+ */
7695
+ 'name': string | null;
7696
+ /**
7697
+ *
7698
+ * @type {string}
7699
+ * @memberof ReachV1ContactsBulkStoreRequestContactsInner
7700
+ */
7701
+ 'surname': string | null;
7702
+ /**
7703
+ * Phone number in E.164 format (leading \"+\" then 7-15 digits)
7704
+ * @type {string}
7705
+ * @memberof ReachV1ContactsBulkStoreRequestContactsInner
7706
+ */
7707
+ 'phone': string | null;
7708
+ }
7709
+ /**
7710
+ *
7711
+ * @export
7712
+ * @interface ReachV1ContactsContactDetailsResource
7713
+ */
7714
+ export interface ReachV1ContactsContactDetailsResource {
7715
+ /**
7716
+ *
7717
+ * @type {string}
7718
+ * @memberof ReachV1ContactsContactDetailsResource
7719
+ */
7720
+ 'uuid': string;
7721
+ /**
7722
+ *
7723
+ * @type {string}
7724
+ * @memberof ReachV1ContactsContactDetailsResource
7725
+ */
7726
+ 'email': string;
7727
+ /**
7728
+ *
7729
+ * @type {string}
7730
+ * @memberof ReachV1ContactsContactDetailsResource
7731
+ */
7732
+ 'name': string | null;
7733
+ /**
7734
+ *
7735
+ * @type {string}
7736
+ * @memberof ReachV1ContactsContactDetailsResource
7737
+ */
7738
+ 'surname': string | null;
7739
+ /**
7740
+ *
7741
+ * @type {string}
7742
+ * @memberof ReachV1ContactsContactDetailsResource
7743
+ */
7744
+ 'phone': string | null;
7745
+ /**
7746
+ *
7747
+ * @type {string}
7748
+ * @memberof ReachV1ContactsContactDetailsResource
7749
+ */
7750
+ 'subscription_status': ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum;
7751
+ /**
7752
+ *
7753
+ * @type {string}
7754
+ * @memberof ReachV1ContactsContactDetailsResource
7755
+ */
7756
+ 'subscribed_at': string | null;
7757
+ /**
7758
+ *
7759
+ * @type {string}
7760
+ * @memberof ReachV1ContactsContactDetailsResource
7761
+ */
7762
+ 'unsubscribed_at': string | null;
7763
+ /**
7764
+ *
7765
+ * @type {string}
7766
+ * @memberof ReachV1ContactsContactDetailsResource
7767
+ */
7768
+ 'created_at': string | null;
7769
+ /**
7770
+ *
7771
+ * @type {string}
7772
+ * @memberof ReachV1ContactsContactDetailsResource
7773
+ */
7774
+ 'domain': string | null;
7775
+ /**
7776
+ *
7777
+ * @type {string}
7778
+ * @memberof ReachV1ContactsContactDetailsResource
7779
+ */
7780
+ 'source': ReachV1ContactsContactDetailsResourceSourceEnum | null;
7781
+ /**
7782
+ *
7783
+ * @type {string}
7784
+ * @memberof ReachV1ContactsContactDetailsResource
7785
+ */
7786
+ 'note': string | null;
7787
+ /**
7788
+ *
7789
+ * @type {Array<ReachV1ContactsTagsTagResource>}
7790
+ * @memberof ReachV1ContactsContactDetailsResource
7791
+ */
7792
+ 'tags': Array<ReachV1ContactsTagsTagResource>;
7793
+ /**
7794
+ * Custom field values held by this contact
7795
+ * @type {Array<ReachV1ContactsFieldsContactFieldValueResource>}
7796
+ * @memberof ReachV1ContactsContactDetailsResource
7797
+ */
7798
+ 'fields': Array<ReachV1ContactsFieldsContactFieldValueResource>;
7799
+ }
7800
+
7801
+ export const ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = {
7802
+ Subscribed: 'subscribed',
7803
+ Unsubscribed: 'unsubscribed',
7804
+ Confirmed: 'confirmed',
7805
+ Pending: 'pending'
7806
+ } as const;
7807
+
7808
+ export type ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = typeof ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum[keyof typeof ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum];
7809
+ export const ReachV1ContactsContactDetailsResourceSourceEnum = {
7810
+ Sync: 'sync',
7811
+ Import: 'import',
7812
+ Manual: 'manual',
7813
+ Api: 'api',
7814
+ Form: 'form',
7815
+ Checkout: 'checkout',
7816
+ Horizons: 'horizons'
7817
+ } as const;
7818
+
7819
+ export type ReachV1ContactsContactDetailsResourceSourceEnum = typeof ReachV1ContactsContactDetailsResourceSourceEnum[keyof typeof ReachV1ContactsContactDetailsResourceSourceEnum];
7820
+
7634
7821
  /**
7635
7822
  *
7636
7823
  * @export
@@ -7689,14 +7876,20 @@ export interface ReachV1ContactsContactResource {
7689
7876
 
7690
7877
  export const ReachV1ContactsContactResourceSubscriptionStatusEnum = {
7691
7878
  Subscribed: 'subscribed',
7692
- Unsubscribed: 'unsubscribed'
7879
+ Unsubscribed: 'unsubscribed',
7880
+ Confirmed: 'confirmed',
7881
+ Pending: 'pending'
7693
7882
  } as const;
7694
7883
 
7695
7884
  export type ReachV1ContactsContactResourceSubscriptionStatusEnum = typeof ReachV1ContactsContactResourceSubscriptionStatusEnum[keyof typeof ReachV1ContactsContactResourceSubscriptionStatusEnum];
7696
7885
  export const ReachV1ContactsContactResourceSourceEnum = {
7697
7886
  Sync: 'sync',
7698
7887
  Import: 'import',
7699
- Manual: 'manual'
7888
+ Manual: 'manual',
7889
+ Api: 'api',
7890
+ Form: 'form',
7891
+ Checkout: 'checkout',
7892
+ Horizons: 'horizons'
7700
7893
  } as const;
7701
7894
 
7702
7895
  export type ReachV1ContactsContactResourceSourceEnum = typeof ReachV1ContactsContactResourceSourceEnum[keyof typeof ReachV1ContactsContactResourceSourceEnum];
@@ -7704,184 +7897,556 @@ export type ReachV1ContactsContactResourceSourceEnum = typeof ReachV1ContactsCon
7704
7897
  /**
7705
7898
  *
7706
7899
  * @export
7707
- * @interface ReachV1ContactsGroupsContactGroupResource
7900
+ * @interface ReachV1ContactsFieldsContactFieldOptionResource
7708
7901
  */
7709
- export interface ReachV1ContactsGroupsContactGroupResource {
7902
+ export interface ReachV1ContactsFieldsContactFieldOptionResource {
7710
7903
  /**
7711
7904
  *
7712
7905
  * @type {string}
7713
- * @memberof ReachV1ContactsGroupsContactGroupResource
7906
+ * @memberof ReachV1ContactsFieldsContactFieldOptionResource
7714
7907
  */
7715
7908
  'uuid': string;
7716
7909
  /**
7717
7910
  *
7718
7911
  * @type {string}
7719
- * @memberof ReachV1ContactsGroupsContactGroupResource
7912
+ * @memberof ReachV1ContactsFieldsContactFieldOptionResource
7720
7913
  */
7721
- 'title': string;
7914
+ 'label': string;
7915
+ /**
7916
+ *
7917
+ * @type {number}
7918
+ * @memberof ReachV1ContactsFieldsContactFieldOptionResource
7919
+ */
7920
+ 'sort_order': number;
7722
7921
  }
7723
7922
  /**
7724
7923
  *
7725
7924
  * @export
7726
- * @interface ReachV1ContactsSegmentsContactSegmentResource
7925
+ * @interface ReachV1ContactsFieldsContactFieldResource
7727
7926
  */
7728
- export interface ReachV1ContactsSegmentsContactSegmentResource {
7927
+ export interface ReachV1ContactsFieldsContactFieldResource {
7729
7928
  /**
7730
7929
  *
7731
7930
  * @type {string}
7732
- * @memberof ReachV1ContactsSegmentsContactSegmentResource
7931
+ * @memberof ReachV1ContactsFieldsContactFieldResource
7733
7932
  */
7734
7933
  'uuid': string;
7735
7934
  /**
7736
7935
  *
7737
7936
  * @type {string}
7738
- * @memberof ReachV1ContactsSegmentsContactSegmentResource
7937
+ * @memberof ReachV1ContactsFieldsContactFieldResource
7739
7938
  */
7740
- 'name': string;
7939
+ 'type': ReachV1ContactsFieldsContactFieldResourceTypeEnum;
7741
7940
  /**
7742
7941
  *
7743
7942
  * @type {string}
7744
- * @memberof ReachV1ContactsSegmentsContactSegmentResource
7943
+ * @memberof ReachV1ContactsFieldsContactFieldResource
7745
7944
  */
7746
- 'created_at': string;
7945
+ 'label': string;
7946
+ /**
7947
+ * Derived from the label on creation and immutable afterwards
7948
+ * @type {string}
7949
+ * @memberof ReachV1ContactsFieldsContactFieldResource
7950
+ */
7951
+ 'slug': string;
7952
+ /**
7953
+ * Available choices. Always empty for the scalar field types.
7954
+ * @type {Array<ReachV1ContactsFieldsContactFieldOptionResource>}
7955
+ * @memberof ReachV1ContactsFieldsContactFieldResource
7956
+ */
7957
+ 'options': Array<ReachV1ContactsFieldsContactFieldOptionResource>;
7747
7958
  /**
7748
7959
  *
7749
7960
  * @type {string}
7750
- * @memberof ReachV1ContactsSegmentsContactSegmentResource
7961
+ * @memberof ReachV1ContactsFieldsContactFieldResource
7751
7962
  */
7752
- 'updated_at': string;
7963
+ 'created_at': string;
7753
7964
  }
7965
+
7966
+ export const ReachV1ContactsFieldsContactFieldResourceTypeEnum = {
7967
+ Text: 'text',
7968
+ Number: 'number',
7969
+ Date: 'date',
7970
+ SingleChoice: 'single_choice',
7971
+ MultiChoice: 'multi_choice'
7972
+ } as const;
7973
+
7974
+ export type ReachV1ContactsFieldsContactFieldResourceTypeEnum = typeof ReachV1ContactsFieldsContactFieldResourceTypeEnum[keyof typeof ReachV1ContactsFieldsContactFieldResourceTypeEnum];
7975
+
7754
7976
  /**
7755
- *
7977
+ * A custom contact field together with the value held by one contact
7756
7978
  * @export
7757
- * @interface ReachV1ContactsSegmentsSegmentResource
7979
+ * @interface ReachV1ContactsFieldsContactFieldValueResource
7758
7980
  */
7759
- export interface ReachV1ContactsSegmentsSegmentResource {
7981
+ export interface ReachV1ContactsFieldsContactFieldValueResource {
7760
7982
  /**
7761
7983
  *
7762
7984
  * @type {string}
7763
- * @memberof ReachV1ContactsSegmentsSegmentResource
7985
+ * @memberof ReachV1ContactsFieldsContactFieldValueResource
7764
7986
  */
7765
7987
  'uuid': string;
7766
7988
  /**
7767
7989
  *
7768
7990
  * @type {string}
7769
- * @memberof ReachV1ContactsSegmentsSegmentResource
7991
+ * @memberof ReachV1ContactsFieldsContactFieldValueResource
7770
7992
  */
7771
- 'name': string;
7993
+ 'type': ReachV1ContactsFieldsContactFieldValueResourceTypeEnum;
7772
7994
  /**
7773
7995
  *
7774
- * @type {Array<any>}
7775
- * @memberof ReachV1ContactsSegmentsSegmentResource
7996
+ * @type {string}
7997
+ * @memberof ReachV1ContactsFieldsContactFieldValueResource
7776
7998
  */
7777
- 'query': Array<any>;
7999
+ 'label': string;
7778
8000
  /**
7779
8001
  *
7780
8002
  * @type {string}
7781
- * @memberof ReachV1ContactsSegmentsSegmentResource
8003
+ * @memberof ReachV1ContactsFieldsContactFieldValueResource
7782
8004
  */
7783
- 'created_at': string;
8005
+ 'slug': string;
7784
8006
  /**
7785
- *
8007
+ * Set for the scalar field types, null for the choice types
7786
8008
  * @type {string}
7787
- * @memberof ReachV1ContactsSegmentsSegmentResource
8009
+ * @memberof ReachV1ContactsFieldsContactFieldValueResource
7788
8010
  */
7789
- 'updated_at': string;
8011
+ 'value': string | null;
8012
+ /**
8013
+ * Chosen options for the choice field types, empty for the scalar types
8014
+ * @type {Array<string>}
8015
+ * @memberof ReachV1ContactsFieldsContactFieldValueResource
8016
+ */
8017
+ 'selected_option_uuids': Array<string>;
8018
+ /**
8019
+ * Every option the field offers, not only the selected ones
8020
+ * @type {Array<ReachV1ContactsFieldsContactFieldOptionResource>}
8021
+ * @memberof ReachV1ContactsFieldsContactFieldValueResource
8022
+ */
8023
+ 'options': Array<ReachV1ContactsFieldsContactFieldOptionResource>;
7790
8024
  }
8025
+
8026
+ export const ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = {
8027
+ Text: 'text',
8028
+ Number: 'number',
8029
+ Date: 'date',
8030
+ SingleChoice: 'single_choice',
8031
+ MultiChoice: 'multi_choice'
8032
+ } as const;
8033
+
8034
+ export type ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = typeof ReachV1ContactsFieldsContactFieldValueResourceTypeEnum[keyof typeof ReachV1ContactsFieldsContactFieldValueResourceTypeEnum];
8035
+
7791
8036
  /**
7792
- *
8037
+ * Define a custom contact field for the profile
7793
8038
  * @export
7794
- * @interface ReachV1ContactsSegmentsSegmentationContactResource
8039
+ * @interface ReachV1ContactsFieldsStoreRequest
7795
8040
  */
7796
- export interface ReachV1ContactsSegmentsSegmentationContactResource {
8041
+ export interface ReachV1ContactsFieldsStoreRequest {
7797
8042
  /**
7798
- *
8043
+ * Immutable once the field exists
7799
8044
  * @type {string}
7800
- * @memberof ReachV1ContactsSegmentsSegmentationContactResource
8045
+ * @memberof ReachV1ContactsFieldsStoreRequest
7801
8046
  */
7802
- 'uuid': string;
8047
+ 'type': ReachV1ContactsFieldsStoreRequestTypeEnum;
7803
8048
  /**
7804
8049
  *
7805
8050
  * @type {string}
7806
- * @memberof ReachV1ContactsSegmentsSegmentationContactResource
8051
+ * @memberof ReachV1ContactsFieldsStoreRequest
7807
8052
  */
7808
- 'name': string | null;
8053
+ 'label': string;
7809
8054
  /**
7810
- *
7811
- * @type {string}
7812
- * @memberof ReachV1ContactsSegmentsSegmentationContactResource
8055
+ * Required for single_choice and multi_choice, ignored for the scalar types. Labels must be unique regardless of casing.
8056
+ * @type {Array<string>}
8057
+ * @memberof ReachV1ContactsFieldsStoreRequest
7813
8058
  */
7814
- 'surname': string | null;
8059
+ 'options': Array<string>;
8060
+ }
8061
+
8062
+ export const ReachV1ContactsFieldsStoreRequestTypeEnum = {
8063
+ Text: 'text',
8064
+ Number: 'number',
8065
+ Date: 'date',
8066
+ SingleChoice: 'single_choice',
8067
+ MultiChoice: 'multi_choice'
8068
+ } as const;
8069
+
8070
+ export type ReachV1ContactsFieldsStoreRequestTypeEnum = typeof ReachV1ContactsFieldsStoreRequestTypeEnum[keyof typeof ReachV1ContactsFieldsStoreRequestTypeEnum];
8071
+
8072
+ /**
8073
+ * Rename a custom contact field and, for the choice types, replace its option set. The field type and slug are immutable.
8074
+ * @export
8075
+ * @interface ReachV1ContactsFieldsUpdateRequest
8076
+ */
8077
+ export interface ReachV1ContactsFieldsUpdateRequest {
7815
8078
  /**
7816
8079
  *
7817
8080
  * @type {string}
7818
- * @memberof ReachV1ContactsSegmentsSegmentationContactResource
8081
+ * @memberof ReachV1ContactsFieldsUpdateRequest
7819
8082
  */
7820
- 'email': string;
8083
+ 'label': string;
8084
+ /**
8085
+ * Replaces the option set when provided. Entries carrying a uuid are kept and relabelled, entries without one are created, and any existing option missing from the list is deleted along with the values contacts hold for it.
8086
+ * @type {Array<ReachV1ContactsFieldsUpdateRequestOptionsInner>}
8087
+ * @memberof ReachV1ContactsFieldsUpdateRequest
8088
+ */
8089
+ 'options': Array<ReachV1ContactsFieldsUpdateRequestOptionsInner> | null;
8090
+ }
8091
+ /**
8092
+ *
8093
+ * @export
8094
+ * @interface ReachV1ContactsFieldsUpdateRequestOptionsInner
8095
+ */
8096
+ export interface ReachV1ContactsFieldsUpdateRequestOptionsInner {
7821
8097
  /**
7822
8098
  *
7823
8099
  * @type {string}
7824
- * @memberof ReachV1ContactsSegmentsSegmentationContactResource
8100
+ * @memberof ReachV1ContactsFieldsUpdateRequestOptionsInner
7825
8101
  */
7826
- 'subscription_status': ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum;
8102
+ 'uuid': string | null;
7827
8103
  /**
7828
8104
  *
7829
8105
  * @type {string}
7830
- * @memberof ReachV1ContactsSegmentsSegmentationContactResource
8106
+ * @memberof ReachV1ContactsFieldsUpdateRequestOptionsInner
7831
8107
  */
7832
- 'subscribed_at': string;
8108
+ 'label': string;
8109
+ }
8110
+ /**
8111
+ *
8112
+ * @export
8113
+ * @interface ReachV1ContactsGroupsContactGroupResource
8114
+ */
8115
+ export interface ReachV1ContactsGroupsContactGroupResource {
7833
8116
  /**
7834
8117
  *
7835
8118
  * @type {string}
7836
- * @memberof ReachV1ContactsSegmentsSegmentationContactResource
8119
+ * @memberof ReachV1ContactsGroupsContactGroupResource
7837
8120
  */
7838
- 'source': ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum | null;
8121
+ 'uuid': string;
7839
8122
  /**
7840
8123
  *
7841
8124
  * @type {string}
7842
- * @memberof ReachV1ContactsSegmentsSegmentationContactResource
8125
+ * @memberof ReachV1ContactsGroupsContactGroupResource
7843
8126
  */
7844
- 'note': string | null;
8127
+ 'title': string;
7845
8128
  }
7846
-
7847
- export const ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = {
7848
- Subscribed: 'subscribed',
7849
- Unsubscribed: 'unsubscribed'
7850
- } as const;
7851
-
7852
- export type ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = typeof ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum[keyof typeof ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum];
7853
- export const ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = {
7854
- Sync: 'sync',
7855
- Import: 'import',
7856
- Manual: 'manual'
7857
- } as const;
7858
-
7859
- export type ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = typeof ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum[keyof typeof ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum];
7860
-
7861
8129
  /**
7862
8130
  *
7863
8131
  * @export
7864
- * @interface ReachV1ContactsSegmentsStoreRequest
8132
+ * @interface ReachV1ContactsProfileContactResource
7865
8133
  */
7866
- export interface ReachV1ContactsSegmentsStoreRequest {
8134
+ export interface ReachV1ContactsProfileContactResource {
7867
8135
  /**
7868
8136
  *
7869
8137
  * @type {string}
7870
- * @memberof ReachV1ContactsSegmentsStoreRequest
8138
+ * @memberof ReachV1ContactsProfileContactResource
7871
8139
  */
7872
- 'name': string;
8140
+ 'uuid': string;
7873
8141
  /**
7874
8142
  *
7875
- * @type {Array<ReachV1ContactsSegmentsStoreRequestConditionsInner>}
7876
- * @memberof ReachV1ContactsSegmentsStoreRequest
8143
+ * @type {string}
8144
+ * @memberof ReachV1ContactsProfileContactResource
7877
8145
  */
7878
- 'conditions': Array<ReachV1ContactsSegmentsStoreRequestConditionsInner>;
8146
+ 'name': string | null;
7879
8147
  /**
7880
8148
  *
7881
8149
  * @type {string}
7882
- * @memberof ReachV1ContactsSegmentsStoreRequest
8150
+ * @memberof ReachV1ContactsProfileContactResource
7883
8151
  */
7884
- 'logic': ReachV1ContactsSegmentsStoreRequestLogicEnum;
8152
+ 'surname': string | null;
8153
+ /**
8154
+ *
8155
+ * @type {string}
8156
+ * @memberof ReachV1ContactsProfileContactResource
8157
+ */
8158
+ 'email': string;
8159
+ /**
8160
+ *
8161
+ * @type {string}
8162
+ * @memberof ReachV1ContactsProfileContactResource
8163
+ */
8164
+ 'phone': string | null;
8165
+ /**
8166
+ *
8167
+ * @type {string}
8168
+ * @memberof ReachV1ContactsProfileContactResource
8169
+ */
8170
+ 'subscription_status': ReachV1ContactsProfileContactResourceSubscriptionStatusEnum;
8171
+ /**
8172
+ *
8173
+ * @type {string}
8174
+ * @memberof ReachV1ContactsProfileContactResource
8175
+ */
8176
+ 'subscribed_at': string | null;
8177
+ /**
8178
+ *
8179
+ * @type {string}
8180
+ * @memberof ReachV1ContactsProfileContactResource
8181
+ */
8182
+ 'unsubscribed_at': string | null;
8183
+ /**
8184
+ *
8185
+ * @type {string}
8186
+ * @memberof ReachV1ContactsProfileContactResource
8187
+ */
8188
+ 'source': ReachV1ContactsProfileContactResourceSourceEnum | null;
8189
+ /**
8190
+ *
8191
+ * @type {string}
8192
+ * @memberof ReachV1ContactsProfileContactResource
8193
+ */
8194
+ 'note': string | null;
8195
+ }
8196
+
8197
+ export const ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = {
8198
+ Subscribed: 'subscribed',
8199
+ Unsubscribed: 'unsubscribed',
8200
+ Confirmed: 'confirmed',
8201
+ Pending: 'pending'
8202
+ } as const;
8203
+
8204
+ export type ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = typeof ReachV1ContactsProfileContactResourceSubscriptionStatusEnum[keyof typeof ReachV1ContactsProfileContactResourceSubscriptionStatusEnum];
8205
+ export const ReachV1ContactsProfileContactResourceSourceEnum = {
8206
+ Sync: 'sync',
8207
+ Import: 'import',
8208
+ Manual: 'manual',
8209
+ Api: 'api',
8210
+ Form: 'form',
8211
+ Checkout: 'checkout',
8212
+ Horizons: 'horizons'
8213
+ } as const;
8214
+
8215
+ export type ReachV1ContactsProfileContactResourceSourceEnum = typeof ReachV1ContactsProfileContactResourceSourceEnum[keyof typeof ReachV1ContactsProfileContactResourceSourceEnum];
8216
+
8217
+ /**
8218
+ *
8219
+ * @export
8220
+ * @interface ReachV1ContactsProfileContactUpdateResource
8221
+ */
8222
+ export interface ReachV1ContactsProfileContactUpdateResource {
8223
+ /**
8224
+ *
8225
+ * @type {string}
8226
+ * @memberof ReachV1ContactsProfileContactUpdateResource
8227
+ */
8228
+ 'uuid': string;
8229
+ /**
8230
+ *
8231
+ * @type {string}
8232
+ * @memberof ReachV1ContactsProfileContactUpdateResource
8233
+ */
8234
+ 'name': string | null;
8235
+ /**
8236
+ *
8237
+ * @type {string}
8238
+ * @memberof ReachV1ContactsProfileContactUpdateResource
8239
+ */
8240
+ 'surname': string | null;
8241
+ /**
8242
+ *
8243
+ * @type {string}
8244
+ * @memberof ReachV1ContactsProfileContactUpdateResource
8245
+ */
8246
+ 'email': string;
8247
+ /**
8248
+ *
8249
+ * @type {string}
8250
+ * @memberof ReachV1ContactsProfileContactUpdateResource
8251
+ */
8252
+ 'phone': string | null;
8253
+ /**
8254
+ *
8255
+ * @type {string}
8256
+ * @memberof ReachV1ContactsProfileContactUpdateResource
8257
+ */
8258
+ 'subscription_status': ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum;
8259
+ /**
8260
+ *
8261
+ * @type {string}
8262
+ * @memberof ReachV1ContactsProfileContactUpdateResource
8263
+ */
8264
+ 'subscribed_at': string | null;
8265
+ /**
8266
+ *
8267
+ * @type {string}
8268
+ * @memberof ReachV1ContactsProfileContactUpdateResource
8269
+ */
8270
+ 'unsubscribed_at': string | null;
8271
+ }
8272
+
8273
+ export const ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = {
8274
+ Subscribed: 'subscribed',
8275
+ Unsubscribed: 'unsubscribed',
8276
+ Confirmed: 'confirmed',
8277
+ Pending: 'pending'
8278
+ } as const;
8279
+
8280
+ export type ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = typeof ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum[keyof typeof ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum];
8281
+
8282
+ /**
8283
+ *
8284
+ * @export
8285
+ * @interface ReachV1ContactsSegmentsContactSegmentResource
8286
+ */
8287
+ export interface ReachV1ContactsSegmentsContactSegmentResource {
8288
+ /**
8289
+ *
8290
+ * @type {string}
8291
+ * @memberof ReachV1ContactsSegmentsContactSegmentResource
8292
+ */
8293
+ 'uuid': string;
8294
+ /**
8295
+ *
8296
+ * @type {string}
8297
+ * @memberof ReachV1ContactsSegmentsContactSegmentResource
8298
+ */
8299
+ 'name': string;
8300
+ /**
8301
+ *
8302
+ * @type {string}
8303
+ * @memberof ReachV1ContactsSegmentsContactSegmentResource
8304
+ */
8305
+ 'created_at': string;
8306
+ /**
8307
+ *
8308
+ * @type {string}
8309
+ * @memberof ReachV1ContactsSegmentsContactSegmentResource
8310
+ */
8311
+ 'updated_at': string;
8312
+ }
8313
+ /**
8314
+ *
8315
+ * @export
8316
+ * @interface ReachV1ContactsSegmentsSegmentResource
8317
+ */
8318
+ export interface ReachV1ContactsSegmentsSegmentResource {
8319
+ /**
8320
+ *
8321
+ * @type {string}
8322
+ * @memberof ReachV1ContactsSegmentsSegmentResource
8323
+ */
8324
+ 'uuid': string;
8325
+ /**
8326
+ *
8327
+ * @type {string}
8328
+ * @memberof ReachV1ContactsSegmentsSegmentResource
8329
+ */
8330
+ 'name': string;
8331
+ /**
8332
+ *
8333
+ * @type {Array<any>}
8334
+ * @memberof ReachV1ContactsSegmentsSegmentResource
8335
+ */
8336
+ 'query': Array<any>;
8337
+ /**
8338
+ *
8339
+ * @type {string}
8340
+ * @memberof ReachV1ContactsSegmentsSegmentResource
8341
+ */
8342
+ 'created_at': string;
8343
+ /**
8344
+ *
8345
+ * @type {string}
8346
+ * @memberof ReachV1ContactsSegmentsSegmentResource
8347
+ */
8348
+ 'updated_at': string;
8349
+ }
8350
+ /**
8351
+ *
8352
+ * @export
8353
+ * @interface ReachV1ContactsSegmentsSegmentationContactResource
8354
+ */
8355
+ export interface ReachV1ContactsSegmentsSegmentationContactResource {
8356
+ /**
8357
+ *
8358
+ * @type {string}
8359
+ * @memberof ReachV1ContactsSegmentsSegmentationContactResource
8360
+ */
8361
+ 'uuid': string;
8362
+ /**
8363
+ *
8364
+ * @type {string}
8365
+ * @memberof ReachV1ContactsSegmentsSegmentationContactResource
8366
+ */
8367
+ 'name': string | null;
8368
+ /**
8369
+ *
8370
+ * @type {string}
8371
+ * @memberof ReachV1ContactsSegmentsSegmentationContactResource
8372
+ */
8373
+ 'surname': string | null;
8374
+ /**
8375
+ *
8376
+ * @type {string}
8377
+ * @memberof ReachV1ContactsSegmentsSegmentationContactResource
8378
+ */
8379
+ 'email': string;
8380
+ /**
8381
+ *
8382
+ * @type {string}
8383
+ * @memberof ReachV1ContactsSegmentsSegmentationContactResource
8384
+ */
8385
+ 'subscription_status': ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum;
8386
+ /**
8387
+ *
8388
+ * @type {string}
8389
+ * @memberof ReachV1ContactsSegmentsSegmentationContactResource
8390
+ */
8391
+ 'subscribed_at': string;
8392
+ /**
8393
+ *
8394
+ * @type {string}
8395
+ * @memberof ReachV1ContactsSegmentsSegmentationContactResource
8396
+ */
8397
+ 'source': ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum | null;
8398
+ /**
8399
+ *
8400
+ * @type {string}
8401
+ * @memberof ReachV1ContactsSegmentsSegmentationContactResource
8402
+ */
8403
+ 'note': string | null;
8404
+ }
8405
+
8406
+ export const ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = {
8407
+ Subscribed: 'subscribed',
8408
+ Unsubscribed: 'unsubscribed',
8409
+ Confirmed: 'confirmed',
8410
+ Pending: 'pending'
8411
+ } as const;
8412
+
8413
+ export type ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = typeof ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum[keyof typeof ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum];
8414
+ export const ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = {
8415
+ Sync: 'sync',
8416
+ Import: 'import',
8417
+ Manual: 'manual',
8418
+ Api: 'api',
8419
+ Form: 'form',
8420
+ Checkout: 'checkout',
8421
+ Horizons: 'horizons'
8422
+ } as const;
8423
+
8424
+ export type ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = typeof ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum[keyof typeof ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum];
8425
+
8426
+ /**
8427
+ *
8428
+ * @export
8429
+ * @interface ReachV1ContactsSegmentsStoreRequest
8430
+ */
8431
+ export interface ReachV1ContactsSegmentsStoreRequest {
8432
+ /**
8433
+ *
8434
+ * @type {string}
8435
+ * @memberof ReachV1ContactsSegmentsStoreRequest
8436
+ */
8437
+ 'name': string;
8438
+ /**
8439
+ *
8440
+ * @type {Array<ReachV1ContactsSegmentsStoreRequestConditionsInner>}
8441
+ * @memberof ReachV1ContactsSegmentsStoreRequest
8442
+ */
8443
+ 'conditions': Array<ReachV1ContactsSegmentsStoreRequestConditionsInner>;
8444
+ /**
8445
+ *
8446
+ * @type {string}
8447
+ * @memberof ReachV1ContactsSegmentsStoreRequest
8448
+ */
8449
+ 'logic': ReachV1ContactsSegmentsStoreRequestLogicEnum;
7885
8450
  }
7886
8451
 
7887
8452
  export const ReachV1ContactsSegmentsStoreRequestLogicEnum = {
@@ -8014,13 +8579,181 @@ export interface ReachV1ContactsStoreRequest {
8014
8579
  'note': string | null;
8015
8580
  }
8016
8581
  /**
8017
- *
8582
+ * Contacts to assign to, or remove from, a tag
8018
8583
  * @export
8019
- * @interface ReachV1ProfilesDomainsDnsRecordStatus
8584
+ * @interface ReachV1ContactsTagsManageContactsRequest
8020
8585
  */
8021
- export interface ReachV1ProfilesDomainsDnsRecordStatus {
8586
+ export interface ReachV1ContactsTagsManageContactsRequest {
8022
8587
  /**
8023
- *
8588
+ * Contacts to apply the change to. Required unless all_contacts is true.
8589
+ * @type {Array<string>}
8590
+ * @memberof ReachV1ContactsTagsManageContactsRequest
8591
+ */
8592
+ 'contact_uuids': Array<string>;
8593
+ /**
8594
+ * Apply to every contact in the profile
8595
+ * @type {boolean}
8596
+ * @memberof ReachV1ContactsTagsManageContactsRequest
8597
+ */
8598
+ 'all_contacts': boolean;
8599
+ }
8600
+ /**
8601
+ * Names to create. Names that already exist in the profile are returned as they are.
8602
+ * @export
8603
+ * @interface ReachV1ContactsTagsStoreRequest
8604
+ */
8605
+ export interface ReachV1ContactsTagsStoreRequest {
8606
+ /**
8607
+ *
8608
+ * @type {Array<string>}
8609
+ * @memberof ReachV1ContactsTagsStoreRequest
8610
+ */
8611
+ 'names': Array<string>;
8612
+ }
8613
+ /**
8614
+ *
8615
+ * @export
8616
+ * @interface ReachV1ContactsTagsTagResource
8617
+ */
8618
+ export interface ReachV1ContactsTagsTagResource {
8619
+ /**
8620
+ *
8621
+ * @type {string}
8622
+ * @memberof ReachV1ContactsTagsTagResource
8623
+ */
8624
+ 'uuid': string;
8625
+ /**
8626
+ * How the tag came about. `custom` covers the tags you create yourself, `form` covers the ones Reach creates for its forms.
8627
+ * @type {string}
8628
+ * @memberof ReachV1ContactsTagsTagResource
8629
+ */
8630
+ 'type': ReachV1ContactsTagsTagResourceTypeEnum;
8631
+ /**
8632
+ *
8633
+ * @type {string}
8634
+ * @memberof ReachV1ContactsTagsTagResource
8635
+ */
8636
+ 'value': string;
8637
+ /**
8638
+ *
8639
+ * @type {string}
8640
+ * @memberof ReachV1ContactsTagsTagResource
8641
+ */
8642
+ 'created_at': string;
8643
+ }
8644
+
8645
+ export const ReachV1ContactsTagsTagResourceTypeEnum = {
8646
+ Form: 'form',
8647
+ Custom: 'custom'
8648
+ } as const;
8649
+
8650
+ export type ReachV1ContactsTagsTagResourceTypeEnum = typeof ReachV1ContactsTagsTagResourceTypeEnum[keyof typeof ReachV1ContactsTagsTagResourceTypeEnum];
8651
+
8652
+ /**
8653
+ * Rename a tag
8654
+ * @export
8655
+ * @interface ReachV1ContactsTagsUpdateRequest
8656
+ */
8657
+ export interface ReachV1ContactsTagsUpdateRequest {
8658
+ /**
8659
+ * New tag name
8660
+ * @type {string}
8661
+ * @memberof ReachV1ContactsTagsUpdateRequest
8662
+ */
8663
+ 'value': string;
8664
+ }
8665
+ /**
8666
+ * Fields to change on a contact. Omitted properties are left untouched.
8667
+ * @export
8668
+ * @interface ReachV1ContactsUpdateRequest
8669
+ */
8670
+ export interface ReachV1ContactsUpdateRequest {
8671
+ /**
8672
+ *
8673
+ * @type {string}
8674
+ * @memberof ReachV1ContactsUpdateRequest
8675
+ */
8676
+ 'email': string | null;
8677
+ /**
8678
+ *
8679
+ * @type {string}
8680
+ * @memberof ReachV1ContactsUpdateRequest
8681
+ */
8682
+ 'name': string | null;
8683
+ /**
8684
+ *
8685
+ * @type {string}
8686
+ * @memberof ReachV1ContactsUpdateRequest
8687
+ */
8688
+ 'surname': string | null;
8689
+ /**
8690
+ * Phone number in E.164 format (leading \"+\" then 7-15 digits)
8691
+ * @type {string}
8692
+ * @memberof ReachV1ContactsUpdateRequest
8693
+ */
8694
+ 'phone': string | null;
8695
+ /**
8696
+ *
8697
+ * @type {string}
8698
+ * @memberof ReachV1ContactsUpdateRequest
8699
+ */
8700
+ 'subscription_status': ReachV1ContactsUpdateRequestSubscriptionStatusEnum | null;
8701
+ /**
8702
+ *
8703
+ * @type {string}
8704
+ * @memberof ReachV1ContactsUpdateRequest
8705
+ */
8706
+ 'note': string | null;
8707
+ /**
8708
+ * Set custom field values. Omit to leave untouched, send an empty array to clear them all.
8709
+ * @type {Array<ReachV1ContactsUpdateRequestFieldsInner>}
8710
+ * @memberof ReachV1ContactsUpdateRequest
8711
+ */
8712
+ 'fields': Array<ReachV1ContactsUpdateRequestFieldsInner>;
8713
+ }
8714
+
8715
+ export const ReachV1ContactsUpdateRequestSubscriptionStatusEnum = {
8716
+ Subscribed: 'subscribed',
8717
+ Unsubscribed: 'unsubscribed',
8718
+ Confirmed: 'confirmed',
8719
+ Pending: 'pending'
8720
+ } as const;
8721
+
8722
+ export type ReachV1ContactsUpdateRequestSubscriptionStatusEnum = typeof ReachV1ContactsUpdateRequestSubscriptionStatusEnum[keyof typeof ReachV1ContactsUpdateRequestSubscriptionStatusEnum];
8723
+
8724
+ /**
8725
+ *
8726
+ * @export
8727
+ * @interface ReachV1ContactsUpdateRequestFieldsInner
8728
+ */
8729
+ export interface ReachV1ContactsUpdateRequestFieldsInner {
8730
+ /**
8731
+ *
8732
+ * @type {string}
8733
+ * @memberof ReachV1ContactsUpdateRequestFieldsInner
8734
+ */
8735
+ 'uuid': string;
8736
+ /**
8737
+ * For the scalar field types
8738
+ * @type {string}
8739
+ * @memberof ReachV1ContactsUpdateRequestFieldsInner
8740
+ */
8741
+ 'value': string | null;
8742
+ /**
8743
+ * For the choice field types
8744
+ * @type {Array<string>}
8745
+ * @memberof ReachV1ContactsUpdateRequestFieldsInner
8746
+ */
8747
+ 'selected_option_uuids': Array<string>;
8748
+ }
8749
+ /**
8750
+ *
8751
+ * @export
8752
+ * @interface ReachV1ProfilesDomainsDnsRecordStatus
8753
+ */
8754
+ export interface ReachV1ProfilesDomainsDnsRecordStatus {
8755
+ /**
8756
+ *
8024
8757
  * @type {Array<ReachV1ProfilesDomainsDnsRecordStatusActualInner>}
8025
8758
  * @memberof ReachV1ProfilesDomainsDnsRecordStatus
8026
8759
  */
@@ -26819,66 +27552,25 @@ export type ListWebhooksV1StatusEnum = typeof ListWebhooksV1StatusEnum[keyof typ
26819
27552
 
26820
27553
 
26821
27554
  /**
26822
- * ReachContactsApi - axios parameter creator
27555
+ * ReachContactFieldsApi - axios parameter creator
26823
27556
  * @export
26824
27557
  */
26825
- export const ReachContactsApiAxiosParamCreator = function (configuration?: Configuration) {
27558
+ export const ReachContactFieldsApiAxiosParamCreator = function (configuration?: Configuration) {
26826
27559
  return {
26827
27560
  /**
26828
- * 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.
26829
- * @summary Create a new contact
26830
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
26831
- * @param {*} [options] Override http request option.
26832
- * @deprecated
26833
- * @throws {RequiredError}
26834
- */
26835
- createANewContactV1: async (reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26836
- // verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
26837
- assertParamExists('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest)
26838
- const localVarPath = `/api/reach/v1/contacts`;
26839
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
26840
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26841
- let baseOptions;
26842
- if (configuration) {
26843
- baseOptions = configuration.baseOptions;
26844
- }
26845
-
26846
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
26847
- const localVarHeaderParameter = {} as any;
26848
- const localVarQueryParameter = {} as any;
26849
-
26850
- // authentication apiToken required
26851
- // http bearer authentication required
26852
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
26853
-
26854
-
26855
-
26856
- localVarHeaderParameter['Content-Type'] = 'application/json';
26857
-
26858
- setSearchParams(localVarUrlObj, localVarQueryParameter);
26859
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26860
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26861
- localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration)
26862
-
26863
- return {
26864
- url: toPathString(localVarUrlObj),
26865
- options: localVarRequestOptions,
26866
- };
26867
- },
26868
- /**
26869
- * 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.
26870
- * @summary Create new contacts
27561
+ * 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.
27562
+ * @summary Create a contact field
26871
27563
  * @param {string} profileUuid Profile uuid parameter
26872
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
27564
+ * @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
26873
27565
  * @param {*} [options] Override http request option.
26874
27566
  * @throws {RequiredError}
26875
27567
  */
26876
- createNewContactsV1: async (profileUuid: string, reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27568
+ createAContactFieldV1: async (profileUuid: string, reachV1ContactsFieldsStoreRequest: ReachV1ContactsFieldsStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26877
27569
  // verify required parameter 'profileUuid' is not null or undefined
26878
- assertParamExists('createNewContactsV1', 'profileUuid', profileUuid)
26879
- // verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
26880
- assertParamExists('createNewContactsV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest)
26881
- const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts`
27570
+ assertParamExists('createAContactFieldV1', 'profileUuid', profileUuid)
27571
+ // verify required parameter 'reachV1ContactsFieldsStoreRequest' is not null or undefined
27572
+ assertParamExists('createAContactFieldV1', 'reachV1ContactsFieldsStoreRequest', reachV1ContactsFieldsStoreRequest)
27573
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/fields`
26882
27574
  .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
26883
27575
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
26884
27576
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -26902,7 +27594,7 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
26902
27594
  setSearchParams(localVarUrlObj, localVarQueryParameter);
26903
27595
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26904
27596
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26905
- localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration)
27597
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsFieldsStoreRequest, localVarRequestOptions, configuration)
26906
27598
 
26907
27599
  return {
26908
27600
  url: toPathString(localVarUrlObj),
@@ -26910,17 +27602,21 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
26910
27602
  };
26911
27603
  },
26912
27604
  /**
26913
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
26914
- * @summary Delete a contact
26915
- * @param {string} uuid UUID of the contact to delete
27605
+ * 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.
27606
+ * @summary Delete a contact field
27607
+ * @param {string} profileUuid Profile uuid parameter
27608
+ * @param {string} fieldUuid Contact field uuid parameter
26916
27609
  * @param {*} [options] Override http request option.
26917
27610
  * @throws {RequiredError}
26918
27611
  */
26919
- deleteAContactV1: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26920
- // verify required parameter 'uuid' is not null or undefined
26921
- assertParamExists('deleteAContactV1', 'uuid', uuid)
26922
- const localVarPath = `/api/reach/v1/contacts/{uuid}`
26923
- .replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
27612
+ deleteAContactFieldV1: async (profileUuid: string, fieldUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27613
+ // verify required parameter 'profileUuid' is not null or undefined
27614
+ assertParamExists('deleteAContactFieldV1', 'profileUuid', profileUuid)
27615
+ // verify required parameter 'fieldUuid' is not null or undefined
27616
+ assertParamExists('deleteAContactFieldV1', 'fieldUuid', fieldUuid)
27617
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/fields/{fieldUuid}`
27618
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
27619
+ .replace(`{${"fieldUuid"}}`, encodeURIComponent(String(fieldUuid)));
26924
27620
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
26925
27621
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26926
27622
  let baseOptions;
@@ -26948,14 +27644,17 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
26948
27644
  };
26949
27645
  },
26950
27646
  /**
26951
- * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
26952
- * @summary List contact groups
27647
+ * 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.
27648
+ * @summary List contact fields
27649
+ * @param {string} profileUuid Profile uuid parameter
26953
27650
  * @param {*} [options] Override http request option.
26954
- * @deprecated
26955
27651
  * @throws {RequiredError}
26956
27652
  */
26957
- listContactGroupsV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26958
- const localVarPath = `/api/reach/v1/contacts/groups`;
27653
+ listContactFieldsV1: async (profileUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27654
+ // verify required parameter 'profileUuid' is not null or undefined
27655
+ assertParamExists('listContactFieldsV1', 'profileUuid', profileUuid)
27656
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/fields`
27657
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
26959
27658
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
26960
27659
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26961
27660
  let baseOptions;
@@ -26983,16 +27682,24 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
26983
27682
  };
26984
27683
  },
26985
27684
  /**
26986
- * 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.
26987
- * @summary List contacts
26988
- * @param {string} [groupUuid] Filter contacts by group UUID
26989
- * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
26990
- * @param {number} [page] Page number
27685
+ * 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.
27686
+ * @summary Update a contact field
27687
+ * @param {string} profileUuid Profile uuid parameter
27688
+ * @param {string} fieldUuid Contact field uuid parameter
27689
+ * @param {ReachV1ContactsFieldsUpdateRequest} reachV1ContactsFieldsUpdateRequest
26991
27690
  * @param {*} [options] Override http request option.
26992
27691
  * @throws {RequiredError}
26993
27692
  */
26994
- listContactsV1: async (groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26995
- const localVarPath = `/api/reach/v1/contacts`;
27693
+ updateAContactFieldV1: async (profileUuid: string, fieldUuid: string, reachV1ContactsFieldsUpdateRequest: ReachV1ContactsFieldsUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27694
+ // verify required parameter 'profileUuid' is not null or undefined
27695
+ assertParamExists('updateAContactFieldV1', 'profileUuid', profileUuid)
27696
+ // verify required parameter 'fieldUuid' is not null or undefined
27697
+ assertParamExists('updateAContactFieldV1', 'fieldUuid', fieldUuid)
27698
+ // verify required parameter 'reachV1ContactsFieldsUpdateRequest' is not null or undefined
27699
+ assertParamExists('updateAContactFieldV1', 'reachV1ContactsFieldsUpdateRequest', reachV1ContactsFieldsUpdateRequest)
27700
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/fields/{fieldUuid}`
27701
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
27702
+ .replace(`{${"fieldUuid"}}`, encodeURIComponent(String(fieldUuid)));
26996
27703
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
26997
27704
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26998
27705
  let baseOptions;
@@ -27000,7 +27707,7 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
27000
27707
  baseOptions = configuration.baseOptions;
27001
27708
  }
27002
27709
 
27003
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
27710
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
27004
27711
  const localVarHeaderParameter = {} as any;
27005
27712
  const localVarQueryParameter = {} as any;
27006
27713
 
@@ -27008,23 +27715,14 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
27008
27715
  // http bearer authentication required
27009
27716
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
27010
27717
 
27011
- if (groupUuid !== undefined) {
27012
- localVarQueryParameter['group_uuid'] = groupUuid;
27013
- }
27014
-
27015
- if (subscriptionStatus !== undefined) {
27016
- localVarQueryParameter['subscription_status'] = subscriptionStatus;
27017
- }
27018
-
27019
- if (page !== undefined) {
27020
- localVarQueryParameter['page'] = page;
27021
- }
27022
-
27023
27718
 
27024
27719
 
27720
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27721
+
27025
27722
  setSearchParams(localVarUrlObj, localVarQueryParameter);
27026
27723
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27027
27724
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27725
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsFieldsUpdateRequest, localVarRequestOptions, configuration)
27028
27726
 
27029
27727
  return {
27030
27728
  url: toPathString(localVarUrlObj),
@@ -27035,243 +27733,201 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
27035
27733
  };
27036
27734
 
27037
27735
  /**
27038
- * ReachContactsApi - functional programming interface
27736
+ * ReachContactFieldsApi - functional programming interface
27039
27737
  * @export
27040
27738
  */
27041
- export const ReachContactsApiFp = function(configuration?: Configuration) {
27042
- const localVarAxiosParamCreator = ReachContactsApiAxiosParamCreator(configuration)
27739
+ export const ReachContactFieldsApiFp = function(configuration?: Configuration) {
27740
+ const localVarAxiosParamCreator = ReachContactFieldsApiAxiosParamCreator(configuration)
27043
27741
  return {
27044
27742
  /**
27045
- * 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.
27046
- * @summary Create a new contact
27047
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
27048
- * @param {*} [options] Override http request option.
27049
- * @deprecated
27050
- * @throws {RequiredError}
27051
- */
27052
- async createANewContactV1(reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
27053
- const localVarAxiosArgs = await localVarAxiosParamCreator.createANewContactV1(reachV1ContactsStoreRequest, options);
27054
- const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.createANewContactV1']?.[0]?.url;
27055
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27056
- },
27057
- /**
27058
- * 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.
27059
- * @summary Create new contacts
27743
+ * 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.
27744
+ * @summary Create a contact field
27060
27745
  * @param {string} profileUuid Profile uuid parameter
27061
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
27746
+ * @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
27062
27747
  * @param {*} [options] Override http request option.
27063
27748
  * @throws {RequiredError}
27064
27749
  */
27065
- async createNewContactsV1(profileUuid: string, reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
27066
- const localVarAxiosArgs = await localVarAxiosParamCreator.createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options);
27067
- const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.createNewContactsV1']?.[0]?.url;
27750
+ async createAContactFieldV1(profileUuid: string, reachV1ContactsFieldsStoreRequest: ReachV1ContactsFieldsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsFieldsContactFieldResource>> {
27751
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options);
27752
+ const localVarOperationServerBasePath = operationServerMap['ReachContactFieldsApi.createAContactFieldV1']?.[0]?.url;
27068
27753
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27069
27754
  },
27070
27755
  /**
27071
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
27072
- * @summary Delete a contact
27073
- * @param {string} uuid UUID of the contact to delete
27756
+ * 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.
27757
+ * @summary Delete a contact field
27758
+ * @param {string} profileUuid Profile uuid parameter
27759
+ * @param {string} fieldUuid Contact field uuid parameter
27074
27760
  * @param {*} [options] Override http request option.
27075
27761
  * @throws {RequiredError}
27076
27762
  */
27077
- async deleteAContactV1(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
27078
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAContactV1(uuid, options);
27079
- const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.deleteAContactV1']?.[0]?.url;
27763
+ async deleteAContactFieldV1(profileUuid: string, fieldUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
27764
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAContactFieldV1(profileUuid, fieldUuid, options);
27765
+ const localVarOperationServerBasePath = operationServerMap['ReachContactFieldsApi.deleteAContactFieldV1']?.[0]?.url;
27080
27766
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27081
27767
  },
27082
27768
  /**
27083
- * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
27084
- * @summary List contact groups
27769
+ * 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.
27770
+ * @summary List contact fields
27771
+ * @param {string} profileUuid Profile uuid parameter
27085
27772
  * @param {*} [options] Override http request option.
27086
- * @deprecated
27087
27773
  * @throws {RequiredError}
27088
27774
  */
27089
- async listContactGroupsV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsGroupsContactGroupResource>>> {
27090
- const localVarAxiosArgs = await localVarAxiosParamCreator.listContactGroupsV1(options);
27091
- const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.listContactGroupsV1']?.[0]?.url;
27775
+ async listContactFieldsV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsFieldsContactFieldResource>>> {
27776
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listContactFieldsV1(profileUuid, options);
27777
+ const localVarOperationServerBasePath = operationServerMap['ReachContactFieldsApi.listContactFieldsV1']?.[0]?.url;
27092
27778
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27093
27779
  },
27094
27780
  /**
27095
- * 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.
27096
- * @summary List contacts
27097
- * @param {string} [groupUuid] Filter contacts by group UUID
27098
- * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
27099
- * @param {number} [page] Page number
27781
+ * 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.
27782
+ * @summary Update a contact field
27783
+ * @param {string} profileUuid Profile uuid parameter
27784
+ * @param {string} fieldUuid Contact field uuid parameter
27785
+ * @param {ReachV1ContactsFieldsUpdateRequest} reachV1ContactsFieldsUpdateRequest
27100
27786
  * @param {*} [options] Override http request option.
27101
27787
  * @throws {RequiredError}
27102
27788
  */
27103
- async listContactsV1(groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListContactsV1200Response>> {
27104
- const localVarAxiosArgs = await localVarAxiosParamCreator.listContactsV1(groupUuid, subscriptionStatus, page, options);
27105
- const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.listContactsV1']?.[0]?.url;
27789
+ async updateAContactFieldV1(profileUuid: string, fieldUuid: string, reachV1ContactsFieldsUpdateRequest: ReachV1ContactsFieldsUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsFieldsContactFieldResource>> {
27790
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options);
27791
+ const localVarOperationServerBasePath = operationServerMap['ReachContactFieldsApi.updateAContactFieldV1']?.[0]?.url;
27106
27792
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27107
27793
  },
27108
27794
  }
27109
27795
  };
27110
27796
 
27111
27797
  /**
27112
- * ReachContactsApi - factory interface
27798
+ * ReachContactFieldsApi - factory interface
27113
27799
  * @export
27114
27800
  */
27115
- export const ReachContactsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
27116
- const localVarFp = ReachContactsApiFp(configuration)
27801
+ export const ReachContactFieldsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
27802
+ const localVarFp = ReachContactFieldsApiFp(configuration)
27117
27803
  return {
27118
27804
  /**
27119
- * 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.
27120
- * @summary Create a new contact
27121
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
27122
- * @param {*} [options] Override http request option.
27123
- * @deprecated
27124
- * @throws {RequiredError}
27125
- */
27126
- createANewContactV1(reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
27127
- return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
27128
- },
27129
- /**
27130
- * 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.
27131
- * @summary Create new contacts
27805
+ * 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.
27806
+ * @summary Create a contact field
27132
27807
  * @param {string} profileUuid Profile uuid parameter
27133
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
27808
+ * @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
27134
27809
  * @param {*} [options] Override http request option.
27135
27810
  * @throws {RequiredError}
27136
27811
  */
27137
- createNewContactsV1(profileUuid: string, reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
27138
- return localVarFp.createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
27812
+ createAContactFieldV1(profileUuid: string, reachV1ContactsFieldsStoreRequest: ReachV1ContactsFieldsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsFieldsContactFieldResource> {
27813
+ return localVarFp.createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options).then((request) => request(axios, basePath));
27139
27814
  },
27140
27815
  /**
27141
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
27142
- * @summary Delete a contact
27143
- * @param {string} uuid UUID of the contact to delete
27816
+ * 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.
27817
+ * @summary Delete a contact field
27818
+ * @param {string} profileUuid Profile uuid parameter
27819
+ * @param {string} fieldUuid Contact field uuid parameter
27144
27820
  * @param {*} [options] Override http request option.
27145
27821
  * @throws {RequiredError}
27146
27822
  */
27147
- deleteAContactV1(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
27148
- return localVarFp.deleteAContactV1(uuid, options).then((request) => request(axios, basePath));
27823
+ deleteAContactFieldV1(profileUuid: string, fieldUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
27824
+ return localVarFp.deleteAContactFieldV1(profileUuid, fieldUuid, options).then((request) => request(axios, basePath));
27149
27825
  },
27150
27826
  /**
27151
- * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
27152
- * @summary List contact groups
27827
+ * 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.
27828
+ * @summary List contact fields
27829
+ * @param {string} profileUuid Profile uuid parameter
27153
27830
  * @param {*} [options] Override http request option.
27154
- * @deprecated
27155
27831
  * @throws {RequiredError}
27156
27832
  */
27157
- listContactGroupsV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsGroupsContactGroupResource>> {
27158
- return localVarFp.listContactGroupsV1(options).then((request) => request(axios, basePath));
27833
+ listContactFieldsV1(profileUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsFieldsContactFieldResource>> {
27834
+ return localVarFp.listContactFieldsV1(profileUuid, options).then((request) => request(axios, basePath));
27159
27835
  },
27160
27836
  /**
27161
- * 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.
27162
- * @summary List contacts
27163
- * @param {string} [groupUuid] Filter contacts by group UUID
27164
- * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
27165
- * @param {number} [page] Page number
27837
+ * 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.
27838
+ * @summary Update a contact field
27839
+ * @param {string} profileUuid Profile uuid parameter
27840
+ * @param {string} fieldUuid Contact field uuid parameter
27841
+ * @param {ReachV1ContactsFieldsUpdateRequest} reachV1ContactsFieldsUpdateRequest
27166
27842
  * @param {*} [options] Override http request option.
27167
27843
  * @throws {RequiredError}
27168
27844
  */
27169
- listContactsV1(groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListContactsV1200Response> {
27170
- return localVarFp.listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(axios, basePath));
27845
+ updateAContactFieldV1(profileUuid: string, fieldUuid: string, reachV1ContactsFieldsUpdateRequest: ReachV1ContactsFieldsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsFieldsContactFieldResource> {
27846
+ return localVarFp.updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options).then((request) => request(axios, basePath));
27171
27847
  },
27172
27848
  };
27173
27849
  };
27174
27850
 
27175
27851
  /**
27176
- * ReachContactsApi - object-oriented interface
27852
+ * ReachContactFieldsApi - object-oriented interface
27177
27853
  * @export
27178
- * @class ReachContactsApi
27854
+ * @class ReachContactFieldsApi
27179
27855
  * @extends {BaseAPI}
27180
27856
  */
27181
- export class ReachContactsApi extends BaseAPI {
27182
- /**
27183
- * 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.
27184
- * @summary Create a new contact
27185
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
27186
- * @param {*} [options] Override http request option.
27187
- * @deprecated
27188
- * @throws {RequiredError}
27189
- * @memberof ReachContactsApi
27190
- */
27191
- public createANewContactV1(reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig) {
27192
- return ReachContactsApiFp(this.configuration).createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
27193
- }
27194
-
27857
+ export class ReachContactFieldsApi extends BaseAPI {
27195
27858
  /**
27196
- * 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.
27197
- * @summary Create new contacts
27859
+ * 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.
27860
+ * @summary Create a contact field
27198
27861
  * @param {string} profileUuid Profile uuid parameter
27199
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
27862
+ * @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
27200
27863
  * @param {*} [options] Override http request option.
27201
27864
  * @throws {RequiredError}
27202
- * @memberof ReachContactsApi
27865
+ * @memberof ReachContactFieldsApi
27203
27866
  */
27204
- public createNewContactsV1(profileUuid: string, reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig) {
27205
- return ReachContactsApiFp(this.configuration).createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
27867
+ public createAContactFieldV1(profileUuid: string, reachV1ContactsFieldsStoreRequest: ReachV1ContactsFieldsStoreRequest, options?: RawAxiosRequestConfig) {
27868
+ return ReachContactFieldsApiFp(this.configuration).createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options).then((request) => request(this.axios, this.basePath));
27206
27869
  }
27207
27870
 
27208
27871
  /**
27209
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
27210
- * @summary Delete a contact
27211
- * @param {string} uuid UUID of the contact to delete
27872
+ * 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.
27873
+ * @summary Delete a contact field
27874
+ * @param {string} profileUuid Profile uuid parameter
27875
+ * @param {string} fieldUuid Contact field uuid parameter
27212
27876
  * @param {*} [options] Override http request option.
27213
27877
  * @throws {RequiredError}
27214
- * @memberof ReachContactsApi
27878
+ * @memberof ReachContactFieldsApi
27215
27879
  */
27216
- public deleteAContactV1(uuid: string, options?: RawAxiosRequestConfig) {
27217
- return ReachContactsApiFp(this.configuration).deleteAContactV1(uuid, options).then((request) => request(this.axios, this.basePath));
27880
+ public deleteAContactFieldV1(profileUuid: string, fieldUuid: string, options?: RawAxiosRequestConfig) {
27881
+ return ReachContactFieldsApiFp(this.configuration).deleteAContactFieldV1(profileUuid, fieldUuid, options).then((request) => request(this.axios, this.basePath));
27218
27882
  }
27219
27883
 
27220
27884
  /**
27221
- * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
27222
- * @summary List contact groups
27885
+ * 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.
27886
+ * @summary List contact fields
27887
+ * @param {string} profileUuid Profile uuid parameter
27223
27888
  * @param {*} [options] Override http request option.
27224
- * @deprecated
27225
27889
  * @throws {RequiredError}
27226
- * @memberof ReachContactsApi
27890
+ * @memberof ReachContactFieldsApi
27227
27891
  */
27228
- public listContactGroupsV1(options?: RawAxiosRequestConfig) {
27229
- return ReachContactsApiFp(this.configuration).listContactGroupsV1(options).then((request) => request(this.axios, this.basePath));
27892
+ public listContactFieldsV1(profileUuid: string, options?: RawAxiosRequestConfig) {
27893
+ return ReachContactFieldsApiFp(this.configuration).listContactFieldsV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
27230
27894
  }
27231
27895
 
27232
27896
  /**
27233
- * 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.
27234
- * @summary List contacts
27235
- * @param {string} [groupUuid] Filter contacts by group UUID
27236
- * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
27237
- * @param {number} [page] Page number
27897
+ * 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.
27898
+ * @summary Update a contact field
27899
+ * @param {string} profileUuid Profile uuid parameter
27900
+ * @param {string} fieldUuid Contact field uuid parameter
27901
+ * @param {ReachV1ContactsFieldsUpdateRequest} reachV1ContactsFieldsUpdateRequest
27238
27902
  * @param {*} [options] Override http request option.
27239
27903
  * @throws {RequiredError}
27240
- * @memberof ReachContactsApi
27904
+ * @memberof ReachContactFieldsApi
27241
27905
  */
27242
- public listContactsV1(groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options?: RawAxiosRequestConfig) {
27243
- return ReachContactsApiFp(this.configuration).listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(this.axios, this.basePath));
27906
+ public updateAContactFieldV1(profileUuid: string, fieldUuid: string, reachV1ContactsFieldsUpdateRequest: ReachV1ContactsFieldsUpdateRequest, options?: RawAxiosRequestConfig) {
27907
+ return ReachContactFieldsApiFp(this.configuration).updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
27244
27908
  }
27245
27909
  }
27246
27910
 
27247
- /**
27248
- * @export
27249
- */
27250
- export const ListContactsV1SubscriptionStatusEnum = {
27251
- Subscribed: 'subscribed',
27252
- Unsubscribed: 'unsubscribed'
27253
- } as const;
27254
- export type ListContactsV1SubscriptionStatusEnum = typeof ListContactsV1SubscriptionStatusEnum[keyof typeof ListContactsV1SubscriptionStatusEnum];
27255
27911
 
27256
27912
 
27257
27913
  /**
27258
- * ReachProfilesApi - axios parameter creator
27914
+ * ReachContactsApi - axios parameter creator
27259
27915
  * @export
27260
27916
  */
27261
- export const ReachProfilesApiAxiosParamCreator = function (configuration?: Configuration) {
27917
+ export const ReachContactsApiAxiosParamCreator = function (configuration?: Configuration) {
27262
27918
  return {
27263
27919
  /**
27264
- * 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.
27265
- * @summary Get profile domain DNS status
27266
- * @param {string} profileUuid Profile uuid parameter
27920
+ * 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.
27921
+ * @summary Create a new contact
27922
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
27267
27923
  * @param {*} [options] Override http request option.
27924
+ * @deprecated
27268
27925
  * @throws {RequiredError}
27269
27926
  */
27270
- getProfileDomainDNSStatusV1: async (profileUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27271
- // verify required parameter 'profileUuid' is not null or undefined
27272
- assertParamExists('getProfileDomainDNSStatusV1', 'profileUuid', profileUuid)
27273
- const localVarPath = `/api/reach/v1/profiles/{profileUuid}/domains/dns-status`
27274
- .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
27927
+ createANewContactV1: async (reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27928
+ // verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
27929
+ assertParamExists('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest)
27930
+ const localVarPath = `/api/reach/v1/contacts`;
27275
27931
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27276
27932
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27277
27933
  let baseOptions;
@@ -27279,7 +27935,7 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration?: Confi
27279
27935
  baseOptions = configuration.baseOptions;
27280
27936
  }
27281
27937
 
27282
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
27938
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
27283
27939
  const localVarHeaderParameter = {} as any;
27284
27940
  const localVarQueryParameter = {} as any;
27285
27941
 
@@ -27289,9 +27945,12 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration?: Confi
27289
27945
 
27290
27946
 
27291
27947
 
27948
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27949
+
27292
27950
  setSearchParams(localVarUrlObj, localVarQueryParameter);
27293
27951
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27294
27952
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27953
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration)
27295
27954
 
27296
27955
  return {
27297
27956
  url: toPathString(localVarUrlObj),
@@ -27299,13 +27958,20 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration?: Confi
27299
27958
  };
27300
27959
  },
27301
27960
  /**
27302
- * This endpoint returns all profiles available to the client, including their basic information.
27303
- * @summary List Profiles
27961
+ * 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.
27962
+ * @summary Create contacts in bulk
27963
+ * @param {string} profileUuid Profile uuid parameter
27964
+ * @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
27304
27965
  * @param {*} [options] Override http request option.
27305
27966
  * @throws {RequiredError}
27306
27967
  */
27307
- listProfilesV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27308
- const localVarPath = `/api/reach/v1/profiles`;
27968
+ createContactsInBulkV1: async (profileUuid: string, reachV1ContactsBulkStoreRequest: ReachV1ContactsBulkStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27969
+ // verify required parameter 'profileUuid' is not null or undefined
27970
+ assertParamExists('createContactsInBulkV1', 'profileUuid', profileUuid)
27971
+ // verify required parameter 'reachV1ContactsBulkStoreRequest' is not null or undefined
27972
+ assertParamExists('createContactsInBulkV1', 'reachV1ContactsBulkStoreRequest', reachV1ContactsBulkStoreRequest)
27973
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/bulk`
27974
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
27309
27975
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27310
27976
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27311
27977
  let baseOptions;
@@ -27313,7 +27979,7 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration?: Confi
27313
27979
  baseOptions = configuration.baseOptions;
27314
27980
  }
27315
27981
 
27316
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
27982
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
27317
27983
  const localVarHeaderParameter = {} as any;
27318
27984
  const localVarQueryParameter = {} as any;
27319
27985
 
@@ -27323,130 +27989,1591 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration?: Confi
27323
27989
 
27324
27990
 
27325
27991
 
27992
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27993
+
27326
27994
  setSearchParams(localVarUrlObj, localVarQueryParameter);
27327
27995
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27328
27996
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27997
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsBulkStoreRequest, localVarRequestOptions, configuration)
27329
27998
 
27330
27999
  return {
27331
28000
  url: toPathString(localVarUrlObj),
27332
28001
  options: localVarRequestOptions,
27333
28002
  };
27334
28003
  },
27335
- }
27336
- };
27337
-
27338
- /**
27339
- * ReachProfilesApi - functional programming interface
27340
- * @export
27341
- */
27342
- export const ReachProfilesApiFp = function(configuration?: Configuration) {
27343
- const localVarAxiosParamCreator = ReachProfilesApiAxiosParamCreator(configuration)
27344
- return {
27345
28004
  /**
27346
- * 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.
27347
- * @summary Get profile domain DNS status
28005
+ * 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.
28006
+ * @summary Create new contacts
27348
28007
  * @param {string} profileUuid Profile uuid parameter
28008
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
27349
28009
  * @param {*} [options] Override http request option.
27350
28010
  * @throws {RequiredError}
27351
28011
  */
27352
- async getProfileDomainDNSStatusV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ProfilesDomainsDnsStatusResource>> {
27353
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileDomainDNSStatusV1(profileUuid, options);
27354
- const localVarOperationServerBasePath = operationServerMap['ReachProfilesApi.getProfileDomainDNSStatusV1']?.[0]?.url;
27355
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28012
+ createNewContactsV1: async (profileUuid: string, reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28013
+ // verify required parameter 'profileUuid' is not null or undefined
28014
+ assertParamExists('createNewContactsV1', 'profileUuid', profileUuid)
28015
+ // verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
28016
+ assertParamExists('createNewContactsV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest)
28017
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts`
28018
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
28019
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28020
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28021
+ let baseOptions;
28022
+ if (configuration) {
28023
+ baseOptions = configuration.baseOptions;
28024
+ }
28025
+
28026
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28027
+ const localVarHeaderParameter = {} as any;
28028
+ const localVarQueryParameter = {} as any;
28029
+
28030
+ // authentication apiToken required
28031
+ // http bearer authentication required
28032
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28033
+
28034
+
28035
+
28036
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28037
+
28038
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28039
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28040
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28041
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration)
28042
+
28043
+ return {
28044
+ url: toPathString(localVarUrlObj),
28045
+ options: localVarRequestOptions,
28046
+ };
27356
28047
  },
27357
28048
  /**
27358
- * This endpoint returns all profiles available to the client, including their basic information.
27359
- * @summary List Profiles
28049
+ * 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.
28050
+ * @summary Delete a contact
28051
+ * @param {string} uuid UUID of the contact to delete
27360
28052
  * @param {*} [options] Override http request option.
28053
+ * @deprecated
27361
28054
  * @throws {RequiredError}
27362
28055
  */
27363
- async listProfilesV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ProfilesProfileResource>>> {
27364
- const localVarAxiosArgs = await localVarAxiosParamCreator.listProfilesV1(options);
27365
- const localVarOperationServerBasePath = operationServerMap['ReachProfilesApi.listProfilesV1']?.[0]?.url;
27366
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27367
- },
27368
- }
27369
- };
28056
+ deleteAContactV1: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28057
+ // verify required parameter 'uuid' is not null or undefined
28058
+ assertParamExists('deleteAContactV1', 'uuid', uuid)
28059
+ const localVarPath = `/api/reach/v1/contacts/{uuid}`
28060
+ .replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
28061
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28062
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28063
+ let baseOptions;
28064
+ if (configuration) {
28065
+ baseOptions = configuration.baseOptions;
28066
+ }
27370
28067
 
27371
- /**
27372
- * ReachProfilesApi - factory interface
27373
- * @export
27374
- */
27375
- export const ReachProfilesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
27376
- const localVarFp = ReachProfilesApiFp(configuration)
27377
- return {
28068
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
28069
+ const localVarHeaderParameter = {} as any;
28070
+ const localVarQueryParameter = {} as any;
28071
+
28072
+ // authentication apiToken required
28073
+ // http bearer authentication required
28074
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28075
+
28076
+
28077
+
28078
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28079
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28080
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28081
+
28082
+ return {
28083
+ url: toPathString(localVarUrlObj),
28084
+ options: localVarRequestOptions,
28085
+ };
28086
+ },
27378
28087
  /**
27379
- * 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.
27380
- * @summary Get profile domain DNS status
28088
+ * Permanently delete a contact from a profile. The contact is removed together with its custom field values and tag assignments.
28089
+ * @summary Delete a profile contact
27381
28090
  * @param {string} profileUuid Profile uuid parameter
28091
+ * @param {string} contactUuid Contact uuid parameter
27382
28092
  * @param {*} [options] Override http request option.
27383
28093
  * @throws {RequiredError}
27384
28094
  */
27385
- getProfileDomainDNSStatusV1(profileUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ProfilesDomainsDnsStatusResource> {
27386
- return localVarFp.getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(axios, basePath));
28095
+ deleteAProfileContactV1: async (profileUuid: string, contactUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28096
+ // verify required parameter 'profileUuid' is not null or undefined
28097
+ assertParamExists('deleteAProfileContactV1', 'profileUuid', profileUuid)
28098
+ // verify required parameter 'contactUuid' is not null or undefined
28099
+ assertParamExists('deleteAProfileContactV1', 'contactUuid', contactUuid)
28100
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`
28101
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
28102
+ .replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
28103
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28104
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28105
+ let baseOptions;
28106
+ if (configuration) {
28107
+ baseOptions = configuration.baseOptions;
28108
+ }
28109
+
28110
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
28111
+ const localVarHeaderParameter = {} as any;
28112
+ const localVarQueryParameter = {} as any;
28113
+
28114
+ // authentication apiToken required
28115
+ // http bearer authentication required
28116
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28117
+
28118
+
28119
+
28120
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28121
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28122
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28123
+
28124
+ return {
28125
+ url: toPathString(localVarUrlObj),
28126
+ options: localVarRequestOptions,
28127
+ };
27387
28128
  },
27388
28129
  /**
27389
- * This endpoint returns all profiles available to the client, including their basic information.
27390
- * @summary List Profiles
28130
+ * 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.
28131
+ * @summary Get contact details
28132
+ * @param {string} profileUuid Profile uuid parameter
28133
+ * @param {string} contactUuid Contact uuid parameter
28134
+ * @param {*} [options] Override http request option.
28135
+ * @throws {RequiredError}
28136
+ */
28137
+ getContactDetailsV1: async (profileUuid: string, contactUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28138
+ // verify required parameter 'profileUuid' is not null or undefined
28139
+ assertParamExists('getContactDetailsV1', 'profileUuid', profileUuid)
28140
+ // verify required parameter 'contactUuid' is not null or undefined
28141
+ assertParamExists('getContactDetailsV1', 'contactUuid', contactUuid)
28142
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`
28143
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
28144
+ .replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
28145
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28146
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28147
+ let baseOptions;
28148
+ if (configuration) {
28149
+ baseOptions = configuration.baseOptions;
28150
+ }
28151
+
28152
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28153
+ const localVarHeaderParameter = {} as any;
28154
+ const localVarQueryParameter = {} as any;
28155
+
28156
+ // authentication apiToken required
28157
+ // http bearer authentication required
28158
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28159
+
28160
+
28161
+
28162
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28163
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28164
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28165
+
28166
+ return {
28167
+ url: toPathString(localVarUrlObj),
28168
+ options: localVarRequestOptions,
28169
+ };
28170
+ },
28171
+ /**
28172
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
28173
+ * @summary List contact groups
28174
+ * @param {*} [options] Override http request option.
28175
+ * @deprecated
28176
+ * @throws {RequiredError}
28177
+ */
28178
+ listContactGroupsV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28179
+ const localVarPath = `/api/reach/v1/contacts/groups`;
28180
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28181
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28182
+ let baseOptions;
28183
+ if (configuration) {
28184
+ baseOptions = configuration.baseOptions;
28185
+ }
28186
+
28187
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28188
+ const localVarHeaderParameter = {} as any;
28189
+ const localVarQueryParameter = {} as any;
28190
+
28191
+ // authentication apiToken required
28192
+ // http bearer authentication required
28193
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28194
+
28195
+
28196
+
28197
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28198
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28199
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28200
+
28201
+ return {
28202
+ url: toPathString(localVarUrlObj),
28203
+ options: localVarRequestOptions,
28204
+ };
28205
+ },
28206
+ /**
28207
+ * 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.
28208
+ * @summary List contacts
28209
+ * @param {string} [groupUuid] Filter contacts by group UUID
28210
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
28211
+ * @param {number} [page] Page number
28212
+ * @param {*} [options] Override http request option.
28213
+ * @deprecated
28214
+ * @throws {RequiredError}
28215
+ */
28216
+ listContactsV1: async (groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28217
+ const localVarPath = `/api/reach/v1/contacts`;
28218
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28219
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28220
+ let baseOptions;
28221
+ if (configuration) {
28222
+ baseOptions = configuration.baseOptions;
28223
+ }
28224
+
28225
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28226
+ const localVarHeaderParameter = {} as any;
28227
+ const localVarQueryParameter = {} as any;
28228
+
28229
+ // authentication apiToken required
28230
+ // http bearer authentication required
28231
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28232
+
28233
+ if (groupUuid !== undefined) {
28234
+ localVarQueryParameter['group_uuid'] = groupUuid;
28235
+ }
28236
+
28237
+ if (subscriptionStatus !== undefined) {
28238
+ localVarQueryParameter['subscription_status'] = subscriptionStatus;
28239
+ }
28240
+
28241
+ if (page !== undefined) {
28242
+ localVarQueryParameter['page'] = page;
28243
+ }
28244
+
28245
+
28246
+
28247
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28248
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28249
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28250
+
28251
+ return {
28252
+ url: toPathString(localVarUrlObj),
28253
+ options: localVarRequestOptions,
28254
+ };
28255
+ },
28256
+ /**
28257
+ * 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.
28258
+ * @summary List profile contacts
28259
+ * @param {string} profileUuid Profile uuid parameter
28260
+ * @param {ListProfileContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
28261
+ * @param {string} [tagUuid] Filter contacts by tag UUID
28262
+ * @param {string} [search] Search contacts by email
28263
+ * @param {number} [page] Page number
28264
+ * @param {number} [perPage] Number of items per page
28265
+ * @param {*} [options] Override http request option.
28266
+ * @throws {RequiredError}
28267
+ */
28268
+ listProfileContactsV1: async (profileUuid: string, subscriptionStatus?: ListProfileContactsV1SubscriptionStatusEnum, tagUuid?: string, search?: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28269
+ // verify required parameter 'profileUuid' is not null or undefined
28270
+ assertParamExists('listProfileContactsV1', 'profileUuid', profileUuid)
28271
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts`
28272
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
28273
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28274
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28275
+ let baseOptions;
28276
+ if (configuration) {
28277
+ baseOptions = configuration.baseOptions;
28278
+ }
28279
+
28280
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28281
+ const localVarHeaderParameter = {} as any;
28282
+ const localVarQueryParameter = {} as any;
28283
+
28284
+ // authentication apiToken required
28285
+ // http bearer authentication required
28286
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28287
+
28288
+ if (subscriptionStatus !== undefined) {
28289
+ localVarQueryParameter['subscription_status'] = subscriptionStatus;
28290
+ }
28291
+
28292
+ if (tagUuid !== undefined) {
28293
+ localVarQueryParameter['tag_uuid'] = tagUuid;
28294
+ }
28295
+
28296
+ if (search !== undefined) {
28297
+ localVarQueryParameter['search'] = search;
28298
+ }
28299
+
28300
+ if (page !== undefined) {
28301
+ localVarQueryParameter['page'] = page;
28302
+ }
28303
+
28304
+ if (perPage !== undefined) {
28305
+ localVarQueryParameter['per_page'] = perPage;
28306
+ }
28307
+
28308
+
28309
+
28310
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28311
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28312
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28313
+
28314
+ return {
28315
+ url: toPathString(localVarUrlObj),
28316
+ options: localVarRequestOptions,
28317
+ };
28318
+ },
28319
+ /**
28320
+ * 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}`.
28321
+ * @summary Update a contact
28322
+ * @param {string} profileUuid Profile uuid parameter
28323
+ * @param {string} contactUuid Contact uuid parameter
28324
+ * @param {ReachV1ContactsUpdateRequest} reachV1ContactsUpdateRequest
28325
+ * @param {*} [options] Override http request option.
28326
+ * @throws {RequiredError}
28327
+ */
28328
+ updateAContactV1: async (profileUuid: string, contactUuid: string, reachV1ContactsUpdateRequest: ReachV1ContactsUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28329
+ // verify required parameter 'profileUuid' is not null or undefined
28330
+ assertParamExists('updateAContactV1', 'profileUuid', profileUuid)
28331
+ // verify required parameter 'contactUuid' is not null or undefined
28332
+ assertParamExists('updateAContactV1', 'contactUuid', contactUuid)
28333
+ // verify required parameter 'reachV1ContactsUpdateRequest' is not null or undefined
28334
+ assertParamExists('updateAContactV1', 'reachV1ContactsUpdateRequest', reachV1ContactsUpdateRequest)
28335
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`
28336
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
28337
+ .replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
28338
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28339
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28340
+ let baseOptions;
28341
+ if (configuration) {
28342
+ baseOptions = configuration.baseOptions;
28343
+ }
28344
+
28345
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
28346
+ const localVarHeaderParameter = {} as any;
28347
+ const localVarQueryParameter = {} as any;
28348
+
28349
+ // authentication apiToken required
28350
+ // http bearer authentication required
28351
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28352
+
28353
+
28354
+
28355
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28356
+
28357
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28358
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28359
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28360
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsUpdateRequest, localVarRequestOptions, configuration)
28361
+
28362
+ return {
28363
+ url: toPathString(localVarUrlObj),
28364
+ options: localVarRequestOptions,
28365
+ };
28366
+ },
28367
+ }
28368
+ };
28369
+
28370
+ /**
28371
+ * ReachContactsApi - functional programming interface
28372
+ * @export
28373
+ */
28374
+ export const ReachContactsApiFp = function(configuration?: Configuration) {
28375
+ const localVarAxiosParamCreator = ReachContactsApiAxiosParamCreator(configuration)
28376
+ return {
28377
+ /**
28378
+ * 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.
28379
+ * @summary Create a new contact
28380
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
28381
+ * @param {*} [options] Override http request option.
28382
+ * @deprecated
28383
+ * @throws {RequiredError}
28384
+ */
28385
+ async createANewContactV1(reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
28386
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createANewContactV1(reachV1ContactsStoreRequest, options);
28387
+ const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.createANewContactV1']?.[0]?.url;
28388
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28389
+ },
28390
+ /**
28391
+ * 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.
28392
+ * @summary Create contacts in bulk
28393
+ * @param {string} profileUuid Profile uuid parameter
28394
+ * @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
28395
+ * @param {*} [options] Override http request option.
28396
+ * @throws {RequiredError}
28397
+ */
28398
+ async createContactsInBulkV1(profileUuid: string, reachV1ContactsBulkStoreRequest: ReachV1ContactsBulkStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
28399
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createContactsInBulkV1(profileUuid, reachV1ContactsBulkStoreRequest, options);
28400
+ const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.createContactsInBulkV1']?.[0]?.url;
28401
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28402
+ },
28403
+ /**
28404
+ * 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.
28405
+ * @summary Create new contacts
28406
+ * @param {string} profileUuid Profile uuid parameter
28407
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
28408
+ * @param {*} [options] Override http request option.
28409
+ * @throws {RequiredError}
28410
+ */
28411
+ async createNewContactsV1(profileUuid: string, reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
28412
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options);
28413
+ const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.createNewContactsV1']?.[0]?.url;
28414
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28415
+ },
28416
+ /**
28417
+ * 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.
28418
+ * @summary Delete a contact
28419
+ * @param {string} uuid UUID of the contact to delete
28420
+ * @param {*} [options] Override http request option.
28421
+ * @deprecated
28422
+ * @throws {RequiredError}
28423
+ */
28424
+ async deleteAContactV1(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
28425
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAContactV1(uuid, options);
28426
+ const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.deleteAContactV1']?.[0]?.url;
28427
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28428
+ },
28429
+ /**
28430
+ * Permanently delete a contact from a profile. The contact is removed together with its custom field values and tag assignments.
28431
+ * @summary Delete a profile contact
28432
+ * @param {string} profileUuid Profile uuid parameter
28433
+ * @param {string} contactUuid Contact uuid parameter
28434
+ * @param {*} [options] Override http request option.
28435
+ * @throws {RequiredError}
28436
+ */
28437
+ async deleteAProfileContactV1(profileUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
28438
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAProfileContactV1(profileUuid, contactUuid, options);
28439
+ const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.deleteAProfileContactV1']?.[0]?.url;
28440
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28441
+ },
28442
+ /**
28443
+ * 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.
28444
+ * @summary Get contact details
28445
+ * @param {string} profileUuid Profile uuid parameter
28446
+ * @param {string} contactUuid Contact uuid parameter
28447
+ * @param {*} [options] Override http request option.
28448
+ * @throws {RequiredError}
28449
+ */
28450
+ async getContactDetailsV1(profileUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsContactDetailsResource>> {
28451
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getContactDetailsV1(profileUuid, contactUuid, options);
28452
+ const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.getContactDetailsV1']?.[0]?.url;
28453
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28454
+ },
28455
+ /**
28456
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
28457
+ * @summary List contact groups
28458
+ * @param {*} [options] Override http request option.
28459
+ * @deprecated
28460
+ * @throws {RequiredError}
28461
+ */
28462
+ async listContactGroupsV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsGroupsContactGroupResource>>> {
28463
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listContactGroupsV1(options);
28464
+ const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.listContactGroupsV1']?.[0]?.url;
28465
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28466
+ },
28467
+ /**
28468
+ * 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.
28469
+ * @summary List contacts
28470
+ * @param {string} [groupUuid] Filter contacts by group UUID
28471
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
28472
+ * @param {number} [page] Page number
28473
+ * @param {*} [options] Override http request option.
28474
+ * @deprecated
28475
+ * @throws {RequiredError}
28476
+ */
28477
+ async listContactsV1(groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListContactsV1200Response>> {
28478
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listContactsV1(groupUuid, subscriptionStatus, page, options);
28479
+ const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.listContactsV1']?.[0]?.url;
28480
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28481
+ },
28482
+ /**
28483
+ * 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.
28484
+ * @summary List profile contacts
28485
+ * @param {string} profileUuid Profile uuid parameter
28486
+ * @param {ListProfileContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
28487
+ * @param {string} [tagUuid] Filter contacts by tag UUID
28488
+ * @param {string} [search] Search contacts by email
28489
+ * @param {number} [page] Page number
28490
+ * @param {number} [perPage] Number of items per page
28491
+ * @param {*} [options] Override http request option.
28492
+ * @throws {RequiredError}
28493
+ */
28494
+ async listProfileContactsV1(profileUuid: string, subscriptionStatus?: ListProfileContactsV1SubscriptionStatusEnum, tagUuid?: string, search?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileContactsV1200Response>> {
28495
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProfileContactsV1(profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options);
28496
+ const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.listProfileContactsV1']?.[0]?.url;
28497
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28498
+ },
28499
+ /**
28500
+ * 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}`.
28501
+ * @summary Update a contact
28502
+ * @param {string} profileUuid Profile uuid parameter
28503
+ * @param {string} contactUuid Contact uuid parameter
28504
+ * @param {ReachV1ContactsUpdateRequest} reachV1ContactsUpdateRequest
28505
+ * @param {*} [options] Override http request option.
28506
+ * @throws {RequiredError}
28507
+ */
28508
+ async updateAContactV1(profileUuid: string, contactUuid: string, reachV1ContactsUpdateRequest: ReachV1ContactsUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsProfileContactUpdateResource>> {
28509
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateAContactV1(profileUuid, contactUuid, reachV1ContactsUpdateRequest, options);
28510
+ const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.updateAContactV1']?.[0]?.url;
28511
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28512
+ },
28513
+ }
28514
+ };
28515
+
28516
+ /**
28517
+ * ReachContactsApi - factory interface
28518
+ * @export
28519
+ */
28520
+ export const ReachContactsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
28521
+ const localVarFp = ReachContactsApiFp(configuration)
28522
+ return {
28523
+ /**
28524
+ * 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.
28525
+ * @summary Create a new contact
28526
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
28527
+ * @param {*} [options] Override http request option.
28528
+ * @deprecated
28529
+ * @throws {RequiredError}
28530
+ */
28531
+ createANewContactV1(reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
28532
+ return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
28533
+ },
28534
+ /**
28535
+ * 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.
28536
+ * @summary Create contacts in bulk
28537
+ * @param {string} profileUuid Profile uuid parameter
28538
+ * @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
28539
+ * @param {*} [options] Override http request option.
28540
+ * @throws {RequiredError}
28541
+ */
28542
+ createContactsInBulkV1(profileUuid: string, reachV1ContactsBulkStoreRequest: ReachV1ContactsBulkStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
28543
+ return localVarFp.createContactsInBulkV1(profileUuid, reachV1ContactsBulkStoreRequest, options).then((request) => request(axios, basePath));
28544
+ },
28545
+ /**
28546
+ * 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.
28547
+ * @summary Create new contacts
28548
+ * @param {string} profileUuid Profile uuid parameter
28549
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
28550
+ * @param {*} [options] Override http request option.
28551
+ * @throws {RequiredError}
28552
+ */
28553
+ createNewContactsV1(profileUuid: string, reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
28554
+ return localVarFp.createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
28555
+ },
28556
+ /**
28557
+ * 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.
28558
+ * @summary Delete a contact
28559
+ * @param {string} uuid UUID of the contact to delete
28560
+ * @param {*} [options] Override http request option.
28561
+ * @deprecated
28562
+ * @throws {RequiredError}
28563
+ */
28564
+ deleteAContactV1(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
28565
+ return localVarFp.deleteAContactV1(uuid, options).then((request) => request(axios, basePath));
28566
+ },
28567
+ /**
28568
+ * Permanently delete a contact from a profile. The contact is removed together with its custom field values and tag assignments.
28569
+ * @summary Delete a profile contact
28570
+ * @param {string} profileUuid Profile uuid parameter
28571
+ * @param {string} contactUuid Contact uuid parameter
28572
+ * @param {*} [options] Override http request option.
28573
+ * @throws {RequiredError}
28574
+ */
28575
+ deleteAProfileContactV1(profileUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
28576
+ return localVarFp.deleteAProfileContactV1(profileUuid, contactUuid, options).then((request) => request(axios, basePath));
28577
+ },
28578
+ /**
28579
+ * 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.
28580
+ * @summary Get contact details
28581
+ * @param {string} profileUuid Profile uuid parameter
28582
+ * @param {string} contactUuid Contact uuid parameter
28583
+ * @param {*} [options] Override http request option.
28584
+ * @throws {RequiredError}
28585
+ */
28586
+ getContactDetailsV1(profileUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsContactDetailsResource> {
28587
+ return localVarFp.getContactDetailsV1(profileUuid, contactUuid, options).then((request) => request(axios, basePath));
28588
+ },
28589
+ /**
28590
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
28591
+ * @summary List contact groups
28592
+ * @param {*} [options] Override http request option.
28593
+ * @deprecated
28594
+ * @throws {RequiredError}
28595
+ */
28596
+ listContactGroupsV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsGroupsContactGroupResource>> {
28597
+ return localVarFp.listContactGroupsV1(options).then((request) => request(axios, basePath));
28598
+ },
28599
+ /**
28600
+ * 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.
28601
+ * @summary List contacts
28602
+ * @param {string} [groupUuid] Filter contacts by group UUID
28603
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
28604
+ * @param {number} [page] Page number
28605
+ * @param {*} [options] Override http request option.
28606
+ * @deprecated
28607
+ * @throws {RequiredError}
28608
+ */
28609
+ listContactsV1(groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListContactsV1200Response> {
28610
+ return localVarFp.listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(axios, basePath));
28611
+ },
28612
+ /**
28613
+ * 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.
28614
+ * @summary List profile contacts
28615
+ * @param {string} profileUuid Profile uuid parameter
28616
+ * @param {ListProfileContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
28617
+ * @param {string} [tagUuid] Filter contacts by tag UUID
28618
+ * @param {string} [search] Search contacts by email
28619
+ * @param {number} [page] Page number
28620
+ * @param {number} [perPage] Number of items per page
28621
+ * @param {*} [options] Override http request option.
28622
+ * @throws {RequiredError}
28623
+ */
28624
+ listProfileContactsV1(profileUuid: string, subscriptionStatus?: ListProfileContactsV1SubscriptionStatusEnum, tagUuid?: string, search?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileContactsV1200Response> {
28625
+ return localVarFp.listProfileContactsV1(profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options).then((request) => request(axios, basePath));
28626
+ },
28627
+ /**
28628
+ * 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}`.
28629
+ * @summary Update a contact
28630
+ * @param {string} profileUuid Profile uuid parameter
28631
+ * @param {string} contactUuid Contact uuid parameter
28632
+ * @param {ReachV1ContactsUpdateRequest} reachV1ContactsUpdateRequest
28633
+ * @param {*} [options] Override http request option.
28634
+ * @throws {RequiredError}
28635
+ */
28636
+ updateAContactV1(profileUuid: string, contactUuid: string, reachV1ContactsUpdateRequest: ReachV1ContactsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsProfileContactUpdateResource> {
28637
+ return localVarFp.updateAContactV1(profileUuid, contactUuid, reachV1ContactsUpdateRequest, options).then((request) => request(axios, basePath));
28638
+ },
28639
+ };
28640
+ };
28641
+
28642
+ /**
28643
+ * ReachContactsApi - object-oriented interface
28644
+ * @export
28645
+ * @class ReachContactsApi
28646
+ * @extends {BaseAPI}
28647
+ */
28648
+ export class ReachContactsApi extends BaseAPI {
28649
+ /**
28650
+ * 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.
28651
+ * @summary Create a new contact
28652
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
28653
+ * @param {*} [options] Override http request option.
28654
+ * @deprecated
28655
+ * @throws {RequiredError}
28656
+ * @memberof ReachContactsApi
28657
+ */
28658
+ public createANewContactV1(reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig) {
28659
+ return ReachContactsApiFp(this.configuration).createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
28660
+ }
28661
+
28662
+ /**
28663
+ * 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.
28664
+ * @summary Create contacts in bulk
28665
+ * @param {string} profileUuid Profile uuid parameter
28666
+ * @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
28667
+ * @param {*} [options] Override http request option.
28668
+ * @throws {RequiredError}
28669
+ * @memberof ReachContactsApi
28670
+ */
28671
+ public createContactsInBulkV1(profileUuid: string, reachV1ContactsBulkStoreRequest: ReachV1ContactsBulkStoreRequest, options?: RawAxiosRequestConfig) {
28672
+ return ReachContactsApiFp(this.configuration).createContactsInBulkV1(profileUuid, reachV1ContactsBulkStoreRequest, options).then((request) => request(this.axios, this.basePath));
28673
+ }
28674
+
28675
+ /**
28676
+ * 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.
28677
+ * @summary Create new contacts
28678
+ * @param {string} profileUuid Profile uuid parameter
28679
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
28680
+ * @param {*} [options] Override http request option.
28681
+ * @throws {RequiredError}
28682
+ * @memberof ReachContactsApi
28683
+ */
28684
+ public createNewContactsV1(profileUuid: string, reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig) {
28685
+ return ReachContactsApiFp(this.configuration).createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
28686
+ }
28687
+
28688
+ /**
28689
+ * 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.
28690
+ * @summary Delete a contact
28691
+ * @param {string} uuid UUID of the contact to delete
28692
+ * @param {*} [options] Override http request option.
28693
+ * @deprecated
28694
+ * @throws {RequiredError}
28695
+ * @memberof ReachContactsApi
28696
+ */
28697
+ public deleteAContactV1(uuid: string, options?: RawAxiosRequestConfig) {
28698
+ return ReachContactsApiFp(this.configuration).deleteAContactV1(uuid, options).then((request) => request(this.axios, this.basePath));
28699
+ }
28700
+
28701
+ /**
28702
+ * Permanently delete a contact from a profile. The contact is removed together with its custom field values and tag assignments.
28703
+ * @summary Delete a profile contact
28704
+ * @param {string} profileUuid Profile uuid parameter
28705
+ * @param {string} contactUuid Contact uuid parameter
28706
+ * @param {*} [options] Override http request option.
28707
+ * @throws {RequiredError}
28708
+ * @memberof ReachContactsApi
28709
+ */
28710
+ public deleteAProfileContactV1(profileUuid: string, contactUuid: string, options?: RawAxiosRequestConfig) {
28711
+ return ReachContactsApiFp(this.configuration).deleteAProfileContactV1(profileUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
28712
+ }
28713
+
28714
+ /**
28715
+ * 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.
28716
+ * @summary Get contact details
28717
+ * @param {string} profileUuid Profile uuid parameter
28718
+ * @param {string} contactUuid Contact uuid parameter
28719
+ * @param {*} [options] Override http request option.
28720
+ * @throws {RequiredError}
28721
+ * @memberof ReachContactsApi
28722
+ */
28723
+ public getContactDetailsV1(profileUuid: string, contactUuid: string, options?: RawAxiosRequestConfig) {
28724
+ return ReachContactsApiFp(this.configuration).getContactDetailsV1(profileUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
28725
+ }
28726
+
28727
+ /**
28728
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
28729
+ * @summary List contact groups
28730
+ * @param {*} [options] Override http request option.
28731
+ * @deprecated
28732
+ * @throws {RequiredError}
28733
+ * @memberof ReachContactsApi
28734
+ */
28735
+ public listContactGroupsV1(options?: RawAxiosRequestConfig) {
28736
+ return ReachContactsApiFp(this.configuration).listContactGroupsV1(options).then((request) => request(this.axios, this.basePath));
28737
+ }
28738
+
28739
+ /**
28740
+ * 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.
28741
+ * @summary List contacts
28742
+ * @param {string} [groupUuid] Filter contacts by group UUID
28743
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
28744
+ * @param {number} [page] Page number
28745
+ * @param {*} [options] Override http request option.
28746
+ * @deprecated
28747
+ * @throws {RequiredError}
28748
+ * @memberof ReachContactsApi
28749
+ */
28750
+ public listContactsV1(groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options?: RawAxiosRequestConfig) {
28751
+ return ReachContactsApiFp(this.configuration).listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(this.axios, this.basePath));
28752
+ }
28753
+
28754
+ /**
28755
+ * 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.
28756
+ * @summary List profile contacts
28757
+ * @param {string} profileUuid Profile uuid parameter
28758
+ * @param {ListProfileContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
28759
+ * @param {string} [tagUuid] Filter contacts by tag UUID
28760
+ * @param {string} [search] Search contacts by email
28761
+ * @param {number} [page] Page number
28762
+ * @param {number} [perPage] Number of items per page
28763
+ * @param {*} [options] Override http request option.
28764
+ * @throws {RequiredError}
28765
+ * @memberof ReachContactsApi
28766
+ */
28767
+ public listProfileContactsV1(profileUuid: string, subscriptionStatus?: ListProfileContactsV1SubscriptionStatusEnum, tagUuid?: string, search?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
28768
+ return ReachContactsApiFp(this.configuration).listProfileContactsV1(profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options).then((request) => request(this.axios, this.basePath));
28769
+ }
28770
+
28771
+ /**
28772
+ * 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}`.
28773
+ * @summary Update a contact
28774
+ * @param {string} profileUuid Profile uuid parameter
28775
+ * @param {string} contactUuid Contact uuid parameter
28776
+ * @param {ReachV1ContactsUpdateRequest} reachV1ContactsUpdateRequest
28777
+ * @param {*} [options] Override http request option.
28778
+ * @throws {RequiredError}
28779
+ * @memberof ReachContactsApi
28780
+ */
28781
+ public updateAContactV1(profileUuid: string, contactUuid: string, reachV1ContactsUpdateRequest: ReachV1ContactsUpdateRequest, options?: RawAxiosRequestConfig) {
28782
+ return ReachContactsApiFp(this.configuration).updateAContactV1(profileUuid, contactUuid, reachV1ContactsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
28783
+ }
28784
+ }
28785
+
28786
+ /**
28787
+ * @export
28788
+ */
28789
+ export const ListContactsV1SubscriptionStatusEnum = {
28790
+ Subscribed: 'subscribed',
28791
+ Unsubscribed: 'unsubscribed',
28792
+ Confirmed: 'confirmed',
28793
+ Pending: 'pending'
28794
+ } as const;
28795
+ export type ListContactsV1SubscriptionStatusEnum = typeof ListContactsV1SubscriptionStatusEnum[keyof typeof ListContactsV1SubscriptionStatusEnum];
28796
+ /**
28797
+ * @export
28798
+ */
28799
+ export const ListProfileContactsV1SubscriptionStatusEnum = {
28800
+ Subscribed: 'subscribed',
28801
+ Unsubscribed: 'unsubscribed',
28802
+ Confirmed: 'confirmed',
28803
+ Pending: 'pending'
28804
+ } as const;
28805
+ export type ListProfileContactsV1SubscriptionStatusEnum = typeof ListProfileContactsV1SubscriptionStatusEnum[keyof typeof ListProfileContactsV1SubscriptionStatusEnum];
28806
+
28807
+
28808
+ /**
28809
+ * ReachProfilesApi - axios parameter creator
28810
+ * @export
28811
+ */
28812
+ export const ReachProfilesApiAxiosParamCreator = function (configuration?: Configuration) {
28813
+ return {
28814
+ /**
28815
+ * 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.
28816
+ * @summary Get profile domain DNS status
28817
+ * @param {string} profileUuid Profile uuid parameter
28818
+ * @param {*} [options] Override http request option.
28819
+ * @throws {RequiredError}
28820
+ */
28821
+ getProfileDomainDNSStatusV1: async (profileUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28822
+ // verify required parameter 'profileUuid' is not null or undefined
28823
+ assertParamExists('getProfileDomainDNSStatusV1', 'profileUuid', profileUuid)
28824
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/domains/dns-status`
28825
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
28826
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28827
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28828
+ let baseOptions;
28829
+ if (configuration) {
28830
+ baseOptions = configuration.baseOptions;
28831
+ }
28832
+
28833
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28834
+ const localVarHeaderParameter = {} as any;
28835
+ const localVarQueryParameter = {} as any;
28836
+
28837
+ // authentication apiToken required
28838
+ // http bearer authentication required
28839
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28840
+
28841
+
28842
+
28843
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28844
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28845
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28846
+
28847
+ return {
28848
+ url: toPathString(localVarUrlObj),
28849
+ options: localVarRequestOptions,
28850
+ };
28851
+ },
28852
+ /**
28853
+ * This endpoint returns all profiles available to the client, including their basic information.
28854
+ * @summary List Profiles
28855
+ * @param {*} [options] Override http request option.
28856
+ * @throws {RequiredError}
28857
+ */
28858
+ listProfilesV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28859
+ const localVarPath = `/api/reach/v1/profiles`;
28860
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28861
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28862
+ let baseOptions;
28863
+ if (configuration) {
28864
+ baseOptions = configuration.baseOptions;
28865
+ }
28866
+
28867
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28868
+ const localVarHeaderParameter = {} as any;
28869
+ const localVarQueryParameter = {} as any;
28870
+
28871
+ // authentication apiToken required
28872
+ // http bearer authentication required
28873
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28874
+
28875
+
28876
+
28877
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28878
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28879
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28880
+
28881
+ return {
28882
+ url: toPathString(localVarUrlObj),
28883
+ options: localVarRequestOptions,
28884
+ };
28885
+ },
28886
+ }
28887
+ };
28888
+
28889
+ /**
28890
+ * ReachProfilesApi - functional programming interface
28891
+ * @export
28892
+ */
28893
+ export const ReachProfilesApiFp = function(configuration?: Configuration) {
28894
+ const localVarAxiosParamCreator = ReachProfilesApiAxiosParamCreator(configuration)
28895
+ return {
28896
+ /**
28897
+ * 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.
28898
+ * @summary Get profile domain DNS status
28899
+ * @param {string} profileUuid Profile uuid parameter
28900
+ * @param {*} [options] Override http request option.
28901
+ * @throws {RequiredError}
28902
+ */
28903
+ async getProfileDomainDNSStatusV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ProfilesDomainsDnsStatusResource>> {
28904
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileDomainDNSStatusV1(profileUuid, options);
28905
+ const localVarOperationServerBasePath = operationServerMap['ReachProfilesApi.getProfileDomainDNSStatusV1']?.[0]?.url;
28906
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28907
+ },
28908
+ /**
28909
+ * This endpoint returns all profiles available to the client, including their basic information.
28910
+ * @summary List Profiles
28911
+ * @param {*} [options] Override http request option.
28912
+ * @throws {RequiredError}
28913
+ */
28914
+ async listProfilesV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ProfilesProfileResource>>> {
28915
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProfilesV1(options);
28916
+ const localVarOperationServerBasePath = operationServerMap['ReachProfilesApi.listProfilesV1']?.[0]?.url;
28917
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28918
+ },
28919
+ }
28920
+ };
28921
+
28922
+ /**
28923
+ * ReachProfilesApi - factory interface
28924
+ * @export
28925
+ */
28926
+ export const ReachProfilesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
28927
+ const localVarFp = ReachProfilesApiFp(configuration)
28928
+ return {
28929
+ /**
28930
+ * 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.
28931
+ * @summary Get profile domain DNS status
28932
+ * @param {string} profileUuid Profile uuid parameter
28933
+ * @param {*} [options] Override http request option.
28934
+ * @throws {RequiredError}
28935
+ */
28936
+ getProfileDomainDNSStatusV1(profileUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ProfilesDomainsDnsStatusResource> {
28937
+ return localVarFp.getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(axios, basePath));
28938
+ },
28939
+ /**
28940
+ * This endpoint returns all profiles available to the client, including their basic information.
28941
+ * @summary List Profiles
28942
+ * @param {*} [options] Override http request option.
28943
+ * @throws {RequiredError}
28944
+ */
28945
+ listProfilesV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ProfilesProfileResource>> {
28946
+ return localVarFp.listProfilesV1(options).then((request) => request(axios, basePath));
28947
+ },
28948
+ };
28949
+ };
28950
+
28951
+ /**
28952
+ * ReachProfilesApi - object-oriented interface
28953
+ * @export
28954
+ * @class ReachProfilesApi
28955
+ * @extends {BaseAPI}
28956
+ */
28957
+ export class ReachProfilesApi extends BaseAPI {
28958
+ /**
28959
+ * 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.
28960
+ * @summary Get profile domain DNS status
28961
+ * @param {string} profileUuid Profile uuid parameter
28962
+ * @param {*} [options] Override http request option.
28963
+ * @throws {RequiredError}
28964
+ * @memberof ReachProfilesApi
28965
+ */
28966
+ public getProfileDomainDNSStatusV1(profileUuid: string, options?: RawAxiosRequestConfig) {
28967
+ return ReachProfilesApiFp(this.configuration).getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
28968
+ }
28969
+
28970
+ /**
28971
+ * This endpoint returns all profiles available to the client, including their basic information.
28972
+ * @summary List Profiles
28973
+ * @param {*} [options] Override http request option.
28974
+ * @throws {RequiredError}
28975
+ * @memberof ReachProfilesApi
28976
+ */
28977
+ public listProfilesV1(options?: RawAxiosRequestConfig) {
28978
+ return ReachProfilesApiFp(this.configuration).listProfilesV1(options).then((request) => request(this.axios, this.basePath));
28979
+ }
28980
+ }
28981
+
28982
+
28983
+
28984
+ /**
28985
+ * ReachSegmentsApi - axios parameter creator
28986
+ * @export
28987
+ */
28988
+ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Configuration) {
28989
+ return {
28990
+ /**
28991
+ * 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.
28992
+ * @summary Create a new contact segment
28993
+ * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
28994
+ * @param {*} [options] Override http request option.
28995
+ * @throws {RequiredError}
28996
+ */
28997
+ createANewContactSegmentV1: async (reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28998
+ // verify required parameter 'reachV1ContactsSegmentsStoreRequest' is not null or undefined
28999
+ assertParamExists('createANewContactSegmentV1', 'reachV1ContactsSegmentsStoreRequest', reachV1ContactsSegmentsStoreRequest)
29000
+ const localVarPath = `/api/reach/v1/segmentation/segments`;
29001
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29002
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29003
+ let baseOptions;
29004
+ if (configuration) {
29005
+ baseOptions = configuration.baseOptions;
29006
+ }
29007
+
29008
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29009
+ const localVarHeaderParameter = {} as any;
29010
+ const localVarQueryParameter = {} as any;
29011
+
29012
+ // authentication apiToken required
29013
+ // http bearer authentication required
29014
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
29015
+
29016
+
29017
+
29018
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29019
+
29020
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29021
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29022
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29023
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsSegmentsStoreRequest, localVarRequestOptions, configuration)
29024
+
29025
+ return {
29026
+ url: toPathString(localVarUrlObj),
29027
+ options: localVarRequestOptions,
29028
+ };
29029
+ },
29030
+ /**
29031
+ * 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.
29032
+ * @summary Get segment details
29033
+ * @param {string} segmentUuid Segment uuid parameter
29034
+ * @param {*} [options] Override http request option.
29035
+ * @throws {RequiredError}
29036
+ */
29037
+ getSegmentDetailsV1: async (segmentUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29038
+ // verify required parameter 'segmentUuid' is not null or undefined
29039
+ assertParamExists('getSegmentDetailsV1', 'segmentUuid', segmentUuid)
29040
+ const localVarPath = `/api/reach/v1/segmentation/segments/{segmentUuid}`
29041
+ .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
29042
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29043
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29044
+ let baseOptions;
29045
+ if (configuration) {
29046
+ baseOptions = configuration.baseOptions;
29047
+ }
29048
+
29049
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29050
+ const localVarHeaderParameter = {} as any;
29051
+ const localVarQueryParameter = {} as any;
29052
+
29053
+ // authentication apiToken required
29054
+ // http bearer authentication required
29055
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
29056
+
29057
+
29058
+
29059
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29060
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29061
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29062
+
29063
+ return {
29064
+ url: toPathString(localVarUrlObj),
29065
+ options: localVarRequestOptions,
29066
+ };
29067
+ },
29068
+ /**
29069
+ * 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.
29070
+ * @summary List profile segment contacts
29071
+ * @param {string} profileUuid Profile uuid parameter
29072
+ * @param {string} segmentUuid Segment uuid parameter
29073
+ * @param {number} [page] Page number
29074
+ * @param {number} [perPage] Number of items per page
29075
+ * @param {*} [options] Override http request option.
29076
+ * @throws {RequiredError}
29077
+ */
29078
+ listProfileSegmentContactsV1: async (profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29079
+ // verify required parameter 'profileUuid' is not null or undefined
29080
+ assertParamExists('listProfileSegmentContactsV1', 'profileUuid', profileUuid)
29081
+ // verify required parameter 'segmentUuid' is not null or undefined
29082
+ assertParamExists('listProfileSegmentContactsV1', 'segmentUuid', segmentUuid)
29083
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts`
29084
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
29085
+ .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
29086
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29087
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29088
+ let baseOptions;
29089
+ if (configuration) {
29090
+ baseOptions = configuration.baseOptions;
29091
+ }
29092
+
29093
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29094
+ const localVarHeaderParameter = {} as any;
29095
+ const localVarQueryParameter = {} as any;
29096
+
29097
+ // authentication apiToken required
29098
+ // http bearer authentication required
29099
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
29100
+
29101
+ if (page !== undefined) {
29102
+ localVarQueryParameter['page'] = page;
29103
+ }
29104
+
29105
+ if (perPage !== undefined) {
29106
+ localVarQueryParameter['per_page'] = perPage;
29107
+ }
29108
+
29109
+
29110
+
29111
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29112
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29113
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29114
+
29115
+ return {
29116
+ url: toPathString(localVarUrlObj),
29117
+ options: localVarRequestOptions,
29118
+ };
29119
+ },
29120
+ /**
29121
+ * 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.
29122
+ * @summary List segment contacts
29123
+ * @param {string} segmentUuid Segment uuid parameter
29124
+ * @param {number} [page] Page number
29125
+ * @param {number} [perPage] Number of items per page
29126
+ * @param {*} [options] Override http request option.
29127
+ * @throws {RequiredError}
29128
+ */
29129
+ listSegmentContactsV1: async (segmentUuid: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29130
+ // verify required parameter 'segmentUuid' is not null or undefined
29131
+ assertParamExists('listSegmentContactsV1', 'segmentUuid', segmentUuid)
29132
+ const localVarPath = `/api/reach/v1/segmentation/segments/{segmentUuid}/contacts`
29133
+ .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
29134
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29135
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29136
+ let baseOptions;
29137
+ if (configuration) {
29138
+ baseOptions = configuration.baseOptions;
29139
+ }
29140
+
29141
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29142
+ const localVarHeaderParameter = {} as any;
29143
+ const localVarQueryParameter = {} as any;
29144
+
29145
+ // authentication apiToken required
29146
+ // http bearer authentication required
29147
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
29148
+
29149
+ if (page !== undefined) {
29150
+ localVarQueryParameter['page'] = page;
29151
+ }
29152
+
29153
+ if (perPage !== undefined) {
29154
+ localVarQueryParameter['per_page'] = perPage;
29155
+ }
29156
+
29157
+
29158
+
29159
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29160
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29161
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29162
+
29163
+ return {
29164
+ url: toPathString(localVarUrlObj),
29165
+ options: localVarRequestOptions,
29166
+ };
29167
+ },
29168
+ /**
29169
+ * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
29170
+ * @summary List segments
29171
+ * @param {*} [options] Override http request option.
29172
+ * @throws {RequiredError}
29173
+ */
29174
+ listSegmentsV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29175
+ const localVarPath = `/api/reach/v1/segmentation/segments`;
29176
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29177
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29178
+ let baseOptions;
29179
+ if (configuration) {
29180
+ baseOptions = configuration.baseOptions;
29181
+ }
29182
+
29183
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29184
+ const localVarHeaderParameter = {} as any;
29185
+ const localVarQueryParameter = {} as any;
29186
+
29187
+ // authentication apiToken required
29188
+ // http bearer authentication required
29189
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
29190
+
29191
+
29192
+
29193
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29194
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29195
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29196
+
29197
+ return {
29198
+ url: toPathString(localVarUrlObj),
29199
+ options: localVarRequestOptions,
29200
+ };
29201
+ },
29202
+ }
29203
+ };
29204
+
29205
+ /**
29206
+ * ReachSegmentsApi - functional programming interface
29207
+ * @export
29208
+ */
29209
+ export const ReachSegmentsApiFp = function(configuration?: Configuration) {
29210
+ const localVarAxiosParamCreator = ReachSegmentsApiAxiosParamCreator(configuration)
29211
+ return {
29212
+ /**
29213
+ * 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.
29214
+ * @summary Create a new contact segment
29215
+ * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
29216
+ * @param {*} [options] Override http request option.
29217
+ * @throws {RequiredError}
29218
+ */
29219
+ async createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>> {
29220
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options);
29221
+ const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.createANewContactSegmentV1']?.[0]?.url;
29222
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29223
+ },
29224
+ /**
29225
+ * 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.
29226
+ * @summary Get segment details
29227
+ * @param {string} segmentUuid Segment uuid parameter
29228
+ * @param {*} [options] Override http request option.
29229
+ * @throws {RequiredError}
29230
+ */
29231
+ async getSegmentDetailsV1(segmentUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>> {
29232
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSegmentDetailsV1(segmentUuid, options);
29233
+ const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.getSegmentDetailsV1']?.[0]?.url;
29234
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29235
+ },
29236
+ /**
29237
+ * 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.
29238
+ * @summary List profile segment contacts
29239
+ * @param {string} profileUuid Profile uuid parameter
29240
+ * @param {string} segmentUuid Segment uuid parameter
29241
+ * @param {number} [page] Page number
29242
+ * @param {number} [perPage] Number of items per page
29243
+ * @param {*} [options] Override http request option.
29244
+ * @throws {RequiredError}
29245
+ */
29246
+ async listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentContactsV1200Response>> {
29247
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options);
29248
+ const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.listProfileSegmentContactsV1']?.[0]?.url;
29249
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29250
+ },
29251
+ /**
29252
+ * 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.
29253
+ * @summary List segment contacts
29254
+ * @param {string} segmentUuid Segment uuid parameter
29255
+ * @param {number} [page] Page number
29256
+ * @param {number} [perPage] Number of items per page
27391
29257
  * @param {*} [options] Override http request option.
27392
29258
  * @throws {RequiredError}
27393
29259
  */
27394
- listProfilesV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ProfilesProfileResource>> {
27395
- return localVarFp.listProfilesV1(options).then((request) => request(axios, basePath));
29260
+ async listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentContactsV1200Response>> {
29261
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSegmentContactsV1(segmentUuid, page, perPage, options);
29262
+ const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.listSegmentContactsV1']?.[0]?.url;
29263
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29264
+ },
29265
+ /**
29266
+ * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
29267
+ * @summary List segments
29268
+ * @param {*} [options] Override http request option.
29269
+ * @throws {RequiredError}
29270
+ */
29271
+ async listSegmentsV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsSegmentsContactSegmentResource>>> {
29272
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSegmentsV1(options);
29273
+ const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.listSegmentsV1']?.[0]?.url;
29274
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29275
+ },
29276
+ }
29277
+ };
29278
+
29279
+ /**
29280
+ * ReachSegmentsApi - factory interface
29281
+ * @export
29282
+ */
29283
+ export const ReachSegmentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
29284
+ const localVarFp = ReachSegmentsApiFp(configuration)
29285
+ return {
29286
+ /**
29287
+ * 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.
29288
+ * @summary Create a new contact segment
29289
+ * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
29290
+ * @param {*} [options] Override http request option.
29291
+ * @throws {RequiredError}
29292
+ */
29293
+ createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource> {
29294
+ return localVarFp.createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(axios, basePath));
29295
+ },
29296
+ /**
29297
+ * 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.
29298
+ * @summary Get segment details
29299
+ * @param {string} segmentUuid Segment uuid parameter
29300
+ * @param {*} [options] Override http request option.
29301
+ * @throws {RequiredError}
29302
+ */
29303
+ getSegmentDetailsV1(segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource> {
29304
+ return localVarFp.getSegmentDetailsV1(segmentUuid, options).then((request) => request(axios, basePath));
29305
+ },
29306
+ /**
29307
+ * 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.
29308
+ * @summary List profile segment contacts
29309
+ * @param {string} profileUuid Profile uuid parameter
29310
+ * @param {string} segmentUuid Segment uuid parameter
29311
+ * @param {number} [page] Page number
29312
+ * @param {number} [perPage] Number of items per page
29313
+ * @param {*} [options] Override http request option.
29314
+ * @throws {RequiredError}
29315
+ */
29316
+ listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentContactsV1200Response> {
29317
+ return localVarFp.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
29318
+ },
29319
+ /**
29320
+ * 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.
29321
+ * @summary List segment contacts
29322
+ * @param {string} segmentUuid Segment uuid parameter
29323
+ * @param {number} [page] Page number
29324
+ * @param {number} [perPage] Number of items per page
29325
+ * @param {*} [options] Override http request option.
29326
+ * @throws {RequiredError}
29327
+ */
29328
+ listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentContactsV1200Response> {
29329
+ return localVarFp.listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
29330
+ },
29331
+ /**
29332
+ * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
29333
+ * @summary List segments
29334
+ * @param {*} [options] Override http request option.
29335
+ * @throws {RequiredError}
29336
+ */
29337
+ listSegmentsV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsSegmentsContactSegmentResource>> {
29338
+ return localVarFp.listSegmentsV1(options).then((request) => request(axios, basePath));
27396
29339
  },
27397
29340
  };
27398
29341
  };
27399
29342
 
27400
29343
  /**
27401
- * ReachProfilesApi - object-oriented interface
29344
+ * ReachSegmentsApi - object-oriented interface
27402
29345
  * @export
27403
- * @class ReachProfilesApi
29346
+ * @class ReachSegmentsApi
27404
29347
  * @extends {BaseAPI}
27405
29348
  */
27406
- export class ReachProfilesApi extends BaseAPI {
29349
+ export class ReachSegmentsApi extends BaseAPI {
27407
29350
  /**
27408
- * 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.
27409
- * @summary Get profile domain DNS status
29351
+ * 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.
29352
+ * @summary Create a new contact segment
29353
+ * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
29354
+ * @param {*} [options] Override http request option.
29355
+ * @throws {RequiredError}
29356
+ * @memberof ReachSegmentsApi
29357
+ */
29358
+ public createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig) {
29359
+ return ReachSegmentsApiFp(this.configuration).createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(this.axios, this.basePath));
29360
+ }
29361
+
29362
+ /**
29363
+ * 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.
29364
+ * @summary Get segment details
29365
+ * @param {string} segmentUuid Segment uuid parameter
29366
+ * @param {*} [options] Override http request option.
29367
+ * @throws {RequiredError}
29368
+ * @memberof ReachSegmentsApi
29369
+ */
29370
+ public getSegmentDetailsV1(segmentUuid: string, options?: RawAxiosRequestConfig) {
29371
+ return ReachSegmentsApiFp(this.configuration).getSegmentDetailsV1(segmentUuid, options).then((request) => request(this.axios, this.basePath));
29372
+ }
29373
+
29374
+ /**
29375
+ * 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.
29376
+ * @summary List profile segment contacts
27410
29377
  * @param {string} profileUuid Profile uuid parameter
29378
+ * @param {string} segmentUuid Segment uuid parameter
29379
+ * @param {number} [page] Page number
29380
+ * @param {number} [perPage] Number of items per page
27411
29381
  * @param {*} [options] Override http request option.
27412
29382
  * @throws {RequiredError}
27413
- * @memberof ReachProfilesApi
29383
+ * @memberof ReachSegmentsApi
27414
29384
  */
27415
- public getProfileDomainDNSStatusV1(profileUuid: string, options?: RawAxiosRequestConfig) {
27416
- return ReachProfilesApiFp(this.configuration).getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
29385
+ public listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
29386
+ return ReachSegmentsApiFp(this.configuration).listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
27417
29387
  }
27418
29388
 
27419
29389
  /**
27420
- * This endpoint returns all profiles available to the client, including their basic information.
27421
- * @summary List Profiles
29390
+ * 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.
29391
+ * @summary List segment contacts
29392
+ * @param {string} segmentUuid Segment uuid parameter
29393
+ * @param {number} [page] Page number
29394
+ * @param {number} [perPage] Number of items per page
27422
29395
  * @param {*} [options] Override http request option.
27423
29396
  * @throws {RequiredError}
27424
- * @memberof ReachProfilesApi
29397
+ * @memberof ReachSegmentsApi
27425
29398
  */
27426
- public listProfilesV1(options?: RawAxiosRequestConfig) {
27427
- return ReachProfilesApiFp(this.configuration).listProfilesV1(options).then((request) => request(this.axios, this.basePath));
29399
+ public listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
29400
+ return ReachSegmentsApiFp(this.configuration).listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
29401
+ }
29402
+
29403
+ /**
29404
+ * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
29405
+ * @summary List segments
29406
+ * @param {*} [options] Override http request option.
29407
+ * @throws {RequiredError}
29408
+ * @memberof ReachSegmentsApi
29409
+ */
29410
+ public listSegmentsV1(options?: RawAxiosRequestConfig) {
29411
+ return ReachSegmentsApiFp(this.configuration).listSegmentsV1(options).then((request) => request(this.axios, this.basePath));
27428
29412
  }
27429
29413
  }
27430
29414
 
27431
29415
 
27432
29416
 
27433
29417
  /**
27434
- * ReachSegmentsApi - axios parameter creator
29418
+ * ReachTagsApi - axios parameter creator
27435
29419
  * @export
27436
29420
  */
27437
- export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Configuration) {
29421
+ export const ReachTagsApiAxiosParamCreator = function (configuration?: Configuration) {
27438
29422
  return {
27439
29423
  /**
27440
- * 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.
27441
- * @summary Create a new contact segment
27442
- * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
29424
+ * 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.
29425
+ * @summary Assign a contact to a tag
29426
+ * @param {string} profileUuid Profile uuid parameter
29427
+ * @param {string} tagUuid Tag uuid parameter
29428
+ * @param {string} contactUuid Contact uuid parameter
29429
+ * @param {*} [options] Override http request option.
29430
+ * @throws {RequiredError}
29431
+ */
29432
+ assignAContactToATagV1: async (profileUuid: string, tagUuid: string, contactUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29433
+ // verify required parameter 'profileUuid' is not null or undefined
29434
+ assertParamExists('assignAContactToATagV1', 'profileUuid', profileUuid)
29435
+ // verify required parameter 'tagUuid' is not null or undefined
29436
+ assertParamExists('assignAContactToATagV1', 'tagUuid', tagUuid)
29437
+ // verify required parameter 'contactUuid' is not null or undefined
29438
+ assertParamExists('assignAContactToATagV1', 'contactUuid', contactUuid)
29439
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid}`
29440
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
29441
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)))
29442
+ .replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
29443
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29444
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29445
+ let baseOptions;
29446
+ if (configuration) {
29447
+ baseOptions = configuration.baseOptions;
29448
+ }
29449
+
29450
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29451
+ const localVarHeaderParameter = {} as any;
29452
+ const localVarQueryParameter = {} as any;
29453
+
29454
+ // authentication apiToken required
29455
+ // http bearer authentication required
29456
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
29457
+
29458
+
29459
+
29460
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29461
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29462
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29463
+
29464
+ return {
29465
+ url: toPathString(localVarUrlObj),
29466
+ options: localVarRequestOptions,
29467
+ };
29468
+ },
29469
+ /**
29470
+ * 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.
29471
+ * @summary Assign contacts to a tag
29472
+ * @param {string} profileUuid Profile uuid parameter
29473
+ * @param {string} tagUuid Tag uuid parameter
29474
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
29475
+ * @param {*} [options] Override http request option.
29476
+ * @throws {RequiredError}
29477
+ */
29478
+ assignContactsToATagV1: async (profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29479
+ // verify required parameter 'profileUuid' is not null or undefined
29480
+ assertParamExists('assignContactsToATagV1', 'profileUuid', profileUuid)
29481
+ // verify required parameter 'tagUuid' is not null or undefined
29482
+ assertParamExists('assignContactsToATagV1', 'tagUuid', tagUuid)
29483
+ // verify required parameter 'reachV1ContactsTagsManageContactsRequest' is not null or undefined
29484
+ assertParamExists('assignContactsToATagV1', 'reachV1ContactsTagsManageContactsRequest', reachV1ContactsTagsManageContactsRequest)
29485
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts`
29486
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
29487
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
29488
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29489
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29490
+ let baseOptions;
29491
+ if (configuration) {
29492
+ baseOptions = configuration.baseOptions;
29493
+ }
29494
+
29495
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29496
+ const localVarHeaderParameter = {} as any;
29497
+ const localVarQueryParameter = {} as any;
29498
+
29499
+ // authentication apiToken required
29500
+ // http bearer authentication required
29501
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
29502
+
29503
+
29504
+
29505
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29506
+
29507
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29508
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29509
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29510
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsTagsManageContactsRequest, localVarRequestOptions, configuration)
29511
+
29512
+ return {
29513
+ url: toPathString(localVarUrlObj),
29514
+ options: localVarRequestOptions,
29515
+ };
29516
+ },
29517
+ /**
29518
+ * 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.
29519
+ * @summary Create or find tags
29520
+ * @param {string} profileUuid Profile uuid parameter
29521
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
29522
+ * @param {*} [options] Override http request option.
29523
+ * @throws {RequiredError}
29524
+ */
29525
+ createOrFindTagsV1: async (profileUuid: string, reachV1ContactsTagsStoreRequest: ReachV1ContactsTagsStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29526
+ // verify required parameter 'profileUuid' is not null or undefined
29527
+ assertParamExists('createOrFindTagsV1', 'profileUuid', profileUuid)
29528
+ // verify required parameter 'reachV1ContactsTagsStoreRequest' is not null or undefined
29529
+ assertParamExists('createOrFindTagsV1', 'reachV1ContactsTagsStoreRequest', reachV1ContactsTagsStoreRequest)
29530
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags`
29531
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
29532
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29533
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29534
+ let baseOptions;
29535
+ if (configuration) {
29536
+ baseOptions = configuration.baseOptions;
29537
+ }
29538
+
29539
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29540
+ const localVarHeaderParameter = {} as any;
29541
+ const localVarQueryParameter = {} as any;
29542
+
29543
+ // authentication apiToken required
29544
+ // http bearer authentication required
29545
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
29546
+
29547
+
29548
+
29549
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29550
+
29551
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29552
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29553
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29554
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsTagsStoreRequest, localVarRequestOptions, configuration)
29555
+
29556
+ return {
29557
+ url: toPathString(localVarUrlObj),
29558
+ options: localVarRequestOptions,
29559
+ };
29560
+ },
29561
+ /**
29562
+ * 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.
29563
+ * @summary Delete a tag
29564
+ * @param {string} profileUuid Profile uuid parameter
29565
+ * @param {string} tagUuid Tag uuid parameter
27443
29566
  * @param {*} [options] Override http request option.
27444
29567
  * @throws {RequiredError}
27445
29568
  */
27446
- createANewContactSegmentV1: async (reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27447
- // verify required parameter 'reachV1ContactsSegmentsStoreRequest' is not null or undefined
27448
- assertParamExists('createANewContactSegmentV1', 'reachV1ContactsSegmentsStoreRequest', reachV1ContactsSegmentsStoreRequest)
27449
- const localVarPath = `/api/reach/v1/segmentation/segments`;
29569
+ deleteATagV1: async (profileUuid: string, tagUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29570
+ // verify required parameter 'profileUuid' is not null or undefined
29571
+ assertParamExists('deleteATagV1', 'profileUuid', profileUuid)
29572
+ // verify required parameter 'tagUuid' is not null or undefined
29573
+ assertParamExists('deleteATagV1', 'tagUuid', tagUuid)
29574
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}`
29575
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
29576
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
27450
29577
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27451
29578
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27452
29579
  let baseOptions;
@@ -27454,7 +29581,7 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
27454
29581
  baseOptions = configuration.baseOptions;
27455
29582
  }
27456
29583
 
27457
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29584
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
27458
29585
  const localVarHeaderParameter = {} as any;
27459
29586
  const localVarQueryParameter = {} as any;
27460
29587
 
@@ -27464,12 +29591,9 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
27464
29591
 
27465
29592
 
27466
29593
 
27467
- localVarHeaderParameter['Content-Type'] = 'application/json';
27468
-
27469
29594
  setSearchParams(localVarUrlObj, localVarQueryParameter);
27470
29595
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27471
29596
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27472
- localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsSegmentsStoreRequest, localVarRequestOptions, configuration)
27473
29597
 
27474
29598
  return {
27475
29599
  url: toPathString(localVarUrlObj),
@@ -27477,17 +29601,17 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
27477
29601
  };
27478
29602
  },
27479
29603
  /**
27480
- * 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.
27481
- * @summary Get segment details
27482
- * @param {string} segmentUuid Segment uuid parameter
29604
+ * 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.
29605
+ * @summary List profile tags
29606
+ * @param {string} profileUuid Profile uuid parameter
27483
29607
  * @param {*} [options] Override http request option.
27484
29608
  * @throws {RequiredError}
27485
29609
  */
27486
- getSegmentDetailsV1: async (segmentUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27487
- // verify required parameter 'segmentUuid' is not null or undefined
27488
- assertParamExists('getSegmentDetailsV1', 'segmentUuid', segmentUuid)
27489
- const localVarPath = `/api/reach/v1/segmentation/segments/{segmentUuid}`
27490
- .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
29610
+ listProfileTagsV1: async (profileUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29611
+ // verify required parameter 'profileUuid' is not null or undefined
29612
+ assertParamExists('listProfileTagsV1', 'profileUuid', profileUuid)
29613
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags`
29614
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
27491
29615
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27492
29616
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27493
29617
  let baseOptions;
@@ -27515,23 +29639,25 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
27515
29639
  };
27516
29640
  },
27517
29641
  /**
27518
- * 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.
27519
- * @summary List profile segment contacts
29642
+ * 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.
29643
+ * @summary Remove a contact from a tag
27520
29644
  * @param {string} profileUuid Profile uuid parameter
27521
- * @param {string} segmentUuid Segment uuid parameter
27522
- * @param {number} [page] Page number
27523
- * @param {number} [perPage] Number of items per page
29645
+ * @param {string} tagUuid Tag uuid parameter
29646
+ * @param {string} contactUuid Contact uuid parameter
27524
29647
  * @param {*} [options] Override http request option.
27525
29648
  * @throws {RequiredError}
27526
29649
  */
27527
- listProfileSegmentContactsV1: async (profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29650
+ removeAContactFromATagV1: async (profileUuid: string, tagUuid: string, contactUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27528
29651
  // verify required parameter 'profileUuid' is not null or undefined
27529
- assertParamExists('listProfileSegmentContactsV1', 'profileUuid', profileUuid)
27530
- // verify required parameter 'segmentUuid' is not null or undefined
27531
- assertParamExists('listProfileSegmentContactsV1', 'segmentUuid', segmentUuid)
27532
- const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts`
29652
+ assertParamExists('removeAContactFromATagV1', 'profileUuid', profileUuid)
29653
+ // verify required parameter 'tagUuid' is not null or undefined
29654
+ assertParamExists('removeAContactFromATagV1', 'tagUuid', tagUuid)
29655
+ // verify required parameter 'contactUuid' is not null or undefined
29656
+ assertParamExists('removeAContactFromATagV1', 'contactUuid', contactUuid)
29657
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid}`
27533
29658
  .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
27534
- .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
29659
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)))
29660
+ .replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
27535
29661
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27536
29662
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27537
29663
  let baseOptions;
@@ -27539,7 +29665,7 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
27539
29665
  baseOptions = configuration.baseOptions;
27540
29666
  }
27541
29667
 
27542
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29668
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
27543
29669
  const localVarHeaderParameter = {} as any;
27544
29670
  const localVarQueryParameter = {} as any;
27545
29671
 
@@ -27547,14 +29673,6 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
27547
29673
  // http bearer authentication required
27548
29674
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
27549
29675
 
27550
- if (page !== undefined) {
27551
- localVarQueryParameter['page'] = page;
27552
- }
27553
-
27554
- if (perPage !== undefined) {
27555
- localVarQueryParameter['per_page'] = perPage;
27556
- }
27557
-
27558
29676
 
27559
29677
 
27560
29678
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -27567,19 +29685,24 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
27567
29685
  };
27568
29686
  },
27569
29687
  /**
27570
- * 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.
27571
- * @summary List segment contacts
27572
- * @param {string} segmentUuid Segment uuid parameter
27573
- * @param {number} [page] Page number
27574
- * @param {number} [perPage] Number of items per page
29688
+ * 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.
29689
+ * @summary Remove contacts from a tag
29690
+ * @param {string} profileUuid Profile uuid parameter
29691
+ * @param {string} tagUuid Tag uuid parameter
29692
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
27575
29693
  * @param {*} [options] Override http request option.
27576
29694
  * @throws {RequiredError}
27577
29695
  */
27578
- listSegmentContactsV1: async (segmentUuid: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27579
- // verify required parameter 'segmentUuid' is not null or undefined
27580
- assertParamExists('listSegmentContactsV1', 'segmentUuid', segmentUuid)
27581
- const localVarPath = `/api/reach/v1/segmentation/segments/{segmentUuid}/contacts`
27582
- .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
29696
+ removeContactsFromATagV1: async (profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29697
+ // verify required parameter 'profileUuid' is not null or undefined
29698
+ assertParamExists('removeContactsFromATagV1', 'profileUuid', profileUuid)
29699
+ // verify required parameter 'tagUuid' is not null or undefined
29700
+ assertParamExists('removeContactsFromATagV1', 'tagUuid', tagUuid)
29701
+ // verify required parameter 'reachV1ContactsTagsManageContactsRequest' is not null or undefined
29702
+ assertParamExists('removeContactsFromATagV1', 'reachV1ContactsTagsManageContactsRequest', reachV1ContactsTagsManageContactsRequest)
29703
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts`
29704
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
29705
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
27583
29706
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27584
29707
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27585
29708
  let baseOptions;
@@ -27587,7 +29710,7 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
27587
29710
  baseOptions = configuration.baseOptions;
27588
29711
  }
27589
29712
 
27590
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29713
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
27591
29714
  const localVarHeaderParameter = {} as any;
27592
29715
  const localVarQueryParameter = {} as any;
27593
29716
 
@@ -27595,19 +29718,14 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
27595
29718
  // http bearer authentication required
27596
29719
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
27597
29720
 
27598
- if (page !== undefined) {
27599
- localVarQueryParameter['page'] = page;
27600
- }
27601
-
27602
- if (perPage !== undefined) {
27603
- localVarQueryParameter['per_page'] = perPage;
27604
- }
27605
-
27606
29721
 
27607
29722
 
29723
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29724
+
27608
29725
  setSearchParams(localVarUrlObj, localVarQueryParameter);
27609
29726
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27610
29727
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29728
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsTagsManageContactsRequest, localVarRequestOptions, configuration)
27611
29729
 
27612
29730
  return {
27613
29731
  url: toPathString(localVarUrlObj),
@@ -27615,13 +29733,24 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
27615
29733
  };
27616
29734
  },
27617
29735
  /**
27618
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
27619
- * @summary List segments
29736
+ * 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.
29737
+ * @summary Rename a tag
29738
+ * @param {string} profileUuid Profile uuid parameter
29739
+ * @param {string} tagUuid Tag uuid parameter
29740
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
27620
29741
  * @param {*} [options] Override http request option.
27621
29742
  * @throws {RequiredError}
27622
29743
  */
27623
- listSegmentsV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27624
- const localVarPath = `/api/reach/v1/segmentation/segments`;
29744
+ renameATagV1: async (profileUuid: string, tagUuid: string, reachV1ContactsTagsUpdateRequest: ReachV1ContactsTagsUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29745
+ // verify required parameter 'profileUuid' is not null or undefined
29746
+ assertParamExists('renameATagV1', 'profileUuid', profileUuid)
29747
+ // verify required parameter 'tagUuid' is not null or undefined
29748
+ assertParamExists('renameATagV1', 'tagUuid', tagUuid)
29749
+ // verify required parameter 'reachV1ContactsTagsUpdateRequest' is not null or undefined
29750
+ assertParamExists('renameATagV1', 'reachV1ContactsTagsUpdateRequest', reachV1ContactsTagsUpdateRequest)
29751
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}`
29752
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
29753
+ .replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
27625
29754
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27626
29755
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27627
29756
  let baseOptions;
@@ -27629,7 +29758,7 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
27629
29758
  baseOptions = configuration.baseOptions;
27630
29759
  }
27631
29760
 
27632
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29761
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
27633
29762
  const localVarHeaderParameter = {} as any;
27634
29763
  const localVarQueryParameter = {} as any;
27635
29764
 
@@ -27639,9 +29768,12 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
27639
29768
 
27640
29769
 
27641
29770
 
29771
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29772
+
27642
29773
  setSearchParams(localVarUrlObj, localVarQueryParameter);
27643
29774
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27644
29775
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29776
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsTagsUpdateRequest, localVarRequestOptions, configuration)
27645
29777
 
27646
29778
  return {
27647
29779
  url: toPathString(localVarUrlObj),
@@ -27652,212 +29784,338 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
27652
29784
  };
27653
29785
 
27654
29786
  /**
27655
- * ReachSegmentsApi - functional programming interface
29787
+ * ReachTagsApi - functional programming interface
27656
29788
  * @export
27657
29789
  */
27658
- export const ReachSegmentsApiFp = function(configuration?: Configuration) {
27659
- const localVarAxiosParamCreator = ReachSegmentsApiAxiosParamCreator(configuration)
29790
+ export const ReachTagsApiFp = function(configuration?: Configuration) {
29791
+ const localVarAxiosParamCreator = ReachTagsApiAxiosParamCreator(configuration)
27660
29792
  return {
27661
29793
  /**
27662
- * 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.
27663
- * @summary Create a new contact segment
27664
- * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
29794
+ * 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.
29795
+ * @summary Assign a contact to a tag
29796
+ * @param {string} profileUuid Profile uuid parameter
29797
+ * @param {string} tagUuid Tag uuid parameter
29798
+ * @param {string} contactUuid Contact uuid parameter
27665
29799
  * @param {*} [options] Override http request option.
27666
29800
  * @throws {RequiredError}
27667
29801
  */
27668
- async createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>> {
27669
- const localVarAxiosArgs = await localVarAxiosParamCreator.createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options);
27670
- const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.createANewContactSegmentV1']?.[0]?.url;
29802
+ async assignAContactToATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsTagsTagResource>> {
29803
+ const localVarAxiosArgs = await localVarAxiosParamCreator.assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options);
29804
+ const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.assignAContactToATagV1']?.[0]?.url;
27671
29805
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27672
29806
  },
27673
29807
  /**
27674
- * 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.
27675
- * @summary Get segment details
27676
- * @param {string} segmentUuid Segment uuid parameter
29808
+ * 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.
29809
+ * @summary Assign contacts to a tag
29810
+ * @param {string} profileUuid Profile uuid parameter
29811
+ * @param {string} tagUuid Tag uuid parameter
29812
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
27677
29813
  * @param {*} [options] Override http request option.
27678
29814
  * @throws {RequiredError}
27679
29815
  */
27680
- async getSegmentDetailsV1(segmentUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>> {
27681
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSegmentDetailsV1(segmentUuid, options);
27682
- const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.getSegmentDetailsV1']?.[0]?.url;
29816
+ async assignContactsToATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
29817
+ const localVarAxiosArgs = await localVarAxiosParamCreator.assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options);
29818
+ const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.assignContactsToATagV1']?.[0]?.url;
27683
29819
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27684
29820
  },
27685
29821
  /**
27686
- * 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.
27687
- * @summary List profile segment contacts
29822
+ * 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.
29823
+ * @summary Create or find tags
27688
29824
  * @param {string} profileUuid Profile uuid parameter
27689
- * @param {string} segmentUuid Segment uuid parameter
27690
- * @param {number} [page] Page number
27691
- * @param {number} [perPage] Number of items per page
29825
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
27692
29826
  * @param {*} [options] Override http request option.
27693
29827
  * @throws {RequiredError}
27694
29828
  */
27695
- async listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentContactsV1200Response>> {
27696
- const localVarAxiosArgs = await localVarAxiosParamCreator.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options);
27697
- const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.listProfileSegmentContactsV1']?.[0]?.url;
29829
+ async createOrFindTagsV1(profileUuid: string, reachV1ContactsTagsStoreRequest: ReachV1ContactsTagsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsTagsTagResource>>> {
29830
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options);
29831
+ const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.createOrFindTagsV1']?.[0]?.url;
27698
29832
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27699
29833
  },
27700
29834
  /**
27701
- * 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.
27702
- * @summary List segment contacts
27703
- * @param {string} segmentUuid Segment uuid parameter
27704
- * @param {number} [page] Page number
27705
- * @param {number} [perPage] Number of items per page
29835
+ * 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.
29836
+ * @summary Delete a tag
29837
+ * @param {string} profileUuid Profile uuid parameter
29838
+ * @param {string} tagUuid Tag uuid parameter
27706
29839
  * @param {*} [options] Override http request option.
27707
29840
  * @throws {RequiredError}
27708
29841
  */
27709
- async listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentContactsV1200Response>> {
27710
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSegmentContactsV1(segmentUuid, page, perPage, options);
27711
- const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.listSegmentContactsV1']?.[0]?.url;
29842
+ async deleteATagV1(profileUuid: string, tagUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
29843
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteATagV1(profileUuid, tagUuid, options);
29844
+ const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.deleteATagV1']?.[0]?.url;
27712
29845
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27713
29846
  },
27714
29847
  /**
27715
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
27716
- * @summary List segments
29848
+ * 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.
29849
+ * @summary List profile tags
29850
+ * @param {string} profileUuid Profile uuid parameter
27717
29851
  * @param {*} [options] Override http request option.
27718
29852
  * @throws {RequiredError}
27719
29853
  */
27720
- async listSegmentsV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsSegmentsContactSegmentResource>>> {
27721
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSegmentsV1(options);
27722
- const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.listSegmentsV1']?.[0]?.url;
29854
+ async listProfileTagsV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsTagsTagResource>>> {
29855
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProfileTagsV1(profileUuid, options);
29856
+ const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.listProfileTagsV1']?.[0]?.url;
29857
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29858
+ },
29859
+ /**
29860
+ * 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.
29861
+ * @summary Remove a contact from a tag
29862
+ * @param {string} profileUuid Profile uuid parameter
29863
+ * @param {string} tagUuid Tag uuid parameter
29864
+ * @param {string} contactUuid Contact uuid parameter
29865
+ * @param {*} [options] Override http request option.
29866
+ * @throws {RequiredError}
29867
+ */
29868
+ async removeAContactFromATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
29869
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options);
29870
+ const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.removeAContactFromATagV1']?.[0]?.url;
29871
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29872
+ },
29873
+ /**
29874
+ * 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.
29875
+ * @summary Remove contacts from a tag
29876
+ * @param {string} profileUuid Profile uuid parameter
29877
+ * @param {string} tagUuid Tag uuid parameter
29878
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
29879
+ * @param {*} [options] Override http request option.
29880
+ * @throws {RequiredError}
29881
+ */
29882
+ async removeContactsFromATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
29883
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options);
29884
+ const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.removeContactsFromATagV1']?.[0]?.url;
29885
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29886
+ },
29887
+ /**
29888
+ * 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.
29889
+ * @summary Rename a tag
29890
+ * @param {string} profileUuid Profile uuid parameter
29891
+ * @param {string} tagUuid Tag uuid parameter
29892
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
29893
+ * @param {*} [options] Override http request option.
29894
+ * @throws {RequiredError}
29895
+ */
29896
+ async renameATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsUpdateRequest: ReachV1ContactsTagsUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsTagsTagResource>> {
29897
+ const localVarAxiosArgs = await localVarAxiosParamCreator.renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options);
29898
+ const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.renameATagV1']?.[0]?.url;
27723
29899
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27724
29900
  },
27725
29901
  }
27726
29902
  };
27727
29903
 
27728
29904
  /**
27729
- * ReachSegmentsApi - factory interface
29905
+ * ReachTagsApi - factory interface
27730
29906
  * @export
27731
29907
  */
27732
- export const ReachSegmentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
27733
- const localVarFp = ReachSegmentsApiFp(configuration)
29908
+ export const ReachTagsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
29909
+ const localVarFp = ReachTagsApiFp(configuration)
27734
29910
  return {
27735
29911
  /**
27736
- * 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.
27737
- * @summary Create a new contact segment
27738
- * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
29912
+ * 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.
29913
+ * @summary Assign a contact to a tag
29914
+ * @param {string} profileUuid Profile uuid parameter
29915
+ * @param {string} tagUuid Tag uuid parameter
29916
+ * @param {string} contactUuid Contact uuid parameter
27739
29917
  * @param {*} [options] Override http request option.
27740
29918
  * @throws {RequiredError}
27741
29919
  */
27742
- createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource> {
27743
- return localVarFp.createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(axios, basePath));
29920
+ assignAContactToATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsTagsTagResource> {
29921
+ return localVarFp.assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(axios, basePath));
27744
29922
  },
27745
29923
  /**
27746
- * 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.
27747
- * @summary Get segment details
27748
- * @param {string} segmentUuid Segment uuid parameter
29924
+ * 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.
29925
+ * @summary Assign contacts to a tag
29926
+ * @param {string} profileUuid Profile uuid parameter
29927
+ * @param {string} tagUuid Tag uuid parameter
29928
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
27749
29929
  * @param {*} [options] Override http request option.
27750
29930
  * @throws {RequiredError}
27751
29931
  */
27752
- getSegmentDetailsV1(segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource> {
27753
- return localVarFp.getSegmentDetailsV1(segmentUuid, options).then((request) => request(axios, basePath));
29932
+ assignContactsToATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
29933
+ return localVarFp.assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(axios, basePath));
27754
29934
  },
27755
29935
  /**
27756
- * 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.
27757
- * @summary List profile segment contacts
29936
+ * 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.
29937
+ * @summary Create or find tags
27758
29938
  * @param {string} profileUuid Profile uuid parameter
27759
- * @param {string} segmentUuid Segment uuid parameter
27760
- * @param {number} [page] Page number
27761
- * @param {number} [perPage] Number of items per page
29939
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
27762
29940
  * @param {*} [options] Override http request option.
27763
29941
  * @throws {RequiredError}
27764
29942
  */
27765
- listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentContactsV1200Response> {
27766
- return localVarFp.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
29943
+ createOrFindTagsV1(profileUuid: string, reachV1ContactsTagsStoreRequest: ReachV1ContactsTagsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsTagsTagResource>> {
29944
+ return localVarFp.createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options).then((request) => request(axios, basePath));
27767
29945
  },
27768
29946
  /**
27769
- * 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.
27770
- * @summary List segment contacts
27771
- * @param {string} segmentUuid Segment uuid parameter
27772
- * @param {number} [page] Page number
27773
- * @param {number} [perPage] Number of items per page
29947
+ * 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.
29948
+ * @summary Delete a tag
29949
+ * @param {string} profileUuid Profile uuid parameter
29950
+ * @param {string} tagUuid Tag uuid parameter
27774
29951
  * @param {*} [options] Override http request option.
27775
29952
  * @throws {RequiredError}
27776
29953
  */
27777
- listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentContactsV1200Response> {
27778
- return localVarFp.listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
29954
+ deleteATagV1(profileUuid: string, tagUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
29955
+ return localVarFp.deleteATagV1(profileUuid, tagUuid, options).then((request) => request(axios, basePath));
27779
29956
  },
27780
29957
  /**
27781
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
27782
- * @summary List segments
29958
+ * 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.
29959
+ * @summary List profile tags
29960
+ * @param {string} profileUuid Profile uuid parameter
27783
29961
  * @param {*} [options] Override http request option.
27784
29962
  * @throws {RequiredError}
27785
29963
  */
27786
- listSegmentsV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsSegmentsContactSegmentResource>> {
27787
- return localVarFp.listSegmentsV1(options).then((request) => request(axios, basePath));
29964
+ listProfileTagsV1(profileUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsTagsTagResource>> {
29965
+ return localVarFp.listProfileTagsV1(profileUuid, options).then((request) => request(axios, basePath));
29966
+ },
29967
+ /**
29968
+ * 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.
29969
+ * @summary Remove a contact from a tag
29970
+ * @param {string} profileUuid Profile uuid parameter
29971
+ * @param {string} tagUuid Tag uuid parameter
29972
+ * @param {string} contactUuid Contact uuid parameter
29973
+ * @param {*} [options] Override http request option.
29974
+ * @throws {RequiredError}
29975
+ */
29976
+ removeAContactFromATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
29977
+ return localVarFp.removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(axios, basePath));
29978
+ },
29979
+ /**
29980
+ * 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.
29981
+ * @summary Remove contacts from a tag
29982
+ * @param {string} profileUuid Profile uuid parameter
29983
+ * @param {string} tagUuid Tag uuid parameter
29984
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
29985
+ * @param {*} [options] Override http request option.
29986
+ * @throws {RequiredError}
29987
+ */
29988
+ removeContactsFromATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
29989
+ return localVarFp.removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(axios, basePath));
29990
+ },
29991
+ /**
29992
+ * 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.
29993
+ * @summary Rename a tag
29994
+ * @param {string} profileUuid Profile uuid parameter
29995
+ * @param {string} tagUuid Tag uuid parameter
29996
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
29997
+ * @param {*} [options] Override http request option.
29998
+ * @throws {RequiredError}
29999
+ */
30000
+ renameATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsUpdateRequest: ReachV1ContactsTagsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsTagsTagResource> {
30001
+ return localVarFp.renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options).then((request) => request(axios, basePath));
27788
30002
  },
27789
30003
  };
27790
30004
  };
27791
30005
 
27792
30006
  /**
27793
- * ReachSegmentsApi - object-oriented interface
30007
+ * ReachTagsApi - object-oriented interface
27794
30008
  * @export
27795
- * @class ReachSegmentsApi
30009
+ * @class ReachTagsApi
27796
30010
  * @extends {BaseAPI}
27797
30011
  */
27798
- export class ReachSegmentsApi extends BaseAPI {
30012
+ export class ReachTagsApi extends BaseAPI {
27799
30013
  /**
27800
- * 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.
27801
- * @summary Create a new contact segment
27802
- * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
30014
+ * 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.
30015
+ * @summary Assign a contact to a tag
30016
+ * @param {string} profileUuid Profile uuid parameter
30017
+ * @param {string} tagUuid Tag uuid parameter
30018
+ * @param {string} contactUuid Contact uuid parameter
27803
30019
  * @param {*} [options] Override http request option.
27804
30020
  * @throws {RequiredError}
27805
- * @memberof ReachSegmentsApi
30021
+ * @memberof ReachTagsApi
27806
30022
  */
27807
- public createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig) {
27808
- return ReachSegmentsApiFp(this.configuration).createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(this.axios, this.basePath));
30023
+ public assignAContactToATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig) {
30024
+ return ReachTagsApiFp(this.configuration).assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
27809
30025
  }
27810
30026
 
27811
30027
  /**
27812
- * 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.
27813
- * @summary Get segment details
27814
- * @param {string} segmentUuid Segment uuid parameter
30028
+ * 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.
30029
+ * @summary Assign contacts to a tag
30030
+ * @param {string} profileUuid Profile uuid parameter
30031
+ * @param {string} tagUuid Tag uuid parameter
30032
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
27815
30033
  * @param {*} [options] Override http request option.
27816
30034
  * @throws {RequiredError}
27817
- * @memberof ReachSegmentsApi
30035
+ * @memberof ReachTagsApi
27818
30036
  */
27819
- public getSegmentDetailsV1(segmentUuid: string, options?: RawAxiosRequestConfig) {
27820
- return ReachSegmentsApiFp(this.configuration).getSegmentDetailsV1(segmentUuid, options).then((request) => request(this.axios, this.basePath));
30037
+ public assignContactsToATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig) {
30038
+ return ReachTagsApiFp(this.configuration).assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(this.axios, this.basePath));
27821
30039
  }
27822
30040
 
27823
30041
  /**
27824
- * 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.
27825
- * @summary List profile segment contacts
30042
+ * 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.
30043
+ * @summary Create or find tags
27826
30044
  * @param {string} profileUuid Profile uuid parameter
27827
- * @param {string} segmentUuid Segment uuid parameter
27828
- * @param {number} [page] Page number
27829
- * @param {number} [perPage] Number of items per page
30045
+ * @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
27830
30046
  * @param {*} [options] Override http request option.
27831
30047
  * @throws {RequiredError}
27832
- * @memberof ReachSegmentsApi
30048
+ * @memberof ReachTagsApi
27833
30049
  */
27834
- public listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
27835
- return ReachSegmentsApiFp(this.configuration).listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
30050
+ public createOrFindTagsV1(profileUuid: string, reachV1ContactsTagsStoreRequest: ReachV1ContactsTagsStoreRequest, options?: RawAxiosRequestConfig) {
30051
+ return ReachTagsApiFp(this.configuration).createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options).then((request) => request(this.axios, this.basePath));
27836
30052
  }
27837
30053
 
27838
30054
  /**
27839
- * 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.
27840
- * @summary List segment contacts
27841
- * @param {string} segmentUuid Segment uuid parameter
27842
- * @param {number} [page] Page number
27843
- * @param {number} [perPage] Number of items per page
30055
+ * 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.
30056
+ * @summary Delete a tag
30057
+ * @param {string} profileUuid Profile uuid parameter
30058
+ * @param {string} tagUuid Tag uuid parameter
27844
30059
  * @param {*} [options] Override http request option.
27845
30060
  * @throws {RequiredError}
27846
- * @memberof ReachSegmentsApi
30061
+ * @memberof ReachTagsApi
27847
30062
  */
27848
- public listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
27849
- return ReachSegmentsApiFp(this.configuration).listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
30063
+ public deleteATagV1(profileUuid: string, tagUuid: string, options?: RawAxiosRequestConfig) {
30064
+ return ReachTagsApiFp(this.configuration).deleteATagV1(profileUuid, tagUuid, options).then((request) => request(this.axios, this.basePath));
27850
30065
  }
27851
30066
 
27852
30067
  /**
27853
- * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
27854
- * @summary List segments
30068
+ * 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.
30069
+ * @summary List profile tags
30070
+ * @param {string} profileUuid Profile uuid parameter
27855
30071
  * @param {*} [options] Override http request option.
27856
30072
  * @throws {RequiredError}
27857
- * @memberof ReachSegmentsApi
30073
+ * @memberof ReachTagsApi
27858
30074
  */
27859
- public listSegmentsV1(options?: RawAxiosRequestConfig) {
27860
- return ReachSegmentsApiFp(this.configuration).listSegmentsV1(options).then((request) => request(this.axios, this.basePath));
30075
+ public listProfileTagsV1(profileUuid: string, options?: RawAxiosRequestConfig) {
30076
+ return ReachTagsApiFp(this.configuration).listProfileTagsV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
30077
+ }
30078
+
30079
+ /**
30080
+ * 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.
30081
+ * @summary Remove a contact from a tag
30082
+ * @param {string} profileUuid Profile uuid parameter
30083
+ * @param {string} tagUuid Tag uuid parameter
30084
+ * @param {string} contactUuid Contact uuid parameter
30085
+ * @param {*} [options] Override http request option.
30086
+ * @throws {RequiredError}
30087
+ * @memberof ReachTagsApi
30088
+ */
30089
+ public removeAContactFromATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig) {
30090
+ return ReachTagsApiFp(this.configuration).removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
30091
+ }
30092
+
30093
+ /**
30094
+ * 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.
30095
+ * @summary Remove contacts from a tag
30096
+ * @param {string} profileUuid Profile uuid parameter
30097
+ * @param {string} tagUuid Tag uuid parameter
30098
+ * @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
30099
+ * @param {*} [options] Override http request option.
30100
+ * @throws {RequiredError}
30101
+ * @memberof ReachTagsApi
30102
+ */
30103
+ public removeContactsFromATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig) {
30104
+ return ReachTagsApiFp(this.configuration).removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(this.axios, this.basePath));
30105
+ }
30106
+
30107
+ /**
30108
+ * 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.
30109
+ * @summary Rename a tag
30110
+ * @param {string} profileUuid Profile uuid parameter
30111
+ * @param {string} tagUuid Tag uuid parameter
30112
+ * @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
30113
+ * @param {*} [options] Override http request option.
30114
+ * @throws {RequiredError}
30115
+ * @memberof ReachTagsApi
30116
+ */
30117
+ public renameATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsUpdateRequest: ReachV1ContactsTagsUpdateRequest, options?: RawAxiosRequestConfig) {
30118
+ return ReachTagsApiFp(this.configuration).renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
27861
30119
  }
27862
30120
  }
27863
30121