mailmeteor 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/index.cjs +431 -137
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.ts +1637 -481
  4. package/dist/index.mjs +431 -137
  5. package/dist/index.mjs.map +1 -1
  6. package/dist/types/generated-sdk/client/client.gen.d.ts.map +1 -1
  7. package/dist/types/generated-sdk/client/types.gen.d.ts.map +1 -1
  8. package/dist/types/generated-sdk/client/utils.gen.d.ts.map +1 -1
  9. package/dist/types/generated-sdk/core/auth.gen.d.ts.map +1 -1
  10. package/dist/types/generated-sdk/core/bodySerializer.gen.d.ts.map +1 -1
  11. package/dist/types/generated-sdk/core/params.gen.d.ts.map +1 -1
  12. package/dist/types/generated-sdk/core/pathSerializer.gen.d.ts.map +1 -1
  13. package/dist/types/generated-sdk/core/queryKeySerializer.gen.d.ts.map +1 -1
  14. package/dist/types/generated-sdk/core/serverSentEvents.gen.d.ts.map +1 -1
  15. package/dist/types/generated-sdk/core/types.gen.d.ts.map +1 -1
  16. package/dist/types/generated-sdk/core/utils.gen.d.ts.map +1 -1
  17. package/dist/types/generated-sdk/index.d.ts +2 -2
  18. package/dist/types/generated-sdk/index.d.ts.map +1 -1
  19. package/dist/types/generated-sdk/sdk.gen.d.ts +189 -71
  20. package/dist/types/generated-sdk/sdk.gen.d.ts.map +1 -1
  21. package/dist/types/generated-sdk/types.gen.d.ts +1393 -467
  22. package/dist/types/generated-sdk/types.gen.d.ts.map +1 -1
  23. package/dist/types/index.d.ts +5 -1
  24. package/dist/types/index.d.ts.map +1 -1
  25. package/package.json +1 -1
  26. package/dist/generated-sdk/client/client.gen.d.ts +0 -3
  27. package/dist/generated-sdk/client/client.gen.d.ts.map +0 -1
  28. package/dist/generated-sdk/client/index.d.ts +0 -9
  29. package/dist/generated-sdk/client/index.d.ts.map +0 -1
  30. package/dist/generated-sdk/client/types.gen.d.ts +0 -118
  31. package/dist/generated-sdk/client/types.gen.d.ts.map +0 -1
  32. package/dist/generated-sdk/client/utils.gen.d.ts +0 -34
  33. package/dist/generated-sdk/client/utils.gen.d.ts.map +0 -1
  34. package/dist/generated-sdk/client.gen.d.ts +0 -13
  35. package/dist/generated-sdk/client.gen.d.ts.map +0 -1
  36. package/dist/generated-sdk/core/auth.gen.d.ts +0 -19
  37. package/dist/generated-sdk/core/auth.gen.d.ts.map +0 -1
  38. package/dist/generated-sdk/core/bodySerializer.gen.d.ts +0 -26
  39. package/dist/generated-sdk/core/bodySerializer.gen.d.ts.map +0 -1
  40. package/dist/generated-sdk/core/params.gen.d.ts +0 -44
  41. package/dist/generated-sdk/core/params.gen.d.ts.map +0 -1
  42. package/dist/generated-sdk/core/pathSerializer.gen.d.ts +0 -34
  43. package/dist/generated-sdk/core/pathSerializer.gen.d.ts.map +0 -1
  44. package/dist/generated-sdk/core/queryKeySerializer.gen.d.ts +0 -19
  45. package/dist/generated-sdk/core/queryKeySerializer.gen.d.ts.map +0 -1
  46. package/dist/generated-sdk/core/serverSentEvents.gen.d.ts +0 -72
  47. package/dist/generated-sdk/core/serverSentEvents.gen.d.ts.map +0 -1
  48. package/dist/generated-sdk/core/types.gen.d.ts +0 -79
  49. package/dist/generated-sdk/core/types.gen.d.ts.map +0 -1
  50. package/dist/generated-sdk/core/utils.gen.d.ts +0 -20
  51. package/dist/generated-sdk/core/utils.gen.d.ts.map +0 -1
  52. package/dist/generated-sdk/index.d.ts +0 -4
  53. package/dist/generated-sdk/index.d.ts.map +0 -1
  54. package/dist/generated-sdk/sdk.gen.d.ts +0 -112
  55. package/dist/generated-sdk/sdk.gen.d.ts.map +0 -1
  56. package/dist/generated-sdk/types.gen.d.ts +0 -426
  57. package/dist/generated-sdk/types.gen.d.ts.map +0 -1
  58. package/dist/index.d.ts.map +0 -1
