@uptiqai/integrations-sdk 1.0.25 → 1.0.26

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.
@@ -55,6 +55,9 @@ export type WealthboxGetWorkflowTemplatesBody = {
55
55
  /** Integration user id for Wealthbox requests. */
56
56
  userId: string;
57
57
  };
58
+ export type WealthboxGetContactRoles200 = {
59
+ contact_roles: WealthboxGetContactRoles200ContactRolesItem[];
60
+ };
58
61
  export type WealthboxGetContactRoles200ContactRolesItemRemovedOptionsItem = {
59
62
  [key: string]: unknown;
60
63
  };
@@ -68,9 +71,6 @@ export type WealthboxGetContactRoles200ContactRolesItem = {
68
71
  name: string;
69
72
  removed_options?: WealthboxGetContactRoles200ContactRolesItemRemovedOptionsItem[];
70
73
  };
71
- export type WealthboxGetContactRoles200 = {
72
- contact_roles: WealthboxGetContactRoles200ContactRolesItem[];
73
- };
74
74
  export type WealthboxGetContactRolesBody = {
75
75
  /**
76
76
  * Page number for paginated Wealthbox endpoints.
@@ -135,9 +135,6 @@ export type WealthboxGetCategoryMembersBody = {
135
135
  /** Integration user id for Wealthbox requests. */
136
136
  userId: string;
137
137
  };
138
- export type WealthboxGetCustomFields200 = {
139
- custom_fields?: WealthboxGetCustomFields200CustomFieldsItem[];
140
- };
141
138
  /**
142
139
  * @nullable
143
140
  */
@@ -161,6 +158,9 @@ export type WealthboxGetCustomFields200CustomFieldsItem = {
161
158
  options?: WealthboxGetCustomFields200CustomFieldsItemOptionsItem[];
162
159
  value?: WealthboxGetCustomFields200CustomFieldsItemValue;
163
160
  };
161
+ export type WealthboxGetCustomFields200 = {
162
+ custom_fields?: WealthboxGetCustomFields200CustomFieldsItem[];
163
+ };
164
164
  /**
165
165
  * The document type that the custom fields are for
166
166
  */
@@ -251,7 +251,6 @@ export type WealthboxGetTeamsBody = {
251
251
  /** Integration user id for Wealthbox requests. */
252
252
  userId: string;
253
253
  };
