mailmeteor 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -321,6 +321,97 @@ type ErrorResponse = {
321
321
  message: string;
322
322
  code?: 'url_invalid' | 'authentication_required' | 'rate_limit' | 'resource_missing' | 'resource_conflict' | 'resource_exhausted' | 'resource_already_exists' | 'resource_action_required' | 'account_verification_required' | 'account_unauthorized' | 'account_blocked' | 'parameter_missing' | 'parameter_invalid' | 'esp_unsupported' | 'unknown_error' | 'api_error' | 'quota_exceeded' | 'sender_missing_service' | 'sender_insufficient_permission' | 'admin_role_required' | 'TEST_ERROR';
323
323
  };
324
+ type UserIdQuery = {
325
+ expand?: Array<'subscription'>;
326
+ };
327
+ type UserIdParams = {
328
+ user_id: string;
329
+ };
330
+ type UserIdResponse200 = {
331
+ id: string;
332
+ object: 'user';
333
+ email: string;
334
+ name?: string;
335
+ blocked?: boolean;
336
+ plan: string;
337
+ quota: {
338
+ limit: number;
339
+ usage: number;
340
+ available: number;
341
+ updated: string;
342
+ refreshDate?: string;
343
+ };
344
+ organization: string | null;
345
+ /**
346
+ * Creation date as a Unix timestamp (ms)
347
+ */
348
+ created_at: number;
349
+ credentials?: {
350
+ google?: {
351
+ access_token?: string;
352
+ refresh_token?: string;
353
+ expiry_date?: number;
354
+ expires_in?: number;
355
+ update_date?: number;
356
+ scope?: string;
357
+ api_domain?: string;
358
+ };
359
+ microsoft?: {
360
+ access_token?: string;
361
+ refresh_token?: string;
362
+ expiry_date?: number;
363
+ expires_in?: number;
364
+ update_date?: number;
365
+ scope?: string;
366
+ api_domain?: string;
367
+ };
368
+ zoho?: {
369
+ access_token?: string;
370
+ refresh_token?: string;
371
+ expiry_date?: number;
372
+ expires_in?: number;
373
+ update_date?: number;
374
+ scope?: string;
375
+ api_domain?: string;
376
+ };
377
+ sendgrid?: {
378
+ api_key?: string;
379
+ };
380
+ };
381
+ subscription?: {
382
+ id: string;
383
+ created_at: number;
384
+ /**
385
+ * Whether the user is a billing admin
386
+ */
387
+ admin: boolean;
388
+ current_period_start: number;
389
+ current_period_end: number;
390
+ quantity: number;
391
+ currency: string;
392
+ amount: number | null;
393
+ discount_percentage?: number | null;
394
+ name: string | null;
395
+ billing_period: 'day' | 'week' | 'month' | 'year' | null;
396
+ plan: 'free' | 'starter' | 'pro' | 'premium' | 'business' | null;
397
+ default_payment_method: {
398
+ type: string;
399
+ brand?: string | null;
400
+ last4: string | null;
401
+ exp_month: number | null;
402
+ exp_year: number | null;
403
+ bank_name?: string | null;
404
+ } | null;
405
+ addons: {
406
+ senders?: {
407
+ quantity: number;
408
+ };
409
+ email_warmups?: {
410
+ quantity: number;
411
+ };
412
+ };
413
+ } | null;
414
+ };
324
415
  type CurrentOrganizationParams = {
325
416
  user_id: string;
326
417
  };
@@ -349,78 +440,59 @@ type MembersParams = {
349
440
  organization_id: string;
350
441
  };
351
442
  type MembersResponse200 = Array<{
443
+ user: string;
444
+ roles: Array<'admin' | 'member'>;
445
+ created_at: number;
446
+ updated_at?: number;
447
+ id: string;
448
+ object: 'organization_member';
352
449
  email: string;
353
450
  name?: string;
354
451
  profile_picture_url?: string;
355
- role: 'admin' | 'member';
356
- /**
357
- * Creation date
358
- */
359
- created_at: string;
360
- /**
361
- * Last Update date
362
- */
363
- updated_at?: string;
364
- id: string;
365
- organization_id: string;
366
- object: 'organization_member';
452
+ organization: string;
367
453
  }>;
368
454
  type MembersBody = {
369
455
  email: string;
370
- role: 'admin' | 'member';
456
+ roles: Array<'admin' | 'member'>;
371
457
  };
372
458
  type MembersResponse201 = {
459
+ user: string;
460
+ roles: Array<'admin' | 'member'>;
461
+ created_at: number;
462
+ updated_at?: number;
463
+ id: string;
464
+ object: 'organization_member';
373
465
  email: string;
374
466
  name?: string;
375
467
  profile_picture_url?: string;
376
- role: 'admin' | 'member';
377
- /**
378
- * Creation date
379
- */
380
- created_at: string;
381
- /**
382
- * Last Update date
383
- */
384
- updated_at?: string;
385
- id: string;
386
- organization_id: string;
387
- object: 'organization_member';
468
+ organization: string;
388
469
  };
389
470
  type MemberIdBody = {
390
- role: 'admin' | 'member';
471
+ roles?: Array<'admin' | 'member'>;
391
472
  };
392
473
  type MemberIdParams = {
393
474
  organization_id: string;
394
475
  member_id: string;
395
476
  };
396
477
  type MemberIdResponse200 = {
478
+ user: string;
479
+ roles: Array<'admin' | 'member'>;
480
+ created_at: number;
481
+ updated_at?: number;
482
+ id: string;
483
+ object: 'organization_member';
397
484
  email: string;
398
485
  name?: string;
399
486
  profile_picture_url?: string;
400
- role: 'admin' | 'member';
401
- /**
402
- * Creation date
403
- */
404
- created_at: string;
405
- /**
406
- * Last Update date
407
- */
408
- updated_at?: string;
409
- id: string;
410
- organization_id: string;
411
- object: 'organization_member';
487
+ organization: string;
412
488
  };
413
489
  type OrganizationsResponse200 = Array<{
414
490
  name: string;
415
491
  owner: string;
416
- /**
417
- * Creation date
418
- */
419
- created_at: string;
420
- /**
421
- * Last Update date
422
- */
423
- updated_at?: string;
492
+ customer?: string;
493
+ subscription?: string;
494
+ created_at: number;
495
+ updated_at?: number;
424
496
  id: string;
425
497
  object: 'organization';
426
498
  }>;