package/dist/index.d.ts CHANGED
@@ -321,6 +321,389 @@ 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 CurrentOrganizationParams = {
325
+ user_id: string;
326
+ };
327
+ type CurrentOrganizationResponse200 = {
328
+ current_organization_id: string | null;
329
+ };
330
+ type CurrentOrganizationBody = {
331
+ organization_id?: string | null;
332
+ };
333
+ type WatchMailboxBody = {
334
+ provider?: 'gmail' | 'outlook';
335
+ force?: boolean;
336
+ };
337
+ type WatchMailboxParams = {
338
+ user_id: string;
339
+ };
340
+ type ActionIdParams = {
341
+ user_id: string;
342
+ action_id: string;
343
+ };
344
+ type MembersQuery = {
345
+ limit?: number;
346
+ starting_after?: string;
347
+ };
348
+ type MembersParams = {
349
+ organization_id: string;
350
+ };
351
+ type MembersResponse200 = Array<{
352
+ email: string;
353
+ name?: string;
354
+ 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';
367
+ }>;
368
+ type MembersBody = {
369
+ email: string;
370
+ role: 'admin' | 'member';
371
+ };
372
+ type MembersResponse201 = {
373
+ email: string;
374
+ name?: string;
375
+ 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';
388
+ };
389
+ type MemberIdBody = {
390
+ role: 'admin' | 'member';
391
+ };
392
+ type MemberIdParams = {
393
+ organization_id: string;
394
+ member_id: string;
395
+ };
396
+ type MemberIdResponse200 = {
397
+ email: string;
398
+ name?: string;
399
+ 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';
412
+ };
413
+ type OrganizationsResponse200 = Array<{
414
+ name: string;
415
+ owner: string;
416
+ /**
417
+ * Creation date
418
+ */
419
+ created_at: string;
420
+ /**
421
+ * Last Update date
422
+ */
423
+ updated_at?: string;
424
+ id: string;
425
+ object: 'organization';
426
+ }>;
427
+ type OrganizationsBody = {
428
+ name: string;
429
+ };
430
+ type OrganizationsResponse201 = {
431
+ name: string;
432
+ owner: string;
433
+ /**
434
+ * Creation date
435
+ */
436
+ created_at: string;
437
+ /**
438
+ * Last Update date
439
+ */
440
+ updated_at?: string;
441
+ id: string;
442
+ object: 'organization';
443
+ };
444
+ type OrganizationIdParams = {
445
+ organization_id: string;
446
+ };
447
+ type OrganizationIdResponse200 = {
448
+ name: string;
449
+ owner: string;
450
+ /**
451
+ * Creation date
452
+ */
453
+ created_at: string;
454
+ /**
455
+ * Last Update date
456
+ */
457
+ updated_at?: string;
458
+ id: string;
459
+ object: 'organization';
460
+ };
461
+ type OrganizationIdBody = {
462
+ name?: string;
463
+ };
464
+ type ContactListsBody = {
465
+ owner: string;
466
+ name: string;
467
+ metadata?: {
468
+ [key: string]: string;
469
+ };
470
+ };
471
+ type ContactListsResponse201 = {
472
+ owner: string;
473
+ name: string;
474
+ created_at: number;
475
+ updated_at?: number;
476
+ deleted?: boolean;
477
+ deleted_at?: number;
478
+ metadata?: {
479
+ [key: string]: string;
480
+ };
481
+ id: string;
482
+ object: 'contact_list';
483
+ };
484
+ type ContactListIdParams = {
485
+ contact_list_id: string;
486
+ };
487
+ type ContactListIdResponse200 = {
488
+ owner: string;
489
+ name: string;
490
+ created_at: number;
491
+ updated_at?: number;
492
+ deleted?: boolean;
493
+ deleted_at?: number;
494
+ metadata?: {
495
+ [key: string]: string;
496
+ };
497
+ id: string;
498
+ object: 'contact_list';
499
+ };
500
+ type ContactListIdBody = {
501
+ remove_contacts?: boolean;
502
+ };
503
+ type ContactsBody = {
504
+ owner: string;
505
+ contact_list?: string;
506
+ };
507
+ type ContactsResponse201 = {
508
+ owner: string;
509
+ email: string;
510
+ domain: string;
511
+ created_at: number;
512
+ updated_at?: number;
513
+ deleted?: boolean;
514
+ deleted_at?: number;
515
+ blocked?: boolean;
516
+ blocked_at?: number;
517
+ unsubscribed?: boolean;
518
+ unsubscribed_at?: number;
519
+ contact_lists?: Array<string>;
520
+ properties?: {
521
+ [key: string]: string;
522
+ };
523
+ notes?: string;
524
+ metadata?: {
525
+ [key: string]: string;
526
+ };
527
+ id: string;
528
+ object: 'contact';
529
+ };
530
+ type BatchBody = {
531
+ contacts: Array<{
532
+ owner: string;
533
+ email: string;
534
+ blocked?: boolean;
535
+ unsubscribed?: boolean;
536
+ contact_lists?: Array<string>;
537
+ properties?: {
538
+ [key: string]: string;
539
+ };
540
+ notes?: string;
541
+ metadata?: {
542
+ [key: string]: string;
543
+ };
544
+ }>;
545
+ };
546
+ type BatchResponse201 = {
547
+ ok: true;
548
+ status: 'done';
549
+ message: string;
550
+ };
551
+ type BatchResponse202 = {
552
+ ok: true;
553
+ status: 'running';
554
+ message: string;
555
+ };
556
+ type BatchLegacyBody = unknown;
557
+ type BatchLegacyResponse201 = unknown;
558
+ type ContactIdParams = {
559
+ contact_id: string;
560
+ };
561
+ type ContactIdResponse200 = {
562
+ owner: string;
563
+ email: string;
564
+ domain: string;
565
+ created_at: number;
566
+ updated_at?: number;
567
+ deleted?: boolean;
568
+ deleted_at?: number;
569
+ blocked?: boolean;
570
+ blocked_at?: number;
571
+ unsubscribed?: boolean;
572
+ unsubscribed_at?: number;
573
+ contact_lists?: Array<string>;
574
+ properties?: {
575
+ [key: string]: string;
576
+ };
577
+ notes?: string;
578
+ metadata?: {
579
+ [key: string]: string;
580
+ };
581
+ id: string;
582
+ object: 'contact';
583
+ };
584
+ type ContactIdBody = {
585
+ blocked?: boolean;
586
+ unsubscribed?: boolean;
587
+ contact_lists?: Array<string>;
588
+ properties?: {
589
+ [key: string]: string;
590
+ };
591
+ notes?: string;
592
+ metadata?: {
593
+ [key: string]: string;
594
+ };
595
+ };
596
+ type BlockParams = {
597
+ contact_id: string;
598
+ };
599
+ type BlockResponse200 = {
600
+ owner: string;
601
+ email: string;
602
+ domain: string;
603
+ created_at: number;
604
+ updated_at?: number;
605
+ deleted?: boolean;
606
+ deleted_at?: number;
607
+ blocked?: boolean;
608
+ blocked_at?: number;
609
+ unsubscribed?: boolean;
610
+ unsubscribed_at?: number;
611
+ contact_lists?: Array<string>;
612
+ properties?: {
613
+ [key: string]: string;
614
+ };
615
+ notes?: string;
616
+ metadata?: {
617
+ [key: string]: string;
618
+ };
619
+ id: string;
620
+ object: 'contact';
621
+ };
622
+ type UnblockParams = {
623
+ contact_id: string;
624
+ };
625
+ type UnblockResponse200 = {
626
+ owner: string;
627
+ email: string;
628
+ domain: string;
629
+ created_at: number;
630
+ updated_at?: number;
631
+ deleted?: boolean;
632
+ deleted_at?: number;
633
+ blocked?: boolean;
634
+ blocked_at?: number;
635
+ unsubscribed?: boolean;
636
+ unsubscribed_at?: number;
637
+ contact_lists?: Array<string>;
638
+ properties?: {
639
+ [key: string]: string;
640
+ };
641
+ notes?: string;
642
+ metadata?: {
643
+ [key: string]: string;
644
+ };
645
+ id: string;
646
+ object: 'contact';
647
+ };
648
+ type ResubscribeParams = {
649
+ contact_id: string;
650
+ };
651
+ type ResubscribeResponse200 = {
652
+ owner: string;
653
+ email: string;
654
+ domain: string;
655
+ created_at: number;
656
+ updated_at?: number;
657
+ deleted?: boolean;
658
+ deleted_at?: number;
659
+ blocked?: boolean;
660
+ blocked_at?: number;
661
+ unsubscribed?: boolean;
662
+ unsubscribed_at?: number;
663
+ contact_lists?: Array<string>;
664
+ properties?: {
665
+ [key: string]: string;
666
+ };
667
+ notes?: string;
668
+ metadata?: {
669
+ [key: string]: string;
670
+ };
671
+ id: string;
672
+ object: 'contact';
673
+ };
674
+ type ContactsQuery = {
675
+ owner: string;
676
+ limit?: number;
677
+ email?: string;
678
+ unsubscribed?: boolean | null;
679
+ contact_list?: string;
680
+ };
681
+ type ContactsResponse200 = {
682
+ object: 'list';
683
+ data: Array<{
684
+ owner: string;
685
+ email: string;
686
+ domain: string;
687
+ created_at: number;
688
+ updated_at?: number;
689
+ deleted?: boolean;
690
+ deleted_at?: number;
691
+ blocked?: boolean;
692
+ blocked_at?: number;
693
+ unsubscribed?: boolean;
694
+ unsubscribed_at?: number;
695
+ contact_lists?: Array<string>;
696
+ properties?: {
697
+ [key: string]: string;
698
+ };
699
+ notes?: string;
700
+ metadata?: {
701
+ [key: string]: string;
702
+ };
703
+ id: string;
704
+ object: 'contact';
705
+ }>;
706
+ };
324
707
  type AddonsResponse200 = {
325
708
  senders?: {
326
709
  included_per_seat: number;
@@ -419,778 +802,1321 @@ type PricesResponse200 = {
419
802
  year: number;
420
803
  };
421
804
  };
422
- type CurrentResponse200 = {
423
- current_organization_id: string | null;
424
- };
425
- type CurrentBody = {
426
- organization_id?: string | null;
805
+ type OpenapiJsonResponse200 = unknown;
806
+ type UsersGetCurrentOrganizationData = {
807
+ body?: never;
808
+ path: {
809
+ userId: string;
810
+ };
811
+ query?: never;
812
+ url: '/users/{userId}/current_organization';
427
813
  };
428
- type OrganizationsResponse200 = Array<{
429
- name: string;
430
- owner: string;
814
+ type UsersGetCurrentOrganizationErrors = {
431
815
  /**
432
- * Creation date
816
+ * Error response
433
817
  */
434
- created_at: string;
818
+ default: ErrorResponse;
819
+ };
820
+ type UsersGetCurrentOrganizationError = UsersGetCurrentOrganizationErrors[keyof UsersGetCurrentOrganizationErrors];
821
+ type UsersGetCurrentOrganizationResponses = {
435
822
  /**
436
- * Last Update date
823
+ * Response
437
824
  */
438
- updated_at?: string;
439
- id: string;
440
- object: 'organization';
441
- }>;
442
- type OrganizationsBody = {
443
- name: string;
825
+ 200: {
826
+ current_organization_id: string | null;
827
+ };
444
828
  };
445
- type OrganizationsResponse201 = {
446
- name: string;
447
- owner: string;
829
+ type UsersGetCurrentOrganizationResponse = UsersGetCurrentOrganizationResponses[keyof UsersGetCurrentOrganizationResponses];
830
+ type UsersSetCurrentOrganizationData = {
831
+ body?: {
832
+ organization_id?: string | null;
833
+ };
834
+ path: {
835
+ user_id: string;
836
+ };
837
+ query?: never;
838
+ url: '/users/{user_id}/current_organization';
839
+ };
840
+ type UsersSetCurrentOrganizationErrors = {
448
841
  /**
449
- * Creation date
842
+ * Error response
450
843
  */
451
- created_at: string;
844
+ default: ErrorResponse;
845
+ };
846
+ type UsersSetCurrentOrganizationError = UsersSetCurrentOrganizationErrors[keyof UsersSetCurrentOrganizationErrors];
847
+ type UsersSetCurrentOrganizationResponses = {
452
848
  /**
453
- * Last Update date
849
+ * Response
454
850
  */
455
- updated_at?: string;
456
- id: string;
457
- object: 'organization';
458
- };
459
- type OrganizationIdParams = {
460
- organization_id: string;
851
+ 200: {
852
+ current_organization_id: string | null;
853
+ };
461
854
  };
462
- type OrganizationIdResponse200 = {
463
- name: string;
464
- owner: string;
855
+ type UsersSetCurrentOrganizationResponse = UsersSetCurrentOrganizationResponses[keyof UsersSetCurrentOrganizationResponses];
856
+ type UsersWatchMailboxData = {
857
+ body?: {
858
+ provider?: 'gmail' | 'outlook';
859
+ force?: boolean;
860
+ };
861
+ path: {
862
+ user_id: string;
863
+ };
864
+ query?: never;
865
+ url: '/users/{user_id}/watch_mailbox';
866
+ };
867
+ type UsersWatchMailboxErrors = {
465
868
  /**
466
- * Creation date
869
+ * Error response
467
870
  */
468
- created_at: string;
871
+ default: ErrorResponse;
872
+ };
873
+ type UsersWatchMailboxError = UsersWatchMailboxErrors[keyof UsersWatchMailboxErrors];
874
+ type UsersWatchMailboxResponses = {
469
875
  /**
470
- * Last Update date
876
+ * Response
471
877
  */
472
- updated_at?: string;
473
- id: string;
474
- object: 'organization';
878
+ 204: void;
475
879
  };
476
- type OrganizationIdBody = {
477
- name?: string;
880
+ type UsersWatchMailboxResponse = UsersWatchMailboxResponses[keyof UsersWatchMailboxResponses];
881
+ type UsersDeleteActionData = {
882
+ body?: never;
883
+ path: {
884
+ user_id: string;
885
+ action_id: string;
886
+ };
887
+ query?: never;
888
+ url: '/users/{user_id}/actions/{action_id}';
478
889
  };
479
- type MembersQuery = {
480
- limit?: number;
481
- starting_after?: string;
890
+ type UsersDeleteActionErrors = {
891
+ /**
892
+ * Error response
893
+ */
894
+ default: ErrorResponse;
482
895
  };
483
- type MembersParams = {
484
- organization_id: string;
896
+ type UsersDeleteActionError = UsersDeleteActionErrors[keyof UsersDeleteActionErrors];
897
+ type UsersDeleteActionResponses = {
898
+ /**
899
+ * Response
900
+ */
901
+ 204: void;
485
902
  };
486
- type MembersResponse200 = Array<{
487
- email: string;
488
- name?: string;
489
- profile_picture_url?: string;
490
- role: 'admin' | 'member';
903
+ type UsersDeleteActionResponse = UsersDeleteActionResponses[keyof UsersDeleteActionResponses];
904
+ type OrganizationMemberListData = {
905
+ body?: never;
906
+ path: {
907
+ organization_id: string;
908
+ };
909
+ query?: {
910
+ limit?: number;
911
+ starting_after?: string;
912
+ };
913
+ url: '/organizations/{organization_id}/members';
914
+ };
915
+ type OrganizationMemberListErrors = {
491
916
  /**
492
- * Creation date
917
+ * Error response
493
918
  */
494
- created_at: string;
919
+ default: ErrorResponse;
920
+ };
921
+ type OrganizationMemberListError = OrganizationMemberListErrors[keyof OrganizationMemberListErrors];
922
+ type OrganizationMemberListResponses = {
495
923
  /**
496
- * Last Update date
924
+ * Response
497
925
  */
498
- updated_at?: string;
499
- id: string;
500
- organization_id: string;
501
- object: 'organization_member';
502
- }>;
503
- type MembersBody = {
504
- email: string;
505
- role: 'admin' | 'member';
926
+ 200: Array<{
927
+ email: string;
928
+ name?: string;
929
+ 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';
942
+ }>;
506
943
  };
507
- type MembersResponse201 = {
508
- email: string;
509
- name?: string;
510
- profile_picture_url?: string;
511
- role: 'admin' | 'member';
944
+ type OrganizationMemberListResponse = OrganizationMemberListResponses[keyof OrganizationMemberListResponses];
945
+ type OrganizationMemberCreateData = {
946
+ body?: {
947
+ email: string;
948
+ role: 'admin' | 'member';
949
+ };
950
+ path: {
951
+ organization_id: string;
952
+ };
953
+ query?: never;
954
+ url: '/organizations/{organization_id}/members';
955
+ };
956
+ type OrganizationMemberCreateErrors = {
512
957
  /**
513
- * Creation date
958
+ * Error response
514
959
  */
515
- created_at: string;
960
+ default: ErrorResponse;
961
+ };
962
+ type OrganizationMemberCreateError = OrganizationMemberCreateErrors[keyof OrganizationMemberCreateErrors];
963
+ type OrganizationMemberCreateResponses = {
516
964
  /**
517
- * Last Update date
965
+ * Response
518
966
  */
519
- updated_at?: string;
520
- id: string;
521
- organization_id: string;
522
- object: 'organization_member';
967
+ 201: {
968
+ email: string;
969
+ name?: string;
970
+ 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';
983
+ };
523
984
  };
524
- type MemberIdBody = {
525
- role: 'admin' | 'member';
985
+ type OrganizationMemberCreateResponse = OrganizationMemberCreateResponses[keyof OrganizationMemberCreateResponses];
986
+ type OrganizationMemberDeleteData = {
987
+ body?: never;
988
+ path: {
989
+ organization_id: string;
990
+ member_id: string;
991
+ };
992
+ query?: never;
993
+ url: '/organizations/{organization_id}/members/{member_id}';
526
994
  };
527
- type MemberIdParams = {
528
- organization_id: string;
529
- member_id: string;
995
+ type OrganizationMemberDeleteErrors = {
996
+ /**
997
+ * Error response
998
+ */
999
+ default: ErrorResponse;
1000
+ };
1001
+ type OrganizationMemberDeleteError = OrganizationMemberDeleteErrors[keyof OrganizationMemberDeleteErrors];
1002
+ type OrganizationMemberDeleteResponses = {
1003
+ /**
1004
+ * Response
1005
+ */
1006
+ 204: void;
1007
+ };
1008
+ type OrganizationMemberDeleteResponse = OrganizationMemberDeleteResponses[keyof OrganizationMemberDeleteResponses];
1009
+ type OrganizationMemberUpdateData = {
1010
+ body?: {
1011
+ role: 'admin' | 'member';
1012
+ };
1013
+ path: {
1014
+ organization_id: string;
1015
+ member_id: string;
1016
+ };
1017
+ query?: never;
1018
+ url: '/organizations/{organization_id}/members/{member_id}';
1019
+ };
1020
+ type OrganizationMemberUpdateErrors = {
1021
+ /**
1022
+ * Error response
1023
+ */
1024
+ default: ErrorResponse;
1025
+ };
1026
+ type OrganizationMemberUpdateError = OrganizationMemberUpdateErrors[keyof OrganizationMemberUpdateErrors];
1027
+ type OrganizationMemberUpdateResponses = {
1028
+ /**
1029
+ * Response
1030
+ */
1031
+ 200: {
1032
+ email: string;
1033
+ name?: string;
1034
+ 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';
1047
+ };
1048
+ };
1049
+ type OrganizationMemberUpdateResponse = OrganizationMemberUpdateResponses[keyof OrganizationMemberUpdateResponses];
1050
+ type OrganizationListData = {
1051
+ body?: never;
1052
+ path?: never;
1053
+ query?: never;
1054
+ url: '/organizations';
1055
+ };
1056
+ type OrganizationListErrors = {
1057
+ /**
1058
+ * Error response
1059
+ */
1060
+ default: ErrorResponse;
1061
+ };
1062
+ type OrganizationListError = OrganizationListErrors[keyof OrganizationListErrors];
1063
+ type OrganizationListResponses = {
1064
+ /**
1065
+ * Response
1066
+ */
1067
+ 200: Array<{
1068
+ name: string;
1069
+ owner: string;
1070
+ /**
1071
+ * Creation date
1072
+ */
1073
+ created_at: string;
1074
+ /**
1075
+ * Last Update date
1076
+ */
1077
+ updated_at?: string;
1078
+ id: string;
1079
+ object: 'organization';
1080
+ }>;
1081
+ };
1082
+ type OrganizationListResponse = OrganizationListResponses[keyof OrganizationListResponses];
1083
+ type OrganizationCreateData = {
1084
+ body?: {
1085
+ name: string;
1086
+ };
1087
+ path?: never;
1088
+ query?: never;
1089
+ url: '/organizations';
1090
+ };
1091
+ type OrganizationCreateErrors = {
1092
+ /**
1093
+ * Error response
1094
+ */
1095
+ default: ErrorResponse;
1096
+ };
1097
+ type OrganizationCreateError = OrganizationCreateErrors[keyof OrganizationCreateErrors];
1098
+ type OrganizationCreateResponses = {
1099
+ /**
1100
+ * Response
1101
+ */
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 OrganizationCreateResponse = OrganizationCreateResponses[keyof OrganizationCreateResponses];
1118
+ type OrganizationDeleteData = {
1119
+ body?: never;
1120
+ path: {
1121
+ organization_id: string;
1122
+ };
1123
+ query?: never;
1124
+ url: '/organizations/{organization_id}';
1125
+ };
1126
+ type OrganizationDeleteErrors = {
1127
+ /**
1128
+ * Error response
1129
+ */
1130
+ default: ErrorResponse;
1131
+ };
1132
+ type OrganizationDeleteError = OrganizationDeleteErrors[keyof OrganizationDeleteErrors];
1133
+ type OrganizationDeleteResponses = {
1134
+ /**
1135
+ * Response
1136
+ */
1137
+ 204: void;
1138
+ };
1139
+ type OrganizationDeleteResponse = OrganizationDeleteResponses[keyof OrganizationDeleteResponses];
1140
+ type OrganizationRetrieveData = {
1141
+ body?: never;
1142
+ path: {
1143
+ organization_id: string;
1144
+ };
1145
+ query?: never;
1146
+ url: '/organizations/{organization_id}';
1147
+ };
1148
+ type OrganizationRetrieveErrors = {
1149
+ /**
1150
+ * Error response
1151
+ */
1152
+ default: ErrorResponse;
1153
+ };
1154
+ type OrganizationRetrieveError = OrganizationRetrieveErrors[keyof OrganizationRetrieveErrors];
1155
+ type OrganizationRetrieveResponses = {
1156
+ /**
1157
+ * Response
1158
+ */
1159
+ 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';
1172
+ };
1173
+ };
1174
+ type OrganizationRetrieveResponse = OrganizationRetrieveResponses[keyof OrganizationRetrieveResponses];
1175
+ type OrganizationUpdateData = {
1176
+ body?: {
1177
+ name?: string;
1178
+ };
1179
+ path: {
1180
+ organization_id: string;
1181
+ };
1182
+ query?: never;
1183
+ url: '/organizations/{organization_id}';
530
1184
  };
531
- type MemberIdResponse200 = {
532
- email: string;
533
- name?: string;
534
- profile_picture_url?: string;
535
- role: 'admin' | 'member';
1185
+ type OrganizationUpdateErrors = {
536
1186
  /**
537
- * Creation date
1187
+ * Error response
538
1188
  */
539
- created_at: string;
1189
+ default: ErrorResponse;
1190
+ };
1191
+ type OrganizationUpdateError = OrganizationUpdateErrors[keyof OrganizationUpdateErrors];
1192
+ type OrganizationUpdateResponses = {
540
1193
  /**
541
- * Last Update date
1194
+ * Response
542
1195
  */
543
- updated_at?: string;
544
- id: string;
545
- organization_id: string;
546
- object: 'organization_member';
1196
+ 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';
1209
+ };
547
1210
  };
548
- type OpenapiJsonResponse200 = unknown;
549
- type BillingAddonsGetAddonsData = {
550
- body?: never;
1211
+ type OrganizationUpdateResponse = OrganizationUpdateResponses[keyof OrganizationUpdateResponses];
1212
+ type ContactListsCreateData = {
1213
+ body?: {
1214
+ owner: string;
1215
+ name: string;
1216
+ metadata?: {
1217
+ [key: string]: string;
1218
+ };
1219
+ };
551
1220
  path?: never;
552
1221
  query?: never;
553
- url: '/billing/addons';
1222
+ url: '/contact_lists';
554
1223
  };
555
- type BillingAddonsGetAddonsErrors = {
1224
+ type ContactListsCreateErrors = {
556
1225
  /**
557
1226
  * Error response
558
1227
  */
559
1228
  default: ErrorResponse;
560
1229
  };
561
- type BillingAddonsGetAddonsError = BillingAddonsGetAddonsErrors[keyof BillingAddonsGetAddonsErrors];
562
- type BillingAddonsGetAddonsResponses = {
1230
+ type ContactListsCreateError = ContactListsCreateErrors[keyof ContactListsCreateErrors];
1231
+ type ContactListsCreateResponses = {
563
1232
  /**
564
1233
  * Response
565
1234
  */
566
- 200: {
567
- senders?: {
568
- included_per_seat: number;
569
- included_total: number;
570
- used: number;
571
- extra: {
572
- price_amount: number;
573
- currency: string;
574
- quantity_per_addon: number;
575
- interval: 'day' | 'week' | 'month' | 'year';
576
- subscribed: number;
577
- } | null;
578
- };
579
- email_warmups?: {
580
- included_per_seat: number;
581
- included_total: number;
582
- used: number;
583
- extra: {
584
- price_amount: number;
585
- currency: string;
586
- quantity_per_addon: number;
587
- interval: 'day' | 'week' | 'month' | 'year';
588
- subscribed: number;
589
- } | null;
1235
+ 201: {
1236
+ owner: string;
1237
+ name: string;
1238
+ created_at: number;
1239
+ updated_at?: number;
1240
+ deleted?: boolean;
1241
+ deleted_at?: number;
1242
+ metadata?: {
1243
+ [key: string]: string;
590
1244
  };
1245
+ id: string;
1246
+ object: 'contact_list';
591
1247
  };
592
1248
  };
593
- type BillingAddonsGetAddonsResponse = BillingAddonsGetAddonsResponses[keyof BillingAddonsGetAddonsResponses];
594
- type BillingAddonsPreviewUpdateData = {
1249
+ type ContactListsCreateResponse = ContactListsCreateResponses[keyof ContactListsCreateResponses];
1250
+ type ContactListsRemoveData = {
595
1251
  body?: {
596
- quantity: number;
1252
+ remove_contacts?: boolean;
597
1253
  };
598
1254
  path: {
599
- addon: 'senders' | 'email_warmups';
1255
+ contact_list_id: string;
600
1256
  };
601
1257
  query?: never;
602
- url: '/billing/addons/{addon}/preview';
1258
+ url: '/contact_lists/{contact_list_id}';
603
1259
  };
604
- type BillingAddonsPreviewUpdateErrors = {
1260
+ type ContactListsRemoveErrors = {
605
1261
  /**
606
1262
  * Error response
607
1263
  */
608
1264
  default: ErrorResponse;
609
1265
  };
610
- type BillingAddonsPreviewUpdateError = BillingAddonsPreviewUpdateErrors[keyof BillingAddonsPreviewUpdateErrors];
611
- type BillingAddonsPreviewUpdateResponses = {
1266
+ type ContactListsRemoveError = ContactListsRemoveErrors[keyof ContactListsRemoveErrors];
1267
+ type ContactListsRemoveResponses = {
612
1268
  /**
613
1269
  * Response
614
1270
  */
615
1271
  200: {
616
- discount_percents: Array<number>;
617
- total_excluding_tax: number;
618
- total: number;
619
- amount_due: number;
620
- added_from_balance: number;
621
- consumed_balance: number;
622
- credited_to_balance: number;
1272
+ owner: string;
1273
+ name: string;
1274
+ created_at: number;
1275
+ updated_at?: number;
1276
+ deleted?: boolean;
1277
+ deleted_at?: number;
1278
+ metadata?: {
1279
+ [key: string]: string;
1280
+ };
1281
+ id: string;
1282
+ object: 'contact_list';
623
1283
  };
624
1284
  };
625
- type BillingAddonsPreviewUpdateResponse = BillingAddonsPreviewUpdateResponses[keyof BillingAddonsPreviewUpdateResponses];
626
- type BillingAddonsGetAddonUsagesData = {
1285
+ type ContactListsRemoveResponse = ContactListsRemoveResponses[keyof ContactListsRemoveResponses];
1286
+ type ContactListsRetrieveData = {
627
1287
  body?: never;
628
1288
  path: {
629
- addon: 'senders' | 'email_warmups';
1289
+ contact_list_id: string;
630
1290
  };
631
1291
  query?: never;
632
- url: '/billing/addons/{addon}';
1292
+ url: '/contact_lists/{contact_list_id}';
633
1293
  };
634
- type BillingAddonsGetAddonUsagesErrors = {
1294
+ type ContactListsRetrieveErrors = {
635
1295
  /**
636
1296
  * Error response
637
1297
  */
638
1298
  default: ErrorResponse;
639
1299
  };
640
- type BillingAddonsGetAddonUsagesError = BillingAddonsGetAddonUsagesErrors[keyof BillingAddonsGetAddonUsagesErrors];
641
- type BillingAddonsGetAddonUsagesResponses = {
1300
+ type ContactListsRetrieveError = ContactListsRetrieveErrors[keyof ContactListsRetrieveErrors];
1301
+ type ContactListsRetrieveResponses = {
642
1302
  /**
643
1303
  * Response
644
1304
  */
645
- 200: Array<{
1305
+ 200: {
1306
+ owner: string;
1307
+ name: string;
1308
+ created_at: number;
1309
+ updated_at?: number;
1310
+ deleted?: boolean;
1311
+ deleted_at?: number;
1312
+ metadata?: {
1313
+ [key: string]: string;
1314
+ };
646
1315
  id: string;
647
- email: string;
648
- usage: number;
649
- }>;
1316
+ object: 'contact_list';
1317
+ };
650
1318
  };
651
- type BillingAddonsGetAddonUsagesResponse = BillingAddonsGetAddonUsagesResponses[keyof BillingAddonsGetAddonUsagesResponses];
652
- type BillingAddonsUpdateData = {
1319
+ type ContactListsRetrieveResponse = ContactListsRetrieveResponses[keyof ContactListsRetrieveResponses];
1320
+ type ContactListsUpdateData = {
653
1321
  body?: {
654
- quantity: number;
1322
+ name: string;
1323
+ metadata?: {
1324
+ [key: string]: string;
1325
+ };
655
1326
  };
656
1327
  path: {
657
- addon: 'senders' | 'email_warmups';
1328
+ contact_list_id: string;
658
1329
  };
659
1330
  query?: never;
660
- url: '/billing/addons/{addon}';
1331
+ url: '/contact_lists/{contact_list_id}';
661
1332
  };
662
- type BillingAddonsUpdateErrors = {
1333
+ type ContactListsUpdateErrors = {
663
1334
  /**
664
1335
  * Error response
665
1336
  */
666
1337
  default: ErrorResponse;
667
1338
  };
668
- type BillingAddonsUpdateError = BillingAddonsUpdateErrors[keyof BillingAddonsUpdateErrors];
669
- type BillingAddonsUpdateResponses = {
1339
+ type ContactListsUpdateError = ContactListsUpdateErrors[keyof ContactListsUpdateErrors];
1340
+ type ContactListsUpdateResponses = {
670
1341
  /**
671
1342
  * Response
672
1343
  */
673
1344
  200: {
674
- status: 'confirmation_required' | 'success' | 'payment_failed';
675
- client_secret?: string;
676
- failure_code?: string;
1345
+ owner: string;
1346
+ name: string;
1347
+ created_at: number;
1348
+ updated_at?: number;
1349
+ deleted?: boolean;
1350
+ deleted_at?: number;
1351
+ metadata?: {
1352
+ [key: string]: string;
1353
+ };
1354
+ id: string;
1355
+ object: 'contact_list';
677
1356
  };
678
1357
  };
679
- type BillingAddonsUpdateResponse = BillingAddonsUpdateResponses[keyof BillingAddonsUpdateResponses];
680
- type BillingSubscriptionGetData = {
681
- body?: never;
1358
+ type ContactListsUpdateResponse = ContactListsUpdateResponses[keyof ContactListsUpdateResponses];
1359
+ type ContactsDelAllData = {
1360
+ body?: {
1361
+ owner: string;
1362
+ contact_list?: string;
1363
+ };
682
1364
  path?: never;
683
1365
  query?: never;
684
- url: '/billing/subscription';
1366
+ url: '/contacts';
685
1367
  };
686
- type BillingSubscriptionGetErrors = {
1368
+ type ContactsDelAllErrors = {
687
1369
  /**
688
1370
  * Error response
689
1371
  */
690
1372
  default: ErrorResponse;
691
1373
  };
692
- type BillingSubscriptionGetError = BillingSubscriptionGetErrors[keyof BillingSubscriptionGetErrors];
693
- type BillingSubscriptionGetResponses = {
1374
+ type ContactsDelAllError = ContactsDelAllErrors[keyof ContactsDelAllErrors];
1375
+ type ContactsDelAllResponses = {
1376
+ /**
1377
+ * Response
1378
+ */
1379
+ 204: void;
1380
+ };
1381
+ type ContactsDelAllResponse = ContactsDelAllResponses[keyof ContactsDelAllResponses];
1382
+ type ContactsListData = {
1383
+ body?: never;
1384
+ path?: never;
1385
+ query: {
1386
+ owner: string;
1387
+ limit?: number;
1388
+ email?: string;
1389
+ unsubscribed?: boolean | null;
1390
+ contact_list?: string;
1391
+ };
1392
+ url: '/contacts';
1393
+ };
1394
+ type ContactsListErrors = {
1395
+ /**
1396
+ * Error response
1397
+ */
1398
+ default: ErrorResponse;
1399
+ };
1400
+ type ContactsListError = ContactsListErrors[keyof ContactsListErrors];
1401
+ type ContactsListResponses = {
694
1402
  /**
695
1403
  * Response
696
1404
  */
697
1405
  200: {
698
- id: string;
699
- created_at: number;
700
- current_period_start: number;
701
- current_period_end: number;
702
- quantity: number;
703
- currency: string;
704
- amount: number | null;
705
- discount_percentage?: number | null;
706
- name: string | null;
707
- billing_period: 'day' | 'week' | 'month' | 'year' | null;
708
- plan: 'free' | 'starter' | 'pro' | 'premium' | 'business' | null;
709
- default_payment_method: {
710
- type: string;
711
- brand?: string | null;
712
- last4: string | null;
713
- exp_month: number | null;
714
- exp_year: number | null;
715
- bank_name?: string | null;
716
- } | null;
717
- addons: {
718
- senders?: {
719
- quantity: number;
1406
+ object: 'list';
1407
+ data: Array<{
1408
+ owner: string;
1409
+ email: string;
1410
+ domain: string;
1411
+ created_at: number;
1412
+ updated_at?: number;
1413
+ deleted?: boolean;
1414
+ deleted_at?: number;
1415
+ blocked?: boolean;
1416
+ blocked_at?: number;
1417
+ unsubscribed?: boolean;
1418
+ unsubscribed_at?: number;
1419
+ contact_lists?: Array<string>;
1420
+ properties?: {
1421
+ [key: string]: string;
720
1422
  };
721
- email_warmups?: {
722
- quantity: number;
1423
+ notes?: string;
1424
+ metadata?: {
1425
+ [key: string]: string;
723
1426
  };
1427
+ id: string;
1428
+ object: 'contact';
1429
+ }>;
1430
+ };
1431
+ };
1432
+ type ContactsListResponse = ContactsListResponses[keyof ContactsListResponses];
1433
+ type ContactsCreateData = {
1434
+ body?: {
1435
+ owner: string;
1436
+ email: string;
1437
+ blocked?: boolean;
1438
+ unsubscribed?: boolean;
1439
+ contact_lists?: Array<string>;
1440
+ properties?: {
1441
+ [key: string]: string;
724
1442
  };
725
- } | null;
1443
+ notes?: string;
1444
+ metadata?: {
1445
+ [key: string]: string;
1446
+ };
1447
+ };
1448
+ path?: never;
1449
+ query?: never;
1450
+ url: '/contacts';
726
1451
  };
727
- type BillingSubscriptionGetResponse = BillingSubscriptionGetResponses[keyof BillingSubscriptionGetResponses];
728
- type BillingSubscriptionUpdateData = {
1452
+ type ContactsCreateErrors = {
1453
+ /**
1454
+ * Error response
1455
+ */
1456
+ default: ErrorResponse;
1457
+ };
1458
+ type ContactsCreateError = ContactsCreateErrors[keyof ContactsCreateErrors];
1459
+ type ContactsCreateResponses = {
1460
+ /**
1461
+ * Response
1462
+ */
1463
+ 201: {
1464
+ owner: string;
1465
+ email: string;
1466
+ domain: string;
1467
+ created_at: number;
1468
+ updated_at?: number;
1469
+ deleted?: boolean;
1470
+ deleted_at?: number;
1471
+ blocked?: boolean;
1472
+ blocked_at?: number;
1473
+ unsubscribed?: boolean;
1474
+ unsubscribed_at?: number;
1475
+ contact_lists?: Array<string>;
1476
+ properties?: {
1477
+ [key: string]: string;
1478
+ };
1479
+ notes?: string;
1480
+ metadata?: {
1481
+ [key: string]: string;
1482
+ };
1483
+ id: string;
1484
+ object: 'contact';
1485
+ };
1486
+ };
1487
+ type ContactsCreateResponse = ContactsCreateResponses[keyof ContactsCreateResponses];
1488
+ type ContactsBatchCreateData = {
729
1489
  body?: {
730
- plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
731
- billing_period: 'month' | 'year';
1490
+ contacts: Array<{
1491
+ owner: string;
1492
+ email: string;
1493
+ blocked?: boolean;
1494
+ unsubscribed?: boolean;
1495
+ contact_lists?: Array<string>;
1496
+ properties?: {
1497
+ [key: string]: string;
1498
+ };
1499
+ notes?: string;
1500
+ metadata?: {
1501
+ [key: string]: string;
1502
+ };
1503
+ }>;
732
1504
  };
733
1505
  path?: never;
734
1506
  query?: never;
735
- url: '/billing/subscription';
1507
+ url: '/contacts/batch';
1508
+ };
1509
+ type ContactsBatchCreateErrors = {
1510
+ /**
1511
+ * Error response
1512
+ */
1513
+ default: ErrorResponse;
1514
+ };
1515
+ type ContactsBatchCreateError = ContactsBatchCreateErrors[keyof ContactsBatchCreateErrors];
1516
+ type ContactsBatchCreateResponses = {
1517
+ /**
1518
+ * Response
1519
+ */
1520
+ 201: {
1521
+ ok: true;
1522
+ status: 'done';
1523
+ message: string;
1524
+ };
1525
+ /**
1526
+ * Response
1527
+ */
1528
+ 202: {
1529
+ ok: true;
1530
+ status: 'running';
1531
+ message: string;
1532
+ };
1533
+ };
1534
+ type ContactsBatchCreateResponse = ContactsBatchCreateResponses[keyof ContactsBatchCreateResponses];
1535
+ type ContactsBatchCreate2Data = {
1536
+ body?: unknown;
1537
+ path?: never;
1538
+ query?: never;
1539
+ url: '/contacts/batch_legacy';
1540
+ };
1541
+ type ContactsBatchCreate2Errors = {
1542
+ /**
1543
+ * Error response
1544
+ */
1545
+ default: ErrorResponse;
1546
+ };
1547
+ type ContactsBatchCreate2Error = ContactsBatchCreate2Errors[keyof ContactsBatchCreate2Errors];
1548
+ type ContactsBatchCreate2Responses = {
1549
+ /**
1550
+ * Response
1551
+ */
1552
+ 201: unknown;
1553
+ };
1554
+ type ContactsDelData = {
1555
+ body?: never;
1556
+ path: {
1557
+ contact_id: string;
1558
+ };
1559
+ query?: never;
1560
+ url: '/contacts/{contact_id}';
736
1561
  };
737
- type BillingSubscriptionUpdateErrors = {
1562
+ type ContactsDelErrors = {
738
1563
  /**
739
1564
  * Error response
740
1565
  */
741
1566
  default: ErrorResponse;
742
1567
  };
743
- type BillingSubscriptionUpdateError = BillingSubscriptionUpdateErrors[keyof BillingSubscriptionUpdateErrors];
744
- type BillingSubscriptionUpdateResponses = {
1568
+ type ContactsDelError = ContactsDelErrors[keyof ContactsDelErrors];
1569
+ type ContactsDelResponses = {
745
1570
  /**
746
1571
  * Response
747
1572
  */
748
1573
  200: {
749
- status: 'confirmation_required' | 'success' | 'payment_failed';
750
- client_secret?: string;
751
- failure_code?: string;
1574
+ owner: string;
1575
+ email: string;
1576
+ domain: string;
1577
+ created_at: number;
1578
+ updated_at?: number;
1579
+ deleted?: boolean;
1580
+ deleted_at?: number;
1581
+ blocked?: boolean;
1582
+ blocked_at?: number;
1583
+ unsubscribed?: boolean;
1584
+ unsubscribed_at?: number;
1585
+ contact_lists?: Array<string>;
1586
+ properties?: {
1587
+ [key: string]: string;
1588
+ };
1589
+ notes?: string;
1590
+ metadata?: {
1591
+ [key: string]: string;
1592
+ };
1593
+ id: string;
1594
+ object: 'contact';
752
1595
  };
753
1596
  };
754
- type BillingSubscriptionUpdateResponse = BillingSubscriptionUpdateResponses[keyof BillingSubscriptionUpdateResponses];
755
- type BillingSubscriptionPreviewUpdateData = {
756
- body?: {
757
- plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
758
- billing_period: 'month' | 'year';
1597
+ type ContactsDelResponse = ContactsDelResponses[keyof ContactsDelResponses];
1598
+ type ContactsRetrieveData = {
1599
+ body?: never;
1600
+ path: {
1601
+ contact_id: string;
759
1602
  };
760
- path?: never;
761
1603
  query?: never;
762
- url: '/billing/subscription/preview';
1604
+ url: '/contacts/{contact_id}';
763
1605
  };
764
- type BillingSubscriptionPreviewUpdateErrors = {
1606
+ type ContactsRetrieveErrors = {
765
1607
  /**
766
1608
  * Error response
767
1609
  */
768
1610
  default: ErrorResponse;
769
1611
  };
770
- type BillingSubscriptionPreviewUpdateError = BillingSubscriptionPreviewUpdateErrors[keyof BillingSubscriptionPreviewUpdateErrors];
771
- type BillingSubscriptionPreviewUpdateResponses = {
1612
+ type ContactsRetrieveError = ContactsRetrieveErrors[keyof ContactsRetrieveErrors];
1613
+ type ContactsRetrieveResponses = {
772
1614
  /**
773
1615
  * Response
774
1616
  */
775
1617
  200: {
776
- discount_percents: Array<number>;
777
- total_excluding_tax: number;
778
- total: number;
779
- amount_due: number;
780
- added_from_balance: number;
781
- consumed_balance: number;
782
- credited_to_balance: number;
783
- lines: Array<{
784
- amount: number;
785
- billing_period: 'day' | 'week' | 'month' | 'year';
786
- proration: boolean;
787
- plan?: 'free' | 'starter' | 'pro' | 'premium' | 'business';
788
- addon?: 'senders' | 'email_warmups';
789
- }>;
790
- next_renewal: number;
791
- total_tax_amounts: Array<{
792
- amount: number;
793
- }>;
1618
+ owner: string;
1619
+ email: string;
1620
+ domain: string;
1621
+ created_at: number;
1622
+ updated_at?: number;
1623
+ deleted?: boolean;
1624
+ deleted_at?: number;
1625
+ blocked?: boolean;
1626
+ blocked_at?: number;
1627
+ unsubscribed?: boolean;
1628
+ unsubscribed_at?: number;
1629
+ contact_lists?: Array<string>;
1630
+ properties?: {
1631
+ [key: string]: string;
1632
+ };
1633
+ notes?: string;
1634
+ metadata?: {
1635
+ [key: string]: string;
1636
+ };
1637
+ id: string;
1638
+ object: 'contact';
794
1639
  };
795
1640
  };
796
- type BillingSubscriptionPreviewUpdateResponse = BillingSubscriptionPreviewUpdateResponses[keyof BillingSubscriptionPreviewUpdateResponses];
797
- type BillingGetPricesData = {
798
- body?: never;
799
- path?: never;
800
- query: {
801
- currency: string;
1641
+ type ContactsRetrieveResponse = ContactsRetrieveResponses[keyof ContactsRetrieveResponses];
1642
+ type ContactsUpdateData = {
1643
+ body?: {
1644
+ blocked?: boolean;
1645
+ unsubscribed?: boolean;
1646
+ contact_lists?: Array<string>;
1647
+ properties?: {
1648
+ [key: string]: string;
1649
+ };
1650
+ notes?: string;
1651
+ metadata?: {
1652
+ [key: string]: string;
1653
+ };
802
1654
  };
803
- url: '/billing/prices';
1655
+ path: {
1656
+ contact_id: string;
1657
+ };
1658
+ query?: never;
1659
+ url: '/contacts/{contact_id}';
804
1660
  };
805
- type BillingGetPricesErrors = {
1661
+ type ContactsUpdateErrors = {
806
1662
  /**
807
1663
  * Error response
808
1664
  */
809
1665
  default: ErrorResponse;
810
1666
  };
811
- type BillingGetPricesError = BillingGetPricesErrors[keyof BillingGetPricesErrors];
812
- type BillingGetPricesResponses = {
1667
+ type ContactsUpdateError = ContactsUpdateErrors[keyof ContactsUpdateErrors];
1668
+ type ContactsUpdateResponses = {
813
1669
  /**
814
1670
  * Response
815
1671
  */
816
1672
  200: {
817
- free?: {
818
- month: number;
819
- year: number;
820
- };
821
- starter?: {
822
- month: number;
823
- year: number;
824
- };
825
- pro?: {
826
- month: number;
827
- year: number;
828
- };
829
- premium?: {
830
- month: number;
831
- year: number;
1673
+ owner: string;
1674
+ email: string;
1675
+ domain: string;
1676
+ created_at: number;
1677
+ updated_at?: number;
1678
+ deleted?: boolean;
1679
+ deleted_at?: number;
1680
+ blocked?: boolean;
1681
+ blocked_at?: number;
1682
+ unsubscribed?: boolean;
1683
+ unsubscribed_at?: number;
1684
+ contact_lists?: Array<string>;
1685
+ properties?: {
1686
+ [key: string]: string;
832
1687
  };
833
- business?: {
834
- month: number;
835
- year: number;
1688
+ notes?: string;
1689
+ metadata?: {
1690
+ [key: string]: string;
836
1691
  };
1692
+ id: string;
1693
+ object: 'contact';
837
1694
  };
838
1695
  };
839
- type BillingGetPricesResponse = BillingGetPricesResponses[keyof BillingGetPricesResponses];
840
- type OrganizationGetCurrentData = {
1696
+ type ContactsUpdateResponse = ContactsUpdateResponses[keyof ContactsUpdateResponses];
1697
+ type ContactsBlockData = {
841
1698
  body?: never;
842
- path?: never;
1699
+ path: {
1700
+ contact_id: string;
1701
+ };
843
1702
  query?: never;
844
- url: '/organizations/current';
1703
+ url: '/contacts/{contact_id}/block';
845
1704
  };
846
- type OrganizationGetCurrentErrors = {
1705
+ type ContactsBlockErrors = {
847
1706
  /**
848
1707
  * Error response
849
1708
  */
850
1709
  default: ErrorResponse;
851
1710
  };
852
- type OrganizationGetCurrentError = OrganizationGetCurrentErrors[keyof OrganizationGetCurrentErrors];
853
- type OrganizationGetCurrentResponses = {
1711
+ type ContactsBlockError = ContactsBlockErrors[keyof ContactsBlockErrors];
1712
+ type ContactsBlockResponses = {
854
1713
  /**
855
1714
  * Response
856
1715
  */
857
1716
  200: {
858
- current_organization_id: string | null;
1717
+ owner: string;
1718
+ email: string;
1719
+ domain: string;
1720
+ created_at: number;
1721
+ updated_at?: number;
1722
+ deleted?: boolean;
1723
+ deleted_at?: number;
1724
+ blocked?: boolean;
1725
+ blocked_at?: number;
1726
+ unsubscribed?: boolean;
1727
+ unsubscribed_at?: number;
1728
+ contact_lists?: Array<string>;
1729
+ properties?: {
1730
+ [key: string]: string;
1731
+ };
1732
+ notes?: string;
1733
+ metadata?: {
1734
+ [key: string]: string;
1735
+ };
1736
+ id: string;
1737
+ object: 'contact';
859
1738
  };
860
1739
  };
861
- type OrganizationGetCurrentResponse = OrganizationGetCurrentResponses[keyof OrganizationGetCurrentResponses];
862
- type OrganizationSetCurrentData = {
863
- body?: {
864
- organization_id?: string | null;
1740
+ type ContactsBlockResponse = ContactsBlockResponses[keyof ContactsBlockResponses];
1741
+ type ContactsUnblockData = {
1742
+ body?: never;
1743
+ path: {
1744
+ contact_id: string;
865
1745
  };
866
- path?: never;
867
1746
  query?: never;
868
- url: '/organizations/current';
1747
+ url: '/contacts/{contact_id}/unblock';
869
1748
  };
870
- type OrganizationSetCurrentErrors = {
1749
+ type ContactsUnblockErrors = {
871
1750
  /**
872
1751
  * Error response
873
1752
  */
874
1753
  default: ErrorResponse;
875
1754
  };
876
- type OrganizationSetCurrentError = OrganizationSetCurrentErrors[keyof OrganizationSetCurrentErrors];
877
- type OrganizationSetCurrentResponses = {
1755
+ type ContactsUnblockError = ContactsUnblockErrors[keyof ContactsUnblockErrors];
1756
+ type ContactsUnblockResponses = {
878
1757
  /**
879
1758
  * Response
880
1759
  */
881
1760
  200: {
882
- current_organization_id: string | null;
1761
+ owner: string;
1762
+ email: string;
1763
+ domain: string;
1764
+ created_at: number;
1765
+ updated_at?: number;
1766
+ deleted?: boolean;
1767
+ deleted_at?: number;
1768
+ blocked?: boolean;
1769
+ blocked_at?: number;
1770
+ unsubscribed?: boolean;
1771
+ unsubscribed_at?: number;
1772
+ contact_lists?: Array<string>;
1773
+ properties?: {
1774
+ [key: string]: string;
1775
+ };
1776
+ notes?: string;
1777
+ metadata?: {
1778
+ [key: string]: string;
1779
+ };
1780
+ id: string;
1781
+ object: 'contact';
883
1782
  };
884
1783
  };
885
- type OrganizationSetCurrentResponse = OrganizationSetCurrentResponses[keyof OrganizationSetCurrentResponses];
886
- type OrganizationListData = {
1784
+ type ContactsUnblockResponse = ContactsUnblockResponses[keyof ContactsUnblockResponses];
1785
+ type ContactsResubscribeData = {
887
1786
  body?: never;
888
- path?: never;
1787
+ path: {
1788
+ contact_id: string;
1789
+ };
889
1790
  query?: never;
890
- url: '/organizations';
1791
+ url: '/contacts/{contact_id}/resubscribe';
891
1792
  };
892
- type OrganizationListErrors = {
1793
+ type ContactsResubscribeErrors = {
893
1794
  /**
894
1795
  * Error response
895
1796
  */
896
1797
  default: ErrorResponse;
897
1798
  };
898
- type OrganizationListError = OrganizationListErrors[keyof OrganizationListErrors];
899
- type OrganizationListResponses = {
1799
+ type ContactsResubscribeError = ContactsResubscribeErrors[keyof ContactsResubscribeErrors];
1800
+ type ContactsResubscribeResponses = {
900
1801
  /**
901
1802
  * Response
902
1803
  */
903
- 200: Array<{
904
- name: string;
1804
+ 200: {
905
1805
  owner: string;
906
- /**
907
- * Creation date
908
- */
909
- created_at: string;
910
- /**
911
- * Last Update date
912
- */
913
- updated_at?: string;
1806
+ email: string;
1807
+ domain: string;
1808
+ created_at: number;
1809
+ updated_at?: number;
1810
+ deleted?: boolean;
1811
+ deleted_at?: number;
1812
+ blocked?: boolean;
1813
+ blocked_at?: number;
1814
+ unsubscribed?: boolean;
1815
+ unsubscribed_at?: number;
1816
+ contact_lists?: Array<string>;
1817
+ properties?: {
1818
+ [key: string]: string;
1819
+ };
1820
+ notes?: string;
1821
+ metadata?: {
1822
+ [key: string]: string;
1823
+ };
914
1824
  id: string;
915
- object: 'organization';
916
- }>;
917
- };
918
- type OrganizationListResponse = OrganizationListResponses[keyof OrganizationListResponses];
919
- type OrganizationCreateData = {
920
- body?: {
921
- name: string;
1825
+ object: 'contact';
922
1826
  };
1827
+ };
1828
+ type ContactsResubscribeResponse = ContactsResubscribeResponses[keyof ContactsResubscribeResponses];
1829
+ type BillingAddonsGetAddonsData = {
1830
+ body?: never;
923
1831
  path?: never;
924
1832
  query?: never;
925
- url: '/organizations';
1833
+ url: '/billing/addons';
926
1834
  };
927
- type OrganizationCreateErrors = {
1835
+ type BillingAddonsGetAddonsErrors = {
928
1836
  /**
929
1837
  * Error response
930
1838
  */
931
1839
  default: ErrorResponse;
932
1840
  };
933
- type OrganizationCreateError = OrganizationCreateErrors[keyof OrganizationCreateErrors];
934
- type OrganizationCreateResponses = {
1841
+ type BillingAddonsGetAddonsError = BillingAddonsGetAddonsErrors[keyof BillingAddonsGetAddonsErrors];
1842
+ type BillingAddonsGetAddonsResponses = {
935
1843
  /**
936
1844
  * Response
937
1845
  */
938
- 201: {
939
- name: string;
940
- owner: string;
941
- /**
942
- * Creation date
943
- */
944
- created_at: string;
945
- /**
946
- * Last Update date
947
- */
948
- updated_at?: string;
949
- id: string;
950
- object: 'organization';
1846
+ 200: {
1847
+ senders?: {
1848
+ included_per_seat: number;
1849
+ included_total: number;
1850
+ used: number;
1851
+ extra: {
1852
+ price_amount: number;
1853
+ currency: string;
1854
+ quantity_per_addon: number;
1855
+ interval: 'day' | 'week' | 'month' | 'year';
1856
+ subscribed: number;
1857
+ } | null;
1858
+ };
1859
+ email_warmups?: {
1860
+ included_per_seat: number;
1861
+ included_total: number;
1862
+ used: number;
1863
+ extra: {
1864
+ price_amount: number;
1865
+ currency: string;
1866
+ quantity_per_addon: number;
1867
+ interval: 'day' | 'week' | 'month' | 'year';
1868
+ subscribed: number;
1869
+ } | null;
1870
+ };
951
1871
  };
952
1872
  };
953
- type OrganizationCreateResponse = OrganizationCreateResponses[keyof OrganizationCreateResponses];
954
- type OrganizationDeleteData = {
955
- body?: never;
1873
+ type BillingAddonsGetAddonsResponse = BillingAddonsGetAddonsResponses[keyof BillingAddonsGetAddonsResponses];
1874
+ type BillingAddonsPreviewUpdateData = {
1875
+ body?: {
1876
+ quantity: number;
1877
+ };
956
1878
  path: {
957
- organization_id: string;
1879
+ addon: 'senders' | 'email_warmups';
958
1880
  };
959
1881
  query?: never;
960
- url: '/organizations/{organization_id}';
1882
+ url: '/billing/addons/{addon}/preview';
961
1883
  };
962
- type OrganizationDeleteErrors = {
1884
+ type BillingAddonsPreviewUpdateErrors = {
963
1885
  /**
964
1886
  * Error response
965
1887
  */
966
1888
  default: ErrorResponse;
967
1889
  };
968
- type OrganizationDeleteError = OrganizationDeleteErrors[keyof OrganizationDeleteErrors];
969
- type OrganizationDeleteResponses = {
1890
+ type BillingAddonsPreviewUpdateError = BillingAddonsPreviewUpdateErrors[keyof BillingAddonsPreviewUpdateErrors];
1891
+ type BillingAddonsPreviewUpdateResponses = {
970
1892
  /**
971
1893
  * Response
972
1894
  */
973
- 204: void;
1895
+ 200: {
1896
+ discount_percents: Array<number>;
1897
+ total_excluding_tax: number;
1898
+ total: number;
1899
+ amount_due: number;
1900
+ added_from_balance: number;
1901
+ consumed_balance: number;
1902
+ credited_to_balance: number;
1903
+ };
974
1904
  };
975
- type OrganizationDeleteResponse = OrganizationDeleteResponses[keyof OrganizationDeleteResponses];
976
- type OrganizationRetrieveData = {
1905
+ type BillingAddonsPreviewUpdateResponse = BillingAddonsPreviewUpdateResponses[keyof BillingAddonsPreviewUpdateResponses];
1906
+ type BillingAddonsGetAddonUsagesData = {
977
1907
  body?: never;
978
1908
  path: {
979
- organization_id: string;
1909
+ addon: 'senders' | 'email_warmups';
980
1910
  };
981
1911
  query?: never;
982
- url: '/organizations/{organization_id}';
1912
+ url: '/billing/addons/{addon}';
983
1913
  };
984
- type OrganizationRetrieveErrors = {
1914
+ type BillingAddonsGetAddonUsagesErrors = {
985
1915
  /**
986
1916
  * Error response
987
1917
  */
988
1918
  default: ErrorResponse;
989
1919
  };
990
- type OrganizationRetrieveError = OrganizationRetrieveErrors[keyof OrganizationRetrieveErrors];
991
- type OrganizationRetrieveResponses = {
1920
+ type BillingAddonsGetAddonUsagesError = BillingAddonsGetAddonUsagesErrors[keyof BillingAddonsGetAddonUsagesErrors];
1921
+ type BillingAddonsGetAddonUsagesResponses = {
992
1922
  /**
993
1923
  * Response
994
1924
  */
995
- 200: {
996
- name: string;
997
- owner: string;
998
- /**
999
- * Creation date
1000
- */
1001
- created_at: string;
1002
- /**
1003
- * Last Update date
1004
- */
1005
- updated_at?: string;
1925
+ 200: Array<{
1006
1926
  id: string;
1007
- object: 'organization';
1008
- };
1927
+ email: string;
1928
+ usage: number;
1929
+ }>;
1009
1930
  };
1010
- type OrganizationRetrieveResponse = OrganizationRetrieveResponses[keyof OrganizationRetrieveResponses];
1011
- type OrganizationUpdateData = {
1931
+ type BillingAddonsGetAddonUsagesResponse = BillingAddonsGetAddonUsagesResponses[keyof BillingAddonsGetAddonUsagesResponses];
1932
+ type BillingAddonsUpdateData = {
1012
1933
  body?: {
1013
- name?: string;
1934
+ quantity: number;
1014
1935
  };
1015
1936
  path: {
1016
- organization_id: string;
1937
+ addon: 'senders' | 'email_warmups';
1017
1938
  };
1018
1939
  query?: never;
1019
- url: '/organizations/{organization_id}';
1940
+ url: '/billing/addons/{addon}';
1020
1941
  };
1021
- type OrganizationUpdateErrors = {
1942
+ type BillingAddonsUpdateErrors = {
1022
1943
  /**
1023
1944
  * Error response
1024
1945
  */
1025
1946
  default: ErrorResponse;
1026
1947
  };
1027
- type OrganizationUpdateError = OrganizationUpdateErrors[keyof OrganizationUpdateErrors];
1028
- type OrganizationUpdateResponses = {
1948
+ type BillingAddonsUpdateError = BillingAddonsUpdateErrors[keyof BillingAddonsUpdateErrors];
1949
+ type BillingAddonsUpdateResponses = {
1029
1950
  /**
1030
1951
  * Response
1031
1952
  */
1032
1953
  200: {
1033
- name: string;
1034
- owner: string;
1035
- /**
1036
- * Creation date
1037
- */
1038
- created_at: string;
1039
- /**
1040
- * Last Update date
1041
- */
1042
- updated_at?: string;
1043
- id: string;
1044
- object: 'organization';
1954
+ status: 'confirmation_required' | 'success' | 'payment_failed';
1955
+ client_secret?: string;
1956
+ failure_code?: string;
1045
1957
  };
1046
1958
  };
1047
- type OrganizationUpdateResponse = OrganizationUpdateResponses[keyof OrganizationUpdateResponses];
1048
- type OrganizationMemberListData = {
1959
+ type BillingAddonsUpdateResponse = BillingAddonsUpdateResponses[keyof BillingAddonsUpdateResponses];
1960
+ type BillingSubscriptionGetData = {
1049
1961
  body?: never;
1050
- path: {
1051
- organization_id: string;
1052
- };
1053
- query?: {
1054
- limit?: number;
1055
- starting_after?: string;
1056
- };
1057
- url: '/organizations/{organization_id}/members';
1962
+ path?: never;
1963
+ query?: never;
1964
+ url: '/billing/subscription';
1058
1965
  };
1059
- type OrganizationMemberListErrors = {
1966
+ type BillingSubscriptionGetErrors = {
1060
1967
  /**
1061
1968
  * Error response
1062
1969
  */
1063
1970
  default: ErrorResponse;
1064
1971
  };
1065
- type OrganizationMemberListError = OrganizationMemberListErrors[keyof OrganizationMemberListErrors];
1066
- type OrganizationMemberListResponses = {
1972
+ type BillingSubscriptionGetError = BillingSubscriptionGetErrors[keyof BillingSubscriptionGetErrors];
1973
+ type BillingSubscriptionGetResponses = {
1067
1974
  /**
1068
1975
  * Response
1069
1976
  */
1070
- 200: Array<{
1071
- email: string;
1072
- name?: string;
1073
- profile_picture_url?: string;
1074
- role: 'admin' | 'member';
1075
- /**
1076
- * Creation date
1077
- */
1078
- created_at: string;
1079
- /**
1080
- * Last Update date
1081
- */
1082
- updated_at?: string;
1977
+ 200: {
1083
1978
  id: string;
1084
- organization_id: string;
1085
- object: 'organization_member';
1086
- }>;
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;
1087
2006
  };
1088
- type OrganizationMemberListResponse = OrganizationMemberListResponses[keyof OrganizationMemberListResponses];
1089
- type OrganizationMemberCreateData = {
2007
+ type BillingSubscriptionGetResponse = BillingSubscriptionGetResponses[keyof BillingSubscriptionGetResponses];
2008
+ type BillingSubscriptionUpdateData = {
1090
2009
  body?: {
1091
- email: string;
1092
- role: 'admin' | 'member';
1093
- };
1094
- path: {
1095
- organization_id: string;
2010
+ plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
2011
+ billing_period: 'month' | 'year';
1096
2012
  };
2013
+ path?: never;
1097
2014
  query?: never;
1098
- url: '/organizations/{organization_id}/members';
2015
+ url: '/billing/subscription';
1099
2016
  };
1100
- type OrganizationMemberCreateErrors = {
2017
+ type BillingSubscriptionUpdateErrors = {
1101
2018
  /**
1102
2019
  * Error response
1103
2020
  */
1104
2021
  default: ErrorResponse;
1105
2022
  };
1106
- type OrganizationMemberCreateError = OrganizationMemberCreateErrors[keyof OrganizationMemberCreateErrors];
1107
- type OrganizationMemberCreateResponses = {
2023
+ type BillingSubscriptionUpdateError = BillingSubscriptionUpdateErrors[keyof BillingSubscriptionUpdateErrors];
2024
+ type BillingSubscriptionUpdateResponses = {
1108
2025
  /**
1109
2026
  * Response
1110
2027
  */
1111
- 201: {
1112
- email: string;
1113
- name?: string;
1114
- profile_picture_url?: string;
1115
- role: 'admin' | 'member';
1116
- /**
1117
- * Creation date
1118
- */
1119
- created_at: string;
1120
- /**
1121
- * Last Update date
1122
- */
1123
- updated_at?: string;
1124
- id: string;
1125
- organization_id: string;
1126
- object: 'organization_member';
2028
+ 200: {
2029
+ status: 'confirmation_required' | 'success' | 'payment_failed';
2030
+ client_secret?: string;
2031
+ failure_code?: string;
1127
2032
  };
1128
2033
  };
1129
- type OrganizationMemberCreateResponse = OrganizationMemberCreateResponses[keyof OrganizationMemberCreateResponses];
1130
- type OrganizationMemberDeleteData = {
1131
- body?: never;
1132
- path: {
1133
- organization_id: string;
1134
- member_id: string;
2034
+ type BillingSubscriptionUpdateResponse = BillingSubscriptionUpdateResponses[keyof BillingSubscriptionUpdateResponses];
2035
+ type BillingSubscriptionPreviewUpdateData = {
2036
+ body?: {
2037
+ plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
2038
+ billing_period: 'month' | 'year';
1135
2039
  };
2040
+ path?: never;
1136
2041
  query?: never;
1137
- url: '/organizations/{organization_id}/members/{member_id}';
2042
+ url: '/billing/subscription/preview';
1138
2043
  };
1139
- type OrganizationMemberDeleteErrors = {
2044
+ type BillingSubscriptionPreviewUpdateErrors = {
1140
2045
  /**
1141
2046
  * Error response
1142
2047
  */
1143
2048
  default: ErrorResponse;
1144
2049
  };
1145
- type OrganizationMemberDeleteError = OrganizationMemberDeleteErrors[keyof OrganizationMemberDeleteErrors];
1146
- type OrganizationMemberDeleteResponses = {
2050
+ type BillingSubscriptionPreviewUpdateError = BillingSubscriptionPreviewUpdateErrors[keyof BillingSubscriptionPreviewUpdateErrors];
2051
+ type BillingSubscriptionPreviewUpdateResponses = {
1147
2052
  /**
1148
2053
  * Response
1149
2054
  */
1150
- 204: void;
1151
- };
1152
- type OrganizationMemberDeleteResponse = OrganizationMemberDeleteResponses[keyof OrganizationMemberDeleteResponses];
1153
- type OrganizationMemberUpdateData = {
1154
- body?: {
1155
- role: 'admin' | 'member';
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
+ }>;
1156
2074
  };
1157
- path: {
1158
- organization_id: string;
1159
- member_id: string;
2075
+ };
2076
+ type BillingSubscriptionPreviewUpdateResponse = BillingSubscriptionPreviewUpdateResponses[keyof BillingSubscriptionPreviewUpdateResponses];
2077
+ type BillingGetPricesData = {
2078
+ body?: never;
2079
+ path?: never;
2080
+ query: {
2081
+ currency: string;
1160
2082
  };
1161
- query?: never;
1162
- url: '/organizations/{organization_id}/members/{member_id}';
2083
+ url: '/billing/prices';
1163
2084
  };
1164
- type OrganizationMemberUpdateErrors = {
2085
+ type BillingGetPricesErrors = {
1165
2086
  /**
1166
2087
  * Error response
1167
2088
  */
1168
2089
  default: ErrorResponse;
1169
2090
  };
1170
- type OrganizationMemberUpdateError = OrganizationMemberUpdateErrors[keyof OrganizationMemberUpdateErrors];
1171
- type OrganizationMemberUpdateResponses = {
2091
+ type BillingGetPricesError = BillingGetPricesErrors[keyof BillingGetPricesErrors];
2092
+ type BillingGetPricesResponses = {
1172
2093
  /**
1173
2094
  * Response
1174
2095
  */
1175
2096
  200: {
1176
- email: string;
1177
- name?: string;
1178
- profile_picture_url?: string;
1179
- role: 'admin' | 'member';
1180
- /**
1181
- * Creation date
1182
- */
1183
- created_at: string;
1184
- /**
1185
- * Last Update date
1186
- */
1187
- updated_at?: string;
1188
- id: string;
1189
- organization_id: string;
1190
- object: 'organization_member';
2097
+ free?: {
2098
+ month: number;
2099
+ year: number;
2100
+ };
2101
+ starter?: {
2102
+ month: number;
2103
+ year: number;
2104
+ };
2105
+ pro?: {
2106
+ month: number;
2107
+ year: number;
2108
+ };
2109
+ premium?: {
2110
+ month: number;
2111
+ year: number;
2112
+ };
2113
+ business?: {
2114
+ month: number;
2115
+ year: number;
2116
+ };
1191
2117
  };
1192
2118
  };
1193
- type OrganizationMemberUpdateResponse = OrganizationMemberUpdateResponses[keyof OrganizationMemberUpdateResponses];
2119
+ type BillingGetPricesResponse = BillingGetPricesResponses[keyof BillingGetPricesResponses];
1194
2120
  type GetOpenapiJsonData = {
1195
2121
  body?: never;
1196
2122
  path?: never;
@@ -1211,10 +2137,16 @@ type GetOpenapiJsonResponses = {
1211
2137
  200: unknown;
1212
2138
  };
1213
2139
 
2140
+ type types_gen_d_ActionIdParams = ActionIdParams;
1214
2141
  type types_gen_d_AddonBody = AddonBody;
1215
2142
  type types_gen_d_AddonParams = AddonParams;
1216
2143
  type types_gen_d_AddonResponse200 = AddonResponse200;
1217
2144
  type types_gen_d_AddonsResponse200 = AddonsResponse200;
2145
+ type types_gen_d_BatchBody = BatchBody;
2146
+ type types_gen_d_BatchLegacyBody = BatchLegacyBody;
2147
+ type types_gen_d_BatchLegacyResponse201 = BatchLegacyResponse201;
2148
+ type types_gen_d_BatchResponse201 = BatchResponse201;
2149
+ type types_gen_d_BatchResponse202 = BatchResponse202;
1218
2150
  type types_gen_d_BillingAddonsGetAddonUsagesData = BillingAddonsGetAddonUsagesData;
1219
2151
  type types_gen_d_BillingAddonsGetAddonUsagesError = BillingAddonsGetAddonUsagesError;
1220
2152
  type types_gen_d_BillingAddonsGetAddonUsagesErrors = BillingAddonsGetAddonUsagesErrors;
@@ -1255,9 +2187,98 @@ type types_gen_d_BillingSubscriptionUpdateError = BillingSubscriptionUpdateError
1255
2187
  type types_gen_d_BillingSubscriptionUpdateErrors = BillingSubscriptionUpdateErrors;
1256
2188
  type types_gen_d_BillingSubscriptionUpdateResponse = BillingSubscriptionUpdateResponse;
1257
2189
  type types_gen_d_BillingSubscriptionUpdateResponses = BillingSubscriptionUpdateResponses;
2190
+ type types_gen_d_BlockParams = BlockParams;
2191
+ type types_gen_d_BlockResponse200 = BlockResponse200;
1258
2192
  type types_gen_d_ClientOptions = ClientOptions;
1259
- type types_gen_d_CurrentBody = CurrentBody;
1260
- type types_gen_d_CurrentResponse200 = CurrentResponse200;
2193
+ type types_gen_d_ContactIdBody = ContactIdBody;
2194
+ type types_gen_d_ContactIdParams = ContactIdParams;
2195
+ type types_gen_d_ContactIdResponse200 = ContactIdResponse200;
2196
+ type types_gen_d_ContactListIdBody = ContactListIdBody;
2197
+ type types_gen_d_ContactListIdParams = ContactListIdParams;
2198
+ type types_gen_d_ContactListIdResponse200 = ContactListIdResponse200;
2199
+ type types_gen_d_ContactListsBody = ContactListsBody;
2200
+ type types_gen_d_ContactListsCreateData = ContactListsCreateData;
2201
+ type types_gen_d_ContactListsCreateError = ContactListsCreateError;
2202
+ type types_gen_d_ContactListsCreateErrors = ContactListsCreateErrors;
2203
+ type types_gen_d_ContactListsCreateResponse = ContactListsCreateResponse;
2204
+ type types_gen_d_ContactListsCreateResponses = ContactListsCreateResponses;
2205
+ type types_gen_d_ContactListsRemoveData = ContactListsRemoveData;
2206
+ type types_gen_d_ContactListsRemoveError = ContactListsRemoveError;
2207
+ type types_gen_d_ContactListsRemoveErrors = ContactListsRemoveErrors;
2208
+ type types_gen_d_ContactListsRemoveResponse = ContactListsRemoveResponse;
2209
+ type types_gen_d_ContactListsRemoveResponses = ContactListsRemoveResponses;
2210
+ type types_gen_d_ContactListsResponse201 = ContactListsResponse201;
2211
+ type types_gen_d_ContactListsRetrieveData = ContactListsRetrieveData;
2212
+ type types_gen_d_ContactListsRetrieveError = ContactListsRetrieveError;
2213
+ type types_gen_d_ContactListsRetrieveErrors = ContactListsRetrieveErrors;
2214
+ type types_gen_d_ContactListsRetrieveResponse = ContactListsRetrieveResponse;
2215
+ type types_gen_d_ContactListsRetrieveResponses = ContactListsRetrieveResponses;
2216
+ type types_gen_d_ContactListsUpdateData = ContactListsUpdateData;
2217
+ type types_gen_d_ContactListsUpdateError = ContactListsUpdateError;
2218
+ type types_gen_d_ContactListsUpdateErrors = ContactListsUpdateErrors;
2219
+ type types_gen_d_ContactListsUpdateResponse = ContactListsUpdateResponse;
2220
+ type types_gen_d_ContactListsUpdateResponses = ContactListsUpdateResponses;
2221
+ type types_gen_d_ContactsBatchCreate2Data = ContactsBatchCreate2Data;
2222
+ type types_gen_d_ContactsBatchCreate2Error = ContactsBatchCreate2Error;
2223
+ type types_gen_d_ContactsBatchCreate2Errors = ContactsBatchCreate2Errors;
2224
+ type types_gen_d_ContactsBatchCreate2Responses = ContactsBatchCreate2Responses;
2225
+ type types_gen_d_ContactsBatchCreateData = ContactsBatchCreateData;
2226
+ type types_gen_d_ContactsBatchCreateError = ContactsBatchCreateError;
2227
+ type types_gen_d_ContactsBatchCreateErrors = ContactsBatchCreateErrors;
2228
+ type types_gen_d_ContactsBatchCreateResponse = ContactsBatchCreateResponse;
2229
+ type types_gen_d_ContactsBatchCreateResponses = ContactsBatchCreateResponses;
2230
+ type types_gen_d_ContactsBlockData = ContactsBlockData;
2231
+ type types_gen_d_ContactsBlockError = ContactsBlockError;
2232
+ type types_gen_d_ContactsBlockErrors = ContactsBlockErrors;
2233
+ type types_gen_d_ContactsBlockResponse = ContactsBlockResponse;
2234
+ type types_gen_d_ContactsBlockResponses = ContactsBlockResponses;
2235
+ type types_gen_d_ContactsBody = ContactsBody;
2236
+ type types_gen_d_ContactsCreateData = ContactsCreateData;
2237
+ type types_gen_d_ContactsCreateError = ContactsCreateError;
2238
+ type types_gen_d_ContactsCreateErrors = ContactsCreateErrors;
2239
+ type types_gen_d_ContactsCreateResponse = ContactsCreateResponse;
2240
+ type types_gen_d_ContactsCreateResponses = ContactsCreateResponses;
2241
+ type types_gen_d_ContactsDelAllData = ContactsDelAllData;
2242
+ type types_gen_d_ContactsDelAllError = ContactsDelAllError;
2243
+ type types_gen_d_ContactsDelAllErrors = ContactsDelAllErrors;
2244
+ type types_gen_d_ContactsDelAllResponse = ContactsDelAllResponse;
2245
+ type types_gen_d_ContactsDelAllResponses = ContactsDelAllResponses;
2246
+ type types_gen_d_ContactsDelData = ContactsDelData;
2247
+ type types_gen_d_ContactsDelError = ContactsDelError;
2248
+ type types_gen_d_ContactsDelErrors = ContactsDelErrors;
2249
+ type types_gen_d_ContactsDelResponse = ContactsDelResponse;
2250
+ type types_gen_d_ContactsDelResponses = ContactsDelResponses;
2251
+ type types_gen_d_ContactsListData = ContactsListData;
2252
+ type types_gen_d_ContactsListError = ContactsListError;
2253
+ type types_gen_d_ContactsListErrors = ContactsListErrors;
2254
+ type types_gen_d_ContactsListResponse = ContactsListResponse;
2255
+ type types_gen_d_ContactsListResponses = ContactsListResponses;
2256
+ type types_gen_d_ContactsQuery = ContactsQuery;
2257
+ type types_gen_d_ContactsResponse200 = ContactsResponse200;
2258
+ type types_gen_d_ContactsResponse201 = ContactsResponse201;
2259
+ type types_gen_d_ContactsResubscribeData = ContactsResubscribeData;
2260
+ type types_gen_d_ContactsResubscribeError = ContactsResubscribeError;
2261
+ type types_gen_d_ContactsResubscribeErrors = ContactsResubscribeErrors;
2262
+ type types_gen_d_ContactsResubscribeResponse = ContactsResubscribeResponse;
2263
+ type types_gen_d_ContactsResubscribeResponses = ContactsResubscribeResponses;
2264
+ type types_gen_d_ContactsRetrieveData = ContactsRetrieveData;
2265
+ type types_gen_d_ContactsRetrieveError = ContactsRetrieveError;
2266
+ type types_gen_d_ContactsRetrieveErrors = ContactsRetrieveErrors;
2267
+ type types_gen_d_ContactsRetrieveResponse = ContactsRetrieveResponse;
2268
+ type types_gen_d_ContactsRetrieveResponses = ContactsRetrieveResponses;
2269
+ type types_gen_d_ContactsUnblockData = ContactsUnblockData;
2270
+ type types_gen_d_ContactsUnblockError = ContactsUnblockError;
2271
+ type types_gen_d_ContactsUnblockErrors = ContactsUnblockErrors;
2272
+ type types_gen_d_ContactsUnblockResponse = ContactsUnblockResponse;
2273
+ type types_gen_d_ContactsUnblockResponses = ContactsUnblockResponses;
2274
+ type types_gen_d_ContactsUpdateData = ContactsUpdateData;
2275
+ type types_gen_d_ContactsUpdateError = ContactsUpdateError;
2276
+ type types_gen_d_ContactsUpdateErrors = ContactsUpdateErrors;
2277
+ type types_gen_d_ContactsUpdateResponse = ContactsUpdateResponse;
2278
+ type types_gen_d_ContactsUpdateResponses = ContactsUpdateResponses;
2279
+ type types_gen_d_CurrentOrganizationBody = CurrentOrganizationBody;
2280
+ type types_gen_d_CurrentOrganizationParams = CurrentOrganizationParams;
2281
+ type types_gen_d_CurrentOrganizationResponse200 = CurrentOrganizationResponse200;
1261
2282
  type types_gen_d_ErrorResponse = ErrorResponse;
1262
2283
  type types_gen_d_GetOpenapiJsonData = GetOpenapiJsonData;
1263
2284
  type types_gen_d_GetOpenapiJsonError = GetOpenapiJsonError;
@@ -1282,11 +2303,6 @@ type types_gen_d_OrganizationDeleteError = OrganizationDeleteError;
1282
2303
  type types_gen_d_OrganizationDeleteErrors = OrganizationDeleteErrors;
1283
2304
  type types_gen_d_OrganizationDeleteResponse = OrganizationDeleteResponse;
1284
2305
  type types_gen_d_OrganizationDeleteResponses = OrganizationDeleteResponses;
1285
- type types_gen_d_OrganizationGetCurrentData = OrganizationGetCurrentData;
1286
- type types_gen_d_OrganizationGetCurrentError = OrganizationGetCurrentError;
1287
- type types_gen_d_OrganizationGetCurrentErrors = OrganizationGetCurrentErrors;
1288
- type types_gen_d_OrganizationGetCurrentResponse = OrganizationGetCurrentResponse;
1289
- type types_gen_d_OrganizationGetCurrentResponses = OrganizationGetCurrentResponses;
1290
2306
  type types_gen_d_OrganizationIdBody = OrganizationIdBody;
1291
2307
  type types_gen_d_OrganizationIdParams = OrganizationIdParams;
1292
2308
  type types_gen_d_OrganizationIdResponse200 = OrganizationIdResponse200;
@@ -1320,11 +2336,6 @@ type types_gen_d_OrganizationRetrieveError = OrganizationRetrieveError;
1320
2336
  type types_gen_d_OrganizationRetrieveErrors = OrganizationRetrieveErrors;
1321
2337
  type types_gen_d_OrganizationRetrieveResponse = OrganizationRetrieveResponse;
1322
2338
  type types_gen_d_OrganizationRetrieveResponses = OrganizationRetrieveResponses;
1323
- type types_gen_d_OrganizationSetCurrentData = OrganizationSetCurrentData;
1324
- type types_gen_d_OrganizationSetCurrentError = OrganizationSetCurrentError;
1325
- type types_gen_d_OrganizationSetCurrentErrors = OrganizationSetCurrentErrors;
1326
- type types_gen_d_OrganizationSetCurrentResponse = OrganizationSetCurrentResponse;
1327
- type types_gen_d_OrganizationSetCurrentResponses = OrganizationSetCurrentResponses;
1328
2339
  type types_gen_d_OrganizationUpdateData = OrganizationUpdateData;
1329
2340
  type types_gen_d_OrganizationUpdateError = OrganizationUpdateError;
1330
2341
  type types_gen_d_OrganizationUpdateErrors = OrganizationUpdateErrors;
@@ -1338,10 +2349,36 @@ type types_gen_d_PreviewParams = PreviewParams;
1338
2349
  type types_gen_d_PreviewResponse200 = PreviewResponse200;
1339
2350
  type types_gen_d_PricesQuery = PricesQuery;
1340
2351
  type types_gen_d_PricesResponse200 = PricesResponse200;
2352
+ type types_gen_d_ResubscribeParams = ResubscribeParams;
2353
+ type types_gen_d_ResubscribeResponse200 = ResubscribeResponse200;
1341
2354
  type types_gen_d_SubscriptionBody = SubscriptionBody;
1342
2355
  type types_gen_d_SubscriptionResponse200 = SubscriptionResponse200;
2356
+ type types_gen_d_UnblockParams = UnblockParams;
2357
+ type types_gen_d_UnblockResponse200 = UnblockResponse200;
2358
+ type types_gen_d_UsersDeleteActionData = UsersDeleteActionData;
2359
+ type types_gen_d_UsersDeleteActionError = UsersDeleteActionError;
2360
+ type types_gen_d_UsersDeleteActionErrors = UsersDeleteActionErrors;
2361
+ type types_gen_d_UsersDeleteActionResponse = UsersDeleteActionResponse;
2362
+ type types_gen_d_UsersDeleteActionResponses = UsersDeleteActionResponses;
2363
+ type types_gen_d_UsersGetCurrentOrganizationData = UsersGetCurrentOrganizationData;
2364
+ type types_gen_d_UsersGetCurrentOrganizationError = UsersGetCurrentOrganizationError;
2365
+ type types_gen_d_UsersGetCurrentOrganizationErrors = UsersGetCurrentOrganizationErrors;
2366
+ type types_gen_d_UsersGetCurrentOrganizationResponse = UsersGetCurrentOrganizationResponse;
2367
+ type types_gen_d_UsersGetCurrentOrganizationResponses = UsersGetCurrentOrganizationResponses;
2368
+ type types_gen_d_UsersSetCurrentOrganizationData = UsersSetCurrentOrganizationData;
2369
+ type types_gen_d_UsersSetCurrentOrganizationError = UsersSetCurrentOrganizationError;
2370
+ type types_gen_d_UsersSetCurrentOrganizationErrors = UsersSetCurrentOrganizationErrors;
2371
+ type types_gen_d_UsersSetCurrentOrganizationResponse = UsersSetCurrentOrganizationResponse;
2372
+ type types_gen_d_UsersSetCurrentOrganizationResponses = UsersSetCurrentOrganizationResponses;
2373
+ type types_gen_d_UsersWatchMailboxData = UsersWatchMailboxData;
2374
+ type types_gen_d_UsersWatchMailboxError = UsersWatchMailboxError;
2375
+ type types_gen_d_UsersWatchMailboxErrors = UsersWatchMailboxErrors;
2376
+ type types_gen_d_UsersWatchMailboxResponse = UsersWatchMailboxResponse;
2377
+ type types_gen_d_UsersWatchMailboxResponses = UsersWatchMailboxResponses;
2378
+ type types_gen_d_WatchMailboxBody = WatchMailboxBody;
2379
+ type types_gen_d_WatchMailboxParams = WatchMailboxParams;
1343
2380
  declare namespace types_gen_d {
1344
- export type { 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_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_ClientOptions as ClientOptions, types_gen_d_CurrentBody as CurrentBody, types_gen_d_CurrentResponse200 as CurrentResponse200, 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_OrganizationCreateData as OrganizationCreateData, types_gen_d_OrganizationCreateError as OrganizationCreateError, types_gen_d_OrganizationCreateErrors as OrganizationCreateErrors, types_gen_d_OrganizationCreateResponse as OrganizationCreateResponse, types_gen_d_OrganizationCreateResponses as OrganizationCreateResponses, types_gen_d_OrganizationDeleteData as OrganizationDeleteData, types_gen_d_OrganizationDeleteError as OrganizationDeleteError, types_gen_d_OrganizationDeleteErrors as OrganizationDeleteErrors, types_gen_d_OrganizationDeleteResponse as OrganizationDeleteResponse, types_gen_d_OrganizationDeleteResponses as OrganizationDeleteResponses, types_gen_d_OrganizationGetCurrentData as OrganizationGetCurrentData, types_gen_d_OrganizationGetCurrentError as OrganizationGetCurrentError, types_gen_d_OrganizationGetCurrentErrors as OrganizationGetCurrentErrors, types_gen_d_OrganizationGetCurrentResponse as OrganizationGetCurrentResponse, types_gen_d_OrganizationGetCurrentResponses as OrganizationGetCurrentResponses, types_gen_d_OrganizationIdBody as OrganizationIdBody, types_gen_d_OrganizationIdParams as OrganizationIdParams, types_gen_d_OrganizationIdResponse200 as OrganizationIdResponse200, types_gen_d_OrganizationListData as OrganizationListData, types_gen_d_OrganizationListError as OrganizationListError, types_gen_d_OrganizationListErrors as OrganizationListErrors, types_gen_d_OrganizationListResponse as OrganizationListResponse, types_gen_d_OrganizationListResponses as OrganizationListResponses, 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_OrganizationRetrieveData as OrganizationRetrieveData, types_gen_d_OrganizationRetrieveError as OrganizationRetrieveError, types_gen_d_OrganizationRetrieveErrors as OrganizationRetrieveErrors, types_gen_d_OrganizationRetrieveResponse as OrganizationRetrieveResponse, types_gen_d_OrganizationRetrieveResponses as OrganizationRetrieveResponses, types_gen_d_OrganizationSetCurrentData as OrganizationSetCurrentData, types_gen_d_OrganizationSetCurrentError as OrganizationSetCurrentError, types_gen_d_OrganizationSetCurrentErrors as OrganizationSetCurrentErrors, types_gen_d_OrganizationSetCurrentResponse as OrganizationSetCurrentResponse, types_gen_d_OrganizationSetCurrentResponses as OrganizationSetCurrentResponses, types_gen_d_OrganizationUpdateData as OrganizationUpdateData, types_gen_d_OrganizationUpdateError as OrganizationUpdateError, types_gen_d_OrganizationUpdateErrors as OrganizationUpdateErrors, types_gen_d_OrganizationUpdateResponse as OrganizationUpdateResponse, types_gen_d_OrganizationUpdateResponses as OrganizationUpdateResponses, types_gen_d_OrganizationsBody as OrganizationsBody, types_gen_d_OrganizationsResponse200 as OrganizationsResponse200, types_gen_d_OrganizationsResponse201 as OrganizationsResponse201, 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_SubscriptionBody as SubscriptionBody, types_gen_d_SubscriptionResponse200 as SubscriptionResponse200 };
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_OrganizationCreateData as OrganizationCreateData, types_gen_d_OrganizationCreateError as OrganizationCreateError, types_gen_d_OrganizationCreateErrors as OrganizationCreateErrors, types_gen_d_OrganizationCreateResponse as OrganizationCreateResponse, types_gen_d_OrganizationCreateResponses as OrganizationCreateResponses, types_gen_d_OrganizationDeleteData as OrganizationDeleteData, types_gen_d_OrganizationDeleteError as OrganizationDeleteError, types_gen_d_OrganizationDeleteErrors as OrganizationDeleteErrors, types_gen_d_OrganizationDeleteResponse as OrganizationDeleteResponse, types_gen_d_OrganizationDeleteResponses as OrganizationDeleteResponses, types_gen_d_OrganizationIdBody as OrganizationIdBody, types_gen_d_OrganizationIdParams as OrganizationIdParams, types_gen_d_OrganizationIdResponse200 as OrganizationIdResponse200, types_gen_d_OrganizationListData as OrganizationListData, types_gen_d_OrganizationListError as OrganizationListError, types_gen_d_OrganizationListErrors as OrganizationListErrors, types_gen_d_OrganizationListResponse as OrganizationListResponse, types_gen_d_OrganizationListResponses as OrganizationListResponses, 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_OrganizationRetrieveData as OrganizationRetrieveData, types_gen_d_OrganizationRetrieveError as OrganizationRetrieveError, types_gen_d_OrganizationRetrieveErrors as OrganizationRetrieveErrors, types_gen_d_OrganizationRetrieveResponse as OrganizationRetrieveResponse, types_gen_d_OrganizationRetrieveResponses as OrganizationRetrieveResponses, types_gen_d_OrganizationUpdateData as OrganizationUpdateData, types_gen_d_OrganizationUpdateError as OrganizationUpdateError, types_gen_d_OrganizationUpdateErrors as OrganizationUpdateErrors, types_gen_d_OrganizationUpdateResponse as OrganizationUpdateResponse, types_gen_d_OrganizationUpdateResponses as OrganizationUpdateResponses, types_gen_d_OrganizationsBody as OrganizationsBody, types_gen_d_OrganizationsResponse200 as OrganizationsResponse200, types_gen_d_OrganizationsResponse201 as OrganizationsResponse201, 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 };
1345
2382
  }
1346
2383
 
1347
2384
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
@@ -1363,17 +2400,132 @@ declare class HeyApiClient {
1363
2400
  client?: Client;
1364
2401
  });
1365
2402
  }
2403
+ declare class HeyApiRegistry3<T> {
2404
+ private readonly defaultKey;
2405
+ private readonly instances;
2406
+ get(key?: string): T;
2407
+ set(value: T, key?: string): void;
2408
+ }
2409
+ declare class Users extends HeyApiClient {
2410
+ getCurrentOrganization<ThrowOnError extends boolean = false>(userId: string, options?: Options<never, ThrowOnError>): RequestResult<UsersGetCurrentOrganizationResponses, UsersGetCurrentOrganizationErrors, ThrowOnError, "data">;
2411
+ setCurrentOrganization<ThrowOnError extends boolean = false>(user_id: string, parameters?: {
2412
+ organization_id?: string | null;
2413
+ }, options?: Options<never, ThrowOnError>): RequestResult<UsersSetCurrentOrganizationResponses, UsersSetCurrentOrganizationErrors, ThrowOnError, "data">;
2414
+ watchMailbox<ThrowOnError extends boolean = false>(user_id: string, parameters?: {
2415
+ provider?: 'gmail' | 'outlook';
2416
+ force?: boolean;
2417
+ }, options?: Options<never, ThrowOnError>): RequestResult<UsersWatchMailboxResponses, UsersWatchMailboxErrors, ThrowOnError, "data">;
2418
+ deleteAction<ThrowOnError extends boolean = false>(user_id: string, action_id: string, options?: Options<never, ThrowOnError>): RequestResult<UsersDeleteActionResponses, UsersDeleteActionErrors, ThrowOnError, "data">;
2419
+ }
2420
+ declare class Organization extends HeyApiClient {
2421
+ list<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<OrganizationListResponses, OrganizationListErrors, ThrowOnError, "data">;
2422
+ create<ThrowOnError extends boolean = false>(parameters?: {
2423
+ name?: string;
2424
+ }, options?: Options<never, ThrowOnError>): RequestResult<OrganizationCreateResponses, OrganizationCreateErrors, ThrowOnError, "data">;
2425
+ delete<ThrowOnError extends boolean = false>(organization_id: string, options?: Options<never, ThrowOnError>): RequestResult<OrganizationDeleteResponses, OrganizationDeleteErrors, ThrowOnError, "data">;
2426
+ retrieve<ThrowOnError extends boolean = false>(organization_id: string, options?: Options<never, ThrowOnError>): RequestResult<OrganizationRetrieveResponses, OrganizationRetrieveErrors, ThrowOnError, "data">;
2427
+ update<ThrowOnError extends boolean = false>(organization_id: string, parameters?: {
2428
+ name?: string;
2429
+ }, options?: Options<never, ThrowOnError>): RequestResult<OrganizationUpdateResponses, OrganizationUpdateErrors, ThrowOnError, "data">;
2430
+ }
2431
+ declare class Organizations extends HeyApiClient {
2432
+ static readonly __registry: HeyApiRegistry3<Organizations>;
2433
+ constructor(args?: {
2434
+ client?: Client;
2435
+ key?: string;
2436
+ });
2437
+ private _organization?;
2438
+ get organization(): Organization;
2439
+ }
2440
+ declare class ContactLists extends HeyApiClient {
2441
+ create<ThrowOnError extends boolean = false>(parameters?: {
2442
+ owner?: string;
2443
+ name?: string;
2444
+ metadata?: {
2445
+ [key: string]: string;
2446
+ };
2447
+ }, options?: Options<never, ThrowOnError>): RequestResult<ContactListsCreateResponses, ContactListsCreateErrors, ThrowOnError, "data">;
2448
+ remove<ThrowOnError extends boolean = false>(contact_list_id: string, parameters?: {
2449
+ remove_contacts?: boolean;
2450
+ }, options?: Options<never, ThrowOnError>): RequestResult<ContactListsRemoveResponses, ContactListsRemoveErrors, ThrowOnError, "data">;
2451
+ retrieve<ThrowOnError extends boolean = false>(contact_list_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactListsRetrieveResponses, ContactListsRetrieveErrors, ThrowOnError, "data">;
2452
+ update<ThrowOnError extends boolean = false>(contact_list_id: string, parameters?: {
2453
+ name?: string;
2454
+ metadata?: {
2455
+ [key: string]: string;
2456
+ };
2457
+ }, options?: Options<never, ThrowOnError>): RequestResult<ContactListsUpdateResponses, ContactListsUpdateErrors, ThrowOnError, "data">;
2458
+ }
2459
+ declare class Contacts extends HeyApiClient {
2460
+ delAll<ThrowOnError extends boolean = false>(parameters?: {
2461
+ owner?: string;
2462
+ contact_list?: string;
2463
+ }, options?: Options<never, ThrowOnError>): RequestResult<ContactsDelAllResponses, ContactsDelAllErrors, ThrowOnError, "data">;
2464
+ list<ThrowOnError extends boolean = false>(parameters: {
2465
+ owner: string;
2466
+ limit?: number;
2467
+ email?: string;
2468
+ unsubscribed?: boolean | null;
2469
+ contact_list?: string;
2470
+ }, options?: Options<never, ThrowOnError>): RequestResult<ContactsListResponses, ContactsListErrors, ThrowOnError, "data">;
2471
+ create<ThrowOnError extends boolean = false>(parameters?: {
2472
+ owner?: string;
2473
+ email?: string;
2474
+ blocked?: boolean;
2475
+ unsubscribed?: boolean;
2476
+ contact_lists?: Array<string>;
2477
+ properties?: {
2478
+ [key: string]: string;
2479
+ };
2480
+ notes?: string;
2481
+ metadata?: {
2482
+ [key: string]: string;
2483
+ };
2484
+ }, options?: Options<never, ThrowOnError>): RequestResult<ContactsCreateResponses, ContactsCreateErrors, ThrowOnError, "data">;
2485
+ batchCreate<ThrowOnError extends boolean = false>(parameters?: {
2486
+ contacts?: Array<{
2487
+ owner: string;
2488
+ email: string;
2489
+ blocked?: boolean;
2490
+ unsubscribed?: boolean;
2491
+ contact_lists?: Array<string>;
2492
+ properties?: {
2493
+ [key: string]: string;
2494
+ };
2495
+ notes?: string;
2496
+ metadata?: {
2497
+ [key: string]: string;
2498
+ };
2499
+ }>;
2500
+ }, options?: Options<never, ThrowOnError>): RequestResult<ContactsBatchCreateResponses, ContactsBatchCreateErrors, ThrowOnError, "data">;
2501
+ batchCreate2<ThrowOnError extends boolean = false>(parameters?: {
2502
+ body?: unknown;
2503
+ }, options?: Options<never, ThrowOnError>): RequestResult<ContactsBatchCreate2Responses, ContactsBatchCreate2Errors, ThrowOnError, "data">;
2504
+ del<ThrowOnError extends boolean = false>(contact_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactsDelResponses, ContactsDelErrors, ThrowOnError, "data">;
2505
+ retrieve<ThrowOnError extends boolean = false>(contact_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactsRetrieveResponses, ContactsRetrieveErrors, ThrowOnError, "data">;
2506
+ update<ThrowOnError extends boolean = false>(contact_id: string, parameters?: {
2507
+ blocked?: boolean;
2508
+ unsubscribed?: boolean;
2509
+ contact_lists?: Array<string>;
2510
+ properties?: {
2511
+ [key: string]: string;
2512
+ };
2513
+ notes?: string;
2514
+ metadata?: {
2515
+ [key: string]: string;
2516
+ };
2517
+ }, options?: Options<never, ThrowOnError>): RequestResult<ContactsUpdateResponses, ContactsUpdateErrors, ThrowOnError, "data">;
2518
+ block<ThrowOnError extends boolean = false>(contact_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactsBlockResponses, ContactsBlockErrors, ThrowOnError, "data">;
2519
+ unblock<ThrowOnError extends boolean = false>(contact_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactsUnblockResponses, ContactsUnblockErrors, ThrowOnError, "data">;
2520
+ resubscribe<ThrowOnError extends boolean = false>(contact_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactsResubscribeResponses, ContactsResubscribeErrors, ThrowOnError, "data">;
2521
+ }
1366
2522
  declare class BillingAddons extends HeyApiClient {
1367
2523
  getAddons<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsGetAddonsResponses, BillingAddonsGetAddonsErrors, ThrowOnError, "data">;
1368
- previewUpdate<ThrowOnError extends boolean = false>(parameters: {
1369
- addon: 'senders' | 'email_warmups';
2524
+ previewUpdate<ThrowOnError extends boolean = false>(addon: 'senders' | 'email_warmups', parameters?: {
1370
2525
  quantity?: number;
1371
2526
  }, options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsPreviewUpdateResponses, BillingAddonsPreviewUpdateErrors, ThrowOnError, "data">;
1372
- getAddonUsages<ThrowOnError extends boolean = false>(parameters: {
1373
- addon: 'senders' | 'email_warmups';
1374
- }, options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsGetAddonUsagesResponses, BillingAddonsGetAddonUsagesErrors, ThrowOnError, "data">;
1375
- update<ThrowOnError extends boolean = false>(parameters: {
1376
- addon: 'senders' | 'email_warmups';
2527
+ getAddonUsages<ThrowOnError extends boolean = false>(addon: 'senders' | 'email_warmups', options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsGetAddonUsagesResponses, BillingAddonsGetAddonUsagesErrors, ThrowOnError, "data">;
2528
+ update<ThrowOnError extends boolean = false>(addon: 'senders' | 'email_warmups', parameters?: {
1377
2529
  quantity?: number;
1378
2530
  }, options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsUpdateResponses, BillingAddonsUpdateErrors, ThrowOnError, "data">;
1379
2531
  }
@@ -1409,6 +2561,10 @@ declare class Mailmeteor {
1409
2561
  readonly billingAddons: BillingAddons;
1410
2562
  readonly billingSubscription: BillingSubscription;
1411
2563
  readonly billing: Billing;
2564
+ readonly contactLists: ContactLists;
2565
+ readonly organizations: Organizations;
2566
+ readonly users: Users;
2567
+ readonly contacts: Contacts;
1412
2568
  constructor(key: string, config?: MailmeteorConfig);
1413
2569
  /**
1414
2570
  * Update the API key for authentication