254
- export type WealthboxGetUsers200UsersItemStatus = 'active' | 'invited' | 'inactive' | 'legacy' | string;
255
254
  export type WealthboxGetUsers200UsersItem = {
256
255
  /** @nullable */
257
256
  account?: number | null;
@@ -265,6 +264,7 @@ export type WealthboxGetUsers200UsersItem = {
265
264
  export type WealthboxGetUsers200 = {
266
265
  users?: WealthboxGetUsers200UsersItem[];
267
266
  };
267
+ export type WealthboxGetUsers200UsersItemStatus = 'active' | 'invited' | 'inactive' | 'legacy' | string;
268
268
  /**
269
269
  * Filter users by their status
270
270
  */
@@ -1022,6 +1022,11 @@ export type WealthboxUpdateProject200 = {
1022
1022
  /** @nullable */
1023
1023
  visible_to?: WealthboxUpdateProject200VisibleTo;
1024
1024
  };
1025
+ export type WealthboxUpdateProjectBodyCustomFieldsItem = {
1026
+ /** @nullable */
1027
+ id: number | null;
1028
+ value?: WealthboxUpdateProjectBodyCustomFieldsItemValue;
1029
+ };
1025
1030
  export type WealthboxUpdateProjectBody = {
1026
1031
  custom_fields?: WealthboxUpdateProjectBodyCustomFieldsItem[];
1027
1032
  /** @minLength 1 */
@@ -1048,11 +1053,6 @@ export type WealthboxUpdateProjectBodyCustomFieldsItemValueAnyOfTwo = unknown |
1048
1053
  */
1049
1054
  export type WealthboxUpdateProjectBodyCustomFieldsItemValueAnyOf = unknown | null;
1050
1055
  export type WealthboxUpdateProjectBodyCustomFieldsItemValue = string | number | boolean | string[] | WealthboxUpdateProjectBodyCustomFieldsItemValueAnyOf | WealthboxUpdateProjectBodyCustomFieldsItemValueAnyOfTwo;
1051
- export type WealthboxUpdateProjectBodyCustomFieldsItem = {
1052
- /** @nullable */
1053
- id: number | null;
1054
- value?: WealthboxUpdateProjectBodyCustomFieldsItemValue;
1055
- };
1056
1056
  /**
1057
1057
  * @nullable
1058
1058
  */
@@ -1684,11 +1684,26 @@ export type WealthboxUpdateOpportunityBodyLinkedToItem = {
1684
1684
  name?: string;
1685
1685
  type: string;
1686
1686
  };
1687
+ /**
1688
+ * @nullable
1689
+ */
1690
+ export type WealthboxUpdateOpportunityBodyCustomFieldsItemValueAnyOfTwo = unknown | null;
1691
+ /**
1692
+ * @nullable
1693
+ */
1694
+ export type WealthboxUpdateOpportunityBodyCustomFieldsItemValueAnyOf = unknown | null;
1695
+ export type WealthboxUpdateOpportunityBodyCustomFieldsItemValue = string | number | boolean | string[] | WealthboxUpdateOpportunityBodyCustomFieldsItemValueAnyOf | WealthboxUpdateOpportunityBodyCustomFieldsItemValueAnyOfTwo;
1687
1696
  export type WealthboxUpdateOpportunityBodyCustomFieldsItem = {
1688
1697
  /** @nullable */
1689
1698
  id: number | null;
1690
1699
  value?: WealthboxUpdateOpportunityBodyCustomFieldsItemValue;
1691
1700
  };
1701
+ export type WealthboxUpdateOpportunityBodyAmountsItemKind = 'Fee' | 'Commission' | 'AUM' | 'Other' | string;
1702
+ export type WealthboxUpdateOpportunityBodyAmountsItem = {
1703
+ amount?: number;
1704
+ currency?: string;
1705
+ kind?: WealthboxUpdateOpportunityBodyAmountsItemKind;
1706
+ };
1692
1707
  export type WealthboxUpdateOpportunityBody = {
1693
1708
  amounts?: WealthboxUpdateOpportunityBodyAmountsItem[];
1694
1709
  custom_fields?: WealthboxUpdateOpportunityBodyCustomFieldsItem[];
@@ -1712,21 +1727,6 @@ export type WealthboxUpdateOpportunityBody = {
1712
1727
  userId: string;
1713
1728
  visible_to?: string;
1714
1729
  };
1715
- /**
1716
- * @nullable
1717
- */
1718
- export type WealthboxUpdateOpportunityBodyCustomFieldsItemValueAnyOfTwo = unknown | null;
1719
- /**
1720
- * @nullable
1721
- */
1722
- export type WealthboxUpdateOpportunityBodyCustomFieldsItemValueAnyOf = unknown | null;
1723
- export type WealthboxUpdateOpportunityBodyCustomFieldsItemValue = string | number | boolean | string[] | WealthboxUpdateOpportunityBodyCustomFieldsItemValueAnyOf | WealthboxUpdateOpportunityBodyCustomFieldsItemValueAnyOfTwo;
1724
- export type WealthboxUpdateOpportunityBodyAmountsItemKind = 'Fee' | 'Commission' | 'AUM' | 'Other' | string;
1725
- export type WealthboxUpdateOpportunityBodyAmountsItem = {
1726
- amount?: number;
1727
- currency?: string;
1728
- kind?: WealthboxUpdateOpportunityBodyAmountsItemKind;
1729
- };
1730
1730
  /**
1731
1731
  * @nullable
1732
1732
  */
@@ -1825,11 +1825,6 @@ export type WealthboxCreateOpportunityBodyLinkedToItem = {
1825
1825
  name?: string;
1826
1826
  type: string;
1827
1827
  };
1828
- export type WealthboxCreateOpportunityBodyCustomFieldsItem = {
1829
- /** @nullable */
1830
- id: number | null;
1831
- value?: WealthboxCreateOpportunityBodyCustomFieldsItemValue;
1832
- };
1833
1828
  export type WealthboxCreateOpportunityBody = {
1834
1829
  amounts: WealthboxCreateOpportunityBodyAmountsItem[];
1835
1830
  custom_fields?: WealthboxCreateOpportunityBodyCustomFieldsItem[];
@@ -1857,6 +1852,11 @@ export type WealthboxCreateOpportunityBodyCustomFieldsItemValueAnyOfTwo = unknow
1857
1852
  */
1858
1853
  export type WealthboxCreateOpportunityBodyCustomFieldsItemValueAnyOf = unknown | null;
1859
1854
  export type WealthboxCreateOpportunityBodyCustomFieldsItemValue = string | number | boolean | string[] | WealthboxCreateOpportunityBodyCustomFieldsItemValueAnyOf | WealthboxCreateOpportunityBodyCustomFieldsItemValueAnyOfTwo;
1855
+ export type WealthboxCreateOpportunityBodyCustomFieldsItem = {
1856
+ /** @nullable */
1857
+ id: number | null;
1858
+ value?: WealthboxCreateOpportunityBodyCustomFieldsItemValue;
1859
+ };
1860
1860
  export type WealthboxCreateOpportunityBodyAmountsItemKind = 'Fee' | 'Commission' | 'AUM' | 'Other' | string;
1861
1861
  export type WealthboxCreateOpportunityBodyAmountsItem = {
1862
1862
  amount?: number;
@@ -2318,20 +2318,6 @@ export type WealthboxUpdateEventBodyInviteesItem = {
2318
2318
  name?: string;
2319
2319
  type: string;
2320
2320
  };
2321
- /**
2322
- * @nullable
2323
- */
2324
- export type WealthboxUpdateEventBodyCustomFieldsItemValueAnyOfTwo = unknown | null;
2325
- /**
2326
- * @nullable
2327
- */
2328
- export type WealthboxUpdateEventBodyCustomFieldsItemValueAnyOf = unknown | null;
2329
- export type WealthboxUpdateEventBodyCustomFieldsItemValue = string | number | boolean | string[] | WealthboxUpdateEventBodyCustomFieldsItemValueAnyOf | WealthboxUpdateEventBodyCustomFieldsItemValueAnyOfTwo;
2330
- export type WealthboxUpdateEventBodyCustomFieldsItem = {
2331
- /** @nullable */
2332
- id: number | null;
2333
- value?: WealthboxUpdateEventBodyCustomFieldsItemValue;
2334
- };
2335
2321
  export type WealthboxUpdateEventBody = {
2336
2322
  all_day?: boolean;
2337
2323
  custom_fields?: WealthboxUpdateEventBodyCustomFieldsItem[];
@@ -2357,6 +2343,20 @@ export type WealthboxUpdateEventBody = {
2357
2343
  userId: string;
2358
2344
  visible_to?: string;
2359
2345
  };
2346
+ /**
2347
+ * @nullable
2348
+ */
2349
+ export type WealthboxUpdateEventBodyCustomFieldsItemValueAnyOfTwo = unknown | null;
2350
+ /**
2351
+ * @nullable
2352
+ */
2353
+ export type WealthboxUpdateEventBodyCustomFieldsItemValueAnyOf = unknown | null;
2354
+ export type WealthboxUpdateEventBodyCustomFieldsItemValue = string | number | boolean | string[] | WealthboxUpdateEventBodyCustomFieldsItemValueAnyOf | WealthboxUpdateEventBodyCustomFieldsItemValueAnyOfTwo;
2355
+ export type WealthboxUpdateEventBodyCustomFieldsItem = {
2356
+ /** @nullable */
2357
+ id: number | null;
2358
+ value?: WealthboxUpdateEventBodyCustomFieldsItemValue;
2359
+ };
2360
2360
  /**
2361
2361
  * @nullable
2362
2362
  */
@@ -2487,6 +2487,11 @@ export type WealthboxCreateEventBodyInviteesItem = {
2487
2487
  name?: string;
2488
2488
  type: string;
2489
2489
  };
2490
+ export type WealthboxCreateEventBodyCustomFieldsItem = {
2491
+ /** @nullable */
2492
+ id: number | null;
2493
+ value?: WealthboxCreateEventBodyCustomFieldsItemValue;
2494
+ };
2490
2495
  export type WealthboxCreateEventBody = {
2491
2496
  all_day?: boolean;
2492
2497
  custom_fields?: WealthboxCreateEventBodyCustomFieldsItem[];
@@ -2516,11 +2521,6 @@ export type WealthboxCreateEventBodyCustomFieldsItemValueAnyOfTwo = unknown | nu
2516
2521
  */
2517
2522
  export type WealthboxCreateEventBodyCustomFieldsItemValueAnyOf = unknown | null;
2518
2523
  export type WealthboxCreateEventBodyCustomFieldsItemValue = string | number | boolean | string[] | WealthboxCreateEventBodyCustomFieldsItemValueAnyOf | WealthboxCreateEventBodyCustomFieldsItemValueAnyOfTwo;
2519
- export type WealthboxCreateEventBodyCustomFieldsItem = {
2520
- /** @nullable */
2521
- id: number | null;
2522
- value?: WealthboxCreateEventBodyCustomFieldsItemValue;
2523
- };
2524
2524
  /**
2525
2525
  * @nullable
2526
2526
  */
@@ -2640,6 +2640,44 @@ export type WealthboxGetEventBody = {
2640
2640
  /** Integration user id for Wealthbox requests. */
2641
2641
  userId: string;
2642
2642
  };
2643
+ export type WealthboxGetEvents200EventsItem = {
2644
+ /** @nullable */
2645
+ all_day?: WealthboxGetEvents200EventsItemAllDay;
2646
+ /** @nullable */
2647
+ created_at?: WealthboxGetEvents200EventsItemCreatedAt;
2648
+ /** @nullable */
2649
+ creator?: WealthboxGetEvents200EventsItemCreator;
2650
+ /** @nullable */
2651
+ custom_fields?: WealthboxGetEvents200EventsItemCustomFields;
2652
+ /** @nullable */
2653
+ description?: WealthboxGetEvents200EventsItemDescription;
2654
+ /** @nullable */
2655
+ email_invitees?: WealthboxGetEvents200EventsItemEmailInvitees;
2656
+ /** @nullable */
2657
+ ends_at?: WealthboxGetEvents200EventsItemEndsAt;
2658
+ /** @nullable */
2659
+ event_category?: WealthboxGetEvents200EventsItemEventCategory;
2660
+ /** @nullable */
2661
+ id?: WealthboxGetEvents200EventsItemId;
2662
+ /** @nullable */
2663
+ invitees?: WealthboxGetEvents200EventsItemInvitees;
2664
+ /** @nullable */
2665
+ linked_to?: WealthboxGetEvents200EventsItemLinkedTo;
2666
+ /** @nullable */
2667
+ location?: WealthboxGetEvents200EventsItemLocation;
2668
+ /** @nullable */
2669
+ repeats?: WealthboxGetEvents200EventsItemRepeats;
2670
+ /** @nullable */
2671
+ starts_at?: WealthboxGetEvents200EventsItemStartsAt;
2672
+ /** @nullable */
2673
+ state?: WealthboxGetEvents200EventsItemState;
2674
+ /** @nullable */
2675
+ title?: WealthboxGetEvents200EventsItemTitle;
2676
+ /** @nullable */
2677
+ updated_at?: WealthboxGetEvents200EventsItemUpdatedAt;
2678
+ /** @nullable */
2679
+ visible_to?: WealthboxGetEvents200EventsItemVisibleTo;
2680
+ };
2643
2681
  export type WealthboxGetEvents200 = {
2644
2682
  events?: WealthboxGetEvents200EventsItem[];
2645
2683
  };
@@ -2715,44 +2753,6 @@ export type WealthboxGetEvents200EventsItemCreatedAt = unknown | null;
2715
2753
  * @nullable
2716
2754
  */
2717
2755
  export type WealthboxGetEvents200EventsItemAllDay = unknown | null;
2718
- export type WealthboxGetEvents200EventsItem = {
2719
- /** @nullable */
2720
- all_day?: WealthboxGetEvents200EventsItemAllDay;
2721
- /** @nullable */
2722
- created_at?: WealthboxGetEvents200EventsItemCreatedAt;
2723
- /** @nullable */
2724
- creator?: WealthboxGetEvents200EventsItemCreator;
2725
- /** @nullable */
2726
- custom_fields?: WealthboxGetEvents200EventsItemCustomFields;
2727
- /** @nullable */
2728
- description?: WealthboxGetEvents200EventsItemDescription;
2729
- /** @nullable */
2730
- email_invitees?: WealthboxGetEvents200EventsItemEmailInvitees;
2731
- /** @nullable */
2732
- ends_at?: WealthboxGetEvents200EventsItemEndsAt;
2733
- /** @nullable */
2734
- event_category?: WealthboxGetEvents200EventsItemEventCategory;
2735
- /** @nullable */
2736
- id?: WealthboxGetEvents200EventsItemId;
2737
- /** @nullable */
2738
- invitees?: WealthboxGetEvents200EventsItemInvitees;
2739
- /** @nullable */
2740
- linked_to?: WealthboxGetEvents200EventsItemLinkedTo;
2741
- /** @nullable */
2742
- location?: WealthboxGetEvents200EventsItemLocation;
2743
- /** @nullable */
2744
- repeats?: WealthboxGetEvents200EventsItemRepeats;
2745
- /** @nullable */
2746
- starts_at?: WealthboxGetEvents200EventsItemStartsAt;
2747
- /** @nullable */
2748
- state?: WealthboxGetEvents200EventsItemState;
2749
- /** @nullable */
2750
- title?: WealthboxGetEvents200EventsItemTitle;
2751
- /** @nullable */
2752
- updated_at?: WealthboxGetEvents200EventsItemUpdatedAt;
2753
- /** @nullable */
2754
- visible_to?: WealthboxGetEvents200EventsItemVisibleTo;
2755
- };
2756
2756
  /**
2757
2757
  * The order that the events should be returned in regarding event start
2758
2758
  */
@@ -2939,29 +2939,6 @@ export type WealthboxUpdateTaskBodyLinkedToItem = {
2939
2939
  name?: string;
2940
2940
  type: string;
2941
2941
  };
2942
- /**
2943
- * @nullable
2944
- */
2945
- export type WealthboxUpdateTaskBodyCustomFieldsItemValueAnyOfTwo = unknown | null;
2946
- /**
2947
- * @nullable
2948
- */
2949
- export type WealthboxUpdateTaskBodyCustomFieldsItemValueAnyOf = unknown | null;
2950
- export type WealthboxUpdateTaskBodyCustomFieldsItemValue = string | number | boolean | string[] | WealthboxUpdateTaskBodyCustomFieldsItemValueAnyOf | WealthboxUpdateTaskBodyCustomFieldsItemValueAnyOfTwo;
2951
- export type WealthboxUpdateTaskBodyCustomFieldsItem = {
2952
- /** @nullable */
2953
- id: number | null;
2954
- value?: WealthboxUpdateTaskBodyCustomFieldsItemValue;
2955
- };
2956
- /**
2957
- * @nullable
2958
- */
2959
- export type WealthboxUpdateTaskBodyCategoryAnyOfTwo = unknown | null;
2960
- /**
2961
- * @nullable
2962
- */
2963
- export type WealthboxUpdateTaskBodyCategoryAnyOf = unknown | null;
2964
- export type WealthboxUpdateTaskBodyCategory = number | null | string | WealthboxUpdateTaskBodyCategoryAnyOf | WealthboxUpdateTaskBodyCategoryAnyOfTwo;
2965
2942
  export type WealthboxUpdateTaskBody = {
2966
2943
  /** @nullable */
2967
2944
  assigned_to?: number | null;
@@ -2987,6 +2964,29 @@ export type WealthboxUpdateTaskBody = {
2987
2964
  userId: string;
2988
2965
  visible_to?: string;
2989
2966
  };
2967
+ export type WealthboxUpdateTaskBodyCustomFieldsItemValue = string | number | boolean | string[] | WealthboxUpdateTaskBodyCustomFieldsItemValueAnyOf | WealthboxUpdateTaskBodyCustomFieldsItemValueAnyOfTwo;
2968
+ export type WealthboxUpdateTaskBodyCustomFieldsItem = {
2969
+ /** @nullable */
2970
+ id: number | null;
2971
+ value?: WealthboxUpdateTaskBodyCustomFieldsItemValue;
2972
+ };
2973
+ /**
2974
+ * @nullable
2975
+ */
2976
+ export type WealthboxUpdateTaskBodyCustomFieldsItemValueAnyOfTwo = unknown | null;
2977
+ /**
2978
+ * @nullable
2979
+ */
2980
+ export type WealthboxUpdateTaskBodyCustomFieldsItemValueAnyOf = unknown | null;
2981
+ /**
2982
+ * @nullable
2983
+ */
2984
+ export type WealthboxUpdateTaskBodyCategoryAnyOfTwo = unknown | null;
2985
+ /**
2986
+ * @nullable
2987
+ */
2988
+ export type WealthboxUpdateTaskBodyCategoryAnyOf = unknown | null;
2989
+ export type WealthboxUpdateTaskBodyCategory = number | null | string | WealthboxUpdateTaskBodyCategoryAnyOf | WealthboxUpdateTaskBodyCategoryAnyOfTwo;
2990
2990
  /**
2991
2991
  * @nullable
2992
2992
  */
@@ -3127,6 +3127,29 @@ export type WealthboxCreateTaskBodyLinkedToItem = {
3127
3127
  name?: string;
3128
3128
  type: string;
3129
3129
  };
3130
+ /**
3131
+ * @nullable
3132
+ */
3133
+ export type WealthboxCreateTaskBodyCustomFieldsItemValueAnyOfTwo = unknown | null;
3134
+ /**
3135
+ * @nullable
3136
+ */
3137
+ export type WealthboxCreateTaskBodyCustomFieldsItemValueAnyOf = unknown | null;
3138
+ export type WealthboxCreateTaskBodyCustomFieldsItemValue = string | number | boolean | string[] | WealthboxCreateTaskBodyCustomFieldsItemValueAnyOf | WealthboxCreateTaskBodyCustomFieldsItemValueAnyOfTwo;
3139
+ export type WealthboxCreateTaskBodyCustomFieldsItem = {
3140
+ /** @nullable */
3141
+ id: number | null;
3142
+ value?: WealthboxCreateTaskBodyCustomFieldsItemValue;
3143
+ };
3144
+ /**
3145
+ * @nullable
3146
+ */
3147
+ export type WealthboxCreateTaskBodyCategoryAnyOfTwo = unknown | null;
3148
+ /**
3149
+ * @nullable
3150
+ */
3151
+ export type WealthboxCreateTaskBodyCategoryAnyOf = unknown | null;
3152
+ export type WealthboxCreateTaskBodyCategory = number | null | string | WealthboxCreateTaskBodyCategoryAnyOf | WealthboxCreateTaskBodyCategoryAnyOfTwo;
3130
3153
  export type WealthboxCreateTaskBody = {
3131
3154
  /** @nullable */
3132
3155
  assigned_to?: number | null;
@@ -3150,30 +3173,7 @@ export type WealthboxCreateTaskBody = {
3150
3173
  /**
3151
3174
  * @nullable
3152
3175
  */
3153
- export type WealthboxCreateTaskBodyCustomFieldsItemValueAnyOfTwo = unknown | null;
3154
- /**
3155
- * @nullable
3156
- */
3157
- export type WealthboxCreateTaskBodyCustomFieldsItemValueAnyOf = unknown | null;
3158
- export type WealthboxCreateTaskBodyCustomFieldsItemValue = string | number | boolean | string[] | WealthboxCreateTaskBodyCustomFieldsItemValueAnyOf | WealthboxCreateTaskBodyCustomFieldsItemValueAnyOfTwo;
3159
- export type WealthboxCreateTaskBodyCustomFieldsItem = {
3160
- /** @nullable */
3161
- id: number | null;
3162
- value?: WealthboxCreateTaskBodyCustomFieldsItemValue;
3163
- };
3164
- /**
3165
- * @nullable
3166
- */
3167
- export type WealthboxCreateTaskBodyCategoryAnyOfTwo = unknown | null;
3168
- /**
3169
- * @nullable
3170
- */
3171
- export type WealthboxCreateTaskBodyCategoryAnyOf = unknown | null;
3172
- export type WealthboxCreateTaskBodyCategory = number | null | string | WealthboxCreateTaskBodyCategoryAnyOf | WealthboxCreateTaskBodyCategoryAnyOfTwo;
3173
- /**
3174
- * @nullable
3175
- */
3176
- export type WealthboxGetTask200VisibleTo = unknown | null;
3176
+ export type WealthboxGetTask200VisibleTo = unknown | null;
3177
3177
  /**
3178
3178
  * @nullable
3179
3179
  */
@@ -4446,150 +4446,6 @@ export type WealthboxCreateContact200Image = unknown | null;
4446
4446
  * @nullable
4447
4447
  */
4448
4448
  export type WealthboxCreateContact200Id = unknown | null;
4449
- /**
4450
- * @nullable
4451
- */
4452
- export type WealthboxCreateContact200HouseholdTitle = unknown | null;
4453
- /**
4454
- * @nullable
4455
- */
4456
- export type WealthboxCreateContact200HouseholdName = unknown | null;
4457
- export type WealthboxCreateContact200HouseholdMembersItem = {
4458
- [key: string]: unknown;
4459
- };
4460
- /**
4461
- * @nullable
4462
- */
4463
- export type WealthboxCreateContact200HouseholdId = unknown | null;
4464
- export type WealthboxCreateContact200Household = {
4465
- /** @nullable */
4466
- id?: WealthboxCreateContact200HouseholdId;
4467
- members?: WealthboxCreateContact200HouseholdMembersItem[];
4468
- /** @nullable */
4469
- name?: WealthboxCreateContact200HouseholdName;
4470
- /** @nullable */
4471
- title?: WealthboxCreateContact200HouseholdTitle;
4472
- };
4473
- /**
4474
- * @nullable
4475
- */
4476
- export type WealthboxCreateContact200GrossAnnualIncome = unknown | null;
4477
- /**
4478
- * @nullable
4479
- */
4480
- export type WealthboxCreateContact200GreenCardNumber = unknown | null;
4481
- /**
4482
- * @nullable
4483
- */
4484
- export type WealthboxCreateContact200Gender = unknown | null;
4485
- /**
4486
- * @nullable
4487
- */
4488
- export type WealthboxCreateContact200FirstName = unknown | null;
4489
- /**
4490
- * @nullable
4491
- */
4492
- export type WealthboxCreateContact200FamilyOfficer = unknown | null;
4493
- /**
4494
- * @nullable
4495
- */
4496
- export type WealthboxCreateContact200ExternalUniqueId = unknown | null;
4497
- /**
4498
- * @nullable
4499
- */
4500
- export type WealthboxCreateContact200EstimatedTaxes = unknown | null;
4501
- export type WealthboxCreateContact200EmailAddressesItem = {
4502
- [key: string]: unknown;
4503
- };
4504
- export type WealthboxCreateContact200DriversLicense = {
4505
- [key: string]: unknown;
4506
- };
4507
- /**
4508
- * @nullable
4509
- */
4510
- export type WealthboxCreateContact200Doctor = unknown | null;
4511
- /**
4512
- * @nullable
4513
- */
4514
- export type WealthboxCreateContact200DateOfDeath = unknown | null;
4515
- export type WealthboxCreateContact200CustomFieldsItem = {
4516
- [key: string]: unknown;
4517
- };
4518
- /**
4519
- * @nullable
4520
- */
4521
- export type WealthboxCreateContact200Creator = unknown | null;
4522
- /**
4523
- * @nullable
4524
- */
4525
- export type WealthboxCreateContact200CreatedAt = unknown | null;
4526
- /**
4527
- * @nullable
4528
- */
4529
- export type WealthboxCreateContact200Cpa = unknown | null;
4530
- /**
4531
- * @nullable
4532
- */
4533
- export type WealthboxCreateContact200ContactType = unknown | null;
4534
- /**
4535
- * @nullable
4536
- */
4537
- export type WealthboxCreateContact200ContactSource = unknown | null;
4538
- export type WealthboxCreateContact200ContactRolesItem = {
4539
- [key: string]: unknown;
4540
- };
4541
- /**
4542
- * @nullable
4543
- */
4544
- export type WealthboxCreateContact200ConfirmedByTaxReturn = unknown | null;
4545
- /**
4546
- * @nullable
4547
- */
4548
- export type WealthboxCreateContact200CompanyName = unknown | null;
4549
- /**
4550
- * @nullable
4551
- */
4552
- export type WealthboxCreateContact200ClientSince = unknown | null;
4553
- /**
4554
- * @nullable
4555
- */
4556
- export type WealthboxCreateContact200BusinessManager = unknown | null;
4557
- /**
4558
- * @nullable
4559
- */
4560
- export type WealthboxCreateContact200BirthPlace = unknown | null;
4561
- /**
4562
- * @nullable
4563
- */
4564
- export type WealthboxCreateContact200BirthDate = unknown | null;
4565
- /**
4566
- * @nullable
4567
- */
4568
- export type WealthboxCreateContact200BackgroundInformation = unknown | null;
4569
- /**
4570
- * @nullable
4571
- */
4572
- export type WealthboxCreateContact200Attorney = unknown | null;
4573
- /**
4574
- * @nullable
4575
- */
4576
- export type WealthboxCreateContact200Assistant = unknown | null;
4577
- /**
4578
- * @nullable
4579
- */
4580
- export type WealthboxCreateContact200AssignedTo = unknown | null;
4581
- /**
4582
- * @nullable
4583
- */
4584
- export type WealthboxCreateContact200Assets = unknown | null;
4585
- /**
4586
- * @nullable
4587
- */
4588
- export type WealthboxCreateContact200Anniversary = unknown | null;
4589
- /**
4590
- * @nullable
4591
- */
4592
- export type WealthboxCreateContact200AdjustedGrossIncome = unknown | null;
4593
4449
  export type WealthboxCreateContact200 = {
4594
4450
  /** @nullable */
4595
4451
  adjusted_gross_income?: WealthboxCreateContact200AdjustedGrossIncome;
@@ -4740,43 +4596,187 @@ export type WealthboxCreateContact200 = {
4740
4596
  visible_to?: WealthboxCreateContact200VisibleTo;
4741
4597
  websites?: WealthboxCreateContact200WebsitesItem[];
4742
4598
  };
4743
- export type WealthboxCreateContactBodyWebsitesItemKind = typeof WealthboxCreateContactBodyWebsitesItemKind[keyof typeof WealthboxCreateContactBodyWebsitesItemKind];
4744
- export declare const WealthboxCreateContactBodyWebsitesItemKind: {
4745
- readonly Website: "Website";
4746
- readonly Facebook: "Facebook";
4747
- readonly Blog: "Blog";
4599
+ /**
4600
+ * @nullable
4601
+ */
4602
+ export type WealthboxCreateContact200HouseholdTitle = unknown | null;
4603
+ /**
4604
+ * @nullable
4605
+ */
4606
+ export type WealthboxCreateContact200HouseholdName = unknown | null;
4607
+ export type WealthboxCreateContact200HouseholdMembersItem = {
4608
+ [key: string]: unknown;
4748
4609
  };
4749
- export type WealthboxCreateContactBodyWebsitesItem = {
4750
- address: string;
4751
- destroy?: boolean;
4752
- kind?: WealthboxCreateContactBodyWebsitesItemKind;
4753
- principal?: boolean;
4610
+ /**
4611
+ * @nullable
4612
+ */
4613
+ export type WealthboxCreateContact200HouseholdId = unknown | null;
4614
+ export type WealthboxCreateContact200Household = {
4615
+ /** @nullable */
4616
+ id?: WealthboxCreateContact200HouseholdId;
4617
+ members?: WealthboxCreateContact200HouseholdMembersItem[];
4618
+ /** @nullable */
4619
+ name?: WealthboxCreateContact200HouseholdName;
4620
+ /** @nullable */
4621
+ title?: WealthboxCreateContact200HouseholdTitle;
4754
4622
  };
4755
- export type WealthboxCreateContactBodyType = typeof WealthboxCreateContactBodyType[keyof typeof WealthboxCreateContactBodyType];
4756
- export declare const WealthboxCreateContactBodyType: {
4757
- readonly Person: "Person";
4758
- readonly Household: "Household";
4759
- readonly Organization: "Organization";
4760
- readonly Trust: "Trust";
4623
+ /**
4624
+ * @nullable
4625
+ */
4626
+ export type WealthboxCreateContact200GrossAnnualIncome = unknown | null;
4627
+ /**
4628
+ * @nullable
4629
+ */
4630
+ export type WealthboxCreateContact200GreenCardNumber = unknown | null;
4631
+ /**
4632
+ * @nullable
4633
+ */
4634
+ export type WealthboxCreateContact200Gender = unknown | null;
4635
+ /**
4636
+ * @nullable
4637
+ */
4638
+ export type WealthboxCreateContact200FirstName = unknown | null;
4639
+ /**
4640
+ * @nullable
4641
+ */
4642
+ export type WealthboxCreateContact200FamilyOfficer = unknown | null;
4643
+ /**
4644
+ * @nullable
4645
+ */
4646
+ export type WealthboxCreateContact200ExternalUniqueId = unknown | null;
4647
+ /**
4648
+ * @nullable
4649
+ */
4650
+ export type WealthboxCreateContact200EstimatedTaxes = unknown | null;
4651
+ export type WealthboxCreateContact200EmailAddressesItem = {
4652
+ [key: string]: unknown;
4761
4653
  };
4762
- export type WealthboxCreateContactBodyTimeHorizon = typeof WealthboxCreateContactBodyTimeHorizon[keyof typeof WealthboxCreateContactBodyTimeHorizon];
4763
- export declare const WealthboxCreateContactBodyTimeHorizon: {
4764
- readonly Short_Term: "Short Term";
4765
- readonly Intermediate: "Intermediate";
4766
- readonly Long_Term: "Long Term";
4654
+ export type WealthboxCreateContact200DriversLicense = {
4655
+ [key: string]: unknown;
4767
4656
  };
4768
- export type WealthboxCreateContactBodyStreetAddressesItemKind = typeof WealthboxCreateContactBodyStreetAddressesItemKind[keyof typeof WealthboxCreateContactBodyStreetAddressesItemKind];
4769
- export declare const WealthboxCreateContactBodyStreetAddressesItemKind: {
4770
- readonly Work: "Work";
4771
- readonly Home: "Home";
4772
- readonly Mobile: "Mobile";
4773
- readonly Vacation: "Vacation";
4774
- readonly Fax: "Fax";
4775
- readonly Other: "Other";
4657
+ /**
4658
+ * @nullable
4659
+ */
4660
+ export type WealthboxCreateContact200Doctor = unknown | null;
4661
+ /**
4662
+ * @nullable
4663
+ */
4664
+ export type WealthboxCreateContact200DateOfDeath = unknown | null;
4665
+ export type WealthboxCreateContact200CustomFieldsItem = {
4666
+ [key: string]: unknown;
4776
4667
  };
4777
- export type WealthboxCreateContactBodyStreetAddressesItem = {
4778
- city?: string;
4779
- country?: string;
4668
+ /**
4669
+ * @nullable
4670
+ */
4671
+ export type WealthboxCreateContact200Creator = unknown | null;
4672
+ /**
4673
+ * @nullable
4674
+ */
4675
+ export type WealthboxCreateContact200CreatedAt = unknown | null;
4676
+ /**
4677
+ * @nullable
4678
+ */
4679
+ export type WealthboxCreateContact200Cpa = unknown | null;
4680
+ /**
4681
+ * @nullable
4682
+ */
4683
+ export type WealthboxCreateContact200ContactType = unknown | null;
4684
+ /**
4685
+ * @nullable
4686
+ */
4687
+ export type WealthboxCreateContact200ContactSource = unknown | null;
4688
+ export type WealthboxCreateContact200ContactRolesItem = {
4689
+ [key: string]: unknown;
4690
+ };
4691
+ /**
4692
+ * @nullable
4693
+ */
4694
+ export type WealthboxCreateContact200ConfirmedByTaxReturn = unknown | null;
4695
+ /**
4696
+ * @nullable
4697
+ */
4698
+ export type WealthboxCreateContact200CompanyName = unknown | null;
4699
+ /**
4700
+ * @nullable
4701
+ */
4702
+ export type WealthboxCreateContact200ClientSince = unknown | null;
4703
+ /**
4704
+ * @nullable
4705
+ */
4706
+ export type WealthboxCreateContact200BusinessManager = unknown | null;
4707
+ /**
4708
+ * @nullable
4709
+ */
4710
+ export type WealthboxCreateContact200BirthPlace = unknown | null;
4711
+ /**
4712
+ * @nullable
4713
+ */
4714
+ export type WealthboxCreateContact200BirthDate = unknown | null;
4715
+ /**
4716
+ * @nullable
4717
+ */
4718
+ export type WealthboxCreateContact200BackgroundInformation = unknown | null;
4719
+ /**
4720
+ * @nullable
4721
+ */
4722
+ export type WealthboxCreateContact200Attorney = unknown | null;
4723
+ /**
4724
+ * @nullable
4725
+ */
4726
+ export type WealthboxCreateContact200Assistant = unknown | null;
4727
+ /**
4728
+ * @nullable
4729
+ */
4730
+ export type WealthboxCreateContact200AssignedTo = unknown | null;
4731
+ /**
4732
+ * @nullable
4733
+ */
4734
+ export type WealthboxCreateContact200Assets = unknown | null;
4735
+ /**
4736
+ * @nullable
4737
+ */
4738
+ export type WealthboxCreateContact200Anniversary = unknown | null;
4739
+ /**
4740
+ * @nullable
4741
+ */
4742
+ export type WealthboxCreateContact200AdjustedGrossIncome = unknown | null;
4743
+ export type WealthboxCreateContactBodyWebsitesItemKind = typeof WealthboxCreateContactBodyWebsitesItemKind[keyof typeof WealthboxCreateContactBodyWebsitesItemKind];
4744
+ export declare const WealthboxCreateContactBodyWebsitesItemKind: {
4745
+ readonly Website: "Website";
4746
+ readonly Facebook: "Facebook";
4747
+ readonly Blog: "Blog";
4748
+ };
4749
+ export type WealthboxCreateContactBodyWebsitesItem = {
4750
+ address: string;
4751
+ destroy?: boolean;
4752
+ kind?: WealthboxCreateContactBodyWebsitesItemKind;
4753
+ principal?: boolean;
4754
+ };
4755
+ export type WealthboxCreateContactBodyType = typeof WealthboxCreateContactBodyType[keyof typeof WealthboxCreateContactBodyType];
4756
+ export declare const WealthboxCreateContactBodyType: {
4757
+ readonly Person: "Person";
4758
+ readonly Household: "Household";
4759
+ readonly Organization: "Organization";
4760
+ readonly Trust: "Trust";
4761
+ };
4762
+ export type WealthboxCreateContactBodyTimeHorizon = typeof WealthboxCreateContactBodyTimeHorizon[keyof typeof WealthboxCreateContactBodyTimeHorizon];
4763
+ export declare const WealthboxCreateContactBodyTimeHorizon: {
4764
+ readonly Short_Term: "Short Term";
4765
+ readonly Intermediate: "Intermediate";
4766
+ readonly Long_Term: "Long Term";
4767
+ };
4768
+ export type WealthboxCreateContactBodyStreetAddressesItemKind = typeof WealthboxCreateContactBodyStreetAddressesItemKind[keyof typeof WealthboxCreateContactBodyStreetAddressesItemKind];
4769
+ export declare const WealthboxCreateContactBodyStreetAddressesItemKind: {
4770
+ readonly Work: "Work";
4771
+ readonly Home: "Home";
4772
+ readonly Mobile: "Mobile";
4773
+ readonly Vacation: "Vacation";
4774
+ readonly Fax: "Fax";
4775
+ readonly Other: "Other";
4776
+ };
4777
+ export type WealthboxCreateContactBodyStreetAddressesItem = {
4778
+ city?: string;
4779
+ country?: string;
4780
4780
  destroy?: boolean;
4781
4781
  kind?: WealthboxCreateContactBodyStreetAddressesItemKind;
4782
4782
  principal?: boolean;
@@ -6238,25 +6238,21 @@ export type RedtailCreateNoteComment200Comment = {
6238
6238
  user_id?: number | null;
6239
6239
  };
6240
6240
  export type RedtailCreateNoteComment200 = {
6241
- comment: RedtailCreateNoteComment200Comment;
6241
+ comment?: RedtailCreateNoteComment200Comment;
6242
6242
  };
6243
- export type RedtailCreateNoteCommentBodyAllOfThree = {
6244
- /** Integration user id for Redtail requests. */
6245
- userId: string;
6246
- };
6247
- export type RedtailCreateNoteCommentBodyAllOfTwo = {
6248
- [key: string]: unknown | null;
6249
- };
6250
- export type RedtailCreateNoteCommentBodyAllOf = {
6251
- /**
6252
- * Redtail note identifier
6253
- * @minLength 1
6254
- */
6243
+ /**
6244
+ * Create a comment on a note. Optional notify_user_id / notify_team_id accepted.
6245
+ */
6246
+ export type RedtailCreateNoteCommentBody = {
6247
+ content?: string;
6248
+ /** @minLength 1 */
6255
6249
  noteId: string;
6256
- /** Integration user id for Redtail requests. */
6250
+ /** @nullable */
6251
+ notify_team_id?: number | null;
6252
+ /** @nullable */
6253
+ notify_user_id?: number | null;
6257
6254
  userId: string;
6258
6255
  };
6259
- export type RedtailCreateNoteCommentBody = RedtailCreateNoteCommentBodyAllOf & RedtailCreateNoteCommentBodyAllOfTwo & RedtailCreateNoteCommentBodyAllOfThree;
6260
6256
  export type RedtailGetNoteTemplate200NoteTemplate = {
6261
6257
  /** @nullable */
6262
6258
  body?: string | null;
@@ -6381,9 +6377,34 @@ export type RedtailGetActivityTemplates200Meta = {
6381
6377
  total_pages?: number;
6382
6378
  total_records?: number;
6383
6379
  };
6380
+ export type RedtailGetActivityTemplates200ActivityTemplatesItem = {
6381
+ /** @nullable */
6382
+ body?: string | null;
6383
+ /** @nullable */
6384
+ category?: string | null;
6385
+ /** @nullable */
6386
+ category_id?: number | null;
6387
+ /** @nullable */
6388
+ created_at?: string | null;
6389
+ /** @nullable */
6390
+ deleted?: boolean | null;
6391
+ /** @nullable */
6392
+ description?: string | null;
6393
+ id?: number;
6394
+ /** @nullable */
6395
+ name?: string | null;
6396
+ /** @nullable */
6397
+ subject?: string | null;
6398
+ /** @nullable */
6399
+ updated_at?: string | null;
6400
+ };
6401
+ /**
6402
+ * Redtail may return `activity_templates` or (legacy) `note_templates` for this endpoint.
6403
+ */
6384
6404
  export type RedtailGetActivityTemplates200 = {
6405
+ activity_templates?: RedtailGetActivityTemplates200ActivityTemplatesItem[];
6385
6406
  meta?: RedtailGetActivityTemplates200Meta;
6386
- note_templates: RedtailGetActivityTemplates200NoteTemplatesItem[];
6407
+ note_templates?: RedtailGetActivityTemplates200NoteTemplatesItem[];
6387
6408
  };
6388
6409
  export type RedtailGetActivityTemplatesBody = {
6389
6410
  /** Integration user id for Redtail requests. */
@@ -6393,10 +6414,6 @@ export type RedtailGetDatabaseTeams200Meta = {
6393
6414
  total_pages?: number;
6394
6415
  total_records?: number;
6395
6416
  };
6396
- export type RedtailGetDatabaseTeams200 = {
6397
- database_teams: RedtailGetDatabaseTeams200DatabaseTeams;
6398
- meta?: RedtailGetDatabaseTeams200Meta;
6399
- };
6400
6417
  export type RedtailGetDatabaseTeams200DatabaseTeamsAnyOfTwo = {
6401
6418
  [key: string]: unknown;
6402
6419
  };
@@ -6404,6 +6421,10 @@ export type RedtailGetDatabaseTeams200DatabaseTeamsAnyOfItem = {
6404
6421
  [key: string]: unknown;
6405
6422
  };
6406
6423
  export type RedtailGetDatabaseTeams200DatabaseTeams = RedtailGetDatabaseTeams200DatabaseTeamsAnyOfItem[] | RedtailGetDatabaseTeams200DatabaseTeamsAnyOfTwo;
6424
+ export type RedtailGetDatabaseTeams200 = {
6425
+ database_teams?: RedtailGetDatabaseTeams200DatabaseTeams;
6426
+ meta?: RedtailGetDatabaseTeams200Meta;
6427
+ };
6407
6428
  export type RedtailGetDatabaseTeamsBody = {
6408
6429
  /** Integration user id for Redtail requests. */
6409
6430
  userId: string;
@@ -6717,24 +6738,23 @@ export type RedtailUpdateContactTax200AnyOf = {
6717
6738
  success?: boolean;
6718
6739
  };
6719
6740
  export type RedtailUpdateContactTax200 = RedtailUpdateContactTax200AnyOf | '' | RedtailUpdateContactTax200AnyOfTwo | RedtailUpdateContactTax200AnyOfThree;
6720
- export type RedtailUpdateContactTaxBodyAllOfThree = {
6721
- /** Integration user id for Redtail requests. */
6722
- userId: string;
6723
- };
6724
- export type RedtailUpdateContactTaxBodyAllOfTwo = {
6725
- [key: string]: unknown | null;
6726
- };
6727
- export type RedtailUpdateContactTaxBodyAllOf = {
6741
+ export type RedtailUpdateContactTaxBody = {
6728
6742
  /**
6729
6743
  * Redtail contact identifier
6730
6744
  * @minLength 1
6731
6745
  */
6732
- contactId: string;
6746
+ id: string;
6747
+ is_tax_return_confirmed?: boolean;
6748
+ tax_agi?: string;
6749
+ /** @nullable */
6750
+ tax_bracket?: number | null;
6751
+ tax_estimate?: string;
6752
+ tax_return_year?: string;
6733
6753
  /** Integration user id for Redtail requests. */
6734
6754
  userId: string;
6755
+ [key: string]: unknown | null;
6735
6756
  };
6736
- export type RedtailUpdateContactTaxBody = RedtailUpdateContactTaxBodyAllOf & RedtailUpdateContactTaxBodyAllOfTwo & RedtailUpdateContactTaxBodyAllOfThree;
6737
- export type RedtailGetContactTax200Taxes = {
6757
+ export type RedtailGetContactTax200Tax = {
6738
6758
  contact_id?: number;
6739
6759
  /** @nullable */
6740
6760
  created_at?: string | null;
@@ -6745,14 +6765,14 @@ export type RedtailGetContactTax200Taxes = {
6745
6765
  updated_at?: string | null;
6746
6766
  };
6747
6767
  export type RedtailGetContactTax200 = {
6748
- taxes: RedtailGetContactTax200Taxes;
6768
+ tax?: RedtailGetContactTax200Tax;
6749
6769
  };
6750
6770
  export type RedtailGetContactTaxBody = {
6751
6771
  /**
6752
6772
  * Redtail contact identifier
6753
6773
  * @minLength 1
6754
6774
  */
6755
- contactId: string;
6775
+ id: string;
6756
6776
  /** Integration user id for Redtail requests. */
6757
6777
  userId: string;
6758
6778
  };
@@ -6769,24 +6789,31 @@ export type RedtailUpdateContactSam200AnyOf = {
6769
6789
  success?: boolean;
6770
6790
  };
6771
6791
  export type RedtailUpdateContactSam200 = RedtailUpdateContactSam200AnyOf | '' | RedtailUpdateContactSam200AnyOfTwo | RedtailUpdateContactSam200AnyOfThree;
6772
- export type RedtailUpdateContactSamBodyAllOfThree = {
6773
- /** Integration user id for Redtail requests. */
6774
- userId: string;
6775
- };
6776
- export type RedtailUpdateContactSamBodyAllOfTwo = {
6777
- [key: string]: unknown | null;
6778
- };
6779
- export type RedtailUpdateContactSamBodyAllOf = {
6792
+ export type RedtailUpdateContactSamBody = {
6793
+ /** @nullable */
6794
+ experience_funds?: number | null;
6795
+ /** @nullable */
6796
+ experience_other?: number | null;
6797
+ /** @nullable */
6798
+ experience_partnerships?: number | null;
6799
+ /** @nullable */
6800
+ experience_stocks?: number | null;
6780
6801
  /**
6781
6802
  * Redtail contact identifier
6782
6803
  * @minLength 1
6783
6804
  */
6784
- contactId: string;
6805
+ id: string;
6806
+ /** @nullable */
6807
+ objective_id?: number | null;
6808
+ /** @nullable */
6809
+ risk_tolerance?: number | null;
6810
+ /** @nullable */
6811
+ time_horizon?: number | null;
6785
6812
  /** Integration user id for Redtail requests. */
6786
6813
  userId: string;
6814
+ [key: string]: unknown | null;
6787
6815
  };
6788
- export type RedtailUpdateContactSamBody = RedtailUpdateContactSamBodyAllOf & RedtailUpdateContactSamBodyAllOfTwo & RedtailUpdateContactSamBodyAllOfThree;
6789
- export type RedtailGetContactSam200Sams = {
6816
+ export type RedtailGetContactSam200Sam = {
6790
6817
  contact_id?: number;
6791
6818
  /** @nullable */
6792
6819
  created_at?: string | null;
@@ -6797,14 +6824,14 @@ export type RedtailGetContactSam200Sams = {
6797
6824
  updated_at?: string | null;
6798
6825
  };
6799
6826
  export type RedtailGetContactSam200 = {
6800
- sams: RedtailGetContactSam200Sams;
6827
+ sam?: RedtailGetContactSam200Sam;
6801
6828
  };
6802
6829
  export type RedtailGetContactSamBody = {
6803
6830
  /**
6804
6831
  * Redtail contact identifier
6805
6832
  * @minLength 1
6806
6833
  */
6807
- contactId: string;
6834
+ id: string;
6808
6835
  /** Integration user id for Redtail requests. */
6809
6836
  userId: string;
6810
6837
  };
@@ -6819,25 +6846,24 @@ export type RedtailUpdateContactRole200Role = {
6819
6846
  updated_at?: string | null;
6820
6847
  };
6821
6848
  export type RedtailUpdateContactRole200 = {
6822
- role: RedtailUpdateContactRole200Role;
6823
- };
6824
- export type RedtailUpdateContactRoleBodyAllOfThree = {
6825
- /** Integration user id for Redtail requests. */
6826
- userId: string;
6827
- };
6828
- export type RedtailUpdateContactRoleBodyAllOfTwo = {
6829
- [key: string]: unknown | null;
6849
+ role?: RedtailUpdateContactRole200Role;
6830
6850
  };
6831
- export type RedtailUpdateContactRoleBodyAllOf = {
6851
+ export type RedtailUpdateContactRoleBody = {
6852
+ /** @nullable */
6853
+ advisor_id?: number | null;
6854
+ /** @nullable */
6855
+ associate_advisor_id?: number | null;
6856
+ /** @nullable */
6857
+ csa_id?: number | null;
6832
6858
  /**
6833
6859
  * Redtail contact identifier
6834
6860
  * @minLength 1
6835
6861
  */
6836
- contactId: string;
6862
+ id: string;
6837
6863
  /** Integration user id for Redtail requests. */
6838
6864
  userId: string;
6865
+ [key: string]: unknown | null;
6839
6866
  };
6840
- export type RedtailUpdateContactRoleBody = RedtailUpdateContactRoleBodyAllOf & RedtailUpdateContactRoleBodyAllOfTwo & RedtailUpdateContactRoleBodyAllOfThree;
6841
6867
  export type RedtailGetContactRole200Role = {
6842
6868
  contact_id?: number;
6843
6869
  /** @nullable */
@@ -6849,14 +6875,14 @@ export type RedtailGetContactRole200Role = {
6849
6875
  updated_at?: string | null;
6850
6876
  };
6851
6877
  export type RedtailGetContactRole200 = {
6852
- role: RedtailGetContactRole200Role;
6878
+ role?: RedtailGetContactRole200Role;
6853
6879
  };
6854
6880
  export type RedtailGetContactRoleBody = {
6855
6881
  /**
6856
6882
  * Redtail contact identifier
6857
6883
  * @minLength 1
6858
6884
  */
6859
- contactId: string;
6885
+ id: string;
6860
6886
  /** Integration user id for Redtail requests. */
6861
6887
  userId: string;
6862
6888
  };
@@ -6873,23 +6899,18 @@ export type RedtailUpdateImportantInformation200AnyOf = {
6873
6899
  success?: boolean;
6874
6900
  };
6875
6901
  export type RedtailUpdateImportantInformation200 = RedtailUpdateImportantInformation200AnyOf | '' | RedtailUpdateImportantInformation200AnyOfTwo | RedtailUpdateImportantInformation200AnyOfThree;
6876
- export type RedtailUpdateImportantInformationBodyAllOfThree = {
6877
- /** Integration user id for Redtail requests. */
6878
- userId: string;
6879
- };
6880
- export type RedtailUpdateImportantInformationBodyAllOfTwo = {
6881
- [key: string]: unknown | null;
6882
- };
6883
- export type RedtailUpdateImportantInformationBodyAllOf = {
6902
+ export type RedtailUpdateImportantInformationBody = {
6903
+ /** The content of the important information section. */
6904
+ content?: string;
6884
6905
  /**
6885
6906
  * Redtail contact identifier
6886
6907
  * @minLength 1
6887
6908
  */
6888
- contactId: string;
6909
+ id: string;
6889
6910
  /** Integration user id for Redtail requests. */
6890
6911
  userId: string;
6912
+ [key: string]: unknown | null;
6891
6913
  };
6892
- export type RedtailUpdateImportantInformationBody = RedtailUpdateImportantInformationBodyAllOf & RedtailUpdateImportantInformationBodyAllOfTwo & RedtailUpdateImportantInformationBodyAllOfThree;
6893
6914
  export type RedtailGetImportantInformation200ImportantInformation = {
6894
6915
  contact_id?: number;
6895
6916
  /** @nullable */
@@ -6910,7 +6931,7 @@ export type RedtailGetImportantInformationBody = {
6910
6931
  * Redtail contact identifier
6911
6932
  * @minLength 1
6912
6933
  */
6913
- contactId: string;
6934
+ id: string;
6914
6935
  /** Integration user id for Redtail requests. */
6915
6936
  userId: string;
6916
6937
  };
@@ -6969,17 +6990,20 @@ export type RedtailDeleteContactAccount200AnyOf = {
6969
6990
  success?: boolean;
6970
6991
  };
6971
6992
  export type RedtailDeleteContactAccount200 = RedtailDeleteContactAccount200AnyOf | '' | RedtailDeleteContactAccount200AnyOfTwo | RedtailDeleteContactAccount200AnyOfThree;
6993
+ /**
6994
+ * Get or delete a contact account: contact id, account id, and integration user (required by hub handlers).
6995
+ */
6972
6996
  export type RedtailDeleteContactAccountBody = {
6973
6997
  /**
6974
6998
  * Redtail account identifier
6975
6999
  * @minLength 1
6976
7000
  */
6977
- accountId?: string;
7001
+ accountId: string;
6978
7002
  /**
6979
7003
  * Redtail contact identifier
6980
7004
  * @minLength 1
6981
7005
  */
6982
- contactId: string;
7006
+ id: string;
6983
7007
  /** Integration user id for Redtail requests. */
6984
7008
  userId: string;
6985
7009
  };
@@ -6987,11 +7011,11 @@ export type RedtailUpdateContactAccount200AnyOfNine = {
6987
7011
  id?: number;
6988
7012
  success?: boolean;
6989
7013
  };
7014
+ export type RedtailUpdateContactAccount200 = RedtailUpdateContactAccount200AnyOf | RedtailUpdateContactAccount200AnyOfNine;
6990
7015
  export type RedtailUpdateContactAccount200AnyOfAccount = RedtailUpdateContactAccount200AnyOfAccountAnyOf | RedtailUpdateContactAccount200AnyOfAccountAnyOfFourItem[];
6991
7016
  export type RedtailUpdateContactAccount200AnyOf = {
6992
7017
  account: RedtailUpdateContactAccount200AnyOfAccount;
6993
7018
  };
6994
- export type RedtailUpdateContactAccount200 = RedtailUpdateContactAccount200AnyOf | RedtailUpdateContactAccount200AnyOfNine;
6995
7019
  /**
6996
7020
  * @nullable
6997
7021
  */
@@ -7056,42 +7080,38 @@ export type RedtailUpdateContactAccount200AnyOfAccountAnyOf = {
7056
7080
  /** @nullable */
7057
7081
  updated_at?: string | null;
7058
7082
  };
7059
- export type RedtailUpdateContactAccountBodyAllOfThree = {
7060
- /** Integration user id for Redtail requests. */
7061
- userId: string;
7062
- };
7063
- export type RedtailUpdateContactAccountBodyAllOfTwo = {
7064
- [key: string]: unknown | null;
7065
- };
7066
- export type RedtailUpdateContactAccountBodyAllOf = {
7083
+ export type RedtailUpdateContactAccountBody = {
7067
7084
  /**
7068
- * Redtail account identifier
7085
+ * Account type id. Required by Redtail.
7086
+ * @nullable
7087
+ */
7088
+ account_type_id?: number | null;
7089
+ /**
7090
+ * Redtail account id to update.
7069
7091
  * @minLength 1
7070
7092
  */
7071
- accountId?: string;
7093
+ accountId: string;
7094
+ company?: string;
7072
7095
  /**
7073
7096
  * Redtail contact identifier
7074
7097
  * @minLength 1
7075
7098
  */
7076
- contactId: string;
7099
+ id: string;
7100
+ number?: string;
7101
+ product?: string;
7102
+ /** @nullable */
7103
+ status_id?: number | null;
7104
+ taxqualified?: boolean;
7105
+ taxqualified_type?: string;
7077
7106
  /** Integration user id for Redtail requests. */
7078
7107
  userId: string;
7108
+ [key: string]: unknown | null;
7079
7109
  };
7080
- export type RedtailUpdateContactAccountBody = RedtailUpdateContactAccountBodyAllOf & RedtailUpdateContactAccountBodyAllOfTwo & RedtailUpdateContactAccountBodyAllOfThree;
7081
7110
  export type RedtailCreateContactAccount200AnyOfNine = {
7082
7111
  id?: number;
7083
7112
  success?: boolean;
7084
7113
  };
7085
- export type RedtailCreateContactAccount200AnyOfAccount = RedtailCreateContactAccount200AnyOfAccountAnyOf | RedtailCreateContactAccount200AnyOfAccountAnyOfFourItem[];
7086
- export type RedtailCreateContactAccount200AnyOf = {
7087
- account: RedtailCreateContactAccount200AnyOfAccount;
7088
- };
7089
7114
  export type RedtailCreateContactAccount200 = RedtailCreateContactAccount200AnyOf | RedtailCreateContactAccount200AnyOfNine;
7090
- /**
7091
- * @nullable
7092
- */
7093
- export type RedtailCreateContactAccount200AnyOfAccountAnyOfFourItemStatusAnyOf = unknown | null;
7094
- export type RedtailCreateContactAccount200AnyOfAccountAnyOfFourItemStatus = string | number | RedtailCreateContactAccount200AnyOfAccountAnyOfFourItemStatusAnyOf;
7095
7115
  export type RedtailCreateContactAccount200AnyOfAccountAnyOfFourItem = {
7096
7116
  /** @nullable */
7097
7117
  account_type?: string | null;
@@ -7119,6 +7139,15 @@ export type RedtailCreateContactAccount200AnyOfAccountAnyOfFourItem = {
7119
7139
  /** @nullable */
7120
7140
  updated_at?: string | null;
7121
7141
  };
7142
+ export type RedtailCreateContactAccount200AnyOfAccount = RedtailCreateContactAccount200AnyOfAccountAnyOf | RedtailCreateContactAccount200AnyOfAccountAnyOfFourItem[];
7143
+ export type RedtailCreateContactAccount200AnyOf = {
7144
+ account: RedtailCreateContactAccount200AnyOfAccount;
7145
+ };
7146
+ /**
7147
+ * @nullable
7148
+ */
7149
+ export type RedtailCreateContactAccount200AnyOfAccountAnyOfFourItemStatusAnyOf = unknown | null;
7150
+ export type RedtailCreateContactAccount200AnyOfAccountAnyOfFourItemStatus = string | number | RedtailCreateContactAccount200AnyOfAccountAnyOfFourItemStatusAnyOf;
7122
7151
  /**
7123
7152
  * @nullable
7124
7153
  */
@@ -7151,28 +7180,26 @@ export type RedtailCreateContactAccount200AnyOfAccountAnyOf = {
7151
7180
  /** @nullable */
7152
7181
  updated_at?: string | null;
7153
7182
  };
7154
- export type RedtailCreateContactAccountBodyAllOfThree = {
7155
- /** Integration user id for Redtail requests. */
7183
+ export type RedtailCreateContactAccountBody = {
7184
+ /**
7185
+ * Account type id. Required by Redtail.
7186
+ * @nullable
7187
+ */
7188
+ account_type_id: number | null;
7189
+ company?: string;
7190
+ /** @minLength 1 */
7191
+ id: string;
7192
+ number?: string;
7193
+ product?: string;
7194
+ /** @nullable */
7195
+ status_id?: number | null;
7196
+ taxqualified?: boolean;
7197
+ taxqualified_type?: string;
7156
7198
  userId: string;
7157
7199
  };
7158
- export type RedtailCreateContactAccountBodyAllOfTwo = {
7159
- [key: string]: unknown | null;
7200
+ export type RedtailGetContactAccount200 = {
7201
+ account: RedtailGetContactAccount200Account;
7160
7202
  };
7161
- export type RedtailCreateContactAccountBodyAllOf = {
7162
- /**
7163
- * Redtail account identifier
7164
- * @minLength 1
7165
- */
7166
- accountId?: string;
7167
- /**
7168
- * Redtail contact identifier
7169
- * @minLength 1
7170
- */
7171
- contactId: string;
7172
- /** Integration user id for Redtail requests. */
7173
- userId: string;
7174
- };
7175
- export type RedtailCreateContactAccountBody = RedtailCreateContactAccountBodyAllOf & RedtailCreateContactAccountBodyAllOfTwo & RedtailCreateContactAccountBodyAllOfThree;
7176
7203
  /**
7177
7204
  * @nullable
7178
7205
  */
@@ -7205,10 +7232,6 @@ export type RedtailGetContactAccount200AccountAnyOfFourItem = {
7205
7232
  /** @nullable */
7206
7233
  updated_at?: string | null;
7207
7234
  };
7208
- export type RedtailGetContactAccount200Account = RedtailGetContactAccount200AccountAnyOf | RedtailGetContactAccount200AccountAnyOfFourItem[];
7209
- export type RedtailGetContactAccount200 = {
7210
- account: RedtailGetContactAccount200Account;
7211
- };
7212
7235
  /**
7213
7236
  * @nullable
7214
7237
  */
@@ -7241,17 +7264,21 @@ export type RedtailGetContactAccount200AccountAnyOf = {
7241
7264
  /** @nullable */
7242
7265
  updated_at?: string | null;
7243
7266
  };
7267
+ export type RedtailGetContactAccount200Account = RedtailGetContactAccount200AccountAnyOf | RedtailGetContactAccount200AccountAnyOfFourItem[];
7268
+ /**
7269
+ * Get or delete a contact account: contact id, account id, and integration user (required by hub handlers).
7270
+ */
7244
7271
  export type RedtailGetContactAccountBody = {
7245
7272
  /**
7246
7273
  * Redtail account identifier
7247
7274
  * @minLength 1
7248
7275
  */
7249
- accountId?: string;
7276
+ accountId: string;
7250
7277
  /**
7251
7278
  * Redtail contact identifier
7252
7279
  * @minLength 1
7253
7280
  */
7254
- contactId: string;
7281
+ id: string;
7255
7282
  /** Integration user id for Redtail requests. */
7256
7283
  userId: string;
7257
7284
  };
@@ -7268,17 +7295,20 @@ export type RedtailDeleteContactNote200AnyOf = {
7268
7295
  success?: boolean;
7269
7296
  };
7270
7297
  export type RedtailDeleteContactNote200 = RedtailDeleteContactNote200AnyOf | '' | RedtailDeleteContactNote200AnyOfTwo | RedtailDeleteContactNote200AnyOfThree;
7298
+ /**
7299
+ * Get or delete a contact note: contact id, note id, and integration user (required by hub handlers).
7300
+ */
7271
7301
  export type RedtailDeleteContactNoteBody = {
7272
7302
  /**
7273
7303
  * Redtail contact identifier
7274
7304
  * @minLength 1
7275
7305
  */
7276
- contactId: string;
7306
+ id: string;
7277
7307
  /**
7278
7308
  * Redtail contact note identifier
7279
7309
  * @minLength 1
7280
7310
  */
7281
- noteId?: string;
7311
+ noteId: string;
7282
7312
  /** Integration user id for Redtail requests. */
7283
7313
  userId: string;
7284
7314
  };
@@ -7286,6 +7316,7 @@ export type RedtailCreateContactNote200AnyOfThree = {
7286
7316
  id?: number;
7287
7317
  success?: boolean;
7288
7318
  };
7319
+ export type RedtailCreateContactNote200 = RedtailCreateContactNote200AnyOf | RedtailCreateContactNote200AnyOfThree;
7289
7320
  export type RedtailCreateContactNote200AnyOfNote = {
7290
7321
  /** @nullable */
7291
7322
  added_by?: number | null;
@@ -7314,29 +7345,26 @@ export type RedtailCreateContactNote200AnyOfNote = {
7314
7345
  export type RedtailCreateContactNote200AnyOf = {
7315
7346
  note: RedtailCreateContactNote200AnyOfNote;
7316
7347
  };
7317
- export type RedtailCreateContactNote200 = RedtailCreateContactNote200AnyOf | RedtailCreateContactNote200AnyOfThree;
7318
- export type RedtailCreateContactNoteBodyAllOfThree = {
7319
- /** Integration user id for Redtail requests. */
7320
- userId: string;
7321
- };
7322
- export type RedtailCreateContactNoteBodyAllOfTwo = {
7323
- [key: string]: unknown | null;
7324
- };
7325
- export type RedtailCreateContactNoteBodyAllOf = {
7348
+ /**
7349
+ * Create a contact note. Extra Redtail fields are accepted.
7350
+ */
7351
+ export type RedtailCreateContactNoteBody = {
7352
+ body?: string;
7326
7353
  /**
7327
- * Redtail contact identifier
7328
- * @minLength 1
7354
+ * Category id. Required by Redtail.
7355
+ * @nullable
7329
7356
  */
7330
- contactId: string;
7357
+ category_id: number | null;
7358
+ /** @minLength 1 */
7359
+ id: string;
7360
+ linked_contact_ids?: number[];
7331
7361
  /**
7332
- * Redtail contact note identifier
7333
- * @minLength 1
7362
+ * Note type id. Required by Redtail.
7363
+ * @nullable
7334
7364
  */
7335
- noteId?: string;
7336
- /** Integration user id for Redtail requests. */
7365
+ note_type: number | null;
7337
7366
  userId: string;
7338
7367
  };
7339
- export type RedtailCreateContactNoteBody = RedtailCreateContactNoteBodyAllOf & RedtailCreateContactNoteBodyAllOfTwo & RedtailCreateContactNoteBodyAllOfThree;
7340
7368
  export type RedtailGetContactNote200AnyOfThreeNotes = {
7341
7369
  /** @nullable */
7342
7370
  added_by?: number | null;
@@ -7365,6 +7393,7 @@ export type RedtailGetContactNote200AnyOfThreeNotes = {
7365
7393
  export type RedtailGetContactNote200AnyOfThree = {
7366
7394
  notes: RedtailGetContactNote200AnyOfThreeNotes;
7367
7395
  };
7396
+ export type RedtailGetContactNote200 = RedtailGetContactNote200AnyOf | RedtailGetContactNote200AnyOfThree;
7368
7397
  export type RedtailGetContactNote200AnyOfNote = {
7369
7398
  /** @nullable */
7370
7399
  added_by?: number | null;
@@ -7393,18 +7422,20 @@ export type RedtailGetContactNote200AnyOfNote = {
7393
7422
  export type RedtailGetContactNote200AnyOf = {
7394
7423
  note: RedtailGetContactNote200AnyOfNote;
7395
7424
  };
7396
- export type RedtailGetContactNote200 = RedtailGetContactNote200AnyOf | RedtailGetContactNote200AnyOfThree;
7425
+ /**
7426
+ * Get or delete a contact note: contact id, note id, and integration user (required by hub handlers).
7427
+ */
7397
7428
  export type RedtailGetContactNoteBody = {
7398
7429
  /**
7399
7430
  * Redtail contact identifier
7400
7431
  * @minLength 1
7401
7432
  */
7402
- contactId: string;
7433
+ id: string;
7403
7434
  /**
7404
7435
  * Redtail contact note identifier
7405
7436
  * @minLength 1
7406
7437
  */
7407
- noteId?: string;
7438
+ noteId: string;
7408
7439
  /** Integration user id for Redtail requests. */
7409
7440
  userId: string;
7410
7441
  };
@@ -7441,17 +7472,15 @@ export type RedtailGetContactNotes200 = {
7441
7472
  meta?: RedtailGetContactNotes200Meta;
7442
7473
  notes?: RedtailGetContactNotes200NotesItem[];
7443
7474
  };
7475
+ /**
7476
+ * List contact notes: contact id and integration user only.
7477
+ */
7444
7478
  export type RedtailGetContactNotesBody = {
7445
7479
  /**
7446
7480
  * Redtail contact identifier
7447
7481
  * @minLength 1
7448
7482
  */
7449
- contactId: string;
7450
- /**
7451
- * Redtail contact note identifier
7452
- * @minLength 1
7453
- */
7454
- noteId?: string;
7483
+ id: string;
7455
7484
  /** Integration user id for Redtail requests. */
7456
7485
  userId: string;
7457
7486
  };
@@ -7473,7 +7502,7 @@ export type RedtailDeleteContactUrlBody = {
7473
7502
  * Redtail contact identifier
7474
7503
  * @minLength 1
7475
7504
  */
7476
- contactId: string;
7505
+ id: string;
7477
7506
  /**
7478
7507
  * Redtail contact URL identifier
7479
7508
  * @minLength 1
@@ -7495,28 +7524,25 @@ export type RedtailUpdateContactUrl200AnyOf = {
7495
7524
  success?: boolean;
7496
7525
  };
7497
7526
  export type RedtailUpdateContactUrl200 = RedtailUpdateContactUrl200AnyOf | '' | RedtailUpdateContactUrl200AnyOfTwo | RedtailUpdateContactUrl200AnyOfThree;
7498
- export type RedtailUpdateContactUrlBodyAllOfThree = {
7499
- /** Integration user id for Redtail requests. */
7500
- userId: string;
7501
- };
7502
- export type RedtailUpdateContactUrlBodyAllOfTwo = {
7503
- [key: string]: unknown | null;
7504
- };
7505
- export type RedtailUpdateContactUrlBodyAllOf = {
7527
+ export type RedtailUpdateContactUrlBody = {
7528
+ address?: string;
7529
+ custom_type?: string;
7506
7530
  /**
7507
7531
  * Redtail contact identifier
7508
7532
  * @minLength 1
7509
7533
  */
7510
- contactId: string;
7534
+ id: string;
7535
+ /** @nullable */
7536
+ url_type?: number | null;
7511
7537
  /**
7512
- * Redtail contact URL identifier
7538
+ * Redtail URL id to update.
7513
7539
  * @minLength 1
7514
7540
  */
7515
- urlId?: string;
7541
+ urlId: string;
7516
7542
  /** Integration user id for Redtail requests. */
7517
7543
  userId: string;
7544
+ [key: string]: unknown | null;
7518
7545
  };
7519
- export type RedtailUpdateContactUrlBody = RedtailUpdateContactUrlBodyAllOf & RedtailUpdateContactUrlBodyAllOfTwo & RedtailUpdateContactUrlBodyAllOfThree;
7520
7546
  /**
7521
7547
  * @nullable
7522
7548
  */
@@ -7530,28 +7556,15 @@ export type RedtailCreateContactUrl200AnyOf = {
7530
7556
  success?: boolean;
7531
7557
  };
7532
7558
  export type RedtailCreateContactUrl200 = RedtailCreateContactUrl200AnyOf | '' | RedtailCreateContactUrl200AnyOfTwo | RedtailCreateContactUrl200AnyOfThree;
7533
- export type RedtailCreateContactUrlBodyAllOfThree = {
7534
- /** Integration user id for Redtail requests. */
7535
- userId: string;
7536
- };
7537
- export type RedtailCreateContactUrlBodyAllOfTwo = {
7538
- [key: string]: unknown | null;
7539
- };
7540
- export type RedtailCreateContactUrlBodyAllOf = {
7541
- /**
7542
- * Redtail contact identifier
7543
- * @minLength 1
7544
- */
7545
- contactId: string;
7546
- /**
7547
- * Redtail contact URL identifier
7548
- * @minLength 1
7549
- */
7550
- urlId?: string;
7551
- /** Integration user id for Redtail requests. */
7559
+ export type RedtailCreateContactUrlBody = {
7560
+ address?: string;
7561
+ custom_type?: string;
7562
+ /** @minLength 1 */
7563
+ id: string;
7564
+ /** @nullable */
7565
+ url_type?: number | null;
7552
7566
  userId: string;
7553
7567
  };
7554
- export type RedtailCreateContactUrlBody = RedtailCreateContactUrlBodyAllOf & RedtailCreateContactUrlBodyAllOfTwo & RedtailCreateContactUrlBodyAllOfThree;
7555
7568
  export type RedtailGetContactUrl200Url = {
7556
7569
  contact_id?: number;
7557
7570
  /** @nullable */
@@ -7563,14 +7576,14 @@ export type RedtailGetContactUrl200Url = {
7563
7576
  updated_at?: string | null;
7564
7577
  };
7565
7578
  export type RedtailGetContactUrl200 = {
7566
- url: RedtailGetContactUrl200Url;
7579
+ url?: RedtailGetContactUrl200Url;
7567
7580
  };
7568
7581
  export type RedtailGetContactUrlBody = {
7569
7582
  /**
7570
7583
  * Redtail contact identifier
7571
7584
  * @minLength 1
7572
7585
  */
7573
- contactId: string;
7586
+ id: string;
7574
7587
  /**
7575
7588
  * Redtail contact URL identifier
7576
7589
  * @minLength 1
@@ -7595,14 +7608,14 @@ export type RedtailGetContactUrls200Meta = {
7595
7608
  };
7596
7609
  export type RedtailGetContactUrls200 = {
7597
7610
  meta?: RedtailGetContactUrls200Meta;
7598
- urls: RedtailGetContactUrls200UrlsItem[];
7611
+ urls?: RedtailGetContactUrls200UrlsItem[];
7599
7612
  };
7600
7613
  export type RedtailGetContactUrlsBody = {
7601
7614
  /**
7602
7615
  * Redtail contact identifier
7603
7616
  * @minLength 1
7604
7617
  */
7605
- contactId: string;
7618
+ id: string;
7606
7619
  /** Integration user id for Redtail requests. */
7607
7620
  userId: string;
7608
7621
  };
@@ -7624,7 +7637,7 @@ export type RedtailDeleteContactSocialMediaBody = {
7624
7637
  * Redtail contact identifier
7625
7638
  * @minLength 1
7626
7639
  */
7627
- contactId: string;
7640
+ id: string;
7628
7641
  /**
7629
7642
  * Redtail contact social media identifier
7630
7643
  * @minLength 1
@@ -7646,28 +7659,28 @@ export type RedtailUpdateContactSocialMedia200AnyOf = {
7646
7659
  success?: boolean;
7647
7660
  };
7648
7661
  export type RedtailUpdateContactSocialMedia200 = RedtailUpdateContactSocialMedia200AnyOf | '' | RedtailUpdateContactSocialMedia200AnyOfTwo | RedtailUpdateContactSocialMedia200AnyOfThree;
7649
- export type RedtailUpdateContactSocialMediaBodyAllOfThree = {
7650
- /** Integration user id for Redtail requests. */
7651
- userId: string;
7652
- };
7653
- export type RedtailUpdateContactSocialMediaBodyAllOfTwo = {
7654
- [key: string]: unknown | null;
7655
- };
7656
- export type RedtailUpdateContactSocialMediaBodyAllOf = {
7662
+ export type RedtailUpdateContactSocialMediaBody = {
7663
+ address?: string;
7664
+ custom_type?: string;
7657
7665
  /**
7658
7666
  * Redtail contact identifier
7659
7667
  * @minLength 1
7660
7668
  */
7661
- contactId: string;
7669
+ id: string;
7662
7670
  /**
7663
- * Redtail contact social media identifier
7671
+ * Social media type id. Required by Redtail.
7672
+ * @nullable
7673
+ */
7674
+ social_media_type?: number | null;
7675
+ /**
7676
+ * Redtail social media id to update.
7664
7677
  * @minLength 1
7665
7678
  */
7666
- socialMediaId?: string;
7679
+ socialMediaId: string;
7667
7680
  /** Integration user id for Redtail requests. */
7668
7681
  userId: string;
7682
+ [key: string]: unknown | null;
7669
7683
  };
7670
- export type RedtailUpdateContactSocialMediaBody = RedtailUpdateContactSocialMediaBodyAllOf & RedtailUpdateContactSocialMediaBodyAllOfTwo & RedtailUpdateContactSocialMediaBodyAllOfThree;
7671
7684
  /**
7672
7685
  * @nullable
7673
7686
  */
@@ -7681,28 +7694,18 @@ export type RedtailCreateContactSocialMedia200AnyOf = {
7681
7694
  success?: boolean;
7682
7695
  };
7683
7696
  export type RedtailCreateContactSocialMedia200 = RedtailCreateContactSocialMedia200AnyOf | '' | RedtailCreateContactSocialMedia200AnyOfTwo | RedtailCreateContactSocialMedia200AnyOfThree;
7684
- export type RedtailCreateContactSocialMediaBodyAllOfThree = {
7685
- /** Integration user id for Redtail requests. */
7686
- userId: string;
7687
- };
7688
- export type RedtailCreateContactSocialMediaBodyAllOfTwo = {
7689
- [key: string]: unknown | null;
7690
- };
7691
- export type RedtailCreateContactSocialMediaBodyAllOf = {
7692
- /**
7693
- * Redtail contact identifier
7694
- * @minLength 1
7695
- */
7696
- contactId: string;
7697
+ export type RedtailCreateContactSocialMediaBody = {
7698
+ address?: string;
7699
+ custom_type?: string;
7700
+ /** @minLength 1 */
7701
+ id: string;
7697
7702
  /**
7698
- * Redtail contact social media identifier
7699
- * @minLength 1
7703
+ * Social media type id. Required by Redtail.
7704
+ * @nullable
7700
7705
  */
7701
- socialMediaId?: string;
7702
- /** Integration user id for Redtail requests. */
7706
+ social_media_type: number | null;
7703
7707
  userId: string;
7704
7708
  };
7705
- export type RedtailCreateContactSocialMediaBody = RedtailCreateContactSocialMediaBodyAllOf & RedtailCreateContactSocialMediaBodyAllOfTwo & RedtailCreateContactSocialMediaBodyAllOfThree;
7706
7709
  export type RedtailGetContactSocialMedia200SocialMedia = {
7707
7710
  contact_id?: number;
7708
7711
  /** @nullable */
@@ -7714,14 +7717,14 @@ export type RedtailGetContactSocialMedia200SocialMedia = {
7714
7717
  updated_at?: string | null;
7715
7718
  };
7716
7719
  export type RedtailGetContactSocialMedia200 = {
7717
- social_media: RedtailGetContactSocialMedia200SocialMedia;
7720
+ social_media?: RedtailGetContactSocialMedia200SocialMedia;
7718
7721
  };
7719
7722
  export type RedtailGetContactSocialMediaBody = {
7720
7723
  /**
7721
7724
  * Redtail contact identifier
7722
7725
  * @minLength 1
7723
7726
  */
7724
- contactId: string;
7727
+ id: string;
7725
7728
  /**
7726
7729
  * Redtail contact social media identifier
7727
7730
  * @minLength 1
@@ -7746,14 +7749,14 @@ export type RedtailGetContactSocialMedias200Meta = {
7746
7749
  };
7747
7750
  export type RedtailGetContactSocialMedias200 = {
7748
7751
  meta?: RedtailGetContactSocialMedias200Meta;
7749
- social_medias: RedtailGetContactSocialMedias200SocialMediasItem[];
7752
+ social_medias?: RedtailGetContactSocialMedias200SocialMediasItem[];
7750
7753
  };
7751
7754
  export type RedtailGetContactSocialMediasBody = {
7752
7755
  /**
7753
7756
  * Redtail contact identifier
7754
7757
  * @minLength 1
7755
7758
  */
7756
- contactId: string;
7759
+ id: string;
7757
7760
  /** Integration user id for Redtail requests. */
7758
7761
  userId: string;
7759
7762
  };
@@ -7775,7 +7778,7 @@ export type RedtailDeleteContactPhoneBody = {
7775
7778
  * Redtail contact identifier
7776
7779
  * @minLength 1
7777
7780
  */
7778
- contactId: string;
7781
+ id: string;
7779
7782
  /**
7780
7783
  * Redtail contact phone identifier
7781
7784
  * @minLength 1
@@ -7797,28 +7800,37 @@ export type RedtailUpdateContactPhone200AnyOf = {
7797
7800
  success?: boolean;
7798
7801
  };
7799
7802
  export type RedtailUpdateContactPhone200 = RedtailUpdateContactPhone200AnyOf | '' | RedtailUpdateContactPhone200AnyOfTwo | RedtailUpdateContactPhone200AnyOfThree;
7800
- export type RedtailUpdateContactPhoneBodyAllOfThree = {
7801
- /** Integration user id for Redtail requests. */
7802
- userId: string;
7803
- };
7804
- export type RedtailUpdateContactPhoneBodyAllOfTwo = {
7805
- [key: string]: unknown | null;
7806
- };
7807
- export type RedtailUpdateContactPhoneBodyAllOf = {
7803
+ export type RedtailUpdateContactPhoneBody = {
7804
+ /**
7805
+ * Country code. Required by Redtail.
7806
+ * @nullable
7807
+ */
7808
+ country_code?: number | null;
7809
+ custom_type?: string;
7810
+ extension?: string;
7808
7811
  /**
7809
7812
  * Redtail contact identifier
7810
7813
  * @minLength 1
7811
7814
  */
7812
- contactId: string;
7815
+ id: string;
7816
+ is_preferred?: boolean;
7817
+ is_primary?: boolean;
7818
+ number?: string;
7813
7819
  /**
7814
- * Redtail contact phone identifier
7820
+ * Phone type id. Required by Redtail.
7821
+ * @nullable
7822
+ */
7823
+ phone_type?: number | null;
7824
+ /**
7825
+ * Redtail phone id to update.
7815
7826
  * @minLength 1
7816
7827
  */
7817
- phoneId?: string;
7828
+ phoneId: string;
7829
+ speed_dial?: string;
7818
7830
  /** Integration user id for Redtail requests. */
7819
7831
  userId: string;
7832
+ [key: string]: unknown | null;
7820
7833
  };
7821
- export type RedtailUpdateContactPhoneBody = RedtailUpdateContactPhoneBodyAllOf & RedtailUpdateContactPhoneBodyAllOfTwo & RedtailUpdateContactPhoneBodyAllOfThree;
7822
7834
  /**
7823
7835
  * @nullable
7824
7836
  */
@@ -7832,28 +7844,27 @@ export type RedtailCreateContactPhone200AnyOf = {
7832
7844
  success?: boolean;
7833
7845
  };
7834
7846
  export type RedtailCreateContactPhone200 = RedtailCreateContactPhone200AnyOf | '' | RedtailCreateContactPhone200AnyOfTwo | RedtailCreateContactPhone200AnyOfThree;
7835
- export type RedtailCreateContactPhoneBodyAllOfThree = {
7836
- /** Integration user id for Redtail requests. */
7837
- userId: string;
7838
- };
7839
- export type RedtailCreateContactPhoneBodyAllOfTwo = {
7840
- [key: string]: unknown | null;
7841
- };
7842
- export type RedtailCreateContactPhoneBodyAllOf = {
7847
+ export type RedtailCreateContactPhoneBody = {
7843
7848
  /**
7844
- * Redtail contact identifier
7845
- * @minLength 1
7849
+ * Country code. Required by Redtail.
7850
+ * @nullable
7846
7851
  */
7847
- contactId: string;
7852
+ country_code: number | null;
7853
+ custom_type?: string;
7854
+ extension?: string;
7855
+ /** @minLength 1 */
7856
+ id: string;
7857
+ is_preferred?: boolean;
7858
+ is_primary?: boolean;
7859
+ number?: string;
7848
7860
  /**
7849
- * Redtail contact phone identifier
7850
- * @minLength 1
7861
+ * Phone type id. Required by Redtail.
7862
+ * @nullable
7851
7863
  */
7852
- phoneId?: string;
7853
- /** Integration user id for Redtail requests. */
7864
+ phone_type: number | null;
7865
+ speed_dial?: string;
7854
7866
  userId: string;
7855
7867
  };
7856
- export type RedtailCreateContactPhoneBody = RedtailCreateContactPhoneBodyAllOf & RedtailCreateContactPhoneBodyAllOfTwo & RedtailCreateContactPhoneBodyAllOfThree;
7857
7868
  export type RedtailGetContactPhone200Phone = {
7858
7869
  contact_id?: number;
7859
7870
  /** @nullable */
@@ -7865,14 +7876,14 @@ export type RedtailGetContactPhone200Phone = {
7865
7876
  updated_at?: string | null;
7866
7877
  };
7867
7878
  export type RedtailGetContactPhone200 = {
7868
- phone: RedtailGetContactPhone200Phone;
7879
+ phone?: RedtailGetContactPhone200Phone;
7869
7880
  };
7870
7881
  export type RedtailGetContactPhoneBody = {
7871
7882
  /**
7872
7883
  * Redtail contact identifier
7873
7884
  * @minLength 1
7874
7885
  */
7875
- contactId: string;
7886
+ id: string;
7876
7887
  /**
7877
7888
  * Redtail contact phone identifier
7878
7889
  * @minLength 1
@@ -7897,14 +7908,14 @@ export type RedtailGetContactPhones200Meta = {
7897
7908
  };
7898
7909
  export type RedtailGetContactPhones200 = {
7899
7910
  meta?: RedtailGetContactPhones200Meta;
7900
- phones: RedtailGetContactPhones200PhonesItem[];
7911
+ phones?: RedtailGetContactPhones200PhonesItem[];
7901
7912
  };
7902
7913
  export type RedtailGetContactPhonesBody = {
7903
7914
  /**
7904
7915
  * Redtail contact identifier
7905
7916
  * @minLength 1
7906
7917
  */
7907
- contactId: string;
7918
+ id: string;
7908
7919
  /** Integration user id for Redtail requests. */
7909
7920
  userId: string;
7910
7921
  };
@@ -7923,15 +7934,15 @@ export type RedtailDeleteContactEmail200AnyOf = {
7923
7934
  export type RedtailDeleteContactEmail200 = RedtailDeleteContactEmail200AnyOf | '' | RedtailDeleteContactEmail200AnyOfTwo | RedtailDeleteContactEmail200AnyOfThree;
7924
7935
  export type RedtailDeleteContactEmailBody = {
7925
7936
  /**
7926
- * Redtail contact identifier
7937
+ * Redtail contact email identifier
7927
7938
  * @minLength 1
7928
7939
  */
7929
- contactId: string;
7940
+ emailId?: string;
7930
7941
  /**
7931
- * Redtail contact email identifier
7942
+ * Redtail contact identifier
7932
7943
  * @minLength 1
7933
7944
  */
7934
- emailId?: string;
7945
+ id: string;
7935
7946
  /** Integration user id for Redtail requests. */
7936
7947
  userId: string;
7937
7948
  };
@@ -7948,28 +7959,29 @@ export type RedtailUpdateContactEmail200AnyOf = {
7948
7959
  success?: boolean;
7949
7960
  };
7950
7961
  export type RedtailUpdateContactEmail200 = RedtailUpdateContactEmail200AnyOf | '' | RedtailUpdateContactEmail200AnyOfTwo | RedtailUpdateContactEmail200AnyOfThree;
7951
- export type RedtailUpdateContactEmailBodyAllOfThree = {
7952
- /** Integration user id for Redtail requests. */
7953
- userId: string;
7954
- };
7955
- export type RedtailUpdateContactEmailBodyAllOfTwo = {
7956
- [key: string]: unknown | null;
7957
- };
7958
- export type RedtailUpdateContactEmailBodyAllOf = {
7962
+ export type RedtailUpdateContactEmailBody = {
7963
+ address?: string;
7964
+ custom_type?: string;
7959
7965
  /**
7960
- * Redtail contact identifier
7966
+ * Email type id. Required by Redtail.
7967
+ * @nullable
7968
+ */
7969
+ email_type?: number | null;
7970
+ /**
7971
+ * Redtail email id to update.
7961
7972
  * @minLength 1
7962
7973
  */
7963
- contactId: string;
7974
+ emailId: string;
7964
7975
  /**
7965
- * Redtail contact email identifier
7976
+ * Redtail contact identifier
7966
7977
  * @minLength 1
7967
7978
  */
7968
- emailId?: string;
7979
+ id: string;
7980
+ is_primary?: boolean;
7969
7981
  /** Integration user id for Redtail requests. */
7970
7982
  userId: string;
7983
+ [key: string]: unknown | null;
7971
7984
  };
7972
- export type RedtailUpdateContactEmailBody = RedtailUpdateContactEmailBodyAllOf & RedtailUpdateContactEmailBodyAllOfTwo & RedtailUpdateContactEmailBodyAllOfThree;
7973
7985
  /**
7974
7986
  * @nullable
7975
7987
  */
@@ -7983,28 +7995,19 @@ export type RedtailCreateContactEmail200AnyOf = {
7983
7995
  success?: boolean;
7984
7996
  };
7985
7997
  export type RedtailCreateContactEmail200 = RedtailCreateContactEmail200AnyOf | '' | RedtailCreateContactEmail200AnyOfTwo | RedtailCreateContactEmail200AnyOfThree;
7986
- export type RedtailCreateContactEmailBodyAllOfThree = {
7987
- /** Integration user id for Redtail requests. */
7988
- userId: string;
7989
- };
7990
- export type RedtailCreateContactEmailBodyAllOfTwo = {
7991
- [key: string]: unknown | null;
7992
- };
7993
- export type RedtailCreateContactEmailBodyAllOf = {
7994
- /**
7995
- * Redtail contact identifier
7996
- * @minLength 1
7997
- */
7998
- contactId: string;
7998
+ export type RedtailCreateContactEmailBody = {
7999
+ address?: string;
8000
+ custom_type?: string;
7999
8001
  /**
8000
- * Redtail contact email identifier
8001
- * @minLength 1
8002
+ * Email type id. Required by Redtail.
8003
+ * @nullable
8002
8004
  */
8003
- emailId?: string;
8004
- /** Integration user id for Redtail requests. */
8005
+ email_type: number | null;
8006
+ /** @minLength 1 */
8007
+ id: string;
8008
+ is_primary?: boolean;
8005
8009
  userId: string;
8006
8010
  };
8007
- export type RedtailCreateContactEmailBody = RedtailCreateContactEmailBodyAllOf & RedtailCreateContactEmailBodyAllOfTwo & RedtailCreateContactEmailBodyAllOfThree;
8008
8011
  export type RedtailGetContactEmail200Email = {
8009
8012
  contact_id?: number;
8010
8013
  /** @nullable */
@@ -8016,19 +8019,19 @@ export type RedtailGetContactEmail200Email = {
8016
8019
  updated_at?: string | null;
8017
8020
  };
8018
8021
  export type RedtailGetContactEmail200 = {
8019
- email: RedtailGetContactEmail200Email;
8022
+ email?: RedtailGetContactEmail200Email;
8020
8023
  };
8021
8024
  export type RedtailGetContactEmailBody = {
8022
8025
  /**
8023
- * Redtail contact identifier
8026
+ * Redtail contact email identifier
8024
8027
  * @minLength 1
8025
8028
  */
8026
- contactId: string;
8029
+ emailId?: string;
8027
8030
  /**
8028
- * Redtail contact email identifier
8031
+ * Redtail contact identifier
8029
8032
  * @minLength 1
8030
8033
  */
8031
- emailId?: string;
8034
+ id: string;
8032
8035
  /** Integration user id for Redtail requests. */
8033
8036
  userId: string;
8034
8037
  };
@@ -8047,7 +8050,7 @@ export type RedtailGetContactEmails200EmailsItem = {
8047
8050
  updated_at?: string | null;
8048
8051
  };
8049
8052
  export type RedtailGetContactEmails200 = {
8050
- emails: RedtailGetContactEmails200EmailsItem[];
8053
+ emails?: RedtailGetContactEmails200EmailsItem[];
8051
8054
  meta?: RedtailGetContactEmails200Meta;
8052
8055
  };
8053
8056
  export type RedtailGetContactEmailsBody = {
@@ -8055,7 +8058,7 @@ export type RedtailGetContactEmailsBody = {
8055
8058
  * Redtail contact identifier
8056
8059
  * @minLength 1
8057
8060
  */
8058
- contactId: string;
8061
+ id: string;
8059
8062
  /** Integration user id for Redtail requests. */
8060
8063
  userId: string;
8061
8064
  };
@@ -8082,7 +8085,7 @@ export type RedtailDeleteContactAddressBody = {
8082
8085
  * Redtail contact identifier
8083
8086
  * @minLength 1
8084
8087
  */
8085
- contactId: string;
8088
+ id: string;
8086
8089
  /** Integration user id for Redtail requests. */
8087
8090
  userId: string;
8088
8091
  };
@@ -8099,28 +8102,45 @@ export type RedtailUpdateContactAddress200AnyOf = {
8099
8102
  success?: boolean;
8100
8103
  };
8101
8104
  export type RedtailUpdateContactAddress200 = RedtailUpdateContactAddress200AnyOf | '' | RedtailUpdateContactAddress200AnyOfTwo | RedtailUpdateContactAddress200AnyOfThree;
8102
- export type RedtailUpdateContactAddressBodyAllOfThree = {
8103
- /** Integration user id for Redtail requests. */
8104
- userId: string;
8105
- };
8106
- export type RedtailUpdateContactAddressBodyAllOfTwo = {
8107
- [key: string]: unknown | null;
8108
- };
8109
- export type RedtailUpdateContactAddressBodyAllOf = {
8105
+ /**
8106
+ * Create a contact address. Extra Redtail fields are accepted.
8107
+ */
8108
+ export type RedtailUpdateContactAddressBody = {
8110
8109
  /**
8111
- * Redtail contact address identifier
8110
+ * Address type id. Required by Redtail.
8111
+ * @nullable
8112
+ */
8113
+ address_type?: number | null;
8114
+ /**
8115
+ * Redtail address id to update.
8112
8116
  * @minLength 1
8113
8117
  */
8114
- addressId?: string;
8118
+ addressId: string;
8119
+ city?: string;
8120
+ country?: string;
8121
+ custom_type?: string;
8115
8122
  /**
8116
8123
  * Redtail contact identifier
8117
8124
  * @minLength 1
8118
8125
  */
8119
- contactId: string;
8126
+ id: string;
8127
+ is_primary?: boolean;
8128
+ secondary_address?: string;
8129
+ /**
8130
+ * State abbreviation. Required by Redtail.
8131
+ * @minLength 1
8132
+ */
8133
+ state?: string;
8134
+ street_address?: string;
8120
8135
  /** Integration user id for Redtail requests. */
8121
8136
  userId: string;
8137
+ /**
8138
+ * Zip code. Required by Redtail.
8139
+ * @minLength 1
8140
+ */
8141
+ zip?: string;
8142
+ [key: string]: unknown | null;
8122
8143
  };
8123
- export type RedtailUpdateContactAddressBody = RedtailUpdateContactAddressBodyAllOf & RedtailUpdateContactAddressBodyAllOfTwo & RedtailUpdateContactAddressBodyAllOfThree;
8124
8144
  /**
8125
8145
  * @nullable
8126
8146
  */
@@ -8134,28 +8154,38 @@ export type RedtailCreateContactAddress200AnyOf = {
8134
8154
  success?: boolean;
8135
8155
  };
8136
8156
  export type RedtailCreateContactAddress200 = RedtailCreateContactAddress200AnyOf | '' | RedtailCreateContactAddress200AnyOfTwo | RedtailCreateContactAddress200AnyOfThree;
8137
- export type RedtailCreateContactAddressBodyAllOfThree = {
8138
- /** Integration user id for Redtail requests. */
8139
- userId: string;
8140
- };
8141
- export type RedtailCreateContactAddressBodyAllOfTwo = {
8142
- [key: string]: unknown | null;
8143
- };
8144
- export type RedtailCreateContactAddressBodyAllOf = {
8157
+ /**
8158
+ * Create a contact address. Extra Redtail fields are accepted.
8159
+ */
8160
+ export type RedtailCreateContactAddressBody = {
8145
8161
  /**
8146
- * Redtail contact address identifier
8147
- * @minLength 1
8162
+ * Address type id. Required by Redtail.
8163
+ * @nullable
8148
8164
  */
8149
- addressId?: string;
8165
+ address_type: number | null;
8166
+ city?: string;
8167
+ country?: string;
8168
+ custom_type?: string;
8150
8169
  /**
8151
8170
  * Redtail contact identifier
8152
8171
  * @minLength 1
8153
8172
  */
8154
- contactId: string;
8155
- /** Integration user id for Redtail requests. */
8173
+ id: string;
8174
+ is_primary?: boolean;
8175
+ secondary_address?: string;
8176
+ /**
8177
+ * State abbreviation. Required by Redtail.
8178
+ * @minLength 1
8179
+ */
8180
+ state: string;
8181
+ street_address?: string;
8156
8182
  userId: string;
8183
+ /**
8184
+ * Zip code. Required by Redtail.
8185
+ * @minLength 1
8186
+ */
8187
+ zip: string;
8157
8188
  };
8158
- export type RedtailCreateContactAddressBody = RedtailCreateContactAddressBodyAllOf & RedtailCreateContactAddressBodyAllOfTwo & RedtailCreateContactAddressBodyAllOfThree;
8159
8189
  export type RedtailGetContactAddress200Address = {
8160
8190
  contact_id?: number;
8161
8191
  /** @nullable */
@@ -8167,7 +8197,7 @@ export type RedtailGetContactAddress200Address = {
8167
8197
  updated_at?: string | null;
8168
8198
  };
8169
8199
  export type RedtailGetContactAddress200 = {
8170
- address: RedtailGetContactAddress200Address;
8200
+ address?: RedtailGetContactAddress200Address;
8171
8201
  };
8172
8202
  export type RedtailGetContactAddressBody = {
8173
8203
  /**
@@ -8179,7 +8209,7 @@ export type RedtailGetContactAddressBody = {
8179
8209
  * Redtail contact identifier
8180
8210
  * @minLength 1
8181
8211
  */
8182
- contactId: string;
8212
+ id: string;
8183
8213
  /** Integration user id for Redtail requests. */
8184
8214
  userId: string;
8185
8215
  };
@@ -8198,7 +8228,7 @@ export type RedtailGetContactAddresses200AddressesItem = {
8198
8228
  updated_at?: string | null;
8199
8229
  };
8200
8230
  export type RedtailGetContactAddresses200 = {
8201
- addresses: RedtailGetContactAddresses200AddressesItem[];
8231
+ addresses?: RedtailGetContactAddresses200AddressesItem[];
8202
8232
  meta?: RedtailGetContactAddresses200Meta;
8203
8233
  };
8204
8234
  export type RedtailGetContactAddressesBody = {
@@ -8206,7 +8236,7 @@ export type RedtailGetContactAddressesBody = {
8206
8236
  * Redtail contact identifier
8207
8237
  * @minLength 1
8208
8238
  */
8209
- contactId: string;
8239
+ id: string;
8210
8240
  /** Integration user id for Redtail requests. */
8211
8241
  userId: string;
8212
8242
  };
@@ -8228,7 +8258,7 @@ export type RedtailDeleteContactBody = {
8228
8258
  * Redtail contact identifier
8229
8259
  * @minLength 1
8230
8260
  */
8231
- contactId: string;
8261
+ id: string;
8232
8262
  /** Integration user id for Redtail requests. */
8233
8263
  userId: string;
8234
8264
  };
@@ -8237,7 +8267,7 @@ export type RedtailCreateContact200AnyOfNine = {
8237
8267
  success?: boolean;
8238
8268
  };
8239
8269
  export type RedtailCreateContact200AnyOf = {
8240
- contact: RedtailCreateContact200AnyOfContact;
8270
+ contact?: RedtailCreateContact200AnyOfContact;
8241
8271
  };
8242
8272
  export type RedtailCreateContact200 = RedtailCreateContact200AnyOf | RedtailCreateContact200AnyOfNine;
8243
8273
  export type RedtailCreateContact200AnyOfContactUrlsItem = {
@@ -8375,17 +8405,65 @@ export type RedtailCreateContact200AnyOfContact = {
8375
8405
  /** @nullable */
8376
8406
  writing_advisor_id?: number | null;
8377
8407
  };
8378
- export type RedtailCreateContactBodyAllOfTwo = {
8379
- /** Integration user id for Redtail requests. */
8380
- userId: string;
8381
- };
8382
- export type RedtailCreateContactBodyAllOf = {
8383
- [key: string]: unknown | null;
8408
+ /**
8409
+ * Contact type. Required by Redtail.
8410
+ */
8411
+ export type RedtailCreateContactBodyType = typeof RedtailCreateContactBodyType[keyof typeof RedtailCreateContactBodyType];
8412
+ export declare const RedtailCreateContactBodyType: {
8413
+ readonly Individual: "Individual";
8414
+ readonly Business: "Business";
8415
+ readonly Association: "Association";
8416
+ readonly Trust: "Trust";
8417
+ readonly Union: "Union";
8384
8418
  };
8385
8419
  /**
8386
- * Pass-through request payload for Redtail write endpoints
8420
+ * Create contact. Additional Redtail fields are accepted.
8387
8421
  */
8388
- export type RedtailCreateContactBody = RedtailCreateContactBodyAllOf & RedtailCreateContactBodyAllOfTwo;
8422
+ export type RedtailCreateContactBody = {
8423
+ /** @nullable */
8424
+ category_id?: number | null;
8425
+ /** @nullable */
8426
+ client_since?: string | null;
8427
+ /** @nullable */
8428
+ client_termination_date?: string | null;
8429
+ company_name?: string;
8430
+ /** @nullable */
8431
+ death_date?: string | null;
8432
+ designation?: string;
8433
+ /** @nullable */
8434
+ dob?: string | null;
8435
+ /** @nullable */
8436
+ employer_id?: number | null;
8437
+ favorite?: boolean;
8438
+ first_name?: string;
8439
+ /** @nullable */
8440
+ gender_id?: number | null;
8441
+ job_title?: string;
8442
+ last_name?: string;
8443
+ /** @nullable */
8444
+ marital_date?: string | null;
8445
+ /** @nullable */
8446
+ marital_status_id?: number | null;
8447
+ middle_name?: string;
8448
+ nickname?: string;
8449
+ referred_by?: string;
8450
+ /** @nullable */
8451
+ salutation_id?: number | null;
8452
+ /** @nullable */
8453
+ servicing_advisor_id?: number | null;
8454
+ /** @nullable */
8455
+ source_id?: number | null;
8456
+ /** @nullable */
8457
+ status_id?: number | null;
8458
+ /** @nullable */
8459
+ suffix_id?: number | null;
8460
+ tax_id?: string;
8461
+ /** Contact type. Required by Redtail. */
8462
+ type: RedtailCreateContactBodyType;
8463
+ userId: string;
8464
+ /** @nullable */
8465
+ writing_advisor_id?: number | null;
8466
+ };
8389
8467
  export type RedtailGetNotes200NotesItem = {
8390
8468
  /** @nullable */
8391
8469
  added_by?: number | null;
@@ -8557,17 +8635,15 @@ export type RedtailGetActivityNotes200 = {
8557
8635
  meta?: RedtailGetActivityNotes200Meta;
8558
8636
  notes?: RedtailGetActivityNotes200NotesItem[];
8559
8637
  };
8638
+ /**
8639
+ * List notes for an activity: activity id and integration user only.
8640
+ */
8560
8641
  export type RedtailGetActivityNotesBody = {
8561
8642
  /**
8562
8643
  * Redtail activity identifier
8563
8644
  * @minLength 1
8564
8645
  */
8565
8646
  activityId: string;
8566
- /**
8567
- * Redtail activity note identifier
8568
- * @minLength 1
8569
- */
8570
- noteId?: string;
8571
8647
  /** Integration user id for Redtail requests. */
8572
8648
  userId: string;
8573
8649
  };
@@ -8584,6 +8660,9 @@ export type RedtailDeleteActivityNote200AnyOf = {
8584
8660
  success?: boolean;
8585
8661
  };
8586
8662
  export type RedtailDeleteActivityNote200 = RedtailDeleteActivityNote200AnyOf | '' | RedtailDeleteActivityNote200AnyOfTwo | RedtailDeleteActivityNote200AnyOfThree;
8663
+ /**
8664
+ * Delete an activity note: activity id, note id, and integration user.
8665
+ */
8587
8666
  export type RedtailDeleteActivityNoteBody = {
8588
8667
  /**
8589
8668
  * Redtail activity identifier
@@ -8594,7 +8673,7 @@ export type RedtailDeleteActivityNoteBody = {
8594
8673
  * Redtail activity note identifier
8595
8674
  * @minLength 1
8596
8675
  */
8597
- noteId?: string;
8676
+ noteId: string;
8598
8677
  /** Integration user id for Redtail requests. */
8599
8678
  userId: string;
8600
8679
  };
@@ -8602,6 +8681,7 @@ export type RedtailCreateActivityNote200AnyOfFive = {
8602
8681
  id?: number;
8603
8682
  success?: boolean;
8604
8683
  };
8684
+ export type RedtailCreateActivityNote200 = RedtailCreateActivityNote200AnyOf | RedtailCreateActivityNote200AnyOfThree | RedtailCreateActivityNote200AnyOfFive;
8605
8685
  export type RedtailCreateActivityNote200AnyOfThreeActivityNote = {
8606
8686
  /** @nullable */
8607
8687
  added_by?: number | null;
@@ -8658,19 +8738,17 @@ export type RedtailCreateActivityNote200AnyOfNote = {
8658
8738
  export type RedtailCreateActivityNote200AnyOf = {
8659
8739
  note: RedtailCreateActivityNote200AnyOfNote;
8660
8740
  };
8661
- export type RedtailCreateActivityNote200 = RedtailCreateActivityNote200AnyOf | RedtailCreateActivityNote200AnyOfThree | RedtailCreateActivityNote200AnyOfFive;
8741
+ /**
8742
+ * Create a note on an activity. Hub strips `userId` and `activityId` before calling Redtail.
8743
+ */
8662
8744
  export type RedtailCreateActivityNoteBody = {
8663
- /**
8664
- * Redtail activity identifier
8665
- * @minLength 1
8666
- */
8745
+ /** @minLength 1 */
8667
8746
  activityId: string;
8668
- /**
8669
- * Redtail activity note identifier
8670
- * @minLength 1
8671
- */
8672
- noteId?: string;
8673
- /** Integration user id for Redtail requests. */
8747
+ body?: string;
8748
+ /** @nullable */
8749
+ category_id?: number | null;
8750
+ /** @nullable */
8751
+ note_type?: number | null;
8674
8752
  userId: string;
8675
8753
  };
8676
8754
  /**
@@ -8698,6 +8776,10 @@ export type RedtailDeleteActivityBody = {
8698
8776
  export type RedtailUpdateActivity200 = {
8699
8777
  activity: RedtailUpdateActivity200Activity;
8700
8778
  };
8779
+ /**
8780
+ * @nullable
8781
+ */
8782
+ export type RedtailUpdateActivity200ActivityStartDate = unknown | null;
8701
8783
  /**
8702
8784
  * @nullable
8703
8785
  */
@@ -8707,6 +8789,14 @@ export type RedtailUpdateActivity200ActivityPrivacySettings = {
8707
8789
  export type RedtailUpdateActivity200ActivityLinkedContactsItem = {
8708
8790
  [key: string]: unknown;
8709
8791
  };
8792
+ /**
8793
+ * @nullable
8794
+ */
8795
+ export type RedtailUpdateActivity200ActivityEndDate = unknown | null;
8796
+ /**
8797
+ * @nullable
8798
+ */
8799
+ export type RedtailUpdateActivity200ActivityCompletedAt = unknown | null;
8710
8800
  export type RedtailUpdateActivity200ActivityAttendeesItem = {
8711
8801
  [key: string]: unknown;
8712
8802
  };
@@ -8723,7 +8813,7 @@ export type RedtailUpdateActivity200Activity = {
8723
8813
  /** @nullable */
8724
8814
  completed?: boolean | null;
8725
8815
  /** @nullable */
8726
- completed_at?: string | null;
8816
+ completed_at?: RedtailUpdateActivity200ActivityCompletedAt;
8727
8817
  /** @nullable */
8728
8818
  created_at?: string | null;
8729
8819
  /** @nullable */
@@ -8731,7 +8821,7 @@ export type RedtailUpdateActivity200Activity = {
8731
8821
  /** @nullable */
8732
8822
  description?: string | null;
8733
8823
  /** @nullable */
8734
- end_date?: string | null;
8824
+ end_date?: RedtailUpdateActivity200ActivityEndDate;
8735
8825
  /** @nullable */
8736
8826
  ical?: string | null;
8737
8827
  id?: number;
@@ -8755,21 +8845,62 @@ export type RedtailUpdateActivity200Activity = {
8755
8845
  /** @nullable */
8756
8846
  share_with_client?: boolean | null;
8757
8847
  /** @nullable */
8758
- start_date?: string | null;
8848
+ start_date?: RedtailUpdateActivity200ActivityStartDate;
8759
8849
  /** @nullable */
8760
8850
  subject?: string | null;
8761
8851
  /** @nullable */
8762
8852
  updated_at?: string | null;
8763
8853
  };
8854
+ /**
8855
+ * Create an activity. `userId` is for the integration hub only and is not sent to Redtail. Additional Redtail fields are accepted.
8856
+ */
8764
8857
  export type RedtailUpdateActivityBody = {
8858
+ /** @nullable */
8859
+ activity_code_id?: number | null;
8765
8860
  /**
8766
8861
  * Redtail activity identifier
8767
8862
  * @minLength 1
8768
8863
  */
8769
8864
  activityId: string;
8865
+ /** @nullable */
8866
+ all_day?: boolean | null;
8867
+ /** @nullable */
8868
+ category_id?: number | null;
8869
+ completed?: boolean;
8870
+ /** @nullable */
8871
+ description?: string | null;
8872
+ /** @nullable */
8873
+ end_date?: string | null;
8874
+ /** @nullable */
8875
+ importance?: number | null;
8876
+ instanced?: boolean;
8877
+ /** @nullable */
8878
+ location?: string | null;
8879
+ /** @nullable */
8880
+ percentdone?: number | null;
8881
+ /** @nullable */
8882
+ priority?: number | null;
8883
+ /** @nullable */
8884
+ repeat_ends?: string | null;
8885
+ /**
8886
+ * Recurrence pattern. Required by Redtail. Use "never" for non-repeating.
8887
+ * @nullable
8888
+ */
8889
+ repeats?: string | null;
8890
+ /** @nullable */
8891
+ start_date?: string | null;
8892
+ subject?: string;
8770
8893
  /** Integration user id for Redtail requests. */
8771
8894
  userId: string;
8895
+ [key: string]: unknown | null;
8896
+ };
8897
+ export type RedtailCreateActivity200 = {
8898
+ activity: RedtailCreateActivity200Activity;
8772
8899
  };
8900
+ /**
8901
+ * @nullable
8902
+ */
8903
+ export type RedtailCreateActivity200ActivityStartDate = unknown | null;
8773
8904
  /**
8774
8905
  * @nullable
8775
8906
  */
@@ -8779,6 +8910,14 @@ export type RedtailCreateActivity200ActivityPrivacySettings = {
8779
8910
  export type RedtailCreateActivity200ActivityLinkedContactsItem = {
8780
8911
  [key: string]: unknown;
8781
8912
  };
8913
+ /**
8914
+ * @nullable
8915
+ */
8916
+ export type RedtailCreateActivity200ActivityEndDate = unknown | null;
8917
+ /**
8918
+ * @nullable
8919
+ */
8920
+ export type RedtailCreateActivity200ActivityCompletedAt = unknown | null;
8782
8921
  export type RedtailCreateActivity200ActivityAttendeesItem = {
8783
8922
  [key: string]: unknown;
8784
8923
  };
@@ -8795,7 +8934,7 @@ export type RedtailCreateActivity200Activity = {
8795
8934
  /** @nullable */
8796
8935
  completed?: boolean | null;
8797
8936
  /** @nullable */
8798
- completed_at?: string | null;
8937
+ completed_at?: RedtailCreateActivity200ActivityCompletedAt;
8799
8938
  /** @nullable */
8800
8939
  created_at?: string | null;
8801
8940
  /** @nullable */
@@ -8803,7 +8942,7 @@ export type RedtailCreateActivity200Activity = {
8803
8942
  /** @nullable */
8804
8943
  description?: string | null;
8805
8944
  /** @nullable */
8806
- end_date?: string | null;
8945
+ end_date?: RedtailCreateActivity200ActivityEndDate;
8807
8946
  /** @nullable */
8808
8947
  ical?: string | null;
8809
8948
  id?: number;
@@ -8827,18 +8966,55 @@ export type RedtailCreateActivity200Activity = {
8827
8966
  /** @nullable */
8828
8967
  share_with_client?: boolean | null;
8829
8968
  /** @nullable */
8830
- start_date?: string | null;
8969
+ start_date?: RedtailCreateActivity200ActivityStartDate;
8831
8970
  /** @nullable */
8832
8971
  subject?: string | null;
8833
8972
  /** @nullable */
8834
8973
  updated_at?: string | null;
8835
8974
  };
8836
- export type RedtailCreateActivity200 = {
8837
- activity: RedtailCreateActivity200Activity;
8975
+ /**
8976
+ * Create an activity. `userId` is for the integration hub only and is not sent to Redtail. Additional Redtail fields are accepted.
8977
+ */
8978
+ export type RedtailCreateActivityBody = {
8979
+ /** @nullable */
8980
+ activity_code_id?: number | null;
8981
+ /** @nullable */
8982
+ all_day?: boolean | null;
8983
+ /** @nullable */
8984
+ category_id?: number | null;
8985
+ completed?: boolean;
8986
+ /** @nullable */
8987
+ description?: string | null;
8988
+ /** @nullable */
8989
+ end_date?: string | null;
8990
+ /** @nullable */
8991
+ importance?: number | null;
8992
+ instanced?: boolean;
8993
+ /** @nullable */
8994
+ location?: string | null;
8995
+ /** @nullable */
8996
+ percentdone?: number | null;
8997
+ /** @nullable */
8998
+ priority?: number | null;
8999
+ /** @nullable */
9000
+ repeat_ends?: string | null;
9001
+ /**
9002
+ * Recurrence pattern. Required by Redtail. Use "never" for non-repeating.
9003
+ * @nullable
9004
+ */
9005
+ repeats?: string | null;
9006
+ /** @nullable */
9007
+ start_date?: string | null;
9008
+ subject: string;
9009
+ userId: string;
8838
9010
  };
8839
9011
  export type RedtailGetActivity200 = {
8840
9012
  activity: RedtailGetActivity200Activity;
8841
9013
  };
9014
+ /**
9015
+ * @nullable
9016
+ */
9017
+ export type RedtailGetActivity200ActivityStartDate = unknown | null;
8842
9018
  /**
8843
9019
  * @nullable
8844
9020
  */
@@ -8848,6 +9024,14 @@ export type RedtailGetActivity200ActivityPrivacySettings = {
8848
9024
  export type RedtailGetActivity200ActivityLinkedContactsItem = {
8849
9025
  [key: string]: unknown;
8850
9026
  };
9027
+ /**
9028
+ * @nullable
9029
+ */
9030
+ export type RedtailGetActivity200ActivityEndDate = unknown | null;
9031
+ /**
9032
+ * @nullable
9033
+ */
9034
+ export type RedtailGetActivity200ActivityCompletedAt = unknown | null;
8851
9035
  export type RedtailGetActivity200ActivityAttendeesItem = {
8852
9036
  [key: string]: unknown;
8853
9037
  };
@@ -8864,7 +9048,7 @@ export type RedtailGetActivity200Activity = {
8864
9048
  /** @nullable */
8865
9049
  completed?: boolean | null;
8866
9050
  /** @nullable */
8867
- completed_at?: string | null;
9051
+ completed_at?: RedtailGetActivity200ActivityCompletedAt;
8868
9052
  /** @nullable */
8869
9053
  created_at?: string | null;
8870
9054
  /** @nullable */
@@ -8872,7 +9056,7 @@ export type RedtailGetActivity200Activity = {
8872
9056
  /** @nullable */
8873
9057
  description?: string | null;
8874
9058
  /** @nullable */
8875
- end_date?: string | null;
9059
+ end_date?: RedtailGetActivity200ActivityEndDate;
8876
9060
  /** @nullable */
8877
9061
  ical?: string | null;
8878
9062
  id?: number;
@@ -8896,7 +9080,7 @@ export type RedtailGetActivity200Activity = {
8896
9080
  /** @nullable */
8897
9081
  share_with_client?: boolean | null;
8898
9082
  /** @nullable */
8899
- start_date?: string | null;
9083
+ start_date?: RedtailGetActivity200ActivityStartDate;
8900
9084
  /** @nullable */
8901
9085
  subject?: string | null;
8902
9086
  /** @nullable */
@@ -8919,6 +9103,10 @@ export type RedtailGetActivities200 = {
8919
9103
  activities?: RedtailGetActivities200ActivitiesItem[];
8920
9104
  meta?: RedtailGetActivities200Meta;
8921
9105
  };
9106
+ /**
9107
+ * @nullable
9108
+ */
9109
+ export type RedtailGetActivities200ActivitiesItemStartDate = unknown | null;
8922
9110
  /**
8923
9111
  * @nullable
8924
9112
  */
@@ -8928,6 +9116,14 @@ export type RedtailGetActivities200ActivitiesItemPrivacySettings = {
8928
9116
  export type RedtailGetActivities200ActivitiesItemLinkedContactsItem = {
8929
9117
  [key: string]: unknown;
8930
9118
  };
9119
+ /**
9120
+ * @nullable
9121
+ */
9122
+ export type RedtailGetActivities200ActivitiesItemEndDate = unknown | null;
9123
+ /**
9124
+ * @nullable
9125
+ */
9126
+ export type RedtailGetActivities200ActivitiesItemCompletedAt = unknown | null;
8931
9127
  export type RedtailGetActivities200ActivitiesItemAttendeesItem = {
8932
9128
  [key: string]: unknown;
8933
9129
  };
@@ -8944,7 +9140,7 @@ export type RedtailGetActivities200ActivitiesItem = {
8944
9140
  /** @nullable */
8945
9141
  completed?: boolean | null;
8946
9142
  /** @nullable */
8947
- completed_at?: string | null;
9143
+ completed_at?: RedtailGetActivities200ActivitiesItemCompletedAt;
8948
9144
  /** @nullable */
8949
9145
  created_at?: string | null;
8950
9146
  /** @nullable */
@@ -8952,7 +9148,7 @@ export type RedtailGetActivities200ActivitiesItem = {
8952
9148
  /** @nullable */
8953
9149
  description?: string | null;
8954
9150
  /** @nullable */
8955
- end_date?: string | null;
9151
+ end_date?: RedtailGetActivities200ActivitiesItemEndDate;
8956
9152
  /** @nullable */
8957
9153
  ical?: string | null;
8958
9154
  id?: number;
@@ -8976,7 +9172,7 @@ export type RedtailGetActivities200ActivitiesItem = {
8976
9172
  /** @nullable */
8977
9173
  share_with_client?: boolean | null;
8978
9174
  /** @nullable */
8979
- start_date?: string | null;
9175
+ start_date?: RedtailGetActivities200ActivitiesItemStartDate;
8980
9176
  /** @nullable */
8981
9177
  subject?: string | null;
8982
9178
  /** @nullable */
@@ -9101,7 +9297,7 @@ export type RedtailGetContactAccounts200Meta = {
9101
9297
  total_records?: number;
9102
9298
  };
9103
9299
  export type RedtailGetContactAccounts200 = {
9104
- accounts: RedtailGetContactAccounts200AccountsItem[];
9300
+ accounts?: RedtailGetContactAccounts200AccountsItem[];
9105
9301
  meta?: RedtailGetContactAccounts200Meta;
9106
9302
  };
9107
9303
  /**
@@ -9141,7 +9337,7 @@ export type RedtailGetContactAccountsBody = {
9141
9337
  * Redtail contact identifier
9142
9338
  * @minLength 1
9143
9339
  */
9144
- contactId: string;
9340
+ id: string;
9145
9341
  /** Integration user id for Redtail requests. */
9146
9342
  userId: string;
9147
9343
  };
@@ -9188,17 +9384,20 @@ export type RedtailGetContactPersonalProfile200PersonalProfile = {
9188
9384
  weight?: string | null;
9189
9385
  };
9190
9386
  export type RedtailGetContactPersonalProfile200 = {
9191
- personal_profile: RedtailGetContactPersonalProfile200PersonalProfile;
9387
+ personal_profile?: RedtailGetContactPersonalProfile200PersonalProfile;
9192
9388
  };
9193
9389
  export type RedtailGetContactPersonalProfileBody = {
9194
9390
  /**
9195
9391
  * Redtail contact identifier
9196
9392
  * @minLength 1
9197
9393
  */
9198
- contactId: string;
9394
+ id: string;
9199
9395
  /** Integration user id for Redtail requests. */
9200
9396
  userId: string;
9201
9397
  };
9398
+ export type RedtailUpdateContact200 = {
9399
+ contact?: RedtailUpdateContact200Contact;
9400
+ };
9202
9401
  export type RedtailUpdateContact200ContactUrlsItem = {
9203
9402
  [key: string]: unknown;
9204
9403
  };
@@ -9334,22 +9533,80 @@ export type RedtailUpdateContact200Contact = {
9334
9533
  /** @nullable */
9335
9534
  writing_advisor_id?: number | null;
9336
9535
  };
9337
- export type RedtailUpdateContact200 = {
9338
- contact: RedtailUpdateContact200Contact;
9536
+ /**
9537
+ * Contact type. Required by Redtail.
9538
+ */
9539
+ export type RedtailUpdateContactBodyType = typeof RedtailUpdateContactBodyType[keyof typeof RedtailUpdateContactBodyType];
9540
+ export declare const RedtailUpdateContactBodyType: {
9541
+ readonly Individual: "Individual";
9542
+ readonly Business: "Business";
9543
+ readonly Association: "Association";
9544
+ readonly Trust: "Trust";
9545
+ readonly Union: "Union";
9339
9546
  };
9547
+ /**
9548
+ * Contact id plus fields to update. Required fields depend on contact `type` and Redtail validation (use GET contact first).
9549
+ */
9340
9550
  export type RedtailUpdateContactBody = {
9551
+ /** @nullable */
9552
+ category_id?: number | null;
9553
+ /** @nullable */
9554
+ client_since?: string | null;
9555
+ /** @nullable */
9556
+ client_termination_date?: string | null;
9557
+ company_name?: string;
9558
+ /** @nullable */
9559
+ death_date?: string | null;
9560
+ designation?: string;
9561
+ /** @nullable */
9562
+ dob?: string | null;
9563
+ /** @nullable */
9564
+ employer_id?: number | null;
9565
+ favorite?: boolean;
9566
+ first_name?: string;
9567
+ /** @nullable */
9568
+ gender_id?: number | null;
9341
9569
  /**
9342
9570
  * Redtail contact identifier
9343
9571
  * @minLength 1
9344
9572
  */
9345
- contactId: string;
9573
+ id: string;
9574
+ job_title?: string;
9575
+ last_name?: string;
9576
+ /** @nullable */
9577
+ marital_date?: string | null;
9578
+ /** @nullable */
9579
+ marital_status_id?: number | null;
9580
+ middle_name?: string;
9581
+ nickname?: string;
9582
+ referred_by?: string;
9583
+ /** @nullable */
9584
+ salutation_id?: number | null;
9585
+ /** @nullable */
9586
+ servicing_advisor_id?: number | null;
9587
+ /** @nullable */
9588
+ source_id?: number | null;
9589
+ /** @nullable */
9590
+ status_id?: number | null;
9591
+ /** @nullable */
9592
+ suffix_id?: number | null;
9593
+ tax_id?: string;
9594
+ /** Contact type. Required by Redtail. */
9595
+ type?: RedtailUpdateContactBodyType;
9346
9596
  /** Integration user id for Redtail requests. */
9347
9597
  userId: string;
9598
+ /** @nullable */
9599
+ writing_advisor_id?: number | null;
9600
+ [key: string]: unknown | null;
9348
9601
  };
9349
9602
  export type RedtailGetContacts200Meta = {
9350
9603
  total_pages?: number;
9351
9604
  total_records?: number;
9352
9605
  };
9606
+ export type RedtailGetContacts200 = {
9607
+ contacts?: RedtailGetContacts200ContactsItem[];
9608
+ meta?: RedtailGetContacts200Meta;
9609
+ };
9353
9610
  export type RedtailGetContacts200ContactsItemUrlsItem = {
9354
9611
  [key: string]: unknown;
9355
9612
  };
@@ -9485,20 +9742,51 @@ export type RedtailGetContacts200ContactsItem = {
9485
9742
  /** @nullable */
9486
9743
  writing_advisor_id?: number | null;
9487
9744
  };
9488
- export type RedtailGetContacts200 = {
9489
- contacts: RedtailGetContacts200ContactsItem[];
9490
- meta?: RedtailGetContacts200Meta;
9491
- };
9492
9745
  export type RedtailGetContactsBody = {
9493
9746
  /** Integration user id for Redtail requests. */
9494
9747
  userId: string;
9495
9748
  };
9749
+ export type RedtailGetContact200 = {
9750
+ contact?: RedtailGetContact200Contact;
9751
+ };
9496
9752
  export type RedtailGetContact200ContactUrlsItem = {
9497
9753
  [key: string]: unknown;
9498
9754
  };
9499
9755
  export type RedtailGetContact200ContactPhonesItem = {
9500
9756
  [key: string]: unknown;
9501
9757
  };
9758
+ export type RedtailGetContact200ContactFamilyMembersItem = {
9759
+ contact_id?: number;
9760
+ /** @nullable */
9761
+ created_at?: string | null;
9762
+ /** @nullable */
9763
+ deleted?: boolean | null;
9764
+ family_id?: number;
9765
+ /** @nullable */
9766
+ hoh?: boolean | null;
9767
+ id?: number;
9768
+ /** @nullable */
9769
+ relationship?: number | null;
9770
+ /** @nullable */
9771
+ relationship_name?: string | null;
9772
+ /** @nullable */
9773
+ updated_at?: string | null;
9774
+ };
9775
+ /**
9776
+ * @nullable
9777
+ */
9778
+ export type RedtailGetContact200ContactFamily = {
9779
+ /** @nullable */
9780
+ created_at?: string | null;
9781
+ /** @nullable */
9782
+ deleted?: boolean | null;
9783
+ id?: number;
9784
+ members?: RedtailGetContact200ContactFamilyMembersItem[];
9785
+ /** @nullable */
9786
+ name?: string | null;
9787
+ /** @nullable */
9788
+ updated_at?: string | null;
9789
+ } | null;
9502
9790
  export type RedtailGetContact200ContactEmailsItem = {
9503
9791
  [key: string]: unknown;
9504
9792
  };
@@ -9596,47 +9884,12 @@ export type RedtailGetContact200Contact = {
9596
9884
  /** @nullable */
9597
9885
  writing_advisor_id?: number | null;
9598
9886
  };
9599
- export type RedtailGetContact200 = {
9600
- contact: RedtailGetContact200Contact;
9601
- };
9602
- export type RedtailGetContact200ContactFamilyMembersItem = {
9603
- contact_id?: number;
9604
- /** @nullable */
9605
- created_at?: string | null;
9606
- /** @nullable */
9607
- deleted?: boolean | null;
9608
- family_id?: number;
9609
- /** @nullable */
9610
- hoh?: boolean | null;
9611
- id?: number;
9612
- /** @nullable */
9613
- relationship?: number | null;
9614
- /** @nullable */
9615
- relationship_name?: string | null;
9616
- /** @nullable */
9617
- updated_at?: string | null;
9618
- };
9619
- /**
9620
- * @nullable
9621
- */
9622
- export type RedtailGetContact200ContactFamily = {
9623
- /** @nullable */
9624
- created_at?: string | null;
9625
- /** @nullable */
9626
- deleted?: boolean | null;
9627
- id?: number;
9628
- members?: RedtailGetContact200ContactFamilyMembersItem[];
9629
- /** @nullable */
9630
- name?: string | null;
9631
- /** @nullable */
9632
- updated_at?: string | null;
9633
- } | null;
9634
9887
  export type RedtailGetContactBody = {
9635
9888
  /**
9636
9889
  * Redtail contact identifier
9637
9890
  * @minLength 1
9638
9891
  */
9639
- contactId: string;
9892
+ id: string;
9640
9893
  /** Integration user id for Redtail requests. */
9641
9894
  userId: string;
9642
9895
  };
@@ -9674,7 +9927,7 @@ export type RedtailGetFamilies200ContactFamiliesItem = {
9674
9927
  updated_at?: string | null;
9675
9928
  };
9676
9929
  export type RedtailGetFamilies200 = {
9677
- contact_families: RedtailGetFamilies200ContactFamiliesItem[];
9930
+ contact_families?: RedtailGetFamilies200ContactFamiliesItem[];
9678
9931
  meta?: RedtailGetFamilies200Meta;
9679
9932
  };
9680
9933
  export type RedtailGetFamiliesBody = {
@@ -10077,14 +10330,6 @@ export type GoogleGenerativeAIGenerateTextBodyOptions = {
10077
10330
  */
10078
10331
  topP?: number;
10079
10332
  };
10080
- export type GoogleGenerativeAIGenerateTextBodyMessagesItem = {
10081
- /** Content of the message */
10082
- content?: string;
10083
- /** Multi-part message content */
10084
- parts?: GoogleGenerativeAIGenerateTextBodyMessagesItemPartsItem[];
10085
- /** Role of the message sender */
10086
- role: GoogleGenerativeAIGenerateTextBodyMessagesItemRole;
10087
- };
10088
10333
  export type GoogleGenerativeAIGenerateTextBody = {
10089
10334
  /**
10090
10335
  * Array of chat messages
@@ -10123,6 +10368,14 @@ export type GoogleGenerativeAIGenerateTextBodyMessagesItemPartsItem = {
10123
10368
  /** URL for file or media */
10124
10369
  url?: string;
10125
10370
  };
10371
+ export type GoogleGenerativeAIGenerateTextBodyMessagesItem = {
10372
+ /** Content of the message */
10373
+ content?: string;
10374
+ /** Multi-part message content */
10375
+ parts?: GoogleGenerativeAIGenerateTextBodyMessagesItemPartsItem[];
10376
+ /** Role of the message sender */
10377
+ role: GoogleGenerativeAIGenerateTextBodyMessagesItemRole;
10378
+ };
10126
10379
  export type GoogleGenerativeAISetUserCredentials200 = {
10127
10380
  userId: string;
10128
10381
  };
@@ -10841,7 +11094,7 @@ export declare const getIntegrationsAPI: () => {
10841
11094
  redtailGetAccountDetails: (redtailGetAccountDetailsBody: RedtailGetAccountDetailsBody) => Promise<RedtailGetAccountDetails200>;
10842
11095
  redtailGetActivities: (redtailGetActivitiesBody: RedtailGetActivitiesBody) => Promise<RedtailGetActivities200>;
10843
11096
  redtailGetActivity: (redtailGetActivityBody: RedtailGetActivityBody) => Promise<RedtailGetActivity200>;
10844
- redtailCreateActivity: () => Promise<RedtailCreateActivity200>;
11097
+ redtailCreateActivity: (redtailCreateActivityBody: RedtailCreateActivityBody) => Promise<RedtailCreateActivity200>;
10845
11098
  redtailUpdateActivity: (redtailUpdateActivityBody: RedtailUpdateActivityBody) => Promise<RedtailUpdateActivity200>;
10846
11099
  redtailDeleteActivity: (redtailDeleteActivityBody: RedtailDeleteActivityBody) => Promise<unknown>;
10847
11100
  redtailCreateActivityNote: (redtailCreateActivityNoteBody: RedtailCreateActivityNoteBody) => Promise<RedtailCreateActivityNote200>;