@@ -430,14 +502,10 @@ type OrganizationsBody = {
430
502
  type OrganizationsResponse201 = {
431
503
  name: string;
432
504
  owner: string;
433
- /**
434
- * Creation date
435
- */
436
- created_at: string;
437
- /**
438
- * Last Update date
439
- */
440
- updated_at?: string;
505
+ customer?: string;
506
+ subscription?: string;
507
+ created_at: number;
508
+ updated_at?: number;
441
509
  id: string;
442
510
  object: 'organization';
443
511
  };
@@ -447,20 +515,45 @@ type OrganizationIdParams = {
447
515
  type OrganizationIdResponse200 = {
448
516
  name: string;
449
517
  owner: string;
450
- /**
451
- * Creation date
452
- */
453
- created_at: string;
454
- /**
455
- * Last Update date
456
- */
457
- updated_at?: string;
518
+ customer?: string;
519
+ subscription?: string;
520
+ created_at: number;
521
+ updated_at?: number;
458
522
  id: string;
459
523
  object: 'organization';
460
524
  };
461
525
  type OrganizationIdBody = {
462
526
  name?: string;
463
527
  };
528
+ type SubscriptionResponse200 = {
529
+ status: 'confirmation_required' | 'success' | 'payment_failed';
530
+ client_secret?: string;
531
+ failure_code?: string;
532
+ };
533
+ type SubscriptionBody = {
534
+ plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
535
+ billing_period: 'month' | 'year';
536
+ };
537
+ type PreviewBody = {
538
+ quantity: number;
539
+ };
540
+ type PreviewResponse200 = {
541
+ discount_percents: Array<number>;
542
+ total_excluding_tax: number;
543
+ total: number;
544
+ amount_due: number;
545
+ added_from_balance: number;
546
+ consumed_balance: number;
547
+ credited_to_balance: number;
548
+ };
549
+ type CheckoutBody = {
550
+ price_id: string;
551
+ coupon?: string;
552
+ currency?: 'usd' | 'eur' | 'inr';
553
+ };
554
+ type CheckoutResponse200 = {
555
+ url: string;
556
+ };
464
557
  type ContactListsBody = {
465
558
  owner: string;
466
559
  name: string;
@@ -501,7 +594,6 @@ type ContactListIdBody = {
501
594
  remove_contacts?: boolean;
502
595
  };
503
596
  type ContactsBody = {
504
- owner: string;
505
597
  contact_list?: string;
506
598
  };
507
599
  type ContactsResponse201 = {
@@ -730,33 +822,9 @@ type AddonsResponse200 = {
730
822
  } | null;
731
823
  };
732
824
  };
733
- type PreviewBody = {
734
- plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
735
- billing_period: 'month' | 'year';
736
- };
737
825
  type PreviewParams = {
738
826
  addon: 'senders' | 'email_warmups';
739
827
  };
740
- type PreviewResponse200 = {
741
- discount_percents: Array<number>;
742
- total_excluding_tax: number;
743
- total: number;
744
- amount_due: number;
745
- added_from_balance: number;
746
- consumed_balance: number;
747
- credited_to_balance: number;
748
- lines: Array<{
749
- amount: number;
750
- billing_period: 'day' | 'week' | 'month' | 'year';
751
- proration: boolean;
752
- plan?: 'free' | 'starter' | 'pro' | 'premium' | 'business';
753
- addon?: 'senders' | 'email_warmups';
754
- }>;
755
- next_renewal: number;
756
- total_tax_amounts: Array<{
757
- amount: number;
758
- }>;
759
- };
760
828
  type AddonBody = {
761
829
  quantity: number;
762
830
  };
@@ -768,15 +836,6 @@ type AddonResponse200 = Array<{
768
836
  email: string;
769
837
  usage: number;
770
838
  }>;
771
- type SubscriptionResponse200 = {
772
- status: 'confirmation_required' | 'success' | 'payment_failed';
773
- client_secret?: string;
774
- failure_code?: string;
775
- };
776
- type SubscriptionBody = {
777
- plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
778
- billing_period: 'month' | 'year';
779
- };
780
839
  type PricesQuery = {
781
840
  currency: string;
782
841
  };
@@ -803,6 +862,114 @@ type PricesResponse200 = {
803
862
  };
804
863
  };
805
864
  type OpenapiJsonResponse200 = unknown;
865
+ type UsersRetrieveData = {
866
+ body?: never;
867
+ path: {
868
+ user_id: string;
869
+ };
870
+ query?: {
871
+ expand?: Array<'subscription'>;
872
+ };
873
+ url: '/users/{user_id}';
874
+ };
875
+ type UsersRetrieveErrors = {
876
+ /**
877
+ * Error response
878
+ */
879
+ default: ErrorResponse;
880
+ };
881
+ type UsersRetrieveError = UsersRetrieveErrors[keyof UsersRetrieveErrors];
882
+ type UsersRetrieveResponses = {
883
+ /**
884
+ * Response
885
+ */
886
+ 200: {
887
+ id: string;
888
+ object: 'user';
889
+ email: string;
890
+ name?: string;
891
+ blocked?: boolean;
892
+ plan: string;
893
+ quota: {
894
+ limit: number;
895
+ usage: number;
896
+ available: number;
897
+ updated: string;
898
+ refreshDate?: string;
899
+ };
900
+ organization: string | null;
901
+ /**
902
+ * Creation date as a Unix timestamp (ms)
903
+ */
904
+ created_at: number;
905
+ credentials?: {
906
+ google?: {
907
+ access_token?: string;
908
+ refresh_token?: string;
909
+ expiry_date?: number;
910
+ expires_in?: number;
911
+ update_date?: number;
912
+ scope?: string;
913
+ api_domain?: string;
914
+ };
915
+ microsoft?: {
916
+ access_token?: string;
917
+ refresh_token?: string;
918
+ expiry_date?: number;
919
+ expires_in?: number;
920
+ update_date?: number;
921
+ scope?: string;
922
+ api_domain?: string;
923
+ };
924
+ zoho?: {
925
+ access_token?: string;
926
+ refresh_token?: string;
927
+ expiry_date?: number;
928
+ expires_in?: number;
929
+ update_date?: number;
930
+ scope?: string;
931
+ api_domain?: string;
932
+ };
933
+ sendgrid?: {
934
+ api_key?: string;
935
+ };
936
+ };
937
+ subscription?: {
938
+ id: string;
939
+ created_at: number;
940
+ /**
941
+ * Whether the user is a billing admin
942
+ */
943
+ admin: boolean;
944
+ current_period_start: number;
945
+ current_period_end: number;
946
+ quantity: number;
947
+ currency: string;
948
+ amount: number | null;
949
+ discount_percentage?: number | null;
950
+ name: string | null;
951
+ billing_period: 'day' | 'week' | 'month' | 'year' | null;
952
+ plan: 'free' | 'starter' | 'pro' | 'premium' | 'business' | null;
953
+ default_payment_method: {
954
+ type: string;
955
+ brand?: string | null;
956
+ last4: string | null;
957
+ exp_month: number | null;
958
+ exp_year: number | null;
959
+ bank_name?: string | null;
960
+ } | null;
961
+ addons: {
962
+ senders?: {
963
+ quantity: number;
964
+ };
965
+ email_warmups?: {
966
+ quantity: number;
967
+ };
968
+ };
969
+ } | null;
970
+ };
971
+ };
972
+ type UsersRetrieveResponse = UsersRetrieveResponses[keyof UsersRetrieveResponses];
806
973
  type UsersGetCurrentOrganizationData = {
807
974
  body?: never;
808
975
  path: {
@@ -828,7 +995,7 @@ type UsersGetCurrentOrganizationResponses = {
828
995
  };
829
996
  type UsersGetCurrentOrganizationResponse = UsersGetCurrentOrganizationResponses[keyof UsersGetCurrentOrganizationResponses];
830
997
  type UsersSetCurrentOrganizationData = {
831
- body?: {
998
+ body: {
832
999
  organization_id?: string | null;
833
1000
  };
834
1001
  path: {
@@ -854,7 +1021,7 @@ type UsersSetCurrentOrganizationResponses = {
854
1021
  };
855
1022
  type UsersSetCurrentOrganizationResponse = UsersSetCurrentOrganizationResponses[keyof UsersSetCurrentOrganizationResponses];
856
1023
  type UsersWatchMailboxData = {
857
- body?: {
1024
+ body: {
858
1025
  provider?: 'gmail' | 'outlook';
859
1026
  force?: boolean;
860
1027
  };
@@ -901,7 +1068,7 @@ type UsersDeleteActionResponses = {
901
1068
  204: void;
902
1069
  };
903
1070
  type UsersDeleteActionResponse = UsersDeleteActionResponses[keyof UsersDeleteActionResponses];
904
- type OrganizationMemberListData = {
1071
+ type OrganizationMembersListData = {
905
1072
  body?: never;
906
1073
  path: {
907
1074
  organization_id: string;
@@ -912,40 +1079,35 @@ type OrganizationMemberListData = {
912
1079
  };
913
1080
  url: '/organizations/{organization_id}/members';
914
1081
  };
915
- type OrganizationMemberListErrors = {
1082
+ type OrganizationMembersListErrors = {
916
1083
  /**
917
1084
  * Error response
918
1085
  */
919
1086
  default: ErrorResponse;
920
1087
  };
921
- type OrganizationMemberListError = OrganizationMemberListErrors[keyof OrganizationMemberListErrors];
922
- type OrganizationMemberListResponses = {
1088
+ type OrganizationMembersListError = OrganizationMembersListErrors[keyof OrganizationMembersListErrors];
1089
+ type OrganizationMembersListResponses = {
923
1090
  /**
924
1091
  * Response
925
1092
  */
926
1093
  200: Array<{
1094
+ user: string;
1095
+ roles: Array<'admin' | 'member'>;
1096
+ created_at: number;
1097
+ updated_at?: number;
1098
+ id: string;
1099
+ object: 'organization_member';
927
1100
  email: string;
928
1101
  name?: string;
929
1102
  profile_picture_url?: string;
930
- role: 'admin' | 'member';
931
- /**
932
- * Creation date
933
- */
934
- created_at: string;
935
- /**
936
- * Last Update date
937
- */
938
- updated_at?: string;
939
- id: string;
940
- organization_id: string;
941
- object: 'organization_member';
1103
+ organization: string;
942
1104
  }>;
943
1105
  };
944
- type OrganizationMemberListResponse = OrganizationMemberListResponses[keyof OrganizationMemberListResponses];
945
- type OrganizationMemberCreateData = {
946
- body?: {
1106
+ type OrganizationMembersListResponse = OrganizationMembersListResponses[keyof OrganizationMembersListResponses];
1107
+ type OrganizationMembersCreateData = {
1108
+ body: {
947
1109
  email: string;
948
- role: 'admin' | 'member';
1110
+ roles: Array<'admin' | 'member'>;
949
1111
  };
950
1112
  path: {
951
1113
  organization_id: string;
@@ -953,37 +1115,32 @@ type OrganizationMemberCreateData = {
953
1115
  query?: never;
954
1116
  url: '/organizations/{organization_id}/members';
955
1117
  };
956
- type OrganizationMemberCreateErrors = {
1118
+ type OrganizationMembersCreateErrors = {
957
1119
  /**
958
1120
  * Error response
959
1121
  */
960
1122
  default: ErrorResponse;
961
1123
  };
962
- type OrganizationMemberCreateError = OrganizationMemberCreateErrors[keyof OrganizationMemberCreateErrors];
963
- type OrganizationMemberCreateResponses = {
1124
+ type OrganizationMembersCreateError = OrganizationMembersCreateErrors[keyof OrganizationMembersCreateErrors];
1125
+ type OrganizationMembersCreateResponses = {
964
1126
  /**
965
1127
  * Response
966
1128
  */
967
1129
  201: {
1130
+ user: string;
1131
+ roles: Array<'admin' | 'member'>;
1132
+ created_at: number;
1133
+ updated_at?: number;
1134
+ id: string;
1135
+ object: 'organization_member';
968
1136
  email: string;
969
1137
  name?: string;
970
1138
  profile_picture_url?: string;
971
- role: 'admin' | 'member';
972
- /**
973
- * Creation date
974
- */
975
- created_at: string;
976
- /**
977
- * Last Update date
978
- */
979
- updated_at?: string;
980
- id: string;
981
- organization_id: string;
982
- object: 'organization_member';
1139
+ organization: string;
983
1140
  };
984
1141
  };
985
- type OrganizationMemberCreateResponse = OrganizationMemberCreateResponses[keyof OrganizationMemberCreateResponses];
986
- type OrganizationMemberDeleteData = {
1142
+ type OrganizationMembersCreateResponse = OrganizationMembersCreateResponses[keyof OrganizationMembersCreateResponses];
1143
+ type OrganizationMembersDeleteData = {
987
1144
  body?: never;
988
1145
  path: {
989
1146
  organization_id: string;
@@ -992,23 +1149,23 @@ type OrganizationMemberDeleteData = {
992
1149
  query?: never;
993
1150
  url: '/organizations/{organization_id}/members/{member_id}';
994
1151
  };
995
- type OrganizationMemberDeleteErrors = {
1152
+ type OrganizationMembersDeleteErrors = {
996
1153
  /**
997
1154
  * Error response
998
1155
  */
999
1156
  default: ErrorResponse;
1000
1157
  };
1001
- type OrganizationMemberDeleteError = OrganizationMemberDeleteErrors[keyof OrganizationMemberDeleteErrors];
1002
- type OrganizationMemberDeleteResponses = {
1158
+ type OrganizationMembersDeleteError = OrganizationMembersDeleteErrors[keyof OrganizationMembersDeleteErrors];
1159
+ type OrganizationMembersDeleteResponses = {
1003
1160
  /**
1004
1161
  * Response
1005
1162
  */
1006
1163
  204: void;
1007
1164
  };
1008
- type OrganizationMemberDeleteResponse = OrganizationMemberDeleteResponses[keyof OrganizationMemberDeleteResponses];
1009
- type OrganizationMemberUpdateData = {
1010
- body?: {
1011
- role: 'admin' | 'member';
1165
+ type OrganizationMembersDeleteResponse = OrganizationMembersDeleteResponses[keyof OrganizationMembersDeleteResponses];
1166
+ type OrganizationMembersUpdateData = {
1167
+ body: {
1168
+ roles?: Array<'admin' | 'member'>;
1012
1169
  };
1013
1170
  path: {
1014
1171
  organization_id: string;
@@ -1017,36 +1174,31 @@ type OrganizationMemberUpdateData = {
1017
1174
  query?: never;
1018
1175
  url: '/organizations/{organization_id}/members/{member_id}';
1019
1176
  };
1020
- type OrganizationMemberUpdateErrors = {
1177
+ type OrganizationMembersUpdateErrors = {
1021
1178
  /**
1022
1179
  * Error response
1023
1180
  */
1024
1181
  default: ErrorResponse;
1025
1182
  };
1026
- type OrganizationMemberUpdateError = OrganizationMemberUpdateErrors[keyof OrganizationMemberUpdateErrors];
1027
- type OrganizationMemberUpdateResponses = {
1183
+ type OrganizationMembersUpdateError = OrganizationMembersUpdateErrors[keyof OrganizationMembersUpdateErrors];
1184
+ type OrganizationMembersUpdateResponses = {
1028
1185
  /**
1029
1186
  * Response
1030
1187
  */
1031
1188
  200: {
1189
+ user: string;
1190
+ roles: Array<'admin' | 'member'>;
1191
+ created_at: number;
1192
+ updated_at?: number;
1193
+ id: string;
1194
+ object: 'organization_member';
1032
1195
  email: string;
1033
1196
  name?: string;
1034
1197
  profile_picture_url?: string;
1035
- role: 'admin' | 'member';
1036
- /**
1037
- * Creation date
1038
- */
1039
- created_at: string;
1040
- /**
1041
- * Last Update date
1042
- */
1043
- updated_at?: string;
1044
- id: string;
1045
- organization_id: string;
1046
- object: 'organization_member';
1198
+ organization: string;
1047
1199
  };
1048
1200
  };
1049
- type OrganizationMemberUpdateResponse = OrganizationMemberUpdateResponses[keyof OrganizationMemberUpdateResponses];
1201
+ type OrganizationMembersUpdateResponse = OrganizationMembersUpdateResponses[keyof OrganizationMembersUpdateResponses];
1050
1202
  type OrganizationsListData = {
1051
1203
  body?: never;
1052
1204
  path?: never;
@@ -1067,150 +1219,281 @@ type OrganizationsListResponses = {
1067
1219
  200: Array<{
1068
1220
  name: string;
1069
1221
  owner: string;
1070
- /**
1071
- * Creation date
1072
- */
1073
- created_at: string;
1074
- /**
1075
- * Last Update date
1076
- */
1077
- updated_at?: string;
1222
+ customer?: string;
1223
+ subscription?: string;
1224
+ created_at: number;
1225
+ updated_at?: number;
1078
1226
  id: string;
1079
1227
  object: 'organization';
1080
1228
  }>;
1081
1229
  };
1082
1230
  type OrganizationsListResponse = OrganizationsListResponses[keyof OrganizationsListResponses];
1083
1231
  type OrganizationsCreateData = {
1084
- body?: {
1232
+ body: {
1233
+ name: string;
1234
+ };
1235
+ path?: never;
1236
+ query?: never;
1237
+ url: '/organizations';
1238
+ };
1239
+ type OrganizationsCreateErrors = {
1240
+ /**
1241
+ * Error response
1242
+ */
1243
+ default: ErrorResponse;
1244
+ };
1245
+ type OrganizationsCreateError = OrganizationsCreateErrors[keyof OrganizationsCreateErrors];
1246
+ type OrganizationsCreateResponses = {
1247
+ /**
1248
+ * Response
1249
+ */
1250
+ 201: {
1251
+ name: string;
1252
+ owner: string;
1253
+ customer?: string;
1254
+ subscription?: string;
1255
+ created_at: number;
1256
+ updated_at?: number;
1257
+ id: string;
1258
+ object: 'organization';
1259
+ };
1260
+ };
1261
+ type OrganizationsCreateResponse = OrganizationsCreateResponses[keyof OrganizationsCreateResponses];
1262
+ type OrganizationsDeleteData = {
1263
+ body?: never;
1264
+ path: {
1265
+ organization_id: string;
1266
+ };
1267
+ query?: never;
1268
+ url: '/organizations/{organization_id}';
1269
+ };
1270
+ type OrganizationsDeleteErrors = {
1271
+ /**
1272
+ * Error response
1273
+ */
1274
+ default: ErrorResponse;
1275
+ };
1276
+ type OrganizationsDeleteError = OrganizationsDeleteErrors[keyof OrganizationsDeleteErrors];
1277
+ type OrganizationsDeleteResponses = {
1278
+ /**
1279
+ * Response
1280
+ */
1281
+ 204: void;
1282
+ };
1283
+ type OrganizationsDeleteResponse = OrganizationsDeleteResponses[keyof OrganizationsDeleteResponses];
1284
+ type OrganizationsRetrieveData = {
1285
+ body?: never;
1286
+ path: {
1287
+ organization_id: string;
1288
+ };
1289
+ query?: never;
1290
+ url: '/organizations/{organization_id}';
1291
+ };
1292
+ type OrganizationsRetrieveErrors = {
1293
+ /**
1294
+ * Error response
1295
+ */
1296
+ default: ErrorResponse;
1297
+ };
1298
+ type OrganizationsRetrieveError = OrganizationsRetrieveErrors[keyof OrganizationsRetrieveErrors];
1299
+ type OrganizationsRetrieveResponses = {
1300
+ /**
1301
+ * Response
1302
+ */
1303
+ 200: {
1304
+ name: string;
1305
+ owner: string;
1306
+ customer?: string;
1307
+ subscription?: string;
1308
+ created_at: number;
1309
+ updated_at?: number;
1310
+ id: string;
1311
+ object: 'organization';
1312
+ };
1313
+ };
1314
+ type OrganizationsRetrieveResponse = OrganizationsRetrieveResponses[keyof OrganizationsRetrieveResponses];
1315
+ type OrganizationsUpdateData = {
1316
+ body: {
1317
+ name?: string;
1318
+ };
1319
+ path: {
1320
+ organization_id: string;
1321
+ };
1322
+ query?: never;
1323
+ url: '/organizations/{organization_id}';
1324
+ };
1325
+ type OrganizationsUpdateErrors = {
1326
+ /**
1327
+ * Error response
1328
+ */
1329
+ default: ErrorResponse;
1330
+ };
1331
+ type OrganizationsUpdateError = OrganizationsUpdateErrors[keyof OrganizationsUpdateErrors];
1332
+ type OrganizationsUpdateResponses = {
1333
+ /**
1334
+ * Response
1335
+ */
1336
+ 200: {
1085
1337
  name: string;
1338
+ owner: string;
1339
+ customer?: string;
1340
+ subscription?: string;
1341
+ created_at: number;
1342
+ updated_at?: number;
1343
+ id: string;
1344
+ object: 'organization';
1345
+ };
1346
+ };
1347
+ type OrganizationsUpdateResponse = OrganizationsUpdateResponses[keyof OrganizationsUpdateResponses];
1348
+ type BillingSubscriptionGetData = {
1349
+ body?: never;
1350
+ path?: never;
1351
+ query?: never;
1352
+ url: '/billing/subscription';
1353
+ };
1354
+ type BillingSubscriptionGetErrors = {
1355
+ /**
1356
+ * Error response
1357
+ */
1358
+ default: ErrorResponse;
1359
+ };
1360
+ type BillingSubscriptionGetError = BillingSubscriptionGetErrors[keyof BillingSubscriptionGetErrors];
1361
+ type BillingSubscriptionGetResponses = {
1362
+ /**
1363
+ * Response
1364
+ */
1365
+ 200: {
1366
+ id: string;
1367
+ created_at: number;
1368
+ /**
1369
+ * Whether the user is a billing admin
1370
+ */
1371
+ admin: boolean;
1372
+ current_period_start: number;
1373
+ current_period_end: number;
1374
+ quantity: number;
1375
+ currency: string;
1376
+ amount: number | null;
1377
+ discount_percentage?: number | null;
1378
+ name: string | null;
1379
+ billing_period: 'day' | 'week' | 'month' | 'year' | null;
1380
+ plan: 'free' | 'starter' | 'pro' | 'premium' | 'business' | null;
1381
+ default_payment_method: {
1382
+ type: string;
1383
+ brand?: string | null;
1384
+ last4: string | null;
1385
+ exp_month: number | null;
1386
+ exp_year: number | null;
1387
+ bank_name?: string | null;
1388
+ } | null;
1389
+ addons: {
1390
+ senders?: {
1391
+ quantity: number;
1392
+ };
1393
+ email_warmups?: {
1394
+ quantity: number;
1395
+ };
1396
+ };
1397
+ } | null;
1398
+ };
1399
+ type BillingSubscriptionGetResponse = BillingSubscriptionGetResponses[keyof BillingSubscriptionGetResponses];
1400
+ type BillingSubscriptionUpdateData = {
1401
+ body: {
1402
+ plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
1403
+ billing_period: 'month' | 'year';
1086
1404
  };
1087
1405
  path?: never;
1088
1406
  query?: never;
1089
- url: '/organizations';
1407
+ url: '/billing/subscription';
1090
1408
  };
1091
- type OrganizationsCreateErrors = {
1409
+ type BillingSubscriptionUpdateErrors = {
1092
1410
  /**
1093
1411
  * Error response
1094
1412
  */
1095
1413
  default: ErrorResponse;
1096
1414
  };
1097
- type OrganizationsCreateError = OrganizationsCreateErrors[keyof OrganizationsCreateErrors];
1098
- type OrganizationsCreateResponses = {
1415
+ type BillingSubscriptionUpdateError = BillingSubscriptionUpdateErrors[keyof BillingSubscriptionUpdateErrors];
1416
+ type BillingSubscriptionUpdateResponses = {
1099
1417
  /**
1100
1418
  * Response
1101
1419
  */
1102
- 201: {
1103
- name: string;
1104
- owner: string;
1105
- /**
1106
- * Creation date
1107
- */
1108
- created_at: string;
1109
- /**
1110
- * Last Update date
1111
- */
1112
- updated_at?: string;
1113
- id: string;
1114
- object: 'organization';
1115
- };
1116
- };
1117
- type OrganizationsCreateResponse = OrganizationsCreateResponses[keyof OrganizationsCreateResponses];
1118
- type OrganizationsDeleteData = {
1119
- body?: never;
1120
- path: {
1121
- organization_id: string;
1420
+ 200: {
1421
+ status: 'confirmation_required' | 'success' | 'payment_failed';
1422
+ client_secret?: string;
1423
+ failure_code?: string;
1122
1424
  };
1123
- query?: never;
1124
- url: '/organizations/{organization_id}';
1125
- };
1126
- type OrganizationsDeleteErrors = {
1127
- /**
1128
- * Error response
1129
- */
1130
- default: ErrorResponse;
1131
1425
  };
1132
- type OrganizationsDeleteError = OrganizationsDeleteErrors[keyof OrganizationsDeleteErrors];
1133
- type OrganizationsDeleteResponses = {
1134
- /**
1135
- * Response
1136
- */
1137
- 204: void;
1138
- };
1139
- type OrganizationsDeleteResponse = OrganizationsDeleteResponses[keyof OrganizationsDeleteResponses];
1140
- type OrganizationsRetrieveData = {
1141
- body?: never;
1142
- path: {
1143
- organization_id: string;
1426
+ type BillingSubscriptionUpdateResponse = BillingSubscriptionUpdateResponses[keyof BillingSubscriptionUpdateResponses];
1427
+ type BillingSubscriptionPreviewUpdateData = {
1428
+ body: {
1429
+ plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
1430
+ billing_period: 'month' | 'year';
1144
1431
  };
1432
+ path?: never;
1145
1433
  query?: never;
1146
- url: '/organizations/{organization_id}';
1434
+ url: '/billing/subscription/preview';
1147
1435
  };
1148
- type OrganizationsRetrieveErrors = {
1436
+ type BillingSubscriptionPreviewUpdateErrors = {
1149
1437
  /**
1150
1438
  * Error response
1151
1439
  */
1152
1440
  default: ErrorResponse;
1153
1441
  };
1154
- type OrganizationsRetrieveError = OrganizationsRetrieveErrors[keyof OrganizationsRetrieveErrors];
1155
- type OrganizationsRetrieveResponses = {
1442
+ type BillingSubscriptionPreviewUpdateError = BillingSubscriptionPreviewUpdateErrors[keyof BillingSubscriptionPreviewUpdateErrors];
1443
+ type BillingSubscriptionPreviewUpdateResponses = {
1156
1444
  /**
1157
1445
  * Response
1158
1446
  */
1159
1447
  200: {
1160
- name: string;
1161
- owner: string;
1162
- /**
1163
- * Creation date
1164
- */
1165
- created_at: string;
1166
- /**
1167
- * Last Update date
1168
- */
1169
- updated_at?: string;
1170
- id: string;
1171
- object: 'organization';
1448
+ discount_percents: Array<number>;
1449
+ total_excluding_tax: number;
1450
+ total: number;
1451
+ amount_due: number;
1452
+ added_from_balance: number;
1453
+ consumed_balance: number;
1454
+ credited_to_balance: number;
1455
+ lines: Array<{
1456
+ amount: number;
1457
+ billing_period: 'day' | 'week' | 'month' | 'year';
1458
+ proration: boolean;
1459
+ plan?: 'free' | 'starter' | 'pro' | 'premium' | 'business';
1460
+ addon?: 'senders' | 'email_warmups';
1461
+ }>;
1462
+ next_renewal: number;
1463
+ total_tax_amounts: Array<{
1464
+ amount: number;
1465
+ }>;
1172
1466
  };
1173
1467
  };
1174
- type OrganizationsRetrieveResponse = OrganizationsRetrieveResponses[keyof OrganizationsRetrieveResponses];
1175
- type OrganizationsUpdateData = {
1176
- body?: {
1177
- name?: string;
1178
- };
1179
- path: {
1180
- organization_id: string;
1468
+ type BillingSubscriptionPreviewUpdateResponse = BillingSubscriptionPreviewUpdateResponses[keyof BillingSubscriptionPreviewUpdateResponses];
1469
+ type BillingSubscriptionCheckoutData = {
1470
+ body: {
1471
+ price_id: string;
1472
+ coupon?: string;
1473
+ currency?: 'usd' | 'eur' | 'inr';
1181
1474
  };
1475
+ path?: never;
1182
1476
  query?: never;
1183
- url: '/organizations/{organization_id}';
1477
+ url: '/billing/subscription/checkout';
1184
1478
  };
1185
- type OrganizationsUpdateErrors = {
1479
+ type BillingSubscriptionCheckoutErrors = {
1186
1480
  /**
1187
1481
  * Error response
1188
1482
  */
1189
1483
  default: ErrorResponse;
1190
1484
  };
1191
- type OrganizationsUpdateError = OrganizationsUpdateErrors[keyof OrganizationsUpdateErrors];
1192
- type OrganizationsUpdateResponses = {
1485
+ type BillingSubscriptionCheckoutError = BillingSubscriptionCheckoutErrors[keyof BillingSubscriptionCheckoutErrors];
1486
+ type BillingSubscriptionCheckoutResponses = {
1193
1487
  /**
1194
1488
  * Response
1195
1489
  */
1196
1490
  200: {
1197
- name: string;
1198
- owner: string;
1199
- /**
1200
- * Creation date
1201
- */
1202
- created_at: string;
1203
- /**
1204
- * Last Update date
1205
- */
1206
- updated_at?: string;
1207
- id: string;
1208
- object: 'organization';
1491
+ url: string;
1209
1492
  };
1210
1493
  };
1211
- type OrganizationsUpdateResponse = OrganizationsUpdateResponses[keyof OrganizationsUpdateResponses];
1494
+ type BillingSubscriptionCheckoutResponse = BillingSubscriptionCheckoutResponses[keyof BillingSubscriptionCheckoutResponses];
1212
1495
  type ContactListsCreateData = {
1213
- body?: {
1496
+ body: {
1214
1497
  owner: string;
1215
1498
  name: string;
1216
1499
  metadata?: {
@@ -1248,7 +1531,7 @@ type ContactListsCreateResponses = {
1248
1531
  };
1249
1532
  type ContactListsCreateResponse = ContactListsCreateResponses[keyof ContactListsCreateResponses];
1250
1533
  type ContactListsRemoveData = {
1251
- body?: {
1534
+ body: {
1252
1535
  remove_contacts?: boolean;
1253
1536
  };
1254
1537
  path: {
@@ -1318,7 +1601,7 @@ type ContactListsRetrieveResponses = {
1318
1601
  };
1319
1602
  type ContactListsRetrieveResponse = ContactListsRetrieveResponses[keyof ContactListsRetrieveResponses];
1320
1603
  type ContactListsUpdateData = {
1321
- body?: {
1604
+ body: {
1322
1605
  name: string;
1323
1606
  metadata?: {
1324
1607
  [key: string]: string;
@@ -1357,8 +1640,7 @@ type ContactListsUpdateResponses = {
1357
1640
  };
1358
1641
  type ContactListsUpdateResponse = ContactListsUpdateResponses[keyof ContactListsUpdateResponses];
1359
1642
  type ContactsDelAllData = {
1360
- body?: {
1361
- owner: string;
1643
+ body: {
1362
1644
  contact_list?: string;
1363
1645
  };
1364
1646
  path?: never;
@@ -1431,7 +1713,7 @@ type ContactsListResponses = {
1431
1713
  };
1432
1714
  type ContactsListResponse = ContactsListResponses[keyof ContactsListResponses];
1433
1715
  type ContactsCreateData = {
1434
- body?: {
1716
+ body: {
1435
1717
  owner: string;
1436
1718
  email: string;
1437
1719
  blocked?: boolean;
@@ -1486,7 +1768,7 @@ type ContactsCreateResponses = {
1486
1768
  };
1487
1769
  type ContactsCreateResponse = ContactsCreateResponses[keyof ContactsCreateResponses];
1488
1770
  type ContactsBatchCreateData = {
1489
- body?: {
1771
+ body: {
1490
1772
  contacts: Array<{
1491
1773
  owner: string;
1492
1774
  email: string;
@@ -1533,7 +1815,7 @@ type ContactsBatchCreateResponses = {
1533
1815
  };
1534
1816
  type ContactsBatchCreateResponse = ContactsBatchCreateResponses[keyof ContactsBatchCreateResponses];
1535
1817
  type ContactsBatchCreate2Data = {
1536
- body?: unknown;
1818
+ body: unknown;
1537
1819
  path?: never;
1538
1820
  query?: never;
1539
1821
  url: '/contacts/batch_legacy';
@@ -1640,7 +1922,7 @@ type ContactsRetrieveResponses = {
1640
1922
  };
1641
1923
  type ContactsRetrieveResponse = ContactsRetrieveResponses[keyof ContactsRetrieveResponses];
1642
1924
  type ContactsUpdateData = {
1643
- body?: {
1925
+ body: {
1644
1926
  blocked?: boolean;
1645
1927
  unsubscribed?: boolean;
1646
1928
  contact_lists?: Array<string>;
@@ -1872,7 +2154,7 @@ type BillingAddonsGetAddonsResponses = {
1872
2154
  };
1873
2155
  type BillingAddonsGetAddonsResponse = BillingAddonsGetAddonsResponses[keyof BillingAddonsGetAddonsResponses];
1874
2156
  type BillingAddonsPreviewUpdateData = {
1875
- body?: {
2157
+ body: {
1876
2158
  quantity: number;
1877
2159
  };
1878
2160
  path: {
@@ -1930,7 +2212,7 @@ type BillingAddonsGetAddonUsagesResponses = {
1930
2212
  };
1931
2213
  type BillingAddonsGetAddonUsagesResponse = BillingAddonsGetAddonUsagesResponses[keyof BillingAddonsGetAddonUsagesResponses];
1932
2214
  type BillingAddonsUpdateData = {
1933
- body?: {
2215
+ body: {
1934
2216
  quantity: number;
1935
2217
  };
1936
2218
  path: {
@@ -1957,123 +2239,6 @@ type BillingAddonsUpdateResponses = {
1957
2239
  };
1958
2240
  };
1959
2241
  type BillingAddonsUpdateResponse = BillingAddonsUpdateResponses[keyof BillingAddonsUpdateResponses];
1960
- type BillingSubscriptionGetData = {
1961
- body?: never;
1962
- path?: never;
1963
- query?: never;
1964
- url: '/billing/subscription';
1965
- };
1966
- type BillingSubscriptionGetErrors = {
1967
- /**
1968
- * Error response
1969
- */
1970
- default: ErrorResponse;
1971
- };
1972
- type BillingSubscriptionGetError = BillingSubscriptionGetErrors[keyof BillingSubscriptionGetErrors];
1973
- type BillingSubscriptionGetResponses = {
1974
- /**
1975
- * Response
1976
- */
1977
- 200: {
1978
- id: string;
1979
- created_at: number;
1980
- current_period_start: number;
1981
- current_period_end: number;
1982
- quantity: number;
1983
- currency: string;
1984
- amount: number | null;
1985
- discount_percentage?: number | null;
1986
- name: string | null;
1987
- billing_period: 'day' | 'week' | 'month' | 'year' | null;
1988
- plan: 'free' | 'starter' | 'pro' | 'premium' | 'business' | null;
1989
- default_payment_method: {
1990
- type: string;
1991
- brand?: string | null;
1992
- last4: string | null;
1993
- exp_month: number | null;
1994
- exp_year: number | null;
1995
- bank_name?: string | null;
1996
- } | null;
1997
- addons: {
1998
- senders?: {
1999
- quantity: number;
2000
- };
2001
- email_warmups?: {
2002
- quantity: number;
2003
- };
2004
- };
2005
- } | null;
2006
- };
2007
- type BillingSubscriptionGetResponse = BillingSubscriptionGetResponses[keyof BillingSubscriptionGetResponses];
2008
- type BillingSubscriptionUpdateData = {
2009
- body?: {
2010
- plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
2011
- billing_period: 'month' | 'year';
2012
- };
2013
- path?: never;
2014
- query?: never;
2015
- url: '/billing/subscription';
2016
- };
2017
- type BillingSubscriptionUpdateErrors = {
2018
- /**
2019
- * Error response
2020
- */
2021
- default: ErrorResponse;
2022
- };
2023
- type BillingSubscriptionUpdateError = BillingSubscriptionUpdateErrors[keyof BillingSubscriptionUpdateErrors];
2024
- type BillingSubscriptionUpdateResponses = {
2025
- /**
2026
- * Response
2027
- */
2028
- 200: {
2029
- status: 'confirmation_required' | 'success' | 'payment_failed';
2030
- client_secret?: string;
2031
- failure_code?: string;
2032
- };
2033
- };
2034
- type BillingSubscriptionUpdateResponse = BillingSubscriptionUpdateResponses[keyof BillingSubscriptionUpdateResponses];
2035
- type BillingSubscriptionPreviewUpdateData = {
2036
- body?: {
2037
- plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
2038
- billing_period: 'month' | 'year';
2039
- };
2040
- path?: never;
2041
- query?: never;
2042
- url: '/billing/subscription/preview';
2043
- };
2044
- type BillingSubscriptionPreviewUpdateErrors = {
2045
- /**
2046
- * Error response
2047
- */
2048
- default: ErrorResponse;
2049
- };
2050
- type BillingSubscriptionPreviewUpdateError = BillingSubscriptionPreviewUpdateErrors[keyof BillingSubscriptionPreviewUpdateErrors];
2051
- type BillingSubscriptionPreviewUpdateResponses = {
2052
- /**
2053
- * Response
2054
- */
2055
- 200: {
2056
- discount_percents: Array<number>;
2057
- total_excluding_tax: number;
2058
- total: number;
2059
- amount_due: number;
2060
- added_from_balance: number;
2061
- consumed_balance: number;
2062
- credited_to_balance: number;
2063
- lines: Array<{
2064
- amount: number;
2065
- billing_period: 'day' | 'week' | 'month' | 'year';
2066
- proration: boolean;
2067
- plan?: 'free' | 'starter' | 'pro' | 'premium' | 'business';
2068
- addon?: 'senders' | 'email_warmups';
2069
- }>;
2070
- next_renewal: number;
2071
- total_tax_amounts: Array<{
2072
- amount: number;
2073
- }>;
2074
- };
2075
- };
2076
- type BillingSubscriptionPreviewUpdateResponse = BillingSubscriptionPreviewUpdateResponses[keyof BillingSubscriptionPreviewUpdateResponses];
2077
2242
  type BillingGetPricesData = {
2078
2243
  body?: never;
2079
2244
  path?: never;
@@ -2172,6 +2337,11 @@ type types_gen_d_BillingGetPricesError = BillingGetPricesError;
2172
2337
  type types_gen_d_BillingGetPricesErrors = BillingGetPricesErrors;
2173
2338
  type types_gen_d_BillingGetPricesResponse = BillingGetPricesResponse;
2174
2339
  type types_gen_d_BillingGetPricesResponses = BillingGetPricesResponses;
2340
+ type types_gen_d_BillingSubscriptionCheckoutData = BillingSubscriptionCheckoutData;
2341
+ type types_gen_d_BillingSubscriptionCheckoutError = BillingSubscriptionCheckoutError;
2342
+ type types_gen_d_BillingSubscriptionCheckoutErrors = BillingSubscriptionCheckoutErrors;
2343
+ type types_gen_d_BillingSubscriptionCheckoutResponse = BillingSubscriptionCheckoutResponse;
2344
+ type types_gen_d_BillingSubscriptionCheckoutResponses = BillingSubscriptionCheckoutResponses;
2175
2345
  type types_gen_d_BillingSubscriptionGetData = BillingSubscriptionGetData;
2176
2346
  type types_gen_d_BillingSubscriptionGetError = BillingSubscriptionGetError;
2177
2347
  type types_gen_d_BillingSubscriptionGetErrors = BillingSubscriptionGetErrors;
@@ -2189,6 +2359,8 @@ type types_gen_d_BillingSubscriptionUpdateResponse = BillingSubscriptionUpdateRe
2189
2359
  type types_gen_d_BillingSubscriptionUpdateResponses = BillingSubscriptionUpdateResponses;
2190
2360
  type types_gen_d_BlockParams = BlockParams;
2191
2361
  type types_gen_d_BlockResponse200 = BlockResponse200;
2362
+ type types_gen_d_CheckoutBody = CheckoutBody;
2363
+ type types_gen_d_CheckoutResponse200 = CheckoutResponse200;
2192
2364
  type types_gen_d_ClientOptions = ClientOptions;
2193
2365
  type types_gen_d_ContactIdBody = ContactIdBody;
2194
2366
  type types_gen_d_ContactIdParams = ContactIdParams;
@@ -2296,26 +2468,26 @@ type types_gen_d_OpenapiJsonResponse200 = OpenapiJsonResponse200;
2296
2468
  type types_gen_d_OrganizationIdBody = OrganizationIdBody;
2297
2469
  type types_gen_d_OrganizationIdParams = OrganizationIdParams;
2298
2470
  type types_gen_d_OrganizationIdResponse200 = OrganizationIdResponse200;
2299
- type types_gen_d_OrganizationMemberCreateData = OrganizationMemberCreateData;
2300
- type types_gen_d_OrganizationMemberCreateError = OrganizationMemberCreateError;
2301
- type types_gen_d_OrganizationMemberCreateErrors = OrganizationMemberCreateErrors;
2302
- type types_gen_d_OrganizationMemberCreateResponse = OrganizationMemberCreateResponse;
2303
- type types_gen_d_OrganizationMemberCreateResponses = OrganizationMemberCreateResponses;
2304
- type types_gen_d_OrganizationMemberDeleteData = OrganizationMemberDeleteData;
2305
- type types_gen_d_OrganizationMemberDeleteError = OrganizationMemberDeleteError;
2306
- type types_gen_d_OrganizationMemberDeleteErrors = OrganizationMemberDeleteErrors;
2307
- type types_gen_d_OrganizationMemberDeleteResponse = OrganizationMemberDeleteResponse;
2308
- type types_gen_d_OrganizationMemberDeleteResponses = OrganizationMemberDeleteResponses;
2309
- type types_gen_d_OrganizationMemberListData = OrganizationMemberListData;
2310
- type types_gen_d_OrganizationMemberListError = OrganizationMemberListError;
2311
- type types_gen_d_OrganizationMemberListErrors = OrganizationMemberListErrors;
2312
- type types_gen_d_OrganizationMemberListResponse = OrganizationMemberListResponse;
2313
- type types_gen_d_OrganizationMemberListResponses = OrganizationMemberListResponses;
2314
- type types_gen_d_OrganizationMemberUpdateData = OrganizationMemberUpdateData;
2315
- type types_gen_d_OrganizationMemberUpdateError = OrganizationMemberUpdateError;
2316
- type types_gen_d_OrganizationMemberUpdateErrors = OrganizationMemberUpdateErrors;
2317
- type types_gen_d_OrganizationMemberUpdateResponse = OrganizationMemberUpdateResponse;
2318
- type types_gen_d_OrganizationMemberUpdateResponses = OrganizationMemberUpdateResponses;
2471
+ type types_gen_d_OrganizationMembersCreateData = OrganizationMembersCreateData;
2472
+ type types_gen_d_OrganizationMembersCreateError = OrganizationMembersCreateError;
2473
+ type types_gen_d_OrganizationMembersCreateErrors = OrganizationMembersCreateErrors;
2474
+ type types_gen_d_OrganizationMembersCreateResponse = OrganizationMembersCreateResponse;
2475
+ type types_gen_d_OrganizationMembersCreateResponses = OrganizationMembersCreateResponses;
2476
+ type types_gen_d_OrganizationMembersDeleteData = OrganizationMembersDeleteData;
2477
+ type types_gen_d_OrganizationMembersDeleteError = OrganizationMembersDeleteError;
2478
+ type types_gen_d_OrganizationMembersDeleteErrors = OrganizationMembersDeleteErrors;
2479
+ type types_gen_d_OrganizationMembersDeleteResponse = OrganizationMembersDeleteResponse;
2480
+ type types_gen_d_OrganizationMembersDeleteResponses = OrganizationMembersDeleteResponses;
2481
+ type types_gen_d_OrganizationMembersListData = OrganizationMembersListData;
2482
+ type types_gen_d_OrganizationMembersListError = OrganizationMembersListError;
2483
+ type types_gen_d_OrganizationMembersListErrors = OrganizationMembersListErrors;
2484
+ type types_gen_d_OrganizationMembersListResponse = OrganizationMembersListResponse;
2485
+ type types_gen_d_OrganizationMembersListResponses = OrganizationMembersListResponses;
2486
+ type types_gen_d_OrganizationMembersUpdateData = OrganizationMembersUpdateData;
2487
+ type types_gen_d_OrganizationMembersUpdateError = OrganizationMembersUpdateError;
2488
+ type types_gen_d_OrganizationMembersUpdateErrors = OrganizationMembersUpdateErrors;
2489
+ type types_gen_d_OrganizationMembersUpdateResponse = OrganizationMembersUpdateResponse;
2490
+ type types_gen_d_OrganizationMembersUpdateResponses = OrganizationMembersUpdateResponses;
2319
2491
  type types_gen_d_OrganizationsBody = OrganizationsBody;
2320
2492
  type types_gen_d_OrganizationsCreateData = OrganizationsCreateData;
2321
2493
  type types_gen_d_OrganizationsCreateError = OrganizationsCreateError;
@@ -2355,6 +2527,9 @@ type types_gen_d_SubscriptionBody = SubscriptionBody;
2355
2527
  type types_gen_d_SubscriptionResponse200 = SubscriptionResponse200;
2356
2528
  type types_gen_d_UnblockParams = UnblockParams;
2357
2529
  type types_gen_d_UnblockResponse200 = UnblockResponse200;
2530
+ type types_gen_d_UserIdParams = UserIdParams;
2531
+ type types_gen_d_UserIdQuery = UserIdQuery;
2532
+ type types_gen_d_UserIdResponse200 = UserIdResponse200;
2358
2533
  type types_gen_d_UsersDeleteActionData = UsersDeleteActionData;
2359
2534
  type types_gen_d_UsersDeleteActionError = UsersDeleteActionError;
2360
2535
  type types_gen_d_UsersDeleteActionErrors = UsersDeleteActionErrors;
@@ -2365,6 +2540,11 @@ type types_gen_d_UsersGetCurrentOrganizationError = UsersGetCurrentOrganizationE
2365
2540
  type types_gen_d_UsersGetCurrentOrganizationErrors = UsersGetCurrentOrganizationErrors;
2366
2541
  type types_gen_d_UsersGetCurrentOrganizationResponse = UsersGetCurrentOrganizationResponse;
2367
2542
  type types_gen_d_UsersGetCurrentOrganizationResponses = UsersGetCurrentOrganizationResponses;
2543
+ type types_gen_d_UsersRetrieveData = UsersRetrieveData;
2544
+ type types_gen_d_UsersRetrieveError = UsersRetrieveError;
2545
+ type types_gen_d_UsersRetrieveErrors = UsersRetrieveErrors;
2546
+ type types_gen_d_UsersRetrieveResponse = UsersRetrieveResponse;
2547
+ type types_gen_d_UsersRetrieveResponses = UsersRetrieveResponses;
2368
2548
  type types_gen_d_UsersSetCurrentOrganizationData = UsersSetCurrentOrganizationData;
2369
2549
  type types_gen_d_UsersSetCurrentOrganizationError = UsersSetCurrentOrganizationError;
2370
2550
  type types_gen_d_UsersSetCurrentOrganizationErrors = UsersSetCurrentOrganizationErrors;
@@ -2378,7 +2558,7 @@ type types_gen_d_UsersWatchMailboxResponses = UsersWatchMailboxResponses;
2378
2558
  type types_gen_d_WatchMailboxBody = WatchMailboxBody;
2379
2559
  type types_gen_d_WatchMailboxParams = WatchMailboxParams;
2380
2560
  declare namespace types_gen_d {
2381
- export type { types_gen_d_ActionIdParams as ActionIdParams, types_gen_d_AddonBody as AddonBody, types_gen_d_AddonParams as AddonParams, types_gen_d_AddonResponse200 as AddonResponse200, types_gen_d_AddonsResponse200 as AddonsResponse200, types_gen_d_BatchBody as BatchBody, types_gen_d_BatchLegacyBody as BatchLegacyBody, types_gen_d_BatchLegacyResponse201 as BatchLegacyResponse201, types_gen_d_BatchResponse201 as BatchResponse201, types_gen_d_BatchResponse202 as BatchResponse202, types_gen_d_BillingAddonsGetAddonUsagesData as BillingAddonsGetAddonUsagesData, types_gen_d_BillingAddonsGetAddonUsagesError as BillingAddonsGetAddonUsagesError, types_gen_d_BillingAddonsGetAddonUsagesErrors as BillingAddonsGetAddonUsagesErrors, types_gen_d_BillingAddonsGetAddonUsagesResponse as BillingAddonsGetAddonUsagesResponse, types_gen_d_BillingAddonsGetAddonUsagesResponses as BillingAddonsGetAddonUsagesResponses, types_gen_d_BillingAddonsGetAddonsData as BillingAddonsGetAddonsData, types_gen_d_BillingAddonsGetAddonsError as BillingAddonsGetAddonsError, types_gen_d_BillingAddonsGetAddonsErrors as BillingAddonsGetAddonsErrors, types_gen_d_BillingAddonsGetAddonsResponse as BillingAddonsGetAddonsResponse, types_gen_d_BillingAddonsGetAddonsResponses as BillingAddonsGetAddonsResponses, types_gen_d_BillingAddonsPreviewUpdateData as BillingAddonsPreviewUpdateData, types_gen_d_BillingAddonsPreviewUpdateError as BillingAddonsPreviewUpdateError, types_gen_d_BillingAddonsPreviewUpdateErrors as BillingAddonsPreviewUpdateErrors, types_gen_d_BillingAddonsPreviewUpdateResponse as BillingAddonsPreviewUpdateResponse, types_gen_d_BillingAddonsPreviewUpdateResponses as BillingAddonsPreviewUpdateResponses, types_gen_d_BillingAddonsUpdateData as BillingAddonsUpdateData, types_gen_d_BillingAddonsUpdateError as BillingAddonsUpdateError, types_gen_d_BillingAddonsUpdateErrors as BillingAddonsUpdateErrors, types_gen_d_BillingAddonsUpdateResponse as BillingAddonsUpdateResponse, types_gen_d_BillingAddonsUpdateResponses as BillingAddonsUpdateResponses, types_gen_d_BillingGetPricesData as BillingGetPricesData, types_gen_d_BillingGetPricesError as BillingGetPricesError, types_gen_d_BillingGetPricesErrors as BillingGetPricesErrors, types_gen_d_BillingGetPricesResponse as BillingGetPricesResponse, types_gen_d_BillingGetPricesResponses as BillingGetPricesResponses, types_gen_d_BillingSubscriptionGetData as BillingSubscriptionGetData, types_gen_d_BillingSubscriptionGetError as BillingSubscriptionGetError, types_gen_d_BillingSubscriptionGetErrors as BillingSubscriptionGetErrors, types_gen_d_BillingSubscriptionGetResponse as BillingSubscriptionGetResponse, types_gen_d_BillingSubscriptionGetResponses as BillingSubscriptionGetResponses, types_gen_d_BillingSubscriptionPreviewUpdateData as BillingSubscriptionPreviewUpdateData, types_gen_d_BillingSubscriptionPreviewUpdateError as BillingSubscriptionPreviewUpdateError, types_gen_d_BillingSubscriptionPreviewUpdateErrors as BillingSubscriptionPreviewUpdateErrors, types_gen_d_BillingSubscriptionPreviewUpdateResponse as BillingSubscriptionPreviewUpdateResponse, types_gen_d_BillingSubscriptionPreviewUpdateResponses as BillingSubscriptionPreviewUpdateResponses, types_gen_d_BillingSubscriptionUpdateData as BillingSubscriptionUpdateData, types_gen_d_BillingSubscriptionUpdateError as BillingSubscriptionUpdateError, types_gen_d_BillingSubscriptionUpdateErrors as BillingSubscriptionUpdateErrors, types_gen_d_BillingSubscriptionUpdateResponse as BillingSubscriptionUpdateResponse, types_gen_d_BillingSubscriptionUpdateResponses as BillingSubscriptionUpdateResponses, types_gen_d_BlockParams as BlockParams, types_gen_d_BlockResponse200 as BlockResponse200, types_gen_d_ClientOptions as ClientOptions, types_gen_d_ContactIdBody as ContactIdBody, types_gen_d_ContactIdParams as ContactIdParams, types_gen_d_ContactIdResponse200 as ContactIdResponse200, types_gen_d_ContactListIdBody as ContactListIdBody, types_gen_d_ContactListIdParams as ContactListIdParams, types_gen_d_ContactListIdResponse200 as ContactListIdResponse200, types_gen_d_ContactListsBody as ContactListsBody, types_gen_d_ContactListsCreateData as ContactListsCreateData, types_gen_d_ContactListsCreateError as ContactListsCreateError, types_gen_d_ContactListsCreateErrors as ContactListsCreateErrors, types_gen_d_ContactListsCreateResponse as ContactListsCreateResponse, types_gen_d_ContactListsCreateResponses as ContactListsCreateResponses, types_gen_d_ContactListsRemoveData as ContactListsRemoveData, types_gen_d_ContactListsRemoveError as ContactListsRemoveError, types_gen_d_ContactListsRemoveErrors as ContactListsRemoveErrors, types_gen_d_ContactListsRemoveResponse as ContactListsRemoveResponse, types_gen_d_ContactListsRemoveResponses as ContactListsRemoveResponses, types_gen_d_ContactListsResponse201 as ContactListsResponse201, types_gen_d_ContactListsRetrieveData as ContactListsRetrieveData, types_gen_d_ContactListsRetrieveError as ContactListsRetrieveError, types_gen_d_ContactListsRetrieveErrors as ContactListsRetrieveErrors, types_gen_d_ContactListsRetrieveResponse as ContactListsRetrieveResponse, types_gen_d_ContactListsRetrieveResponses as ContactListsRetrieveResponses, types_gen_d_ContactListsUpdateData as ContactListsUpdateData, types_gen_d_ContactListsUpdateError as ContactListsUpdateError, types_gen_d_ContactListsUpdateErrors as ContactListsUpdateErrors, types_gen_d_ContactListsUpdateResponse as ContactListsUpdateResponse, types_gen_d_ContactListsUpdateResponses as ContactListsUpdateResponses, types_gen_d_ContactsBatchCreate2Data as ContactsBatchCreate2Data, types_gen_d_ContactsBatchCreate2Error as ContactsBatchCreate2Error, types_gen_d_ContactsBatchCreate2Errors as ContactsBatchCreate2Errors, types_gen_d_ContactsBatchCreate2Responses as ContactsBatchCreate2Responses, types_gen_d_ContactsBatchCreateData as ContactsBatchCreateData, types_gen_d_ContactsBatchCreateError as ContactsBatchCreateError, types_gen_d_ContactsBatchCreateErrors as ContactsBatchCreateErrors, types_gen_d_ContactsBatchCreateResponse as ContactsBatchCreateResponse, types_gen_d_ContactsBatchCreateResponses as ContactsBatchCreateResponses, types_gen_d_ContactsBlockData as ContactsBlockData, types_gen_d_ContactsBlockError as ContactsBlockError, types_gen_d_ContactsBlockErrors as ContactsBlockErrors, types_gen_d_ContactsBlockResponse as ContactsBlockResponse, types_gen_d_ContactsBlockResponses as ContactsBlockResponses, types_gen_d_ContactsBody as ContactsBody, types_gen_d_ContactsCreateData as ContactsCreateData, types_gen_d_ContactsCreateError as ContactsCreateError, types_gen_d_ContactsCreateErrors as ContactsCreateErrors, types_gen_d_ContactsCreateResponse as ContactsCreateResponse, types_gen_d_ContactsCreateResponses as ContactsCreateResponses, types_gen_d_ContactsDelAllData as ContactsDelAllData, types_gen_d_ContactsDelAllError as ContactsDelAllError, types_gen_d_ContactsDelAllErrors as ContactsDelAllErrors, types_gen_d_ContactsDelAllResponse as ContactsDelAllResponse, types_gen_d_ContactsDelAllResponses as ContactsDelAllResponses, types_gen_d_ContactsDelData as ContactsDelData, types_gen_d_ContactsDelError as ContactsDelError, types_gen_d_ContactsDelErrors as ContactsDelErrors, types_gen_d_ContactsDelResponse as ContactsDelResponse, types_gen_d_ContactsDelResponses as ContactsDelResponses, types_gen_d_ContactsListData as ContactsListData, types_gen_d_ContactsListError as ContactsListError, types_gen_d_ContactsListErrors as ContactsListErrors, types_gen_d_ContactsListResponse as ContactsListResponse, types_gen_d_ContactsListResponses as ContactsListResponses, types_gen_d_ContactsQuery as ContactsQuery, types_gen_d_ContactsResponse200 as ContactsResponse200, types_gen_d_ContactsResponse201 as ContactsResponse201, types_gen_d_ContactsResubscribeData as ContactsResubscribeData, types_gen_d_ContactsResubscribeError as ContactsResubscribeError, types_gen_d_ContactsResubscribeErrors as ContactsResubscribeErrors, types_gen_d_ContactsResubscribeResponse as ContactsResubscribeResponse, types_gen_d_ContactsResubscribeResponses as ContactsResubscribeResponses, types_gen_d_ContactsRetrieveData as ContactsRetrieveData, types_gen_d_ContactsRetrieveError as ContactsRetrieveError, types_gen_d_ContactsRetrieveErrors as ContactsRetrieveErrors, types_gen_d_ContactsRetrieveResponse as ContactsRetrieveResponse, types_gen_d_ContactsRetrieveResponses as ContactsRetrieveResponses, types_gen_d_ContactsUnblockData as ContactsUnblockData, types_gen_d_ContactsUnblockError as ContactsUnblockError, types_gen_d_ContactsUnblockErrors as ContactsUnblockErrors, types_gen_d_ContactsUnblockResponse as ContactsUnblockResponse, types_gen_d_ContactsUnblockResponses as ContactsUnblockResponses, types_gen_d_ContactsUpdateData as ContactsUpdateData, types_gen_d_ContactsUpdateError as ContactsUpdateError, types_gen_d_ContactsUpdateErrors as ContactsUpdateErrors, types_gen_d_ContactsUpdateResponse as ContactsUpdateResponse, types_gen_d_ContactsUpdateResponses as ContactsUpdateResponses, types_gen_d_CurrentOrganizationBody as CurrentOrganizationBody, types_gen_d_CurrentOrganizationParams as CurrentOrganizationParams, types_gen_d_CurrentOrganizationResponse200 as CurrentOrganizationResponse200, types_gen_d_ErrorResponse as ErrorResponse, types_gen_d_GetOpenapiJsonData as GetOpenapiJsonData, types_gen_d_GetOpenapiJsonError as GetOpenapiJsonError, types_gen_d_GetOpenapiJsonErrors as GetOpenapiJsonErrors, types_gen_d_GetOpenapiJsonResponses as GetOpenapiJsonResponses, types_gen_d_MemberIdBody as MemberIdBody, types_gen_d_MemberIdParams as MemberIdParams, types_gen_d_MemberIdResponse200 as MemberIdResponse200, types_gen_d_MembersBody as MembersBody, types_gen_d_MembersParams as MembersParams, types_gen_d_MembersQuery as MembersQuery, types_gen_d_MembersResponse200 as MembersResponse200, types_gen_d_MembersResponse201 as MembersResponse201, types_gen_d_OpenapiJsonResponse200 as OpenapiJsonResponse200, types_gen_d_OrganizationIdBody as OrganizationIdBody, types_gen_d_OrganizationIdParams as OrganizationIdParams, types_gen_d_OrganizationIdResponse200 as OrganizationIdResponse200, types_gen_d_OrganizationMemberCreateData as OrganizationMemberCreateData, types_gen_d_OrganizationMemberCreateError as OrganizationMemberCreateError, types_gen_d_OrganizationMemberCreateErrors as OrganizationMemberCreateErrors, types_gen_d_OrganizationMemberCreateResponse as OrganizationMemberCreateResponse, types_gen_d_OrganizationMemberCreateResponses as OrganizationMemberCreateResponses, types_gen_d_OrganizationMemberDeleteData as OrganizationMemberDeleteData, types_gen_d_OrganizationMemberDeleteError as OrganizationMemberDeleteError, types_gen_d_OrganizationMemberDeleteErrors as OrganizationMemberDeleteErrors, types_gen_d_OrganizationMemberDeleteResponse as OrganizationMemberDeleteResponse, types_gen_d_OrganizationMemberDeleteResponses as OrganizationMemberDeleteResponses, types_gen_d_OrganizationMemberListData as OrganizationMemberListData, types_gen_d_OrganizationMemberListError as OrganizationMemberListError, types_gen_d_OrganizationMemberListErrors as OrganizationMemberListErrors, types_gen_d_OrganizationMemberListResponse as OrganizationMemberListResponse, types_gen_d_OrganizationMemberListResponses as OrganizationMemberListResponses, types_gen_d_OrganizationMemberUpdateData as OrganizationMemberUpdateData, types_gen_d_OrganizationMemberUpdateError as OrganizationMemberUpdateError, types_gen_d_OrganizationMemberUpdateErrors as OrganizationMemberUpdateErrors, types_gen_d_OrganizationMemberUpdateResponse as OrganizationMemberUpdateResponse, types_gen_d_OrganizationMemberUpdateResponses as OrganizationMemberUpdateResponses, types_gen_d_OrganizationsBody as OrganizationsBody, types_gen_d_OrganizationsCreateData as OrganizationsCreateData, types_gen_d_OrganizationsCreateError as OrganizationsCreateError, types_gen_d_OrganizationsCreateErrors as OrganizationsCreateErrors, types_gen_d_OrganizationsCreateResponse as OrganizationsCreateResponse, types_gen_d_OrganizationsCreateResponses as OrganizationsCreateResponses, types_gen_d_OrganizationsDeleteData as OrganizationsDeleteData, types_gen_d_OrganizationsDeleteError as OrganizationsDeleteError, types_gen_d_OrganizationsDeleteErrors as OrganizationsDeleteErrors, types_gen_d_OrganizationsDeleteResponse as OrganizationsDeleteResponse, types_gen_d_OrganizationsDeleteResponses as OrganizationsDeleteResponses, types_gen_d_OrganizationsListData as OrganizationsListData, types_gen_d_OrganizationsListError as OrganizationsListError, types_gen_d_OrganizationsListErrors as OrganizationsListErrors, types_gen_d_OrganizationsListResponse as OrganizationsListResponse, types_gen_d_OrganizationsListResponses as OrganizationsListResponses, types_gen_d_OrganizationsResponse200 as OrganizationsResponse200, types_gen_d_OrganizationsResponse201 as OrganizationsResponse201, types_gen_d_OrganizationsRetrieveData as OrganizationsRetrieveData, types_gen_d_OrganizationsRetrieveError as OrganizationsRetrieveError, types_gen_d_OrganizationsRetrieveErrors as OrganizationsRetrieveErrors, types_gen_d_OrganizationsRetrieveResponse as OrganizationsRetrieveResponse, types_gen_d_OrganizationsRetrieveResponses as OrganizationsRetrieveResponses, types_gen_d_OrganizationsUpdateData as OrganizationsUpdateData, types_gen_d_OrganizationsUpdateError as OrganizationsUpdateError, types_gen_d_OrganizationsUpdateErrors as OrganizationsUpdateErrors, types_gen_d_OrganizationsUpdateResponse as OrganizationsUpdateResponse, types_gen_d_OrganizationsUpdateResponses as OrganizationsUpdateResponses, types_gen_d_PreviewBody as PreviewBody, types_gen_d_PreviewParams as PreviewParams, types_gen_d_PreviewResponse200 as PreviewResponse200, types_gen_d_PricesQuery as PricesQuery, types_gen_d_PricesResponse200 as PricesResponse200, types_gen_d_ResubscribeParams as ResubscribeParams, types_gen_d_ResubscribeResponse200 as ResubscribeResponse200, types_gen_d_SubscriptionBody as SubscriptionBody, types_gen_d_SubscriptionResponse200 as SubscriptionResponse200, types_gen_d_UnblockParams as UnblockParams, types_gen_d_UnblockResponse200 as UnblockResponse200, types_gen_d_UsersDeleteActionData as UsersDeleteActionData, types_gen_d_UsersDeleteActionError as UsersDeleteActionError, types_gen_d_UsersDeleteActionErrors as UsersDeleteActionErrors, types_gen_d_UsersDeleteActionResponse as UsersDeleteActionResponse, types_gen_d_UsersDeleteActionResponses as UsersDeleteActionResponses, types_gen_d_UsersGetCurrentOrganizationData as UsersGetCurrentOrganizationData, types_gen_d_UsersGetCurrentOrganizationError as UsersGetCurrentOrganizationError, types_gen_d_UsersGetCurrentOrganizationErrors as UsersGetCurrentOrganizationErrors, types_gen_d_UsersGetCurrentOrganizationResponse as UsersGetCurrentOrganizationResponse, types_gen_d_UsersGetCurrentOrganizationResponses as UsersGetCurrentOrganizationResponses, types_gen_d_UsersSetCurrentOrganizationData as UsersSetCurrentOrganizationData, types_gen_d_UsersSetCurrentOrganizationError as UsersSetCurrentOrganizationError, types_gen_d_UsersSetCurrentOrganizationErrors as UsersSetCurrentOrganizationErrors, types_gen_d_UsersSetCurrentOrganizationResponse as UsersSetCurrentOrganizationResponse, types_gen_d_UsersSetCurrentOrganizationResponses as UsersSetCurrentOrganizationResponses, types_gen_d_UsersWatchMailboxData as UsersWatchMailboxData, types_gen_d_UsersWatchMailboxError as UsersWatchMailboxError, types_gen_d_UsersWatchMailboxErrors as UsersWatchMailboxErrors, types_gen_d_UsersWatchMailboxResponse as UsersWatchMailboxResponse, types_gen_d_UsersWatchMailboxResponses as UsersWatchMailboxResponses, types_gen_d_WatchMailboxBody as WatchMailboxBody, types_gen_d_WatchMailboxParams as WatchMailboxParams };
2561
+ export type { types_gen_d_ActionIdParams as ActionIdParams, types_gen_d_AddonBody as AddonBody, types_gen_d_AddonParams as AddonParams, types_gen_d_AddonResponse200 as AddonResponse200, types_gen_d_AddonsResponse200 as AddonsResponse200, types_gen_d_BatchBody as BatchBody, types_gen_d_BatchLegacyBody as BatchLegacyBody, types_gen_d_BatchLegacyResponse201 as BatchLegacyResponse201, types_gen_d_BatchResponse201 as BatchResponse201, types_gen_d_BatchResponse202 as BatchResponse202, types_gen_d_BillingAddonsGetAddonUsagesData as BillingAddonsGetAddonUsagesData, types_gen_d_BillingAddonsGetAddonUsagesError as BillingAddonsGetAddonUsagesError, types_gen_d_BillingAddonsGetAddonUsagesErrors as BillingAddonsGetAddonUsagesErrors, types_gen_d_BillingAddonsGetAddonUsagesResponse as BillingAddonsGetAddonUsagesResponse, types_gen_d_BillingAddonsGetAddonUsagesResponses as BillingAddonsGetAddonUsagesResponses, types_gen_d_BillingAddonsGetAddonsData as BillingAddonsGetAddonsData, types_gen_d_BillingAddonsGetAddonsError as BillingAddonsGetAddonsError, types_gen_d_BillingAddonsGetAddonsErrors as BillingAddonsGetAddonsErrors, types_gen_d_BillingAddonsGetAddonsResponse as BillingAddonsGetAddonsResponse, types_gen_d_BillingAddonsGetAddonsResponses as BillingAddonsGetAddonsResponses, types_gen_d_BillingAddonsPreviewUpdateData as BillingAddonsPreviewUpdateData, types_gen_d_BillingAddonsPreviewUpdateError as BillingAddonsPreviewUpdateError, types_gen_d_BillingAddonsPreviewUpdateErrors as BillingAddonsPreviewUpdateErrors, types_gen_d_BillingAddonsPreviewUpdateResponse as BillingAddonsPreviewUpdateResponse, types_gen_d_BillingAddonsPreviewUpdateResponses as BillingAddonsPreviewUpdateResponses, types_gen_d_BillingAddonsUpdateData as BillingAddonsUpdateData, types_gen_d_BillingAddonsUpdateError as BillingAddonsUpdateError, types_gen_d_BillingAddonsUpdateErrors as BillingAddonsUpdateErrors, types_gen_d_BillingAddonsUpdateResponse as BillingAddonsUpdateResponse, types_gen_d_BillingAddonsUpdateResponses as BillingAddonsUpdateResponses, types_gen_d_BillingGetPricesData as BillingGetPricesData, types_gen_d_BillingGetPricesError as BillingGetPricesError, types_gen_d_BillingGetPricesErrors as BillingGetPricesErrors, types_gen_d_BillingGetPricesResponse as BillingGetPricesResponse, types_gen_d_BillingGetPricesResponses as BillingGetPricesResponses, types_gen_d_BillingSubscriptionCheckoutData as BillingSubscriptionCheckoutData, types_gen_d_BillingSubscriptionCheckoutError as BillingSubscriptionCheckoutError, types_gen_d_BillingSubscriptionCheckoutErrors as BillingSubscriptionCheckoutErrors, types_gen_d_BillingSubscriptionCheckoutResponse as BillingSubscriptionCheckoutResponse, types_gen_d_BillingSubscriptionCheckoutResponses as BillingSubscriptionCheckoutResponses, types_gen_d_BillingSubscriptionGetData as BillingSubscriptionGetData, types_gen_d_BillingSubscriptionGetError as BillingSubscriptionGetError, types_gen_d_BillingSubscriptionGetErrors as BillingSubscriptionGetErrors, types_gen_d_BillingSubscriptionGetResponse as BillingSubscriptionGetResponse, types_gen_d_BillingSubscriptionGetResponses as BillingSubscriptionGetResponses, types_gen_d_BillingSubscriptionPreviewUpdateData as BillingSubscriptionPreviewUpdateData, types_gen_d_BillingSubscriptionPreviewUpdateError as BillingSubscriptionPreviewUpdateError, types_gen_d_BillingSubscriptionPreviewUpdateErrors as BillingSubscriptionPreviewUpdateErrors, types_gen_d_BillingSubscriptionPreviewUpdateResponse as BillingSubscriptionPreviewUpdateResponse, types_gen_d_BillingSubscriptionPreviewUpdateResponses as BillingSubscriptionPreviewUpdateResponses, types_gen_d_BillingSubscriptionUpdateData as BillingSubscriptionUpdateData, types_gen_d_BillingSubscriptionUpdateError as BillingSubscriptionUpdateError, types_gen_d_BillingSubscriptionUpdateErrors as BillingSubscriptionUpdateErrors, types_gen_d_BillingSubscriptionUpdateResponse as BillingSubscriptionUpdateResponse, types_gen_d_BillingSubscriptionUpdateResponses as BillingSubscriptionUpdateResponses, types_gen_d_BlockParams as BlockParams, types_gen_d_BlockResponse200 as BlockResponse200, types_gen_d_CheckoutBody as CheckoutBody, types_gen_d_CheckoutResponse200 as CheckoutResponse200, types_gen_d_ClientOptions as ClientOptions, types_gen_d_ContactIdBody as ContactIdBody, types_gen_d_ContactIdParams as ContactIdParams, types_gen_d_ContactIdResponse200 as ContactIdResponse200, types_gen_d_ContactListIdBody as ContactListIdBody, types_gen_d_ContactListIdParams as ContactListIdParams, types_gen_d_ContactListIdResponse200 as ContactListIdResponse200, types_gen_d_ContactListsBody as ContactListsBody, types_gen_d_ContactListsCreateData as ContactListsCreateData, types_gen_d_ContactListsCreateError as ContactListsCreateError, types_gen_d_ContactListsCreateErrors as ContactListsCreateErrors, types_gen_d_ContactListsCreateResponse as ContactListsCreateResponse, types_gen_d_ContactListsCreateResponses as ContactListsCreateResponses, types_gen_d_ContactListsRemoveData as ContactListsRemoveData, types_gen_d_ContactListsRemoveError as ContactListsRemoveError, types_gen_d_ContactListsRemoveErrors as ContactListsRemoveErrors, types_gen_d_ContactListsRemoveResponse as ContactListsRemoveResponse, types_gen_d_ContactListsRemoveResponses as ContactListsRemoveResponses, types_gen_d_ContactListsResponse201 as ContactListsResponse201, types_gen_d_ContactListsRetrieveData as ContactListsRetrieveData, types_gen_d_ContactListsRetrieveError as ContactListsRetrieveError, types_gen_d_ContactListsRetrieveErrors as ContactListsRetrieveErrors, types_gen_d_ContactListsRetrieveResponse as ContactListsRetrieveResponse, types_gen_d_ContactListsRetrieveResponses as ContactListsRetrieveResponses, types_gen_d_ContactListsUpdateData as ContactListsUpdateData, types_gen_d_ContactListsUpdateError as ContactListsUpdateError, types_gen_d_ContactListsUpdateErrors as ContactListsUpdateErrors, types_gen_d_ContactListsUpdateResponse as ContactListsUpdateResponse, types_gen_d_ContactListsUpdateResponses as ContactListsUpdateResponses, types_gen_d_ContactsBatchCreate2Data as ContactsBatchCreate2Data, types_gen_d_ContactsBatchCreate2Error as ContactsBatchCreate2Error, types_gen_d_ContactsBatchCreate2Errors as ContactsBatchCreate2Errors, types_gen_d_ContactsBatchCreate2Responses as ContactsBatchCreate2Responses, types_gen_d_ContactsBatchCreateData as ContactsBatchCreateData, types_gen_d_ContactsBatchCreateError as ContactsBatchCreateError, types_gen_d_ContactsBatchCreateErrors as ContactsBatchCreateErrors, types_gen_d_ContactsBatchCreateResponse as ContactsBatchCreateResponse, types_gen_d_ContactsBatchCreateResponses as ContactsBatchCreateResponses, types_gen_d_ContactsBlockData as ContactsBlockData, types_gen_d_ContactsBlockError as ContactsBlockError, types_gen_d_ContactsBlockErrors as ContactsBlockErrors, types_gen_d_ContactsBlockResponse as ContactsBlockResponse, types_gen_d_ContactsBlockResponses as ContactsBlockResponses, types_gen_d_ContactsBody as ContactsBody, types_gen_d_ContactsCreateData as ContactsCreateData, types_gen_d_ContactsCreateError as ContactsCreateError, types_gen_d_ContactsCreateErrors as ContactsCreateErrors, types_gen_d_ContactsCreateResponse as ContactsCreateResponse, types_gen_d_ContactsCreateResponses as ContactsCreateResponses, types_gen_d_ContactsDelAllData as ContactsDelAllData, types_gen_d_ContactsDelAllError as ContactsDelAllError, types_gen_d_ContactsDelAllErrors as ContactsDelAllErrors, types_gen_d_ContactsDelAllResponse as ContactsDelAllResponse, types_gen_d_ContactsDelAllResponses as ContactsDelAllResponses, types_gen_d_ContactsDelData as ContactsDelData, types_gen_d_ContactsDelError as ContactsDelError, types_gen_d_ContactsDelErrors as ContactsDelErrors, types_gen_d_ContactsDelResponse as ContactsDelResponse, types_gen_d_ContactsDelResponses as ContactsDelResponses, types_gen_d_ContactsListData as ContactsListData, types_gen_d_ContactsListError as ContactsListError, types_gen_d_ContactsListErrors as ContactsListErrors, types_gen_d_ContactsListResponse as ContactsListResponse, types_gen_d_ContactsListResponses as ContactsListResponses, types_gen_d_ContactsQuery as ContactsQuery, types_gen_d_ContactsResponse200 as ContactsResponse200, types_gen_d_ContactsResponse201 as ContactsResponse201, types_gen_d_ContactsResubscribeData as ContactsResubscribeData, types_gen_d_ContactsResubscribeError as ContactsResubscribeError, types_gen_d_ContactsResubscribeErrors as ContactsResubscribeErrors, types_gen_d_ContactsResubscribeResponse as ContactsResubscribeResponse, types_gen_d_ContactsResubscribeResponses as ContactsResubscribeResponses, types_gen_d_ContactsRetrieveData as ContactsRetrieveData, types_gen_d_ContactsRetrieveError as ContactsRetrieveError, types_gen_d_ContactsRetrieveErrors as ContactsRetrieveErrors, types_gen_d_ContactsRetrieveResponse as ContactsRetrieveResponse, types_gen_d_ContactsRetrieveResponses as ContactsRetrieveResponses, types_gen_d_ContactsUnblockData as ContactsUnblockData, types_gen_d_ContactsUnblockError as ContactsUnblockError, types_gen_d_ContactsUnblockErrors as ContactsUnblockErrors, types_gen_d_ContactsUnblockResponse as ContactsUnblockResponse, types_gen_d_ContactsUnblockResponses as ContactsUnblockResponses, types_gen_d_ContactsUpdateData as ContactsUpdateData, types_gen_d_ContactsUpdateError as ContactsUpdateError, types_gen_d_ContactsUpdateErrors as ContactsUpdateErrors, types_gen_d_ContactsUpdateResponse as ContactsUpdateResponse, types_gen_d_ContactsUpdateResponses as ContactsUpdateResponses, types_gen_d_CurrentOrganizationBody as CurrentOrganizationBody, types_gen_d_CurrentOrganizationParams as CurrentOrganizationParams, types_gen_d_CurrentOrganizationResponse200 as CurrentOrganizationResponse200, types_gen_d_ErrorResponse as ErrorResponse, types_gen_d_GetOpenapiJsonData as GetOpenapiJsonData, types_gen_d_GetOpenapiJsonError as GetOpenapiJsonError, types_gen_d_GetOpenapiJsonErrors as GetOpenapiJsonErrors, types_gen_d_GetOpenapiJsonResponses as GetOpenapiJsonResponses, types_gen_d_MemberIdBody as MemberIdBody, types_gen_d_MemberIdParams as MemberIdParams, types_gen_d_MemberIdResponse200 as MemberIdResponse200, types_gen_d_MembersBody as MembersBody, types_gen_d_MembersParams as MembersParams, types_gen_d_MembersQuery as MembersQuery, types_gen_d_MembersResponse200 as MembersResponse200, types_gen_d_MembersResponse201 as MembersResponse201, types_gen_d_OpenapiJsonResponse200 as OpenapiJsonResponse200, types_gen_d_OrganizationIdBody as OrganizationIdBody, types_gen_d_OrganizationIdParams as OrganizationIdParams, types_gen_d_OrganizationIdResponse200 as OrganizationIdResponse200, types_gen_d_OrganizationMembersCreateData as OrganizationMembersCreateData, types_gen_d_OrganizationMembersCreateError as OrganizationMembersCreateError, types_gen_d_OrganizationMembersCreateErrors as OrganizationMembersCreateErrors, types_gen_d_OrganizationMembersCreateResponse as OrganizationMembersCreateResponse, types_gen_d_OrganizationMembersCreateResponses as OrganizationMembersCreateResponses, types_gen_d_OrganizationMembersDeleteData as OrganizationMembersDeleteData, types_gen_d_OrganizationMembersDeleteError as OrganizationMembersDeleteError, types_gen_d_OrganizationMembersDeleteErrors as OrganizationMembersDeleteErrors, types_gen_d_OrganizationMembersDeleteResponse as OrganizationMembersDeleteResponse, types_gen_d_OrganizationMembersDeleteResponses as OrganizationMembersDeleteResponses, types_gen_d_OrganizationMembersListData as OrganizationMembersListData, types_gen_d_OrganizationMembersListError as OrganizationMembersListError, types_gen_d_OrganizationMembersListErrors as OrganizationMembersListErrors, types_gen_d_OrganizationMembersListResponse as OrganizationMembersListResponse, types_gen_d_OrganizationMembersListResponses as OrganizationMembersListResponses, types_gen_d_OrganizationMembersUpdateData as OrganizationMembersUpdateData, types_gen_d_OrganizationMembersUpdateError as OrganizationMembersUpdateError, types_gen_d_OrganizationMembersUpdateErrors as OrganizationMembersUpdateErrors, types_gen_d_OrganizationMembersUpdateResponse as OrganizationMembersUpdateResponse, types_gen_d_OrganizationMembersUpdateResponses as OrganizationMembersUpdateResponses, types_gen_d_OrganizationsBody as OrganizationsBody, types_gen_d_OrganizationsCreateData as OrganizationsCreateData, types_gen_d_OrganizationsCreateError as OrganizationsCreateError, types_gen_d_OrganizationsCreateErrors as OrganizationsCreateErrors, types_gen_d_OrganizationsCreateResponse as OrganizationsCreateResponse, types_gen_d_OrganizationsCreateResponses as OrganizationsCreateResponses, types_gen_d_OrganizationsDeleteData as OrganizationsDeleteData, types_gen_d_OrganizationsDeleteError as OrganizationsDeleteError, types_gen_d_OrganizationsDeleteErrors as OrganizationsDeleteErrors, types_gen_d_OrganizationsDeleteResponse as OrganizationsDeleteResponse, types_gen_d_OrganizationsDeleteResponses as OrganizationsDeleteResponses, types_gen_d_OrganizationsListData as OrganizationsListData, types_gen_d_OrganizationsListError as OrganizationsListError, types_gen_d_OrganizationsListErrors as OrganizationsListErrors, types_gen_d_OrganizationsListResponse as OrganizationsListResponse, types_gen_d_OrganizationsListResponses as OrganizationsListResponses, types_gen_d_OrganizationsResponse200 as OrganizationsResponse200, types_gen_d_OrganizationsResponse201 as OrganizationsResponse201, types_gen_d_OrganizationsRetrieveData as OrganizationsRetrieveData, types_gen_d_OrganizationsRetrieveError as OrganizationsRetrieveError, types_gen_d_OrganizationsRetrieveErrors as OrganizationsRetrieveErrors, types_gen_d_OrganizationsRetrieveResponse as OrganizationsRetrieveResponse, types_gen_d_OrganizationsRetrieveResponses as OrganizationsRetrieveResponses, types_gen_d_OrganizationsUpdateData as OrganizationsUpdateData, types_gen_d_OrganizationsUpdateError as OrganizationsUpdateError, types_gen_d_OrganizationsUpdateErrors as OrganizationsUpdateErrors, types_gen_d_OrganizationsUpdateResponse as OrganizationsUpdateResponse, types_gen_d_OrganizationsUpdateResponses as OrganizationsUpdateResponses, types_gen_d_PreviewBody as PreviewBody, types_gen_d_PreviewParams as PreviewParams, types_gen_d_PreviewResponse200 as PreviewResponse200, types_gen_d_PricesQuery as PricesQuery, types_gen_d_PricesResponse200 as PricesResponse200, types_gen_d_ResubscribeParams as ResubscribeParams, types_gen_d_ResubscribeResponse200 as ResubscribeResponse200, types_gen_d_SubscriptionBody as SubscriptionBody, types_gen_d_SubscriptionResponse200 as SubscriptionResponse200, types_gen_d_UnblockParams as UnblockParams, types_gen_d_UnblockResponse200 as UnblockResponse200, types_gen_d_UserIdParams as UserIdParams, types_gen_d_UserIdQuery as UserIdQuery, types_gen_d_UserIdResponse200 as UserIdResponse200, types_gen_d_UsersDeleteActionData as UsersDeleteActionData, types_gen_d_UsersDeleteActionError as UsersDeleteActionError, types_gen_d_UsersDeleteActionErrors as UsersDeleteActionErrors, types_gen_d_UsersDeleteActionResponse as UsersDeleteActionResponse, types_gen_d_UsersDeleteActionResponses as UsersDeleteActionResponses, types_gen_d_UsersGetCurrentOrganizationData as UsersGetCurrentOrganizationData, types_gen_d_UsersGetCurrentOrganizationError as UsersGetCurrentOrganizationError, types_gen_d_UsersGetCurrentOrganizationErrors as UsersGetCurrentOrganizationErrors, types_gen_d_UsersGetCurrentOrganizationResponse as UsersGetCurrentOrganizationResponse, types_gen_d_UsersGetCurrentOrganizationResponses as UsersGetCurrentOrganizationResponses, types_gen_d_UsersRetrieveData as UsersRetrieveData, types_gen_d_UsersRetrieveError as UsersRetrieveError, types_gen_d_UsersRetrieveErrors as UsersRetrieveErrors, types_gen_d_UsersRetrieveResponse as UsersRetrieveResponse, types_gen_d_UsersRetrieveResponses as UsersRetrieveResponses, types_gen_d_UsersSetCurrentOrganizationData as UsersSetCurrentOrganizationData, types_gen_d_UsersSetCurrentOrganizationError as UsersSetCurrentOrganizationError, types_gen_d_UsersSetCurrentOrganizationErrors as UsersSetCurrentOrganizationErrors, types_gen_d_UsersSetCurrentOrganizationResponse as UsersSetCurrentOrganizationResponse, types_gen_d_UsersSetCurrentOrganizationResponses as UsersSetCurrentOrganizationResponses, types_gen_d_UsersWatchMailboxData as UsersWatchMailboxData, types_gen_d_UsersWatchMailboxError as UsersWatchMailboxError, types_gen_d_UsersWatchMailboxErrors as UsersWatchMailboxErrors, types_gen_d_UsersWatchMailboxResponse as UsersWatchMailboxResponse, types_gen_d_UsersWatchMailboxResponses as UsersWatchMailboxResponses, types_gen_d_WatchMailboxBody as WatchMailboxBody, types_gen_d_WatchMailboxParams as WatchMailboxParams };
2382
2562
  }
2383
2563
 
2384
2564
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
@@ -2401,6 +2581,9 @@ declare class HeyApiClient {
2401
2581
  });
2402
2582
  }
2403
2583
  declare class Users extends HeyApiClient {
2584
+ retrieve<ThrowOnError extends boolean = true>(user_id: string, parameters?: {
2585
+ expand?: Array<'subscription'>;
2586
+ }, options?: Options<never, ThrowOnError>): RequestResult<UsersRetrieveResponses, UsersRetrieveErrors, ThrowOnError, "data">;
2404
2587
  getCurrentOrganization<ThrowOnError extends boolean = true>(user_id: string, options?: Options<never, ThrowOnError>): RequestResult<UsersGetCurrentOrganizationResponses, UsersGetCurrentOrganizationErrors, ThrowOnError, "data">;
2405
2588
  setCurrentOrganization<ThrowOnError extends boolean = true>(user_id: string, parameters?: {
2406
2589
  organization_id?: string | null;
@@ -2413,8 +2596,8 @@ declare class Users extends HeyApiClient {
2413
2596
  }
2414
2597
  declare class Organizations extends HeyApiClient {
2415
2598
  list<ThrowOnError extends boolean = true>(options?: Options<never, ThrowOnError>): RequestResult<OrganizationsListResponses, OrganizationsListErrors, ThrowOnError, "data">;
2416
- create<ThrowOnError extends boolean = true>(parameters?: {
2417
- name?: string;
2599
+ create<ThrowOnError extends boolean = true>(parameters: {
2600
+ name: string;
2418
2601
  }, options?: Options<never, ThrowOnError>): RequestResult<OrganizationsCreateResponses, OrganizationsCreateErrors, ThrowOnError, "data">;
2419
2602
  delete<ThrowOnError extends boolean = true>(organization_id: string, options?: Options<never, ThrowOnError>): RequestResult<OrganizationsDeleteResponses, OrganizationsDeleteErrors, ThrowOnError, "data">;
2420
2603
  retrieve<ThrowOnError extends boolean = true>(organization_id: string, options?: Options<never, ThrowOnError>): RequestResult<OrganizationsRetrieveResponses, OrganizationsRetrieveErrors, ThrowOnError, "data">;
@@ -2422,10 +2605,26 @@ declare class Organizations extends HeyApiClient {
2422
2605
  name?: string;
2423
2606
  }, options?: Options<never, ThrowOnError>): RequestResult<OrganizationsUpdateResponses, OrganizationsUpdateErrors, ThrowOnError, "data">;
2424
2607
  }
2608
+ declare class BillingSubscription extends HeyApiClient {
2609
+ get<ThrowOnError extends boolean = true>(options?: Options<never, ThrowOnError>): RequestResult<BillingSubscriptionGetResponses, BillingSubscriptionGetErrors, ThrowOnError, "data">;
2610
+ update<ThrowOnError extends boolean = true>(parameters: {
2611
+ plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
2612
+ billing_period: 'month' | 'year';
2613
+ }, options?: Options<never, ThrowOnError>): RequestResult<BillingSubscriptionUpdateResponses, BillingSubscriptionUpdateErrors, ThrowOnError, "data">;
2614
+ previewUpdate<ThrowOnError extends boolean = true>(parameters: {
2615
+ plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
2616
+ billing_period: 'month' | 'year';
2617
+ }, options?: Options<never, ThrowOnError>): RequestResult<BillingSubscriptionPreviewUpdateResponses, BillingSubscriptionPreviewUpdateErrors, ThrowOnError, "data">;
2618
+ checkout<ThrowOnError extends boolean = true>(parameters: {
2619
+ price_id: string;
2620
+ coupon?: string;
2621
+ currency?: 'usd' | 'eur' | 'inr';
2622
+ }, options?: Options<never, ThrowOnError>): RequestResult<BillingSubscriptionCheckoutResponses, BillingSubscriptionCheckoutErrors, ThrowOnError, "data">;
2623
+ }
2425
2624
  declare class ContactLists extends HeyApiClient {
2426
- create<ThrowOnError extends boolean = true>(parameters?: {
2427
- owner?: string;
2428
- name?: string;
2625
+ create<ThrowOnError extends boolean = true>(parameters: {
2626
+ owner: string;
2627
+ name: string;
2429
2628
  metadata?: {
2430
2629
  [key: string]: string;
2431
2630
  };
@@ -2434,8 +2633,8 @@ declare class ContactLists extends HeyApiClient {
2434
2633
  remove_contacts?: boolean;
2435
2634
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactListsRemoveResponses, ContactListsRemoveErrors, ThrowOnError, "data">;
2436
2635
  retrieve<ThrowOnError extends boolean = true>(contact_list_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactListsRetrieveResponses, ContactListsRetrieveErrors, ThrowOnError, "data">;
2437
- update<ThrowOnError extends boolean = true>(contact_list_id: string, parameters?: {
2438
- name?: string;
2636
+ update<ThrowOnError extends boolean = true>(contact_list_id: string, parameters: {
2637
+ name: string;
2439
2638
  metadata?: {
2440
2639
  [key: string]: string;
2441
2640
  };
@@ -2443,7 +2642,6 @@ declare class ContactLists extends HeyApiClient {
2443
2642
  }
2444
2643
  declare class Contacts extends HeyApiClient {
2445
2644
  delAll<ThrowOnError extends boolean = true>(parameters?: {
2446
- owner?: string;
2447
2645
  contact_list?: string;
2448
2646
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactsDelAllResponses, ContactsDelAllErrors, ThrowOnError, "data">;
2449
2647
  list<ThrowOnError extends boolean = true>(parameters: {
@@ -2453,9 +2651,9 @@ declare class Contacts extends HeyApiClient {
2453
2651
  unsubscribed?: boolean | null;
2454
2652
  contact_list?: string;
2455
2653
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactsListResponses, ContactsListErrors, ThrowOnError, "data">;
2456
- create<ThrowOnError extends boolean = true>(parameters?: {
2457
- owner?: string;
2458
- email?: string;
2654
+ create<ThrowOnError extends boolean = true>(parameters: {
2655
+ owner: string;
2656
+ email: string;
2459
2657
  blocked?: boolean;
2460
2658
  unsubscribed?: boolean;
2461
2659
  contact_lists?: Array<string>;
@@ -2467,8 +2665,8 @@ declare class Contacts extends HeyApiClient {
2467
2665
  [key: string]: string;
2468
2666
  };
2469
2667
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactsCreateResponses, ContactsCreateErrors, ThrowOnError, "data">;
2470
- batchCreate<ThrowOnError extends boolean = true>(parameters?: {
2471
- contacts?: Array<{
2668
+ batchCreate<ThrowOnError extends boolean = true>(parameters: {
2669
+ contacts: Array<{
2472
2670
  owner: string;
2473
2671
  email: string;
2474
2672
  blocked?: boolean;
@@ -2483,8 +2681,8 @@ declare class Contacts extends HeyApiClient {
2483
2681
  };
2484
2682
  }>;
2485
2683
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactsBatchCreateResponses, ContactsBatchCreateErrors, ThrowOnError, "data">;
2486
- batchCreate2<ThrowOnError extends boolean = true>(parameters?: {
2487
- body?: unknown;
2684
+ batchCreate2<ThrowOnError extends boolean = true>(parameters: {
2685
+ body: unknown;
2488
2686
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactsBatchCreate2Responses, ContactsBatchCreate2Errors, ThrowOnError, "data">;
2489
2687
  del<ThrowOnError extends boolean = true>(contact_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactsDelResponses, ContactsDelErrors, ThrowOnError, "data">;
2490
2688
  retrieve<ThrowOnError extends boolean = true>(contact_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactsRetrieveResponses, ContactsRetrieveErrors, ThrowOnError, "data">;
@@ -2506,25 +2704,14 @@ declare class Contacts extends HeyApiClient {
2506
2704
  }
2507
2705
  declare class BillingAddons extends HeyApiClient {
2508
2706
  getAddons<ThrowOnError extends boolean = true>(options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsGetAddonsResponses, BillingAddonsGetAddonsErrors, ThrowOnError, "data">;
2509
- previewUpdate<ThrowOnError extends boolean = true>(addon: 'senders' | 'email_warmups', parameters?: {
2510
- quantity?: number;
2707
+ previewUpdate<ThrowOnError extends boolean = true>(addon: 'senders' | 'email_warmups', parameters: {
2708
+ quantity: number;
2511
2709
  }, options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsPreviewUpdateResponses, BillingAddonsPreviewUpdateErrors, ThrowOnError, "data">;
2512
2710
  getAddonUsages<ThrowOnError extends boolean = true>(addon: 'senders' | 'email_warmups', options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsGetAddonUsagesResponses, BillingAddonsGetAddonUsagesErrors, ThrowOnError, "data">;
2513
- update<ThrowOnError extends boolean = true>(addon: 'senders' | 'email_warmups', parameters?: {
2514
- quantity?: number;
2711
+ update<ThrowOnError extends boolean = true>(addon: 'senders' | 'email_warmups', parameters: {
2712
+ quantity: number;
2515
2713
  }, options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsUpdateResponses, BillingAddonsUpdateErrors, ThrowOnError, "data">;
2516
2714
  }
2517
- declare class BillingSubscription extends HeyApiClient {
2518
- get<ThrowOnError extends boolean = true>(options?: Options<never, ThrowOnError>): RequestResult<BillingSubscriptionGetResponses, BillingSubscriptionGetErrors, ThrowOnError, "data">;
2519
- update<ThrowOnError extends boolean = true>(parameters?: {
2520
- plan?: 'free' | 'starter' | 'pro' | 'premium' | 'business';
2521
- billing_period?: 'month' | 'year';
2522
- }, options?: Options<never, ThrowOnError>): RequestResult<BillingSubscriptionUpdateResponses, BillingSubscriptionUpdateErrors, ThrowOnError, "data">;
2523
- previewUpdate<ThrowOnError extends boolean = true>(parameters?: {
2524
- plan?: 'free' | 'starter' | 'pro' | 'premium' | 'business';
2525
- billing_period?: 'month' | 'year';
2526
- }, options?: Options<never, ThrowOnError>): RequestResult<BillingSubscriptionPreviewUpdateResponses, BillingSubscriptionPreviewUpdateErrors, ThrowOnError, "data">;
2527
- }
2528
2715
  declare class Billing extends HeyApiClient {
2529
2716
  getPrices<ThrowOnError extends boolean = true>(parameters: {
2530
2717
  currency: string;