mailmeteor 0.0.3 → 0.0.4

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 +270 -151
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.ts +860 -514
  4. package/dist/index.mjs +270 -151
  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 +111 -71
  20. package/dist/types/generated-sdk/sdk.gen.d.ts.map +1 -1
  21. package/dist/types/generated-sdk/types.gen.d.ts +741 -489
  22. package/dist/types/generated-sdk/types.gen.d.ts.map +1 -1
  23. package/dist/types/index.d.ts +4 -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,185 @@ 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
+ };
324
503
  type AddonsResponse200 = {
325
504
  senders?: {
326
505
  included_per_seat: number;
@@ -419,470 +598,251 @@ type PricesResponse200 = {
419
598
  year: number;
420
599
  };
421
600
  };
422
- type CurrentResponse200 = {
423
- current_organization_id: string | null;
424
- };
425
- type CurrentBody = {
426
- organization_id?: string | null;
601
+ type OpenapiJsonResponse200 = unknown;
602
+ type UsersGetCurrentOrganizationData = {
603
+ body?: never;
604
+ path: {
605
+ userId: string;
606
+ };
607
+ query?: never;
608
+ url: '/users/{userId}/current_organization';
427
609
  };
428
- type OrganizationsResponse200 = Array<{
429
- name: string;
430
- owner: string;
610
+ type UsersGetCurrentOrganizationErrors = {
431
611
  /**
432
- * Creation date
612
+ * Error response
433
613
  */
434
- created_at: string;
614
+ default: ErrorResponse;
615
+ };
616
+ type UsersGetCurrentOrganizationError = UsersGetCurrentOrganizationErrors[keyof UsersGetCurrentOrganizationErrors];
617
+ type UsersGetCurrentOrganizationResponses = {
435
618
  /**
436
- * Last Update date
619
+ * Response
437
620
  */
438
- updated_at?: string;
439
- id: string;
440
- object: 'organization';
441
- }>;
442
- type OrganizationsBody = {
443
- name: string;
621
+ 200: {
622
+ current_organization_id: string | null;
623
+ };
444
624
  };
445
- type OrganizationsResponse201 = {
446
- name: string;
447
- owner: string;
625
+ type UsersGetCurrentOrganizationResponse = UsersGetCurrentOrganizationResponses[keyof UsersGetCurrentOrganizationResponses];
626
+ type UsersSetCurrentOrganizationData = {
627
+ body?: {
628
+ organization_id?: string | null;
629
+ };
630
+ path: {
631
+ user_id: string;
632
+ };
633
+ query?: never;
634
+ url: '/users/{user_id}/current_organization';
635
+ };
636
+ type UsersSetCurrentOrganizationErrors = {
448
637
  /**
449
- * Creation date
638
+ * Error response
450
639
  */
451
- created_at: string;
640
+ default: ErrorResponse;
641
+ };
642
+ type UsersSetCurrentOrganizationError = UsersSetCurrentOrganizationErrors[keyof UsersSetCurrentOrganizationErrors];
643
+ type UsersSetCurrentOrganizationResponses = {
452
644
  /**
453
- * Last Update date
645
+ * Response
454
646
  */
455
- updated_at?: string;
456
- id: string;
457
- object: 'organization';
647
+ 200: {
648
+ current_organization_id: string | null;
649
+ };
458
650
  };
459
- type OrganizationIdParams = {
460
- organization_id: string;
651
+ type UsersSetCurrentOrganizationResponse = UsersSetCurrentOrganizationResponses[keyof UsersSetCurrentOrganizationResponses];
652
+ type UsersWatchMailboxData = {
653
+ body?: {
654
+ provider?: 'gmail' | 'outlook';
655
+ force?: boolean;
656
+ };
657
+ path: {
658
+ user_id: string;
659
+ };
660
+ query?: never;
661
+ url: '/users/{user_id}/watch_mailbox';
461
662
  };
462
- type OrganizationIdResponse200 = {
463
- name: string;
464
- owner: string;
663
+ type UsersWatchMailboxErrors = {
465
664
  /**
466
- * Creation date
665
+ * Error response
467
666
  */
468
- created_at: string;
667
+ default: ErrorResponse;
668
+ };
669
+ type UsersWatchMailboxError = UsersWatchMailboxErrors[keyof UsersWatchMailboxErrors];
670
+ type UsersWatchMailboxResponses = {
469
671
  /**
470
- * Last Update date
672
+ * Response
471
673
  */
472
- updated_at?: string;
473
- id: string;
474
- object: 'organization';
475
- };
476
- type OrganizationIdBody = {
477
- name?: string;
478
- };
479
- type MembersQuery = {
480
- limit?: number;
481
- starting_after?: string;
674
+ 204: void;
482
675
  };
483
- type MembersParams = {
484
- organization_id: string;
676
+ type UsersWatchMailboxResponse = UsersWatchMailboxResponses[keyof UsersWatchMailboxResponses];
677
+ type UsersDeleteActionData = {
678
+ body?: never;
679
+ path: {
680
+ user_id: string;
681
+ action_id: string;
682
+ };
683
+ query?: never;
684
+ url: '/users/{user_id}/actions/{action_id}';
485
685
  };
486
- type MembersResponse200 = Array<{
487
- email: string;
488
- name?: string;
489
- profile_picture_url?: string;
490
- role: 'admin' | 'member';
491
- /**
492
- * Creation date
493
- */
494
- created_at: string;
686
+ type UsersDeleteActionErrors = {
495
687
  /**
496
- * Last Update date
688
+ * Error response
497
689
  */
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';
690
+ default: ErrorResponse;
506
691
  };
507
- type MembersResponse201 = {
508
- email: string;
509
- name?: string;
510
- profile_picture_url?: string;
511
- role: 'admin' | 'member';
692
+ type UsersDeleteActionError = UsersDeleteActionErrors[keyof UsersDeleteActionErrors];
693
+ type UsersDeleteActionResponses = {
512
694
  /**
513
- * Creation date
695
+ * Response
514
696
  */
515
- created_at: string;
516
- /**
517
- * Last Update date
518
- */
519
- updated_at?: string;
520
- id: string;
521
- organization_id: string;
522
- object: 'organization_member';
523
- };
524
- type MemberIdBody = {
525
- role: 'admin' | 'member';
526
- };
527
- type MemberIdParams = {
528
- organization_id: string;
529
- member_id: string;
530
- };
531
- type MemberIdResponse200 = {
532
- email: string;
533
- name?: string;
534
- profile_picture_url?: string;
535
- role: 'admin' | 'member';
536
- /**
537
- * Creation date
538
- */
539
- created_at: string;
540
- /**
541
- * Last Update date
542
- */
543
- updated_at?: string;
544
- id: string;
545
- organization_id: string;
546
- object: 'organization_member';
697
+ 204: void;
547
698
  };
548
- type OpenapiJsonResponse200 = unknown;
549
- type BillingAddonsGetAddonsData = {
699
+ type UsersDeleteActionResponse = UsersDeleteActionResponses[keyof UsersDeleteActionResponses];
700
+ type OrganizationMemberListData = {
550
701
  body?: never;
551
- path?: never;
552
- query?: never;
553
- url: '/billing/addons';
554
- };
555
- type BillingAddonsGetAddonsErrors = {
556
- /**
557
- * Error response
558
- */
559
- default: ErrorResponse;
560
- };
561
- type BillingAddonsGetAddonsError = BillingAddonsGetAddonsErrors[keyof BillingAddonsGetAddonsErrors];
562
- type BillingAddonsGetAddonsResponses = {
563
- /**
564
- * Response
565
- */
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;
590
- };
591
- };
592
- };
593
- type BillingAddonsGetAddonsResponse = BillingAddonsGetAddonsResponses[keyof BillingAddonsGetAddonsResponses];
594
- type BillingAddonsPreviewUpdateData = {
595
- body?: {
596
- quantity: number;
597
- };
598
702
  path: {
599
- addon: 'senders' | 'email_warmups';
600
- };
601
- query?: never;
602
- url: '/billing/addons/{addon}/preview';
603
- };
604
- type BillingAddonsPreviewUpdateErrors = {
605
- /**
606
- * Error response
607
- */
608
- default: ErrorResponse;
609
- };
610
- type BillingAddonsPreviewUpdateError = BillingAddonsPreviewUpdateErrors[keyof BillingAddonsPreviewUpdateErrors];
611
- type BillingAddonsPreviewUpdateResponses = {
612
- /**
613
- * Response
614
- */
615
- 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;
703
+ organization_id: string;
623
704
  };
624
- };
625
- type BillingAddonsPreviewUpdateResponse = BillingAddonsPreviewUpdateResponses[keyof BillingAddonsPreviewUpdateResponses];
626
- type BillingAddonsGetAddonUsagesData = {
627
- body?: never;
628
- path: {
629
- addon: 'senders' | 'email_warmups';
705
+ query?: {
706
+ limit?: number;
707
+ starting_after?: string;
630
708
  };
631
- query?: never;
632
- url: '/billing/addons/{addon}';
709
+ url: '/organizations/{organization_id}/members';
633
710
  };
634
- type BillingAddonsGetAddonUsagesErrors = {
711
+ type OrganizationMemberListErrors = {
635
712
  /**
636
713
  * Error response
637
714
  */
638
715
  default: ErrorResponse;
639
716
  };
640
- type BillingAddonsGetAddonUsagesError = BillingAddonsGetAddonUsagesErrors[keyof BillingAddonsGetAddonUsagesErrors];
641
- type BillingAddonsGetAddonUsagesResponses = {
717
+ type OrganizationMemberListError = OrganizationMemberListErrors[keyof OrganizationMemberListErrors];
718
+ type OrganizationMemberListResponses = {
642
719
  /**
643
720
  * Response
644
721
  */
645
722
  200: Array<{
646
- id: string;
647
723
  email: string;
648
- usage: number;
724
+ name?: string;
725
+ profile_picture_url?: string;
726
+ role: 'admin' | 'member';
727
+ /**
728
+ * Creation date
729
+ */
730
+ created_at: string;
731
+ /**
732
+ * Last Update date
733
+ */
734
+ updated_at?: string;
735
+ id: string;
736
+ organization_id: string;
737
+ object: 'organization_member';
649
738
  }>;
650
739
  };
651
- type BillingAddonsGetAddonUsagesResponse = BillingAddonsGetAddonUsagesResponses[keyof BillingAddonsGetAddonUsagesResponses];
652
- type BillingAddonsUpdateData = {
740
+ type OrganizationMemberListResponse = OrganizationMemberListResponses[keyof OrganizationMemberListResponses];
741
+ type OrganizationMemberCreateData = {
653
742
  body?: {
654
- quantity: number;
743
+ email: string;
744
+ role: 'admin' | 'member';
655
745
  };
656
746
  path: {
657
- addon: 'senders' | 'email_warmups';
658
- };
659
- query?: never;
660
- url: '/billing/addons/{addon}';
661
- };
662
- type BillingAddonsUpdateErrors = {
663
- /**
664
- * Error response
665
- */
666
- default: ErrorResponse;
667
- };
668
- type BillingAddonsUpdateError = BillingAddonsUpdateErrors[keyof BillingAddonsUpdateErrors];
669
- type BillingAddonsUpdateResponses = {
670
- /**
671
- * Response
672
- */
673
- 200: {
674
- status: 'confirmation_required' | 'success' | 'payment_failed';
675
- client_secret?: string;
676
- failure_code?: string;
747
+ organization_id: string;
677
748
  };
678
- };
679
- type BillingAddonsUpdateResponse = BillingAddonsUpdateResponses[keyof BillingAddonsUpdateResponses];
680
- type BillingSubscriptionGetData = {
681
- body?: never;
682
- path?: never;
683
749
  query?: never;
684
- url: '/billing/subscription';
750
+ url: '/organizations/{organization_id}/members';
685
751
  };
686
- type BillingSubscriptionGetErrors = {
752
+ type OrganizationMemberCreateErrors = {
687
753
  /**
688
754
  * Error response
689
755
  */
690
756
  default: ErrorResponse;
691
757
  };
692
- type BillingSubscriptionGetError = BillingSubscriptionGetErrors[keyof BillingSubscriptionGetErrors];
693
- type BillingSubscriptionGetResponses = {
758
+ type OrganizationMemberCreateError = OrganizationMemberCreateErrors[keyof OrganizationMemberCreateErrors];
759
+ type OrganizationMemberCreateResponses = {
694
760
  /**
695
761
  * Response
696
762
  */
697
- 200: {
763
+ 201: {
764
+ email: string;
765
+ name?: string;
766
+ profile_picture_url?: string;
767
+ role: 'admin' | 'member';
768
+ /**
769
+ * Creation date
770
+ */
771
+ created_at: string;
772
+ /**
773
+ * Last Update date
774
+ */
775
+ updated_at?: string;
698
776
  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;
720
- };
721
- email_warmups?: {
722
- quantity: number;
723
- };
724
- };
725
- } | null;
726
- };
727
- type BillingSubscriptionGetResponse = BillingSubscriptionGetResponses[keyof BillingSubscriptionGetResponses];
728
- type BillingSubscriptionUpdateData = {
729
- body?: {
730
- plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
731
- billing_period: 'month' | 'year';
732
- };
733
- path?: never;
734
- query?: never;
735
- url: '/billing/subscription';
736
- };
737
- type BillingSubscriptionUpdateErrors = {
738
- /**
739
- * Error response
740
- */
741
- default: ErrorResponse;
742
- };
743
- type BillingSubscriptionUpdateError = BillingSubscriptionUpdateErrors[keyof BillingSubscriptionUpdateErrors];
744
- type BillingSubscriptionUpdateResponses = {
745
- /**
746
- * Response
747
- */
748
- 200: {
749
- status: 'confirmation_required' | 'success' | 'payment_failed';
750
- client_secret?: string;
751
- failure_code?: string;
752
- };
753
- };
754
- type BillingSubscriptionUpdateResponse = BillingSubscriptionUpdateResponses[keyof BillingSubscriptionUpdateResponses];
755
- type BillingSubscriptionPreviewUpdateData = {
756
- body?: {
757
- plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
758
- billing_period: 'month' | 'year';
759
- };
760
- path?: never;
761
- query?: never;
762
- url: '/billing/subscription/preview';
763
- };
764
- type BillingSubscriptionPreviewUpdateErrors = {
765
- /**
766
- * Error response
767
- */
768
- default: ErrorResponse;
769
- };
770
- type BillingSubscriptionPreviewUpdateError = BillingSubscriptionPreviewUpdateErrors[keyof BillingSubscriptionPreviewUpdateErrors];
771
- type BillingSubscriptionPreviewUpdateResponses = {
772
- /**
773
- * Response
774
- */
775
- 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
- }>;
777
+ organization_id: string;
778
+ object: 'organization_member';
794
779
  };
795
780
  };
796
- type BillingSubscriptionPreviewUpdateResponse = BillingSubscriptionPreviewUpdateResponses[keyof BillingSubscriptionPreviewUpdateResponses];
797
- type BillingGetPricesData = {
781
+ type OrganizationMemberCreateResponse = OrganizationMemberCreateResponses[keyof OrganizationMemberCreateResponses];
782
+ type OrganizationMemberDeleteData = {
798
783
  body?: never;
799
- path?: never;
800
- query: {
801
- currency: string;
802
- };
803
- url: '/billing/prices';
804
- };
805
- type BillingGetPricesErrors = {
806
- /**
807
- * Error response
808
- */
809
- default: ErrorResponse;
810
- };
811
- type BillingGetPricesError = BillingGetPricesErrors[keyof BillingGetPricesErrors];
812
- type BillingGetPricesResponses = {
813
- /**
814
- * Response
815
- */
816
- 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;
832
- };
833
- business?: {
834
- month: number;
835
- year: number;
836
- };
784
+ path: {
785
+ organization_id: string;
786
+ member_id: string;
837
787
  };
838
- };
839
- type BillingGetPricesResponse = BillingGetPricesResponses[keyof BillingGetPricesResponses];
840
- type OrganizationGetCurrentData = {
841
- body?: never;
842
- path?: never;
843
788
  query?: never;
844
- url: '/organizations/current';
789
+ url: '/organizations/{organization_id}/members/{member_id}';
845
790
  };
846
- type OrganizationGetCurrentErrors = {
791
+ type OrganizationMemberDeleteErrors = {
847
792
  /**
848
793
  * Error response
849
794
  */
850
795
  default: ErrorResponse;
851
796
  };
852
- type OrganizationGetCurrentError = OrganizationGetCurrentErrors[keyof OrganizationGetCurrentErrors];
853
- type OrganizationGetCurrentResponses = {
797
+ type OrganizationMemberDeleteError = OrganizationMemberDeleteErrors[keyof OrganizationMemberDeleteErrors];
798
+ type OrganizationMemberDeleteResponses = {
854
799
  /**
855
800
  * Response
856
801
  */
857
- 200: {
858
- current_organization_id: string | null;
859
- };
802
+ 204: void;
860
803
  };
861
- type OrganizationGetCurrentResponse = OrganizationGetCurrentResponses[keyof OrganizationGetCurrentResponses];
862
- type OrganizationSetCurrentData = {
804
+ type OrganizationMemberDeleteResponse = OrganizationMemberDeleteResponses[keyof OrganizationMemberDeleteResponses];
805
+ type OrganizationMemberUpdateData = {
863
806
  body?: {
864
- organization_id?: string | null;
807
+ role: 'admin' | 'member';
808
+ };
809
+ path: {
810
+ organization_id: string;
811
+ member_id: string;
865
812
  };
866
- path?: never;
867
813
  query?: never;
868
- url: '/organizations/current';
814
+ url: '/organizations/{organization_id}/members/{member_id}';
869
815
  };
870
- type OrganizationSetCurrentErrors = {
816
+ type OrganizationMemberUpdateErrors = {
871
817
  /**
872
818
  * Error response
873
819
  */
874
820
  default: ErrorResponse;
875
821
  };
876
- type OrganizationSetCurrentError = OrganizationSetCurrentErrors[keyof OrganizationSetCurrentErrors];
877
- type OrganizationSetCurrentResponses = {
822
+ type OrganizationMemberUpdateError = OrganizationMemberUpdateErrors[keyof OrganizationMemberUpdateErrors];
823
+ type OrganizationMemberUpdateResponses = {
878
824
  /**
879
825
  * Response
880
826
  */
881
827
  200: {
882
- current_organization_id: string | null;
828
+ email: string;
829
+ name?: string;
830
+ profile_picture_url?: string;
831
+ role: 'admin' | 'member';
832
+ /**
833
+ * Creation date
834
+ */
835
+ created_at: string;
836
+ /**
837
+ * Last Update date
838
+ */
839
+ updated_at?: string;
840
+ id: string;
841
+ organization_id: string;
842
+ object: 'organization_member';
883
843
  };
884
844
  };
885
- type OrganizationSetCurrentResponse = OrganizationSetCurrentResponses[keyof OrganizationSetCurrentResponses];
845
+ type OrganizationMemberUpdateResponse = OrganizationMemberUpdateResponses[keyof OrganizationMemberUpdateResponses];
886
846
  type OrganizationListData = {
887
847
  body?: never;
888
848
  path?: never;
@@ -1007,190 +967,482 @@ type OrganizationRetrieveResponses = {
1007
967
  object: 'organization';
1008
968
  };
1009
969
  };
1010
- type OrganizationRetrieveResponse = OrganizationRetrieveResponses[keyof OrganizationRetrieveResponses];
1011
- type OrganizationUpdateData = {
970
+ type OrganizationRetrieveResponse = OrganizationRetrieveResponses[keyof OrganizationRetrieveResponses];
971
+ type OrganizationUpdateData = {
972
+ body?: {
973
+ name?: string;
974
+ };
975
+ path: {
976
+ organization_id: string;
977
+ };
978
+ query?: never;
979
+ url: '/organizations/{organization_id}';
980
+ };
981
+ type OrganizationUpdateErrors = {
982
+ /**
983
+ * Error response
984
+ */
985
+ default: ErrorResponse;
986
+ };
987
+ type OrganizationUpdateError = OrganizationUpdateErrors[keyof OrganizationUpdateErrors];
988
+ type OrganizationUpdateResponses = {
989
+ /**
990
+ * Response
991
+ */
992
+ 200: {
993
+ name: string;
994
+ owner: string;
995
+ /**
996
+ * Creation date
997
+ */
998
+ created_at: string;
999
+ /**
1000
+ * Last Update date
1001
+ */
1002
+ updated_at?: string;
1003
+ id: string;
1004
+ object: 'organization';
1005
+ };
1006
+ };
1007
+ type OrganizationUpdateResponse = OrganizationUpdateResponses[keyof OrganizationUpdateResponses];
1008
+ type ContactListsCreateData = {
1009
+ body?: {
1010
+ owner: string;
1011
+ name: string;
1012
+ metadata?: {
1013
+ [key: string]: string;
1014
+ };
1015
+ };
1016
+ path?: never;
1017
+ query?: never;
1018
+ url: '/contact_lists';
1019
+ };
1020
+ type ContactListsCreateErrors = {
1021
+ /**
1022
+ * Error response
1023
+ */
1024
+ default: ErrorResponse;
1025
+ };
1026
+ type ContactListsCreateError = ContactListsCreateErrors[keyof ContactListsCreateErrors];
1027
+ type ContactListsCreateResponses = {
1028
+ /**
1029
+ * Response
1030
+ */
1031
+ 201: {
1032
+ owner: string;
1033
+ name: string;
1034
+ created_at: number;
1035
+ updated_at?: number;
1036
+ deleted?: boolean;
1037
+ deleted_at?: number;
1038
+ metadata?: {
1039
+ [key: string]: string;
1040
+ };
1041
+ id: string;
1042
+ object: 'contact_list';
1043
+ };
1044
+ };
1045
+ type ContactListsCreateResponse = ContactListsCreateResponses[keyof ContactListsCreateResponses];
1046
+ type ContactListsRemoveData = {
1047
+ body?: {
1048
+ remove_contacts?: boolean;
1049
+ };
1050
+ path: {
1051
+ contact_list_id: string;
1052
+ };
1053
+ query?: never;
1054
+ url: '/contact_lists/{contact_list_id}';
1055
+ };
1056
+ type ContactListsRemoveErrors = {
1057
+ /**
1058
+ * Error response
1059
+ */
1060
+ default: ErrorResponse;
1061
+ };
1062
+ type ContactListsRemoveError = ContactListsRemoveErrors[keyof ContactListsRemoveErrors];
1063
+ type ContactListsRemoveResponses = {
1064
+ /**
1065
+ * Response
1066
+ */
1067
+ 200: {
1068
+ owner: string;
1069
+ name: string;
1070
+ created_at: number;
1071
+ updated_at?: number;
1072
+ deleted?: boolean;
1073
+ deleted_at?: number;
1074
+ metadata?: {
1075
+ [key: string]: string;
1076
+ };
1077
+ id: string;
1078
+ object: 'contact_list';
1079
+ };
1080
+ };
1081
+ type ContactListsRemoveResponse = ContactListsRemoveResponses[keyof ContactListsRemoveResponses];
1082
+ type ContactListsRetrieveData = {
1083
+ body?: never;
1084
+ path: {
1085
+ contact_list_id: string;
1086
+ };
1087
+ query?: never;
1088
+ url: '/contact_lists/{contact_list_id}';
1089
+ };
1090
+ type ContactListsRetrieveErrors = {
1091
+ /**
1092
+ * Error response
1093
+ */
1094
+ default: ErrorResponse;
1095
+ };
1096
+ type ContactListsRetrieveError = ContactListsRetrieveErrors[keyof ContactListsRetrieveErrors];
1097
+ type ContactListsRetrieveResponses = {
1098
+ /**
1099
+ * Response
1100
+ */
1101
+ 200: {
1102
+ owner: string;
1103
+ name: string;
1104
+ created_at: number;
1105
+ updated_at?: number;
1106
+ deleted?: boolean;
1107
+ deleted_at?: number;
1108
+ metadata?: {
1109
+ [key: string]: string;
1110
+ };
1111
+ id: string;
1112
+ object: 'contact_list';
1113
+ };
1114
+ };
1115
+ type ContactListsRetrieveResponse = ContactListsRetrieveResponses[keyof ContactListsRetrieveResponses];
1116
+ type ContactListsUpdateData = {
1117
+ body?: {
1118
+ name: string;
1119
+ metadata?: {
1120
+ [key: string]: string;
1121
+ };
1122
+ };
1123
+ path: {
1124
+ contact_list_id: string;
1125
+ };
1126
+ query?: never;
1127
+ url: '/contact_lists/{contact_list_id}';
1128
+ };
1129
+ type ContactListsUpdateErrors = {
1130
+ /**
1131
+ * Error response
1132
+ */
1133
+ default: ErrorResponse;
1134
+ };
1135
+ type ContactListsUpdateError = ContactListsUpdateErrors[keyof ContactListsUpdateErrors];
1136
+ type ContactListsUpdateResponses = {
1137
+ /**
1138
+ * Response
1139
+ */
1140
+ 200: {
1141
+ owner: string;
1142
+ name: string;
1143
+ created_at: number;
1144
+ updated_at?: number;
1145
+ deleted?: boolean;
1146
+ deleted_at?: number;
1147
+ metadata?: {
1148
+ [key: string]: string;
1149
+ };
1150
+ id: string;
1151
+ object: 'contact_list';
1152
+ };
1153
+ };
1154
+ type ContactListsUpdateResponse = ContactListsUpdateResponses[keyof ContactListsUpdateResponses];
1155
+ type BillingAddonsGetAddonsData = {
1156
+ body?: never;
1157
+ path?: never;
1158
+ query?: never;
1159
+ url: '/billing/addons';
1160
+ };
1161
+ type BillingAddonsGetAddonsErrors = {
1162
+ /**
1163
+ * Error response
1164
+ */
1165
+ default: ErrorResponse;
1166
+ };
1167
+ type BillingAddonsGetAddonsError = BillingAddonsGetAddonsErrors[keyof BillingAddonsGetAddonsErrors];
1168
+ type BillingAddonsGetAddonsResponses = {
1169
+ /**
1170
+ * Response
1171
+ */
1172
+ 200: {
1173
+ senders?: {
1174
+ included_per_seat: number;
1175
+ included_total: number;
1176
+ used: number;
1177
+ extra: {
1178
+ price_amount: number;
1179
+ currency: string;
1180
+ quantity_per_addon: number;
1181
+ interval: 'day' | 'week' | 'month' | 'year';
1182
+ subscribed: number;
1183
+ } | null;
1184
+ };
1185
+ email_warmups?: {
1186
+ included_per_seat: number;
1187
+ included_total: number;
1188
+ used: number;
1189
+ extra: {
1190
+ price_amount: number;
1191
+ currency: string;
1192
+ quantity_per_addon: number;
1193
+ interval: 'day' | 'week' | 'month' | 'year';
1194
+ subscribed: number;
1195
+ } | null;
1196
+ };
1197
+ };
1198
+ };
1199
+ type BillingAddonsGetAddonsResponse = BillingAddonsGetAddonsResponses[keyof BillingAddonsGetAddonsResponses];
1200
+ type BillingAddonsPreviewUpdateData = {
1201
+ body?: {
1202
+ quantity: number;
1203
+ };
1204
+ path: {
1205
+ addon: 'senders' | 'email_warmups';
1206
+ };
1207
+ query?: never;
1208
+ url: '/billing/addons/{addon}/preview';
1209
+ };
1210
+ type BillingAddonsPreviewUpdateErrors = {
1211
+ /**
1212
+ * Error response
1213
+ */
1214
+ default: ErrorResponse;
1215
+ };
1216
+ type BillingAddonsPreviewUpdateError = BillingAddonsPreviewUpdateErrors[keyof BillingAddonsPreviewUpdateErrors];
1217
+ type BillingAddonsPreviewUpdateResponses = {
1218
+ /**
1219
+ * Response
1220
+ */
1221
+ 200: {
1222
+ discount_percents: Array<number>;
1223
+ total_excluding_tax: number;
1224
+ total: number;
1225
+ amount_due: number;
1226
+ added_from_balance: number;
1227
+ consumed_balance: number;
1228
+ credited_to_balance: number;
1229
+ };
1230
+ };
1231
+ type BillingAddonsPreviewUpdateResponse = BillingAddonsPreviewUpdateResponses[keyof BillingAddonsPreviewUpdateResponses];
1232
+ type BillingAddonsGetAddonUsagesData = {
1233
+ body?: never;
1234
+ path: {
1235
+ addon: 'senders' | 'email_warmups';
1236
+ };
1237
+ query?: never;
1238
+ url: '/billing/addons/{addon}';
1239
+ };
1240
+ type BillingAddonsGetAddonUsagesErrors = {
1241
+ /**
1242
+ * Error response
1243
+ */
1244
+ default: ErrorResponse;
1245
+ };
1246
+ type BillingAddonsGetAddonUsagesError = BillingAddonsGetAddonUsagesErrors[keyof BillingAddonsGetAddonUsagesErrors];
1247
+ type BillingAddonsGetAddonUsagesResponses = {
1248
+ /**
1249
+ * Response
1250
+ */
1251
+ 200: Array<{
1252
+ id: string;
1253
+ email: string;
1254
+ usage: number;
1255
+ }>;
1256
+ };
1257
+ type BillingAddonsGetAddonUsagesResponse = BillingAddonsGetAddonUsagesResponses[keyof BillingAddonsGetAddonUsagesResponses];
1258
+ type BillingAddonsUpdateData = {
1012
1259
  body?: {
1013
- name?: string;
1260
+ quantity: number;
1014
1261
  };
1015
1262
  path: {
1016
- organization_id: string;
1263
+ addon: 'senders' | 'email_warmups';
1017
1264
  };
1018
1265
  query?: never;
1019
- url: '/organizations/{organization_id}';
1266
+ url: '/billing/addons/{addon}';
1020
1267
  };
1021
- type OrganizationUpdateErrors = {
1268
+ type BillingAddonsUpdateErrors = {
1022
1269
  /**
1023
1270
  * Error response
1024
1271
  */
1025
1272
  default: ErrorResponse;
1026
1273
  };
1027
- type OrganizationUpdateError = OrganizationUpdateErrors[keyof OrganizationUpdateErrors];
1028
- type OrganizationUpdateResponses = {
1274
+ type BillingAddonsUpdateError = BillingAddonsUpdateErrors[keyof BillingAddonsUpdateErrors];
1275
+ type BillingAddonsUpdateResponses = {
1029
1276
  /**
1030
1277
  * Response
1031
1278
  */
1032
1279
  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';
1280
+ status: 'confirmation_required' | 'success' | 'payment_failed';
1281
+ client_secret?: string;
1282
+ failure_code?: string;
1045
1283
  };
1046
1284
  };
1047
- type OrganizationUpdateResponse = OrganizationUpdateResponses[keyof OrganizationUpdateResponses];
1048
- type OrganizationMemberListData = {
1285
+ type BillingAddonsUpdateResponse = BillingAddonsUpdateResponses[keyof BillingAddonsUpdateResponses];
1286
+ type BillingSubscriptionGetData = {
1049
1287
  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';
1288
+ path?: never;
1289
+ query?: never;
1290
+ url: '/billing/subscription';
1058
1291
  };
1059
- type OrganizationMemberListErrors = {
1292
+ type BillingSubscriptionGetErrors = {
1060
1293
  /**
1061
1294
  * Error response
1062
1295
  */
1063
1296
  default: ErrorResponse;
1064
1297
  };
1065
- type OrganizationMemberListError = OrganizationMemberListErrors[keyof OrganizationMemberListErrors];
1066
- type OrganizationMemberListResponses = {
1298
+ type BillingSubscriptionGetError = BillingSubscriptionGetErrors[keyof BillingSubscriptionGetErrors];
1299
+ type BillingSubscriptionGetResponses = {
1067
1300
  /**
1068
1301
  * Response
1069
1302
  */
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;
1303
+ 200: {
1083
1304
  id: string;
1084
- organization_id: string;
1085
- object: 'organization_member';
1086
- }>;
1305
+ created_at: number;
1306
+ current_period_start: number;
1307
+ current_period_end: number;
1308
+ quantity: number;
1309
+ currency: string;
1310
+ amount: number | null;
1311
+ discount_percentage?: number | null;
1312
+ name: string | null;
1313
+ billing_period: 'day' | 'week' | 'month' | 'year' | null;
1314
+ plan: 'free' | 'starter' | 'pro' | 'premium' | 'business' | null;
1315
+ default_payment_method: {
1316
+ type: string;
1317
+ brand?: string | null;
1318
+ last4: string | null;
1319
+ exp_month: number | null;
1320
+ exp_year: number | null;
1321
+ bank_name?: string | null;
1322
+ } | null;
1323
+ addons: {
1324
+ senders?: {
1325
+ quantity: number;
1326
+ };
1327
+ email_warmups?: {
1328
+ quantity: number;
1329
+ };
1330
+ };
1331
+ } | null;
1087
1332
  };
1088
- type OrganizationMemberListResponse = OrganizationMemberListResponses[keyof OrganizationMemberListResponses];
1089
- type OrganizationMemberCreateData = {
1333
+ type BillingSubscriptionGetResponse = BillingSubscriptionGetResponses[keyof BillingSubscriptionGetResponses];
1334
+ type BillingSubscriptionUpdateData = {
1090
1335
  body?: {
1091
- email: string;
1092
- role: 'admin' | 'member';
1093
- };
1094
- path: {
1095
- organization_id: string;
1336
+ plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
1337
+ billing_period: 'month' | 'year';
1096
1338
  };
1339
+ path?: never;
1097
1340
  query?: never;
1098
- url: '/organizations/{organization_id}/members';
1341
+ url: '/billing/subscription';
1099
1342
  };
1100
- type OrganizationMemberCreateErrors = {
1343
+ type BillingSubscriptionUpdateErrors = {
1101
1344
  /**
1102
1345
  * Error response
1103
1346
  */
1104
1347
  default: ErrorResponse;
1105
1348
  };
1106
- type OrganizationMemberCreateError = OrganizationMemberCreateErrors[keyof OrganizationMemberCreateErrors];
1107
- type OrganizationMemberCreateResponses = {
1349
+ type BillingSubscriptionUpdateError = BillingSubscriptionUpdateErrors[keyof BillingSubscriptionUpdateErrors];
1350
+ type BillingSubscriptionUpdateResponses = {
1108
1351
  /**
1109
1352
  * Response
1110
1353
  */
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';
1354
+ 200: {
1355
+ status: 'confirmation_required' | 'success' | 'payment_failed';
1356
+ client_secret?: string;
1357
+ failure_code?: string;
1127
1358
  };
1128
1359
  };
1129
- type OrganizationMemberCreateResponse = OrganizationMemberCreateResponses[keyof OrganizationMemberCreateResponses];
1130
- type OrganizationMemberDeleteData = {
1131
- body?: never;
1132
- path: {
1133
- organization_id: string;
1134
- member_id: string;
1360
+ type BillingSubscriptionUpdateResponse = BillingSubscriptionUpdateResponses[keyof BillingSubscriptionUpdateResponses];
1361
+ type BillingSubscriptionPreviewUpdateData = {
1362
+ body?: {
1363
+ plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
1364
+ billing_period: 'month' | 'year';
1135
1365
  };
1366
+ path?: never;
1136
1367
  query?: never;
1137
- url: '/organizations/{organization_id}/members/{member_id}';
1368
+ url: '/billing/subscription/preview';
1138
1369
  };
1139
- type OrganizationMemberDeleteErrors = {
1370
+ type BillingSubscriptionPreviewUpdateErrors = {
1140
1371
  /**
1141
1372
  * Error response
1142
1373
  */
1143
1374
  default: ErrorResponse;
1144
1375
  };
1145
- type OrganizationMemberDeleteError = OrganizationMemberDeleteErrors[keyof OrganizationMemberDeleteErrors];
1146
- type OrganizationMemberDeleteResponses = {
1376
+ type BillingSubscriptionPreviewUpdateError = BillingSubscriptionPreviewUpdateErrors[keyof BillingSubscriptionPreviewUpdateErrors];
1377
+ type BillingSubscriptionPreviewUpdateResponses = {
1147
1378
  /**
1148
1379
  * Response
1149
1380
  */
1150
- 204: void;
1151
- };
1152
- type OrganizationMemberDeleteResponse = OrganizationMemberDeleteResponses[keyof OrganizationMemberDeleteResponses];
1153
- type OrganizationMemberUpdateData = {
1154
- body?: {
1155
- role: 'admin' | 'member';
1381
+ 200: {
1382
+ discount_percents: Array<number>;
1383
+ total_excluding_tax: number;
1384
+ total: number;
1385
+ amount_due: number;
1386
+ added_from_balance: number;
1387
+ consumed_balance: number;
1388
+ credited_to_balance: number;
1389
+ lines: Array<{
1390
+ amount: number;
1391
+ billing_period: 'day' | 'week' | 'month' | 'year';
1392
+ proration: boolean;
1393
+ plan?: 'free' | 'starter' | 'pro' | 'premium' | 'business';
1394
+ addon?: 'senders' | 'email_warmups';
1395
+ }>;
1396
+ next_renewal: number;
1397
+ total_tax_amounts: Array<{
1398
+ amount: number;
1399
+ }>;
1156
1400
  };
1157
- path: {
1158
- organization_id: string;
1159
- member_id: string;
1401
+ };
1402
+ type BillingSubscriptionPreviewUpdateResponse = BillingSubscriptionPreviewUpdateResponses[keyof BillingSubscriptionPreviewUpdateResponses];
1403
+ type BillingGetPricesData = {
1404
+ body?: never;
1405
+ path?: never;
1406
+ query: {
1407
+ currency: string;
1160
1408
  };
1161
- query?: never;
1162
- url: '/organizations/{organization_id}/members/{member_id}';
1409
+ url: '/billing/prices';
1163
1410
  };
1164
- type OrganizationMemberUpdateErrors = {
1411
+ type BillingGetPricesErrors = {
1165
1412
  /**
1166
1413
  * Error response
1167
1414
  */
1168
1415
  default: ErrorResponse;
1169
1416
  };
1170
- type OrganizationMemberUpdateError = OrganizationMemberUpdateErrors[keyof OrganizationMemberUpdateErrors];
1171
- type OrganizationMemberUpdateResponses = {
1417
+ type BillingGetPricesError = BillingGetPricesErrors[keyof BillingGetPricesErrors];
1418
+ type BillingGetPricesResponses = {
1172
1419
  /**
1173
1420
  * Response
1174
1421
  */
1175
1422
  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';
1423
+ free?: {
1424
+ month: number;
1425
+ year: number;
1426
+ };
1427
+ starter?: {
1428
+ month: number;
1429
+ year: number;
1430
+ };
1431
+ pro?: {
1432
+ month: number;
1433
+ year: number;
1434
+ };
1435
+ premium?: {
1436
+ month: number;
1437
+ year: number;
1438
+ };
1439
+ business?: {
1440
+ month: number;
1441
+ year: number;
1442
+ };
1191
1443
  };
1192
1444
  };
1193
- type OrganizationMemberUpdateResponse = OrganizationMemberUpdateResponses[keyof OrganizationMemberUpdateResponses];
1445
+ type BillingGetPricesResponse = BillingGetPricesResponses[keyof BillingGetPricesResponses];
1194
1446
  type GetOpenapiJsonData = {
1195
1447
  body?: never;
1196
1448
  path?: never;
@@ -1211,6 +1463,7 @@ type GetOpenapiJsonResponses = {
1211
1463
  200: unknown;
1212
1464
  };
1213
1465
 
1466
+ type types_gen_d_ActionIdParams = ActionIdParams;
1214
1467
  type types_gen_d_AddonBody = AddonBody;
1215
1468
  type types_gen_d_AddonParams = AddonParams;
1216
1469
  type types_gen_d_AddonResponse200 = AddonResponse200;
@@ -1256,8 +1509,34 @@ type types_gen_d_BillingSubscriptionUpdateErrors = BillingSubscriptionUpdateErro
1256
1509
  type types_gen_d_BillingSubscriptionUpdateResponse = BillingSubscriptionUpdateResponse;
1257
1510
  type types_gen_d_BillingSubscriptionUpdateResponses = BillingSubscriptionUpdateResponses;
1258
1511
  type types_gen_d_ClientOptions = ClientOptions;
1259
- type types_gen_d_CurrentBody = CurrentBody;
1260
- type types_gen_d_CurrentResponse200 = CurrentResponse200;
1512
+ type types_gen_d_ContactListIdBody = ContactListIdBody;
1513
+ type types_gen_d_ContactListIdParams = ContactListIdParams;
1514
+ type types_gen_d_ContactListIdResponse200 = ContactListIdResponse200;
1515
+ type types_gen_d_ContactListsBody = ContactListsBody;
1516
+ type types_gen_d_ContactListsCreateData = ContactListsCreateData;
1517
+ type types_gen_d_ContactListsCreateError = ContactListsCreateError;
1518
+ type types_gen_d_ContactListsCreateErrors = ContactListsCreateErrors;
1519
+ type types_gen_d_ContactListsCreateResponse = ContactListsCreateResponse;
1520
+ type types_gen_d_ContactListsCreateResponses = ContactListsCreateResponses;
1521
+ type types_gen_d_ContactListsRemoveData = ContactListsRemoveData;
1522
+ type types_gen_d_ContactListsRemoveError = ContactListsRemoveError;
1523
+ type types_gen_d_ContactListsRemoveErrors = ContactListsRemoveErrors;
1524
+ type types_gen_d_ContactListsRemoveResponse = ContactListsRemoveResponse;
1525
+ type types_gen_d_ContactListsRemoveResponses = ContactListsRemoveResponses;
1526
+ type types_gen_d_ContactListsResponse201 = ContactListsResponse201;
1527
+ type types_gen_d_ContactListsRetrieveData = ContactListsRetrieveData;
1528
+ type types_gen_d_ContactListsRetrieveError = ContactListsRetrieveError;
1529
+ type types_gen_d_ContactListsRetrieveErrors = ContactListsRetrieveErrors;
1530
+ type types_gen_d_ContactListsRetrieveResponse = ContactListsRetrieveResponse;
1531
+ type types_gen_d_ContactListsRetrieveResponses = ContactListsRetrieveResponses;
1532
+ type types_gen_d_ContactListsUpdateData = ContactListsUpdateData;
1533
+ type types_gen_d_ContactListsUpdateError = ContactListsUpdateError;
1534
+ type types_gen_d_ContactListsUpdateErrors = ContactListsUpdateErrors;
1535
+ type types_gen_d_ContactListsUpdateResponse = ContactListsUpdateResponse;
1536
+ type types_gen_d_ContactListsUpdateResponses = ContactListsUpdateResponses;
1537
+ type types_gen_d_CurrentOrganizationBody = CurrentOrganizationBody;
1538
+ type types_gen_d_CurrentOrganizationParams = CurrentOrganizationParams;
1539
+ type types_gen_d_CurrentOrganizationResponse200 = CurrentOrganizationResponse200;
1261
1540
  type types_gen_d_ErrorResponse = ErrorResponse;
1262
1541
  type types_gen_d_GetOpenapiJsonData = GetOpenapiJsonData;
1263
1542
  type types_gen_d_GetOpenapiJsonError = GetOpenapiJsonError;
@@ -1282,11 +1561,6 @@ type types_gen_d_OrganizationDeleteError = OrganizationDeleteError;
1282
1561
  type types_gen_d_OrganizationDeleteErrors = OrganizationDeleteErrors;
1283
1562
  type types_gen_d_OrganizationDeleteResponse = OrganizationDeleteResponse;
1284
1563
  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
1564
  type types_gen_d_OrganizationIdBody = OrganizationIdBody;
1291
1565
  type types_gen_d_OrganizationIdParams = OrganizationIdParams;
1292
1566
  type types_gen_d_OrganizationIdResponse200 = OrganizationIdResponse200;
@@ -1320,11 +1594,6 @@ type types_gen_d_OrganizationRetrieveError = OrganizationRetrieveError;
1320
1594
  type types_gen_d_OrganizationRetrieveErrors = OrganizationRetrieveErrors;
1321
1595
  type types_gen_d_OrganizationRetrieveResponse = OrganizationRetrieveResponse;
1322
1596
  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
1597
  type types_gen_d_OrganizationUpdateData = OrganizationUpdateData;
1329
1598
  type types_gen_d_OrganizationUpdateError = OrganizationUpdateError;
1330
1599
  type types_gen_d_OrganizationUpdateErrors = OrganizationUpdateErrors;
@@ -1340,8 +1609,30 @@ type types_gen_d_PricesQuery = PricesQuery;
1340
1609
  type types_gen_d_PricesResponse200 = PricesResponse200;
1341
1610
  type types_gen_d_SubscriptionBody = SubscriptionBody;
1342
1611
  type types_gen_d_SubscriptionResponse200 = SubscriptionResponse200;
1612
+ type types_gen_d_UsersDeleteActionData = UsersDeleteActionData;
1613
+ type types_gen_d_UsersDeleteActionError = UsersDeleteActionError;
1614
+ type types_gen_d_UsersDeleteActionErrors = UsersDeleteActionErrors;
1615
+ type types_gen_d_UsersDeleteActionResponse = UsersDeleteActionResponse;
1616
+ type types_gen_d_UsersDeleteActionResponses = UsersDeleteActionResponses;
1617
+ type types_gen_d_UsersGetCurrentOrganizationData = UsersGetCurrentOrganizationData;
1618
+ type types_gen_d_UsersGetCurrentOrganizationError = UsersGetCurrentOrganizationError;
1619
+ type types_gen_d_UsersGetCurrentOrganizationErrors = UsersGetCurrentOrganizationErrors;
1620
+ type types_gen_d_UsersGetCurrentOrganizationResponse = UsersGetCurrentOrganizationResponse;
1621
+ type types_gen_d_UsersGetCurrentOrganizationResponses = UsersGetCurrentOrganizationResponses;
1622
+ type types_gen_d_UsersSetCurrentOrganizationData = UsersSetCurrentOrganizationData;
1623
+ type types_gen_d_UsersSetCurrentOrganizationError = UsersSetCurrentOrganizationError;
1624
+ type types_gen_d_UsersSetCurrentOrganizationErrors = UsersSetCurrentOrganizationErrors;
1625
+ type types_gen_d_UsersSetCurrentOrganizationResponse = UsersSetCurrentOrganizationResponse;
1626
+ type types_gen_d_UsersSetCurrentOrganizationResponses = UsersSetCurrentOrganizationResponses;
1627
+ type types_gen_d_UsersWatchMailboxData = UsersWatchMailboxData;
1628
+ type types_gen_d_UsersWatchMailboxError = UsersWatchMailboxError;
1629
+ type types_gen_d_UsersWatchMailboxErrors = UsersWatchMailboxErrors;
1630
+ type types_gen_d_UsersWatchMailboxResponse = UsersWatchMailboxResponse;
1631
+ type types_gen_d_UsersWatchMailboxResponses = UsersWatchMailboxResponses;
1632
+ type types_gen_d_WatchMailboxBody = WatchMailboxBody;
1633
+ type types_gen_d_WatchMailboxParams = WatchMailboxParams;
1343
1634
  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 };
1635
+ 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_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_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_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_SubscriptionBody as SubscriptionBody, types_gen_d_SubscriptionResponse200 as SubscriptionResponse200, 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
1636
  }
1346
1637
 
1347
1638
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
@@ -1363,17 +1654,69 @@ declare class HeyApiClient {
1363
1654
  client?: Client;
1364
1655
  });
1365
1656
  }
1657
+ declare class HeyApiRegistry3<T> {
1658
+ private readonly defaultKey;
1659
+ private readonly instances;
1660
+ get(key?: string): T;
1661
+ set(value: T, key?: string): void;
1662
+ }
1663
+ declare class Users extends HeyApiClient {
1664
+ getCurrentOrganization<ThrowOnError extends boolean = false>(userId: string, options?: Options<never, ThrowOnError>): RequestResult<UsersGetCurrentOrganizationResponses, UsersGetCurrentOrganizationErrors, ThrowOnError, "data">;
1665
+ setCurrentOrganization<ThrowOnError extends boolean = false>(user_id: string, parameters?: {
1666
+ organization_id?: string | null;
1667
+ }, options?: Options<never, ThrowOnError>): RequestResult<UsersSetCurrentOrganizationResponses, UsersSetCurrentOrganizationErrors, ThrowOnError, "data">;
1668
+ watchMailbox<ThrowOnError extends boolean = false>(user_id: string, parameters?: {
1669
+ provider?: 'gmail' | 'outlook';
1670
+ force?: boolean;
1671
+ }, options?: Options<never, ThrowOnError>): RequestResult<UsersWatchMailboxResponses, UsersWatchMailboxErrors, ThrowOnError, "data">;
1672
+ deleteAction<ThrowOnError extends boolean = false>(user_id: string, action_id: string, options?: Options<never, ThrowOnError>): RequestResult<UsersDeleteActionResponses, UsersDeleteActionErrors, ThrowOnError, "data">;
1673
+ }
1674
+ declare class Organization extends HeyApiClient {
1675
+ list<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<OrganizationListResponses, OrganizationListErrors, ThrowOnError, "data">;
1676
+ create<ThrowOnError extends boolean = false>(parameters?: {
1677
+ name?: string;
1678
+ }, options?: Options<never, ThrowOnError>): RequestResult<OrganizationCreateResponses, OrganizationCreateErrors, ThrowOnError, "data">;
1679
+ delete<ThrowOnError extends boolean = false>(organization_id: string, options?: Options<never, ThrowOnError>): RequestResult<OrganizationDeleteResponses, OrganizationDeleteErrors, ThrowOnError, "data">;
1680
+ retrieve<ThrowOnError extends boolean = false>(organization_id: string, options?: Options<never, ThrowOnError>): RequestResult<OrganizationRetrieveResponses, OrganizationRetrieveErrors, ThrowOnError, "data">;
1681
+ update<ThrowOnError extends boolean = false>(organization_id: string, parameters?: {
1682
+ name?: string;
1683
+ }, options?: Options<never, ThrowOnError>): RequestResult<OrganizationUpdateResponses, OrganizationUpdateErrors, ThrowOnError, "data">;
1684
+ }
1685
+ declare class Organizations extends HeyApiClient {
1686
+ static readonly __registry: HeyApiRegistry3<Organizations>;
1687
+ constructor(args?: {
1688
+ client?: Client;
1689
+ key?: string;
1690
+ });
1691
+ private _organization?;
1692
+ get organization(): Organization;
1693
+ }
1694
+ declare class ContactLists extends HeyApiClient {
1695
+ create<ThrowOnError extends boolean = false>(parameters?: {
1696
+ owner?: string;
1697
+ name?: string;
1698
+ metadata?: {
1699
+ [key: string]: string;
1700
+ };
1701
+ }, options?: Options<never, ThrowOnError>): RequestResult<ContactListsCreateResponses, ContactListsCreateErrors, ThrowOnError, "data">;
1702
+ remove<ThrowOnError extends boolean = false>(contact_list_id: string, parameters?: {
1703
+ remove_contacts?: boolean;
1704
+ }, options?: Options<never, ThrowOnError>): RequestResult<ContactListsRemoveResponses, ContactListsRemoveErrors, ThrowOnError, "data">;
1705
+ retrieve<ThrowOnError extends boolean = false>(contact_list_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactListsRetrieveResponses, ContactListsRetrieveErrors, ThrowOnError, "data">;
1706
+ update<ThrowOnError extends boolean = false>(contact_list_id: string, parameters?: {
1707
+ name?: string;
1708
+ metadata?: {
1709
+ [key: string]: string;
1710
+ };
1711
+ }, options?: Options<never, ThrowOnError>): RequestResult<ContactListsUpdateResponses, ContactListsUpdateErrors, ThrowOnError, "data">;
1712
+ }
1366
1713
  declare class BillingAddons extends HeyApiClient {
1367
1714
  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';
1715
+ previewUpdate<ThrowOnError extends boolean = false>(addon: 'senders' | 'email_warmups', parameters?: {
1370
1716
  quantity?: number;
1371
1717
  }, 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';
1718
+ getAddonUsages<ThrowOnError extends boolean = false>(addon: 'senders' | 'email_warmups', options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsGetAddonUsagesResponses, BillingAddonsGetAddonUsagesErrors, ThrowOnError, "data">;
1719
+ update<ThrowOnError extends boolean = false>(addon: 'senders' | 'email_warmups', parameters?: {
1377
1720
  quantity?: number;
1378
1721
  }, options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsUpdateResponses, BillingAddonsUpdateErrors, ThrowOnError, "data">;
1379
1722
  }
@@ -1409,6 +1752,9 @@ declare class Mailmeteor {
1409
1752
  readonly billingAddons: BillingAddons;
1410
1753
  readonly billingSubscription: BillingSubscription;
1411
1754
  readonly billing: Billing;
1755
+ readonly contactLists: ContactLists;
1756
+ readonly organizations: Organizations;
1757
+ readonly users: Users;
1412
1758
  constructor(key: string, config?: MailmeteorConfig);
1413
1759
  /**
1414
1760
  * Update the API key for authentication